@feedmepos/mf-hrm-portal 2.0.10 → 2.0.11-dev

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 (44) hide show
  1. package/dist/AuditLogList-C7QcWwHq.js +941 -0
  2. package/dist/EmployeeList-CQzS4gXV.js +690 -0
  3. package/dist/{Main-D9233aXd.js → Main-6td6JhCb.js} +1055 -1054
  4. package/dist/{Main-6YVJ8qeK.js → Main-BhNhmkn8.js} +4 -4
  5. package/dist/{Main-BSaeTSWh.js → Main-Bu-UNnSQ.js} +6 -6
  6. package/dist/{PermissionSetList-vA7XmeDX.js → PermissionSetList-IG15Aj5D.js} +124 -128
  7. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CrL1DmdL.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CDA9oDkd.js} +707 -707
  8. package/dist/RoleList-Cziztrpo.js +519 -0
  9. package/dist/TeamMemberList-DwxhZcrA.js +1081 -0
  10. package/dist/{TimesheetList-HsH2fi2o.js → TimesheetList-D_JT5iyS.js} +74 -74
  11. package/dist/{app-CvSQBSNk.js → app-h2mRYtCE.js} +4 -4
  12. package/dist/app.js +1 -1
  13. package/dist/{dayjs.min-Cje6yZS4.js → dayjs.min-QbzmY4D1.js} +1 -1
  14. package/dist/employee-CY4sYUu8.js +232 -0
  15. package/dist/{index-CUPMZ2Nm.js → index-BLm_-G4e.js} +104 -81
  16. package/dist/{index-J8WRP1Mb.js → index-CBgvOHm7.js} +1 -1
  17. package/dist/{iteration-tLtr3UA8.js → iteration-J_5O7DIo.js} +2 -2
  18. package/dist/{lodash-CrQQQutG.js → lodash-btS1GWf0.js} +1 -1
  19. package/dist/src/api/employee/index.d.ts +4 -3
  20. package/dist/src/api/team/index.d.ts +3 -1
  21. package/dist/src/components/table/TablePagination.vue.d.ts +14 -0
  22. package/dist/src/composables/useDebounce.d.ts +9 -0
  23. package/dist/src/stores/employee.d.ts +515 -6
  24. package/dist/src/stores/team.d.ts +6 -0
  25. package/dist/src/types/employee.d.ts +35 -1
  26. package/dist/src/types/team.d.ts +18 -2
  27. package/dist/src/views/hr/employee/EmployeeForm.vue.d.ts +6 -2
  28. package/dist/src/views/hr/employee/EmployeeList.vue.d.ts +3 -0
  29. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +9 -0
  30. package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +5 -5
  31. package/dist/style.css +1 -1
  32. package/dist/{timesheet-Cj5r4laf.js → timesheet-B4Vja79b.js} +3 -3
  33. package/dist/tsconfig.app.tsbuildinfo +1 -1
  34. package/dist/{useAppStore-BFge6TcH.js → useAppStore-CEidzV7L.js} +1 -1
  35. package/dist/useDebounce-Cnv3r01W.js +83 -0
  36. package/dist/{useLoading-D5jjAdvm.js → useLoading-fH82N_CS.js} +1 -1
  37. package/dist/{useReportPermissions-BeIK2wRH.js → useReportPermissions-BZS4zPhT.js} +3 -3
  38. package/package.json +1 -1
  39. package/dist/AuditLogList-DICsmRKu.js +0 -915
  40. package/dist/EmployeeList-BeTBQG6y.js +0 -621
  41. package/dist/RoleList-BwZRlJSm.js +0 -499
  42. package/dist/TeamMemberList-DqMVgyU0.js +0 -989
  43. package/dist/employee-Bvza5QKq.js +0 -145
  44. package/dist/team-eAkNf8XU.js +0 -33
@@ -1,9 +1,9 @@
1
- import { g as b, b as g, d as X, e as j, s as L, q as M } from "./iteration-tLtr3UA8.js";
2
- import { u as J, b as R, P as F, p as D, e as S, k as Q } from "./app-CvSQBSNk.js";
1
+ import { g as b, b as g, d as Q, e as j, s as L, q as M } from "./iteration-J_5O7DIo.js";
2
+ import { u as J, b as I, P as F, p as D, e as S, k as Z } from "./app-h2mRYtCE.js";
3
3
  import { defineStore as x, storeToRefs as k } from "pinia";
