@feedmepos/mf-hrm-portal 2.3.1 → 2.3.2-dev.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ApprovalCodeList-CcvVEriB.js → ApprovalCodeList-RKU5B8SO.js} +14 -15
- package/dist/{AuditLogList-C61-SnWG.js → AuditLogList-DuDCMjGR.js} +796 -720
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-pL2zRc67.js +459 -0
- package/dist/EmployeeList-nrYsS5uz.js +896 -0
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-7S2w36aY.js +90 -0
- package/dist/{GrantUserList-1ErIV7b7.js → GrantUserList-BSjeC4MC.js} +15 -16
- package/dist/{Main-R0qyd8Ea.js → Main-CpuHaXU6.js} +5 -5
- package/dist/Main-DbdoVLCE.js +101 -0
- package/dist/{Main-CD8OS1rM.js → Main-DtmCBbTR.js} +1005 -999
- package/dist/MyPosProfile-CsTCfGNT.js +360 -0
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +126 -0
- package/dist/{PermissionSetList-ig3oxdhh.js → PermissionSetList-B1c-uGZO.js} +80 -80
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Toq6qrLx.js +4208 -0
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-D6Z9z_Yt.js +1831 -0
- package/dist/RoleForm.vue_vue_type_script_setup_true_lang-TWTVo_9Y.js +547 -0
- package/dist/RoleList-CwaGNsFy.js +265 -0
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Dg7S6nFO.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-C2ekVXdR.js} +1 -1
- package/dist/{ScheduleGeneralPage-QYijA95u.js → ScheduleGeneralPage-BVtXmxtp.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-Bnyqna_E.js → ScheduleModal.vue_vue_type_script_setup_true_lang-DdsQ8v-5.js} +187 -186
- package/dist/{SchedulePage-BrBZmuMj.js → SchedulePage-3qksmT2I.js} +193 -205
- package/dist/{SchedulePositionPage-NCvNg8v5.js → SchedulePositionPage-DAU20KPZ.js} +3 -3
- package/dist/{SelectFilter-r-QOCO99.js → SelectFilter-BpzBwBmQ.js} +2 -3
- package/dist/TeamMemberList-Bdpm40i3.js +2087 -0
- package/dist/TimesheetList-CL_eJp2h.js +437 -0
- package/dist/{app-DKHtjxyC.js → app-DEZT4wdV.js} +7789 -3967
- package/dist/app.js +3 -3
- package/dist/{approval-code-BIpLingm.js → approval-code-BZTz5OXK.js} +4 -4
- package/dist/{dayjs.min-CNNMpacl.js → dayjs.min-B55I-uhI.js} +21 -21
- package/dist/employee-C6z5i6O4.js +172 -0
- package/dist/{grant-user-uZmvD_bw.js → grant-user-B2rYztyf.js} +2 -2
- package/dist/{iteration-DkcNkScw.js → index-Bfdseotz.js} +698 -726
- package/dist/iteration-CcXrOMQe.js +30 -0
- package/dist/{lodash-g-62RoFP.js → lodash-B8bqa6a9.js} +1 -1
- package/dist/member-grant-BIpKkuu8.js +54 -0
- package/dist/restaurant-ejyX2jEG.js +52 -0
- package/dist/role-C_t3DDlG.js +98 -0
- package/dist/rule-Ccopk8R_.js +843 -0
- package/dist/src/api/audit-log/index.d.ts +2 -0
- package/dist/src/api/employee/index.d.ts +1 -2
- package/dist/src/api/my-pos-profile/index.d.ts +3 -0
- package/dist/src/api/sso-provider/index.d.ts +5 -0
- package/dist/src/api/staff-invite/index.d.ts +16 -0
- package/dist/src/api/timesheet/index.d.ts +1 -1
- package/dist/src/components/CollapsibleWrapper.vue.d.ts +11 -3
- package/dist/src/components/form/SegmentedTabs.vue.d.ts +23 -0
- package/dist/src/composables/useMenuAccess.d.ts +56 -0
- package/dist/src/composables/useSsoProviders.d.ts +19 -0
- package/dist/src/composables/useStaffInviteProviders.d.ts +8 -0
- package/dist/src/helpers/member-grant.d.ts +36 -0
- package/dist/src/helpers/my-pos-profile.d.ts +37 -0
- package/dist/src/helpers/permission-set.d.ts +1 -102
- package/dist/src/helpers/pos-assignment-rows.d.ts +28 -0
- package/dist/src/helpers/rule.d.ts +2 -2
- package/dist/src/helpers/staff-invite.d.ts +54 -0
- package/dist/src/helpers/string.d.ts +10 -1
- package/dist/src/router/menu-access-guard.d.ts +17 -0
- package/dist/src/router/shared.d.ts +3 -1
- package/dist/src/stores/approval-code.d.ts +1 -1
- package/dist/src/stores/employee.d.ts +3 -9
- package/dist/src/stores/grant-user.d.ts +1 -1
- package/dist/src/stores/permission-assignment.d.ts +2 -2
- package/dist/src/stores/permission-set.d.ts +2 -2
- package/dist/src/stores/restaurant.d.ts +70 -10
- package/dist/src/stores/role.d.ts +2 -2
- package/dist/src/stores/team.d.ts +31 -1
- package/dist/src/stores/timesheet.d.ts +68 -53
- package/dist/src/types/my-pos-profile.d.ts +24 -0
- package/dist/src/types/sso-provider.d.ts +10 -0
- package/dist/src/types/staff-invite.d.ts +100 -0
- package/dist/src/types/team.d.ts +17 -1
- package/dist/src/types/timesheet.d.ts +3 -0
- package/dist/src/views/audit-log/locales/index.d.ts +40 -0
- package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +19 -0
- package/dist/src/views/hr/locales/index.d.ts +24 -4
- package/dist/src/views/hr/role/RoleForm.vue.d.ts +29 -2
- package/dist/src/views/my-pos-profile/MyPosProfile.vue.d.ts +2 -0
- package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +4 -0
- package/dist/src/views/my-pos-profile/locales/index.d.ts +236 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +1 -1
- package/dist/src/views/team/components/BasePermission.vue.d.ts +11 -0
- package/dist/src/views/team/components/ConditionPermission.vue.d.ts +11 -0
- package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +51 -0
- package/dist/src/views/team/{member/MemberInfo.vue.d.ts → components/MemberStatusBadge.vue.d.ts} +2 -2
- package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +21 -0
- package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +44 -0
- package/dist/src/views/team/components/PosRolePermission.vue.d.ts +11 -0
- package/dist/src/views/team/locales/index.d.ts +716 -0
- package/dist/src/views/team/member/AddMemberForm.vue.d.ts +48 -3
- package/dist/src/views/team/member/ExistingMemberNotice.vue.d.ts +11 -0
- package/dist/src/views/team/member/MemberDetailsCard.vue.d.ts +35 -0
- package/dist/src/views/team/member/MemberHeaderCard.vue.d.ts +19 -0
- package/dist/src/views/team/member/TeamMemberList.vue.d.ts +1 -0
- package/dist/string-DZQ1uNjn.js +22 -0
- package/dist/style.css +1 -1
- package/dist/timesheet-CZHcebqS.js +76 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-Bp0PwbAN.js → useAppStore-DfqsbhT2.js} +1 -1
- package/dist/{useLoading-sgL8DRUz.js → useLoading-CQnX5WjI.js} +1 -1
- package/dist/useMessage-_ywT_N9X.js +17 -0
- package/dist/{useReportPermissions-CcIHwTRI.js → useReportPermissions-kTjftFk7.js} +13 -13
- package/package.json +4 -4
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BZ-ZDviW.js +0 -438
- package/dist/EmployeeList-Cucr2mxn.js +0 -776
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-4XV2qPxn.js +0 -45
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +0 -49
- package/dist/Main-B-F_cdM_.js +0 -96
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +0 -243
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ClG4YhnF.js +0 -4167
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DaAx79pC.js +0 -35
- package/dist/RoleList-BqR_Vf8H.js +0 -740
- package/dist/TeamMemberList-B6ZnfKV0.js +0 -1154
- package/dist/TimesheetList-BvsUk6kd.js +0 -402
- package/dist/TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-D3--3EhR.js +0 -58
- package/dist/employee-H2J0xRqJ.js +0 -209
- package/dist/restaurant-CHpkjUPy.js +0 -1880
- package/dist/role-CkxDtfst.js +0 -92
- package/dist/rule-BWvSqhBk.js +0 -783
- package/dist/string-VNuQNweN.js +0 -15
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IFdtoGrantUser, IFdtoCreateGrantUserReq } from '@/types/grant-user';
|
|
2
|
-
export declare const useGrantUserStore: import("pinia").StoreDefinition<"
|
|
2
|
+
export declare const useGrantUserStore: import("pinia").StoreDefinition<"hrm-grant-user", Pick<{
|
|
3
3
|
grantUsers: import("vue").Ref<{
|
|
4
4
|
_id: string;
|
|
5
5
|
passcode: string;
|
|
@@ -156,7 +156,7 @@ export declare const usePermissionAssignmentStore: () => {
|
|
|
156
156
|
}, "permissionAssignments">>, options?: {
|
|
157
157
|
detached?: boolean;
|
|
158
158
|
} & import("vue").WatchOptions): () => void;
|
|
159
|
-
$onAction(callback: import("pinia").StoreOnActionListener<"
|
|
159
|
+
$onAction(callback: import("pinia").StoreOnActionListener<"hrm-permission-assignment", Pick<{
|
|
160
160
|
permissionAssignments: import("vue").Ref<{
|
|
161
161
|
id: string;
|
|
162
162
|
customPermissions: {
|
|
@@ -266,7 +266,7 @@ export declare const usePermissionAssignmentStore: () => {
|
|
|
266
266
|
getPermissionAssignmentByUserId: (userId: string) => IFdtoPermissionAssignment | undefined;
|
|
267
267
|
}, "readPermissionAssignments" | "readPermissionAssignmentByUserId" | "createPermissionAssignment" | "updatePermissionAssignment" | "deletePermissionAssignment" | "getPermissionAssignmentByUserId">>, detached?: boolean): () => void;
|
|
268
268
|
$dispose(): void;
|
|
269
|
-
$id: "
|
|
269
|
+
$id: "hrm-permission-assignment";
|
|
270
270
|
_customProperties: Set<string>;
|
|
271
271
|
readPermissionAssignments: () => Promise<void>;
|
|
272
272
|
readPermissionAssignmentByUserId: (userId: string) => Promise<IFdtoPermissionAssignment | null>;
|
|
@@ -158,7 +158,7 @@ export declare const usePermissionSetStore: () => {
|
|
|
158
158
|
}, "isLoading" | "permissionSets">>, options?: {
|
|
159
159
|
detached?: boolean;
|
|
160
160
|
} & import("vue").WatchOptions): () => void;
|
|
161
|
-
$onAction(callback: import("pinia").StoreOnActionListener<"
|
|
161
|
+
$onAction(callback: import("pinia").StoreOnActionListener<"hrm-permission-set", Pick<{
|
|
162
162
|
permissionSets: import("vue").Ref<{
|
|
163
163
|
id: string;
|
|
164
164
|
permissions: {
|
|
@@ -265,7 +265,7 @@ export declare const usePermissionSetStore: () => {
|
|
|
265
265
|
deletePermissionSet: (id: string) => Promise<void>;
|
|
266
266
|
}, "readPermissionSets" | "createPermissionSet" | "updatePermissionSet" | "deletePermissionSet">>, detached?: boolean): () => void;
|
|
267
267
|
$dispose(): void;
|
|
268
|
-
$id: "
|
|
268
|
+
$id: "hrm-permission-set";
|
|
269
269
|
_customProperties: Set<string>;
|
|
270
270
|
readPermissionSets: () => Promise<void>;
|
|
271
271
|
createPermissionSet: (dto: IFdtoCreatePermissionSetReq) => Promise<void>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { HrmRestaurant } from '@/types/restaurant';
|
|
2
2
|
export declare const useRestaurantStore: () => {
|
|
3
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
3
4
|
restaurants: import("vue").Ref<{
|
|
4
5
|
_id: string;
|
|
5
6
|
businessId: string;
|
|
@@ -19,8 +20,18 @@ export declare const useRestaurantStore: () => {
|
|
|
19
20
|
};
|
|
20
21
|
managable: boolean;
|
|
21
22
|
}[]>;
|
|
22
|
-
|
|
23
|
+
restaurantsById: import("vue").ComputedRef<Map<string, {
|
|
24
|
+
_id: string;
|
|
25
|
+
businessId: string;
|
|
26
|
+
profile: {
|
|
27
|
+
name: string;
|
|
28
|
+
code?: string | undefined;
|
|
29
|
+
legalName: string;
|
|
30
|
+
};
|
|
31
|
+
managable: boolean;
|
|
32
|
+
}>>;
|
|
23
33
|
$state: {
|
|
34
|
+
isLoading: boolean;
|
|
24
35
|
restaurants: {
|
|
25
36
|
_id: string;
|
|
26
37
|
businessId: string;
|
|
@@ -31,7 +42,6 @@ export declare const useRestaurantStore: () => {
|
|
|
31
42
|
};
|
|
32
43
|
managable: boolean;
|
|
33
44
|
}[];
|
|
34
|
-
isLoading: boolean;
|
|
35
45
|
} & import("pinia").PiniaCustomStateProperties<Pick<{
|
|
36
46
|
restaurants: import("vue").Ref<{
|
|
37
47
|
_id: string;
|
|
@@ -52,10 +62,21 @@ export declare const useRestaurantStore: () => {
|
|
|
52
62
|
};
|
|
53
63
|
managable: boolean;
|
|
54
64
|
}[]>;
|
|
65
|
+
restaurantsById: import("vue").ComputedRef<Map<string, {
|
|
66
|
+
_id: string;
|
|
67
|
+
businessId: string;
|
|
68
|
+
profile: {
|
|
69
|
+
name: string;
|
|
70
|
+
code?: string | undefined;
|
|
71
|
+
legalName: string;
|
|
72
|
+
};
|
|
73
|
+
managable: boolean;
|
|
74
|
+
}>>;
|
|
55
75
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
56
76
|
readRestaurants: (force?: boolean) => Promise<void>;
|
|
57
|
-
}, "
|
|
77
|
+
}, "isLoading" | "restaurants">>;
|
|
58
78
|
$patch(partialState: import("pinia")._DeepPartial<{
|
|
79
|
+
isLoading: boolean;
|
|
59
80
|
restaurants: {
|
|
60
81
|
_id: string;
|
|
61
82
|
businessId: string;
|
|
@@ -66,9 +87,9 @@ export declare const useRestaurantStore: () => {
|
|
|
66
87
|
};
|
|
67
88
|
managable: boolean;
|
|
68
89
|
}[];
|
|
69
|
-
isLoading: boolean;
|
|
70
90
|
}>): void;
|
|
71
91
|
$patch<F extends (state: {
|
|
92
|
+
isLoading: boolean;
|
|
72
93
|
restaurants: {
|
|
73
94
|
_id: string;
|
|
74
95
|
businessId: string;
|
|
@@ -79,7 +100,6 @@ export declare const useRestaurantStore: () => {
|
|
|
79
100
|
};
|
|
80
101
|
managable: boolean;
|
|
81
102
|
}[];
|
|
82
|
-
isLoading: boolean;
|
|
83
103
|
}) => any>(stateMutator: ReturnType<F> extends Promise<any> ? never : F): void;
|
|
84
104
|
$reset(): void;
|
|
85
105
|
$subscribe(callback: import("pinia").SubscriptionCallback<Pick<{
|
|
@@ -102,12 +122,22 @@ export declare const useRestaurantStore: () => {
|
|
|
102
122
|
};
|
|
103
123
|
managable: boolean;
|
|
104
124
|
}[]>;
|
|
125
|
+
restaurantsById: import("vue").ComputedRef<Map<string, {
|
|
126
|
+
_id: string;
|
|
127
|
+
businessId: string;
|
|
128
|
+
profile: {
|
|
129
|
+
name: string;
|
|
130
|
+
code?: string | undefined;
|
|
131
|
+
legalName: string;
|
|
132
|
+
};
|
|
133
|
+
managable: boolean;
|
|
134
|
+
}>>;
|
|
105
135
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
106
136
|
readRestaurants: (force?: boolean) => Promise<void>;
|
|
107
|
-
}, "
|
|
137
|
+
}, "isLoading" | "restaurants">>, options?: {
|
|
108
138
|
detached?: boolean;
|
|
109
139
|
} & import("vue").WatchOptions): () => void;
|
|
110
|
-
$onAction(callback: import("pinia").StoreOnActionListener<"restaurant", Pick<{
|
|
140
|
+
$onAction(callback: import("pinia").StoreOnActionListener<"hrm-restaurant", Pick<{
|
|
111
141
|
restaurants: import("vue").Ref<{
|
|
112
142
|
_id: string;
|
|
113
143
|
businessId: string;
|
|
@@ -127,9 +157,19 @@ export declare const useRestaurantStore: () => {
|
|
|
127
157
|
};
|
|
128
158
|
managable: boolean;
|
|
129
159
|
}[]>;
|
|
160
|
+
restaurantsById: import("vue").ComputedRef<Map<string, {
|
|
161
|
+
_id: string;
|
|
162
|
+
businessId: string;
|
|
163
|
+
profile: {
|
|
164
|
+
name: string;
|
|
165
|
+
code?: string | undefined;
|
|
166
|
+
legalName: string;
|
|
167
|
+
};
|
|
168
|
+
managable: boolean;
|
|
169
|
+
}>>;
|
|
130
170
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
131
171
|
readRestaurants: (force?: boolean) => Promise<void>;
|
|
132
|
-
}, "
|
|
172
|
+
}, "isLoading" | "restaurants">, Pick<{
|
|
133
173
|
restaurants: import("vue").Ref<{
|
|
134
174
|
_id: string;
|
|
135
175
|
businessId: string;
|
|
@@ -149,9 +189,19 @@ export declare const useRestaurantStore: () => {
|
|
|
149
189
|
};
|
|
150
190
|
managable: boolean;
|
|
151
191
|
}[]>;
|
|
192
|
+
restaurantsById: import("vue").ComputedRef<Map<string, {
|
|
193
|
+
_id: string;
|
|
194
|
+
businessId: string;
|
|
195
|
+
profile: {
|
|
196
|
+
name: string;
|
|
197
|
+
code?: string | undefined;
|
|
198
|
+
legalName: string;
|
|
199
|
+
};
|
|
200
|
+
managable: boolean;
|
|
201
|
+
}>>;
|
|
152
202
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
153
203
|
readRestaurants: (force?: boolean) => Promise<void>;
|
|
154
|
-
},
|
|
204
|
+
}, "restaurantsById">, Pick<{
|
|
155
205
|
restaurants: import("vue").Ref<{
|
|
156
206
|
_id: string;
|
|
157
207
|
businessId: string;
|
|
@@ -171,11 +221,21 @@ export declare const useRestaurantStore: () => {
|
|
|
171
221
|
};
|
|
172
222
|
managable: boolean;
|
|
173
223
|
}[]>;
|
|
224
|
+
restaurantsById: import("vue").ComputedRef<Map<string, {
|
|
225
|
+
_id: string;
|
|
226
|
+
businessId: string;
|
|
227
|
+
profile: {
|
|
228
|
+
name: string;
|
|
229
|
+
code?: string | undefined;
|
|
230
|
+
legalName: string;
|
|
231
|
+
};
|
|
232
|
+
managable: boolean;
|
|
233
|
+
}>>;
|
|
174
234
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
175
235
|
readRestaurants: (force?: boolean) => Promise<void>;
|
|
176
236
|
}, "readRestaurants">>, detached?: boolean): () => void;
|
|
177
237
|
$dispose(): void;
|
|
178
|
-
$id: "restaurant";
|
|
238
|
+
$id: "hrm-restaurant";
|
|
179
239
|
_customProperties: Set<string>;
|
|
180
240
|
readRestaurants: (force?: boolean) => Promise<void>;
|
|
181
241
|
};
|
|
@@ -122,7 +122,7 @@ export declare const useRoleStore: () => {
|
|
|
122
122
|
}, "isLoading" | "roles">>, options?: {
|
|
123
123
|
detached?: boolean;
|
|
124
124
|
} & import("vue").WatchOptions): () => void;
|
|
125
|
-
$onAction(callback: import("pinia").StoreOnActionListener<"role", Pick<{
|
|
125
|
+
$onAction(callback: import("pinia").StoreOnActionListener<"hrm-role", Pick<{
|
|
126
126
|
roles: import("vue").Ref<{
|
|
127
127
|
restaurants: {
|
|
128
128
|
id: string;
|
|
@@ -205,7 +205,7 @@ export declare const useRoleStore: () => {
|
|
|
205
205
|
deleteRole: (role: Role) => Promise<void>;
|
|
206
206
|
}, "readRoles" | "createRole" | "updateRole" | "deleteRole">>, detached?: boolean): () => void;
|
|
207
207
|
$dispose(): void;
|
|
208
|
-
$id: "role";
|
|
208
|
+
$id: "hrm-role";
|
|
209
209
|
_customProperties: Set<string>;
|
|
210
210
|
readRoles: (force?: boolean) => Promise<void>;
|
|
211
211
|
createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FTeamMember } from '@/types/team';
|
|
2
|
-
declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
2
|
+
declare const useTeamStore: import("pinia").StoreDefinition<"hrm-team", Pick<{
|
|
3
3
|
members: import("vue").Ref<{
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
@@ -17,6 +17,8 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
17
17
|
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
18
18
|
}[];
|
|
19
19
|
permissionLabels: string[];
|
|
20
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
21
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
20
22
|
doc: {
|
|
21
23
|
id: string;
|
|
22
24
|
posUserId: string;
|
|
@@ -34,6 +36,9 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
34
36
|
roleId: string;
|
|
35
37
|
}[];
|
|
36
38
|
} | undefined;
|
|
39
|
+
employeeId?: string | null | undefined;
|
|
40
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
41
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
37
42
|
businessId: string;
|
|
38
43
|
userId: string;
|
|
39
44
|
permissions: {
|
|
@@ -63,6 +68,8 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
63
68
|
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
64
69
|
}[];
|
|
65
70
|
permissionLabels: string[];
|
|
71
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
72
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
66
73
|
doc: {
|
|
67
74
|
id: string;
|
|
68
75
|
posUserId: string;
|
|
@@ -80,6 +87,9 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
80
87
|
roleId: string;
|
|
81
88
|
}[];
|
|
82
89
|
} | undefined;
|
|
90
|
+
employeeId?: string | null | undefined;
|
|
91
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
92
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
83
93
|
businessId: string;
|
|
84
94
|
userId: string;
|
|
85
95
|
permissions: {
|
|
@@ -119,6 +129,8 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
119
129
|
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
120
130
|
}[];
|
|
121
131
|
permissionLabels: string[];
|
|
132
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
133
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
122
134
|
doc: {
|
|
123
135
|
id: string;
|
|
124
136
|
posUserId: string;
|
|
@@ -136,6 +148,9 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
136
148
|
roleId: string;
|
|
137
149
|
}[];
|
|
138
150
|
} | undefined;
|
|
151
|
+
employeeId?: string | null | undefined;
|
|
152
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
153
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
139
154
|
businessId: string;
|
|
140
155
|
userId: string;
|
|
141
156
|
permissions: {
|
|
@@ -165,6 +180,8 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
165
180
|
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
166
181
|
}[];
|
|
167
182
|
permissionLabels: string[];
|
|
183
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
184
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
168
185
|
doc: {
|
|
169
186
|
id: string;
|
|
170
187
|
posUserId: string;
|
|
@@ -182,6 +199,9 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
182
199
|
roleId: string;
|
|
183
200
|
}[];
|
|
184
201
|
} | undefined;
|
|
202
|
+
employeeId?: string | null | undefined;
|
|
203
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
204
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
185
205
|
businessId: string;
|
|
186
206
|
userId: string;
|
|
187
207
|
permissions: {
|
|
@@ -221,6 +241,8 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
221
241
|
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
222
242
|
}[];
|
|
223
243
|
permissionLabels: string[];
|
|
244
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
245
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
224
246
|
doc: {
|
|
225
247
|
id: string;
|
|
226
248
|
posUserId: string;
|
|
@@ -238,6 +260,9 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
238
260
|
roleId: string;
|
|
239
261
|
}[];
|
|
240
262
|
} | undefined;
|
|
263
|
+
employeeId?: string | null | undefined;
|
|
264
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
265
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
241
266
|
businessId: string;
|
|
242
267
|
userId: string;
|
|
243
268
|
permissions: {
|
|
@@ -267,6 +292,8 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
267
292
|
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
268
293
|
}[];
|
|
269
294
|
permissionLabels: string[];
|
|
295
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
296
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
270
297
|
doc: {
|
|
271
298
|
id: string;
|
|
272
299
|
posUserId: string;
|
|
@@ -284,6 +311,9 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
284
311
|
roleId: string;
|
|
285
312
|
}[];
|
|
286
313
|
} | undefined;
|
|
314
|
+
employeeId?: string | null | undefined;
|
|
315
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
316
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
287
317
|
businessId: string;
|
|
288
318
|
userId: string;
|
|
289
319
|
permissions: {
|
|
@@ -5,13 +5,14 @@ export declare const useTimesheetStore: () => {
|
|
|
5
5
|
end: string;
|
|
6
6
|
totalMin: number;
|
|
7
7
|
duration: string;
|
|
8
|
-
restaurantId: string;
|
|
9
|
-
restaurantName: string;
|
|
10
|
-
endedAt?: string | null | undefined | undefined;
|
|
11
8
|
user: {
|
|
12
9
|
name: string;
|
|
13
10
|
id: string;
|
|
11
|
+
code?: string | undefined;
|
|
14
12
|
};
|
|
13
|
+
restaurantId: string;
|
|
14
|
+
restaurantName: string;
|
|
15
|
+
endedAt?: string | null | undefined | undefined;
|
|
15
16
|
_id: string;
|
|
16
17
|
startedAt: string;
|
|
17
18
|
}[], Timesheet[] | {
|
|
@@ -19,13 +20,14 @@ export declare const useTimesheetStore: () => {
|
|
|
19
20
|
end: string;
|
|
20
21
|
totalMin: number;
|
|
21
22
|
duration: string;
|
|
22
|
-
restaurantId: string;
|
|
23
|
-
restaurantName: string;
|
|
24
|
-
endedAt?: string | null | undefined | undefined;
|
|
25
23
|
user: {
|
|
26
24
|
name: string;
|
|
27
25
|
id: string;
|
|
26
|
+
code?: string | undefined;
|
|
28
27
|
};
|
|
28
|
+
restaurantId: string;
|
|
29
|
+
restaurantName: string;
|
|
30
|
+
endedAt?: string | null | undefined | undefined;
|
|
29
31
|
_id: string;
|
|
30
32
|
startedAt: string;
|
|
31
33
|
}[]>;
|
|
@@ -35,13 +37,14 @@ export declare const useTimesheetStore: () => {
|
|
|
35
37
|
end: string;
|
|
36
38
|
totalMin: number;
|
|
37
39
|
duration: string;
|
|
38
|
-
restaurantId: string;
|
|
39
|
-
restaurantName: string;
|
|
40
|
-
endedAt?: string | null | undefined | undefined;
|
|
41
40
|
user: {
|
|
42
41
|
name: string;
|
|
43
42
|
id: string;
|
|
43
|
+
code?: string | undefined;
|
|
44
44
|
};
|
|
45
|
+
restaurantId: string;
|
|
46
|
+
restaurantName: string;
|
|
47
|
+
endedAt?: string | null | undefined | undefined;
|
|
45
48
|
_id: string;
|
|
46
49
|
startedAt: string;
|
|
47
50
|
}[];
|
|
@@ -51,13 +54,14 @@ export declare const useTimesheetStore: () => {
|
|
|
51
54
|
end: string;
|
|
52
55
|
totalMin: number;
|
|
53
56
|
duration: string;
|
|
54
|
-
restaurantId: string;
|
|
55
|
-
restaurantName: string;
|
|
56
|
-
endedAt?: string | null | undefined | undefined;
|
|
57
57
|
user: {
|
|
58
58
|
name: string;
|
|
59
59
|
id: string;
|
|
60
|
+
code?: string | undefined;
|
|
60
61
|
};
|
|
62
|
+
restaurantId: string;
|
|
63
|
+
restaurantName: string;
|
|
64
|
+
endedAt?: string | null | undefined | undefined;
|
|
61
65
|
_id: string;
|
|
62
66
|
startedAt: string;
|
|
63
67
|
}[], Timesheet[] | {
|
|
@@ -65,17 +69,18 @@ export declare const useTimesheetStore: () => {
|
|
|
65
69
|
end: string;
|
|
66
70
|
totalMin: number;
|
|
67
71
|
duration: string;
|
|
68
|
-
restaurantId: string;
|
|
69
|
-
restaurantName: string;
|
|
70
|
-
endedAt?: string | null | undefined | undefined;
|
|
71
72
|
user: {
|
|
72
73
|
name: string;
|
|
73
74
|
id: string;
|
|
75
|
+
code?: string | undefined;
|
|
74
76
|
};
|
|
77
|
+
restaurantId: string;
|
|
78
|
+
restaurantName: string;
|
|
79
|
+
endedAt?: string | null | undefined | undefined;
|
|
75
80
|
_id: string;
|
|
76
81
|
startedAt: string;
|
|
77
82
|
}[]>;
|
|
78
|
-
readTimesheet: (start: Date, end: Date) => Promise<void>;
|
|
83
|
+
readTimesheet: (start: Date, end: Date, restaurantIds?: string[]) => Promise<void>;
|
|
79
84
|
updateTimesheet: (timesheet: IFdtoTimesheet, start: string, end: string) => Promise<void>;
|
|
80
85
|
}, "timesheets">>;
|
|
81
86
|
$patch(partialState: import("pinia")._DeepPartial<{
|
|
@@ -84,13 +89,14 @@ export declare const useTimesheetStore: () => {
|
|
|
84
89
|
end: string;
|
|
85
90
|
totalMin: number;
|
|
86
91
|
duration: string;
|
|
87
|
-
restaurantId: string;
|
|
88
|
-
restaurantName: string;
|
|
89
|
-
endedAt?: string | null | undefined | undefined;
|
|
90
92
|
user: {
|
|
91
93
|
name: string;
|
|
92
94
|
id: string;
|
|
95
|
+
code?: string | undefined;
|
|
93
96
|
};
|
|
97
|
+
restaurantId: string;
|
|
98
|
+
restaurantName: string;
|
|
99
|
+
endedAt?: string | null | undefined | undefined;
|
|
94
100
|
_id: string;
|
|
95
101
|
startedAt: string;
|
|
96
102
|
}[];
|
|
@@ -101,13 +107,14 @@ export declare const useTimesheetStore: () => {
|
|
|
101
107
|
end: string;
|
|
102
108
|
totalMin: number;
|
|
103
109
|
duration: string;
|
|
104
|
-
restaurantId: string;
|
|
105
|
-
restaurantName: string;
|
|
106
|
-
endedAt?: string | null | undefined | undefined;
|
|
107
110
|
user: {
|
|
108
111
|
name: string;
|
|
109
112
|
id: string;
|
|
113
|
+
code?: string | undefined;
|
|
110
114
|
};
|
|
115
|
+
restaurantId: string;
|
|
116
|
+
restaurantName: string;
|
|
117
|
+
endedAt?: string | null | undefined | undefined;
|
|
111
118
|
_id: string;
|
|
112
119
|
startedAt: string;
|
|
113
120
|
}[];
|
|
@@ -119,13 +126,14 @@ export declare const useTimesheetStore: () => {
|
|
|
119
126
|
end: string;
|
|
120
127
|
totalMin: number;
|
|
121
128
|
duration: string;
|
|
122
|
-
restaurantId: string;
|
|
123
|
-
restaurantName: string;
|
|
124
|
-
endedAt?: string | null | undefined | undefined;
|
|
125
129
|
user: {
|
|
126
130
|
name: string;
|
|
127
131
|
id: string;
|
|
132
|
+
code?: string | undefined;
|
|
128
133
|
};
|
|
134
|
+
restaurantId: string;
|
|
135
|
+
restaurantName: string;
|
|
136
|
+
endedAt?: string | null | undefined | undefined;
|
|
129
137
|
_id: string;
|
|
130
138
|
startedAt: string;
|
|
131
139
|
}[], Timesheet[] | {
|
|
@@ -133,34 +141,36 @@ export declare const useTimesheetStore: () => {
|
|
|
133
141
|
end: string;
|
|
134
142
|
totalMin: number;
|
|
135
143
|
duration: string;
|
|
136
|
-
restaurantId: string;
|
|
137
|
-
restaurantName: string;
|
|
138
|
-
endedAt?: string | null | undefined | undefined;
|
|
139
144
|
user: {
|
|
140
145
|
name: string;
|
|
141
146
|
id: string;
|
|
147
|
+
code?: string | undefined;
|
|
142
148
|
};
|
|
149
|
+
restaurantId: string;
|
|
150
|
+
restaurantName: string;
|
|
151
|
+
endedAt?: string | null | undefined | undefined;
|
|
143
152
|
_id: string;
|
|
144
153
|
startedAt: string;
|
|
145
154
|
}[]>;
|
|
146
|
-
readTimesheet: (start: Date, end: Date) => Promise<void>;
|
|
155
|
+
readTimesheet: (start: Date, end: Date, restaurantIds?: string[]) => Promise<void>;
|
|
147
156
|
updateTimesheet: (timesheet: IFdtoTimesheet, start: string, end: string) => Promise<void>;
|
|
148
157
|
}, "timesheets">>, options?: {
|
|
149
158
|
detached?: boolean;
|
|
150
159
|
} & import("vue").WatchOptions): () => void;
|
|
151
|
-
$onAction(callback: import("pinia").StoreOnActionListener<"timesheet", Pick<{
|
|
160
|
+
$onAction(callback: import("pinia").StoreOnActionListener<"hrm-timesheet", Pick<{
|
|
152
161
|
timesheets: import("vue").Ref<{
|
|
153
162
|
start: string;
|
|
154
163
|
end: string;
|
|
155
164
|
totalMin: number;
|
|
156
165
|
duration: string;
|
|
157
|
-
restaurantId: string;
|
|
158
|
-
restaurantName: string;
|
|
159
|
-
endedAt?: string | null | undefined | undefined;
|
|
160
166
|
user: {
|
|
161
167
|
name: string;
|
|
162
168
|
id: string;
|
|
169
|
+
code?: string | undefined;
|
|
163
170
|
};
|
|
171
|
+
restaurantId: string;
|
|
172
|
+
restaurantName: string;
|
|
173
|
+
endedAt?: string | null | undefined | undefined;
|
|
164
174
|
_id: string;
|
|
165
175
|
startedAt: string;
|
|
166
176
|
}[], Timesheet[] | {
|
|
@@ -168,17 +178,18 @@ export declare const useTimesheetStore: () => {
|
|
|
168
178
|
end: string;
|
|
169
179
|
totalMin: number;
|
|
170
180
|
duration: string;
|
|
171
|
-
restaurantId: string;
|
|
172
|
-
restaurantName: string;
|
|
173
|
-
endedAt?: string | null | undefined | undefined;
|
|
174
181
|
user: {
|
|
175
182
|
name: string;
|
|
176
183
|
id: string;
|
|
184
|
+
code?: string | undefined;
|
|
177
185
|
};
|
|
186
|
+
restaurantId: string;
|
|
187
|
+
restaurantName: string;
|
|
188
|
+
endedAt?: string | null | undefined | undefined;
|
|
178
189
|
_id: string;
|
|
179
190
|
startedAt: string;
|
|
180
191
|
}[]>;
|
|
181
|
-
readTimesheet: (start: Date, end: Date) => Promise<void>;
|
|
192
|
+
readTimesheet: (start: Date, end: Date, restaurantIds?: string[]) => Promise<void>;
|
|
182
193
|
updateTimesheet: (timesheet: IFdtoTimesheet, start: string, end: string) => Promise<void>;
|
|
183
194
|
}, "timesheets">, Pick<{
|
|
184
195
|
timesheets: import("vue").Ref<{
|
|
@@ -186,13 +197,14 @@ export declare const useTimesheetStore: () => {
|
|
|
186
197
|
end: string;
|
|
187
198
|
totalMin: number;
|
|
188
199
|
duration: string;
|
|
189
|
-
restaurantId: string;
|
|
190
|
-
restaurantName: string;
|
|
191
|
-
endedAt?: string | null | undefined | undefined;
|
|
192
200
|
user: {
|
|
193
201
|
name: string;
|
|
194
202
|
id: string;
|
|
203
|
+
code?: string | undefined;
|
|
195
204
|
};
|
|
205
|
+
restaurantId: string;
|
|
206
|
+
restaurantName: string;
|
|
207
|
+
endedAt?: string | null | undefined | undefined;
|
|
196
208
|
_id: string;
|
|
197
209
|
startedAt: string;
|
|
198
210
|
}[], Timesheet[] | {
|
|
@@ -200,17 +212,18 @@ export declare const useTimesheetStore: () => {
|
|
|
200
212
|
end: string;
|
|
201
213
|
totalMin: number;
|
|
202
214
|
duration: string;
|
|
203
|
-
restaurantId: string;
|
|
204
|
-
restaurantName: string;
|
|
205
|
-
endedAt?: string | null | undefined | undefined;
|
|
206
215
|
user: {
|
|
207
216
|
name: string;
|
|
208
217
|
id: string;
|
|
218
|
+
code?: string | undefined;
|
|
209
219
|
};
|
|
220
|
+
restaurantId: string;
|
|
221
|
+
restaurantName: string;
|
|
222
|
+
endedAt?: string | null | undefined | undefined;
|
|
210
223
|
_id: string;
|
|
211
224
|
startedAt: string;
|
|
212
225
|
}[]>;
|
|
213
|
-
readTimesheet: (start: Date, end: Date) => Promise<void>;
|
|
226
|
+
readTimesheet: (start: Date, end: Date, restaurantIds?: string[]) => Promise<void>;
|
|
214
227
|
updateTimesheet: (timesheet: IFdtoTimesheet, start: string, end: string) => Promise<void>;
|
|
215
228
|
}, never>, Pick<{
|
|
216
229
|
timesheets: import("vue").Ref<{
|
|
@@ -218,13 +231,14 @@ export declare const useTimesheetStore: () => {
|
|
|
218
231
|
end: string;
|
|
219
232
|
totalMin: number;
|
|
220
233
|
duration: string;
|
|
221
|
-
restaurantId: string;
|
|
222
|
-
restaurantName: string;
|
|
223
|
-
endedAt?: string | null | undefined | undefined;
|
|
224
234
|
user: {
|
|
225
235
|
name: string;
|
|
226
236
|
id: string;
|
|
237
|
+
code?: string | undefined;
|
|
227
238
|
};
|
|
239
|
+
restaurantId: string;
|
|
240
|
+
restaurantName: string;
|
|
241
|
+
endedAt?: string | null | undefined | undefined;
|
|
228
242
|
_id: string;
|
|
229
243
|
startedAt: string;
|
|
230
244
|
}[], Timesheet[] | {
|
|
@@ -232,22 +246,23 @@ export declare const useTimesheetStore: () => {
|
|
|
232
246
|
end: string;
|
|
233
247
|
totalMin: number;
|
|
234
248
|
duration: string;
|
|
235
|
-
restaurantId: string;
|
|
236
|
-
restaurantName: string;
|
|
237
|
-
endedAt?: string | null | undefined | undefined;
|
|
238
249
|
user: {
|
|
239
250
|
name: string;
|
|
240
251
|
id: string;
|
|
252
|
+
code?: string | undefined;
|
|
241
253
|
};
|
|
254
|
+
restaurantId: string;
|
|
255
|
+
restaurantName: string;
|
|
256
|
+
endedAt?: string | null | undefined | undefined;
|
|
242
257
|
_id: string;
|
|
243
258
|
startedAt: string;
|
|
244
259
|
}[]>;
|
|
245
|
-
readTimesheet: (start: Date, end: Date) => Promise<void>;
|
|
260
|
+
readTimesheet: (start: Date, end: Date, restaurantIds?: string[]) => Promise<void>;
|
|
246
261
|
updateTimesheet: (timesheet: IFdtoTimesheet, start: string, end: string) => Promise<void>;
|
|
247
262
|
}, "readTimesheet" | "updateTimesheet">>, detached?: boolean): () => void;
|
|
248
263
|
$dispose(): void;
|
|
249
|
-
$id: "timesheet";
|
|
264
|
+
$id: "hrm-timesheet";
|
|
250
265
|
_customProperties: Set<string>;
|
|
251
|
-
readTimesheet: (start: Date, end: Date) => Promise<void>;
|
|
266
|
+
readTimesheet: (start: Date, end: Date, restaurantIds?: string[]) => Promise<void>;
|
|
252
267
|
updateTimesheet: (timesheet: IFdtoTimesheet, start: string, end: string) => Promise<void>;
|
|
253
268
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** GET /my-pos-profile response (shared contract with the HRM menu, KDI-5225). */
|
|
2
|
+
export interface FdtoMyPosProfile {
|
|
3
|
+
hasPosUser: boolean;
|
|
4
|
+
profile: null | {
|
|
5
|
+
name: string;
|
|
6
|
+
/** The caller's own current passcode, shown on reveal (D50). */
|
|
7
|
+
passcode: string;
|
|
8
|
+
phoneNumber: string | null;
|
|
9
|
+
email: string | null;
|
|
10
|
+
assignments: {
|
|
11
|
+
restaurantId: string;
|
|
12
|
+
restaurantName: string;
|
|
13
|
+
restaurantCode: string | null;
|
|
14
|
+
roleId: string;
|
|
15
|
+
roleName: string;
|
|
16
|
+
}[];
|
|
17
|
+
passcodeUpdatedAt: string | null;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export type FdtoMyPosProfileAssignment = NonNullable<FdtoMyPosProfile['profile']>['assignments'][number];
|
|
21
|
+
export interface FdtoRegenerateMyPosPasscodeRes {
|
|
22
|
+
passcode: string;
|
|
23
|
+
passcodeUpdatedAt: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StaffInviteMatch } from '@/types/staff-invite';
|
|
2
|
+
/** A business's SSO provider (GET /businesses/:businessId/sso-providers), on or off. */
|
|
3
|
+
export interface IFdtoSsoProvider {
|
|
4
|
+
slug: string;
|
|
5
|
+
label: string;
|
|
6
|
+
type: string;
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
/** The key invites match people on; `none` turns invites off for this provider. */
|
|
9
|
+
inviteMatch: StaffInviteMatch | 'none';
|
|
10
|
+
}
|