@feedmepos/mf-hrm-portal 2.3.2-dev.6 → 2.3.2-dev.8
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-ix9OeJEQ.js → ApprovalCodeList-DIYhVMGW.js} +7 -7
- package/dist/{AuditLogList-D5H_O9Q0.js → AuditLogList-DIc3Jgpr.js} +795 -719
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CuELLYY4.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-4YsF7lXu.js} +2 -2
- package/dist/{EmployeeList-DICzZjVM.js → EmployeeList-iVg4pI9Y.js} +8 -8
- package/dist/{FormSection.vue_vue_type_script_setup_true_lang-BQzSWAqC.js → FormSection.vue_vue_type_script_setup_true_lang-C9AE0EHw.js} +1 -1
- package/dist/{GrantUserList-DoMN7Eks.js → GrantUserList-8zmzFk9z.js} +8 -8
- package/dist/{Main-DwYh9cxQ.js → Main-ClJox3pV.js} +10 -10
- package/dist/{Main-CHIExpOV.js → Main-DYzFd_qa.js} +5 -5
- package/dist/{Main-CQ42sYi9.js → Main-gRu17-N6.js} +1005 -999
- package/dist/{MyPosProfile-DaUdREQX.js → MyPosProfile-ARRrolbz.js} +1 -1
- package/dist/{PermissionSetList-B7WM9N-p.js → PermissionSetList-CL42jQY4.js} +13 -12
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BSVtyLlL.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DkA0XbZw.js} +804 -803
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-C7fnnbme.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CA87qQ4b.js} +1 -1
- package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-AbQIllkX.js → RoleForm.vue_vue_type_script_setup_true_lang-B3N3hTcU.js} +9 -9
- package/dist/{RoleList-vQsHxlNc.js → RoleList-F9ZORhgE.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-D52LhvGG.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-B9NMhw9Z.js} +1 -1
- package/dist/{ScheduleGeneralPage-BLqh7jH6.js → ScheduleGeneralPage-751cEUwS.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-C9doSgov.js → ScheduleModal.vue_vue_type_script_setup_true_lang-CBDNfiIM.js} +4 -4
- package/dist/{SchedulePage-YADV_6w9.js → SchedulePage-C-NcbGIl.js} +189 -201
- package/dist/{SchedulePositionPage-BowDQMG_.js → SchedulePositionPage-Ba0iiSRg.js} +3 -3
- package/dist/{SelectFilter-CBp1qxLd.js → SelectFilter-Dpsq165k.js} +1 -1
- package/dist/{TeamMemberList-BoJ87moU.js → TeamMemberList-DZ0aRbxg.js} +28 -27
- package/dist/TimesheetList-DO5T__dL.js +437 -0
- package/dist/{app-DOFDND9j.js → app-DXkKrcRn.js} +38 -10
- package/dist/app.js +1 -1
- package/dist/{approval-code-Dgj6S82q.js → approval-code-D2pGW-sI.js} +4 -4
- package/dist/{dayjs.min-AoirQCgL.js → dayjs.min-BAz84JAQ.js} +1 -1
- package/dist/employee-yYhuhc9L.js +172 -0
- package/dist/{grant-user-C-ptrq7l.js → grant-user-B95RDjkR.js} +2 -2
- package/dist/{iteration-DmuDXP8U.js → index-TrBkLxJe.js} +698 -726
- package/dist/iteration-CcXrOMQe.js +30 -0
- package/dist/{lodash-CBFO-xTu.js → lodash-DXRsZpTB.js} +1 -1
- package/dist/{member-grant-CHOB8eQ_.js → member-grant-ByAQ1Qja.js} +2 -2
- package/dist/{restaurant-DH2Fxzi7.js → restaurant-COSpCpTQ.js} +2 -2
- package/dist/{role-DUpHwRiY.js → role-ZmCd2yG4.js} +8 -7
- package/dist/{rule-aUPH1VOW.js → rule-Bty9eoI3.js} +38 -37
- package/dist/src/api/audit-log/index.d.ts +2 -0
- package/dist/src/api/employee/index.d.ts +1 -2
- package/dist/src/api/timesheet/index.d.ts +1 -1
- package/dist/src/stores/approval-code.d.ts +1 -1
- package/dist/src/stores/employee.d.ts +3 -9
- package/dist/src/stores/grant-user.d.ts +1 -1
- package/dist/src/stores/permission-assignment.d.ts +2 -2
- package/dist/src/stores/permission-set.d.ts +2 -2
- package/dist/src/stores/restaurant.d.ts +2 -2
- package/dist/src/stores/role.d.ts +2 -2
- package/dist/src/stores/team.d.ts +1 -1
- package/dist/src/stores/timesheet.d.ts +68 -53
- package/dist/src/types/timesheet.d.ts +3 -0
- package/dist/src/views/audit-log/locales/index.d.ts +28 -0
- package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +19 -0
- package/dist/style.css +1 -1
- package/dist/timesheet-CFD6XPiG.js +76 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DwmJbpf-.js → useAppStore-7O0GMkXY.js} +1 -1
- package/dist/{useLoading-Dmlm4oSU.js → useLoading-BZXydjer.js} +1 -1
- package/dist/useMessage-_ywT_N9X.js +17 -0
- package/dist/{useReportPermissions-XPn-p57R.js → useReportPermissions-Cn3ntCJ9.js} +3 -3
- package/package.json +3 -3
- package/dist/TimesheetList-BULw75oo.js +0 -401
- package/dist/TimesheetList.vue_vue_type_style_index_0_scoped_c98b0b84_lang-VlnjH9aQ.js +0 -58
- package/dist/employee-VB6YmuSS.js +0 -210
|
@@ -0,0 +1,30 @@
|
|
|
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,7 +1,7 @@
|
|
|
1
1
|
import { defineStore as m, storeToRefs as y } from "pinia";
|
|
2
2
|
import { ref as i, computed as R } from "vue";
|
|
3
3
|
import { useCoreStore as g } from "@feedmepos/mf-common";
|
|
4
|
-
import { b as f, g as w } from "./app-
|
|
4
|
+
import { b as f, g as w } from "./app-DXkKrcRn.js";
|
|
5
5
|
const I = {
|
|
6
6
|
async readRestaurants() {
|
|
7
7
|
return w(await f().get("/hr-restaurants"));
|
|
@@ -12,7 +12,7 @@ const I = {
|
|
|
12
12
|
{ operatingHours: a }
|
|
13
13
|
);
|
|
14
14
|
}
|
|
15
|
-
}, h = m("restaurant", () => {
|
|
15
|
+
}, h = m("hrm-restaurant", () => {
|
|
16
16
|
const { currentBusiness: e } = g(), a = i([]), v = R(() => new Map(a.value.map((r) => [r._id, r]))), o = i(!1), u = i(null);
|
|
17
17
|
let t = null, s = null;
|
|
18
18
|
async function p(r = !1) {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { defineStore as B, storeToRefs as b } from "pinia";
|
|
2
2
|
import { ref as v } from "vue";
|
|
3
3
|
import { useCoreStore as x } from "@feedmepos/mf-common";
|
|
4
|
-
import
|
|
5
|
-
import { g as d, b as f } from "./app-
|
|
6
|
-
import {
|
|
4
|
+
import "./index-TrBkLxJe.js";
|
|
5
|
+
import { g as d, b as f } from "./app-DXkKrcRn.js";
|
|
6
|
+
import { s as y } from "./iteration-CcXrOMQe.js";
|
|
7
|
+
import { u as g } from "./restaurant-COSpCpTQ.js";
|
|
7
8
|
const p = {
|
|
8
9
|
async readRoles() {
|
|
9
10
|
return d(await f().get("/pos-roles"));
|
|
@@ -41,7 +42,7 @@ async function m(t) {
|
|
|
41
42
|
e.restaurants = y(e.restaurants, { selector: "name" });
|
|
42
43
|
return y(l, { selector: "name" });
|
|
43
44
|
}
|
|
44
|
-
const
|
|
45
|
+
const h = B("hrm-role", () => {
|
|
45
46
|
const { currentBusiness: t } = x(), i = g(), s = v([]), l = v(!1), n = v(null);
|
|
46
47
|
let e = null, r = null;
|
|
47
48
|
async function c(o = !1) {
|
|
@@ -85,13 +86,13 @@ const A = B("role", () => {
|
|
|
85
86
|
updateRole: I,
|
|
86
87
|
deleteRole: S
|
|
87
88
|
};
|
|
88
|
-
}),
|
|
89
|
-
const t =
|
|
89
|
+
}), P = () => {
|
|
90
|
+
const t = h();
|
|
90
91
|
return {
|
|
91
92
|
...t,
|
|
92
93
|
...b(t)
|
|
93
94
|
};
|
|
94
95
|
};
|
|
95
96
|
export {
|
|
96
|
-
|
|
97
|
+
P as u
|
|
97
98
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { y as N, m as h, k as
|
|
1
|
+
import { e as j } from "./index-TrBkLxJe.js";
|
|
2
|
+
import { y as N, m as h, k as W, z as ne, P as z, g, b, B as L, v as x, C as y, s as F } from "./app-DXkKrcRn.js";
|
|
3
|
+
import { s as K, c as re } from "./iteration-CcXrOMQe.js";
|
|
3
4
|
import { s as ie } from "./utils-BZkjJbju.js";
|
|
4
5
|
import { defineStore as V, storeToRefs as H } from "pinia";
|
|
5
6
|
import { ref as v, computed as E } from "vue";
|
|
6
7
|
import { useCoreStore as Q } from "@feedmepos/mf-common";
|
|
7
|
-
import { u as oe } from "./restaurant-
|
|
8
|
+
import { u as oe } from "./restaurant-COSpCpTQ.js";
|
|
8
9
|
function k(e) {
|
|
9
10
|
if (e) {
|
|
10
11
|
if (typeof e == "string") {
|
|
@@ -118,14 +119,14 @@ function Y(e, t) {
|
|
|
118
119
|
function ue(e) {
|
|
119
120
|
return Array.isArray(e) ? e[0] : e;
|
|
120
121
|
}
|
|
121
|
-
function
|
|
122
|
+
function Te(e, t) {
|
|
122
123
|
const i = t.find((r) => Y(r.subject, e));
|
|
123
124
|
if (!(i != null && i.category) || i.isCategoryCover) return;
|
|
124
125
|
const n = t.find((r) => r.category === i.category && r.isCategoryCover);
|
|
125
126
|
if (n)
|
|
126
127
|
return ue(n.subject);
|
|
127
128
|
}
|
|
128
|
-
function
|
|
129
|
+
function Le(e, t) {
|
|
129
130
|
const i = t.find((n) => Y(n.subject, e));
|
|
130
131
|
return !!(i != null && i.isCategoryCover);
|
|
131
132
|
}
|
|
@@ -215,7 +216,7 @@ function le(e, t) {
|
|
|
215
216
|
function de(e) {
|
|
216
217
|
const t = X(
|
|
217
218
|
e,
|
|
218
|
-
|
|
219
|
+
z
|
|
219
220
|
), i = new Set(
|
|
220
221
|
t.filter((r) => {
|
|
221
222
|
var s;
|
|
@@ -348,7 +349,7 @@ function ye(e, t) {
|
|
|
348
349
|
conditions: JSON.stringify({ roleId: { $in: t } })
|
|
349
350
|
}), i;
|
|
350
351
|
}
|
|
351
|
-
function
|
|
352
|
+
function xe(e, t, { restaurantRoles: i, allRoleIds: n }) {
|
|
352
353
|
let r = q(
|
|
353
354
|
e.filter(
|
|
354
355
|
(s) => s.subject !== h.Subject.Business.restaurant && s.subject !== h.Subject.Restaurant.restaurant
|
|
@@ -359,7 +360,7 @@ function Le(e, t, { restaurantRoles: i, allRoleIds: n }) {
|
|
|
359
360
|
category: s,
|
|
360
361
|
showByFeatureFlag: o,
|
|
361
362
|
...a
|
|
362
|
-
} =
|
|
363
|
+
} = W.restaurant;
|
|
363
364
|
r.push(a);
|
|
364
365
|
const c = {
|
|
365
366
|
actions: [h.Action.manage],
|
|
@@ -378,14 +379,14 @@ function Le(e, t, { restaurantRoles: i, allRoleIds: n }) {
|
|
|
378
379
|
}
|
|
379
380
|
return r;
|
|
380
381
|
}
|
|
381
|
-
function
|
|
382
|
+
function ke(e) {
|
|
382
383
|
let t = e.userPermissions;
|
|
383
384
|
return e.reportSubjects && (t = fe(t, e.reportSubjects)), e.defaultReportSubjects && (t = ve(t, e.defaultReportSubjects)), {
|
|
384
385
|
customPermissions: le(
|
|
385
386
|
ce(e.inheritedPermissions),
|
|
386
387
|
de(t)
|
|
387
388
|
),
|
|
388
|
-
permissions: t.filter((i) => !i.inverted).map((i) => ({ ...i, subject:
|
|
389
|
+
permissions: t.filter((i) => !i.inverted).map((i) => ({ ...i, subject: ne(i.subject) }))
|
|
389
390
|
};
|
|
390
391
|
}
|
|
391
392
|
const _ = "/permission-sets", J = {
|
|
@@ -401,7 +402,7 @@ const _ = "/permission-sets", J = {
|
|
|
401
402
|
async delete(e) {
|
|
402
403
|
return g(await b().delete(`${_}/${e}`));
|
|
403
404
|
}
|
|
404
|
-
}, je = V("
|
|
405
|
+
}, je = V("hrm-permission-set", () => {
|
|
405
406
|
const { currentBusiness: e } = Q(), t = v([]), i = v(!1), n = v(null);
|
|
406
407
|
async function r() {
|
|
407
408
|
var l;
|
|
@@ -467,7 +468,7 @@ const _ = "/permission-sets", J = {
|
|
|
467
468
|
await b().post("/my-permissions/report-manage", { permissionKey: e, label: t })
|
|
468
469
|
);
|
|
469
470
|
}
|
|
470
|
-
}, Pe = V("
|
|
471
|
+
}, Pe = V("hrm-permission-assignment", () => {
|
|
471
472
|
const e = v([]);
|
|
472
473
|
async function t() {
|
|
473
474
|
const a = await I.readAll();
|
|
@@ -581,7 +582,7 @@ function A(e) {
|
|
|
581
582
|
subject: N(p.subject)
|
|
582
583
|
})), l = T(a, u), m = X(
|
|
583
584
|
Se(a, u),
|
|
584
|
-
|
|
585
|
+
z
|
|
585
586
|
).filter((p) => !p.inverted), d = ee(m), f = d ?? n.value.map((p) => p._id);
|
|
586
587
|
return {
|
|
587
588
|
doc: e,
|
|
@@ -590,7 +591,7 @@ function A(e) {
|
|
|
590
591
|
name: e.status === "invited" ? e.name || "-" : e.name && e.name !== e.email && e.name !== e.phoneNumber ? e.name : "-",
|
|
591
592
|
phoneNumber: e.phoneNumber,
|
|
592
593
|
email: e.email,
|
|
593
|
-
restaurants:
|
|
594
|
+
restaurants: K(
|
|
594
595
|
f.map((p) => {
|
|
595
596
|
var S;
|
|
596
597
|
return ((S = n.value.find((se) => se._id === p)) == null ? void 0 : S.profile.name) ?? "";
|
|
@@ -604,8 +605,8 @@ function A(e) {
|
|
|
604
605
|
};
|
|
605
606
|
}
|
|
606
607
|
const Oe = Object.freeze(
|
|
607
|
-
Object.values(
|
|
608
|
-
),
|
|
608
|
+
Object.values(W)
|
|
609
|
+
), De = {
|
|
609
610
|
async readTeamMembers() {
|
|
610
611
|
return g(
|
|
611
612
|
await b().get("/portal-users")
|
|
@@ -662,7 +663,7 @@ const Oe = Object.freeze(
|
|
|
662
663
|
)}`;
|
|
663
664
|
}
|
|
664
665
|
};
|
|
665
|
-
function
|
|
666
|
+
function We(e, t, i) {
|
|
666
667
|
if (e.some((o) => o.subject === "all")) return "All";
|
|
667
668
|
const n = (i ?? F).filter(
|
|
668
669
|
(o) => o.subject === t
|
|
@@ -670,7 +671,7 @@ function De(e, t, i) {
|
|
|
670
671
|
return s.length === n.length ? "All" : s.length === 0 ? "-" : `${s.length} permission allow`;
|
|
671
672
|
}
|
|
672
673
|
function $(e) {
|
|
673
|
-
const t =
|
|
674
|
+
const t = re(e), i = t.subject;
|
|
674
675
|
return {
|
|
675
676
|
...t,
|
|
676
677
|
get conditions() {
|
|
@@ -725,26 +726,26 @@ function $(e) {
|
|
|
725
726
|
}
|
|
726
727
|
};
|
|
727
728
|
}
|
|
728
|
-
function
|
|
729
|
+
function ze(e) {
|
|
729
730
|
var n, r;
|
|
730
731
|
const t = e.map((s) => $(s)).find((s) => s.isDiscountOperation);
|
|
731
732
|
if (!t) return 100;
|
|
732
733
|
const i = Number((r = (n = t.conditions) == null ? void 0 : n.adjustment) == null ? void 0 : r.$lte);
|
|
733
734
|
return Number.isFinite(i) ? parseInt((i * 100).toFixed(0)) : 0;
|
|
734
735
|
}
|
|
735
|
-
function
|
|
736
|
+
function Ke(e, t) {
|
|
736
737
|
return t.isOwner ? { restaurantIds: null, roleIds: null } : { restaurantIds: ee(e), roleIds: te(e) };
|
|
737
738
|
}
|
|
738
|
-
function
|
|
739
|
+
function Ve(e) {
|
|
739
740
|
return (e == null ? void 0 : e.some((t) => t.subject === "all")) ?? !1;
|
|
740
741
|
}
|
|
741
|
-
function
|
|
742
|
+
function He(e) {
|
|
742
743
|
const t = $(e);
|
|
743
744
|
if (!t.isReportPermission) return;
|
|
744
745
|
const { name: i, ...n } = t.conditions ?? {};
|
|
745
746
|
return Object.keys(n).length > 0 ? n : void 0;
|
|
746
747
|
}
|
|
747
|
-
function
|
|
748
|
+
function Qe(e, t, i) {
|
|
748
749
|
return e.flatMap((n) => {
|
|
749
750
|
const r = Ae(n);
|
|
750
751
|
if (!r) return [];
|
|
@@ -779,7 +780,7 @@ function Ae(e) {
|
|
|
779
780
|
reason: ""
|
|
780
781
|
})) : r = F.find((s) => s.subject === i), r ? $(r) : void 0;
|
|
781
782
|
}
|
|
782
|
-
function
|
|
783
|
+
function Ge(e, t) {
|
|
783
784
|
const i = { values: [], passthrough: [], dropped: [] };
|
|
784
785
|
for (const n of e) {
|
|
785
786
|
const r = n == null ? void 0 : n.actions;
|
|
@@ -793,7 +794,7 @@ function Qe(e, t) {
|
|
|
793
794
|
return i;
|
|
794
795
|
}
|
|
795
796
|
function Ne(e, t = []) {
|
|
796
|
-
return
|
|
797
|
+
return K(
|
|
797
798
|
e.reduce((i, n) => {
|
|
798
799
|
const r = Oe.find(
|
|
799
800
|
(s) => s.subject === n.subject && n.actions.includes("manage")
|
|
@@ -807,35 +808,35 @@ function Ne(e, t = []) {
|
|
|
807
808
|
);
|
|
808
809
|
}
|
|
809
810
|
export {
|
|
810
|
-
|
|
811
|
+
xe as D,
|
|
811
812
|
me as E,
|
|
812
813
|
ve as F,
|
|
813
814
|
ee as H,
|
|
814
815
|
de as I,
|
|
815
|
-
|
|
816
|
+
Te as K,
|
|
816
817
|
te as L,
|
|
817
818
|
le as N,
|
|
818
819
|
ce as P,
|
|
819
820
|
Ie as R,
|
|
820
821
|
fe as T,
|
|
821
|
-
|
|
822
|
-
|
|
822
|
+
ke as U,
|
|
823
|
+
Le as V,
|
|
823
824
|
Re as a,
|
|
824
|
-
|
|
825
|
+
Ke as b,
|
|
825
826
|
$e as c,
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
827
|
+
Qe as d,
|
|
828
|
+
He as e,
|
|
829
|
+
We as f,
|
|
830
|
+
ze as g,
|
|
831
|
+
Ve as h,
|
|
831
832
|
X as i,
|
|
832
833
|
G as j,
|
|
833
834
|
Ne as m,
|
|
834
835
|
Oe as p,
|
|
835
836
|
Se as q,
|
|
836
837
|
$ as r,
|
|
837
|
-
|
|
838
|
-
|
|
838
|
+
Ge as s,
|
|
839
|
+
De as t,
|
|
839
840
|
we as u,
|
|
840
841
|
ye as x,
|
|
841
842
|
Z as y
|
|
@@ -14,6 +14,7 @@ declare const AuditLogAPI: {
|
|
|
14
14
|
searchSubjects?: string[];
|
|
15
15
|
sources?: string[];
|
|
16
16
|
restaurantIds?: string[];
|
|
17
|
+
traceId?: string;
|
|
17
18
|
}): Promise<number>;
|
|
18
19
|
read(params?: {
|
|
19
20
|
limit?: number;
|
|
@@ -31,6 +32,7 @@ declare const AuditLogAPI: {
|
|
|
31
32
|
searchSubjects?: string[];
|
|
32
33
|
sources?: string[];
|
|
33
34
|
restaurantIds?: string[];
|
|
35
|
+
traceId?: string;
|
|
34
36
|
}): Promise<AuditLogEntry[]>;
|
|
35
37
|
/**
|
|
36
38
|
* FeedMe-admin options for the User filter. `actors` is the named admin list (internal
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { FdtoUpdatePosUserReq, FdtoUpdatePosMasterUserReq } from '@feedmepos/core/entity';
|
|
2
|
-
import type { Employee, IFdtoEmployeePage,
|
|
2
|
+
import type { Employee, IFdtoEmployeePage, IReadEmployeesPageReq } from '@/types/employee';
|
|
3
3
|
export interface IGeneratePasscodeParams {
|
|
4
4
|
restaurantIds: string[];
|
|
5
5
|
excludePosUserId?: string;
|
|
6
6
|
}
|
|
7
7
|
declare const EmployeeAPI: {
|
|
8
|
-
readEmployees(): Promise<IFdtoPosUser[]>;
|
|
9
8
|
readEmployeesPage(query: IReadEmployeesPageReq): Promise<IFdtoEmployeePage>;
|
|
10
9
|
createEmployee(dto: FdtoUpdatePosUserReq): Promise<string>;
|
|
11
10
|
createMasterEmployee(dto: FdtoUpdatePosMasterUserReq): Promise<string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IFdtoTimesheet, UpdateTimesheetDTO } from '@/types/timesheet';
|
|
2
2
|
declare const TimesheetAPI: {
|
|
3
|
-
readTimesheets(startIso: string, endIso: string): Promise<IFdtoTimesheet[]>;
|
|
3
|
+
readTimesheets(startIso: string, endIso: string, restaurantIds?: string[]): Promise<IFdtoTimesheet[]>;
|
|
4
4
|
updateTimesheet(restaurantId: string, dto: UpdateTimesheetDTO): Promise<void>;
|
|
5
5
|
};
|
|
6
6
|
export default TimesheetAPI;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IFdtoApprovalCode, IFdtoCreateApprovalCodeReq } from '@/types/approval-code';
|
|
2
|
-
export declare const useApprovalCodeStore: import("pinia").StoreDefinition<"
|
|
2
|
+
export declare const useApprovalCodeStore: import("pinia").StoreDefinition<"hrm-approval-code", Pick<{
|
|
3
3
|
approvalCodes: import("vue").Ref<{
|
|
4
4
|
_id: string;
|
|
5
5
|
businessId: string;
|
|
@@ -374,7 +374,6 @@ export declare const useEmployeeStore: () => {
|
|
|
374
374
|
})[]>;
|
|
375
375
|
totalEmployees: import("vue").Ref<number, number>;
|
|
376
376
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
377
|
-
readEmployees: () => Promise<void>;
|
|
378
377
|
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
379
378
|
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
380
379
|
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<string>;
|
|
@@ -692,7 +691,6 @@ export declare const useEmployeeStore: () => {
|
|
|
692
691
|
})[]>;
|
|
693
692
|
totalEmployees: import("vue").Ref<number, number>;
|
|
694
693
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
695
|
-
readEmployees: () => Promise<void>;
|
|
696
694
|
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
697
695
|
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
698
696
|
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<string>;
|
|
@@ -706,7 +704,7 @@ export declare const useEmployeeStore: () => {
|
|
|
706
704
|
}, "isLoading" | "employees" | "listEmployees" | "totalEmployees">>, options?: {
|
|
707
705
|
detached?: boolean;
|
|
708
706
|
} & import("vue").WatchOptions): () => void;
|
|
709
|
-
$onAction(callback: import("pinia").StoreOnActionListener<"employee", Pick<{
|
|
707
|
+
$onAction(callback: import("pinia").StoreOnActionListener<"hrm-employee", Pick<{
|
|
710
708
|
employees: import("vue").Ref<({
|
|
711
709
|
faceId?: unknown;
|
|
712
710
|
name: string;
|
|
@@ -855,7 +853,6 @@ export declare const useEmployeeStore: () => {
|
|
|
855
853
|
})[]>;
|
|
856
854
|
totalEmployees: import("vue").Ref<number, number>;
|
|
857
855
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
858
|
-
readEmployees: () => Promise<void>;
|
|
859
856
|
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
860
857
|
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
861
858
|
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<string>;
|
|
@@ -1015,7 +1012,6 @@ export declare const useEmployeeStore: () => {
|
|
|
1015
1012
|
})[]>;
|
|
1016
1013
|
totalEmployees: import("vue").Ref<number, number>;
|
|
1017
1014
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
1018
|
-
readEmployees: () => Promise<void>;
|
|
1019
1015
|
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
1020
1016
|
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
1021
1017
|
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<string>;
|
|
@@ -1175,7 +1171,6 @@ export declare const useEmployeeStore: () => {
|
|
|
1175
1171
|
})[]>;
|
|
1176
1172
|
totalEmployees: import("vue").Ref<number, number>;
|
|
1177
1173
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
1178
|
-
readEmployees: () => Promise<void>;
|
|
1179
1174
|
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
1180
1175
|
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
1181
1176
|
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<string>;
|
|
@@ -1186,11 +1181,10 @@ export declare const useEmployeeStore: () => {
|
|
|
1186
1181
|
deleteMasterEmployee: (employee: Employee) => Promise<void>;
|
|
1187
1182
|
migrateToMasterUser: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
1188
1183
|
syncUsersMeta: () => Promise<void>;
|
|
1189
|
-
}, "
|
|
1184
|
+
}, "readEmployeesPage" | "readAllEmployeesPage" | "createEmployee" | "updateEmployee" | "deleteEmployee" | "createMasterEmployee" | "updateMasterEmployee" | "deleteMasterEmployee" | "migrateToMasterUser" | "syncUsersMeta">>, detached?: boolean): () => void;
|
|
1190
1185
|
$dispose(): void;
|
|
1191
|
-
$id: "employee";
|
|
1186
|
+
$id: "hrm-employee";
|
|
1192
1187
|
_customProperties: Set<string>;
|
|
1193
|
-
readEmployees: () => Promise<void>;
|
|
1194
1188
|
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
1195
1189
|
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
1196
1190
|
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IFdtoGrantUser, IFdtoCreateGrantUserReq } from '@/types/grant-user';
|
|
2
|
-
export declare const useGrantUserStore: import("pinia").StoreDefinition<"
|
|
2
|
+
export declare const useGrantUserStore: import("pinia").StoreDefinition<"hrm-grant-user", Pick<{
|
|
3
3
|
grantUsers: import("vue").Ref<{
|
|
4
4
|
_id: string;
|
|
5
5
|
passcode: string;
|
|
@@ -156,7 +156,7 @@ export declare const usePermissionAssignmentStore: () => {
|
|
|
156
156
|
}, "permissionAssignments">>, options?: {
|
|
157
157
|
detached?: boolean;
|
|
158
158
|
} & import("vue").WatchOptions): () => void;
|
|
159
|
-
$onAction(callback: import("pinia").StoreOnActionListener<"
|
|
159
|
+
$onAction(callback: import("pinia").StoreOnActionListener<"hrm-permission-assignment", Pick<{
|
|
160
160
|
permissionAssignments: import("vue").Ref<{
|
|
161
161
|
id: string;
|
|
162
162
|
customPermissions: {
|
|
@@ -266,7 +266,7 @@ export declare const usePermissionAssignmentStore: () => {
|
|
|
266
266
|
getPermissionAssignmentByUserId: (userId: string) => IFdtoPermissionAssignment | undefined;
|
|
267
267
|
}, "readPermissionAssignments" | "readPermissionAssignmentByUserId" | "createPermissionAssignment" | "updatePermissionAssignment" | "deletePermissionAssignment" | "getPermissionAssignmentByUserId">>, detached?: boolean): () => void;
|
|
268
268
|
$dispose(): void;
|
|
269
|
-
$id: "
|
|
269
|
+
$id: "hrm-permission-assignment";
|
|
270
270
|
_customProperties: Set<string>;
|
|
271
271
|
readPermissionAssignments: () => Promise<void>;
|
|
272
272
|
readPermissionAssignmentByUserId: (userId: string) => Promise<IFdtoPermissionAssignment | null>;
|
|
@@ -158,7 +158,7 @@ export declare const usePermissionSetStore: () => {
|
|
|
158
158
|
}, "isLoading" | "permissionSets">>, options?: {
|
|
159
159
|
detached?: boolean;
|
|
160
160
|
} & import("vue").WatchOptions): () => void;
|
|
161
|
-
$onAction(callback: import("pinia").StoreOnActionListener<"
|
|
161
|
+
$onAction(callback: import("pinia").StoreOnActionListener<"hrm-permission-set", Pick<{
|
|
162
162
|
permissionSets: import("vue").Ref<{
|
|
163
163
|
id: string;
|
|
164
164
|
permissions: {
|
|
@@ -265,7 +265,7 @@ export declare const usePermissionSetStore: () => {
|
|
|
265
265
|
deletePermissionSet: (id: string) => Promise<void>;
|
|
266
266
|
}, "readPermissionSets" | "createPermissionSet" | "updatePermissionSet" | "deletePermissionSet">>, detached?: boolean): () => void;
|
|
267
267
|
$dispose(): void;
|
|
268
|
-
$id: "
|
|
268
|
+
$id: "hrm-permission-set";
|
|
269
269
|
_customProperties: Set<string>;
|
|
270
270
|
readPermissionSets: () => Promise<void>;
|
|
271
271
|
createPermissionSet: (dto: IFdtoCreatePermissionSetReq) => Promise<void>;
|
|
@@ -137,7 +137,7 @@ export declare const useRestaurantStore: () => {
|
|
|
137
137
|
}, "isLoading" | "restaurants">>, options?: {
|
|
138
138
|
detached?: boolean;
|
|
139
139
|
} & import("vue").WatchOptions): () => void;
|
|
140
|
-
$onAction(callback: import("pinia").StoreOnActionListener<"restaurant", Pick<{
|
|
140
|
+
$onAction(callback: import("pinia").StoreOnActionListener<"hrm-restaurant", Pick<{
|
|
141
141
|
restaurants: import("vue").Ref<{
|
|
142
142
|
_id: string;
|
|
143
143
|
businessId: string;
|
|
@@ -235,7 +235,7 @@ export declare const useRestaurantStore: () => {
|
|
|
235
235
|
readRestaurants: (force?: boolean) => Promise<void>;
|
|
236
236
|
}, "readRestaurants">>, detached?: boolean): () => void;
|
|
237
237
|
$dispose(): void;
|
|
238
|
-
$id: "restaurant";
|
|
238
|
+
$id: "hrm-restaurant";
|
|
239
239
|
_customProperties: Set<string>;
|
|
240
240
|
readRestaurants: (force?: boolean) => Promise<void>;
|
|
241
241
|
};
|
|
@@ -122,7 +122,7 @@ export declare const useRoleStore: () => {
|
|
|
122
122
|
}, "isLoading" | "roles">>, options?: {
|
|
123
123
|
detached?: boolean;
|
|
124
124
|
} & import("vue").WatchOptions): () => void;
|
|
125
|
-
$onAction(callback: import("pinia").StoreOnActionListener<"role", Pick<{
|
|
125
|
+
$onAction(callback: import("pinia").StoreOnActionListener<"hrm-role", Pick<{
|
|
126
126
|
roles: import("vue").Ref<{
|
|
127
127
|
restaurants: {
|
|
128
128
|
id: string;
|
|
@@ -205,7 +205,7 @@ export declare const useRoleStore: () => {
|
|
|
205
205
|
deleteRole: (role: Role) => Promise<void>;
|
|
206
206
|
}, "readRoles" | "createRole" | "updateRole" | "deleteRole">>, detached?: boolean): () => void;
|
|
207
207
|
$dispose(): void;
|
|
208
|
-
$id: "role";
|
|
208
|
+
$id: "hrm-role";
|
|
209
209
|
_customProperties: Set<string>;
|
|
210
210
|
readRoles: (force?: boolean) => Promise<void>;
|
|
211
211
|
createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
|