@feedmepos/mf-hrm-portal 2.3.0-dev.21 → 2.3.0-dev.23

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 (34) hide show
  1. package/dist/{ApprovalCodeList-DuPmMQ8Z.js → ApprovalCodeList-HeJE6bXI.js} +4 -4
  2. package/dist/{AuditLogList-BeRA_284.js → AuditLogList-BkkwVqgA.js} +4 -4
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-StnBAQOk.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-A0010E4h.js} +2 -2
  4. package/dist/{EmployeeList-qmjsbCjj.js → EmployeeList-CGtKwz11.js} +6 -6
  5. package/dist/{FormItem.vue_vue_type_script_setup_true_lang-oQJgMciC.js → FormItem.vue_vue_type_script_setup_true_lang-SMVEHSvt.js} +1 -1
  6. package/dist/{GrantUserList--WUK7zrV.js → GrantUserList-CfmmaAKD.js} +5 -5
  7. package/dist/{Main-BIAeEQV9.js → Main-BFmIs6Bo.js} +5 -5
  8. package/dist/{Main-tPL_YTwT.js → Main-BGeNzzJV.js} +9 -9
  9. package/dist/{Main-9X2iCXoX.js → Main-D5D1XL4d.js} +2 -2
  10. package/dist/{PermissionSetList-ByTyQe0s.js → PermissionSetList-DSL8Ad6l.js} +5 -5
  11. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bp9WwlnI.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CF8xJ_3T.js} +1034 -1034
  12. package/dist/{RoleList-INlydQmP.js → RoleList-D2X3wdBw.js} +7 -7
  13. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-d8KDvgNu.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Co8M_O6w.js} +1 -1
  14. package/dist/{ScheduleGeneralPage-DbOoP9Ez.js → ScheduleGeneralPage-CnoOZH1_.js} +2 -2
  15. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-UowMybGr.js → ScheduleModal.vue_vue_type_script_setup_true_lang-DoHZ_Dww.js} +2 -2
  16. package/dist/{SchedulePage-CjOZtRlK.js → SchedulePage-BP3BXmND.js} +1373 -1377
  17. package/dist/{SchedulePositionPage-CnDqkvL9.js → SchedulePositionPage-BazSzvrh.js} +3 -3
  18. package/dist/{SelectFilter-BWw4B9tM.js → SelectFilter-BdslMtMp.js} +1 -1
  19. package/dist/{TeamMemberList-BgYtoXht.js → TeamMemberList-B86cQsp9.js} +7 -7
  20. package/dist/{TimesheetList-Dg0QYsWO.js → TimesheetList-Cg3kANnw.js} +6 -6
  21. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-eTd4J1CB.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CKoQaOk1.js} +2 -2
  22. package/dist/{app-CDo04LrB.js → app-Dmw_06Ep.js} +8 -8
  23. package/dist/app.js +1 -1
  24. package/dist/{dayjs.min-KFBmxZF3.js → dayjs.min-VRO6_wdL.js} +1 -1
  25. package/dist/{employee-BRaYoaOY.js → employee-BoHcXkhJ.js} +51 -47
  26. package/dist/{iteration-p-TjO05t.js → iteration-DE0WDDoe.js} +1 -1
  27. package/dist/{lodash-D72lpJgs.js → lodash-C70tGp_f.js} +1 -1
  28. package/dist/{role-a35Vc8gC.js → role-DyGoiMku.js} +1 -1
  29. package/dist/{rule-BRRw0K7p.js → rule-BXwcd4Jm.js} +2 -2
  30. package/dist/src/api/employee/index.d.ts +2 -2
  31. package/dist/src/stores/employee.d.ts +12 -12
  32. package/dist/tsconfig.app.tsbuildinfo +1 -1
  33. package/dist/{useReportPermissions-Ca-9DEOI.js → useReportPermissions-CDt1z_Ww.js} +3 -3
  34. package/package.json +3 -3
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as M, ref as A, onMounted as F, computed as S, createElementBlock as i, openBlock as l, createElementVNode as o, createVNode as n, createStaticVNode as x, withCtx as d, unref as s, toDisplayString as c, createTextVNode as r, normalizeClass as h, createCommentVNode as z, withDirectives as E, withKeys as k, vModelText as P, Fragment as C, renderList as V, withModifiers as g } from "vue";
2
2
  import { useRouter as B } from "vue-router";
