Skip to content

Commit

Permalink
Merge pull request #35181 from Expensify/cmartins-addKeysToPolicyType
Browse files Browse the repository at this point in the history
Update policy type
  • Loading branch information
luacmartins authored Jan 25, 2024
2 parents 889051c + a58f90f commit 091f5f6
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/types/onyx/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ type CustomUnit = {
errors?: OnyxCommon.Errors;
};

type DisabledFields = {
defaultBillable?: boolean;
reimbursable?: boolean;
};

type AutoReportingOffset = number | ValueOf<typeof CONST.POLICY.AUTO_REPORTING_OFFSET>;

type Policy = {
Expand Down Expand Up @@ -121,6 +126,27 @@ type Policy = {

/** The approval mode set up on this policy */
approvalMode?: ValueOf<typeof CONST.POLICY.APPROVAL_MODE>;

/** Whether transactions should be billable by default */
defaultBillable?: boolean;

/** The workspace description */
description?: string;

/** List of field names that are disabled */
disabledFields?: DisabledFields;

/** Whether new transactions need to be tagged */
requiresTag?: boolean;

/** Whether new transactions need to be categorized */
requiresCategory?: boolean;

/** Whether the workspace has multiple levels of tags enabled */
hasMultipleTagLists?: boolean;

/** When tax tracking is enabled */
isTaxTrackingEnabled?: boolean;
};

export default Policy;
Expand Down

0 comments on commit 091f5f6

Please sign in to comment.