@feedmepos/mf-hrm-portal 2.3.0-dev.8 → 2.3.0
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-D5E_FN3f.js → ApprovalCodeList-DwubNElp.js} +7 -7
- package/dist/{AuditLogList-CqqiS2xW.js → AuditLogList-CTeMbyHL.js} +18 -19
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DC_oQTsP.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CmLLNcB4.js} +2 -2
- package/dist/{EmployeeList-ChMlGxmu.js → EmployeeList-DEAJPx9F.js} +255 -266
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js → FormItem.vue_vue_type_script_setup_true_lang-OAvd6eHM.js} +6 -6
- package/dist/{GrantUserList-DA26W3K3.js → GrantUserList-Dx4jF2qJ.js} +8 -8
- package/dist/{Main-C0gVAR92.js → Main-BirWXk7o.js} +5 -5
- package/dist/{Main-m39gMG-a.js → Main-C2PBSCte.js} +11 -11
- package/dist/{Main-B27Qx8R2.js → Main-CL5JYCPg.js} +8 -8
- package/dist/{PermissionSetList-mdA65jmw.js → PermissionSetList-BtYcqPiO.js} +19 -18
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Dp6bdEZp.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BXw4aX39.js} +1211 -1211
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-BVz6q3HE.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DaAx79pC.js} +1 -1
- package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +132 -0
- package/dist/{RoleList-BPayuLxA.js → RoleList-YS_LBfoJ.js} +21 -20
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-BorKuXxL.js +530 -0
- package/dist/ScheduleGeneralPage-C1p2mivt.js +780 -0
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-CnKzVz3I.js +2457 -0
- package/dist/SchedulePage-BP7x7JAl.js +19485 -0
- package/dist/{SchedulePositionPage-BUQy-Itg.js → SchedulePositionPage-BogOQZVW.js} +78 -80
- package/dist/{SelectFilter-CG13h83-.js → SelectFilter-Dh3eY1hV.js} +1 -1
- package/dist/{TeamMemberList-CIlvRlf8.js → TeamMemberList-Bv6_2bzs.js} +27 -27
- package/dist/{TimesheetList-DFAfhWYG.js → TimesheetList-B3BmpH0I.js} +52 -53
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-QGzHuY7V.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-C4rbnZh1.js} +3 -3
- package/dist/{app-C_EW9DFr.js → app-CyS8c8dx.js} +2879 -2462
- package/dist/app.js +1 -1
- package/dist/{approval-code-DHsUgc4K.js → approval-code-BIpLingm.js} +1 -1
- package/dist/{dayjs.min-ibysRBBa.js → dayjs.min-BRlEc3-d.js} +1 -1
- package/dist/{employee-B1BQc4gB.js → employee-CcdjLOLQ.js} +51 -47
- package/dist/{grant-user-qzKHFTro.js → grant-user-uZmvD_bw.js} +1 -1
- package/dist/{iteration-DQVB-iz0.js → iteration-CL1RDmws.js} +1 -1
- package/dist/{lodash-DOj41a0A.js → lodash-C00ieagp.js} +1 -1
- package/dist/object-Dwyg2LgX.js +16 -0
- package/dist/{restaurant-BbYRA_IT.js → restaurant-CHpkjUPy.js} +46 -47
- package/dist/{role-B9MSLu4B.js → role-DtatkKp9.js} +2 -2
- package/dist/{rule-e6okoXK6.js → rule-DJJMpkoG.js} +3 -3
- package/dist/src/api/employee/index.d.ts +2 -2
- package/dist/src/api/schedule/index.d.ts +12 -1
- package/dist/src/components/layout/SchedulePromoBanner.vue.d.ts +2 -0
- package/dist/src/composables/useDiscardConfirm.d.ts +3 -1
- package/dist/src/stores/employee.d.ts +12 -12
- package/dist/src/types/schedule.d.ts +3 -4
- package/dist/src/views/audit-log/locales/index.d.ts +252 -0
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +4 -8
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleDoneArt.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +1 -4
- package/dist/src/views/scheduling/components/ScheduleBoardEditOverlays.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleBoardEmployeeRows.vue.d.ts +0 -7
- package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +5 -0
- package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +2 -6
- package/dist/src/views/scheduling/components/ScheduleBoardOnboardingOverlays.vue.d.ts +1 -0
- package/dist/src/views/scheduling/components/ScheduleBoardToolbar.vue.d.ts +0 -1
- package/dist/src/views/scheduling/components/ScheduleCompletionDialog.vue.d.ts +1 -1
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +4 -1
- package/dist/src/views/scheduling/components/ScheduleContextMenu.vue.d.ts +1 -5
- package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +5 -0
- package/dist/src/views/scheduling/components/ScheduleLoadState.vue.d.ts +0 -1
- package/dist/src/views/scheduling/components/{ScheduleAssignEmployeePopover.vue.d.ts → ScheduleOnboardingSettings.vue.d.ts} +2 -2
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +1 -1
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +0 -10
- package/dist/src/views/scheduling/composables/auto-schedule-mapping.d.ts +3 -3
- package/dist/src/views/scheduling/composables/onboarding-types.d.ts +2 -1
- package/dist/src/views/scheduling/composables/remyPrompt.d.ts +4 -2
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +12 -8
- package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +4 -0
- package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +1 -3
- package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +13 -1
- package/dist/src/views/scheduling/composables/schedule-error.d.ts +1 -0
- package/dist/src/views/scheduling/composables/schedule-leave-split.d.ts +5 -0
- package/dist/src/views/scheduling/composables/schedule-quick-pick.d.ts +22 -0
- package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +3 -0
- package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +3 -1
- package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +46 -11
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +3 -11
- package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +0 -13
- package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +2 -9
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +25 -13
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +87 -11
- package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +3 -10
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +13 -1
- package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +0 -1
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +16 -5
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +3 -5
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +18 -3
- package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +20 -7
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +26 -3
- package/dist/src/views/scheduling/composables/useScheduleEmployeePersistence.d.ts +7 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +2 -2
- package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +2 -0
- package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +5 -1
- package/dist/src/views/scheduling/composables/useScheduleOnboardingDemand.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +48 -4
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +302 -30
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +11 -8
- package/dist/src/views/scheduling/composables/useSchedulePageActions.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useSchedulePageCellDrop.d.ts +3 -1
- package/dist/src/views/scheduling/composables/useSchedulePageClearActions.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useSchedulePageOverlays.d.ts +0 -4
- package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +7 -1
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +4 -1
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +70 -4
- package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +7 -2
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +2 -2
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +41 -3
- package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +47 -6
- package/dist/src/views/scheduling/country-rules/index.d.ts +9 -4
- package/dist/src/views/scheduling/data.d.ts +22 -1
- package/dist/src/views/scheduling/locales/index.d.ts +28 -0
- package/dist/src/views/scheduling/schedule-state.d.ts +276 -212
- package/dist/src/views/scheduling/schedule-store.d.ts +37 -11
- package/dist/src/views/scheduling/types.d.ts +30 -5
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-BoLkvkE2.js → useAppStore-Bp0PwbAN.js} +1 -1
- package/dist/useDiscardConfirm-CzZSPyvh.js +28 -0
- package/dist/{useLoading-Ch1AUYT1.js → useLoading-sgL8DRUz.js} +1 -1
- package/dist/{useReportPermissions-CJ9ey1bN.js → useReportPermissions-DI-xg3OX.js} +3 -3
- package/package.json +2 -2
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-C_EQivMd.js +0 -470
- package/dist/ScheduleGeneralPage-sAqR1-hf.js +0 -666
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-ABipaQiR.js +0 -2205
- package/dist/SchedulePage-DhbtCR8U.js +0 -18546
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/src/views/scheduling/components/ScheduleAllShiftsRow.vue.d.ts +0 -22
- package/dist/src/views/scheduling/components/ScheduleStackPopover.vue.d.ts +0 -14
- package/dist/src/views/scheduling/composables/useScheduleAllShiftsRow.d.ts +0 -77
- package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +0 -124
- package/dist/src/views/scheduling/composables/useScheduleOpenShiftCard.d.ts +0 -23
- package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
package/dist/app.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as C } from "pinia";
|
|
2
2
|
import { ref as l } from "vue";
|
|
3
|
-
import { g as p, b as s } from "./restaurant-
|
|
3
|
+
import { g as p, b as s } from "./restaurant-CHpkjUPy.js";
|
|
4
4
|
const n = {
|
|
5
5
|
async getApprovalCodes() {
|
|
6
6
|
return p(await s("approval-codes").get(""));
|
|
@@ -1,34 +1,38 @@
|
|
|
1
|
-
import { d as g } from "./dayjs.min-
|
|
1
|
+
import { d as g } from "./dayjs.min-BRlEc3-d.js";
|
|
2
2
|
import { defineStore as $, storeToRefs as x } from "pinia";
|
|
3
|
-
import { ref as
|
|
4
|
-
import { s as E } from "./iteration-
|
|
5
|
-
import { b as l, g as
|
|
3
|
+
import { ref as y } from "vue";
|
|
4
|
+
import { s as E } from "./iteration-CL1RDmws.js";
|
|
5
|
+
import { b as l, g as m, u as I } from "./restaurant-CHpkjUPy.js";
|
|
6
6
|
import { i as v } from "./utils-BZkjJbju.js";
|
|
7
|
-
import { u as P } from "./role-
|
|
7
|
+
import { u as P } from "./role-DtatkKp9.js";
|
|
8
8
|
const o = {
|
|
9
9
|
async readEmployees() {
|
|
10
|
-
return
|
|
10
|
+
return m(await l().get("/pos-users"));
|
|
11
11
|
},
|
|
12
12
|
async readEmployeesPage(e) {
|
|
13
|
-
var s,
|
|
14
|
-
return
|
|
13
|
+
var s, i;
|
|
14
|
+
return m(
|
|
15
15
|
await l().get("/pos-users/paged", {
|
|
16
16
|
params: {
|
|
17
17
|
limit: e.limit,
|
|
18
18
|
offset: e.offset,
|
|
19
19
|
search: e.search,
|
|
20
20
|
restaurantIds: (s = e.restaurantIds) != null && s.length ? e.restaurantIds : void 0,
|
|
21
|
-
roleIds: (
|
|
21
|
+
roleIds: (i = e.roleIds) != null && i.length ? e.roleIds : void 0,
|
|
22
22
|
includeEmptyPasscode: e.includeEmptyPasscode || void 0
|
|
23
23
|
}
|
|
24
24
|
})
|
|
25
25
|
);
|
|
26
26
|
},
|
|
27
27
|
async createEmployee(e) {
|
|
28
|
-
|
|
28
|
+
return m(
|
|
29
|
+
await l().post("/pos-users", e)
|
|
30
|
+
).employeeId;
|
|
29
31
|
},
|
|
30
32
|
async createMasterEmployee(e) {
|
|
31
|
-
|
|
33
|
+
return m(
|
|
34
|
+
await l().post("/pos-users/master-user", e)
|
|
35
|
+
).employeeId;
|
|
32
36
|
},
|
|
33
37
|
async migrateToMasterEmployee(e, s) {
|
|
34
38
|
await l().put(`/pos-users/migrate/${e}`, s);
|
|
@@ -60,7 +64,7 @@ const o = {
|
|
|
60
64
|
});
|
|
61
65
|
},
|
|
62
66
|
async generateEmployeePasscode(e) {
|
|
63
|
-
return `${
|
|
67
|
+
return `${m(
|
|
64
68
|
await l().post("/pos-users/generate-passcode", {
|
|
65
69
|
restaurantIds: e.restaurantIds,
|
|
66
70
|
excludePosUserId: e.excludePosUserId
|
|
@@ -72,17 +76,17 @@ const o = {
|
|
|
72
76
|
}
|
|
73
77
|
};
|
|
74
78
|
async function T(e) {
|
|
75
|
-
const s = P().roles.value, { restaurants:
|
|
76
|
-
|
|
77
|
-
),
|
|
79
|
+
const s = P().roles.value, { restaurants: i } = I(), c = new Map(
|
|
80
|
+
i.value.map((a) => [a._id, a.profile.name])
|
|
81
|
+
), u = new Map(s.map((a) => [a._id, a.name])), r = /* @__PURE__ */ new Map();
|
|
78
82
|
for (const a of e) {
|
|
79
83
|
const n = {
|
|
80
84
|
restaurantId: a.restaurantId,
|
|
81
|
-
restaurantName:
|
|
85
|
+
restaurantName: c.get(a.restaurantId) || "",
|
|
82
86
|
roleId: a.role,
|
|
83
|
-
roleName:
|
|
84
|
-
},
|
|
85
|
-
if (!
|
|
87
|
+
roleName: u.get(a.role) || ""
|
|
88
|
+
}, d = r.get(a._id);
|
|
89
|
+
if (!d) {
|
|
86
90
|
r.set(a._id, {
|
|
87
91
|
...a,
|
|
88
92
|
isRestricted: !1,
|
|
@@ -91,16 +95,16 @@ async function T(e) {
|
|
|
91
95
|
});
|
|
92
96
|
continue;
|
|
93
97
|
}
|
|
94
|
-
|
|
98
|
+
d.restaurants.some((f) => f.restaurantId === a.restaurantId) || (d.restaurants = E([...d.restaurants, n], {
|
|
95
99
|
selector: "restaurantName"
|
|
96
100
|
}));
|
|
97
101
|
}
|
|
98
102
|
return E([...r.values()], { selector: "name" });
|
|
99
103
|
}
|
|
100
104
|
function M(e) {
|
|
101
|
-
const { restaurants: s } = I(),
|
|
105
|
+
const { restaurants: s } = I(), i = P().roles.value, c = new Map(
|
|
102
106
|
s.value.map((a) => [a._id, a])
|
|
103
|
-
),
|
|
107
|
+
), u = new Map(i.map((a) => [a._id, a.name])), r = e.restaurantRole[0];
|
|
104
108
|
return {
|
|
105
109
|
_id: e._id,
|
|
106
110
|
name: e.name,
|
|
@@ -113,13 +117,13 @@ function M(e) {
|
|
|
113
117
|
since: g(v(e._id)).format("DD/MM/YYYY"),
|
|
114
118
|
restaurants: E(
|
|
115
119
|
e.restaurantRole.map((a) => {
|
|
116
|
-
const n =
|
|
120
|
+
const n = c.get(a.restaurantId);
|
|
117
121
|
return {
|
|
118
122
|
restaurantId: a.restaurantId,
|
|
119
123
|
restaurantName: (n == null ? void 0 : n.profile.name) || "",
|
|
120
124
|
restaurantCode: (n == null ? void 0 : n.profile.code) ?? void 0,
|
|
121
125
|
roleId: a.roleId,
|
|
122
|
-
roleName:
|
|
126
|
+
roleName: u.get(a.roleId) || ""
|
|
123
127
|
};
|
|
124
128
|
}),
|
|
125
129
|
{ selector: "restaurantName" }
|
|
@@ -127,35 +131,35 @@ function M(e) {
|
|
|
127
131
|
};
|
|
128
132
|
}
|
|
129
133
|
const h = $("employee", () => {
|
|
130
|
-
const e = I(), s =
|
|
134
|
+
const e = I(), s = y([]), i = y([]), c = y(0), u = y(!1);
|
|
131
135
|
async function r() {
|
|
132
136
|
try {
|
|
133
|
-
|
|
137
|
+
u.value = !0, await e.readRestaurants();
|
|
134
138
|
const t = await o.readEmployees();
|
|
135
139
|
s.value = await T(t);
|
|
136
140
|
} finally {
|
|
137
|
-
|
|
141
|
+
u.value = !1;
|
|
138
142
|
}
|
|
139
143
|
}
|
|
140
144
|
async function a(t) {
|
|
141
145
|
try {
|
|
142
|
-
|
|
143
|
-
const
|
|
144
|
-
|
|
146
|
+
u.value = !0, await e.readRestaurants();
|
|
147
|
+
const p = await o.readEmployeesPage(t);
|
|
148
|
+
i.value = p.items.map(M), c.value = p.total;
|
|
145
149
|
} finally {
|
|
146
|
-
|
|
150
|
+
u.value = !1;
|
|
147
151
|
}
|
|
148
152
|
}
|
|
149
|
-
async function n(t,
|
|
153
|
+
async function n(t, p) {
|
|
150
154
|
await e.readRestaurants();
|
|
151
|
-
const w =
|
|
155
|
+
const w = p ?? (await o.readEmployeesPage({ ...t, limit: 1, offset: 0 })).total;
|
|
152
156
|
return w === 0 ? [] : (await o.readEmployeesPage({ ...t, limit: w, offset: 0 })).items.map(M);
|
|
153
157
|
}
|
|
154
|
-
async function
|
|
155
|
-
|
|
158
|
+
async function d(t) {
|
|
159
|
+
return o.createEmployee(t);
|
|
156
160
|
}
|
|
157
|
-
async function
|
|
158
|
-
await o.updateEmployee(t,
|
|
161
|
+
async function f(t, p) {
|
|
162
|
+
await o.updateEmployee(t, p);
|
|
159
163
|
}
|
|
160
164
|
async function _(t) {
|
|
161
165
|
await o.deleteEmployee(t);
|
|
@@ -164,27 +168,27 @@ const h = $("employee", () => {
|
|
|
164
168
|
await o.deleteMasterEmployee(t);
|
|
165
169
|
}
|
|
166
170
|
async function Y(t) {
|
|
167
|
-
|
|
171
|
+
return o.createMasterEmployee(t);
|
|
168
172
|
}
|
|
169
|
-
async function N(t,
|
|
170
|
-
await o.updateMasterEmployee(t,
|
|
173
|
+
async function N(t, p) {
|
|
174
|
+
await o.updateMasterEmployee(t, p);
|
|
171
175
|
}
|
|
172
|
-
async function S(t,
|
|
173
|
-
await o.migrateToMasterEmployee(t,
|
|
176
|
+
async function S(t, p) {
|
|
177
|
+
await o.migrateToMasterEmployee(t, p);
|
|
174
178
|
}
|
|
175
179
|
async function D() {
|
|
176
180
|
await o.syncUsersMeta();
|
|
177
181
|
}
|
|
178
182
|
return {
|
|
179
183
|
employees: s,
|
|
180
|
-
listEmployees:
|
|
181
|
-
totalEmployees:
|
|
182
|
-
isLoading:
|
|
184
|
+
listEmployees: i,
|
|
185
|
+
totalEmployees: c,
|
|
186
|
+
isLoading: u,
|
|
183
187
|
readEmployees: r,
|
|
184
188
|
readEmployeesPage: a,
|
|
185
189
|
readAllEmployeesPage: n,
|
|
186
|
-
createEmployee:
|
|
187
|
-
updateEmployee:
|
|
190
|
+
createEmployee: d,
|
|
191
|
+
updateEmployee: f,
|
|
188
192
|
deleteEmployee: _,
|
|
189
193
|
createMasterEmployee: Y,
|
|
190
194
|
updateMasterEmployee: N,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as f } from "pinia";
|
|
2
2
|
import { ref as u } from "vue";
|
|
3
|
-
import { g as s, a as v, b as o } from "./restaurant-
|
|
3
|
+
import { g as s, a as v, b as o } from "./restaurant-CHpkjUPy.js";
|
|
4
4
|
const c = {
|
|
5
5
|
async getGrantUsers() {
|
|
6
6
|
return s(await o("grant").get(""));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as B } from "./app-
|
|
1
|
+
import { f as B } from "./app-CyS8c8dx.js";
|
|
2
2
|
var ma = {}, Zt = {}, l = {}, ji = {}, Ei = {}, Ii = {}, Dn = {};
|
|
3
3
|
(function(e) {
|
|
4
4
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getParsedType = e.ZodParsedType = e.util = void 0;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { toRaw as n } from "vue";
|
|
2
|
+
function t(r) {
|
|
3
|
+
return JSON.parse(JSON.stringify(r));
|
|
4
|
+
}
|
|
5
|
+
function o(r) {
|
|
6
|
+
if (typeof structuredClone > "u")
|
|
7
|
+
return t(r);
|
|
8
|
+
try {
|
|
9
|
+
return structuredClone(n(r));
|
|
10
|
+
} catch {
|
|
11
|
+
return t(r);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
o as c
|
|
16
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineStore as gt, storeToRefs as
|
|
1
|
+
import { defineStore as gt, storeToRefs as St } from "pinia";
|
|
2
2
|
import { ref as fe } from "vue";
|
|
3
|
-
import { useCoreStore as re, baseClientInstance as We, FeedMeAuth as
|
|
3
|
+
import { useCoreStore as re, baseClientInstance as We, FeedMeAuth as Rt } from "@feedmepos/mf-common";
|
|
4
4
|
function Ke(e, t) {
|
|
5
5
|
return function() {
|
|
6
6
|
return e.apply(t, arguments);
|
|
@@ -354,7 +354,7 @@ function ae(e, t, n) {
|
|
|
354
354
|
convertValue: l,
|
|
355
355
|
isVisitable: ye
|
|
356
356
|
});
|
|
357
|
-
function
|
|
357
|
+
function S(d, m) {
|
|
358
358
|
if (!a.isUndefined(d)) {
|
|
359
359
|
if (h.indexOf(d) !== -1)
|
|
360
360
|
throw Error("Circular reference detected in " + m.join("."));
|
|
@@ -365,13 +365,13 @@ function ae(e, t, n) {
|
|
|
365
365
|
a.isString(C) ? C.trim() : C,
|
|
366
366
|
m,
|
|
367
367
|
b
|
|
368
|
-
)) === !0 &&
|
|
368
|
+
)) === !0 && S(E, m ? m.concat(C) : [C]);
|
|
369
369
|
}), h.pop();
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
if (!a.isObject(e))
|
|
373
373
|
throw new TypeError("data must be an object");
|
|
374
|
-
return
|
|
374
|
+
return S(e), t;
|
|
375
375
|
}
|
|
376
376
|
function _e(e) {
|
|
377
377
|
const t = {
|
|
@@ -486,27 +486,27 @@ const at = {
|
|
|
486
486
|
Blob: mn
|
|
487
487
|
},
|
|
488
488
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
489
|
-
},
|
|
490
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", En =
|
|
489
|
+
}, Se = typeof window < "u" && typeof document < "u", be = typeof navigator == "object" && navigator || void 0, bn = Se && (!be || ["ReactNative", "NativeScript", "NS"].indexOf(be.product) < 0), wn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
490
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", En = Se && window.location.href || "http://localhost", gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
491
491
|
__proto__: null,
|
|
492
|
-
hasBrowserEnv:
|
|
492
|
+
hasBrowserEnv: Se,
|
|
493
493
|
hasStandardBrowserEnv: bn,
|
|
494
494
|
hasStandardBrowserWebWorkerEnv: wn,
|
|
495
495
|
navigator: be,
|
|
496
496
|
origin: En
|
|
497
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
497
|
+
}, Symbol.toStringTag, { value: "Module" })), R = {
|
|
498
498
|
...gn,
|
|
499
499
|
...yn
|
|
500
500
|
};
|
|
501
|
-
function
|
|
502
|
-
return ae(e, new
|
|
501
|
+
function Sn(e, t) {
|
|
502
|
+
return ae(e, new R.classes.URLSearchParams(), {
|
|
503
503
|
visitor: function(n, r, s, o) {
|
|
504
|
-
return
|
|
504
|
+
return R.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
505
505
|
},
|
|
506
506
|
...t
|
|
507
507
|
});
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function Rn(e) {
|
|
510
510
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
511
511
|
}
|
|
512
512
|
function On(e) {
|
|
@@ -528,7 +528,7 @@ function ct(e) {
|
|
|
528
528
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
529
529
|
const n = {};
|
|
530
530
|
return a.forEachEntry(e, (r, s) => {
|
|
531
|
-
t(
|
|
531
|
+
t(Rn(r), s, n, 0);
|
|
532
532
|
}), n;
|
|
533
533
|
}
|
|
534
534
|
return null;
|
|
@@ -559,7 +559,7 @@ const K = {
|
|
|
559
559
|
let c;
|
|
560
560
|
if (o) {
|
|
561
561
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
562
|
-
return
|
|
562
|
+
return Sn(t, this.formSerializer).toString();
|
|
563
563
|
if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
564
564
|
const f = this.env && this.env.FormData;
|
|
565
565
|
return ae(
|
|
@@ -596,8 +596,8 @@ const K = {
|
|
|
596
596
|
maxContentLength: -1,
|
|
597
597
|
maxBodyLength: -1,
|
|
598
598
|
env: {
|
|
599
|
-
FormData:
|
|
600
|
-
Blob:
|
|
599
|
+
FormData: R.classes.FormData,
|
|
600
|
+
Blob: R.classes.Blob
|
|
601
601
|
},
|
|
602
602
|
validateStatus: function(t) {
|
|
603
603
|
return t >= 200 && t < 300;
|
|
@@ -855,8 +855,8 @@ function _n(e, t) {
|
|
|
855
855
|
b += n[h++], h = h % e;
|
|
856
856
|
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), l - i < t)
|
|
857
857
|
return;
|
|
858
|
-
const
|
|
859
|
-
return
|
|
858
|
+
const S = u && l - u;
|
|
859
|
+
return S ? Math.round(b * 1e3 / S) : void 0;
|
|
860
860
|
};
|
|
861
861
|
}
|
|
862
862
|
function Ln(e, t) {
|
|
@@ -897,10 +897,10 @@ const ne = (e, t, n = 3) => {
|
|
|
897
897
|
total: e,
|
|
898
898
|
loaded: r
|
|
899
899
|
}), t[1]];
|
|
900
|
-
}, De = (e) => (...t) => a.asap(() => e(...t)), Bn =
|
|
901
|
-
new URL(
|
|
902
|
-
|
|
903
|
-
) : () => !0, kn =
|
|
900
|
+
}, De = (e) => (...t) => a.asap(() => e(...t)), Bn = R.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, R.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
901
|
+
new URL(R.origin),
|
|
902
|
+
R.navigator && /(msie|trident)/i.test(R.navigator.userAgent)
|
|
903
|
+
) : () => !0, kn = R.hasStandardBrowserEnv ? (
|
|
904
904
|
// Standard browser envs support document.cookie
|
|
905
905
|
{
|
|
906
906
|
write(e, t, n, r, s, o, i) {
|
|
@@ -1011,7 +1011,7 @@ const dt = (e) => {
|
|
|
1011
1011
|
"Authorization",
|
|
1012
1012
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1013
1013
|
), a.isFormData(n)) {
|
|
1014
|
-
if (
|
|
1014
|
+
if (R.hasStandardBrowserEnv || R.hasStandardBrowserWebWorkerEnv)
|
|
1015
1015
|
i.setContentType(void 0);
|
|
1016
1016
|
else if (a.isFunction(n.getHeaders)) {
|
|
1017
1017
|
const f = n.getHeaders(), l = ["content-type", "content-length"];
|
|
@@ -1020,7 +1020,7 @@ const dt = (e) => {
|
|
|
1020
1020
|
});
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
|
-
if (
|
|
1023
|
+
if (R.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Bn(t.url))) {
|
|
1024
1024
|
const f = s && o && kn.read(o);
|
|
1025
1025
|
f && i.set(s, f);
|
|
1026
1026
|
}
|
|
@@ -1030,9 +1030,9 @@ const dt = (e) => {
|
|
|
1030
1030
|
const s = dt(e);
|
|
1031
1031
|
let o = s.data;
|
|
1032
1032
|
const i = T.from(s.headers).normalize();
|
|
1033
|
-
let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, h, b,
|
|
1033
|
+
let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, h, b, S, d;
|
|
1034
1034
|
function m() {
|
|
1035
|
-
|
|
1035
|
+
S && S(), d && d(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
|
|
1036
1036
|
}
|
|
1037
1037
|
let p = new XMLHttpRequest();
|
|
1038
1038
|
p.open(s.method.toUpperCase(), s.url, !0), p.timeout = s.timeout;
|
|
@@ -1073,11 +1073,11 @@ const dt = (e) => {
|
|
|
1073
1073
|
)), p = null;
|
|
1074
1074
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in p && a.forEach(i.toJSON(), function(O, N) {
|
|
1075
1075
|
p.setRequestHeader(N, O);
|
|
1076
|
-
}), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), l && ([b, d] = ne(l, !0), p.addEventListener("progress", b)), f && p.upload && ([h,
|
|
1076
|
+
}), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), l && ([b, d] = ne(l, !0), p.addEventListener("progress", b)), f && p.upload && ([h, S] = ne(f), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", S)), (s.cancelToken || s.signal) && (u = (g) => {
|
|
1077
1077
|
p && (r(!g || g.type ? new M(null, e, p) : g), p.abort(), p = null);
|
|
1078
1078
|
}, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
|
|
1079
1079
|
const C = Un(s.url);
|
|
1080
|
-
if (C &&
|
|
1080
|
+
if (C && R.protocols.indexOf(C) === -1) {
|
|
1081
1081
|
r(new y("Unsupported protocol " + C + ":", y.ERR_BAD_REQUEST, e));
|
|
1082
1082
|
return;
|
|
1083
1083
|
}
|
|
@@ -1184,7 +1184,7 @@ const dt = (e) => {
|
|
|
1184
1184
|
return !1;
|
|
1185
1185
|
const c = s && Z($e), f = s && (typeof He == "function" ? /* @__PURE__ */ ((d) => (m) => d.encode(m))(new He()) : async (d) => new Uint8Array(await new n(d).arrayBuffer())), l = o && c && Me(() => {
|
|
1186
1186
|
let d = !1;
|
|
1187
|
-
const m = new n(
|
|
1187
|
+
const m = new n(R.origin, {
|
|
1188
1188
|
body: new $e(),
|
|
1189
1189
|
method: "POST",
|
|
1190
1190
|
get duplex() {
|
|
@@ -1209,7 +1209,7 @@ const dt = (e) => {
|
|
|
1209
1209
|
if (a.isBlob(d))
|
|
1210
1210
|
return d.size;
|
|
1211
1211
|
if (a.isSpecCompliantForm(d))
|
|
1212
|
-
return (await new n(
|
|
1212
|
+
return (await new n(R.origin, {
|
|
1213
1213
|
method: "POST",
|
|
1214
1214
|
body: d
|
|
1215
1215
|
}).arrayBuffer()).byteLength;
|
|
@@ -1217,7 +1217,7 @@ const dt = (e) => {
|
|
|
1217
1217
|
return d.byteLength;
|
|
1218
1218
|
if (a.isURLSearchParams(d) && (d = d + ""), a.isString(d))
|
|
1219
1219
|
return (await f(d)).byteLength;
|
|
1220
|
-
},
|
|
1220
|
+
}, S = async (d, m) => {
|
|
1221
1221
|
const p = a.toFiniteNumber(d.getContentLength());
|
|
1222
1222
|
return p ?? b(m);
|
|
1223
1223
|
};
|
|
@@ -1243,7 +1243,7 @@ const dt = (e) => {
|
|
|
1243
1243
|
});
|
|
1244
1244
|
let Te;
|
|
1245
1245
|
try {
|
|
1246
|
-
if (B && l && p !== "get" && p !== "head" && (Te = await
|
|
1246
|
+
if (B && l && p !== "get" && p !== "head" && (Te = await S(ue, E)) !== 0) {
|
|
1247
1247
|
let L = new n(m, {
|
|
1248
1248
|
method: "POST",
|
|
1249
1249
|
body: E,
|
|
@@ -1320,14 +1320,14 @@ const dt = (e) => {
|
|
|
1320
1320
|
return l;
|
|
1321
1321
|
};
|
|
1322
1322
|
pt();
|
|
1323
|
-
const
|
|
1323
|
+
const Re = {
|
|
1324
1324
|
http: un,
|
|
1325
1325
|
xhr: qn,
|
|
1326
1326
|
fetch: {
|
|
1327
1327
|
get: pt
|
|
1328
1328
|
}
|
|
1329
1329
|
};
|
|
1330
|
-
a.forEach(
|
|
1330
|
+
a.forEach(Re, (e, t) => {
|
|
1331
1331
|
if (e) {
|
|
1332
1332
|
try {
|
|
1333
1333
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1345,7 +1345,7 @@ function Kn(e, t) {
|
|
|
1345
1345
|
for (let i = 0; i < n; i++) {
|
|
1346
1346
|
r = e[i];
|
|
1347
1347
|
let c;
|
|
1348
|
-
if (s = r, !Wn(r) && (s =
|
|
1348
|
+
if (s = r, !Wn(r) && (s = Re[(c = String(r)).toLowerCase()], s === void 0))
|
|
1349
1349
|
throw new y(`Unknown adapter '${c}'`);
|
|
1350
1350
|
if (s && (a.isFunction(s) || (s = s.get(t))))
|
|
1351
1351
|
break;
|
|
@@ -1375,7 +1375,7 @@ const ht = {
|
|
|
1375
1375
|
* Exposes all known adapters
|
|
1376
1376
|
* @type {Object<string, Function|Object>}
|
|
1377
1377
|
*/
|
|
1378
|
-
adapters:
|
|
1378
|
+
adapters: Re
|
|
1379
1379
|
};
|
|
1380
1380
|
function he(e) {
|
|
1381
1381
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
@@ -1523,18 +1523,18 @@ let j = class {
|
|
|
1523
1523
|
return u;
|
|
1524
1524
|
}
|
|
1525
1525
|
b = c.length;
|
|
1526
|
-
let
|
|
1526
|
+
let S = n;
|
|
1527
1527
|
for (; h < b; ) {
|
|
1528
1528
|
const d = c[h++], m = c[h++];
|
|
1529
1529
|
try {
|
|
1530
|
-
|
|
1530
|
+
S = d(S);
|
|
1531
1531
|
} catch (p) {
|
|
1532
1532
|
m.call(this, p);
|
|
1533
1533
|
break;
|
|
1534
1534
|
}
|
|
1535
1535
|
}
|
|
1536
1536
|
try {
|
|
1537
|
-
u = ze.call(this,
|
|
1537
|
+
u = ze.call(this, S);
|
|
1538
1538
|
} catch (d) {
|
|
1539
1539
|
return Promise.reject(d);
|
|
1540
1540
|
}
|
|
@@ -1767,8 +1767,8 @@ const {
|
|
|
1767
1767
|
toFormData: wr,
|
|
1768
1768
|
AxiosHeaders: Er,
|
|
1769
1769
|
HttpStatusCode: gr,
|
|
1770
|
-
formToJSON:
|
|
1771
|
-
getAdapter:
|
|
1770
|
+
formToJSON: Sr,
|
|
1771
|
+
getAdapter: Rr,
|
|
1772
1772
|
mergeConfig: Or
|
|
1773
1773
|
} = w;
|
|
1774
1774
|
class er extends Error {
|
|
@@ -1778,7 +1778,7 @@ class er extends Error {
|
|
|
1778
1778
|
}
|
|
1779
1779
|
const wt = (e) => (t) => {
|
|
1780
1780
|
var s;
|
|
1781
|
-
const n = ((s = re().sessionUser.value) == null ? void 0 : s.token) ??
|
|
1781
|
+
const n = ((s = re().sessionUser.value) == null ? void 0 : s.token) ?? Rt.token;
|
|
1782
1782
|
if (!n) throw new Error("Invalid token");
|
|
1783
1783
|
const r = w.create({
|
|
1784
1784
|
baseURL: `${e}/${t}`,
|
|
@@ -1819,9 +1819,9 @@ const wt = (e) => (t) => {
|
|
|
1819
1819
|
throw new Error("Invalid business");
|
|
1820
1820
|
}, Ar = () => {
|
|
1821
1821
|
var o;
|
|
1822
|
-
const t = (o = re().currentCountry.value) == null ? void 0 : o.toLowerCase(), r = "
|
|
1822
|
+
const t = (o = re().currentCountry.value) == null ? void 0 : o.toLowerCase(), r = "feedmeapi.com", s = !t || t === "my" ? `https://query-engine.${r}` : `https://query-engine.${t}.${r}`;
|
|
1823
1823
|
return wt(s)("");
|
|
1824
|
-
}, Tr = () => wt("https://account.
|
|
1824
|
+
}, Tr = () => wt("https://account.feedme.cc/api")(""), Cr = () => We("user/bypass/validate/");
|
|
1825
1825
|
function tr(e) {
|
|
1826
1826
|
return e.data;
|
|
1827
1827
|
}
|
|
@@ -1866,12 +1866,11 @@ const nr = {
|
|
|
1866
1866
|
const e = rr();
|
|
1867
1867
|
return {
|
|
1868
1868
|
...e,
|
|
1869
|
-
...
|
|
1869
|
+
...St(e)
|
|
1870
1870
|
};
|
|
1871
1871
|
};
|
|
1872
1872
|
export {
|
|
1873
1873
|
er as A,
|
|
1874
|
-
nr as R,
|
|
1875
1874
|
Cr as a,
|
|
1876
1875
|
Ve as b,
|
|
1877
1876
|
Tr as c,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineStore as x, storeToRefs as b } from "pinia";
|
|
2
2
|
import { ref as w } from "vue";
|
|
3
3
|
import { useCoreStore as B } from "@feedmepos/mf-common";
|
|
4
|
-
import { s as v } from "./iteration-
|
|
5
|
-
import { g as f, b as p, u as I } from "./restaurant-
|
|
4
|
+
import { s as v } from "./iteration-CL1RDmws.js";
|
|
5
|
+
import { g as f, b as p, u as I } from "./restaurant-CHpkjUPy.js";
|
|
6
6
|
const R = {
|
|
7
7
|
async readRoles() {
|
|
8
8
|
return f(await p().get("/pos-roles"));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as W, c as q, e as y } from "./iteration-
|
|
2
|
-
import {
|
|
1
|
+
import { s as W, c as q, e as y } from "./iteration-CL1RDmws.js";
|
|
2
|
+
import { h as O, c as V, d as _, v as F, n as h, O as ee, D as M } from "./app-CyS8c8dx.js";
|
|
3
3
|
import { s as se } from "./utils-BZkjJbju.js";
|
|
4
|
-
import { g, b as v, q as x, u as te } from "./restaurant-
|
|
4
|
+
import { g, b as v, q as x, u as te } from "./restaurant-CHpkjUPy.js";
|
|
5
5
|
import { defineStore as z, storeToRefs as K } from "pinia";
|
|
6
6
|
import { ref as S, computed as T } from "vue";
|
|
7
7
|
import { useCoreStore as X } from "@feedmepos/mf-common";
|
|
@@ -7,8 +7,8 @@ export interface IGeneratePasscodeParams {
|
|
|
7
7
|
declare const EmployeeAPI: {
|
|
8
8
|
readEmployees(): Promise<IFdtoPosUser[]>;
|
|
9
9
|
readEmployeesPage(query: IReadEmployeesPageReq): Promise<IFdtoEmployeePage>;
|
|
10
|
-
createEmployee(dto: FdtoUpdatePosUserReq): Promise<
|
|
11
|
-
createMasterEmployee(dto: FdtoUpdatePosMasterUserReq): Promise<
|
|
10
|
+
createEmployee(dto: FdtoUpdatePosUserReq): Promise<string>;
|
|
11
|
+
createMasterEmployee(dto: FdtoUpdatePosMasterUserReq): Promise<string>;
|
|
12
12
|
migrateToMasterEmployee(employeeId: string, dto: FdtoUpdatePosMasterUserReq): Promise<void>;
|
|
13
13
|
updateEmployee(employeeId: string, dto: FdtoUpdatePosUserReq): Promise<void>;
|
|
14
14
|
updateMasterEmployee(employeeId: string, dto: FdtoUpdatePosMasterUserReq): Promise<void>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { FdtoScheduleAssignment, FdtoScheduleAutoScheduleApplyReq, FdtoScheduleAutoScheduleApplyResult, FdtoScheduleAutoScheduleCapabilities, FdtoScheduleAutoScheduleGenerateReq, FdtoScheduleAutoScheduleResult, FdtoScheduleBoard, FdtoScheduleBulkUpdateAssignmentStatusReq, FdtoScheduleBulkSaveAssignmentsReq, FdtoScheduleBulkSaveAssignmentsResult, FdtoScheduleBulkReplaceDemandReq, FdtoScheduleCreateEmployeeProfileReq, FdtoScheduleEmployeeConfig, FdtoScheduleDemand, FdtoScheduleEmployee, FdtoSchedulePosition, FdtoScheduleSaveAssignmentReq, FdtoScheduleSaveDemandReq, FdtoScheduleSaveEmployeeConfigsReq, FdtoScheduleSavePositionReq, FdtoScheduleSaveScheduleDayReq, FdtoScheduleSaveSettingsReq, FdtoScheduleReplaceDemandReq, FdtoScheduleSettings, FdtoScheduleScheduleDay, FdtoScheduleUpdateEmployeeProfileReq, FdtoScheduleCreateTimeOffReq, FdtoScheduleTimeOff, FdtoScheduleUpdateTimeOffStatusReq } from '@/types/schedule';
|
|
1
|
+
import type { FdtoScheduleAssignment, FdtoScheduleAutoScheduleApplyReq, FdtoScheduleAutoScheduleApplyResult, FdtoScheduleAutoScheduleCapabilities, FdtoScheduleAutoScheduleGenerateReq, FdtoScheduleAutoScheduleResult, FdtoScheduleBoard, FdtoScheduleBulkUpdateAssignmentStatusReq, FdtoScheduleBulkSaveAssignmentsReq, FdtoScheduleBulkSaveAssignmentsResult, FdtoScheduleBulkReplaceDemandReq, FdtoScheduleClearScheduleReq, FdtoScheduleCopyScheduleReq, FdtoScheduleCreateEmployeeProfileReq, FdtoScheduleEmployeeConfig, FdtoScheduleDemand, FdtoScheduleEmployee, FdtoSchedulePosition, FdtoScheduleSaveAssignmentReq, FdtoScheduleSaveDemandReq, FdtoScheduleSaveEmployeeConfigsReq, FdtoScheduleSavePositionReq, FdtoScheduleSaveScheduleDayReq, FdtoScheduleSaveSettingsReq, FdtoScheduleReplaceDemandReq, FdtoScheduleSettings, FdtoScheduleScheduleDay, FdtoScheduleUpdateEmployeeProfileReq, FdtoScheduleCompleteOnboardingReq, FdtoScheduleValidatePosAccessReq, FdtoScheduleCreateTimeOffReq, FdtoScheduleTimeOff, FdtoScheduleUpdateTimeOffStatusReq } from '@/types/schedule';
|
|
2
2
|
declare const ScheduleAPI: {
|
|
3
|
+
completeOnboarding(restaurantId: string, req: FdtoScheduleCompleteOnboardingReq): Promise<any>;
|
|
3
4
|
listEmployeeProfiles(employeeIds?: string[]): Promise<FdtoScheduleEmployee[]>;
|
|
4
5
|
listEmployeeConfigs(restaurantId: string): Promise<FdtoScheduleEmployeeConfig[]>;
|
|
5
6
|
saveEmployeeConfigs(restaurantId: string, req: FdtoScheduleSaveEmployeeConfigsReq): Promise<FdtoScheduleEmployeeConfig[]>;
|
|
@@ -17,6 +18,7 @@ declare const ScheduleAPI: {
|
|
|
17
18
|
createEmployeeProfile(_restaurantId: string, req: FdtoScheduleCreateEmployeeProfileReq): Promise<FdtoScheduleEmployee>;
|
|
18
19
|
/** Edits the employee's shared business-level scheduling profile. */
|
|
19
20
|
updateEmployeeProfile(_restaurantId: string, employeeId: string, req: FdtoScheduleUpdateEmployeeProfileReq): Promise<FdtoScheduleEmployee>;
|
|
21
|
+
validatePosAccess(req: FdtoScheduleValidatePosAccessReq): Promise<void>;
|
|
20
22
|
/** Positions are shared across the business. */
|
|
21
23
|
createPosition(req: FdtoScheduleSavePositionReq): Promise<FdtoSchedulePosition>;
|
|
22
24
|
updatePosition(id: string, req: FdtoScheduleSavePositionReq): Promise<FdtoSchedulePosition>;
|
|
@@ -43,6 +45,10 @@ declare const ScheduleAPI: {
|
|
|
43
45
|
updateAssignment(restaurantId: string, id: string, req: FdtoScheduleSaveAssignmentReq): Promise<FdtoScheduleAssignment | null>;
|
|
44
46
|
/** Atomically applies assignment updates, creates, and deletes used by moves and swaps. */
|
|
45
47
|
bulkSaveAssignments(restaurantId: string, req: FdtoScheduleBulkSaveAssignmentsReq): Promise<FdtoScheduleBulkSaveAssignmentsResult>;
|
|
48
|
+
/** Replaces demand and/or assignments in one backend transaction. */
|
|
49
|
+
copySchedule(restaurantId: string, req: FdtoScheduleCopyScheduleReq): Promise<any>;
|
|
50
|
+
/** Clears demand and/or assignments in one backend transaction. */
|
|
51
|
+
clearSchedule(restaurantId: string, req: FdtoScheduleClearScheduleReq): Promise<any>;
|
|
46
52
|
/** Deletes a batch of assignments in one request — e.g. a shift split into several segments
|
|
47
53
|
* getting replaced wholesale. Deleting one assignment is just this with a single-id
|
|
48
54
|
* array. */
|
|
@@ -50,6 +56,11 @@ declare const ScheduleAPI: {
|
|
|
50
56
|
ok: true;
|
|
51
57
|
deletedCount: number;
|
|
52
58
|
}>;
|
|
59
|
+
/** Removes all assignments for an employee from the inclusive removal date onward. */
|
|
60
|
+
deleteEmployeeFutureAssignments(restaurantId: string, employeeId: string, from: string): Promise<{
|
|
61
|
+
ok: true;
|
|
62
|
+
deletedCount: number;
|
|
63
|
+
}>;
|
|
53
64
|
/** Flips a batch of assignments to one status in a single request — e.g. Publish sending
|
|
54
65
|
* every DRAFT shift on the board to PUBLISHED at once. */
|
|
55
66
|
bulkUpdateAssignmentStatus(restaurantId: string, req: FdtoScheduleBulkUpdateAssignmentStatusReq): Promise<FdtoScheduleAssignment[]>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|