@feedmepos/mf-hrm-portal 2.3.2-dev.9 → 2.3.2
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-gb0bre9J.js → ApprovalCodeList-C9r8CGNH.js} +15 -14
- package/dist/{AuditLogList-9cwS6bL7.js → AuditLogList-Cu-KcQKa.js} +152 -147
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BQ-uIsTN.js +438 -0
- package/dist/EmployeeList-BaFqZnFM.js +776 -0
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-Be1OU1_r.js +45 -0
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +49 -0
- package/dist/{GrantUserList-yU2NqFVO.js → GrantUserList-Bjhx60M7.js} +16 -15
- package/dist/Main-CJQpjOgY.js +96 -0
- package/dist/{Main-4KwMqF3h.js → Main-DHiTgiDR.js} +5 -5
- package/dist/{Main-BS_Lk_eB.js → Main-LpfQqR_u.js} +999 -1005
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +243 -0
- package/dist/{PermissionSetList-D7SS1iAr.js → PermissionSetList-C0OZ_dvE.js} +80 -80
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-T7dkd5Uv.js +4167 -0
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-EwU7gHP7.js +35 -0
- package/dist/RoleList-DpyW5XLs.js +740 -0
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang--dsZOhnv.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CqP-Dn1X.js} +1 -1
- package/dist/{ScheduleGeneralPage-Pq6ufiDu.js → ScheduleGeneralPage-BNHi5jGf.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-DKFJLsTW.js → ScheduleModal.vue_vue_type_script_setup_true_lang-B609MZoP.js} +186 -187
- package/dist/{SchedulePage-8EAOfiJx.js → SchedulePage-CrP5_m3p.js} +13 -13
- package/dist/{SchedulePositionPage-CGXeUnju.js → SchedulePositionPage-ei_NKAUw.js} +3 -3
- package/dist/{SelectFilter-C-UEVLla.js → SelectFilter-CEYQ-ViE.js} +1 -1
- package/dist/TeamMemberList-rPiKKu2b.js +1154 -0
- package/dist/TimesheetList-B1L4WkNh.js +402 -0
- package/dist/TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-By6YR-k2.js +58 -0
- package/dist/{app-BohKQtlz.js → app-BzlH-2cN.js} +4015 -7796
- package/dist/app.js +3 -3
- package/dist/{approval-code-Bfvxsg8h.js → approval-code-CWq2ce3u.js} +1 -1
- package/dist/{dayjs.min-C0MqTPg1.js → dayjs.min-D6T4JzVv.js} +21 -21
- package/dist/employee-Bw7kRokg.js +209 -0
- package/dist/{grant-user-LZ3b6siI.js → grant-user-q_mkj3Vh.js} +1 -1
- package/dist/{index-DDDG-LHm.js → iteration-Dz0e08VH.js} +726 -698
- package/dist/{lodash-BRqMda7F.js → lodash-DGG_-VgI.js} +1 -1
- package/dist/restaurant-DJBQY9N5.js +2688 -0
- package/dist/role-CiRbkZSm.js +92 -0
- package/dist/rule-DMgkHpva.js +783 -0
- package/dist/src/api/employee/index.d.ts +2 -1
- package/dist/src/api/timesheet/index.d.ts +1 -1
- package/dist/src/components/CollapsibleWrapper.vue.d.ts +3 -11
- package/dist/src/helpers/permission-set.d.ts +102 -1
- package/dist/src/helpers/rule.d.ts +2 -2
- package/dist/src/helpers/string.d.ts +1 -10
- package/dist/src/router/shared.d.ts +1 -3
- package/dist/src/stores/employee.d.ts +7 -1
- package/dist/src/stores/restaurant.d.ts +8 -68
- package/dist/src/stores/team.d.ts +0 -30
- package/dist/src/stores/timesheet.d.ts +51 -66
- package/dist/src/types/team.d.ts +1 -17
- package/dist/src/types/timesheet.d.ts +0 -3
- package/dist/src/views/audit-log/constants.d.ts +1 -1
- package/dist/src/views/audit-log/locales/index.d.ts +16 -12
- package/dist/src/views/hr/locales/index.d.ts +0 -20
- package/dist/src/views/hr/role/RoleForm.vue.d.ts +2 -29
- package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +1 -1
- package/dist/src/views/team/components/BasePermission.vue.d.ts +0 -11
- package/dist/src/views/team/components/ConditionPermission.vue.d.ts +0 -11
- package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +0 -21
- package/dist/src/views/team/components/PosRolePermission.vue.d.ts +0 -11
- package/dist/src/views/team/locales/index.d.ts +0 -716
- package/dist/src/views/team/member/AddMemberForm.vue.d.ts +3 -48
- package/dist/src/views/team/{components/MemberStatusBadge.vue.d.ts → member/MemberInfo.vue.d.ts} +2 -2
- package/dist/src/views/team/member/TeamMemberList.vue.d.ts +0 -1
- package/dist/string-VNuQNweN.js +15 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DV13z6oc.js → useAppStore-TRX-PQD4.js} +1 -1
- package/dist/{useLoading-Fcnnfywt.js → useLoading-W3YSF8OB.js} +1 -1
- package/dist/{useReportPermissions-BcyVoKVq.js → useReportPermissions-CCkCAaGO.js} +13 -13
- package/package.json +3 -3
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DR-c15gr.js +0 -459
- package/dist/EmployeeList-DjyoW1we.js +0 -896
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-BBWlADve.js +0 -90
- package/dist/Main-BuG7SPnC.js +0 -101
- package/dist/MyPosProfile-CuDzRaRS.js +0 -360
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +0 -126
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-u1UlV2Aw.js +0 -4208
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CYkv2x_y.js +0 -1831
- package/dist/RoleForm.vue_vue_type_script_setup_true_lang-hiMgwiya.js +0 -547
- package/dist/RoleList-B3P-LQYV.js +0 -265
- package/dist/TeamMemberList-Bd1O44Ur.js +0 -2087
- package/dist/TimesheetList-CSCmigCM.js +0 -437
- package/dist/employee-DWxT78W2.js +0 -172
- package/dist/iteration-CcXrOMQe.js +0 -30
- package/dist/member-grant-a3AGCWfT.js +0 -54
- package/dist/restaurant-pL7vHt-H.js +0 -52
- package/dist/role--EKCVqho.js +0 -98
- package/dist/rule-Db3gFVHx.js +0 -843
- package/dist/src/api/my-pos-profile/index.d.ts +0 -3
- package/dist/src/api/sso-provider/index.d.ts +0 -5
- package/dist/src/api/staff-invite/index.d.ts +0 -16
- package/dist/src/components/form/SegmentedTabs.vue.d.ts +0 -23
- package/dist/src/composables/useMenuAccess.d.ts +0 -56
- package/dist/src/composables/useSsoProviders.d.ts +0 -19
- package/dist/src/composables/useStaffInviteProviders.d.ts +0 -8
- package/dist/src/helpers/member-grant.d.ts +0 -36
- package/dist/src/helpers/my-pos-profile.d.ts +0 -37
- package/dist/src/helpers/pos-assignment-rows.d.ts +0 -28
- package/dist/src/helpers/staff-invite.d.ts +0 -54
- package/dist/src/router/menu-access-guard.d.ts +0 -17
- package/dist/src/types/my-pos-profile.d.ts +0 -24
- package/dist/src/types/sso-provider.d.ts +0 -10
- package/dist/src/types/staff-invite.d.ts +0 -100
- package/dist/src/views/my-pos-profile/MyPosProfile.vue.d.ts +0 -2
- package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +0 -4
- package/dist/src/views/my-pos-profile/locales/index.d.ts +0 -236
- package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +0 -51
- package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +0 -44
- package/dist/src/views/team/member/ExistingMemberNotice.vue.d.ts +0 -11
- package/dist/src/views/team/member/MemberDetailsCard.vue.d.ts +0 -35
- package/dist/src/views/team/member/MemberHeaderCard.vue.d.ts +0 -19
- package/dist/string-DZQ1uNjn.js +0 -22
- package/dist/timesheet-NYW1P4rf.js +0 -76
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { FdtoUpdatePosUserReq, FdtoUpdatePosMasterUserReq } from '@feedmepos/core/entity';
|
|
2
|
-
import type { Employee, IFdtoEmployeePage, IReadEmployeesPageReq } from '@/types/employee';
|
|
2
|
+
import type { Employee, IFdtoEmployeePage, IFdtoPosUser, 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[]>;
|
|
8
9
|
readEmployeesPage(query: IReadEmployeesPageReq): Promise<IFdtoEmployeePage>;
|
|
9
10
|
createEmployee(dto: FdtoUpdatePosUserReq): Promise<string>;
|
|
10
11
|
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
|
|
3
|
+
readTimesheets(startIso: string, endIso: string): Promise<IFdtoTimesheet[]>;
|
|
4
4
|
updateTimesheet(restaurantId: string, dto: UpdateTimesheetDTO): Promise<void>;
|
|
5
5
|
};
|
|
6
6
|
export default TimesheetAPI;
|
|
@@ -2,25 +2,17 @@ interface Props {
|
|
|
2
2
|
title?: string;
|
|
3
3
|
subtitle?: string;
|
|
4
4
|
initiallyCollapsed?: boolean;
|
|
5
|
-
/**
|
|
6
|
-
* 'trailing': toggle on the right, subtitle beside the title while collapsed.
|
|
7
|
-
* 'leading': chevron before the title, subtitle always under it (member sheet cards).
|
|
8
|
-
*/
|
|
9
|
-
layout?: 'trailing' | 'leading';
|
|
10
5
|
}
|
|
11
|
-
declare var
|
|
6
|
+
declare var __VLS_1: {}, __VLS_7: {};
|
|
12
7
|
type __VLS_Slots = {} & {
|
|
13
|
-
title?: (props: typeof
|
|
8
|
+
title?: (props: typeof __VLS_1) => any;
|
|
14
9
|
} & {
|
|
15
|
-
|
|
16
|
-
} & {
|
|
17
|
-
default?: (props: typeof __VLS_13) => any;
|
|
10
|
+
default?: (props: typeof __VLS_7) => any;
|
|
18
11
|
};
|
|
19
12
|
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
20
13
|
title: string;
|
|
21
14
|
subtitle: string;
|
|
22
15
|
initiallyCollapsed: boolean;
|
|
23
|
-
layout: "trailing" | "leading";
|
|
24
16
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
17
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
26
18
|
export default _default;
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
import type { InheritedPermission, IFdtoPermissionSet } from '@/types/permission-set';
|
|
2
|
-
|
|
2
|
+
import type { FdoPermissionRule } from '@feedmepos/core/entity';
|
|
3
|
+
/**
|
|
4
|
+
* Recursively collect all permission sets following permissionSetIds links.
|
|
5
|
+
* Returns a flat, deduplicated list in depth-first order (parent before children).
|
|
6
|
+
* Cycle-safe via the visited set.
|
|
7
|
+
*/
|
|
8
|
+
export declare function collectAllPermissionSets(setIds: string[], allSets: IFdtoPermissionSet[], visited?: Set<string>): IFdtoPermissionSet[];
|
|
9
|
+
/**
|
|
10
|
+
* Compute the effective permissions from a list of permission sets.
|
|
11
|
+
*
|
|
12
|
+
* Unlike a raw `mergePermissionSet().map(...)`, this correctly handles sets that store
|
|
13
|
+
* override diffs (inverted rules): it first merges all grants and denials from the sets,
|
|
14
|
+
* then applies the denials on top of the grants via `getEffectivePermissions`, producing a
|
|
15
|
+
* clean list of effective grants only. This ensures that subjects removed by a child set's
|
|
16
|
+
* inversion are not incorrectly shown as granted.
|
|
17
|
+
*/
|
|
18
|
+
export declare function mergeToEffectivePermissions(sets: IFdtoPermissionSet[]): FdoPermissionRule[];
|
|
3
19
|
/**
|
|
4
20
|
* Transform permission sets by grouping role names by collection IDs for a specific field
|
|
5
21
|
* @param permissionSets - Array of permission sets with their permissions
|
|
@@ -8,3 +24,88 @@ export { collectAllPermissionSets, mergeToEffectivePermissions, getOverridePermi
|
|
|
8
24
|
* @returns Array of objects containing collection ID and associated role names
|
|
9
25
|
*/
|
|
10
26
|
export declare function transformByCollection(permissionSets: IFdtoPermissionSet[], field: string, resourceIds: string[]): InheritedPermission[];
|
|
27
|
+
/**
|
|
28
|
+
* Combine base permissions (permissions set) with user permissions
|
|
29
|
+
* @param basePermissions - Base permissions
|
|
30
|
+
* @param overridePermissions - User permissions
|
|
31
|
+
* @returns Combined permissions
|
|
32
|
+
* Return combined result with below criteria:
|
|
33
|
+
* - If base has it and user doesn't, return base permission with { inverted: true }
|
|
34
|
+
* - If user has it and base doesn't, return user permission
|
|
35
|
+
* - If base and user has it, nothing return
|
|
36
|
+
* For permission with conditions (collection: warehouses, roles, restaurants)
|
|
37
|
+
* - If base conditions different from user conditions, return rule with { inverted: true } and conditions on collection ids to be denied
|
|
38
|
+
* - If base has conditions and user doesn't, return base with { inverted: true } without conditions, essentially denied all access
|
|
39
|
+
* - If user has conditions and base doesn't, return user's rule (user added)
|
|
40
|
+
*/
|
|
41
|
+
export declare function getOverridePermissions(basePermissions: FdoPermissionRule[], overridePermissions: FdoPermissionRule[]): FdoPermissionRule[];
|
|
42
|
+
export declare function materializeSystemPermissionSetOverrides(overridePermissions: FdoPermissionRule[]): FdoPermissionRule[];
|
|
43
|
+
/**
|
|
44
|
+
* Strip positive rules whose subject would be re-injected by system permission set expansion.
|
|
45
|
+
* These need not be persisted to DB — expansion re-adds them at runtime.
|
|
46
|
+
*
|
|
47
|
+
* Also strips inverted rules for subjects that are ONLY reachable as non-manage via permissions[]
|
|
48
|
+
* leaf injection. Such inverted rules cannot block permissions[] injection (only visitedSetIds/
|
|
49
|
+
* permissionSets[] expansion is blockable), are useless, and cause a CASL side-effect where an
|
|
50
|
+
* inverted `manage` rule inadvertently blocks `read` access.
|
|
51
|
+
*
|
|
52
|
+
* Inverted rules targeting subjects reachable as `manage` (via permissionSets[] chaining) are
|
|
53
|
+
* always preserved — they seed visitedSetIds to block system set re-expansion.
|
|
54
|
+
*/
|
|
55
|
+
export declare function stripSystemExpandedPositives(permissions: FdoPermissionRule[]): FdoPermissionRule[];
|
|
56
|
+
export declare const REPORT_SUBJECT_PREFIX = "business::report::";
|
|
57
|
+
/**
|
|
58
|
+
* Filter out stale report permission rules.
|
|
59
|
+
*
|
|
60
|
+
* Only rules whose subject starts with `business::report::` are candidates for removal —
|
|
61
|
+
* any other subject (restaurant, role, warehouse, etc.) passes through untouched.
|
|
62
|
+
* A report-prefixed subject is kept only if it exists in `knownReportSubjects`.
|
|
63
|
+
*
|
|
64
|
+
* This handles:
|
|
65
|
+
* - Deprecated/renamed subjects (e.g. `business::report::closeup` → `business::report::reports::closeup`)
|
|
66
|
+
* - Deleted dynamic reports that no longer exist
|
|
67
|
+
*/
|
|
68
|
+
export declare function filterStalePermissions(permissions: FdoPermissionRule[], knownReportSubjects: Set<string>): FdoPermissionRule[];
|
|
69
|
+
/**
|
|
70
|
+
* Strip individual-report actions already covered by an `allDefaultReports` or
|
|
71
|
+
* `allCustomReports` positive grant, preventing redundant data from being saved.
|
|
72
|
+
*
|
|
73
|
+
* - If the cover rule has `manage` selected → every individual rule in that bucket is
|
|
74
|
+
* fully covered and dropped entirely only when the cover condition also covers the
|
|
75
|
+
* individual rule.
|
|
76
|
+
* - Otherwise, only covered non-manage actions are stripped from individual rules when
|
|
77
|
+
* the cover condition also covers the individual rule.
|
|
78
|
+
* `manage` is a real CASL wildcard grant that implies every action, not merely a
|
|
79
|
+
* shorthand for "all non-manage actions selected" — a rule carrying `manage` is
|
|
80
|
+
* pushed through UNCHANGED (a cover lacking `manage` cannot cover it). Stripping its
|
|
81
|
+
* constituent actions and then dropping `manage` would destroy the user's grant.
|
|
82
|
+
* Rules that end up with no remaining actions are dropped.
|
|
83
|
+
*
|
|
84
|
+
* Inverted rules and the cover subjects themselves pass through untouched.
|
|
85
|
+
*
|
|
86
|
+
* @param defaultReportSubjects Full set of subjects in the "Default Report" UI category —
|
|
87
|
+
* includes static hardcoded subjects AND dynamic reports with `isDefault: true`.
|
|
88
|
+
* Built by the caller from `portalTeamPermissions` + `customReportPermissions`.
|
|
89
|
+
*/
|
|
90
|
+
export declare function filterRedundantReportPermissions(permissions: FdoPermissionRule[], defaultReportSubjects: Set<string>): FdoPermissionRule[];
|
|
91
|
+
/**
|
|
92
|
+
* Combine base permissions with override permissions to get effective permissions
|
|
93
|
+
* @param basePermissions - Base permissions from permission sets
|
|
94
|
+
* @param overridePermissions - Override permissions from permission user
|
|
95
|
+
* @returns - Combined effective permissions
|
|
96
|
+
*/
|
|
97
|
+
export declare function getEffectivePermissions(basePermissions: FdoPermissionRule[], overridePermissions: FdoPermissionRule[]): FdoPermissionRule[];
|
|
98
|
+
/**
|
|
99
|
+
* Compute the initial permissions for the permission editor.
|
|
100
|
+
*
|
|
101
|
+
* Like `getEffectivePermissions`, but also preserves "orphaned" inverted rules — denials whose
|
|
102
|
+
* subject is NOT present in any base permission set (i.e. they target system-expanded subjects,
|
|
103
|
+
* not permission-set-inherited subjects). These denials seed `visitedSetIds` in
|
|
104
|
+
* `expandWithSystemPermissionSets` to block runtime re-expansion of system sets that the user
|
|
105
|
+
* explicitly unchecked. Without them the editor would initialize without the denial guard and
|
|
106
|
+
* those subjects would reappear as checked the next time the form opens.
|
|
107
|
+
*
|
|
108
|
+
* Inverted rules whose subject IS in base are handled correctly by `getEffectivePermissions`
|
|
109
|
+
* already (they cancel the inherited grant) and do not need special treatment here.
|
|
110
|
+
*/
|
|
111
|
+
export declare function getEditorPermissions(basePermissions: FdoPermissionRule[], customPermissions: FdoPermissionRule[]): FdoPermissionRule[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { RawRule } from '@casl/ability';
|
|
2
2
|
import { F_RULE_SUBJECT, type FdoPermissionRule } from '@feedmepos/core/entity';
|
|
3
|
-
import { getManagableRestaurantIds, usableRoleIds } from '@feedmepos/hrm-permission/utils';
|
|
4
3
|
import type { Rule } from '../types/role';
|
|
5
4
|
export declare function filterPermissions(permissions: FdoPermissionRule[], subject: F_RULE_SUBJECT, availablePermissions?: FdoPermissionRule[]): string;
|
|
6
5
|
export declare function ruleExtension(rule: FdoPermissionRule): {
|
|
@@ -20,7 +19,7 @@ export declare function ruleExtension(rule: FdoPermissionRule): {
|
|
|
20
19
|
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
21
20
|
};
|
|
22
21
|
export declare function getMaxDiscount(rules: FdoPermissionRule[]): number;
|
|
23
|
-
export
|
|
22
|
+
export declare function getManagableRestaurantIds(rules: (FdoPermissionRule | RawRule)[]): string[] | null;
|
|
24
23
|
export interface MasterUserAccess {
|
|
25
24
|
/** null = every restaurant, [] = none */
|
|
26
25
|
restaurantIds: string[] | null;
|
|
@@ -37,6 +36,7 @@ export declare function resolveMasterUserAccess(rules: (FdoPermissionRule | RawR
|
|
|
37
36
|
isOwner: boolean;
|
|
38
37
|
}): MasterUserAccess;
|
|
39
38
|
export declare function hasAdminRule(rules: FdoPermissionRule[]): boolean;
|
|
39
|
+
export declare function usableRoleIds(rules: (FdoPermissionRule | RawRule)[]): string[] | null;
|
|
40
40
|
export declare function extractReportExtraCondition(rule: FdoPermissionRule): Record<string, unknown> | undefined;
|
|
41
41
|
export declare function fromValue(values: string[], maxDiscountPercentage: number, periodConditions?: Map<string, Record<string, unknown>>): {
|
|
42
42
|
subject: string;
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
declare function randomString(length: number, config?: {
|
|
2
2
|
includeSpecialCase: boolean;
|
|
3
3
|
}): string;
|
|
4
|
-
/**
|
|
5
|
-
* "A, B +2 more" for a selection; null means everything (the "include future" choice).
|
|
6
|
-
* Collapsed permission rows show it under their title.
|
|
7
|
-
*/
|
|
8
|
-
declare function summarizeNames(names: string[] | null, labels: {
|
|
9
|
-
all: string;
|
|
10
|
-
none: string;
|
|
11
|
-
more: (count: number) => string;
|
|
12
|
-
}, shown?: number): string;
|
|
13
4
|
declare const filter: {
|
|
14
5
|
alphabetOnly(word: string): string;
|
|
15
6
|
alphaNumeric(word: string): string;
|
|
@@ -19,4 +10,4 @@ declare const validate: {
|
|
|
19
10
|
email(input: string): RegExpMatchArray | null;
|
|
20
11
|
};
|
|
21
12
|
declare function nameInitials(name: string | null | undefined): string;
|
|
22
|
-
export { filter, validate, randomString, nameInitials
|
|
13
|
+
export { filter, validate, randomString, nameInitials };
|
|
@@ -8,14 +8,12 @@ export declare enum RouteName {
|
|
|
8
8
|
TEAM = "team",
|
|
9
9
|
TEAM_MEMBER = "team-member",
|
|
10
10
|
TEAM_ROLE = "team-role",
|
|
11
|
-
TEAM_INVITE = "team-invite",
|
|
12
11
|
POS_ACCESS = "pos-access",
|
|
13
12
|
POS_GRANT = "pos-grant",
|
|
14
13
|
APPROVAL_CODE = "approval-code",
|
|
15
14
|
SCHEDULE = "schedule",
|
|
16
15
|
SCHEDULE_POSITION = "schedule-position",
|
|
17
|
-
SCHEDULE_GENERAL = "schedule-general"
|
|
18
|
-
MY_POS_PROFILE = "my-pos-profile"
|
|
16
|
+
SCHEDULE_GENERAL = "schedule-general"
|
|
19
17
|
}
|
|
20
18
|
declare const routes: RouteRecordRaw[];
|
|
21
19
|
export { routes };
|
|
@@ -374,6 +374,7 @@ 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>;
|
|
377
378
|
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
378
379
|
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
379
380
|
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<string>;
|
|
@@ -691,6 +692,7 @@ export declare const useEmployeeStore: () => {
|
|
|
691
692
|
})[]>;
|
|
692
693
|
totalEmployees: import("vue").Ref<number, number>;
|
|
693
694
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
695
|
+
readEmployees: () => Promise<void>;
|
|
694
696
|
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
695
697
|
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
696
698
|
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<string>;
|
|
@@ -853,6 +855,7 @@ export declare const useEmployeeStore: () => {
|
|
|
853
855
|
})[]>;
|
|
854
856
|
totalEmployees: import("vue").Ref<number, number>;
|
|
855
857
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
858
|
+
readEmployees: () => Promise<void>;
|
|
856
859
|
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
857
860
|
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
858
861
|
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<string>;
|
|
@@ -1012,6 +1015,7 @@ export declare const useEmployeeStore: () => {
|
|
|
1012
1015
|
})[]>;
|
|
1013
1016
|
totalEmployees: import("vue").Ref<number, number>;
|
|
1014
1017
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
1018
|
+
readEmployees: () => Promise<void>;
|
|
1015
1019
|
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
1016
1020
|
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
1017
1021
|
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<string>;
|
|
@@ -1171,6 +1175,7 @@ export declare const useEmployeeStore: () => {
|
|
|
1171
1175
|
})[]>;
|
|
1172
1176
|
totalEmployees: import("vue").Ref<number, number>;
|
|
1173
1177
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
1178
|
+
readEmployees: () => Promise<void>;
|
|
1174
1179
|
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
1175
1180
|
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
1176
1181
|
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<string>;
|
|
@@ -1181,10 +1186,11 @@ export declare const useEmployeeStore: () => {
|
|
|
1181
1186
|
deleteMasterEmployee: (employee: Employee) => Promise<void>;
|
|
1182
1187
|
migrateToMasterUser: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
1183
1188
|
syncUsersMeta: () => Promise<void>;
|
|
1184
|
-
}, "readEmployeesPage" | "readAllEmployeesPage" | "createEmployee" | "updateEmployee" | "deleteEmployee" | "createMasterEmployee" | "updateMasterEmployee" | "deleteMasterEmployee" | "migrateToMasterUser" | "syncUsersMeta">>, detached?: boolean): () => void;
|
|
1189
|
+
}, "readEmployees" | "readEmployeesPage" | "readAllEmployeesPage" | "createEmployee" | "updateEmployee" | "deleteEmployee" | "createMasterEmployee" | "updateMasterEmployee" | "deleteMasterEmployee" | "migrateToMasterUser" | "syncUsersMeta">>, detached?: boolean): () => void;
|
|
1185
1190
|
$dispose(): void;
|
|
1186
1191
|
$id: "hrm-employee";
|
|
1187
1192
|
_customProperties: Set<string>;
|
|
1193
|
+
readEmployees: () => Promise<void>;
|
|
1188
1194
|
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
1189
1195
|
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
1190
1196
|
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<string>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { HrmRestaurant } from '@/types/restaurant';
|
|
2
2
|
export declare const useRestaurantStore: () => {
|
|
3
|
-
isLoading: import("vue").Ref<boolean, boolean>;
|
|
4
3
|
restaurants: import("vue").Ref<{
|
|
5
4
|
_id: string;
|
|
6
5
|
businessId: string;
|
|
@@ -20,18 +19,8 @@ export declare const useRestaurantStore: () => {
|
|
|
20
19
|
};
|
|
21
20
|
managable: boolean;
|
|
22
21
|
}[]>;
|
|
23
|
-
|
|
24
|
-
_id: string;
|
|
25
|
-
businessId: string;
|
|
26
|
-
profile: {
|
|
27
|
-
name: string;
|
|
28
|
-
code?: string | undefined;
|
|
29
|
-
legalName: string;
|
|
30
|
-
};
|
|
31
|
-
managable: boolean;
|
|
32
|
-
}>>;
|
|
22
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
33
23
|
$state: {
|
|
34
|
-
isLoading: boolean;
|
|
35
24
|
restaurants: {
|
|
36
25
|
_id: string;
|
|
37
26
|
businessId: string;
|
|
@@ -42,6 +31,7 @@ export declare const useRestaurantStore: () => {
|
|
|
42
31
|
};
|
|
43
32
|
managable: boolean;
|
|
44
33
|
}[];
|
|
34
|
+
isLoading: boolean;
|
|
45
35
|
} & import("pinia").PiniaCustomStateProperties<Pick<{
|
|
46
36
|
restaurants: import("vue").Ref<{
|
|
47
37
|
_id: string;
|
|
@@ -62,21 +52,10 @@ export declare const useRestaurantStore: () => {
|
|
|
62
52
|
};
|
|
63
53
|
managable: boolean;
|
|
64
54
|
}[]>;
|
|
65
|
-
restaurantsById: import("vue").ComputedRef<Map<string, {
|
|
66
|
-
_id: string;
|
|
67
|
-
businessId: string;
|
|
68
|
-
profile: {
|
|
69
|
-
name: string;
|
|
70
|
-
code?: string | undefined;
|
|
71
|
-
legalName: string;
|
|
72
|
-
};
|
|
73
|
-
managable: boolean;
|
|
74
|
-
}>>;
|
|
75
55
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
76
56
|
readRestaurants: (force?: boolean) => Promise<void>;
|
|
77
|
-
}, "
|
|
57
|
+
}, "restaurants" | "isLoading">>;
|
|
78
58
|
$patch(partialState: import("pinia")._DeepPartial<{
|
|
79
|
-
isLoading: boolean;
|
|
80
59
|
restaurants: {
|
|
81
60
|
_id: string;
|
|
82
61
|
businessId: string;
|
|
@@ -87,9 +66,9 @@ export declare const useRestaurantStore: () => {
|
|
|
87
66
|
};
|
|
88
67
|
managable: boolean;
|
|
89
68
|
}[];
|
|
69
|
+
isLoading: boolean;
|
|
90
70
|
}>): void;
|
|
91
71
|
$patch<F extends (state: {
|
|
92
|
-
isLoading: boolean;
|
|
93
72
|
restaurants: {
|
|
94
73
|
_id: string;
|
|
95
74
|
businessId: string;
|
|
@@ -100,6 +79,7 @@ export declare const useRestaurantStore: () => {
|
|
|
100
79
|
};
|
|
101
80
|
managable: boolean;
|
|
102
81
|
}[];
|
|
82
|
+
isLoading: boolean;
|
|
103
83
|
}) => any>(stateMutator: ReturnType<F> extends Promise<any> ? never : F): void;
|
|
104
84
|
$reset(): void;
|
|
105
85
|
$subscribe(callback: import("pinia").SubscriptionCallback<Pick<{
|
|
@@ -122,19 +102,9 @@ export declare const useRestaurantStore: () => {
|
|
|
122
102
|
};
|
|
123
103
|
managable: boolean;
|
|
124
104
|
}[]>;
|
|
125
|
-
restaurantsById: import("vue").ComputedRef<Map<string, {
|
|
126
|
-
_id: string;
|
|
127
|
-
businessId: string;
|
|
128
|
-
profile: {
|
|
129
|
-
name: string;
|
|
130
|
-
code?: string | undefined;
|
|
131
|
-
legalName: string;
|
|
132
|
-
};
|
|
133
|
-
managable: boolean;
|
|
134
|
-
}>>;
|
|
135
105
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
136
106
|
readRestaurants: (force?: boolean) => Promise<void>;
|
|
137
|
-
}, "
|
|
107
|
+
}, "restaurants" | "isLoading">>, options?: {
|
|
138
108
|
detached?: boolean;
|
|
139
109
|
} & import("vue").WatchOptions): () => void;
|
|
140
110
|
$onAction(callback: import("pinia").StoreOnActionListener<"hrm-restaurant", Pick<{
|
|
@@ -157,19 +127,9 @@ export declare const useRestaurantStore: () => {
|
|
|
157
127
|
};
|
|
158
128
|
managable: boolean;
|
|
159
129
|
}[]>;
|
|
160
|
-
restaurantsById: import("vue").ComputedRef<Map<string, {
|
|
161
|
-
_id: string;
|
|
162
|
-
businessId: string;
|
|
163
|
-
profile: {
|
|
164
|
-
name: string;
|
|
165
|
-
code?: string | undefined;
|
|
166
|
-
legalName: string;
|
|
167
|
-
};
|
|
168
|
-
managable: boolean;
|
|
169
|
-
}>>;
|
|
170
130
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
171
131
|
readRestaurants: (force?: boolean) => Promise<void>;
|
|
172
|
-
}, "
|
|
132
|
+
}, "restaurants" | "isLoading">, Pick<{
|
|
173
133
|
restaurants: import("vue").Ref<{
|
|
174
134
|
_id: string;
|
|
175
135
|
businessId: string;
|
|
@@ -189,19 +149,9 @@ export declare const useRestaurantStore: () => {
|
|
|
189
149
|
};
|
|
190
150
|
managable: boolean;
|
|
191
151
|
}[]>;
|
|
192
|
-
restaurantsById: import("vue").ComputedRef<Map<string, {
|
|
193
|
-
_id: string;
|
|
194
|
-
businessId: string;
|
|
195
|
-
profile: {
|
|
196
|
-
name: string;
|
|
197
|
-
code?: string | undefined;
|
|
198
|
-
legalName: string;
|
|
199
|
-
};
|
|
200
|
-
managable: boolean;
|
|
201
|
-
}>>;
|
|
202
152
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
203
153
|
readRestaurants: (force?: boolean) => Promise<void>;
|
|
204
|
-
},
|
|
154
|
+
}, never>, Pick<{
|
|
205
155
|
restaurants: import("vue").Ref<{
|
|
206
156
|
_id: string;
|
|
207
157
|
businessId: string;
|
|
@@ -221,16 +171,6 @@ export declare const useRestaurantStore: () => {
|
|
|
221
171
|
};
|
|
222
172
|
managable: boolean;
|
|
223
173
|
}[]>;
|
|
224
|
-
restaurantsById: import("vue").ComputedRef<Map<string, {
|
|
225
|
-
_id: string;
|
|
226
|
-
businessId: string;
|
|
227
|
-
profile: {
|
|
228
|
-
name: string;
|
|
229
|
-
code?: string | undefined;
|
|
230
|
-
legalName: string;
|
|
231
|
-
};
|
|
232
|
-
managable: boolean;
|
|
233
|
-
}>>;
|
|
234
174
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
235
175
|
readRestaurants: (force?: boolean) => Promise<void>;
|
|
236
176
|
}, "readRestaurants">>, detached?: boolean): () => void;
|
|
@@ -17,8 +17,6 @@ declare const useTeamStore: import("pinia").StoreDefinition<"hrm-team", Pick<{
|
|
|
17
17
|
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
18
18
|
}[];
|
|
19
19
|
permissionLabels: string[];
|
|
20
|
-
status: import("@/types/team").TeamMemberStatus;
|
|
21
|
-
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
22
20
|
doc: {
|
|
23
21
|
id: string;
|
|
24
22
|
posUserId: string;
|
|
@@ -36,9 +34,6 @@ declare const useTeamStore: import("pinia").StoreDefinition<"hrm-team", Pick<{
|
|
|
36
34
|
roleId: string;
|
|
37
35
|
}[];
|
|
38
36
|
} | undefined;
|
|
39
|
-
employeeId?: string | null | undefined;
|
|
40
|
-
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
41
|
-
status: import("@/types/team").TeamMemberStatus;
|
|
42
37
|
businessId: string;
|
|
43
38
|
userId: string;
|
|
44
39
|
permissions: {
|
|
@@ -68,8 +63,6 @@ declare const useTeamStore: import("pinia").StoreDefinition<"hrm-team", Pick<{
|
|
|
68
63
|
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
69
64
|
}[];
|
|
70
65
|
permissionLabels: string[];
|
|
71
|
-
status: import("@/types/team").TeamMemberStatus;
|
|
72
|
-
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
73
66
|
doc: {
|
|
74
67
|
id: string;
|
|
75
68
|
posUserId: string;
|
|
@@ -87,9 +80,6 @@ declare const useTeamStore: import("pinia").StoreDefinition<"hrm-team", Pick<{
|
|
|
87
80
|
roleId: string;
|
|
88
81
|
}[];
|
|
89
82
|
} | undefined;
|
|
90
|
-
employeeId?: string | null | undefined;
|
|
91
|
-
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
92
|
-
status: import("@/types/team").TeamMemberStatus;
|
|
93
83
|
businessId: string;
|
|
94
84
|
userId: string;
|
|
95
85
|
permissions: {
|
|
@@ -129,8 +119,6 @@ declare const useTeamStore: import("pinia").StoreDefinition<"hrm-team", Pick<{
|
|
|
129
119
|
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
130
120
|
}[];
|
|
131
121
|
permissionLabels: string[];
|
|
132
|
-
status: import("@/types/team").TeamMemberStatus;
|
|
133
|
-
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
134
122
|
doc: {
|
|
135
123
|
id: string;
|
|
136
124
|
posUserId: string;
|
|
@@ -148,9 +136,6 @@ declare const useTeamStore: import("pinia").StoreDefinition<"hrm-team", Pick<{
|
|
|
148
136
|
roleId: string;
|
|
149
137
|
}[];
|
|
150
138
|
} | undefined;
|
|
151
|
-
employeeId?: string | null | undefined;
|
|
152
|
-
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
153
|
-
status: import("@/types/team").TeamMemberStatus;
|
|
154
139
|
businessId: string;
|
|
155
140
|
userId: string;
|
|
156
141
|
permissions: {
|
|
@@ -180,8 +165,6 @@ declare const useTeamStore: import("pinia").StoreDefinition<"hrm-team", Pick<{
|
|
|
180
165
|
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
181
166
|
}[];
|
|
182
167
|
permissionLabels: string[];
|
|
183
|
-
status: import("@/types/team").TeamMemberStatus;
|
|
184
|
-
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
185
168
|
doc: {
|
|
186
169
|
id: string;
|
|
187
170
|
posUserId: string;
|
|
@@ -199,9 +182,6 @@ declare const useTeamStore: import("pinia").StoreDefinition<"hrm-team", Pick<{
|
|
|
199
182
|
roleId: string;
|
|
200
183
|
}[];
|
|
201
184
|
} | undefined;
|
|
202
|
-
employeeId?: string | null | undefined;
|
|
203
|
-
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
204
|
-
status: import("@/types/team").TeamMemberStatus;
|
|
205
185
|
businessId: string;
|
|
206
186
|
userId: string;
|
|
207
187
|
permissions: {
|
|
@@ -241,8 +221,6 @@ declare const useTeamStore: import("pinia").StoreDefinition<"hrm-team", Pick<{
|
|
|
241
221
|
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
242
222
|
}[];
|
|
243
223
|
permissionLabels: string[];
|
|
244
|
-
status: import("@/types/team").TeamMemberStatus;
|
|
245
|
-
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
246
224
|
doc: {
|
|
247
225
|
id: string;
|
|
248
226
|
posUserId: string;
|
|
@@ -260,9 +238,6 @@ declare const useTeamStore: import("pinia").StoreDefinition<"hrm-team", Pick<{
|
|
|
260
238
|
roleId: string;
|
|
261
239
|
}[];
|
|
262
240
|
} | undefined;
|
|
263
|
-
employeeId?: string | null | undefined;
|
|
264
|
-
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
265
|
-
status: import("@/types/team").TeamMemberStatus;
|
|
266
241
|
businessId: string;
|
|
267
242
|
userId: string;
|
|
268
243
|
permissions: {
|
|
@@ -292,8 +267,6 @@ declare const useTeamStore: import("pinia").StoreDefinition<"hrm-team", Pick<{
|
|
|
292
267
|
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
293
268
|
}[];
|
|
294
269
|
permissionLabels: string[];
|
|
295
|
-
status: import("@/types/team").TeamMemberStatus;
|
|
296
|
-
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
297
270
|
doc: {
|
|
298
271
|
id: string;
|
|
299
272
|
posUserId: string;
|
|
@@ -311,9 +284,6 @@ declare const useTeamStore: import("pinia").StoreDefinition<"hrm-team", Pick<{
|
|
|
311
284
|
roleId: string;
|
|
312
285
|
}[];
|
|
313
286
|
} | undefined;
|
|
314
|
-
employeeId?: string | null | undefined;
|
|
315
|
-
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
316
|
-
status: import("@/types/team").TeamMemberStatus;
|
|
317
287
|
businessId: string;
|
|
318
288
|
userId: string;
|
|
319
289
|
permissions: {
|