@feedmepos/mf-hrm-portal 2.2.5-dev.4 → 2.2.5-dev.5
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-D0B_X3Sf.js → ApprovalCodeList-DqR6ouRS.js} +4 -4
- package/dist/{AuditLogList-D9anf4YQ.js → AuditLogList-CG2BiQX6.js} +17 -18
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-4oENMRO3.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C7nMXx8R.js} +2 -2
- package/dist/{EmployeeList-DREDu3Ou.js → EmployeeList-CGZzol7v.js} +27 -29
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js → FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js} +1 -1
- package/dist/{GrantUserList-CLDshEN9.js → GrantUserList-D1fBv1KQ.js} +5 -5
- package/dist/{Main-lqlb8tPw.js → Main-BOt-Y1wv.js} +9 -9
- package/dist/{Main-QhQxU593.js → Main-CFoZot3K.js} +5 -5
- package/dist/{Main-DtMaG42L.js → Main-zg7fbEtx.js} +2 -2
- package/dist/{PermissionSetList-BK8yBpJJ.js → PermissionSetList-bJpwD62u.js} +10 -11
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-uSdvH81B.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C4C8Cvf4.js} +911 -912
- package/dist/{RoleList-D6AX6BqB.js → RoleList-DUVZ7dkO.js} +7 -7
- package/dist/SelectFilter-ATOm0hdn.js +269 -0
- package/dist/{TeamMemberList-BM5JoR6J.js → TeamMemberList-DAnM-DSd.js} +34 -36
- package/dist/{TimesheetList-Ch_f_PD5.js → TimesheetList-5sdcWjEf.js} +53 -54
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CxqxqwyD.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-GhPw_mCW.js} +2 -2
- package/dist/{app-tDHL6k4G.js → app-D-cQzgkr.js} +2299 -2884
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-B_XWc0Hu.js → dayjs.min-DqFS0ebn.js} +1 -1
- package/dist/employee-DvvnCQMK.js +204 -0
- package/dist/{index-jxRluZiW.js → iteration-BjW8Cs9e.js} +726 -698
- package/dist/{lodash-D5vM3paU.js → lodash-wjhSWqez.js} +1 -1
- package/dist/{role-7ccipEEe.js → role-CEUcSmA6.js} +3 -4
- package/dist/{rule-7faruCdz.js → rule-Df8LOhxm.js} +70 -71
- package/dist/src/router/shared.d.ts +1 -4
- package/dist/src/views/team/components/PortalConditionForm.vue.d.ts +2 -2
- package/dist/src/views/team/condition-builders/ConditionBuilderForm.vue.d.ts +2 -2
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-FieO4EAD.js → useReportPermissions-4wm7pJcK.js} +3 -3
- package/package.json +1 -1
- package/dist/ScheduleGeneralPage-DAECTCDu.js +0 -242
- package/dist/SchedulePage-CdFR7JuO.js +0 -10751
- package/dist/SchedulePositionPage-DTtKg0sx.js +0 -220
- package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-BiuUrr50.js +0 -199
- package/dist/SelectFilter-CG13h83-.js +0 -264
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/employee-Bs_2vqBY.js +0 -139
- package/dist/index-Cz2b95YF.js +0 -70
- package/dist/iteration-CcXrOMQe.js +0 -30
- package/dist/src/api/schedule/index.d.ts +0 -44
- package/dist/src/components/layout/AppSidebar.vue.d.ts +0 -2
- package/dist/src/components/layout/PortalShell.vue.d.ts +0 -12
- package/dist/src/components/layout/withShell.d.ts +0 -14
- package/dist/src/types/schedule.d.ts +0 -232
- package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +0 -4
- package/dist/src/views/scheduling/SchedulePage.vue.d.ts +0 -4
- package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +0 -4
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeIdentitySection.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModeStep.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePosAccessSection.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeSchedulingSection.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddPickPopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAllShiftsRow.vue.d.ts +0 -22
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +0 -34
- package/dist/src/views/scheduling/components/ScheduleAssignEmployeePopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleChangeEmployeeModal.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +0 -24
- package/dist/src/views/scheduling/components/ScheduleCostRail.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleDateRangePopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleDayNotePopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleDemandRow.vue.d.ts +0 -23
- package/dist/src/views/scheduling/components/ScheduleDemandSheet.vue.d.ts +0 -10
- package/dist/src/views/scheduling/components/ScheduleDotsIcon.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleEmployeeDetailPanel.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleEmployeeIdentity.vue.d.ts +0 -17
- package/dist/src/views/scheduling/components/ScheduleFilterBar.vue.d.ts +0 -18
- package/dist/src/views/scheduling/components/ScheduleGapPopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleGridHeader.vue.d.ts +0 -18
- package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleLegendBar.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingWelcome.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOpenShiftCardMenu.vue.d.ts +0 -14
- package/dist/src/views/scheduling/components/SchedulePdfPreview.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/SchedulePublishModal.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleReviewBar.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +0 -24
- package/dist/src/views/scheduling/components/ScheduleSelectExistingEmployeeModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleShiftCardMenu.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +0 -31
- package/dist/src/views/scheduling/components/ScheduleShiftHeadcountEditor.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleShiftImpact.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleShiftMoreOptions.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +0 -14
- package/dist/src/views/scheduling/components/ScheduleShiftRepeatDaysRow.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleShiftSegmentsEditor.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleShiftWhoPicker.vue.d.ts +0 -25
- package/dist/src/views/scheduling/components/ScheduleStackPopover.vue.d.ts +0 -14
- package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +0 -16
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +0 -54
- package/dist/src/views/scheduling/components/ScheduleStatsRow.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleSwapShiftsModal.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleTimePickerPopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +0 -22
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +0 -67
- package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +0 -38
- package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +0 -29
- package/dist/src/views/scheduling/composables/schedule-employee-profile.d.ts +0 -7
- package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +0 -14
- package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +0 -10
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +0 -86
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +0 -66
- package/dist/src/views/scheduling/composables/useScheduleAllShiftsRow.d.ts +0 -77
- package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +0 -50
- package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +0 -18
- package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +0 -113
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +0 -136
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +0 -415
- package/dist/src/views/scheduling/composables/useScheduleCellState.d.ts +0 -27
- package/dist/src/views/scheduling/composables/useScheduleClashDetection.d.ts +0 -18
- package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +0 -17
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +0 -43
- package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +0 -48
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +0 -82
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +0 -68
- package/dist/src/views/scheduling/composables/useScheduleDemandRow.d.ts +0 -45
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +0 -139
- package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +0 -22
- package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +0 -32
- package/dist/src/views/scheduling/composables/useScheduleEmployeeProfile.d.ts +0 -16
- package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +0 -26
- package/dist/src/views/scheduling/composables/useScheduleFilterBar.d.ts +0 -14
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +0 -80
- package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +0 -20
- package/dist/src/views/scheduling/composables/useScheduleLegend.d.ts +0 -15
- package/dist/src/views/scheduling/composables/useScheduleLegendBar.d.ts +0 -35
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +0 -179
- package/dist/src/views/scheduling/composables/useScheduleOpenShiftCard.d.ts +0 -23
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +0 -19
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +0 -32
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +0 -91
- package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +0 -18
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +0 -183
- package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +0 -54
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +0 -18
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +0 -225
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +0 -174
- package/dist/src/views/scheduling/composables/useScheduleStaffRail.d.ts +0 -20
- package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +0 -25
- package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +0 -44
- package/dist/src/views/scheduling/composables/useScheduleTopbar.d.ts +0 -10
- package/dist/src/views/scheduling/data.d.ts +0 -105
- package/dist/src/views/scheduling/locales/index.d.ts +0 -496
- package/dist/src/views/scheduling/schedule-store.d.ts +0 -116
- package/dist/src/views/scheduling/types.d.ts +0 -311
- package/dist/useScheduleOutlet-CmIG5dwQ.js +0 -557
- package/dist/useSchedulePositions-DPVAgdB2.js +0 -103
|
@@ -1,9 +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 "./
|
|
4
|
+
import { s as v } from "./iteration-BjW8Cs9e.js";
|
|
5
5
|
import { g as f, b as p, u as I } from "./restaurant-BTpBmfBV.js";
|
|
6
|
-
import { s as v } from "./iteration-CcXrOMQe.js";
|
|
7
6
|
const R = {
|
|
8
7
|
async readRoles() {
|
|
9
8
|
return f(await p().get("/pos-roles"));
|
|
@@ -81,7 +80,7 @@ const A = x("role", () => {
|
|
|
81
80
|
updateRole: g,
|
|
82
81
|
deleteRole: S
|
|
83
82
|
};
|
|
84
|
-
}),
|
|
83
|
+
}), L = () => {
|
|
85
84
|
const e = A();
|
|
86
85
|
return {
|
|
87
86
|
...e,
|
|
@@ -89,5 +88,5 @@ const A = x("role", () => {
|
|
|
89
88
|
};
|
|
90
89
|
};
|
|
91
90
|
export {
|
|
92
|
-
|
|
91
|
+
L as u
|
|
93
92
|
};
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { e as y } from "./
|
|
2
|
-
import {
|
|
3
|
-
import { s as V, c as ee } from "./iteration-CcXrOMQe.js";
|
|
1
|
+
import { s as W, c as q, e as y } from "./iteration-BjW8Cs9e.js";
|
|
2
|
+
import { h as O, d as V, e as _, b as F, n as h, O as ee, D as M } from "./app-D-cQzgkr.js";
|
|
4
3
|
import { s as se } from "./utils-BZkjJbju.js";
|
|
5
|
-
import { g, b
|
|
4
|
+
import { g, b, q as x, u as te } from "./restaurant-BTpBmfBV.js";
|
|
6
5
|
import { defineStore as z, storeToRefs as K } from "pinia";
|
|
7
6
|
import { ref as S, computed as T } from "vue";
|
|
8
7
|
import { useCoreStore as X } from "@feedmepos/mf-common";
|
|
9
8
|
const E = "/permission-sets", N = {
|
|
10
9
|
async read() {
|
|
11
|
-
return g(await
|
|
10
|
+
return g(await b().get(E));
|
|
12
11
|
},
|
|
13
12
|
async create(e) {
|
|
14
|
-
return g(await
|
|
13
|
+
return g(await b().post(E, e));
|
|
15
14
|
},
|
|
16
15
|
async update(e, s) {
|
|
17
|
-
return g(await
|
|
16
|
+
return g(await b().put(`${E}/${e}`, s));
|
|
18
17
|
},
|
|
19
18
|
async delete(e) {
|
|
20
|
-
return g(await
|
|
19
|
+
return g(await b().delete(`${E}/${e}`));
|
|
21
20
|
}
|
|
22
21
|
}, ne = z("permissionSet", () => {
|
|
23
22
|
const { currentBusiness: e } = X(), s = S([]), r = S(!1), n = S(null);
|
|
@@ -141,7 +140,7 @@ function G(e, s) {
|
|
|
141
140
|
}));
|
|
142
141
|
}
|
|
143
142
|
for (const f of c.permissionSets ?? []) {
|
|
144
|
-
const m = O(f), p = B(m, ["manage"]),
|
|
143
|
+
const m = O(f), p = B(m, ["manage"]), v = {
|
|
145
144
|
subject: m,
|
|
146
145
|
actions: ["manage"],
|
|
147
146
|
source: {
|
|
@@ -151,7 +150,7 @@ function G(e, s) {
|
|
|
151
150
|
trace: d
|
|
152
151
|
}
|
|
153
152
|
};
|
|
154
|
-
n.has(p) || (n.add(p), r.push(
|
|
153
|
+
n.has(p) || (n.add(p), r.push(v)), a.push(v);
|
|
155
154
|
}
|
|
156
155
|
}
|
|
157
156
|
return [...r.filter((o) => !o.inverted), ...r.filter((o) => o.inverted)];
|
|
@@ -180,13 +179,13 @@ function H(e, s, r = /* @__PURE__ */ new Set()) {
|
|
|
180
179
|
}
|
|
181
180
|
return n;
|
|
182
181
|
}
|
|
183
|
-
function
|
|
182
|
+
function Ae(e) {
|
|
184
183
|
const s = Q(e).map(
|
|
185
184
|
({ setNames: i, setId: t, ...a }) => a
|
|
186
185
|
), r = s.filter((i) => !i.inverted), n = s.filter((i) => i.inverted);
|
|
187
186
|
return L(r, n);
|
|
188
187
|
}
|
|
189
|
-
function
|
|
188
|
+
function Oe(e, s, r) {
|
|
190
189
|
const n = /* @__PURE__ */ new Map();
|
|
191
190
|
return e.forEach(
|
|
192
191
|
({ name: i, permissions: t }) => t.forEach(({ conditions: a, actions: o }) => {
|
|
@@ -203,7 +202,7 @@ function _e(e, s, r) {
|
|
|
203
202
|
setNames: [...t]
|
|
204
203
|
}));
|
|
205
204
|
}
|
|
206
|
-
function
|
|
205
|
+
function _e(e, s) {
|
|
207
206
|
const r = (o, u) => {
|
|
208
207
|
const c = { ...o }, l = JSON.parse(c.conditions || "{}");
|
|
209
208
|
if (u)
|
|
@@ -228,10 +227,10 @@ function Ee(e, s) {
|
|
|
228
227
|
continue;
|
|
229
228
|
}
|
|
230
229
|
const f = Object.keys(l)[0], m = l[f].$in.filter(
|
|
231
|
-
(
|
|
230
|
+
(v) => !d[f].$in.includes(v)
|
|
232
231
|
);
|
|
233
232
|
m.length > 0 && t.push(r(u, m)), d[f].$in.filter(
|
|
234
|
-
(
|
|
233
|
+
(v) => !l[f].$in.includes(v)
|
|
235
234
|
).length > 0 && t.push(c);
|
|
236
235
|
} else if (!u.conditions && c.conditions)
|
|
237
236
|
t.push(c);
|
|
@@ -240,7 +239,7 @@ function Ee(e, s) {
|
|
|
240
239
|
else if (!u.conditions && !c.conditions) {
|
|
241
240
|
const l = new Set(u.actions), d = new Set(c.actions), f = c.actions.some((p) => !l.has(p)), m = u.actions.filter((p) => !d.has(p));
|
|
242
241
|
if (f) {
|
|
243
|
-
const p = c.actions.filter((
|
|
242
|
+
const p = c.actions.filter((v) => !l.has(v));
|
|
244
243
|
t.push({
|
|
245
244
|
...c,
|
|
246
245
|
actions: p
|
|
@@ -269,10 +268,10 @@ function Ee(e, s) {
|
|
|
269
268
|
}
|
|
270
269
|
return t;
|
|
271
270
|
}
|
|
272
|
-
function
|
|
271
|
+
function Ee(e) {
|
|
273
272
|
const s = G(
|
|
274
273
|
e,
|
|
275
|
-
|
|
274
|
+
V
|
|
276
275
|
), r = new Set(
|
|
277
276
|
s.filter((i) => {
|
|
278
277
|
var t;
|
|
@@ -289,7 +288,7 @@ function Ne(e) {
|
|
|
289
288
|
return e.filter((i) => i.inverted ? !(r.has(i.subject) && !n.has(i.subject)) : !r.has(i.subject));
|
|
290
289
|
}
|
|
291
290
|
const oe = "business::report::";
|
|
292
|
-
function
|
|
291
|
+
function Ne(e, s) {
|
|
293
292
|
const r = [], n = e.filter((i) => {
|
|
294
293
|
const t = i.subject;
|
|
295
294
|
return !t.startsWith(oe) || s.has(t) ? !0 : (r.push(t), !1);
|
|
@@ -300,7 +299,7 @@ const ae = "business::report::reports::", ce = _.Subject.Business.report_reports
|
|
|
300
299
|
function le(e, s) {
|
|
301
300
|
return e.conditions ? !!s.conditions && e.conditions === s.conditions : !s.conditions;
|
|
302
301
|
}
|
|
303
|
-
function
|
|
302
|
+
function Ue(e, s) {
|
|
304
303
|
const r = e.find(
|
|
305
304
|
(a) => !a.inverted && a.subject === ce
|
|
306
305
|
), n = e.find(
|
|
@@ -386,26 +385,26 @@ function de(e, s) {
|
|
|
386
385
|
}
|
|
387
386
|
const P = "/permission-assignments", I = {
|
|
388
387
|
async readAll() {
|
|
389
|
-
return g(await
|
|
388
|
+
return g(await b().get(P));
|
|
390
389
|
},
|
|
391
390
|
async readByUserId(e) {
|
|
392
|
-
return g(await
|
|
391
|
+
return g(await b().get(`${P}/user/${e}`));
|
|
393
392
|
},
|
|
394
393
|
async readById(e) {
|
|
395
|
-
return g(await
|
|
394
|
+
return g(await b().get(`${P}/${e}`));
|
|
396
395
|
},
|
|
397
396
|
async create(e) {
|
|
398
|
-
return g(await
|
|
397
|
+
return g(await b().post(P, e));
|
|
399
398
|
},
|
|
400
399
|
async update(e, s) {
|
|
401
|
-
return g(await
|
|
400
|
+
return g(await b().put(`${P}/${e}`, s));
|
|
402
401
|
},
|
|
403
402
|
async delete(e) {
|
|
404
|
-
return g(await
|
|
403
|
+
return g(await b().delete(`${P}/${e}`));
|
|
405
404
|
},
|
|
406
405
|
async addReportManagePermission(e, s) {
|
|
407
406
|
return g(
|
|
408
|
-
await
|
|
407
|
+
await b().post("/my-permissions/report-manage", { permissionKey: e, label: s })
|
|
409
408
|
);
|
|
410
409
|
}
|
|
411
410
|
}, fe = z("permissionAssignment", () => {
|
|
@@ -516,13 +515,13 @@ function A(e) {
|
|
|
516
515
|
(t == null ? void 0 : t.permissionSetIds) ?? [],
|
|
517
516
|
s.permissionSets.value
|
|
518
517
|
), o = Q(a).map(
|
|
519
|
-
({ setNames: p, ...
|
|
518
|
+
({ setNames: p, ...v }) => v
|
|
520
519
|
), u = t == null ? void 0 : t.customPermissions, c = u ?? e.permissions.map((p) => ({
|
|
521
520
|
...p,
|
|
522
521
|
subject: O(p.subject)
|
|
523
522
|
})), l = L(o, c), d = G(
|
|
524
523
|
de(o, c),
|
|
525
|
-
|
|
524
|
+
V
|
|
526
525
|
).filter((p) => !p.inverted), f = Y(d), m = f ?? n.value.map((p) => p._id);
|
|
527
526
|
return {
|
|
528
527
|
doc: e,
|
|
@@ -530,10 +529,10 @@ function A(e) {
|
|
|
530
529
|
name: e.name && e.name !== e.email && e.name !== e.phoneNumber ? e.name : "-",
|
|
531
530
|
phoneNumber: e.phoneNumber,
|
|
532
531
|
email: e.email,
|
|
533
|
-
restaurants:
|
|
532
|
+
restaurants: W(
|
|
534
533
|
m.map((p) => {
|
|
535
|
-
var
|
|
536
|
-
return ((
|
|
534
|
+
var v;
|
|
535
|
+
return ((v = n.value.find((Z) => Z._id === p)) == null ? void 0 : v.profile.name) ?? "";
|
|
537
536
|
})
|
|
538
537
|
),
|
|
539
538
|
managableRestaurantIds: f,
|
|
@@ -541,18 +540,18 @@ function A(e) {
|
|
|
541
540
|
permissions: l
|
|
542
541
|
};
|
|
543
542
|
}
|
|
544
|
-
const
|
|
545
|
-
Object.values(
|
|
546
|
-
),
|
|
543
|
+
const be = Object.freeze(
|
|
544
|
+
Object.values(ee)
|
|
545
|
+
), Ce = {
|
|
547
546
|
async readTeamMembers() {
|
|
548
547
|
return g(
|
|
549
|
-
await
|
|
548
|
+
await b().get("/portal-users")
|
|
550
549
|
).map(A);
|
|
551
550
|
},
|
|
552
551
|
async readTeamMembersPage(e) {
|
|
553
552
|
var r, n, i;
|
|
554
553
|
const s = g(
|
|
555
|
-
await
|
|
554
|
+
await b().get("/portal-users/paged", {
|
|
556
555
|
params: {
|
|
557
556
|
limit: e.limit,
|
|
558
557
|
offset: e.offset,
|
|
@@ -570,35 +569,35 @@ const ve = Object.freeze(
|
|
|
570
569
|
},
|
|
571
570
|
async readTeamMember(e) {
|
|
572
571
|
return A(
|
|
573
|
-
g(await
|
|
572
|
+
g(await b().get(`/portal-users/${e}`))
|
|
574
573
|
);
|
|
575
574
|
},
|
|
576
575
|
async createTeamMember(e) {
|
|
577
576
|
return A(
|
|
578
|
-
g(await
|
|
577
|
+
g(await b().post("/portal-users", e))
|
|
579
578
|
);
|
|
580
579
|
},
|
|
581
580
|
async updateTeamMember(e, s) {
|
|
582
581
|
return A(
|
|
583
|
-
g(await
|
|
582
|
+
g(await b().put(`/portal-users/${e}`, s))
|
|
584
583
|
);
|
|
585
584
|
},
|
|
586
585
|
async deleteTeamMember(e) {
|
|
587
|
-
return g(await
|
|
586
|
+
return g(await b().delete(`/portal-users/${e}`));
|
|
588
587
|
},
|
|
589
588
|
async readTeamMemberPosUserIds() {
|
|
590
|
-
return g(await
|
|
589
|
+
return g(await b().get("/portal-users")).map((s) => s.posUserId);
|
|
591
590
|
},
|
|
592
591
|
async generateMasterUserPasscode(e) {
|
|
593
592
|
return `${g(
|
|
594
|
-
await
|
|
593
|
+
await b().post("/portal-users/generate-passcode", {
|
|
595
594
|
restaurantIds: e.restaurantIds,
|
|
596
595
|
excludePosUserId: e.excludePosUserId
|
|
597
596
|
})
|
|
598
597
|
)}`;
|
|
599
598
|
}
|
|
600
599
|
};
|
|
601
|
-
function
|
|
600
|
+
function Je(e, s, r) {
|
|
602
601
|
if (e.some((a) => a.subject === "all")) return "All";
|
|
603
602
|
const n = (r ?? M).filter(
|
|
604
603
|
(a) => a.subject === s
|
|
@@ -606,7 +605,7 @@ function Te(e, s, r) {
|
|
|
606
605
|
return t.length === n.length ? "All" : t.length === 0 ? "-" : `${t.length} permission allow`;
|
|
607
606
|
}
|
|
608
607
|
function w(e) {
|
|
609
|
-
const s =
|
|
608
|
+
const s = q(e), r = s.subject;
|
|
610
609
|
return {
|
|
611
610
|
...s,
|
|
612
611
|
get conditions() {
|
|
@@ -661,7 +660,7 @@ function w(e) {
|
|
|
661
660
|
}
|
|
662
661
|
};
|
|
663
662
|
}
|
|
664
|
-
function
|
|
663
|
+
function Te(e) {
|
|
665
664
|
var n, i;
|
|
666
665
|
const s = e.map((t) => w(t)).find((t) => t.isDiscountOperation);
|
|
667
666
|
if (!s) return 100;
|
|
@@ -674,23 +673,23 @@ function Y(e) {
|
|
|
674
673
|
);
|
|
675
674
|
return s ? s.conditions ? JSON.parse(s.conditions).restaurantId.$in : null : [];
|
|
676
675
|
}
|
|
677
|
-
function
|
|
678
|
-
return s.isOwner ? { restaurantIds: null, roleIds: null } : { restaurantIds: Y(e), roleIds:
|
|
676
|
+
function Be(e, s) {
|
|
677
|
+
return s.isOwner ? { restaurantIds: null, roleIds: null } : { restaurantIds: Y(e), roleIds: ve(e) };
|
|
679
678
|
}
|
|
680
|
-
function
|
|
679
|
+
function Me(e) {
|
|
681
680
|
return (e == null ? void 0 : e.some((s) => s.subject === "all")) ?? !1;
|
|
682
681
|
}
|
|
683
|
-
function
|
|
682
|
+
function ve(e) {
|
|
684
683
|
const s = e.find((r) => r.subject === _.Subject.Business.role);
|
|
685
684
|
return s ? s.conditions ? JSON.parse(s.conditions).roleId.$in : null : [];
|
|
686
685
|
}
|
|
687
|
-
function
|
|
686
|
+
function Le(e) {
|
|
688
687
|
const s = w(e);
|
|
689
688
|
if (!s.isReportPermission) return;
|
|
690
689
|
const { name: r, ...n } = s.conditions ?? {};
|
|
691
690
|
return Object.keys(n).length > 0 ? n : void 0;
|
|
692
691
|
}
|
|
693
|
-
function
|
|
692
|
+
function Fe(e, s, r) {
|
|
694
693
|
return e.flatMap((n) => {
|
|
695
694
|
const i = Se(n);
|
|
696
695
|
if (!i) return [];
|
|
@@ -725,7 +724,7 @@ function Se(e) {
|
|
|
725
724
|
reason: ""
|
|
726
725
|
})) : i = M.find((t) => t.subject === r), i ? w(i) : void 0;
|
|
727
726
|
}
|
|
728
|
-
function
|
|
727
|
+
function xe(e, s) {
|
|
729
728
|
const r = { values: [], passthrough: [], dropped: [] };
|
|
730
729
|
for (const n of e) {
|
|
731
730
|
const i = n == null ? void 0 : n.actions;
|
|
@@ -739,9 +738,9 @@ function De(e, s) {
|
|
|
739
738
|
return r;
|
|
740
739
|
}
|
|
741
740
|
function he(e, s = []) {
|
|
742
|
-
return
|
|
741
|
+
return W(
|
|
743
742
|
e.reduce((r, n) => {
|
|
744
|
-
const i =
|
|
743
|
+
const i = be.find(
|
|
745
744
|
(t) => t.subject === n.subject && n.actions.includes("manage")
|
|
746
745
|
) || s.find((t) => t.subject === n.subject);
|
|
747
746
|
if (i) {
|
|
@@ -756,29 +755,29 @@ export {
|
|
|
756
755
|
G as N,
|
|
757
756
|
Q as P,
|
|
758
757
|
pe as R,
|
|
759
|
-
|
|
758
|
+
Je as a,
|
|
760
759
|
de as b,
|
|
761
760
|
H as c,
|
|
762
761
|
ge as d,
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
762
|
+
Le as e,
|
|
763
|
+
Fe as f,
|
|
764
|
+
Te as g,
|
|
765
|
+
Me as h,
|
|
767
766
|
oe as i,
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
767
|
+
Be as j,
|
|
768
|
+
Ee as k,
|
|
769
|
+
_e as l,
|
|
770
|
+
Ae as m,
|
|
771
|
+
Ne as n,
|
|
772
|
+
Ue as o,
|
|
773
|
+
be as p,
|
|
775
774
|
me as q,
|
|
776
775
|
w as r,
|
|
777
|
-
|
|
778
|
-
|
|
776
|
+
xe as s,
|
|
777
|
+
Ce as t,
|
|
779
778
|
re as u,
|
|
780
779
|
he as v,
|
|
781
|
-
|
|
780
|
+
Oe as w,
|
|
782
781
|
Y as x,
|
|
783
|
-
|
|
782
|
+
ve as y
|
|
784
783
|
};
|
|
@@ -10,10 +10,7 @@ export declare enum RouteName {
|
|
|
10
10
|
TEAM_ROLE = "team-role",
|
|
11
11
|
POS_ACCESS = "pos-access",
|
|
12
12
|
POS_GRANT = "pos-grant",
|
|
13
|
-
APPROVAL_CODE = "approval-code"
|
|
14
|
-
SCHEDULE = "schedule",
|
|
15
|
-
SCHEDULE_POSITION = "schedule-position",
|
|
16
|
-
SCHEDULE_GENERAL = "schedule-general"
|
|
13
|
+
APPROVAL_CODE = "approval-code"
|
|
17
14
|
}
|
|
18
15
|
declare const routes: RouteRecordRaw[];
|
|
19
16
|
export { routes };
|
|
@@ -17,21 +17,21 @@ type __VLS_Props = {
|
|
|
17
17
|
title?: string;
|
|
18
18
|
};
|
|
19
19
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
20
|
+
apply: () => any;
|
|
20
21
|
"update-form": (payload: {
|
|
21
22
|
builder: ConditionBuilder;
|
|
22
23
|
form: unknown;
|
|
23
24
|
}) => any;
|
|
24
|
-
apply: () => any;
|
|
25
25
|
"update-inherit-mode": (payload: {
|
|
26
26
|
builder: ConditionBuilder;
|
|
27
27
|
mode: "inherit" | "custom";
|
|
28
28
|
}) => any;
|
|
29
29
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
30
|
+
onApply?: (() => any) | undefined;
|
|
30
31
|
"onUpdate-form"?: ((payload: {
|
|
31
32
|
builder: ConditionBuilder;
|
|
32
33
|
form: unknown;
|
|
33
34
|
}) => any) | undefined;
|
|
34
|
-
onApply?: (() => any) | undefined;
|
|
35
35
|
"onUpdate-inherit-mode"?: ((payload: {
|
|
36
36
|
builder: ConditionBuilder;
|
|
37
37
|
mode: "inherit" | "custom";
|
|
@@ -14,17 +14,17 @@ type __VLS_Slots = {} & {
|
|
|
14
14
|
section?: (props: typeof __VLS_1) => any;
|
|
15
15
|
};
|
|
16
16
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
17
|
+
apply: () => any;
|
|
17
18
|
"update-form": (payload: {
|
|
18
19
|
builder: ConditionBuilder;
|
|
19
20
|
form: unknown;
|
|
20
21
|
}) => any;
|
|
21
|
-
apply: () => any;
|
|
22
22
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
|
+
onApply?: (() => any) | undefined;
|
|
23
24
|
"onUpdate-form"?: ((payload: {
|
|
24
25
|
builder: ConditionBuilder;
|
|
25
26
|
form: unknown;
|
|
26
27
|
}) => any) | undefined;
|
|
27
|
-
onApply?: (() => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
29
|
title: string;
|
|
30
30
|
disable: boolean;
|