@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.
Files changed (152) hide show
  1. package/dist/{ApprovalCodeList-D0B_X3Sf.js → ApprovalCodeList-DqR6ouRS.js} +4 -4
  2. package/dist/{AuditLogList-D9anf4YQ.js → AuditLogList-CG2BiQX6.js} +17 -18
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-4oENMRO3.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C7nMXx8R.js} +2 -2
  4. package/dist/{EmployeeList-DREDu3Ou.js → EmployeeList-CGZzol7v.js} +27 -29
  5. package/dist/{FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js → FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js} +1 -1
  6. package/dist/{GrantUserList-CLDshEN9.js → GrantUserList-D1fBv1KQ.js} +5 -5
  7. package/dist/{Main-lqlb8tPw.js → Main-BOt-Y1wv.js} +9 -9
  8. package/dist/{Main-QhQxU593.js → Main-CFoZot3K.js} +5 -5
  9. package/dist/{Main-DtMaG42L.js → Main-zg7fbEtx.js} +2 -2
  10. package/dist/{PermissionSetList-BK8yBpJJ.js → PermissionSetList-bJpwD62u.js} +10 -11
  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
  12. package/dist/{RoleList-D6AX6BqB.js → RoleList-DUVZ7dkO.js} +7 -7
  13. package/dist/SelectFilter-ATOm0hdn.js +269 -0
  14. package/dist/{TeamMemberList-BM5JoR6J.js → TeamMemberList-DAnM-DSd.js} +34 -36
  15. package/dist/{TimesheetList-Ch_f_PD5.js → TimesheetList-5sdcWjEf.js} +53 -54
  16. 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
  17. package/dist/{app-tDHL6k4G.js → app-D-cQzgkr.js} +2299 -2884
  18. package/dist/app.js +1 -1
  19. package/dist/{dayjs.min-B_XWc0Hu.js → dayjs.min-DqFS0ebn.js} +1 -1
  20. package/dist/employee-DvvnCQMK.js +204 -0
  21. package/dist/{index-jxRluZiW.js → iteration-BjW8Cs9e.js} +726 -698
  22. package/dist/{lodash-D5vM3paU.js → lodash-wjhSWqez.js} +1 -1
  23. package/dist/{role-7ccipEEe.js → role-CEUcSmA6.js} +3 -4
  24. package/dist/{rule-7faruCdz.js → rule-Df8LOhxm.js} +70 -71
  25. package/dist/src/router/shared.d.ts +1 -4
  26. package/dist/src/views/team/components/PortalConditionForm.vue.d.ts +2 -2
  27. package/dist/src/views/team/condition-builders/ConditionBuilderForm.vue.d.ts +2 -2
  28. package/dist/style.css +1 -1
  29. package/dist/tsconfig.app.tsbuildinfo +1 -1
  30. package/dist/{useReportPermissions-FieO4EAD.js → useReportPermissions-4wm7pJcK.js} +3 -3
  31. package/package.json +1 -1
  32. package/dist/ScheduleGeneralPage-DAECTCDu.js +0 -242
  33. package/dist/SchedulePage-CdFR7JuO.js +0 -10751
  34. package/dist/SchedulePositionPage-DTtKg0sx.js +0 -220
  35. package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-BiuUrr50.js +0 -199
  36. package/dist/SelectFilter-CG13h83-.js +0 -264
  37. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  38. package/dist/employee-Bs_2vqBY.js +0 -139
  39. package/dist/index-Cz2b95YF.js +0 -70
  40. package/dist/iteration-CcXrOMQe.js +0 -30
  41. package/dist/src/api/schedule/index.d.ts +0 -44
  42. package/dist/src/components/layout/AppSidebar.vue.d.ts +0 -2
  43. package/dist/src/components/layout/PortalShell.vue.d.ts +0 -12
  44. package/dist/src/components/layout/withShell.d.ts +0 -14
  45. package/dist/src/types/schedule.d.ts +0 -232
  46. package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +0 -4
  47. package/dist/src/views/scheduling/SchedulePage.vue.d.ts +0 -4
  48. package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +0 -4
  49. package/dist/src/views/scheduling/components/ScheduleAddEmployeeIdentitySection.vue.d.ts +0 -6
  50. package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +0 -6
  51. package/dist/src/views/scheduling/components/ScheduleAddEmployeeModeStep.vue.d.ts +0 -6
  52. package/dist/src/views/scheduling/components/ScheduleAddEmployeePosAccessSection.vue.d.ts +0 -6
  53. package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +0 -6
  54. package/dist/src/views/scheduling/components/ScheduleAddEmployeeSchedulingSection.vue.d.ts +0 -6
  55. package/dist/src/views/scheduling/components/ScheduleAddPickPopover.vue.d.ts +0 -6
  56. package/dist/src/views/scheduling/components/ScheduleAllShiftsRow.vue.d.ts +0 -22
  57. package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +0 -34
  58. package/dist/src/views/scheduling/components/ScheduleAssignEmployeePopover.vue.d.ts +0 -6
  59. package/dist/src/views/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +0 -6
  60. package/dist/src/views/scheduling/components/ScheduleChangeEmployeeModal.vue.d.ts +0 -8
  61. package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +0 -24
  62. package/dist/src/views/scheduling/components/ScheduleCostRail.vue.d.ts +0 -8
  63. package/dist/src/views/scheduling/components/ScheduleDateRangePopover.vue.d.ts +0 -6
  64. package/dist/src/views/scheduling/components/ScheduleDayNotePopover.vue.d.ts +0 -6
  65. package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +0 -12
  66. package/dist/src/views/scheduling/components/ScheduleDemandRow.vue.d.ts +0 -23
  67. package/dist/src/views/scheduling/components/ScheduleDemandSheet.vue.d.ts +0 -10
  68. package/dist/src/views/scheduling/components/ScheduleDotsIcon.vue.d.ts +0 -2
  69. package/dist/src/views/scheduling/components/ScheduleEmployeeDetailPanel.vue.d.ts +0 -12
  70. package/dist/src/views/scheduling/components/ScheduleEmployeeIdentity.vue.d.ts +0 -17
  71. package/dist/src/views/scheduling/components/ScheduleFilterBar.vue.d.ts +0 -18
  72. package/dist/src/views/scheduling/components/ScheduleGapPopover.vue.d.ts +0 -6
  73. package/dist/src/views/scheduling/components/ScheduleGridHeader.vue.d.ts +0 -18
  74. package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +0 -6
  75. package/dist/src/views/scheduling/components/ScheduleLegendBar.vue.d.ts +0 -6
  76. package/dist/src/views/scheduling/components/ScheduleOnboardingWelcome.vue.d.ts +0 -12
  77. package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +0 -6
  78. package/dist/src/views/scheduling/components/ScheduleOpenShiftCardMenu.vue.d.ts +0 -14
  79. package/dist/src/views/scheduling/components/SchedulePdfPreview.vue.d.ts +0 -6
  80. package/dist/src/views/scheduling/components/SchedulePublishModal.vue.d.ts +0 -8
  81. package/dist/src/views/scheduling/components/ScheduleReviewBar.vue.d.ts +0 -12
  82. package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +0 -24
  83. package/dist/src/views/scheduling/components/ScheduleSelectExistingEmployeeModal.vue.d.ts +0 -6
  84. package/dist/src/views/scheduling/components/ScheduleShiftCardMenu.vue.d.ts +0 -12
  85. package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +0 -31
  86. package/dist/src/views/scheduling/components/ScheduleShiftHeadcountEditor.vue.d.ts +0 -6
  87. package/dist/src/views/scheduling/components/ScheduleShiftImpact.vue.d.ts +0 -6
  88. package/dist/src/views/scheduling/components/ScheduleShiftMoreOptions.vue.d.ts +0 -6
  89. package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +0 -14
  90. package/dist/src/views/scheduling/components/ScheduleShiftRepeatDaysRow.vue.d.ts +0 -8
  91. package/dist/src/views/scheduling/components/ScheduleShiftSegmentsEditor.vue.d.ts +0 -8
  92. package/dist/src/views/scheduling/components/ScheduleShiftWhoPicker.vue.d.ts +0 -25
  93. package/dist/src/views/scheduling/components/ScheduleStackPopover.vue.d.ts +0 -14
  94. package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +0 -16
  95. package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +0 -54
  96. package/dist/src/views/scheduling/components/ScheduleStatsRow.vue.d.ts +0 -12
  97. package/dist/src/views/scheduling/components/ScheduleSwapShiftsModal.vue.d.ts +0 -8
  98. package/dist/src/views/scheduling/components/ScheduleTimePickerPopover.vue.d.ts +0 -6
  99. package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +0 -22
  100. package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +0 -67
  101. package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +0 -38
  102. package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +0 -29
  103. package/dist/src/views/scheduling/composables/schedule-employee-profile.d.ts +0 -7
  104. package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +0 -14
  105. package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +0 -10
  106. package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +0 -86
  107. package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +0 -66
  108. package/dist/src/views/scheduling/composables/useScheduleAllShiftsRow.d.ts +0 -77
  109. package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +0 -50
  110. package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +0 -18
  111. package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +0 -113
  112. package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +0 -136
  113. package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +0 -415
  114. package/dist/src/views/scheduling/composables/useScheduleCellState.d.ts +0 -27
  115. package/dist/src/views/scheduling/composables/useScheduleClashDetection.d.ts +0 -18
  116. package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +0 -17
  117. package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +0 -43
  118. package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +0 -48
  119. package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +0 -82
  120. package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +0 -68
  121. package/dist/src/views/scheduling/composables/useScheduleDemandRow.d.ts +0 -45
  122. package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +0 -139
  123. package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +0 -22
  124. package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +0 -32
  125. package/dist/src/views/scheduling/composables/useScheduleEmployeeProfile.d.ts +0 -16
  126. package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +0 -26
  127. package/dist/src/views/scheduling/composables/useScheduleFilterBar.d.ts +0 -14
  128. package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +0 -80
  129. package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +0 -20
  130. package/dist/src/views/scheduling/composables/useScheduleLegend.d.ts +0 -15
  131. package/dist/src/views/scheduling/composables/useScheduleLegendBar.d.ts +0 -35
  132. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +0 -179
  133. package/dist/src/views/scheduling/composables/useScheduleOpenShiftCard.d.ts +0 -23
  134. package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +0 -19
  135. package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +0 -32
  136. package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +0 -91
  137. package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +0 -18
  138. package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +0 -183
  139. package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +0 -54
  140. package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +0 -18
  141. package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +0 -225
  142. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +0 -174
  143. package/dist/src/views/scheduling/composables/useScheduleStaffRail.d.ts +0 -20
  144. package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +0 -25
  145. package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +0 -44
  146. package/dist/src/views/scheduling/composables/useScheduleTopbar.d.ts +0 -10
  147. package/dist/src/views/scheduling/data.d.ts +0 -105
  148. package/dist/src/views/scheduling/locales/index.d.ts +0 -496
  149. package/dist/src/views/scheduling/schedule-store.d.ts +0 -116
  150. package/dist/src/views/scheduling/types.d.ts +0 -311
  151. package/dist/useScheduleOutlet-CmIG5dwQ.js +0 -557
  152. package/dist/useSchedulePositions-DPVAgdB2.js +0 -103
