@@ -1630,43 +1630,43 @@ const ROUTES = {
16301630 route : 'workspaces/:policyID/tax/:taxID/tax-code' ,
16311631 getRoute : ( policyID : string , taxID : string ) => `workspaces/${ policyID } /tax/${ encodeURIComponent ( taxID ) } /tax-code` as const ,
16321632 } ,
1633- WORKSPACE_REPORT_FIELDS : {
1634- route : 'workspaces/:policyID/reportFields ' ,
1633+ WORKSPACE_REPORTS : {
1634+ route : 'workspaces/:policyID/reports ' ,
16351635 getRoute : ( policyID : string | undefined ) => {
16361636 if ( ! policyID ) {
1637- Log . warn ( 'Invalid policyID is used to build the WORKSPACE_REPORT_FIELDS route' ) ;
1637+ Log . warn ( 'Invalid policyID is used to build the WORKSPACE_REPORTS route' ) ;
16381638 }
1639- return `workspaces/${ policyID } /reportFields ` as const ;
1639+ return `workspaces/${ policyID } /reports ` as const ;
16401640 } ,
16411641 } ,
16421642 WORKSPACE_CREATE_REPORT_FIELD : {
1643- route : 'workspaces/:policyID/reportFields/new ' ,
1644- getRoute : ( policyID : string ) => `workspaces/${ policyID } /reportFields/new ` as const ,
1643+ route : 'workspaces/:policyID/reports/newReportField ' ,
1644+ getRoute : ( policyID : string ) => `workspaces/${ policyID } /reports/newReportField ` as const ,
16451645 } ,
16461646 WORKSPACE_REPORT_FIELDS_SETTINGS : {
1647- route : 'workspaces/:policyID/reportFields /:reportFieldID/edit' ,
1648- getRoute : ( policyID : string , reportFieldID : string ) => `workspaces/${ policyID } /reportFields /${ encodeURIComponent ( reportFieldID ) } /edit` as const ,
1647+ route : 'workspaces/:policyID/reports /:reportFieldID/edit' ,
1648+ getRoute : ( policyID : string , reportFieldID : string ) => `workspaces/${ policyID } /reports /${ encodeURIComponent ( reportFieldID ) } /edit` as const ,
16491649 } ,
16501650 WORKSPACE_REPORT_FIELDS_LIST_VALUES : {
1651- route : 'workspaces/:policyID/reportFields /listValues/:reportFieldID?' ,
1652- getRoute : ( policyID : string , reportFieldID ?: string ) => `workspaces/${ policyID } /reportFields /listValues/${ reportFieldID ? encodeURIComponent ( reportFieldID ) : '' } ` as const ,
1651+ route : 'workspaces/:policyID/reports /listValues/:reportFieldID?' ,
1652+ getRoute : ( policyID : string , reportFieldID ?: string ) => `workspaces/${ policyID } /reports /listValues/${ reportFieldID ? encodeURIComponent ( reportFieldID ) : '' } ` as const ,
16531653 } ,
16541654 WORKSPACE_REPORT_FIELDS_ADD_VALUE : {
1655- route : 'workspaces/:policyID/reportFields /addValue/:reportFieldID?' ,
1656- getRoute : ( policyID : string , reportFieldID ?: string ) => `workspaces/${ policyID } /reportFields /addValue/${ reportFieldID ? encodeURIComponent ( reportFieldID ) : '' } ` as const ,
1655+ route : 'workspaces/:policyID/reports /addValue/:reportFieldID?' ,
1656+ getRoute : ( policyID : string , reportFieldID ?: string ) => `workspaces/${ policyID } /reports /addValue/${ reportFieldID ? encodeURIComponent ( reportFieldID ) : '' } ` as const ,
16571657 } ,
16581658 WORKSPACE_REPORT_FIELDS_VALUE_SETTINGS : {
1659- route : 'workspaces/:policyID/reportFields /:valueIndex/:reportFieldID?' ,
1659+ route : 'workspaces/:policyID/reports /:valueIndex/:reportFieldID?' ,
16601660 getRoute : ( policyID : string , valueIndex : number , reportFieldID ?: string ) =>
1661- `workspaces/${ policyID } /reportFields /${ valueIndex } /${ reportFieldID ? encodeURIComponent ( reportFieldID ) : '' } ` as const ,
1661+ `workspaces/${ policyID } /reports /${ valueIndex } /${ reportFieldID ? encodeURIComponent ( reportFieldID ) : '' } ` as const ,
16621662 } ,
16631663 WORKSPACE_REPORT_FIELDS_EDIT_VALUE : {
1664- route : 'workspaces/:policyID/reportFields/new /:valueIndex/edit' ,
1665- getRoute : ( policyID : string , valueIndex : number ) => `workspaces/${ policyID } /reportFields/new /${ valueIndex } /edit` as const ,
1664+ route : 'workspaces/:policyID/reports/newReportField /:valueIndex/edit' ,
1665+ getRoute : ( policyID : string , valueIndex : number ) => `workspaces/${ policyID } /reports/newReportField /${ valueIndex } /edit` as const ,
16661666 } ,
16671667 WORKSPACE_EDIT_REPORT_FIELDS_INITIAL_VALUE : {
1668- route : 'workspaces/:policyID/reportFields /:reportFieldID/edit/initialValue' ,
1669- getRoute : ( policyID : string , reportFieldID : string ) => `workspaces/${ policyID } /reportFields /${ encodeURIComponent ( reportFieldID ) } /edit/initialValue` as const ,
1668+ route : 'workspaces/:policyID/reports /:reportFieldID/edit/initialValue' ,
1669+ getRoute : ( policyID : string , reportFieldID : string ) => `workspaces/${ policyID } /reports /${ encodeURIComponent ( reportFieldID ) } /edit/initialValue` as const ,
16701670 } ,
16711671 WORKSPACE_COMPANY_CARDS : {
16721672 route : 'workspaces/:policyID/company-cards' ,
@@ -1884,9 +1884,9 @@ const ROUTES = {
18841884 route : 'workspaces/:policyID/per-diem/edit/currency/:rateID/:subRateID' ,
18851885 getRoute : ( policyID : string , rateID : string , subRateID : string ) => `workspaces/${ policyID } /per-diem/edit/currency/${ rateID } /${ subRateID } ` as const ,
18861886 } ,
1887- RULES_CUSTOM_NAME : {
1888- route : 'workspaces/:policyID/rules /name' ,
1889- getRoute : ( policyID : string ) => `workspaces/${ policyID } /rules /name` as const ,
1887+ REPORTS_DEFAULT_TITLE : {
1888+ route : 'workspaces/:policyID/reports /name' ,
1889+ getRoute : ( policyID : string ) => `workspaces/${ policyID } /reports /name` as const ,
18901890 } ,
18911891 RULES_AUTO_APPROVE_REPORTS_UNDER : {
18921892 route : 'workspaces/:policyID/rules/auto-approve' ,
0 commit comments