@feedmepos/mf-hrm-portal 2.0.11 → 2.0.12-dev
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/AuditLogList-Am6PW6qN.js +941 -0
- package/dist/EmployeeList-00LF0l6U.js +696 -0
- package/dist/{Main-SeHua_qu.js → Main-BC_y5Gzg.js} +4 -4
- package/dist/{Main-C-iGHHd0.js → Main-BY_V1guq.js} +2469 -2459
- package/dist/{Main-Dsuhh6Fk.js → Main-Chau30wK.js} +8 -9
- package/dist/{PermissionSetList-BncaRNzo.js → PermissionSetList-CDUFrGRE.js} +124 -128
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang--O2VRpc8.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CGIontQw.js} +950 -950
- package/dist/RoleList-BVQ4zkA8.js +519 -0
- package/dist/TeamMemberList-D65MpqIr.js +1098 -0
- package/dist/{TimesheetList-B1-VPwJq.js → TimesheetList-Dc295zCI.js} +74 -74
- package/dist/{app-DpmQDU7C.js → app-Iv5hLrRX.js} +50 -47
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-BJfcKBYO.js → dayjs.min-CJGjjQIJ.js} +1 -1
- package/dist/employee-C2Qhr8xO.js +207 -0
- package/dist/{index-F3OZA8nn.js → index-5ziPpN4I.js} +107 -84
- package/dist/{index-UgV84dZR.js → index-DzRWjF3a.js} +1 -1
- package/dist/{iteration-CF55rP35.js → iteration-L8TLGaCI.js} +489 -477
- package/dist/{lodash-CFUqrzKZ.js → lodash-Bbes-RWy.js} +1 -1
- package/dist/src/api/employee/index.d.ts +9 -8
- package/dist/src/api/team/index.d.ts +3 -1
- package/dist/src/composables/useDebounce.d.ts +9 -0
- package/dist/src/stores/employee.d.ts +515 -6
- package/dist/src/stores/team.d.ts +6 -0
- package/dist/src/types/employee.d.ts +35 -1
- package/dist/src/types/team.d.ts +18 -2
- package/dist/src/views/hr/employee/EmployeeForm.vue.d.ts +6 -2
- package/dist/src/views/hr/employee/EmployeeList.vue.d.ts +3 -0
- package/dist/src/views/team/locales/index.d.ts +3 -0
- package/dist/src/views/team/member/AddMemberForm.vue.d.ts +9 -0
- package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +5 -5
- package/dist/style.css +1 -1
- package/dist/{timesheet-BEr75UJg.js → timesheet-Dbp6blBA.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-qId__2vQ.js → useAppStore-e7cSGuDZ.js} +1 -1
- package/dist/useDebounce-BngBuKwH.js +12 -0
- package/dist/{useLoading-InEdxgzy.js → useLoading-C8ko-jia.js} +1 -1
- package/dist/{useReportPermissions-DOCdQzP7.js → useReportPermissions-B0EDgKey.js} +3 -3
- package/package.json +2 -2
- package/dist/AuditLogList-B1WVHfHe.js +0 -915
- package/dist/EmployeeList-D8pV4P6r.js +0 -621
- package/dist/RoleList-C3R_DmG3.js +0 -499
- package/dist/TeamMemberList-LkYfoLD1.js +0 -989
- package/dist/employee-CtTZ2RR7.js +0 -145
- package/dist/team-B-CRADxz.js +0 -33
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { FdtoUpdatePosUserReq, FdtoUpdatePosMasterUserReq } from '@feedmepos/core/entity';
|
|
2
|
-
import type { IFdtoPosUser } from '@/types/employee';
|
|
2
|
+
import type { Employee, IFdtoEmployeePage, IFdtoPosUser, IReadEmployeesPageReq } from '@/types/employee';
|
|
3
3
|
declare const EmployeeAPI: {
|
|
4
4
|
readEmployees(): Promise<IFdtoPosUser[]>;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
readEmployeesPage(query: IReadEmployeesPageReq): Promise<IFdtoEmployeePage>;
|
|
6
|
+
createEmployee(dto: FdtoUpdatePosUserReq): Promise<void>;
|
|
7
|
+
createMasterEmployee(dto: FdtoUpdatePosMasterUserReq): Promise<void>;
|
|
8
|
+
migrateToMasterEmployee(employeeId: string, dto: FdtoUpdatePosMasterUserReq): Promise<void>;
|
|
9
|
+
updateEmployee(employeeId: string, dto: FdtoUpdatePosUserReq): Promise<void>;
|
|
10
|
+
updateMasterEmployee(employeeId: string, dto: FdtoUpdatePosMasterUserReq): Promise<void>;
|
|
11
|
+
deleteEmployee(employee: Employee): Promise<void>;
|
|
12
|
+
deleteMasterEmployee(employee: Employee): Promise<void>;
|
|
12
13
|
generateEmployeePasscode(): Promise<string>;
|
|
13
14
|
syncUsersMeta(): Promise<void>;
|
|
14
15
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { type IFdtoPortalPermissionsWithVisibilityCondition } from '@feedmepos/hrm-permission';
|
|
2
|
-
import type { FTeamMember, IFdtoCreatePortalUserReq, IFdtoUpdatePortalUserReq } from '@/types/team';
|
|
2
|
+
import type { FTeamMember, IFdtoCreatePortalUserReq, IFdtoTeamMemberPage, IReadTeamMembersPageReq, IFdtoUpdatePortalUserReq } from '@/types/team';
|
|
3
3
|
export declare const portalTeamPermissions: IFdtoPortalPermissionsWithVisibilityCondition[];
|
|
4
4
|
export declare const teamApi: {
|
|
5
5
|
readTeamMembers(): Promise<FTeamMember[]>;
|
|
6
|
+
readTeamMembersPage(query: IReadTeamMembersPageReq): Promise<IFdtoTeamMemberPage>;
|
|
7
|
+
readTeamMember(permissionUserId: string): Promise<FTeamMember>;
|
|
6
8
|
createTeamMember(req: IFdtoCreatePortalUserReq): Promise<FTeamMember>;
|
|
7
9
|
updateTeamMember(permissionUserId: string, req: IFdtoUpdatePortalUserReq): Promise<FTeamMember>;
|
|
8
10
|
deleteTeamMember(permissionUserId: string): Promise<boolean>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Composable for debouncing watch callbacks
|
|
4
|
+
* @param source - The ref to watch
|
|
5
|
+
* @param callback - Function to call after debounce delay
|
|
6
|
+
* @param delay - Debounce delay in milliseconds (default: 300ms)
|
|
7
|
+
* @returns Stop function to stop the watcher
|
|
8
|
+
*/
|
|
9
|
+
export declare function useDebouncedWatch<T>(source: Ref<T>, callback: (newVal: T) => void | Promise<void>, delay?: number): import("vue").WatchHandle;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Employee } from '@/types/employee';
|
|
1
|
+
import type { Employee, FdtoUpdatePosMasterUserReq, FdtoUpdatePosUserReq, IReadEmployeesPageReq } from '@/types/employee';
|
|
3
2
|
export declare const useEmployeeStore: () => {
|
|
4
3
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
5
4
|
employees: import("vue").Ref<({
|
|
@@ -67,6 +66,72 @@ export declare const useEmployeeStore: () => {
|
|
|
67
66
|
}[];
|
|
68
67
|
since: string;
|
|
69
68
|
})[]>;
|
|
69
|
+
listEmployees: import("vue").Ref<({
|
|
70
|
+
faceId?: unknown;
|
|
71
|
+
name: string;
|
|
72
|
+
role: string;
|
|
73
|
+
_id: string;
|
|
74
|
+
passcode: string;
|
|
75
|
+
isMasterUser: boolean;
|
|
76
|
+
restaurantId: string;
|
|
77
|
+
code?: string | undefined;
|
|
78
|
+
restaurants: {
|
|
79
|
+
restaurantId: string;
|
|
80
|
+
restaurantName: string;
|
|
81
|
+
roleId: string;
|
|
82
|
+
roleName: string;
|
|
83
|
+
}[];
|
|
84
|
+
since: string;
|
|
85
|
+
} | {
|
|
86
|
+
code?: string | undefined;
|
|
87
|
+
faceId?: unknown;
|
|
88
|
+
name: string;
|
|
89
|
+
role: string;
|
|
90
|
+
_id: string;
|
|
91
|
+
passcode: string;
|
|
92
|
+
isMasterUser: boolean;
|
|
93
|
+
restaurantId: string;
|
|
94
|
+
restaurants: {
|
|
95
|
+
restaurantId: string;
|
|
96
|
+
restaurantName: string;
|
|
97
|
+
roleId: string;
|
|
98
|
+
roleName: string;
|
|
99
|
+
}[];
|
|
100
|
+
since: string;
|
|
101
|
+
})[], Employee[] | ({
|
|
102
|
+
faceId?: unknown;
|
|
103
|
+
name: string;
|
|
104
|
+
role: string;
|
|
105
|
+
_id: string;
|
|
106
|
+
passcode: string;
|
|
107
|
+
isMasterUser: boolean;
|
|
108
|
+
restaurantId: string;
|
|
109
|
+
code?: string | undefined;
|
|
110
|
+
restaurants: {
|
|
111
|
+
restaurantId: string;
|
|
112
|
+
restaurantName: string;
|
|
113
|
+
roleId: string;
|
|
114
|
+
roleName: string;
|
|
115
|
+
}[];
|
|
116
|
+
since: string;
|
|
117
|
+
} | {
|
|
118
|
+
code?: string | undefined;
|
|
119
|
+
faceId?: unknown;
|
|
120
|
+
name: string;
|
|
121
|
+
role: string;
|
|
122
|
+
_id: string;
|
|
123
|
+
passcode: string;
|
|
124
|
+
isMasterUser: boolean;
|
|
125
|
+
restaurantId: string;
|
|
126
|
+
restaurants: {
|
|
127
|
+
restaurantId: string;
|
|
128
|
+
restaurantName: string;
|
|
129
|
+
roleId: string;
|
|
130
|
+
roleName: string;
|
|
131
|
+
}[];
|
|
132
|
+
since: string;
|
|
133
|
+
})[]>;
|
|
134
|
+
totalEmployees: import("vue").Ref<number, number>;
|
|
70
135
|
restrictEmployeeIds: import("vue").Ref<string[], string[]>;
|
|
71
136
|
$state: {
|
|
72
137
|
isLoading: boolean;
|
|
@@ -103,6 +168,40 @@ export declare const useEmployeeStore: () => {
|
|
|
103
168
|
}[];
|
|
104
169
|
since: string;
|
|
105
170
|
})[];
|
|
171
|
+
listEmployees: ({
|
|
172
|
+
faceId?: unknown;
|
|
173
|
+
name: string;
|
|
174
|
+
role: string;
|
|
175
|
+
_id: string;
|
|
176
|
+
passcode: string;
|
|
177
|
+
isMasterUser: boolean;
|
|
178
|
+
restaurantId: string;
|
|
179
|
+
code?: string | undefined;
|
|
180
|
+
restaurants: {
|
|
181
|
+
restaurantId: string;
|
|
182
|
+
restaurantName: string;
|
|
183
|
+
roleId: string;
|
|
184
|
+
roleName: string;
|
|
185
|
+
}[];
|
|
186
|
+
since: string;
|
|
187
|
+
} | {
|
|
188
|
+
code?: string | undefined;
|
|
189
|
+
faceId?: unknown;
|
|
190
|
+
name: string;
|
|
191
|
+
role: string;
|
|
192
|
+
_id: string;
|
|
193
|
+
passcode: string;
|
|
194
|
+
isMasterUser: boolean;
|
|
195
|
+
restaurantId: string;
|
|
196
|
+
restaurants: {
|
|
197
|
+
restaurantId: string;
|
|
198
|
+
restaurantName: string;
|
|
199
|
+
roleId: string;
|
|
200
|
+
roleName: string;
|
|
201
|
+
}[];
|
|
202
|
+
since: string;
|
|
203
|
+
})[];
|
|
204
|
+
totalEmployees: number;
|
|
106
205
|
restrictEmployeeIds: string[];
|
|
107
206
|
} & import("pinia").PiniaCustomStateProperties<Pick<{
|
|
108
207
|
employees: import("vue").Ref<({
|
|
@@ -170,9 +269,77 @@ export declare const useEmployeeStore: () => {
|
|
|
170
269
|
}[];
|
|
171
270
|
since: string;
|
|
172
271
|
})[]>;
|
|
272
|
+
listEmployees: import("vue").Ref<({
|
|
273
|
+
faceId?: unknown;
|
|
274
|
+
name: string;
|
|
275
|
+
role: string;
|
|
276
|
+
_id: string;
|
|
277
|
+
passcode: string;
|
|
278
|
+
isMasterUser: boolean;
|
|
279
|
+
restaurantId: string;
|
|
280
|
+
code?: string | undefined;
|
|
281
|
+
restaurants: {
|
|
282
|
+
restaurantId: string;
|
|
283
|
+
restaurantName: string;
|
|
284
|
+
roleId: string;
|
|
285
|
+
roleName: string;
|
|
286
|
+
}[];
|
|
287
|
+
since: string;
|
|
288
|
+
} | {
|
|
289
|
+
code?: string | undefined;
|
|
290
|
+
faceId?: unknown;
|
|
291
|
+
name: string;
|
|
292
|
+
role: string;
|
|
293
|
+
_id: string;
|
|
294
|
+
passcode: string;
|
|
295
|
+
isMasterUser: boolean;
|
|
296
|
+
restaurantId: string;
|
|
297
|
+
restaurants: {
|
|
298
|
+
restaurantId: string;
|
|
299
|
+
restaurantName: string;
|
|
300
|
+
roleId: string;
|
|
301
|
+
roleName: string;
|
|
302
|
+
}[];
|
|
303
|
+
since: string;
|
|
304
|
+
})[], Employee[] | ({
|
|
305
|
+
faceId?: unknown;
|
|
306
|
+
name: string;
|
|
307
|
+
role: string;
|
|
308
|
+
_id: string;
|
|
309
|
+
passcode: string;
|
|
310
|
+
isMasterUser: boolean;
|
|
311
|
+
restaurantId: string;
|
|
312
|
+
code?: string | undefined;
|
|
313
|
+
restaurants: {
|
|
314
|
+
restaurantId: string;
|
|
315
|
+
restaurantName: string;
|
|
316
|
+
roleId: string;
|
|
317
|
+
roleName: string;
|
|
318
|
+
}[];
|
|
319
|
+
since: string;
|
|
320
|
+
} | {
|
|
321
|
+
code?: string | undefined;
|
|
322
|
+
faceId?: unknown;
|
|
323
|
+
name: string;
|
|
324
|
+
role: string;
|
|
325
|
+
_id: string;
|
|
326
|
+
passcode: string;
|
|
327
|
+
isMasterUser: boolean;
|
|
328
|
+
restaurantId: string;
|
|
329
|
+
restaurants: {
|
|
330
|
+
restaurantId: string;
|
|
331
|
+
restaurantName: string;
|
|
332
|
+
roleId: string;
|
|
333
|
+
roleName: string;
|
|
334
|
+
}[];
|
|
335
|
+
since: string;
|
|
336
|
+
})[]>;
|
|
337
|
+
totalEmployees: import("vue").Ref<number, number>;
|
|
173
338
|
restrictEmployeeIds: import("vue").Ref<string[], string[]>;
|
|
174
339
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
175
340
|
readEmployees: () => Promise<void>;
|
|
341
|
+
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
342
|
+
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
176
343
|
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
177
344
|
updateEmployee: (userId: string, dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
178
345
|
deleteEmployee: (employee: Employee) => Promise<void>;
|
|
@@ -182,7 +349,7 @@ export declare const useEmployeeStore: () => {
|
|
|
182
349
|
migrateToMasterUser: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
183
350
|
readTeamMemberPosUserIds: () => Promise<void>;
|
|
184
351
|
syncUsersMeta: () => Promise<void>;
|
|
185
|
-
}, "isLoading" | "employees" | "restrictEmployeeIds">>;
|
|
352
|
+
}, "isLoading" | "employees" | "listEmployees" | "totalEmployees" | "restrictEmployeeIds">>;
|
|
186
353
|
$patch(partialState: import("pinia")._DeepPartial<{
|
|
187
354
|
isLoading: boolean;
|
|
188
355
|
employees: ({
|
|
@@ -218,6 +385,40 @@ export declare const useEmployeeStore: () => {
|
|
|
218
385
|
}[];
|
|
219
386
|
since: string;
|
|
220
387
|
})[];
|
|
388
|
+
listEmployees: ({
|
|
389
|
+
faceId?: unknown;
|
|
390
|
+
name: string;
|
|
391
|
+
role: string;
|
|
392
|
+
_id: string;
|
|
393
|
+
passcode: string;
|
|
394
|
+
isMasterUser: boolean;
|
|
395
|
+
restaurantId: string;
|
|
396
|
+
code?: string | undefined;
|
|
397
|
+
restaurants: {
|
|
398
|
+
restaurantId: string;
|
|
399
|
+
restaurantName: string;
|
|
400
|
+
roleId: string;
|
|
401
|
+
roleName: string;
|
|
402
|
+
}[];
|
|
403
|
+
since: string;
|
|
404
|
+
} | {
|
|
405
|
+
code?: string | undefined;
|
|
406
|
+
faceId?: unknown;
|
|
407
|
+
name: string;
|
|
408
|
+
role: string;
|
|
409
|
+
_id: string;
|
|
410
|
+
passcode: string;
|
|
411
|
+
isMasterUser: boolean;
|
|
412
|
+
restaurantId: string;
|
|
413
|
+
restaurants: {
|
|
414
|
+
restaurantId: string;
|
|
415
|
+
restaurantName: string;
|
|
416
|
+
roleId: string;
|
|
417
|
+
roleName: string;
|
|
418
|
+
}[];
|
|
419
|
+
since: string;
|
|
420
|
+
})[];
|
|
421
|
+
totalEmployees: number;
|
|
221
422
|
restrictEmployeeIds: string[];
|
|
222
423
|
}>): void;
|
|
223
424
|
$patch<F extends (state: {
|
|
@@ -255,6 +456,40 @@ export declare const useEmployeeStore: () => {
|
|
|
255
456
|
}[];
|
|
256
457
|
since: string;
|
|
257
458
|
})[];
|
|
459
|
+
listEmployees: ({
|
|
460
|
+
faceId?: unknown;
|
|
461
|
+
name: string;
|
|
462
|
+
role: string;
|
|
463
|
+
_id: string;
|
|
464
|
+
passcode: string;
|
|
465
|
+
isMasterUser: boolean;
|
|
466
|
+
restaurantId: string;
|
|
467
|
+
code?: string | undefined;
|
|
468
|
+
restaurants: {
|
|
469
|
+
restaurantId: string;
|
|
470
|
+
restaurantName: string;
|
|
471
|
+
roleId: string;
|
|
472
|
+
roleName: string;
|
|
473
|
+
}[];
|
|
474
|
+
since: string;
|
|
475
|
+
} | {
|
|
476
|
+
code?: string | undefined;
|
|
477
|
+
faceId?: unknown;
|
|
478
|
+
name: string;
|
|
479
|
+
role: string;
|
|
480
|
+
_id: string;
|
|
481
|
+
passcode: string;
|
|
482
|
+
isMasterUser: boolean;
|
|
483
|
+
restaurantId: string;
|
|
484
|
+
restaurants: {
|
|
485
|
+
restaurantId: string;
|
|
486
|
+
restaurantName: string;
|
|
487
|
+
roleId: string;
|
|
488
|
+
roleName: string;
|
|
489
|
+
}[];
|
|
490
|
+
since: string;
|
|
491
|
+
})[];
|
|
492
|
+
totalEmployees: number;
|
|
258
493
|
restrictEmployeeIds: string[];
|
|
259
494
|
}) => any>(stateMutator: ReturnType<F> extends Promise<any> ? never : F): void;
|
|
260
495
|
$reset(): void;
|
|
@@ -324,9 +559,77 @@ export declare const useEmployeeStore: () => {
|
|
|
324
559
|
}[];
|
|
325
560
|
since: string;
|
|
326
561
|
})[]>;
|
|
562
|
+
listEmployees: import("vue").Ref<({
|
|
563
|
+
faceId?: unknown;
|
|
564
|
+
name: string;
|
|
565
|
+
role: string;
|
|
566
|
+
_id: string;
|
|
567
|
+
passcode: string;
|
|
568
|
+
isMasterUser: boolean;
|
|
569
|
+
restaurantId: string;
|
|
570
|
+
code?: string | undefined;
|
|
571
|
+
restaurants: {
|
|
572
|
+
restaurantId: string;
|
|
573
|
+
restaurantName: string;
|
|
574
|
+
roleId: string;
|
|
575
|
+
roleName: string;
|
|
576
|
+
}[];
|
|
577
|
+
since: string;
|
|
578
|
+
} | {
|
|
579
|
+
code?: string | undefined;
|
|
580
|
+
faceId?: unknown;
|
|
581
|
+
name: string;
|
|
582
|
+
role: string;
|
|
583
|
+
_id: string;
|
|
584
|
+
passcode: string;
|
|
585
|
+
isMasterUser: boolean;
|
|
586
|
+
restaurantId: string;
|
|
587
|
+
restaurants: {
|
|
588
|
+
restaurantId: string;
|
|
589
|
+
restaurantName: string;
|
|
590
|
+
roleId: string;
|
|
591
|
+
roleName: string;
|
|
592
|
+
}[];
|
|
593
|
+
since: string;
|
|
594
|
+
})[], Employee[] | ({
|
|
595
|
+
faceId?: unknown;
|
|
596
|
+
name: string;
|
|
597
|
+
role: string;
|
|
598
|
+
_id: string;
|
|
599
|
+
passcode: string;
|
|
600
|
+
isMasterUser: boolean;
|
|
601
|
+
restaurantId: string;
|
|
602
|
+
code?: string | undefined;
|
|
603
|
+
restaurants: {
|
|
604
|
+
restaurantId: string;
|
|
605
|
+
restaurantName: string;
|
|
606
|
+
roleId: string;
|
|
607
|
+
roleName: string;
|
|
608
|
+
}[];
|
|
609
|
+
since: string;
|
|
610
|
+
} | {
|
|
611
|
+
code?: string | undefined;
|
|
612
|
+
faceId?: unknown;
|
|
613
|
+
name: string;
|
|
614
|
+
role: string;
|
|
615
|
+
_id: string;
|
|
616
|
+
passcode: string;
|
|
617
|
+
isMasterUser: boolean;
|
|
618
|
+
restaurantId: string;
|
|
619
|
+
restaurants: {
|
|
620
|
+
restaurantId: string;
|
|
621
|
+
restaurantName: string;
|
|
622
|
+
roleId: string;
|
|
623
|
+
roleName: string;
|
|
624
|
+
}[];
|
|
625
|
+
since: string;
|
|
626
|
+
})[]>;
|
|
627
|
+
totalEmployees: import("vue").Ref<number, number>;
|
|
327
628
|
restrictEmployeeIds: import("vue").Ref<string[], string[]>;
|
|
328
629
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
329
630
|
readEmployees: () => Promise<void>;
|
|
631
|
+
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
632
|
+
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
330
633
|
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
331
634
|
updateEmployee: (userId: string, dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
332
635
|
deleteEmployee: (employee: Employee) => Promise<void>;
|
|
@@ -336,7 +639,7 @@ export declare const useEmployeeStore: () => {
|
|
|
336
639
|
migrateToMasterUser: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
337
640
|
readTeamMemberPosUserIds: () => Promise<void>;
|
|
338
641
|
syncUsersMeta: () => Promise<void>;
|
|
339
|
-
}, "isLoading" | "employees" | "restrictEmployeeIds">>, options?: {
|
|
642
|
+
}, "isLoading" | "employees" | "listEmployees" | "totalEmployees" | "restrictEmployeeIds">>, options?: {
|
|
340
643
|
detached?: boolean;
|
|
341
644
|
} & import("vue").WatchOptions): () => void;
|
|
342
645
|
$onAction(callback: import("pinia").StoreOnActionListener<"employee", Pick<{
|
|
@@ -405,9 +708,77 @@ export declare const useEmployeeStore: () => {
|
|
|
405
708
|
}[];
|
|
406
709
|
since: string;
|
|
407
710
|
})[]>;
|
|
711
|
+
listEmployees: import("vue").Ref<({
|
|
712
|
+
faceId?: unknown;
|
|
713
|
+
name: string;
|
|
714
|
+
role: string;
|
|
715
|
+
_id: string;
|
|
716
|
+
passcode: string;
|
|
717
|
+
isMasterUser: boolean;
|
|
718
|
+
restaurantId: string;
|
|
719
|
+
code?: string | undefined;
|
|
720
|
+
restaurants: {
|
|
721
|
+
restaurantId: string;
|
|
722
|
+
restaurantName: string;
|
|
723
|
+
roleId: string;
|
|
724
|
+
roleName: string;
|
|
725
|
+
}[];
|
|
726
|
+
since: string;
|
|
727
|
+
} | {
|
|
728
|
+
code?: string | undefined;
|
|
729
|
+
faceId?: unknown;
|
|
730
|
+
name: string;
|
|
731
|
+
role: string;
|
|
732
|
+
_id: string;
|
|
733
|
+
passcode: string;
|
|
734
|
+
isMasterUser: boolean;
|
|
735
|
+
restaurantId: string;
|
|
736
|
+
restaurants: {
|
|
737
|
+
restaurantId: string;
|
|
738
|
+
restaurantName: string;
|
|
739
|
+
roleId: string;
|
|
740
|
+
roleName: string;
|
|
741
|
+
}[];
|
|
742
|
+
since: string;
|
|
743
|
+
})[], Employee[] | ({
|
|
744
|
+
faceId?: unknown;
|
|
745
|
+
name: string;
|
|
746
|
+
role: string;
|
|
747
|
+
_id: string;
|
|
748
|
+
passcode: string;
|
|
749
|
+
isMasterUser: boolean;
|
|
750
|
+
restaurantId: string;
|
|
751
|
+
code?: string | undefined;
|
|
752
|
+
restaurants: {
|
|
753
|
+
restaurantId: string;
|
|
754
|
+
restaurantName: string;
|
|
755
|
+
roleId: string;
|
|
756
|
+
roleName: string;
|
|
757
|
+
}[];
|
|
758
|
+
since: string;
|
|
759
|
+
} | {
|
|
760
|
+
code?: string | undefined;
|
|
761
|
+
faceId?: unknown;
|
|
762
|
+
name: string;
|
|
763
|
+
role: string;
|
|
764
|
+
_id: string;
|
|
765
|
+
passcode: string;
|
|
766
|
+
isMasterUser: boolean;
|
|
767
|
+
restaurantId: string;
|
|
768
|
+
restaurants: {
|
|
769
|
+
restaurantId: string;
|
|
770
|
+
restaurantName: string;
|
|
771
|
+
roleId: string;
|
|
772
|
+
roleName: string;
|
|
773
|
+
}[];
|
|
774
|
+
since: string;
|
|
775
|
+
})[]>;
|
|
776
|
+
totalEmployees: import("vue").Ref<number, number>;
|
|
408
777
|
restrictEmployeeIds: import("vue").Ref<string[], string[]>;
|
|
409
778
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
410
779
|
readEmployees: () => Promise<void>;
|
|
780
|
+
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
781
|
+
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
411
782
|
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
412
783
|
updateEmployee: (userId: string, dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
413
784
|
deleteEmployee: (employee: Employee) => Promise<void>;
|
|
@@ -417,7 +788,7 @@ export declare const useEmployeeStore: () => {
|
|
|
417
788
|
migrateToMasterUser: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
418
789
|
readTeamMemberPosUserIds: () => Promise<void>;
|
|
419
790
|
syncUsersMeta: () => Promise<void>;
|
|
420
|
-
}, "isLoading" | "employees" | "restrictEmployeeIds">, Pick<{
|
|
791
|
+
}, "isLoading" | "employees" | "listEmployees" | "totalEmployees" | "restrictEmployeeIds">, Pick<{
|
|
421
792
|
employees: import("vue").Ref<({
|
|
422
793
|
faceId?: unknown;
|
|
423
794
|
name: string;
|
|
@@ -483,9 +854,77 @@ export declare const useEmployeeStore: () => {
|
|
|
483
854
|
}[];
|
|
484
855
|
since: string;
|
|
485
856
|
})[]>;
|
|
857
|
+
listEmployees: import("vue").Ref<({
|
|
858
|
+
faceId?: unknown;
|
|
859
|
+
name: string;
|
|
860
|
+
role: string;
|
|
861
|
+
_id: string;
|
|
862
|
+
passcode: string;
|
|
863
|
+
isMasterUser: boolean;
|
|
864
|
+
restaurantId: string;
|
|
865
|
+
code?: string | undefined;
|
|
866
|
+
restaurants: {
|
|
867
|
+
restaurantId: string;
|
|
868
|
+
restaurantName: string;
|
|
869
|
+
roleId: string;
|
|
870
|
+
roleName: string;
|
|
871
|
+
}[];
|
|
872
|
+
since: string;
|
|
873
|
+
} | {
|
|
874
|
+
code?: string | undefined;
|
|
875
|
+
faceId?: unknown;
|
|
876
|
+
name: string;
|
|
877
|
+
role: string;
|
|
878
|
+
_id: string;
|
|
879
|
+
passcode: string;
|
|
880
|
+
isMasterUser: boolean;
|
|
881
|
+
restaurantId: string;
|
|
882
|
+
restaurants: {
|
|
883
|
+
restaurantId: string;
|
|
884
|
+
restaurantName: string;
|
|
885
|
+
roleId: string;
|
|
886
|
+
roleName: string;
|
|
887
|
+
}[];
|
|
888
|
+
since: string;
|
|
889
|
+
})[], Employee[] | ({
|
|
890
|
+
faceId?: unknown;
|
|
891
|
+
name: string;
|
|
892
|
+
role: string;
|
|
893
|
+
_id: string;
|
|
894
|
+
passcode: string;
|
|
895
|
+
isMasterUser: boolean;
|
|
896
|
+
restaurantId: string;
|
|
897
|
+
code?: string | undefined;
|
|
898
|
+
restaurants: {
|
|
899
|
+
restaurantId: string;
|
|
900
|
+
restaurantName: string;
|
|
901
|
+
roleId: string;
|
|
902
|
+
roleName: string;
|
|
903
|
+
}[];
|
|
904
|
+
since: string;
|
|
905
|
+
} | {
|
|
906
|
+
code?: string | undefined;
|
|
907
|
+
faceId?: unknown;
|
|
908
|
+
name: string;
|
|
909
|
+
role: string;
|
|
910
|
+
_id: string;
|
|
911
|
+
passcode: string;
|
|
912
|
+
isMasterUser: boolean;
|
|
913
|
+
restaurantId: string;
|
|
914
|
+
restaurants: {
|
|
915
|
+
restaurantId: string;
|
|
916
|
+
restaurantName: string;
|
|
917
|
+
roleId: string;
|
|
918
|
+
roleName: string;
|
|
919
|
+
}[];
|
|
920
|
+
since: string;
|
|
921
|
+
})[]>;
|
|
922
|
+
totalEmployees: import("vue").Ref<number, number>;
|
|
486
923
|
restrictEmployeeIds: import("vue").Ref<string[], string[]>;
|
|
487
924
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
488
925
|
readEmployees: () => Promise<void>;
|
|
926
|
+
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
927
|
+
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
489
928
|
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
490
929
|
updateEmployee: (userId: string, dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
491
930
|
deleteEmployee: (employee: Employee) => Promise<void>;
|
|
@@ -561,9 +1000,77 @@ export declare const useEmployeeStore: () => {
|
|
|
561
1000
|
}[];
|
|
562
1001
|
since: string;
|
|
563
1002
|
})[]>;
|
|
1003
|
+
listEmployees: import("vue").Ref<({
|
|
1004
|
+
faceId?: unknown;
|
|
1005
|
+
name: string;
|
|
1006
|
+
role: string;
|
|
1007
|
+
_id: string;
|
|
1008
|
+
passcode: string;
|
|
1009
|
+
isMasterUser: boolean;
|
|
1010
|
+
restaurantId: string;
|
|
1011
|
+
code?: string | undefined;
|
|
1012
|
+
restaurants: {
|
|
1013
|
+
restaurantId: string;
|
|
1014
|
+
restaurantName: string;
|
|
1015
|
+
roleId: string;
|
|
1016
|
+
roleName: string;
|
|
1017
|
+
}[];
|
|
1018
|
+
since: string;
|
|
1019
|
+
} | {
|
|
1020
|
+
code?: string | undefined;
|
|
1021
|
+
faceId?: unknown;
|
|
1022
|
+
name: string;
|
|
1023
|
+
role: string;
|
|
1024
|
+
_id: string;
|
|
1025
|
+
passcode: string;
|
|
1026
|
+
isMasterUser: boolean;
|
|
1027
|
+
restaurantId: string;
|
|
1028
|
+
restaurants: {
|
|
1029
|
+
restaurantId: string;
|
|
1030
|
+
restaurantName: string;
|
|
1031
|
+
roleId: string;
|
|
1032
|
+
roleName: string;
|
|
1033
|
+
}[];
|
|
1034
|
+
since: string;
|
|
1035
|
+
})[], Employee[] | ({
|
|
1036
|
+
faceId?: unknown;
|
|
1037
|
+
name: string;
|
|
1038
|
+
role: string;
|
|
1039
|
+
_id: string;
|
|
1040
|
+
passcode: string;
|
|
1041
|
+
isMasterUser: boolean;
|
|
1042
|
+
restaurantId: string;
|
|
1043
|
+
code?: string | undefined;
|
|
1044
|
+
restaurants: {
|
|
1045
|
+
restaurantId: string;
|
|
1046
|
+
restaurantName: string;
|
|
1047
|
+
roleId: string;
|
|
1048
|
+
roleName: string;
|
|
1049
|
+
}[];
|
|
1050
|
+
since: string;
|
|
1051
|
+
} | {
|
|
1052
|
+
code?: string | undefined;
|
|
1053
|
+
faceId?: unknown;
|
|
1054
|
+
name: string;
|
|
1055
|
+
role: string;
|
|
1056
|
+
_id: string;
|
|
1057
|
+
passcode: string;
|
|
1058
|
+
isMasterUser: boolean;
|
|
1059
|
+
restaurantId: string;
|
|
1060
|
+
restaurants: {
|
|
1061
|
+
restaurantId: string;
|
|
1062
|
+
restaurantName: string;
|
|
1063
|
+
roleId: string;
|
|
1064
|
+
roleName: string;
|
|
1065
|
+
}[];
|
|
1066
|
+
since: string;
|
|
1067
|
+
})[]>;
|
|
1068
|
+
totalEmployees: import("vue").Ref<number, number>;
|
|
564
1069
|
restrictEmployeeIds: import("vue").Ref<string[], string[]>;
|
|
565
1070
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
566
1071
|
readEmployees: () => Promise<void>;
|
|
1072
|
+
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
1073
|
+
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
567
1074
|
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
568
1075
|
updateEmployee: (userId: string, dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
569
1076
|
deleteEmployee: (employee: Employee) => Promise<void>;
|
|
@@ -573,11 +1080,13 @@ export declare const useEmployeeStore: () => {
|
|
|
573
1080
|
migrateToMasterUser: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
574
1081
|
readTeamMemberPosUserIds: () => Promise<void>;
|
|
575
1082
|
syncUsersMeta: () => Promise<void>;
|
|
576
|
-
}, "readEmployees" | "createEmployee" | "updateEmployee" | "deleteEmployee" | "createMasterEmployee" | "updateMasterEmployee" | "deleteMasterEmployee" | "migrateToMasterUser" | "readTeamMemberPosUserIds" | "syncUsersMeta">>, detached?: boolean): () => void;
|
|
1083
|
+
}, "readEmployees" | "readEmployeesPage" | "readAllEmployeesPage" | "createEmployee" | "updateEmployee" | "deleteEmployee" | "createMasterEmployee" | "updateMasterEmployee" | "deleteMasterEmployee" | "migrateToMasterUser" | "readTeamMemberPosUserIds" | "syncUsersMeta">>, detached?: boolean): () => void;
|
|
577
1084
|
$dispose(): void;
|
|
578
1085
|
$id: "employee";
|
|
579
1086
|
_customProperties: Set<string>;
|
|
580
1087
|
readEmployees: () => Promise<void>;
|
|
1088
|
+
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
1089
|
+
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
581
1090
|
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
582
1091
|
updateEmployee: (userId: string, dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
583
1092
|
deleteEmployee: (employee: Employee) => Promise<void>;
|