diff --git a/src/libs/actions/Policy.ts b/src/libs/actions/Policy.ts index e1da946e81d8..41288ce5eecd 100644 --- a/src/libs/actions/Policy.ts +++ b/src/libs/actions/Policy.ts @@ -1402,6 +1402,12 @@ function createWorkspace(policyOwnerEmail = '', makeMeAdmin = false, policyName outputCurrency, pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD, customUnits, + areCategoriesEnabled: true, + areTagsEnabled: false, + areDistanceRatesEnabled: false, + areWorkflowsEnabled: false, + areReportFieldsEnabled: false, + areConnectionsEnabled: false, }, }, { @@ -1803,6 +1809,12 @@ function createWorkspaceFromIOUPayment(iouReport: Report | EmptyObject): string outputCurrency: CONST.CURRENCY.USD, pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD, customUnits, + areCategoriesEnabled: true, + areTagsEnabled: false, + areDistanceRatesEnabled: false, + areWorkflowsEnabled: false, + areReportFieldsEnabled: false, + areConnectionsEnabled: false, }; const optimisticData: OnyxUpdate[] = [ diff --git a/src/types/onyx/Policy.ts b/src/types/onyx/Policy.ts index cf242311dd63..1eece2d3a1e0 100644 --- a/src/types/onyx/Policy.ts +++ b/src/types/onyx/Policy.ts @@ -229,6 +229,24 @@ type Policy = OnyxCommon.OnyxValueWithOfflineFeedback< /** All the integration connections attached to the policy */ connections?: Record; + + /** Whether the Categories feature is enabled */ + areCategoriesEnabled?: boolean; + + /** Whether the Tags feature is enabled */ + areTagsEnabled?: boolean; + + /** Whether the Distance Rates feature is enabled */ + areDistanceRatesEnabled?: boolean; + + /** Whether the workflows feature is enabled */ + areWorkflowsEnabled?: boolean; + + /** Whether the Report Fields feature is enabled */ + areReportFieldsEnabled?: boolean; + + /** Whether the Connections feature is enabled */ + areConnectionsEnabled?: boolean; }, 'generalSettings' | 'addWorkspaceRoom' >;