@feedmepos/mf-hrm-portal 2.3.0-dev.3 → 2.3.0-dev.4
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-SjyWZghY.js → ApprovalCodeList-Pbk3MAP_.js} +2 -2
- package/dist/{AuditLogList-aTI3QeO0.js → AuditLogList-B4gAQD41.js} +3 -3
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang--JTV7non.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DPbHx_I8.js} +2 -2
- package/dist/{EmployeeList-D2Q_2ZE0.js → EmployeeList-0KpegAhT.js} +4 -4
- package/dist/{GrantUserList-6YXLPuHR.js → GrantUserList-BUkzqot_.js} +3 -3
- package/dist/{Main-CFIWlIaC.js → Main-CNk6IUSX.js} +2 -2
- package/dist/{Main-B-a6F9g8.js → Main-DgmmoN5E.js} +5 -5
- package/dist/{Main-dSqOeBRJ.js → Main-Dx_th1rt.js} +9 -9
- package/dist/{PermissionSetList-DxkaPCMs.js → PermissionSetList-CzZGiCsv.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DnKckKZ0.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-t_OkpC_R.js} +827 -827
- package/dist/{RoleList-DQZ_w5uM.js → RoleList-BE4zTMIf.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Dr6QruG6.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-BPBc1yaM.js} +1 -1
- package/dist/{ScheduleGeneralPage-CvskrXcV.js → ScheduleGeneralPage-OvoLCcup.js} +6 -6
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-C4On5sVD.js → ScheduleModal.vue_vue_type_script_setup_true_lang-BOkU6VUe.js} +209 -178
- package/dist/SchedulePage-CujQTlC7.js +18257 -0
- package/dist/{SchedulePositionPage-BGrZBU3g.js → SchedulePositionPage-DJ7HABNZ.js} +8 -8
- package/dist/{TeamMemberList-BiTHVJwE.js → TeamMemberList-DcMBkqKA.js} +6 -6
- package/dist/{TimesheetList-CUkYacGW.js → TimesheetList-EFkDNiyH.js} +5 -5
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-B1Y587O-.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-DK7LWwL3.js} +2 -2
- package/dist/{app-CAKCDrbJ.js → app-Bljy7Tiw.js} +8 -8
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-CZ8QYRoc.js → dayjs.min-6PYBuPpr.js} +1 -1
- package/dist/{employee-D56eWEFe.js → employee-BabFWzgV.js} +3 -3
- package/dist/{iteration-BVJdyLNq.js → iteration-DFJixFmV.js} +1 -1
- package/dist/{lodash-BcIRkQPW.js → lodash-CfHZzOs8.js} +1 -1
- package/dist/{role-B-eZDaBX.js → role-DzPtXGaE.js} +1 -1
- package/dist/{rule-D6AIfx8b.js → rule-DM5JuuR6.js} +2 -2
- package/dist/src/api/schedule/index.d.ts +4 -2
- package/dist/src/composables/useMessage.d.ts +8 -2
- package/dist/src/types/schedule.d.ts +1 -1
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleDetailsModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/composables/auto-schedule-mapping.d.ts +33 -0
- package/dist/src/views/scheduling/composables/remyPrompt.d.ts +13 -0
- package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +10 -0
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +114 -4
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +1 -0
- package/dist/src/views/scheduling/schedule-state.d.ts +106 -106
- package/dist/src/views/scheduling/schedule-store.d.ts +4 -2
- package/dist/src/views/scheduling/types.d.ts +3 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-DHA0jrIr.js → useReportPermissions-vTUP3ZOL.js} +3 -3
- package/package.json +2 -1
- package/dist/SchedulePage-CW-K836l.js +0 -18248
- package/dist/src/views/scheduling/composables/scheduleAutoSolver.d.ts +0 -23
|
@@ -9,6 +9,41 @@ import type { CompGroupMeta, ExistingStaffCandidate, ShiftTemplate } from './typ
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const scheduleState: {
|
|
11
11
|
payload: import("vue").ShallowRef<{
|
|
12
|
+
timeOff: {
|
|
13
|
+
type: "OFF_DAY" | "LEAVE";
|
|
14
|
+
status: "PENDING" | "APPROVED" | "REJECTED" | "CANCELLED";
|
|
15
|
+
id: string;
|
|
16
|
+
employeeId: string;
|
|
17
|
+
leaveType: "UNPAID" | "ANNUAL" | "MEDICAL" | "EMERGENCY" | null;
|
|
18
|
+
startDate: string;
|
|
19
|
+
endDate: string;
|
|
20
|
+
startPart: "FULL_DAY" | "AM" | "PM";
|
|
21
|
+
endPart: "FULL_DAY" | "AM" | "PM";
|
|
22
|
+
reason: string;
|
|
23
|
+
attachmentIds: string[];
|
|
24
|
+
requestedBy: string;
|
|
25
|
+
requestedAt: string;
|
|
26
|
+
approvedBy: string | null;
|
|
27
|
+
approvedAt: string | null;
|
|
28
|
+
approvalComment: string | null;
|
|
29
|
+
}[];
|
|
30
|
+
outlet: {
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
};
|
|
34
|
+
range: {
|
|
35
|
+
from: string;
|
|
36
|
+
to: string;
|
|
37
|
+
};
|
|
38
|
+
days: {
|
|
39
|
+
date: string;
|
|
40
|
+
id: string;
|
|
41
|
+
updatedAt: string;
|
|
42
|
+
isPublicHoliday: boolean;
|
|
43
|
+
title: string;
|
|
44
|
+
description: string;
|
|
45
|
+
salesForecastOverride: number | null;
|
|
46
|
+
}[];
|
|
12
47
|
demands: {
|
|
13
48
|
date: string | null;
|
|
14
49
|
startTime: string;
|
|
@@ -21,14 +56,6 @@ export declare const scheduleState: {
|
|
|
21
56
|
} | null;
|
|
22
57
|
headcount: number;
|
|
23
58
|
}[];
|
|
24
|
-
outlet: {
|
|
25
|
-
id: string;
|
|
26
|
-
name: string;
|
|
27
|
-
};
|
|
28
|
-
range: {
|
|
29
|
-
from: string;
|
|
30
|
-
to: string;
|
|
31
|
-
};
|
|
32
59
|
settings: {
|
|
33
60
|
overtime: {
|
|
34
61
|
maxMonthlyHours: number;
|
|
@@ -108,15 +135,7 @@ export declare const scheduleState: {
|
|
|
108
135
|
})[];
|
|
109
136
|
updatedAt: string;
|
|
110
137
|
}[];
|
|
111
|
-
|
|
112
|
-
date: string;
|
|
113
|
-
id: string;
|
|
114
|
-
updatedAt: string;
|
|
115
|
-
title: string;
|
|
116
|
-
description: string;
|
|
117
|
-
isPublicHoliday: boolean;
|
|
118
|
-
salesForecastOverride: number | null;
|
|
119
|
-
}[];
|
|
138
|
+
} | null, {
|
|
120
139
|
timeOff: {
|
|
121
140
|
type: "OFF_DAY" | "LEAVE";
|
|
122
141
|
status: "PENDING" | "APPROVED" | "REJECTED" | "CANCELLED";
|
|
@@ -135,7 +154,23 @@ export declare const scheduleState: {
|
|
|
135
154
|
approvedAt: string | null;
|
|
136
155
|
approvalComment: string | null;
|
|
137
156
|
}[];
|
|
138
|
-
|
|
157
|
+
outlet: {
|
|
158
|
+
id: string;
|
|
159
|
+
name: string;
|
|
160
|
+
};
|
|
161
|
+
range: {
|
|
162
|
+
from: string;
|
|
163
|
+
to: string;
|
|
164
|
+
};
|
|
165
|
+
days: {
|
|
166
|
+
date: string;
|
|
167
|
+
id: string;
|
|
168
|
+
updatedAt: string;
|
|
169
|
+
isPublicHoliday: boolean;
|
|
170
|
+
title: string;
|
|
171
|
+
description: string;
|
|
172
|
+
salesForecastOverride: number | null;
|
|
173
|
+
}[];
|
|
139
174
|
demands: {
|
|
140
175
|
date: string | null;
|
|
141
176
|
startTime: string;
|
|
@@ -148,14 +183,6 @@ export declare const scheduleState: {
|
|
|
148
183
|
} | null;
|
|
149
184
|
headcount: number;
|
|
150
185
|
}[];
|
|
151
|
-
outlet: {
|
|
152
|
-
id: string;
|
|
153
|
-
name: string;
|
|
154
|
-
};
|
|
155
|
-
range: {
|
|
156
|
-
from: string;
|
|
157
|
-
to: string;
|
|
158
|
-
};
|
|
159
186
|
settings: {
|
|
160
187
|
overtime: {
|
|
161
188
|
maxMonthlyHours: number;
|
|
@@ -235,33 +262,6 @@ export declare const scheduleState: {
|
|
|
235
262
|
})[];
|
|
236
263
|
updatedAt: string;
|
|
237
264
|
}[];
|
|
238
|
-
days: {
|
|
239
|
-
date: string;
|
|
240
|
-
id: string;
|
|
241
|
-
updatedAt: string;
|
|
242
|
-
title: string;
|
|
243
|
-
description: string;
|
|
244
|
-
isPublicHoliday: boolean;
|
|
245
|
-
salesForecastOverride: number | null;
|
|
246
|
-
}[];
|
|
247
|
-
timeOff: {
|
|
248
|
-
type: "OFF_DAY" | "LEAVE";
|
|
249
|
-
status: "PENDING" | "APPROVED" | "REJECTED" | "CANCELLED";
|
|
250
|
-
id: string;
|
|
251
|
-
employeeId: string;
|
|
252
|
-
leaveType: "UNPAID" | "ANNUAL" | "MEDICAL" | "EMERGENCY" | null;
|
|
253
|
-
startDate: string;
|
|
254
|
-
endDate: string;
|
|
255
|
-
startPart: "FULL_DAY" | "AM" | "PM";
|
|
256
|
-
endPart: "FULL_DAY" | "AM" | "PM";
|
|
257
|
-
reason: string;
|
|
258
|
-
attachmentIds: string[];
|
|
259
|
-
requestedBy: string;
|
|
260
|
-
requestedAt: string;
|
|
261
|
-
approvedBy: string | null;
|
|
262
|
-
approvedAt: string | null;
|
|
263
|
-
approvalComment: string | null;
|
|
264
|
-
}[];
|
|
265
265
|
} | null>;
|
|
266
266
|
loading: import("vue").Ref<boolean, boolean>;
|
|
267
267
|
rosterLoading: import("vue").Ref<boolean, boolean>;
|
|
@@ -365,6 +365,41 @@ export declare const scheduleState: {
|
|
|
365
365
|
};
|
|
366
366
|
};
|
|
367
367
|
export declare const payload: import("vue").ShallowRef<{
|
|
368
|
+
timeOff: {
|
|
369
|
+
type: "OFF_DAY" | "LEAVE";
|
|
370
|
+
status: "PENDING" | "APPROVED" | "REJECTED" | "CANCELLED";
|
|
371
|
+
id: string;
|
|
372
|
+
employeeId: string;
|
|
373
|
+
leaveType: "UNPAID" | "ANNUAL" | "MEDICAL" | "EMERGENCY" | null;
|
|
374
|
+
startDate: string;
|
|
375
|
+
endDate: string;
|
|
376
|
+
startPart: "FULL_DAY" | "AM" | "PM";
|
|
377
|
+
endPart: "FULL_DAY" | "AM" | "PM";
|
|
378
|
+
reason: string;
|
|
379
|
+
attachmentIds: string[];
|
|
380
|
+
requestedBy: string;
|
|
381
|
+
requestedAt: string;
|
|
382
|
+
approvedBy: string | null;
|
|
383
|
+
approvedAt: string | null;
|
|
384
|
+
approvalComment: string | null;
|
|
385
|
+
}[];
|
|
386
|
+
outlet: {
|
|
387
|
+
id: string;
|
|
388
|
+
name: string;
|
|
389
|
+
};
|
|
390
|
+
range: {
|
|
391
|
+
from: string;
|
|
392
|
+
to: string;
|
|
393
|
+
};
|
|
394
|
+
days: {
|
|
395
|
+
date: string;
|
|
396
|
+
id: string;
|
|
397
|
+
updatedAt: string;
|
|
398
|
+
isPublicHoliday: boolean;
|
|
399
|
+
title: string;
|
|
400
|
+
description: string;
|
|
401
|
+
salesForecastOverride: number | null;
|
|
402
|
+
}[];
|
|
368
403
|
demands: {
|
|
369
404
|
date: string | null;
|
|
370
405
|
startTime: string;
|
|
@@ -377,14 +412,6 @@ export declare const payload: import("vue").ShallowRef<{
|
|
|
377
412
|
} | null;
|
|
378
413
|
headcount: number;
|
|
379
414
|
}[];
|
|
380
|
-
outlet: {
|
|
381
|
-
id: string;
|
|
382
|
-
name: string;
|
|
383
|
-
};
|
|
384
|
-
range: {
|
|
385
|
-
from: string;
|
|
386
|
-
to: string;
|
|
387
|
-
};
|
|
388
415
|
settings: {
|
|
389
416
|
overtime: {
|
|
390
417
|
maxMonthlyHours: number;
|
|
@@ -464,15 +491,7 @@ export declare const payload: import("vue").ShallowRef<{
|
|
|
464
491
|
})[];
|
|
465
492
|
updatedAt: string;
|
|
466
493
|
}[];
|
|
467
|
-
|
|
468
|
-
date: string;
|
|
469
|
-
id: string;
|
|
470
|
-
updatedAt: string;
|
|
471
|
-
title: string;
|
|
472
|
-
description: string;
|
|
473
|
-
isPublicHoliday: boolean;
|
|
474
|
-
salesForecastOverride: number | null;
|
|
475
|
-
}[];
|
|
494
|
+
} | null, {
|
|
476
495
|
timeOff: {
|
|
477
496
|
type: "OFF_DAY" | "LEAVE";
|
|
478
497
|
status: "PENDING" | "APPROVED" | "REJECTED" | "CANCELLED";
|
|
@@ -491,7 +510,23 @@ export declare const payload: import("vue").ShallowRef<{
|
|
|
491
510
|
approvedAt: string | null;
|
|
492
511
|
approvalComment: string | null;
|
|
493
512
|
}[];
|
|
494
|
-
|
|
513
|
+
outlet: {
|
|
514
|
+
id: string;
|
|
515
|
+
name: string;
|
|
516
|
+
};
|
|
517
|
+
range: {
|
|
518
|
+
from: string;
|
|
519
|
+
to: string;
|
|
520
|
+
};
|
|
521
|
+
days: {
|
|
522
|
+
date: string;
|
|
523
|
+
id: string;
|
|
524
|
+
updatedAt: string;
|
|
525
|
+
isPublicHoliday: boolean;
|
|
526
|
+
title: string;
|
|
527
|
+
description: string;
|
|
528
|
+
salesForecastOverride: number | null;
|
|
529
|
+
}[];
|
|
495
530
|
demands: {
|
|
496
531
|
date: string | null;
|
|
497
532
|
startTime: string;
|
|
@@ -504,14 +539,6 @@ export declare const payload: import("vue").ShallowRef<{
|
|
|
504
539
|
} | null;
|
|
505
540
|
headcount: number;
|
|
506
541
|
}[];
|
|
507
|
-
outlet: {
|
|
508
|
-
id: string;
|
|
509
|
-
name: string;
|
|
510
|
-
};
|
|
511
|
-
range: {
|
|
512
|
-
from: string;
|
|
513
|
-
to: string;
|
|
514
|
-
};
|
|
515
542
|
settings: {
|
|
516
543
|
overtime: {
|
|
517
544
|
maxMonthlyHours: number;
|
|
@@ -591,33 +618,6 @@ export declare const payload: import("vue").ShallowRef<{
|
|
|
591
618
|
})[];
|
|
592
619
|
updatedAt: string;
|
|
593
620
|
}[];
|
|
594
|
-
days: {
|
|
595
|
-
date: string;
|
|
596
|
-
id: string;
|
|
597
|
-
updatedAt: string;
|
|
598
|
-
title: string;
|
|
599
|
-
description: string;
|
|
600
|
-
isPublicHoliday: boolean;
|
|
601
|
-
salesForecastOverride: number | null;
|
|
602
|
-
}[];
|
|
603
|
-
timeOff: {
|
|
604
|
-
type: "OFF_DAY" | "LEAVE";
|
|
605
|
-
status: "PENDING" | "APPROVED" | "REJECTED" | "CANCELLED";
|
|
606
|
-
id: string;
|
|
607
|
-
employeeId: string;
|
|
608
|
-
leaveType: "UNPAID" | "ANNUAL" | "MEDICAL" | "EMERGENCY" | null;
|
|
609
|
-
startDate: string;
|
|
610
|
-
endDate: string;
|
|
611
|
-
startPart: "FULL_DAY" | "AM" | "PM";
|
|
612
|
-
endPart: "FULL_DAY" | "AM" | "PM";
|
|
613
|
-
reason: string;
|
|
614
|
-
attachmentIds: string[];
|
|
615
|
-
requestedBy: string;
|
|
616
|
-
requestedAt: string;
|
|
617
|
-
approvedBy: string | null;
|
|
618
|
-
approvedAt: string | null;
|
|
619
|
-
approvalComment: string | null;
|
|
620
|
-
}[];
|
|
621
621
|
} | null>, loading: import("vue").Ref<boolean, boolean>, rosterLoading: import("vue").Ref<boolean, boolean>, loadError: import("vue").Ref<string | null, string | null>, scheduleSetupCompleted: import("vue").Ref<boolean, boolean>, dataVersion: import("vue").Ref<number, number>, outletId: import("vue").Ref<string, string>, restaurantEmployees: import("vue").Ref<{
|
|
622
622
|
_id: string;
|
|
623
623
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ScheduleAPI from '@/api/schedule';
|
|
2
2
|
import type { IFdtoPosUserSummary } from '@/types/employee';
|
|
3
|
-
import type { FdtoScheduleAssignment,
|
|
3
|
+
import type { FdtoScheduleAssignment, FdtoScheduleAutoScheduleApplyReq, FdtoScheduleAutoScheduleApplyResult, FdtoScheduleAutoScheduleCapabilities, FdtoScheduleAutoScheduleGenerateReq, FdtoScheduleAutoScheduleResult, FdtoScheduleBulkUpdateAssignmentStatusReq, FdtoScheduleCreateEmployeeProfileReq, FdtoScheduleSaveAssignmentReq, FdtoScheduleSavePositionReq, FdtoScheduleSaveScheduleDayReq, FdtoScheduleUpdateEmployeeProfileReq, FdtoScheduleCreateTimeOffReq, FdtoScheduleTimeOff, FdtoScheduleUpdateTimeOffStatusReq, FdtoScheduleSaveEmployeeConfigsReq, ScheduleReplaceDemandReq } from '@/types/schedule';
|
|
4
4
|
import { isoDateKey } from './composables/schedule-calendar';
|
|
5
5
|
export { businessEmployees, dataVersion, employeeOutletIds, loadError, loading, outletId, payload, restaurantEmployees, employeeConfigs, rosterLoading, scheduleSetupCompleted, } from './schedule-state';
|
|
6
6
|
/** dayjs-free local-date key — the board's own isoDateKey, repeated here so the store does not
|
|
@@ -87,7 +87,9 @@ export declare function saveDemand(req: ScheduleReplaceDemandReq): Promise<void>
|
|
|
87
87
|
* week, so repeating it per date would only shadow later edits to the rule. Returns how many rows
|
|
88
88
|
* were written. */
|
|
89
89
|
export declare function copyDateDemand(fromDate: string, toDate: string): Promise<number>;
|
|
90
|
-
export declare function generateAutoSchedule(req:
|
|
90
|
+
export declare function generateAutoSchedule(req: FdtoScheduleAutoScheduleGenerateReq): Promise<FdtoScheduleAutoScheduleResult>;
|
|
91
|
+
export declare function getAutoScheduleCapabilities(): Promise<FdtoScheduleAutoScheduleCapabilities>;
|
|
92
|
+
export declare function applyAutoSchedule(req: FdtoScheduleAutoScheduleApplyReq): Promise<FdtoScheduleAutoScheduleApplyResult>;
|
|
91
93
|
/** A one-off shift assignment — someone working these hours on this date, not answering any
|
|
92
94
|
* Shift requirement. Deliberately does not reload: unlike `createEmployeeProfile` above, there
|
|
93
95
|
* is nothing here a reload could bring back that the caller doesn't already have — `commitShift`
|
|
@@ -342,6 +342,9 @@ export interface Proposal {
|
|
|
342
342
|
start: string;
|
|
343
343
|
end: string;
|
|
344
344
|
role: string;
|
|
345
|
+
/** The position backing `role`, when the auto-schedule result named one. `null`/absent means
|
|
346
|
+
* any position (an unnamed need). */
|
|
347
|
+
positionId?: string | null;
|
|
345
348
|
/** Set when this proposal would fill a named OpenShift record. */
|
|
346
349
|
openId?: number;
|
|
347
350
|
status: 'pending' | 'rejected';
|