@@ -1,9 +0,0 @@
1
- const s = (t, r) => {
2
- const o = t.__vccOpts || t;
3
- for (const [c, e] of r)
4
- o[c] = e;
5
- return o;
6
- };
7
- export {
8
- s as _
9
- };
@@ -1,139 +0,0 @@
1
- import { d as w } from "./dayjs.min-B_XWc0Hu.js";
2
- import { defineStore as D, storeToRefs as U } from "pinia";
3
- import { ref as u } from "vue";
4
- import { E as r } from "./index-Cz2b95YF.js";
5
- import { s as y } from "./iteration-CcXrOMQe.js";
6
- import { i as g } from "./utils-BZkjJbju.js";
7
- import { u as I } from "./role-7ccipEEe.js";
8
- import { u as f } from "./restaurant-BTpBmfBV.js";
9
- async function T(a) {
10
- const i = I().roles.value, { restaurants: c } = f(), p = new Map(
11
- c.value.map((e) => [e._id, e.profile.name])
12
- ), l = new Map(i.map((e) => [e._id, e.name])), s = /* @__PURE__ */ new Map();
13
- for (const e of a) {
14
- const o = {
15
- restaurantId: e.restaurantId,
16
- restaurantName: p.get(e.restaurantId) || "",
17
- roleId: e.role,
18
- roleName: l.get(e.role) || ""
19
- }, m = s.get(e._id);
20
- if (!m) {
21
- s.set(e._id, {
22
- ...e,
23
- isRestricted: !1,
24
- since: w(g(e._id)).format("DD/MM/YYYY"),
25
- restaurants: [o]
26
- });
27
- continue;
28
- }
29
- m.restaurants.some((d) => d.restaurantId === e.restaurantId) || (m.restaurants = y([...m.restaurants, o], {
30
- selector: "restaurantName"
31
- }));
32
- }
33
- return y([...s.values()], { selector: "name" });
34
- }
35
- function M(a) {
36
- const { restaurants: i } = f(), c = I().roles.value, p = new Map(
37
- i.value.map((e) => [e._id, e])
38
- ), l = new Map(c.map((e) => [e._id, e.name])), s = a.restaurantRole[0];
39
- return {
40
- _id: a._id,
41
- name: a.name,
42
- code: a.code,
43
- passcode: a.passcode,
44
- isMasterUser: a.isMasterUser,
45
- isRestricted: a.isRestricted,
46
- restaurantId: (s == null ? void 0 : s.restaurantId) || "",
47
- role: (s == null ? void 0 : s.roleId) || "",
48
- since: w(g(a._id)).format("DD/MM/YYYY"),
49
- restaurants: y(
50
- a.restaurantRole.map((e) => {
51
- const o = p.get(e.restaurantId);
52
- return {
53
- restaurantId: e.restaurantId,
54
- restaurantName: (o == null ? void 0 : o.profile.name) || "",
55
- restaurantCode: (o == null ? void 0 : o.profile.code) ?? void 0,
56
- roleId: e.roleId,
57
- roleName: l.get(e.roleId) || ""
58
- };
59
- }),
60
- { selector: "restaurantName" }
61
- )
62
- };
63
- }
64
- const j = D("employee", () => {
65
- const a = f(), i = u([]), c = u([]), p = u(0), l = u(!1);
66
- async function s() {
67
- try {
68
- l.value = !0, await a.readRestaurants();
69
- const t = await r.readEmployees();
70
- i.value = await T(t);
71
- } finally {
72
- l.value = !1;
73
- }
74
- }
75
- async function e(t) {
76
- try {
77
- l.value = !0, await a.readRestaurants();
78
- const n = await r.readEmployeesPage(t);
79
- c.value = n.items.map(M), p.value = n.total;
80
- } finally {
81
- l.value = !1;
82
- }
83
- }
84
- async function o(t, n) {
85
- await a.readRestaurants();
86
- const E = n ?? (await r.readEmployeesPage({ ...t, limit: 1, offset: 0 })).total;
87
- return E === 0 ? [] : (await r.readEmployeesPage({ ...t, limit: E, offset: 0 })).items.map(M);
88
- }
89
- async function m(t) {
90
- await r.createEmployee(t);
91
- }
92
- async function d(t, n) {
93
- await r.updateEmployee(t, n);
94
- }
95
- async function v(t) {
96
- await r.deleteEmployee(t);
97
- }
98
- async function _(t) {
99
- await r.deleteMasterEmployee(t);
100
- }
101
- async function Y(t) {
102
- await r.createMasterEmployee(t);
103
- }
104
- async function N(t, n) {
105
- await r.updateMasterEmployee(t, n);
106
- }
107
- async function S(t, n) {
108
- await r.migrateToMasterEmployee(t, n);
109
- }
110
- async function P() {
111
- await r.syncUsersMeta();
112
- }
113
- return {
114
- employees: i,
115
- listEmployees: c,
116
- totalEmployees: p,
117
- isLoading: l,
118
- readEmployees: s,
119
- readEmployeesPage: e,
120
- readAllEmployeesPage: o,
121
- createEmployee: m,
122
- updateEmployee: d,
123
- deleteEmployee: v,
124
- createMasterEmployee: Y,
125
- updateMasterEmployee: N,
126
- deleteMasterEmployee: _,
127
- migrateToMasterUser: S,
128
- syncUsersMeta: P
129
- };
130
- }), z = () => {
131
- const a = j();
132
- return {
133
- ...a,
134
- ...U(a)
135
- };
136
- };
137
- export {
138
- z as u
139
- };
@@ -1,70 +0,0 @@
1
- import "./index-jxRluZiW.js";
2
- import { b as a, g as t } from "./restaurant-BTpBmfBV.js";
3
- const u = {
4
- async readEmployees() {
5
- return t(await a().get("/pos-users"));
6
- },
7
- async readEmployeesPage(s) {
8
- var e, r;
9
- return t(
10
- await a().get("/pos-users/paged", {
11
- params: {
12
- limit: s.limit,
13
- offset: s.offset,
14
- search: s.search,
15
- restaurantIds: (e = s.restaurantIds) != null && e.length ? s.restaurantIds : void 0,
16
- roleIds: (r = s.roleIds) != null && r.length ? s.roleIds : void 0
17
- }
18
- })
19
- );
20
- },
21
- async createEmployee(s) {
22
- await a().post("/pos-users", s);
23
- },
24
- async createMasterEmployee(s) {
25
- await a().post("/pos-users/master-user", s);
26
- },
27
- async migrateToMasterEmployee(s, e) {
28
- await a().put(`/pos-users/migrate/${s}`, e);
29
- },
30
- async updateEmployee(s, e) {
31
- await a().put(`/pos-users/${s}`, e);
32
- },
33
- async updateMasterEmployee(s, e) {
34
- await a().put(`/pos-users/master-user/${s}`, e);
35
- },
36
- async deleteEmployee(s) {
37
- await a().put(`/pos-users/${s._id}`, {
38
- user: s,
39
- roles: [],
40
- previousRoles: s.restaurants.map((e) => ({
41
- restaurantId: e.restaurantId,
42
- roleId: e.roleId
43
- }))
44
- });
45
- },
46
- async deleteMasterEmployee(s) {
47
- await a().put(`/pos-users/master-user/${s._id}`, {
48
- user: s,
49
- roles: [],
50
- previousRoles: s.restaurants.map((e) => ({
51
- restaurantId: e.restaurantId,
52
- roleId: e.roleId
53
- }))
54
- });
55
- },
56
- async generateEmployeePasscode(s) {
57
- return `${t(
58
- await a().post("/pos-users/generate-passcode", {
59
- restaurantIds: s.restaurantIds,
60
- excludePosUserId: s.excludePosUserId
61
- })
62
- )}`;
63
- },
64
- async syncUsersMeta() {
65
- await a().post("/pos-users/create-users-meta");
66
- }
67
- };
68
- export {
69
- u as E
70
- };
@@ -1,30 +0,0 @@
1
- function d(e, r = []) {
2
- const c = JSON.parse(JSON.stringify(e));
3
- return r.length > 0 && r.forEach((s) => {
4
- c[s] !== void 0 && delete c[s];
5
- }), c;
6
- }
7
- function f(e, r) {
8
- return r === void 0 ? e : typeof r == "function" ? r(e) : `${e[r]}`;
9
- }
10
- function g(e, r) {
11
- return d(e).sort((s, u) => {
12
- let n = f(s, r == null ? void 0 : r.selector), t = f(u, r == null ? void 0 : r.selector);
13
- if (r != null && r.descending) {
14
- const [a, l] = [n, t];
15
- n = l, t = a;
16
- }
17
- return n.localeCompare(t, "en", { numeric: !0, sensitivity: "base" });
18
- });
19
- }
20
- function i(e, r) {
21
- return e.reduce((c, s) => {
22
- const u = f(s, r);
23
- return c[u] = [...c[u] || [], s], c;
24
- }, {});
25
- }
26
- export {
27
- d as c,
28
- i as g,
29
- g as s
30
- };
@@ -1,44 +0,0 @@
1
- import type { FdtoScheduleAssignment, FdtoScheduleAutoScheduleReq, FdtoScheduleAutoScheduleResult, FdtoScheduleBoard, FdtoScheduleBulkUpdateAssignmentStatusReq, FdtoScheduleCreateEmployeeProfileReq, FdtoScheduleDemand, FdtoScheduleEmployee, FdtoSchedulePosition, FdtoScheduleSaveAssignmentReq, FdtoScheduleSaveDemandReq, FdtoScheduleSavePositionReq, FdtoScheduleSaveScheduleDayReq, FdtoScheduleScheduleDay, FdtoScheduleUpdateEmployeeProfileReq } from '@/types/schedule';
2
- declare const ScheduleAPI: {
3
- generateAutoSchedule(restaurantId: string, req: FdtoScheduleAutoScheduleReq): Promise<FdtoScheduleAutoScheduleResult>;
4
- /** One outlet's whole board over `[from, to]` (inclusive, 'YYYY-MM-DD'). */
5
- readBoard(restaurantId: string, from: string, to: string): Promise<FdtoScheduleBoard>;
6
- /** Creates or updates the employee's shared business-level scheduling profile. */
7
- createEmployeeProfile(_restaurantId: string, req: FdtoScheduleCreateEmployeeProfileReq): Promise<FdtoScheduleEmployee>;
8
- /** Edits the employee's shared business-level scheduling profile. */
9
- updateEmployeeProfile(_restaurantId: string, employeeId: string, req: FdtoScheduleUpdateEmployeeProfileReq): Promise<FdtoScheduleEmployee>;
10
- /** Positions are shared across the business. */
11
- createPosition(req: FdtoScheduleSavePositionReq): Promise<FdtoSchedulePosition>;
12
- updatePosition(id: string, req: FdtoScheduleSavePositionReq): Promise<FdtoSchedulePosition>;
13
- /** Deleting one position is `deletePositions` with a single-id array — the backend's
14
- * `DELETE positions/:id` route is gone; this is now `DELETE positions?ids=`. */
15
- deletePosition(id: string): Promise<void>;
16
- /** Creates one flat demand interval. */
17
- createDemand(restaurantId: string, req: FdtoScheduleSaveDemandReq): Promise<FdtoScheduleDemand>;
18
- /** Deletes a batch of demands in one request — e.g. `saveDemand` replacing a whole
19
- * day/weekday's demand rows wholesale. Deleting one demand is just this with a single-id
20
- * array. */
21
- deleteDemands(restaurantId: string, ids: string[]): Promise<{
22
- ok: true;
23
- deletedCount: number;
24
- }>;
25
- /** Replaces one date's note/holiday-mark. All three fields back to empty/false clears it. */
26
- saveScheduleDay(restaurantId: string, date: string, req: FdtoScheduleSaveScheduleDayReq): Promise<FdtoScheduleScheduleDay | null>;
27
- /** A one-off shift assignment. */
28
- createAssignment(restaurantId: string, req: FdtoScheduleSaveAssignmentReq): Promise<FdtoScheduleAssignment>;
29
- updateAssignment(restaurantId: string, id: string, req: FdtoScheduleSaveAssignmentReq): Promise<FdtoScheduleAssignment | null>;
30
- /** Deletes a batch of assignments in one request — e.g. a shift split into several segments
31
- * getting replaced wholesale. Deleting one assignment is just this with a single-id
32
- * array. */
33
- deleteAssignments(restaurantId: string, ids: string[]): Promise<{
34
- ok: true;
35
- deletedCount: number;
36
- }>;
37
- /** Flips a batch of assignments to one status in a single request — e.g. Publish sending
38
- * every DRAFT shift on the board to PUBLISHED at once. */
39
- bulkUpdateAssignmentStatus(restaurantId: string, req: FdtoScheduleBulkUpdateAssignmentStatusReq): Promise<FdtoScheduleAssignment[]>;
40
- devResetOutlet(restaurantId: string): Promise<{
41
- removed: number;
42
- }>;
43
- };
44
- export default ScheduleAPI;
@@ -1,2 +0,0 @@
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;
@@ -1,12 +0,0 @@
1
- declare var __VLS_1: {};
2
- type __VLS_Slots = {} & {
3
- default?: (props: typeof __VLS_1) => any;
4
- };
5
- declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
7
- export default _default;
8
- type __VLS_WithSlots<T, S> = T & {
9
- new (): {
10
- $slots: S;
11
- };
12
- };
@@ -1,14 +0,0 @@
1
- import { type Component } from 'vue';
2
- /**
3
- * Wraps a route component in the app-wide sidebar + full-bleed shell (pixel-matched
4
- * to the Scheduling mockup). Mirrors the `withPermission`/`withLoading` HOC pattern
5
- * so it composes with them in router/shared.ts.
6
- */
7
- export declare function withShell(Comp: Component): {
8
- inheritAttrs: boolean;
9
- setup(_: unknown, { attrs }: {
10
- attrs: Record<string, unknown>;
11
- }): () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
12
- [key: string]: any;
13
- }>;
14
- };
@@ -1,232 +0,0 @@
1
- export interface FdtoSchedulePosition {
2
- id: string;
3
- name: string;
4
- }
5
- /** Creates or renames a position — see the backend DTO of the same name. Positions are
6
- * business-level, not per-outlet, so this carries nothing that names one. */
7
- export interface FdtoScheduleSavePositionReq {
8
- name: string;
9
- }
10
- export interface FdtoSchedulePositionRef {
11
- positionId: string;
12
- positionName: string;
13
- }
14
- /** What a create/update request names a position by — see the backend DTO of the same name.
15
- * `positionId` wins server-side when it resolves; `positionName` is what every picker on this
16
- * board actually has to offer (see `POSITIONS`/`positionIdOf` in `data.ts`), so it's always
17
- * sent too, as the fallback a stale or not-yet-loaded id catalogue would need. */
18
- export interface FdtoSchedulePositionSelectorReq {
19
- positionId?: string;
20
- positionName: string;
21
- }
22
- /** Multipliers on an hour's pay, by the kind of day it falls on. A NORMAL day carries only an
23
- * overtime multiplier — its ordinary hours are 1× by definition. */
24
- export interface FdtoSchedulePayRate {
25
- NORMAL: {
26
- overtime: number;
27
- };
28
- REST_DAY: {
29
- regular: number;
30
- overtime: number;
31
- };
32
- PUBLIC_HOLIDAY: {
33
- regular: number;
34
- overtime: number;
35
- };
36
- }
37
- export interface FdtoScheduleSettings {
38
- payRate: FdtoSchedulePayRate;
39
- }
40
- /** When the outlet trades, from its own Restaurants profile — ScheduleSettings no longer
41
- * carries it. `dayOfWeek` is JS `getDay()` (0 = Sunday). A closed day carries no windows; an
42
- * open day carries one or more `{start, end}` windows (a lunch/dinner split reads as two, not
43
- * one that spans the gap between them). */
44
- export interface FdtoScheduleDayOperatingHours {
45
- dayOfWeek: number;
46
- closed: boolean;
47
- hours: Array<{
48
- start: string;
49
- end: string;
50
- }>;
51
- }
52
- export interface FdtoScheduleRestaurantProfile {
53
- operatingHours: FdtoScheduleDayOperatingHours[];
54
- }
55
- /** Creates or updates the employee's business-level scheduling profile through POST /employees. */
56
- export interface FdtoScheduleCreateEmployeeProfileReq {
57
- employeeId: string;
58
- employeeName: string;
59
- employmentType?: 'FULLTIME' | 'PARTTIME';
60
- workingHour?: number;
61
- wage?: {
62
- type: 'HOURLY' | 'MONTHLY';
63
- amount: number;
64
- };
65
- primaryPosition?: FdtoSchedulePositionSelectorReq;
66
- secondaryPositions?: FdtoSchedulePositionSelectorReq[];
67
- availability?: Array<{
68
- dayOfWeek: number;
69
- start: string;
70
- end: string;
71
- }>;
72
- }
73
- /** Editable profile fields. The API helper adds employeeId to the POST /employees body. */
74
- export type FdtoScheduleUpdateEmployeeProfileReq = Omit<FdtoScheduleCreateEmployeeProfileReq, 'employeeId'>;
75
- export interface FdtoScheduleEmployee {
76
- employeeId: string;
77
- name: string;
78
- employmentType: 'FULLTIME' | 'PARTTIME';
79
- workingHour: number;
80
- wage: {
81
- type: 'HOURLY' | 'MONTHLY';
82
- amount: number;
83
- };
84
- primaryPosition: FdtoSchedulePositionRef | null;
85
- secondaryPositions: FdtoSchedulePositionRef[];
86
- availability: Array<{
87
- dayOfWeek: number;
88
- start: string;
89
- end: string;
90
- }>;
91
- }
92
- export interface FdtoScheduleAssignment {
93
- id: string;
94
- employeeId: string;
95
- position: FdtoSchedulePositionRef | null;
96
- date: string;
97
- startTime: string;
98
- endTime: string;
99
- breakMinutes: number;
100
- status: 'DRAFT' | 'PUBLISHED' | 'CONFIRMED';
101
- }
102
- /** Creates or replaces one plain assignment — see the backend DTO of the same name for the
103
- * full contract. */
104
- export interface FdtoScheduleSaveAssignmentReq {
105
- employeeId: string;
106
- date: string;
107
- startTime: string;
108
- endTime: string;
109
- breakMinutes?: number;
110
- position?: FdtoSchedulePositionSelectorReq;
111
- status?: 'DRAFT' | 'PUBLISHED' | 'CONFIRMED';
112
- }
113
- /** Flips a batch of existing assignments to one status in a single request — see the backend
114
- * DTO of the same name. */
115
- export interface FdtoScheduleBulkUpdateAssignmentStatusReq {
116
- ids: string[];
117
- status: 'DRAFT' | 'PUBLISHED' | 'CONFIRMED';
118
- }
119
- export type FdtoScheduleAutoScheduleObjective = 'BALANCED' | 'SERVICE' | 'LOWER_COST' | 'STABLE_HOURS';
120
- export interface FdtoScheduleAutoScheduleReq {
121
- from: string;
122
- to: string;
123
- objective: FdtoScheduleAutoScheduleObjective;
124
- fillDemandGaps: boolean;
125
- allowOvertime?: boolean;
126
- minimumCoveragePercent?: number;
127
- }
128
- export interface FdtoScheduleAutoScheduleProposal {
129
- employeeId: string;
130
- date: string;
131
- startTime: string;
132
- endTime: string;
133
- position: string;
134
- }
135
- export interface FdtoScheduleAutoScheduleResult {
136
- proposals: FdtoScheduleAutoScheduleProposal[];
137
- unfilledCount: number;
138
- metrics: {
139
- minimumCoveragePercent: number;
140
- recommendedCoveragePercent: number;
141
- totalHours: number;
142
- estimatedLabourCost: number | null;
143
- costCoveragePercent: number;
144
- overtimeHours: number;
145
- targetHoursVariance: number;
146
- unfilledIntervals: number;
147
- };
148
- readiness: {
149
- ready: boolean;
150
- capabilities: string[];
151
- issues: Array<{
152
- code: string;
153
- severity: 'BLOCKER' | 'WARNING' | 'INFO';
154
- message: string;
155
- }>;
156
- coverage: {
157
- position: number;
158
- availability: number;
159
- wage: number;
160
- targetHours: number;
161
- };
162
- };
163
- explanations: string[];
164
- solver: string;
165
- }
166
- export interface FdtoScheduleDemand {
167
- id: string;
168
- date: string | null;
169
- dayOfWeek: number | null;
170
- startTime: string;
171
- endTime: string;
172
- headcount: number;
173
- position: FdtoSchedulePositionRef | null;
174
- }
175
- /** Creates or updates one flat demand interval for a date OR standing weekday. */
176
- export interface FdtoScheduleSaveDemandReq {
177
- date?: string;
178
- dayOfWeek?: number;
179
- startTime: string;
180
- endTime: string;
181
- headcount: number;
182
- position?: FdtoSchedulePositionSelectorReq;
183
- }
184
- /** UI-level replacement command. The store expands these periods into flat ShiftDemand rows. */
185
- export interface ScheduleReplaceDemandReq {
186
- date?: string;
187
- dayOfWeek?: number;
188
- periods: Array<{
189
- startTime: string;
190
- endTime: string;
191
- headcount: number;
192
- roles?: Array<{
193
- positionId?: string;
194
- positionName: string;
195
- headcount: number;
196
- }>;
197
- }>;
198
- }
199
- /** Whatever a manager has authored about one DATE — a titled note, and whether it bills at the
200
- * holiday rate — see the backend DTO of the same name. A date nothing has ever been set on
201
- * reads the same as one whose document was deleted after being cleared back to empty. */
202
- export interface FdtoScheduleScheduleDay {
203
- id: string;
204
- date: string;
205
- title: string;
206
- description: string;
207
- isPublicHoliday: boolean;
208
- }
209
- /** Replaces one date's note/holiday-mark in one write — see the backend DTO of the same name.
210
- * All three fields back to empty/false clears it. */
211
- export interface FdtoScheduleSaveScheduleDayReq {
212
- title?: string;
213
- description?: string;
214
- isPublicHoliday?: boolean;
215
- }
216
- export interface FdtoScheduleBoard {
217
- outlet: {
218
- id: string;
219
- name: string;
220
- };
221
- range: {
222
- from: string;
223
- to: string;
224
- };
225
- settings: FdtoScheduleSettings;
226
- restaurantProfile: FdtoScheduleRestaurantProfile;
227
- positions: FdtoSchedulePosition[];
228
- employees: FdtoScheduleEmployee[];
229
- assignments: FdtoScheduleAssignment[];
230
- demands: FdtoScheduleDemand[];
231
- days: FdtoScheduleScheduleDay[];
232
- }
@@ -1,4 +0,0 @@
1
- import './scheduling-tokens.css';
2
- import './scheduling.css';
3
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4
- export default _default;
@@ -1,4 +0,0 @@
1
- import './scheduling-tokens.css';
2
- import './scheduling.css';
3
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4
- export default _default;
@@ -1,4 +0,0 @@
1
- import './scheduling-tokens.css';
2
- import './scheduling.css';
3
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4
- export default _default;
@@ -1,6 +0,0 @@
1
- import type { useScheduleAddEmployee } from '../composables/useScheduleAddEmployee';
2
- type __VLS_Props = {
3
- wizard: ReturnType<typeof useScheduleAddEmployee>;
4
- };
5
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
- export default _default;
@@ -1,6 +0,0 @@
1
- import type { useScheduleAddEmployee } from '../composables/useScheduleAddEmployee';
2
- type __VLS_Props = {
3
- wizard: ReturnType<typeof useScheduleAddEmployee>;
4
- };
5
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
- export default _default;
@@ -1,6 +0,0 @@
1
- import type { useScheduleAddEmployee } from '../composables/useScheduleAddEmployee';
2
- type __VLS_Props = {
3
- wizard: ReturnType<typeof useScheduleAddEmployee>;
4
- };
5
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
- export default _default;
@@ -1,6 +0,0 @@
1
- import type { useScheduleAddEmployee } from '../composables/useScheduleAddEmployee';
2
- type __VLS_Props = {
3
- wizard: ReturnType<typeof useScheduleAddEmployee>;
4
- };
5
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
- export default _default;
@@ -1,6 +0,0 @@
1
- import type { useScheduleAddEmployee } from '../composables/useScheduleAddEmployee';
2
- type __VLS_Props = {
3
- wizard: ReturnType<typeof useScheduleAddEmployee>;
4
- };
5
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
- export default _default;
@@ -1,6 +0,0 @@
1
- import type { useScheduleAddEmployee } from '../composables/useScheduleAddEmployee';
2
- type __VLS_Props = {
3
- wizard: ReturnType<typeof useScheduleAddEmployee>;
4
- };
5
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
- export default _default;
@@ -1,6 +0,0 @@
1
- import type { ScheduleAddPickApi } from '../composables/useScheduleAddPick';
2
- type __VLS_Props = {
3
- addPick: ScheduleAddPickApi;
4
- };
5
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
- export default _default;
@@ -1,22 +0,0 @@
1
- import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
2
- import type { ScheduleAllShiftsRowApi } from '../composables/useScheduleAllShiftsRow';
3
- import type { ScheduleOpenShiftCardApi } from '../composables/useScheduleOpenShiftCard';
4
- type __VLS_Props = {
5
- board: ScheduleBoardApi;
6
- row: ScheduleAllShiftsRowApi;
7
- openShiftCard: ScheduleOpenShiftCardApi;
8
- };
9
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
- editShift: (empId: number, dayIdx: number) => any;
11
- openAssign: (openId: number) => any;
12
- openOpenShiftMenu: (openId: number, anchor: HTMLElement) => any;
13
- addOpenShift: (dayIdx: number) => any;
14
- openStack: (dayIdx: number, anchor: HTMLElement) => any;
15
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
- onEditShift?: ((empId: number, dayIdx: number) => any) | undefined;
17
- onOpenAssign?: ((openId: number) => any) | undefined;
18
- onOpenOpenShiftMenu?: ((openId: number, anchor: HTMLElement) => any) | undefined;
19
- onAddOpenShift?: ((dayIdx: number) => any) | undefined;
20
- onOpenStack?: ((dayIdx: number, anchor: HTMLElement) => any) | undefined;
21
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
- export default _default;