@@ -1609,43 +1609,43 @@ const ROUTES = {
16091609 route : 'workspaces/:policyID/tax/:taxID/tax-code' ,
16101610 getRoute : ( policyID : string , taxID : string ) => `workspaces/${ policyID } /tax/${ encodeURIComponent ( taxID ) } /tax-code` as const ,
16111611 } ,
1612- WORKSPACE_REPORT_FIELDS : {
1613- route : 'workspaces/:policyID/reportFields ' ,
1612+ WORKSPACE_REPORTS : {
1613+ route : 'workspaces/:policyID/reports ' ,
16141614 getRoute : ( policyID : string | undefined ) => {
16151615 if ( ! policyID ) {
1616- Log . warn ( 'Invalid policyID is used to build the WORKSPACE_REPORT_FIELDS route' ) ;
1616+ Log . warn ( 'Invalid policyID is used to build the WORKSPACE_REPORTS route' ) ;
16171617 }
1618- return `workspaces/${ policyID } /reportFields ` as const ;
1618+ return `workspaces/${ policyID } /reports ` as const ;
16191619 } ,
16201620 } ,
16211621 WORKSPACE_CREATE_REPORT_FIELD : {
1622- route : 'workspaces/:policyID/reportFields/new ' ,
1623- getRoute : ( policyID : string ) => `workspaces/${ policyID } /reportFields/new ` as const ,
1622+ route : 'workspaces/:policyID/reports/newReportField ' ,
1623+ getRoute : ( policyID : string ) => `workspaces/${ policyID } /reports/newReportField ` as const ,
16241624 } ,
16251625 WORKSPACE_REPORT_FIELDS_SETTINGS : {
1626- route : 'workspaces/:policyID/reportFields /:reportFieldID/edit' ,
1627- getRoute : ( policyID : string , reportFieldID : string ) => `workspaces/${ policyID } /reportFields /${ encodeURIComponent ( reportFieldID ) } /edit` as const ,
1626+ route : 'workspaces/:policyID/reports /:reportFieldID/edit' ,
1627+ getRoute : ( policyID : string , reportFieldID : string ) => `workspaces/${ policyID } /reports /${ encodeURIComponent ( reportFieldID ) } /edit` as const ,
16281628 } ,
16291629 WORKSPACE_REPORT_FIELDS_LIST_VALUES : {
1630- route : 'workspaces/:policyID/reportFields /listValues/:reportFieldID?' ,
1631- getRoute : ( policyID : string , reportFieldID ?: string ) => `workspaces/${ policyID } /reportFields /listValues/${ reportFieldID ? encodeURIComponent ( reportFieldID ) : '' } ` as const ,
1630+ route : 'workspaces/:policyID/reports /listValues/:reportFieldID?' ,
1631+ getRoute : ( policyID : string , reportFieldID ?: string ) => `workspaces/${ policyID } /reports /listValues/${ reportFieldID ? encodeURIComponent ( reportFieldID ) : '' } ` as const ,
16321632 } ,
16331633 WORKSPACE_REPORT_FIELDS_ADD_VALUE : {
1634- route : 'workspaces/:policyID/reportFields /addValue/:reportFieldID?' ,
1635- getRoute : ( policyID : string , reportFieldID ?: string ) => `workspaces/${ policyID } /reportFields /addValue/${ reportFieldID ? encodeURIComponent ( reportFieldID ) : '' } ` as const ,
1634+ route : 'workspaces/:policyID/reports /addValue/:reportFieldID?' ,
1635+ getRoute : ( policyID : string , reportFieldID ?: string ) => `workspaces/${ policyID } /reports /addValue/${ reportFieldID ? encodeURIComponent ( reportFieldID ) : '' } ` as const ,
16361636 } ,
16371637 WORKSPACE_REPORT_FIELDS_VALUE_SETTINGS : {
1638- route : 'workspaces/:policyID/reportFields /:valueIndex/:reportFieldID?' ,
1638+ route : 'workspaces/:policyID/reports /:valueIndex/:reportFieldID?' ,
16391639 getRoute : ( policyID : string , valueIndex : number , reportFieldID ?: string ) =>
1640- `workspaces/${ policyID } /reportFields /${ valueIndex } /${ reportFieldID ? encodeURIComponent ( reportFieldID ) : '' } ` as const ,
1640+ `workspaces/${ policyID } /reports /${ valueIndex } /${ reportFieldID ? encodeURIComponent ( reportFieldID ) : '' } ` as const ,
16411641 } ,
16421642 WORKSPACE_REPORT_FIELDS_EDIT_VALUE : {
1643- route : 'workspaces/:policyID/reportFields/new /:valueIndex/edit' ,
1644- getRoute : ( policyID : string , valueIndex : number ) => `workspaces/${ policyID } /reportFields/new /${ valueIndex } /edit` as const ,
1643+ route : 'workspaces/:policyID/reports/newReportField /:valueIndex/edit' ,
1644+ getRoute : ( policyID : string , valueIndex : number ) => `workspaces/${ policyID } /reports/newReportField /${ valueIndex } /edit` as const ,
16451645 } ,
16461646 WORKSPACE_EDIT_REPORT_FIELDS_INITIAL_VALUE : {
1647- route : 'workspaces/:policyID/reportFields /:reportFieldID/edit/initialValue' ,
1648- getRoute : ( policyID : string , reportFieldID : string ) => `workspaces/${ policyID } /reportFields /${ encodeURIComponent ( reportFieldID ) } /edit/initialValue` as const ,
1647+ route : 'workspaces/:policyID/reports /:reportFieldID/edit/initialValue' ,
1648+ getRoute : ( policyID : string , reportFieldID : string ) => `workspaces/${ policyID } /reports /${ encodeURIComponent ( reportFieldID ) } /edit/initialValue` as const ,
16491649 } ,
16501650 WORKSPACE_COMPANY_CARDS : {
16511651 route : 'workspaces/:policyID/company-cards' ,
@@ -1859,9 +1859,9 @@ const ROUTES = {
18591859 route : 'workspaces/:policyID/per-diem/edit/currency/:rateID/:subRateID' ,
18601860 getRoute : ( policyID : string , rateID : string , subRateID : string ) => `workspaces/${ policyID } /per-diem/edit/currency/${ rateID } /${ subRateID } ` as const ,
18611861 } ,
1862- RULES_CUSTOM_NAME : {
1863- route : 'workspaces/:policyID/rules /name' ,
1864- getRoute : ( policyID : string ) => `workspaces/${ policyID } /rules /name` as const ,
1862+ REPORTS_DEFAULT_TITLE : {
1863+ route : 'workspaces/:policyID/reports /name' ,
1864+ getRoute : ( policyID : string ) => `workspaces/${ policyID } /reports /name` as const ,
18651865 } ,
18661866 RULES_AUTO_APPROVE_REPORTS_UNDER : {
18671867 route : 'workspaces/:policyID/rules/auto-approve' ,
0 commit comments