4
- import { ref as h, computed as N } from "vue";
5
- import { useCoreStore as q } from "@feedmepos/mf-common";
6
- const T = [
4
+ import { ref as y, computed as T } from "vue";
5
+ import { useCoreStore as W } from "@feedmepos/mf-common";
6
+ const U = [
7
7
  {
8
8
  label: "",
9
9
  subject: "order",
@@ -337,7 +337,7 @@ const T = [
337
337
  inverted: !1,
338
338
  reason: ""
339
339
  }
340
- ], A = "/permission-sets", I = {
340
+ ], A = "/permission-sets", O = {
341
341
  async read() {
342
342
  return b(await g().get(A));
343
343
  },
@@ -350,22 +350,22 @@ const T = [
350
350
  async delete(e) {
351
351
  return b(await g().delete(`${A}/${e}`));
352
352
  }
353
- }, Z = x("permissionSet", () => {
354
- const e = h([]);
353
+ }, G = x("permissionSet", () => {
354
+ const e = y([]);
355
355
  async function t() {
356
- const a = await I.read();
356
+ const a = await O.read();
357
357
  e.value = n(a);
358
358
  }
359
359
  async function s(a) {
360
- const i = await I.create(a);
360
+ const i = await O.create(a);
361
361
  e.value = n([...e.value, i]);
362
362
  }
363
363
  async function o(a, i) {
364
- const c = await I.update(a, i);
364
+ const c = await O.update(a, i);
365
365
  e.value = n(e.value.map((u) => u.id === a ? c : u));
366
366
  }
367
367
  async function r(a) {
368
- await I.delete(a), e.value = n(e.value.filter((i) => i.id !== a));
368
+ await O.delete(a), e.value = n(e.value.filter((i) => i.id !== a));
369
369
  }
370
370
  function n(a) {
371
371
  return a.sort((i, c) => i.name.localeCompare(c.name));
@@ -377,8 +377,8 @@ const T = [
377
377
  updatePermissionSet: o,
378
378
  deletePermissionSet: r
379
379
  };
380
- }), G = () => {
381
- const e = Z();
380
+ }), H = () => {
381
+ const e = G();
382
382
  return {
383
383
  ...e,
384
384
  ...k(e)
@@ -392,19 +392,19 @@ function je(e) {
392
392
  const t = Math.floor(e / 60), s = e % 60;
393
393
  return `${t}h ${s.toString().padStart(2, "0")}m`;
394
394
  }
395
- function H(e) {
395
+ function Y(e) {
396
396
  const t = e.replace(/([A-Z])/g, " $1");
397
397
  return t.charAt(0).toUpperCase() + t.slice(1);
398
398
  }
399
- function ye(e, t, s) {
399
+ function he(e, t, s) {
400
400
  if (e.some((a) => a.subject === "all")) return "All";
401
- const o = (s ?? T).filter(
401
+ const o = (s ?? U).filter(
402
402
  (a) => a.subject === t
403
- ), r = new Set(o.map((a) => E(a).value)), n = e.filter((a) => a.subject === t).filter((a) => r.has(E(a).value));
403
+ ), r = new Set(o.map((a) => N(a).value)), n = e.filter((a) => a.subject === t).filter((a) => r.has(N(a).value));
404
404
  return n.length === o.length ? "All" : n.length === 0 ? "-" : `${n.length} permission allow`;
405
405
  }
406
- function E(e) {
407
- const t = X(e), s = t.subject;
406
+ function N(e) {
407
+ const t = Q(e), s = t.subject;
408
408
  return {
409
409
  ...t,
410
410
  get conditions() {
@@ -425,18 +425,18 @@ function E(e) {
425
425
  return this.isOrderOperation ? o(this.conditions.operation) : this.isReportPermission ? o(this.conditions.name) : s.toString();
426
426
  },
427
427
  get label() {
428
- return t.label || H(this.formatted);
428
+ return t.label || Y(this.formatted);
429
429
  },
430
430
  get value() {
431
431
  return this.isOrderOperation ? `${s}:${this.conditions.operation}` : this.isReportPermission ? `${s}:${this.conditions.name}` : s.toString();
432
432
  }
433
433
  };
434
434
  }
435
- function he(e) {
436
- const t = e.map((s) => E(s)).find((s) => s.isDiscountOperation);
435
+ function ye(e) {
436
+ const t = e.map((s) => N(s)).find((s) => s.isDiscountOperation);
437
437
  return t ? parseInt((t.conditions.adjustment.$lte * 100).toFixed(0)) : 100;
438
438
  }
439
- function Y(e) {
439
+ function q(e) {
440
440
  const t = e.find(
441
441
  (s) => s.subject === J.Subject.Restaurant.restaurant
442
442
  );
@@ -465,7 +465,7 @@ function $e(e, t) {
465
465
  function ee(e) {
466
466
  const [t, s] = e.split(":");
467
467
  let o;
468
- return s ? (o = T.find(
468
+ return s ? (o = U.find(
469
469
  (r) => r.subject === t && [
470
470
  (typeof r.conditions == "object" ? r.conditions : JSON.parse(r.conditions)).operation,
471
471
  r.conditions.name
@@ -477,9 +477,9 @@ function ee(e) {
477
477
  conditions: { name: s },
478
478
  inverted: !1,
479
479
  reason: ""
480
- })) : o = T.find((r) => r.subject === t), E(o || { subject: j.F_RULE_SUBJECT.enum.order, actions: [], label: "" });
480
+ })) : o = U.find((r) => r.subject === t), N(o || { subject: j.F_RULE_SUBJECT.enum.order, actions: [], label: "" });
481
481
  }
482
- function ne(e, t = []) {
482
+ function te(e, t = []) {
483
483
  return L(
484
484
  e.reduce((s, o) => {
485
485
  const r = me.find((n) => n.subject === o.subject) || t.find((n) => n.subject === o.subject);
@@ -491,7 +491,7 @@ function ne(e, t = []) {
491
491
  }, [])
492
492
  );
493
493
  }
494
- function W(e) {
494
+ function z(e) {
495
495
  const t = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), o = (r, n, a) => {
496
496
  var i, c;
497
497
  const u = `${n.subject}::${JSON.stringify([...n.actions].sort())}`, l = r.get(u);
@@ -514,22 +514,22 @@ function W(e) {
514
514
  function C(e, t) {
515
515
  return `${e}::${[...t].sort().join(",")}`;
516
516
  }
517
- function z(e, t) {
517
+ function V(e, t) {
518
518
  const s = [...e], o = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
519
519
  for (const i of e) {
520
- const c = R(i.subject);
520
+ const c = I(i.subject);
521
521
  o.add(C(c, i.actions)), i.inverted && i.actions.includes("manage") && r.add(`set_${c}`), !i.inverted && i.actions.includes("manage") && n.add(c);
522
522
  }
523
523
  const a = [...e];
524
524
  for (; a.length > 0; ) {
525
- const i = a.shift(), c = `set_${R(i.subject)}`, u = t[c];
525
+ const i = a.shift(), c = `set_${I(i.subject)}`, u = t[c];
526
526
  if (!u || r.has(c) || !i.actions.includes("manage") || i.inverted) continue;
527
527
  r.add(c);
528
- const l = te(i);
528
+ const l = ne(i);
529
529
  i.source && !i.source.trace && (i.source = { ...i.source, trace: l });
530
530
  const d = [...l, `${u.name} (system)`];
531
531
  for (const p of u.permissions ?? []) {
532
- const m = R(p.subject), f = C(m, p.actions);
532
+ const m = I(p.subject), f = C(m, p.actions);
533
533
  o.has(f) || n.has(m) || (o.add(f), s.push({
534
534
  ...p,
535
535
  // FdoPermissionRule.fields is string[] | null; RawRule expects string[] | undefined
@@ -543,7 +543,7 @@ function z(e, t) {
543
543
  }));
544
544
  }
545
545
  for (const p of u.permissionSets ?? []) {
546
- const m = R(p), f = C(m, ["manage"]), v = {
546
+ const m = I(p), f = C(m, ["manage"]), v = {
547
547
  subject: m,
548
548
  actions: ["manage"],
549
549
  source: {
@@ -558,7 +558,7 @@ function z(e, t) {
558
558
  }
559
559
  return [...s.filter((i) => !i.inverted), ...s.filter((i) => i.inverted)];
560
560
  }
561
- function te(e) {
561
+ function ne(e) {
562
562
  if (!e.source) return [];
563
563
  const { type: t, trace: s, permissionSetName: o } = e.source;
564
564
  if (s && s.length > 0) return s;
@@ -571,24 +571,24 @@ function te(e) {
571
571
  return [];
572
572
  }
573
573
  }
574
- function V(e, t, s = /* @__PURE__ */ new Set()) {
574
+ function K(e, t, s = /* @__PURE__ */ new Set()) {
575
575
  var r;
576
576
  const o = [];
577
577
  for (const n of e) {
578
578
  if (s.has(n)) continue;
579
579
  s.add(n);
580
580
  const a = t.find((i) => i.id === n);
581
- a && (o.push(a), (r = a.permissionSetIds) != null && r.length && o.push(...V(a.permissionSetIds, t, s)));
581
+ a && (o.push(a), (r = a.permissionSetIds) != null && r.length && o.push(...K(a.permissionSetIds, t, s)));
582
582
  }
583
583
  return o;
584
584
  }
585
585
  function Re(e) {
586
- const t = W(e).map(
586
+ const t = z(e).map(
587
587
  ({ setNames: r, setId: n, ...a }) => a
588
588
  ), s = t.filter((r) => !r.inverted), o = t.filter((r) => r.inverted);
589
589
  return B(s, o);
590
590
  }
591
- function Ae(e, t, s) {
591
+ function Ie(e, t, s) {
592
592
  const o = /* @__PURE__ */ new Map();
593
593
  return e.forEach(
594
594
  ({ name: r, permissions: n }) => n.forEach(({ conditions: a, actions: i }) => {
@@ -605,7 +605,7 @@ function Ae(e, t, s) {
605
605
  setNames: [...n]
606
606
  }));
607
607
  }
608
- function Ie(e, t) {
608
+ function Ae(e, t) {
609
609
  const s = (i, c) => {
610
610
  const u = { ...i }, l = JSON.parse(u.conditions || "{}");
611
611
  if (c)
@@ -665,7 +665,7 @@ function Ie(e, t) {
665
665
  return n;
666
666
  }
667
667
  function Oe(e) {
668
- const t = z(
668
+ const t = V(
669
669
  e,
670
670
  F
671
671
  ), s = new Set(
@@ -765,24 +765,24 @@ function ae(e, t) {
765
765
  );
766
766
  return [...s, ...r];
767
767
  }
768
- const y = "/permission-assignments", P = {
768
+ const h = "/permission-assignments", P = {
769
769
  async readAll() {
770
- return b(await g().get(y));
770
+ return b(await g().get(h));
771
771
  },
772
772
  async readByUserId(e) {
773
- return b(await g().get(`${y}/user/${e}`));
773
+ return b(await g().get(`${h}/user/${e}`));
774
774
  },
775
775
  async readById(e) {
776
- return b(await g().get(`${y}/${e}`));
776
+ return b(await g().get(`${h}/${e}`));
777
777
  },
778
778
  async create(e) {
779
- return b(await g().post(y, e));
779
+ return b(await g().post(h, e));
780
780
  },
781
781
  async update(e, t) {
782
- return b(await g().put(`${y}/${e}`, t));
782
+ return b(await g().put(`${h}/${e}`, t));
783
783
  },
784
784
  async delete(e) {
785
- return b(await g().delete(`${y}/${e}`));
785
+ return b(await g().delete(`${h}/${e}`));
786
786
  },
787
787
  async addReportManagePermission(e, t) {
788
788
  return b(
@@ -790,7 +790,7 @@ const y = "/permission-assignments", P = {
790
790
  );
791
791
  }
792
792
  }, ce = x("permissionAssignment", () => {
793
- const e = h([]);
793
+ const e = y([]);
794
794
  async function t() {
795
795
  const i = await P.readAll();
796
796
  e.value = i;
@@ -840,27 +840,27 @@ const y = "/permission-assignments", P = {
840
840
  )
841
841
  );
842
842
  }
843
- }, O = h([]), _ = h(!1), w = h(!1), $ = h(null);
843
+ }, _ = y([]), E = y(!1), w = y(!1), $ = y(null);
844
844
  function de() {
845
- const e = q();
845
+ const e = W();
846
846
  async function t() {
847
847
  var r;
848
848
  const o = (r = e.currentBusiness.value) == null ? void 0 : r.id;
849
- if (o && ($.value !== o && (O.value = [], _.value = !1, w.value = !1, $.value = o), !(_.value || w.value))) {
849
+ if (o && ($.value !== o && (_.value = [], E.value = !1, w.value = !1, $.value = o), !(E.value || w.value))) {
850
850
  w.value = !0;
851
851
  try {
852
852
  const n = await le.fetchReportPermissionsForPortal(o);
853
853
  if ($.value !== o) return;
854
- O.value = n, _.value = !0;
854
+ _.value = n, E.value = !0;
855
855
  } catch (n) {
856
856
  if ($.value !== o) return;
857
- console.warn("Failed to fetch custom report permissions:", n), O.value = [];
857
+ console.warn("Failed to fetch custom report permissions:", n), _.value = [];
858
858
  } finally {
859
859
  $.value === o && (w.value = !1);
860
860
  }
861
861
  }
862
862
  }
863
- const s = N(() => O.value.map(
863
+ const s = T(() => _.value.map(
864
864
  (o) => o.isDefault ? {
865
865
  label: o.name,
866
866
  subject: `business::report::reports::${o.permissionKey}`,
@@ -882,23 +882,23 @@ function de() {
882
882
  return {
883
883
  fetchCustomReportPermissions: t,
884
884
  customReportPermissions: s,
885
- isLoading: N(() => w.value),
886
- isLoaded: N(() => _.value)
885
+ isLoading: T(() => w.value),
886
+ isLoaded: T(() => E.value)
887
887
  };
888
888
  }
889
- function U(e) {
890
- const t = q(), s = G(), o = ue(), r = t.restaurants, { customReportPermissions: n } = de(), a = o.getPermissionAssignmentByUserId(e.id), i = V(
889
+ function R(e) {
890
+ const t = W(), s = H(), o = ue(), r = t.restaurants, { customReportPermissions: n } = de(), a = o.getPermissionAssignmentByUserId(e.id), i = K(
891
891
  (a == null ? void 0 : a.permissionSetIds) ?? [],
892
892
  s.permissionSets.value
893
- ), c = W(i).map(
893
+ ), c = z(i).map(
894
894
  ({ setNames: f, ...v }) => v
895
895
  ), u = a == null ? void 0 : a.customPermissions, l = u ?? e.permissions.map((f) => ({
896
896
  ...f,
897
- subject: R(f.subject)
898
- })), d = B(c, l), p = z(
897
+ subject: I(f.subject)
898
+ })), d = B(c, l), p = V(
899
899
  ae(c, l),
900
900
  F
901
- ).filter((f) => !f.inverted), m = Y(p) || r.value.map((f) => f._id);
901
+ ).filter((f) => !f.inverted), m = q(p) || r.value.map((f) => f._id);
902
902
  return {
903
903
  doc: e,
904
904
  id: e.id,
@@ -909,30 +909,53 @@ function U(e) {
909
909
  m.map(
910
910
  (f) => {
911
911
  var v;
912
- return ((v = r.value.find((K) => K._id === f)) == null ? void 0 : v.profile.name) ?? "";
912
+ return ((v = r.value.find((X) => X._id === f)) == null ? void 0 : v.profile.name) ?? "";
913
913
  }
914
914
  )
915
915
  ),
916
916
  managableRestaurantIds: m,
917
- permissionLabels: ne(p, n.value),
917
+ permissionLabels: te(p, n.value),
918
918
  permissions: d
919
919
  };
920
920
  }
921
921
  const me = Object.freeze(
922
- Object.values(Q)
922
+ Object.values(Z)
923
923
  ), Ne = {
924
924
  async readTeamMembers() {
925
925
  return b(
926
926
  await g().get("/portal-users")
927
- ).map(U);
927
+ ).map(R);
928
+ },
929
+ async readTeamMembersPage(e) {
930
+ var s, o;
931
+ const t = b(
932
+ await g().get("/portal-users/paged", {
933
+ params: {
934
+ limit: e.limit,
935
+ offset: e.offset,
936
+ search: e.search,
937
+ restaurantIds: (s = e.restaurantIds) != null && s.length ? e.restaurantIds : void 0,
938
+ permissionSubjects: (o = e.permissionSubjects) != null && o.length ? e.permissionSubjects : void 0
939
+ }
940
+ })
941
+ );
942
+ return {
943
+ items: t.items.map(R),
944
+ total: t.total
945
+ };
946
+ },
947
+ async readTeamMember(e) {
948
+ return R(
949
+ b(await g().get(`/portal-users/${e}`))
950
+ );
928
951
  },
929
952
  async createTeamMember(e) {
930
- return U(
953
+ return R(
931
954
  b(await g().post("/portal-users", e))
932
955
  );
933
956
  },
934
957
  async updateTeamMember(e, t) {
935
- return U(
958
+ return R(
936
959
  b(await g().put(`/portal-users/${e}`, t))
937
960
  );
938
961
  },
@@ -944,15 +967,15 @@ const me = Object.freeze(
944
967
  }
945
968
  };
946
969
  export {
947
- z as $,
970
+ V as $,
948
971
  le as R,
949
- ye as a,
972
+ he as a,
950
973
  je as b,
951
- V as c,
974
+ K as c,
952
975
  ae as d,
953
- T as e,
976
+ U as e,
954
977
  $e as f,
955
- he as g,
978
+ ye as g,
956
979
  Pe as h,
957
980
  Se as i,
958
981
  de as j,
@@ -962,14 +985,14 @@ export {
962
985
  _e as n,
963
986
  Ee as o,
964
987
  me as p,
965
- Ie as q,
966
- E as r,
988
+ Ae as q,
989
+ N as r,
967
990
  Oe as s,
968
991
  Ne as t,
969
- G as u,
992
+ H as u,
970
993
  ue as v,
971
- ne as w,
972
- W as x,
973
- Ae as y,
974
- Y as z
994
+ te as w,
995
+ z as x,
996
+ Ie as y,
997
+ q as z
975
998
  };
@@ -2,7 +2,7 @@ var oe = Object.defineProperty;
2
2
  var se = (_, h, y) => h in _ ? oe(_, h, { enumerable: !0, configurable: !0, writable: !0, value: y }) : _[h] = y;
3
3
  var ot = (_, h, y) => se(_, typeof h != "symbol" ? h + "" : h, y);
4
4
  import { readonly as Nt, ref as Rt } from "vue";
5
- import { c as st } from "./app-CvSQBSNk.js";
5
+ import { c as st } from "./app-h2mRYtCE.js";
6
6
  var Pt = { exports: {} };
7
7
  (function(_, h) {
8
8
  (function(y, p) {
@@ -1,4 +1,4 @@
1
- import { c as U } from "./app-CvSQBSNk.js";
1
+ import { c as U } from "./app-h2mRYtCE.js";
2
2
  import { useCoreStore as To, baseClientInstance as jr, FeedMeAuth as Zs } from "@feedmepos/mf-common";
3
3
  var Ys = {}, _n = {}, _ = {}, zo = {}, $i = {}, eo = {}, ui = {};
4
4
  (function(e) {
@@ -9456,7 +9456,7 @@ const cc = (e) => (n) => {
9456
9456
  throw new Error("Invalid business");
9457
9457
  }, Bc = () => {
9458
9458
  var a;
9459
- const n = (a = To().currentCountry.value) == null ? void 0 : a.toLowerCase(), i = "feedmeapi.com", o = !n || n === "my" ? `https://query-engine.${i}` : `https://query-engine.${n}.${i}`;
9459
+ const n = (a = To().currentCountry.value) == null ? void 0 : a.toLowerCase(), i = "feedmeapidev.com", o = !n || n === "my" ? `https://query-engine.${i}` : `https://query-engine.${n}.${i}`;
9460
9460
  return cc(o)("");
9461
9461
  }, Nc = () => jr("user/bypass/validate/");
9462
9462
  function jc(e) {
@@ -1,4 +1,4 @@
1
- import { c as jt } from "./app-CvSQBSNk.js";
1
+ import { c as jt } from "./app-h2mRYtCE.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -1,14 +1,15 @@
1
1
  import { FdtoUpdatePosUserReq, FdtoUpdatePosMasterUserReq } from '@feedmepos/core/entity';
2
- import type { IFdtoPosUser } from '@/types/employee';
2
+ import type { Employee, IFdtoEmployeePage, IFdtoPosUser, IReadEmployeesPageReq } from '@/types/employee';
3
3
  declare const EmployeeAPI: {
4
4
  readEmployees(): Promise<IFdtoPosUser[]>;
5
+ readEmployeesPage(query: IReadEmployeesPageReq): Promise<IFdtoEmployeePage>;
5
6
  createEmployee(dto: FdtoUpdatePosUserReq): Promise<IFdtoPosUser[]>;
6
7
  createMasterEmployee(dto: FdtoUpdatePosMasterUserReq): Promise<IFdtoPosUser[]>;
7
8
  migrateToMasterEmployee(employeeId: string, dto: FdtoUpdatePosMasterUserReq): Promise<IFdtoPosUser[]>;
8
9
  updateEmployee(employeeId: string, dto: FdtoUpdatePosUserReq): Promise<IFdtoPosUser[]>;
9
10
  updateMasterEmployee(employeeId: string, dto: FdtoUpdatePosMasterUserReq): Promise<IFdtoPosUser[]>;
10
- deleteEmployee(employee: IFdtoPosUser): Promise<IFdtoPosUser[]>;
11
- deleteMasterEmployee(employee: IFdtoPosUser): Promise<IFdtoPosUser[]>;
11
+ deleteEmployee(employee: Employee): Promise<IFdtoPosUser[]>;
12
+ deleteMasterEmployee(employee: Employee): Promise<IFdtoPosUser[]>;
12
13
  generateEmployeePasscode(): Promise<string>;
13
14
  syncUsersMeta(): Promise<void>;
14
15
  };
@@ -1,8 +1,10 @@
1
1
  import { type IFdtoPortalPermissionsWithVisibilityCondition } from '@feedmepos/hrm-permission';
2
- import type { FTeamMember, IFdtoCreatePortalUserReq, IFdtoUpdatePortalUserReq } from '@/types/team';
2
+ import type { FTeamMember, IFdtoCreatePortalUserReq, IFdtoTeamMemberPage, IReadTeamMembersPageReq, IFdtoUpdatePortalUserReq } from '@/types/team';
3
3
  export declare const portalTeamPermissions: IFdtoPortalPermissionsWithVisibilityCondition[];
4
4
  export declare const teamApi: {
5
5
  readTeamMembers(): Promise<FTeamMember[]>;
6
+ readTeamMembersPage(query: IReadTeamMembersPageReq): Promise<IFdtoTeamMemberPage>;
7
+ readTeamMember(permissionUserId: string): Promise<FTeamMember>;
6
8
  createTeamMember(req: IFdtoCreatePortalUserReq): Promise<FTeamMember>;
7
9
  updateTeamMember(permissionUserId: string, req: IFdtoUpdatePortalUserReq): Promise<FTeamMember>;
8
10
  deleteTeamMember(permissionUserId: string): Promise<boolean>;
@@ -0,0 +1,14 @@
1
+ interface Props {
2
+ currentPage: number;
3
+ pageSize: number;
4
+ totalItems: number;
5
+ disabled?: boolean;
6
+ }
7
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
+ "update:currentPage": (value: number) => any;
9
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
10
+ "onUpdate:currentPage"?: ((value: number) => any) | undefined;
11
+ }>, {
12
+ disabled: boolean;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { type Ref } from 'vue';
2
+ /**
3
+ * Composable for debouncing watch callbacks
4
+ * @param source - The ref to watch
5
+ * @param callback - Function to call after debounce delay
6
+ * @param delay - Debounce delay in milliseconds (default: 300ms)
7
+ * @returns Stop function to stop the watcher
8
+ */
9
+ export declare function useDebouncedWatch<T>(source: Ref<T>, callback: (newVal: T) => void | Promise<void>, delay?: number): import("vue").WatchHandle;