3
3
  import { useSnackbar as I } from "@feedmepos/ui-library";
4
- import { R as L, a as O } from "./app-CDo04LrB.js";
5
- import { av as R, aw as K, ag as T, ar as u, as as U } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-UowMybGr.js";
6
- import { u as W, a as j, _ as q } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-d8KDvgNu.js";
4
+ import { R as L, a as O } from "./app-Dmw_06Ep.js";
5
+ import { av as R, aw as K, ag as T, ar as u, as as U } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-DoHZ_Dww.js";
6
+ import { u as W, a as j, _ as q } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Co8M_O6w.js";
7
7
  const H = { class: "main" }, G = {
8
8
  id: "viewPositions",
9
9
  class: "view"
@@ -1,7 +1,7 @@
1
1
  import { ref as $, computed as v, defineComponent as X, watch as Y, nextTick as Z, resolveComponent as F, createElementBlock as d, openBlock as c, createElementVNode as A, createVNode as b, renderSlot as z, withCtx as O, createCommentVNode as x, normalizeStyle as ee, Fragment as S, createBlock as T, unref as k, renderList as R, toDisplayString as N, normalizeClass as le, withModifiers as te } from "vue";
2
2
  import "@feedmepos/ui-library";
3
3
  /* empty css */
4
- import { a as ae } from "./app-CDo04LrB.js";
4
+ import { a as ae } from "./app-Dmw_06Ep.js";
5
5
  function ue(r, u, _ = r) {
6
6
  const t = $(!0), C = v(() => {
7
7
  if (!t.value && !u.value)
@@ -2,22 +2,22 @@ import { defineComponent as we, resolveComponent as F, createElementBlock as L,
2
2
  import { useI18n as Ve, useCoreStore as Ze } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as Le, useDialog as Qe, useBreakpoints as Ye, components as Oe } from "@feedmepos/ui-library";
4
4
  import { u as ps } from "./useDebounce-B8ZPVS5C.js";
5
- import { S as ye } from "./SelectFilter-BWw4B9tM.js";
6
- import { a as vs, v as Te, m as fs, O as bs, _ as hs, b as ys } from "./app-CDo04LrB.js";
5
+ import { S as ye } from "./SelectFilter-BdslMtMp.js";
6
+ import { a as vs, v as Te, m as fs, O as bs, _ as hs, b as ys } from "./app-Dmw_06Ep.js";
7
7
  import { _ as gs } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
8
8
  import { _ as _s } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
9
9
  import { s as Us, _ as Ss, a as xs, b as Fs, c as Ps } from "./PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js";
10
10
  import { u as He } from "./useLoading-Nygx2zn8.js";
11
11
  import { u as Is } from "./useDiscardConfirm-CzZSPyvh.js";
12
12
  import { n as es } from "./string-VNuQNweN.js";
13
- import { l as Pe } from "./lodash-D72lpJgs.js";
14
- import { c as he } from "./iteration-p-TjO05t.js";
15
- import { t as _e, u as ss, c as Ae, b as qe, m as $e, d as ts, p as Ge, i as ws, j as Ke, k as Vs, l as ks, n as Rs, o as Cs, q as $s } from "./rule-BRRw0K7p.js";
16
- import { u as as } from "./role-a35Vc8gC.js";
13
+ import { l as Pe } from "./lodash-C70tGp_f.js";
14
+ import { c as he } from "./iteration-DE0WDDoe.js";
15
+ import { t as _e, u as ss, c as Ae, b as qe, m as $e, d as ts, p as Ge, i as ws, j as Ke, k as Vs, l as ks, n as Rs, o as Cs, q as $s } from "./rule-BXwcd4Jm.js";
16
+ import { u as as } from "./role-DyGoiMku.js";
17
17
  import { u as ls, i as Ms } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DQcgZ0nF.js";
18
18
  import "./useAppStore-DZCdxlCd.js";
19
19
  import { g as ze, b as We, u as os } from "./restaurant-D2mfKHaH.js";
20
- import { _ as Ns } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bp9WwlnI.js";
20
+ import { _ as Ns } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CF8xJ_3T.js";
21
21
  var Ue = /* @__PURE__ */ ((o) => (o.Update = "Update", o.Remove = "Remove", o))(Ue || {});
22
22
  const Ie = "__unassigned__";
23
23
  function Je(o) {
@@ -1,17 +1,17 @@
1
1
  import { ref as d, computed as g, defineComponent as pe, onMounted as fe, watch as Z, resolveComponent as u, createElementBlock as P, openBlock as E, Fragment as ee, createVNode as l, createElementVNode as i, unref as n, withCtx as b, createCommentVNode as ve, toDisplayString as O, createTextVNode as he, isRef as ge, renderList as we, createBlock as te, nextTick as ye } from "vue";
2
- import { d as v } from "./dayjs.min-KFBmxZF3.js";
2
+ import { d as v } from "./dayjs.min-VRO6_wdL.js";
3
3
  import { useI18n as _e } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as be, components as xe } from "@feedmepos/ui-library";
5
- import { S as De } from "./SelectFilter-BWw4B9tM.js";
6
- import { _ as Se, a as Ve } from "./app-CDo04LrB.js";
5
+ import { S as De } from "./SelectFilter-BdslMtMp.js";
6
+ import { _ as Se, a as Ve } from "./app-Dmw_06Ep.js";
7
7
  import { _ as ke } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
8
8
  import { u as Ce } from "./useLoading-Nygx2zn8.js";
9
- import { g as Fe, s as Ye } from "./iteration-p-TjO05t.js";
9
+ import { g as Fe, s as Ye } from "./iteration-DE0WDDoe.js";
10
10
  import { f as Le } from "./utils-BZkjJbju.js";
11
11
  import { n as Me } from "./string-VNuQNweN.js";
12
- import { u as Te } from "./employee-BRaYoaOY.js";
12
+ import { u as Te } from "./employee-BoHcXkhJ.js";
13
13
  import { u as Ie } from "./restaurant-D2mfKHaH.js";
14
- import { u as Re } from "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-eTd4J1CB.js";
14
+ import { u as Re } from "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CKoQaOk1.js";
15
15
  function $e(x, a) {
16
16
  return ["years", "months"].find((S) => {
17
17
  const V = x.startOf(S), p = x.endOf(S);
@@ -1,8 +1,8 @@
1
- import { d as i } from "./dayjs.min-KFBmxZF3.js";
1
+ import { d as i } from "./dayjs.min-VRO6_wdL.js";
2
2
  import { defineStore as p, storeToRefs as T } from "pinia";
3
3
  import { ref as l } from "vue";
4
4
  import { b as c, g as y } from "./restaurant-D2mfKHaH.js";
5
- import { s as S } from "./iteration-p-TjO05t.js";
5
+ import { s as S } from "./iteration-DE0WDDoe.js";
6
6
  import { i as f, f as g } from "./utils-BZkjJbju.js";
7
7
  const u = {
8
8
  async readTimesheets(t, e) {
@@ -10146,16 +10146,16 @@ const tt = (e) => ({
10146
10146
  }
10147
10147
  ]
10148
10148
  }
10149
- }), Vc = it(he(() => import("./Main-tPL_YTwT.js"))), Fc = it(he(() => import("./Main-BIAeEQV9.js"))), Sc = it(
10150
- he(() => import("./AuditLogList-BeRA_284.js"))
10151
- ), Tc = it(he(() => import("./Main-9X2iCXoX.js"))), kc = he(() => import("./ApprovalCodeList-DuPmMQ8Z.js")), Rc = he(() => import("./GrantUserList--WUK7zrV.js")), Nc = he(() => import("./EmployeeList-qmjsbCjj.js")), Ic = he(() => import("./RoleList-INlydQmP.js")), Hc = he(() => import("./TimesheetList-Dg0QYsWO.js")), qc = he(() => import("./TeamMemberList-BgYtoXht.js")), Xc = he(
10152
- () => import("./PermissionSetList-ByTyQe0s.js")
10149
+ }), Vc = it(he(() => import("./Main-BGeNzzJV.js"))), Fc = it(he(() => import("./Main-BFmIs6Bo.js"))), Sc = it(
10150
+ he(() => import("./AuditLogList-BkkwVqgA.js"))
10151
+ ), Tc = it(he(() => import("./Main-D5D1XL4d.js"))), kc = he(() => import("./ApprovalCodeList-HeJE6bXI.js")), Rc = he(() => import("./GrantUserList-CfmmaAKD.js")), Nc = he(() => import("./EmployeeList-CGtKwz11.js")), Ic = he(() => import("./RoleList-D2X3wdBw.js")), Hc = he(() => import("./TimesheetList-Cg3kANnw.js")), qc = he(() => import("./TeamMemberList-B86cQsp9.js")), Xc = he(
10152
+ () => import("./PermissionSetList-DSL8Ad6l.js")
10153
10153
  ), Qc = _s(
10154
- it(he(() => import("./SchedulePage-CjOZtRlK.js")))
10154
+ it(he(() => import("./SchedulePage-BP3BXmND.js")))
10155
10155
  ), Zc = _s(
10156
- it(he(() => import("./SchedulePositionPage-CnDqkvL9.js")))
10156
+ it(he(() => import("./SchedulePositionPage-BazSzvrh.js")))
10157
10157
  ), Uc = _s(
10158
- it(he(() => import("./ScheduleGeneralPage-DbOoP9Ez.js")))
10158
+ it(he(() => import("./ScheduleGeneralPage-CnoOZH1_.js")))
10159
10159
  ), wu = [
10160
10160
  {
10161
10161
  path: "/",
@@ -11304,7 +11304,7 @@ const Bu = /* @__PURE__ */ Ke({
11304
11304
  };
11305
11305
  }
11306
11306
  });
11307
- var Os = { name: "@feedmepos/mf-hrm-portal", version: "2.3.0-dev.21", mode: "fmmf" };
11307
+ var Os = { name: "@feedmepos/mf-hrm-portal", version: "2.3.0-dev.23", mode: "fmmf" };
11308
11308
  console.log(
11309
11309
  `%c${Os.name}%c v${Os.version} %c${Os.mode}`,
11310
11310
  "background:#1f1f1f;color:#fff;padding:2px 6px;border-radius:3px 0 0 3px",
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as e, i as r, r as o } from "./app-CDo04LrB.js";
1
+ import { j as e, i as r, r as o } from "./app-Dmw_06Ep.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  r as i18nMessages,
@@ -1,4 +1,4 @@
1
- import { g as Q, f as K } from "./app-CDo04LrB.js";
1
+ import { g as Q, f as K } from "./app-Dmw_06Ep.js";
2
2
  var E = { exports: {} };
3
3
  (function(V, X) {
4
4
  (function(W, k) {
@@ -1,34 +1,38 @@
1
- import { d as g } from "./dayjs.min-KFBmxZF3.js";
1
+ import { d as g } from "./dayjs.min-VRO6_wdL.js";
2
2
  import { defineStore as $, storeToRefs as x } from "pinia";
3
- import { ref as m } from "vue";
4
- import { s as E } from "./iteration-p-TjO05t.js";
5
- import { b as l, g as f, u as I } from "./restaurant-D2mfKHaH.js";
3
+ import { ref as y } from "vue";
4
+ import { s as E } from "./iteration-DE0WDDoe.js";
5
+ import { b as l, g as m, u as I } from "./restaurant-D2mfKHaH.js";
6
6
  import { i as v } from "./utils-BZkjJbju.js";
7
- import { u as P } from "./role-a35Vc8gC.js";
7
+ import { u as P } from "./role-DyGoiMku.js";
8
8
  const o = {
9
9
  async readEmployees() {
10
- return f(await l().get("/pos-users"));
10
+ return m(await l().get("/pos-users"));
11
11
  },
12
12
  async readEmployeesPage(e) {
13
- var s, p;
14
- return f(
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: (p = e.roleIds) != null && p.length ? e.roleIds : void 0,
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
- await l().post("/pos-users", e);
28
+ return m(
29
+ await l().post("/pos-users", e)
30
+ ).employeeId;
29
31
  },
30
32
  async createMasterEmployee(e) {
31
- await l().post("/pos-users/master-user", e);
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 `${f(
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: p } = I(), d = new Map(
76
- p.value.map((a) => [a._id, a.profile.name])
77
- ), c = new Map(s.map((a) => [a._id, a.name])), r = /* @__PURE__ */ new Map();
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: d.get(a.restaurantId) || "",
85
+ restaurantName: c.get(a.restaurantId) || "",
82
86
  roleId: a.role,
83
- roleName: c.get(a.role) || ""
84
- }, u = r.get(a._id);
85
- if (!u) {
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
- u.restaurants.some((y) => y.restaurantId === a.restaurantId) || (u.restaurants = E([...u.restaurants, n], {
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(), p = P().roles.value, d = new Map(
105
+ const { restaurants: s } = I(), i = P().roles.value, c = new Map(
102
106
  s.value.map((a) => [a._id, a])
103
- ), c = new Map(p.map((a) => [a._id, a.name])), r = e.restaurantRole[0];
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 = d.get(a.restaurantId);
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: c.get(a.roleId) || ""
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 = m([]), p = m([]), d = m(0), c = m(!1);
134
+ const e = I(), s = y([]), i = y([]), c = y(0), u = y(!1);
131
135
  async function r() {
132
136
  try {
133
- c.value = !0, await e.readRestaurants();
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
- c.value = !1;
141
+ u.value = !1;
138
142
  }
139
143
  }
140
144
  async function a(t) {
141
145
  try {
142
- c.value = !0, await e.readRestaurants();
143
- const i = await o.readEmployeesPage(t);
144
- p.value = i.items.map(M), d.value = i.total;
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
- c.value = !1;
150
+ u.value = !1;
147
151
  }
148
152
  }
149
- async function n(t, i) {
153
+ async function n(t, p) {
150
154
  await e.readRestaurants();
151
- const w = i ?? (await o.readEmployeesPage({ ...t, limit: 1, offset: 0 })).total;
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 u(t) {
155
- await o.createEmployee(t);
158
+ async function d(t) {
159
+ return o.createEmployee(t);
156
160
  }
157
- async function y(t, i) {
158
- await o.updateEmployee(t, i);
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
- await o.createMasterEmployee(t);
171
+ return o.createMasterEmployee(t);
168
172
  }
169
- async function N(t, i) {
170
- await o.updateMasterEmployee(t, i);
173
+ async function N(t, p) {
174
+ await o.updateMasterEmployee(t, p);
171
175
  }
172
- async function S(t, i) {
173
- await o.migrateToMasterEmployee(t, i);
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: p,
181
- totalEmployees: d,
182
- isLoading: c,
184
+ listEmployees: i,
185
+ totalEmployees: c,
186
+ isLoading: u,
183
187
  readEmployees: r,
184
188
  readEmployeesPage: a,
185
189
  readAllEmployeesPage: n,
186
- createEmployee: u,
187
- updateEmployee: y,
190
+ createEmployee: d,
191
+ updateEmployee: f,
188
192
  deleteEmployee: _,
189
193
  createMasterEmployee: Y,
190
194
  updateMasterEmployee: N,
@@ -1,4 +1,4 @@
1
- import { f as B } from "./app-CDo04LrB.js";
1
+ import { f as B } from "./app-Dmw_06Ep.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;
@@ -1,4 +1,4 @@
1
- import { f as jt } from "./app-CDo04LrB.js";
1
+ import { f as jt } from "./app-Dmw_06Ep.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -1,7 +1,7 @@
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-p-TjO05t.js";
4
+ import { s as v } from "./iteration-DE0WDDoe.js";
5
5
  import { g as f, b as p, u as I } from "./restaurant-D2mfKHaH.js";
6
6
  const R = {
7
7
  async readRoles() {
@@ -1,5 +1,5 @@
1
- import { s as W, c as q, e as y } from "./iteration-p-TjO05t.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-CDo04LrB.js";
1
+ import { s as W, c as q, e as y } from "./iteration-DE0WDDoe.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-Dmw_06Ep.js";
3
3
  import { s as se } from "./utils-BZkjJbju.js";
4
4
  import { g, b as v, q as x, u as te } from "./restaurant-D2mfKHaH.js";
5
5
  import { defineStore as z, storeToRefs as K } from "pinia";
@@ -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<void>;
11
- createMasterEmployee(dto: FdtoUpdatePosMasterUserReq): Promise<void>;
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>;
@@ -377,10 +377,10 @@ export declare const useEmployeeStore: () => {
377
377
  readEmployees: () => Promise<void>;
378
378
  readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
379
379
  readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
380
- createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<void>;
380
+ createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<string>;
381
381
  updateEmployee: (userId: string, dto: FdtoUpdatePosUserReq) => Promise<void>;
382
382
  deleteEmployee: (employee: Employee) => Promise<void>;
383
- createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
383
+ createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<string>;
384
384
  updateMasterEmployee: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
385
385
  deleteMasterEmployee: (employee: Employee) => Promise<void>;
386
386
  migrateToMasterUser: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
@@ -695,10 +695,10 @@ export declare const useEmployeeStore: () => {
695
695
  readEmployees: () => Promise<void>;
696
696
  readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
697
697
  readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
698
- createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<void>;
698
+ createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<string>;
699
699
  updateEmployee: (userId: string, dto: FdtoUpdatePosUserReq) => Promise<void>;
700
700
  deleteEmployee: (employee: Employee) => Promise<void>;
701
- createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
701
+ createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<string>;
702
702
  updateMasterEmployee: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
703
703
  deleteMasterEmployee: (employee: Employee) => Promise<void>;
704
704
  migrateToMasterUser: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
@@ -858,10 +858,10 @@ export declare const useEmployeeStore: () => {
858
858
  readEmployees: () => Promise<void>;
859
859
  readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
860
860
  readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
861
- createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<void>;
861
+ createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<string>;
862
862
  updateEmployee: (userId: string, dto: FdtoUpdatePosUserReq) => Promise<void>;
863
863
  deleteEmployee: (employee: Employee) => Promise<void>;
864
- createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
864
+ createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<string>;
865
865
  updateMasterEmployee: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
866
866
  deleteMasterEmployee: (employee: Employee) => Promise<void>;
867
867
  migrateToMasterUser: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
@@ -1018,10 +1018,10 @@ export declare const useEmployeeStore: () => {
1018
1018
  readEmployees: () => Promise<void>;
1019
1019
  readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
1020
1020
  readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
1021
- createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<void>;
1021
+ createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<string>;
1022
1022
  updateEmployee: (userId: string, dto: FdtoUpdatePosUserReq) => Promise<void>;
1023
1023
  deleteEmployee: (employee: Employee) => Promise<void>;
1024
- createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
1024
+ createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<string>;
1025
1025
  updateMasterEmployee: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
1026
1026
  deleteMasterEmployee: (employee: Employee) => Promise<void>;
1027
1027
  migrateToMasterUser: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
@@ -1178,10 +1178,10 @@ export declare const useEmployeeStore: () => {
1178
1178
  readEmployees: () => Promise<void>;
1179
1179
  readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
1180
1180
  readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
1181
- createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<void>;
1181
+ createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<string>;
1182
1182
  updateEmployee: (userId: string, dto: FdtoUpdatePosUserReq) => Promise<void>;
1183
1183
  deleteEmployee: (employee: Employee) => Promise<void>;
1184
- createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
1184
+ createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<string>;
1185
1185
  updateMasterEmployee: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
1186
1186
  deleteMasterEmployee: (employee: Employee) => Promise<void>;
1187
1187
  migrateToMasterUser: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
@@ -1193,10 +1193,10 @@ export declare const useEmployeeStore: () => {
1193
1193
  readEmployees: () => Promise<void>;
1194
1194
  readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
1195
1195
  readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
1196
- createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<void>;
1196
+ createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<string>;
1197
1197
  updateEmployee: (userId: string, dto: FdtoUpdatePosUserReq) => Promise<void>;
1198
1198
  deleteEmployee: (employee: Employee) => Promise<void>;
1199
- createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
1199
+ createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<string>;
1200
1200
  updateMasterEmployee: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
1201
1201
  deleteMasterEmployee: (employee: Employee) => Promise<void>;
1202
1202
  migrateToMasterUser: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;