@feedmepos/mf-hrm-portal 2.2.4 → 2.2.5-dev.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ApprovalCodeList-ChGQwko6.js → ApprovalCodeList-BsDMMSIz.js} +7 -7
- package/dist/{AuditLogList-Cpj8O5qS.js → AuditLogList-CGNZdtmn.js} +244 -241
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CNmbZlVZ.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C6MoToqi.js} +2 -2
- package/dist/EmployeeList-B_OuDWWQ.js +787 -0
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js → FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js} +1 -1
- package/dist/{GrantUserList-CAXJmQ4i.js → GrantUserList-Bd0lXmFo.js} +8 -8
- package/dist/{Main-Ada9K_jO.js → Main-B66lSeOv.js} +8 -8
- package/dist/{Main-T9-30vq8.js → Main-CzHSNHsH.js} +5 -5
- package/dist/{Main-7yT_w5vt.js → Main-njRQ1tFk.js} +11 -11
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +243 -0
- package/dist/{PermissionSetList-CkWYPmT2.js → PermissionSetList-GTI6Cwj5.js} +20 -20
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CCLLrSyq.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C-QEQ-js.js} +937 -944
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-Z-DH7ouY.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-XHuHin8t.js} +1 -1
- package/dist/{RoleList-Do36AmlU.js → RoleList-CmHgtM0m.js} +9 -9
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-SFqxftRx.js +426 -0
- package/dist/ScheduleButton.vue_vue_type_script_setup_true_lang-CrWfo-zF.js +690 -0
- package/dist/ScheduleGeneralPage-DxFxJN5j.js +320 -0
- package/dist/SchedulePage-cJDI3-E7.js +14647 -0
- package/dist/SchedulePositionPage-n1wUShIM.js +293 -0
- package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-B8W4sTsA.js +242 -0
- package/dist/SelectFilter-CG13h83-.js +264 -0
- package/dist/TeamMemberList-ByZt3VqN.js +1154 -0
- package/dist/{TimesheetList-DboJ2_89.js → TimesheetList-Dv0-W--W.js} +71 -68
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-C4g8wRjv.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-DIo6h5-a.js} +3 -3
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/{app-CcCcPbyB.js → app-SCXGJ95F.js} +3182 -2565
- package/dist/app.js +1 -1
- package/dist/{approval-code-BRClD2HN.js → approval-code-jIjkeVEb.js} +1 -1
- package/dist/{dayjs.min-lvkj1Rwa.js → dayjs.min-DqMLPYv-.js} +1 -1
- package/dist/employee-DT_xYQkz.js +204 -0
- package/dist/{grant-user-Dhi3ilC_.js → grant-user-SNiDV22U.js} +1 -1
- package/dist/{iteration-LZbo-knt.js → iteration-B5dB9ecy.js} +1 -1
- package/dist/{lodash-CKzaMa7f.js → lodash-CRHFapxI.js} +1 -1
- package/dist/{restaurant-DiYb0pCm.js → restaurant-BTpBmfBV.js} +2 -2
- package/dist/{role-BZr8zzeq.js → role-CJm8pXaw.js} +2 -2
- package/dist/{rule-DNaqlUUB.js → rule-AJm-eVzJ.js} +291 -279
- package/dist/src/api/employee/index.d.ts +5 -1
- package/dist/src/api/schedule/index.d.ts +41 -0
- package/dist/src/api/team/index.d.ts +3 -0
- package/dist/src/components/form/OutletRoleAssignment.vue.d.ts +16 -0
- package/dist/src/components/form/PasscodeGenerateButton.vue.d.ts +15 -0
- package/dist/src/components/form/PasscodePinField.vue.d.ts +18 -0
- package/dist/src/components/layout/AppSidebar.vue.d.ts +2 -0
- package/dist/src/components/layout/PortalShell.vue.d.ts +12 -0
- package/dist/src/components/layout/withShell.d.ts +14 -0
- package/dist/src/helpers/outlet-role-assignment.d.ts +40 -0
- package/dist/src/helpers/rule.d.ts +15 -0
- package/dist/src/helpers/string.d.ts +2 -1
- package/dist/src/router/shared.d.ts +4 -1
- package/dist/src/types/schedule.d.ts +232 -0
- package/dist/src/views/audit-log/locales/index.d.ts +4 -0
- package/dist/src/views/hr/locales/index.d.ts +8 -0
- package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +3 -0
- package/dist/src/views/scheduling/SchedulePage.vue.d.ts +3 -0
- package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +3 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeIdentitySection.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModeStep.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePosAccessSection.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeSchedulingSection.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddPickPopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddPositionModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAllShiftsRow.vue.d.ts +22 -0
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +34 -0
- package/dist/src/views/scheduling/components/ScheduleAssignEmployeePopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleButton.vue.d.ts +23 -0
- package/dist/src/views/scheduling/components/ScheduleChangeEmployeeModal.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +24 -0
- package/dist/src/views/scheduling/components/ScheduleCostRail.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleDateRangePopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleDayNotePopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleDemandRow.vue.d.ts +23 -0
- package/dist/src/views/scheduling/components/ScheduleDemandSheet.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleDotsIcon.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleEmployeeDetailPanel.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleEmployeeIdentity.vue.d.ts +17 -0
- package/dist/src/views/scheduling/components/ScheduleEmployeeMenu.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleFilterBar.vue.d.ts +18 -0
- package/dist/src/views/scheduling/components/ScheduleGapPopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleGridHeader.vue.d.ts +18 -0
- package/dist/src/views/scheduling/components/ScheduleGridSkeleton.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleLegendBar.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingWelcome.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +9 -0
- package/dist/src/views/scheduling/components/ScheduleOpenShiftCardMenu.vue.d.ts +14 -0
- package/dist/src/views/scheduling/components/SchedulePdfPreview.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/SchedulePublishModal.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleReviewBar.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +54 -0
- package/dist/src/views/scheduling/components/ScheduleSelectExistingEmployeeModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleShiftCardMenu.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +35 -0
- package/dist/src/views/scheduling/components/ScheduleShiftHeadcountEditor.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleShiftImpact.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleShiftMoreOptions.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +16 -0
- package/dist/src/views/scheduling/components/ScheduleShiftRepeatDaysRow.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleShiftSegmentsEditor.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleShiftWhoPicker.vue.d.ts +25 -0
- package/dist/src/views/scheduling/components/ScheduleStackPopover.vue.d.ts +14 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +18 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +60 -0
- package/dist/src/views/scheduling/components/ScheduleStatsRow.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleSwapShiftsModal.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleTimePickerPopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +20 -0
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +72 -0
- package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +38 -0
- package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +29 -0
- package/dist/src/views/scheduling/composables/schedule-employee-profile.d.ts +7 -0
- package/dist/src/views/scheduling/composables/schedule-popover-position.d.ts +16 -0
- package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +14 -0
- package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +10 -0
- package/dist/src/views/scheduling/composables/scheduleAutoSolver.d.ts +21 -0
- package/dist/src/views/scheduling/composables/useCollapsedList.d.ts +9 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +98 -0
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +73 -0
- package/dist/src/views/scheduling/composables/useScheduleAllShiftsRow.d.ts +77 -0
- package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +50 -0
- package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +122 -0
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +143 -0
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +426 -0
- package/dist/src/views/scheduling/composables/useScheduleCellState.d.ts +27 -0
- package/dist/src/views/scheduling/composables/useScheduleClashDetection.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +19 -0
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +43 -0
- package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +48 -0
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +77 -0
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +76 -0
- package/dist/src/views/scheduling/composables/useScheduleDemandRow.d.ts +45 -0
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +145 -0
- package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +22 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +41 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeMenu.d.ts +35 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeProfile.d.ts +16 -0
- package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +26 -0
- package/dist/src/views/scheduling/composables/useScheduleFilterBar.d.ts +14 -0
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +82 -0
- package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +70 -0
- package/dist/src/views/scheduling/composables/useScheduleLegend.d.ts +15 -0
- package/dist/src/views/scheduling/composables/useScheduleLegendBar.d.ts +35 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1316 -0
- package/dist/src/views/scheduling/composables/useScheduleOpenShiftCard.d.ts +23 -0
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +20 -0
- package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +50 -0
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +32 -0
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +93 -0
- package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +27 -0
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +189 -0
- package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +54 -0
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +163 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +181 -0
- package/dist/src/views/scheduling/composables/useScheduleStaffRail.d.ts +23 -0
- package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +25 -0
- package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +49 -0
- package/dist/src/views/scheduling/composables/useScheduleTopbar.d.ts +10 -0
- package/dist/src/views/scheduling/composables/useScheduleViewportFit.d.ts +9 -0
- package/dist/src/views/scheduling/data.d.ts +110 -0
- package/dist/src/views/scheduling/locales/index.d.ts +496 -0
- package/dist/src/views/scheduling/schedule-store.d.ts +151 -0
- package/dist/src/views/scheduling/types.d.ts +324 -0
- 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/src/views/team/locales/index.d.ts +12 -0
- package/dist/src/views/team/member/AddMemberForm.vue.d.ts +1 -0
- package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +21 -3
- package/dist/string-VNuQNweN.js +15 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-BGhlB1_1.js → useAppStore-DCwd8GWN.js} +1 -1
- package/dist/{useLoading-CvgqVDbF.js → useLoading-CXzTpIVv.js} +1 -1
- package/dist/{useReportPermissions-Buzv6pkY.js → useReportPermissions-Cg3lV70m.js} +3 -3
- package/package.json +1 -1
- package/dist/EmployeeList-PdGzSCP-.js +0 -887
- package/dist/SelectFilter-ATOm0hdn.js +0 -269
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +0 -16
- package/dist/TeamMemberList-CVVNnz0R.js +0 -1216
- package/dist/employee-CLgrXpmZ.js +0 -201
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-BTpBmfBV.js";
|
|
4
4
|
const n = {
|
|
5
5
|
async getApprovalCodes() {
|
|
6
6
|
return p(await s("approval-codes").get(""));
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { d as g } from "./dayjs.min-DqMLPYv-.js";
|
|
2
|
+
import { defineStore as $, storeToRefs as x } from "pinia";
|
|
3
|
+
import { ref as m } from "vue";
|
|
4
|
+
import { s as E } from "./iteration-B5dB9ecy.js";
|
|
5
|
+
import { b as l, g as f, u as I } from "./restaurant-BTpBmfBV.js";
|
|
6
|
+
import { i as v } from "./utils-BZkjJbju.js";
|
|
7
|
+
import { u as _ } from "./role-CJm8pXaw.js";
|
|
8
|
+
const o = {
|
|
9
|
+
async readEmployees() {
|
|
10
|
+
return f(await l().get("/pos-users"));
|
|
11
|
+
},
|
|
12
|
+
async readEmployeesPage(e) {
|
|
13
|
+
var s, p;
|
|
14
|
+
return f(
|
|
15
|
+
await l().get("/pos-users/paged", {
|
|
16
|
+
params: {
|
|
17
|
+
limit: e.limit,
|
|
18
|
+
offset: e.offset,
|
|
19
|
+
search: e.search,
|
|
20
|
+
restaurantIds: (s = e.restaurantIds) != null && s.length ? e.restaurantIds : void 0,
|
|
21
|
+
roleIds: (p = e.roleIds) != null && p.length ? e.roleIds : void 0
|
|
22
|
+
}
|
|
23
|
+
})
|
|
24
|
+
);
|
|
25
|
+
},
|
|
26
|
+
async createEmployee(e) {
|
|
27
|
+
await l().post("/pos-users", e);
|
|
28
|
+
},
|
|
29
|
+
async createMasterEmployee(e) {
|
|
30
|
+
await l().post("/pos-users/master-user", e);
|
|
31
|
+
},
|
|
32
|
+
async migrateToMasterEmployee(e, s) {
|
|
33
|
+
await l().put(`/pos-users/migrate/${e}`, s);
|
|
34
|
+
},
|
|
35
|
+
async updateEmployee(e, s) {
|
|
36
|
+
await l().put(`/pos-users/${e}`, s);
|
|
37
|
+
},
|
|
38
|
+
async updateMasterEmployee(e, s) {
|
|
39
|
+
await l().put(`/pos-users/master-user/${e}`, s);
|
|
40
|
+
},
|
|
41
|
+
async deleteEmployee(e) {
|
|
42
|
+
await l().put(`/pos-users/${e._id}`, {
|
|
43
|
+
user: e,
|
|
44
|
+
roles: [],
|
|
45
|
+
previousRoles: e.restaurants.map((s) => ({
|
|
46
|
+
restaurantId: s.restaurantId,
|
|
47
|
+
roleId: s.roleId
|
|
48
|
+
}))
|
|
49
|
+
});
|
|
50
|
+
},
|
|
51
|
+
async deleteMasterEmployee(e) {
|
|
52
|
+
await l().put(`/pos-users/master-user/${e._id}`, {
|
|
53
|
+
user: e,
|
|
54
|
+
roles: [],
|
|
55
|
+
previousRoles: e.restaurants.map((s) => ({
|
|
56
|
+
restaurantId: s.restaurantId,
|
|
57
|
+
roleId: s.roleId
|
|
58
|
+
}))
|
|
59
|
+
});
|
|
60
|
+
},
|
|
61
|
+
async generateEmployeePasscode(e) {
|
|
62
|
+
return `${f(
|
|
63
|
+
await l().post("/pos-users/generate-passcode", {
|
|
64
|
+
restaurantIds: e.restaurantIds,
|
|
65
|
+
excludePosUserId: e.excludePosUserId
|
|
66
|
+
})
|
|
67
|
+
)}`;
|
|
68
|
+
},
|
|
69
|
+
async syncUsersMeta() {
|
|
70
|
+
await l().post("/pos-users/create-users-meta");
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
async function T(e) {
|
|
74
|
+
const s = _().roles.value, { restaurants: p } = I(), c = new Map(
|
|
75
|
+
p.value.map((a) => [a._id, a.profile.name])
|
|
76
|
+
), u = new Map(s.map((a) => [a._id, a.name])), r = /* @__PURE__ */ new Map();
|
|
77
|
+
for (const a of e) {
|
|
78
|
+
const n = {
|
|
79
|
+
restaurantId: a.restaurantId,
|
|
80
|
+
restaurantName: c.get(a.restaurantId) || "",
|
|
81
|
+
roleId: a.role,
|
|
82
|
+
roleName: u.get(a.role) || ""
|
|
83
|
+
}, d = r.get(a._id);
|
|
84
|
+
if (!d) {
|
|
85
|
+
r.set(a._id, {
|
|
86
|
+
...a,
|
|
87
|
+
isRestricted: !1,
|
|
88
|
+
since: g(v(a._id)).format("DD/MM/YYYY"),
|
|
89
|
+
restaurants: [n]
|
|
90
|
+
});
|
|
91
|
+
continue;
|
|
92
|
+
}
|
|
93
|
+
d.restaurants.some((y) => y.restaurantId === a.restaurantId) || (d.restaurants = E([...d.restaurants, n], {
|
|
94
|
+
selector: "restaurantName"
|
|
95
|
+
}));
|
|
96
|
+
}
|
|
97
|
+
return E([...r.values()], { selector: "name" });
|
|
98
|
+
}
|
|
99
|
+
function M(e) {
|
|
100
|
+
const { restaurants: s } = I(), p = _().roles.value, c = new Map(
|
|
101
|
+
s.value.map((a) => [a._id, a])
|
|
102
|
+
), u = new Map(p.map((a) => [a._id, a.name])), r = e.restaurantRole[0];
|
|
103
|
+
return {
|
|
104
|
+
_id: e._id,
|
|
105
|
+
name: e.name,
|
|
106
|
+
code: e.code,
|
|
107
|
+
passcode: e.passcode,
|
|
108
|
+
isMasterUser: e.isMasterUser,
|
|
109
|
+
isRestricted: e.isRestricted,
|
|
110
|
+
restaurantId: (r == null ? void 0 : r.restaurantId) || "",
|
|
111
|
+
role: (r == null ? void 0 : r.roleId) || "",
|
|
112
|
+
since: g(v(e._id)).format("DD/MM/YYYY"),
|
|
113
|
+
restaurants: E(
|
|
114
|
+
e.restaurantRole.map((a) => {
|
|
115
|
+
const n = c.get(a.restaurantId);
|
|
116
|
+
return {
|
|
117
|
+
restaurantId: a.restaurantId,
|
|
118
|
+
restaurantName: (n == null ? void 0 : n.profile.name) || "",
|
|
119
|
+
restaurantCode: (n == null ? void 0 : n.profile.code) ?? void 0,
|
|
120
|
+
roleId: a.roleId,
|
|
121
|
+
roleName: u.get(a.roleId) || ""
|
|
122
|
+
};
|
|
123
|
+
}),
|
|
124
|
+
{ selector: "restaurantName" }
|
|
125
|
+
)
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
const h = $("employee", () => {
|
|
129
|
+
const e = I(), s = m([]), p = m([]), c = m(0), u = m(!1);
|
|
130
|
+
async function r() {
|
|
131
|
+
try {
|
|
132
|
+
u.value = !0, await e.readRestaurants();
|
|
133
|
+
const t = await o.readEmployees();
|
|
134
|
+
s.value = await T(t);
|
|
135
|
+
} finally {
|
|
136
|
+
u.value = !1;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
async function a(t) {
|
|
140
|
+
try {
|
|
141
|
+
u.value = !0, await e.readRestaurants();
|
|
142
|
+
const i = await o.readEmployeesPage(t);
|
|
143
|
+
p.value = i.items.map(M), c.value = i.total;
|
|
144
|
+
} finally {
|
|
145
|
+
u.value = !1;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
async function n(t, i) {
|
|
149
|
+
await e.readRestaurants();
|
|
150
|
+
const w = i ?? (await o.readEmployeesPage({ ...t, limit: 1, offset: 0 })).total;
|
|
151
|
+
return w === 0 ? [] : (await o.readEmployeesPage({ ...t, limit: w, offset: 0 })).items.map(M);
|
|
152
|
+
}
|
|
153
|
+
async function d(t) {
|
|
154
|
+
await o.createEmployee(t);
|
|
155
|
+
}
|
|
156
|
+
async function y(t, i) {
|
|
157
|
+
await o.updateEmployee(t, i);
|
|
158
|
+
}
|
|
159
|
+
async function P(t) {
|
|
160
|
+
await o.deleteEmployee(t);
|
|
161
|
+
}
|
|
162
|
+
async function U(t) {
|
|
163
|
+
await o.deleteMasterEmployee(t);
|
|
164
|
+
}
|
|
165
|
+
async function Y(t) {
|
|
166
|
+
await o.createMasterEmployee(t);
|
|
167
|
+
}
|
|
168
|
+
async function N(t, i) {
|
|
169
|
+
await o.updateMasterEmployee(t, i);
|
|
170
|
+
}
|
|
171
|
+
async function S(t, i) {
|
|
172
|
+
await o.migrateToMasterEmployee(t, i);
|
|
173
|
+
}
|
|
174
|
+
async function D() {
|
|
175
|
+
await o.syncUsersMeta();
|
|
176
|
+
}
|
|
177
|
+
return {
|
|
178
|
+
employees: s,
|
|
179
|
+
listEmployees: p,
|
|
180
|
+
totalEmployees: c,
|
|
181
|
+
isLoading: u,
|
|
182
|
+
readEmployees: r,
|
|
183
|
+
readEmployeesPage: a,
|
|
184
|
+
readAllEmployeesPage: n,
|
|
185
|
+
createEmployee: d,
|
|
186
|
+
updateEmployee: y,
|
|
187
|
+
deleteEmployee: P,
|
|
188
|
+
createMasterEmployee: Y,
|
|
189
|
+
updateMasterEmployee: N,
|
|
190
|
+
deleteMasterEmployee: U,
|
|
191
|
+
migrateToMasterUser: S,
|
|
192
|
+
syncUsersMeta: D
|
|
193
|
+
};
|
|
194
|
+
}), z = () => {
|
|
195
|
+
const e = h();
|
|
196
|
+
return {
|
|
197
|
+
...e,
|
|
198
|
+
...x(e)
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
export {
|
|
202
|
+
o as E,
|
|
203
|
+
z as u
|
|
204
|
+
};
|
|
@@ -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-BTpBmfBV.js";
|
|
4
4
|
const c = {
|
|
5
5
|
async getGrantUsers() {
|
|
6
6
|
return s(await o("grant").get(""));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as B } from "./app-SCXGJ95F.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;
|
|
@@ -1819,9 +1819,9 @@ const bt = (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 = "feedmeapidev.com", s = !t || t === "my" ? `https://query-engine.${r}` : `https://query-engine.${t}.${r}`;
|
|
1823
1823
|
return bt(s)("");
|
|
1824
|
-
}, Tr = () => bt("https://account.
|
|
1824
|
+
}, Tr = () => bt("https://account.feedmedev.cc/api")(""), Cr = () => Ve("user/bypass/validate/");
|
|
1825
1825
|
function tr(e) {
|
|
1826
1826
|
return e.data;
|
|
1827
1827
|
}
|
|
@@ -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-B5dB9ecy.js";
|
|
5
|
+
import { g as f, b as p, u as I } from "./restaurant-BTpBmfBV.js";
|
|
6
6
|
const R = {
|
|
7
7
|
async readRoles() {
|
|
8
8
|
return f(await p().get("/pos-roles"));
|