diff --git a/src/types/onyx/Policy.ts b/src/types/onyx/Policy.ts index 398a0fe0dd28..ddb0c33c2f0c 100644 --- a/src/types/onyx/Policy.ts +++ b/src/types/onyx/Policy.ts @@ -1,5 +1,6 @@ import type {ValueOf} from 'type-fest'; import type CONST from '@src/CONST'; +import type * as OnyxTypes from '.'; import type * as OnyxCommon from './OnyxCommon'; type Unit = 'mi' | 'km'; @@ -328,7 +329,7 @@ type Policy = OnyxCommon.OnyxValueWithOfflineFeedback< submitsTo?: number; /** The employee list of the policy */ - employeeList?: []; + employeeList?: OnyxTypes.PolicyMembers | []; /** The reimbursement choice for policy */ reimbursementChoice?: ValueOf; diff --git a/src/types/onyx/PolicyMember.ts b/src/types/onyx/PolicyMember.ts index f68fe194df0e..366a7ef7d530 100644 --- a/src/types/onyx/PolicyMember.ts +++ b/src/types/onyx/PolicyMember.ts @@ -4,6 +4,15 @@ type PolicyMember = OnyxCommon.OnyxValueWithOfflineFeedback<{ /** Role of the user in the policy */ role?: string; + /** Email of the user */ + email?: string; + + /** Email of the user this user forwards all approved reports to */ + forwardsTo?: string; + + /** Email of the user this user submits all reports to */ + submitsTo?: string; + /** * Errors from api calls on the specific user * {: 'error message', : 'error message 2'}