@feedmepos/mf-hrm-portal 2.3.2-dev.16 → 2.3.2-dev.17

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 (108) hide show
  1. package/dist/{ApprovalCodeList-B3jNdAYD.js → ApprovalCodeList-Bo8IbNxV.js} +15 -14
  2. package/dist/{AuditLogList-khYZrM4O.js → AuditLogList-C7CjPILA.js} +833 -823
  3. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C-4BaMN-.js +438 -0
  4. package/dist/EmployeeList-BOP-gaTp.js +776 -0
  5. package/dist/FormItem.vue_vue_type_script_setup_true_lang-BEOR-8QD.js +45 -0
  6. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +49 -0
  7. package/dist/{GrantUserList-Cyde_ZvG.js → GrantUserList-CXWGr3Wo.js} +16 -15
  8. package/dist/Main-BrP1frfO.js +96 -0
  9. package/dist/{Main-DunDfrfn.js → Main-DeuWov9n.js} +5 -5
  10. package/dist/{Main-D7L7IaSi.js → Main-bru10M5U.js} +2097 -2102
  11. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +243 -0
  12. package/dist/{PermissionSetList-CTya3yQD.js → PermissionSetList--xt0piQz.js} +137 -136
  13. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-D5nvRsW3.js +4167 -0
  14. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DiNDrCy0.js +35 -0
  15. package/dist/RoleList-BEE-8EQK.js +740 -0
  16. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DFIvDycw.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Cqo5kHcF.js} +1 -1
  17. package/dist/{ScheduleGeneralPage-SFsD-TKY.js → ScheduleGeneralPage-DxhgBLix.js} +2 -2
  18. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-YeoRA-WZ.js → ScheduleModal.vue_vue_type_script_setup_true_lang-DGPwmNQb.js} +186 -187
  19. package/dist/{SchedulePage-htF58vxp.js → SchedulePage-oBdEvGWN.js} +20 -20
  20. package/dist/{SchedulePositionPage-BVEpQvOB.js → SchedulePositionPage-BZps-kKs.js} +3 -3
  21. package/dist/{SelectFilter-C36mwNN9.js → SelectFilter-Bs_LCk3L.js} +1 -1
  22. package/dist/TeamMemberList-DCgNcs4P.js +1154 -0
  23. package/dist/{TimesheetList-CNixrC8s.js → TimesheetList-BW6iCigo.js} +9 -9
  24. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CYtX4RNX.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Dv66Af5C.js} +3 -3
  25. package/dist/{app-DwJPnksU.js → app-B8xnhtVI.js} +3702 -7565
  26. package/dist/app.js +3 -3
  27. package/dist/{approval-code-2b26Pgxl.js → approval-code-B0jU1bvk.js} +1 -1
  28. package/dist/{dayjs.min-cGJfyGlJ.js → dayjs.min-CdpSCqn1.js} +34 -34
  29. package/dist/{employee-CGDFUIei.js → employee-DlFGiUgI.js} +47 -48
  30. package/dist/{grant-user-3wYZeemh.js → grant-user-C3C6glCk.js} +1 -1
  31. package/dist/{iteration-CN3qkp7j.js → iteration-BM0iyDBd.js} +1 -1
  32. package/dist/{lodash-2kEG2kVJ.js → lodash-KK9U7NAy.js} +1 -1
  33. package/dist/restaurant-C7o2Yk6j.js +2688 -0
  34. package/dist/{role-DnK0aZXF.js → role-DYCorsOh.js} +20 -19
  35. package/dist/rule-BhGHZqKO.js +783 -0
  36. package/dist/src/components/CollapsibleWrapper.vue.d.ts +3 -11
  37. package/dist/src/helpers/permission-set.d.ts +102 -1
  38. package/dist/src/helpers/rule.d.ts +2 -2
  39. package/dist/src/helpers/string.d.ts +1 -10
  40. package/dist/src/router/shared.d.ts +1 -3
  41. package/dist/src/stores/restaurant.d.ts +7 -7
  42. package/dist/src/stores/team.d.ts +1 -31
  43. package/dist/src/types/team.d.ts +1 -17
  44. package/dist/src/views/audit-log/locales/index.d.ts +0 -12
  45. package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +1 -1
  46. package/dist/src/views/hr/locales/index.d.ts +0 -20
  47. package/dist/src/views/hr/role/RoleForm.vue.d.ts +2 -29
  48. package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +1 -1
  49. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1 -1
  50. package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +1 -1
  51. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +1 -1
  52. package/dist/src/views/team/components/BasePermission.vue.d.ts +0 -11
  53. package/dist/src/views/team/components/ConditionPermission.vue.d.ts +0 -11
  54. package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +0 -21
  55. package/dist/src/views/team/components/PosRolePermission.vue.d.ts +0 -11
  56. package/dist/src/views/team/locales/index.d.ts +0 -716
  57. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +3 -48
  58. package/dist/src/views/team/{components/MemberStatusBadge.vue.d.ts → member/MemberInfo.vue.d.ts} +2 -2
  59. package/dist/src/views/team/member/TeamMemberList.vue.d.ts +0 -1
  60. package/dist/string-VNuQNweN.js +15 -0
  61. package/dist/style.css +1 -1
  62. package/dist/tsconfig.app.tsbuildinfo +1 -1
  63. package/dist/{useAppStore-D7B1Uzy9.js → useAppStore-C1lk2Q2j.js} +1 -1
  64. package/dist/{useLoading-Bfisabfg.js → useLoading-CXdGsnHm.js} +1 -1
  65. package/dist/useReportPermissions-D_I4rFVo.js +82 -0
  66. package/package.json +3 -3
  67. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-draQ4InF.js +0 -459
  68. package/dist/EmployeeList-Dnublgsa.js +0 -896
  69. package/dist/FormSection.vue_vue_type_script_setup_true_lang-BB43cRca.js +0 -90
  70. package/dist/Main-MWuJXveM.js +0 -101
  71. package/dist/MyPosProfile-GLy8uIjr.js +0 -360
  72. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +0 -126
  73. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-B819VW59.js +0 -4212
  74. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-MXPrxf7_.js +0 -1797
  75. package/dist/RoleForm.vue_vue_type_script_setup_true_lang-MEo4THC2.js +0 -547
  76. package/dist/RoleList-D7cBVxYw.js +0 -274
  77. package/dist/TeamMemberList-CQ_Q-kK_.js +0 -2082
  78. package/dist/member-grant-Tup6x9_U.js +0 -54
  79. package/dist/restaurant-BSeSCAtd.js +0 -49
  80. package/dist/rule-Di8SnWjQ.js +0 -839
  81. package/dist/src/api/my-pos-profile/index.d.ts +0 -3
  82. package/dist/src/api/sso-provider/index.d.ts +0 -5
  83. package/dist/src/api/staff-invite/index.d.ts +0 -16
  84. package/dist/src/components/form/SegmentedTabs.vue.d.ts +0 -23
  85. package/dist/src/composables/useMenuAccess.d.ts +0 -56
  86. package/dist/src/composables/useSsoProviders.d.ts +0 -19
  87. package/dist/src/composables/useStaffInviteProviders.d.ts +0 -8
  88. package/dist/src/composables/useTenant.d.ts +0 -11
  89. package/dist/src/helpers/member-grant.d.ts +0 -36
  90. package/dist/src/helpers/my-pos-profile.d.ts +0 -37
  91. package/dist/src/helpers/pos-assignment-rows.d.ts +0 -28
  92. package/dist/src/helpers/staff-invite.d.ts +0 -54
  93. package/dist/src/router/courtGuard.d.ts +0 -4
  94. package/dist/src/router/menu-access-guard.d.ts +0 -17
  95. package/dist/src/types/my-pos-profile.d.ts +0 -24
  96. package/dist/src/types/sso-provider.d.ts +0 -10
  97. package/dist/src/types/staff-invite.d.ts +0 -100
  98. package/dist/src/views/my-pos-profile/MyPosProfile.vue.d.ts +0 -2
  99. package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +0 -4
  100. package/dist/src/views/my-pos-profile/locales/index.d.ts +0 -236
  101. package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +0 -51
  102. package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +0 -44
  103. package/dist/src/views/team/member/ExistingMemberNotice.vue.d.ts +0 -11
  104. package/dist/src/views/team/member/MemberDetailsCard.vue.d.ts +0 -35
  105. package/dist/src/views/team/member/MemberHeaderCard.vue.d.ts +0 -19
  106. package/dist/string-DZQ1uNjn.js +0 -22
  107. package/dist/useReportPermissions-BUmyfjFx.js +0 -80
  108. package/dist/useSsoProviders-CJQTq0Fk.js +0 -41
@@ -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 __VLS_5: {}, __VLS_7: {}, __VLS_13: {};
6
+ declare var __VLS_1: {}, __VLS_7: {};
12
7
  type __VLS_Slots = {} & {
13
- title?: (props: typeof __VLS_5) => any;
8
+ title?: (props: typeof __VLS_1) => any;
14
9
  } & {
15
- title?: (props: typeof __VLS_7) => any;
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
- export { collectAllPermissionSets, mergeToEffectivePermissions, getOverridePermissions, materializeSystemPermissionSetOverrides, stripSystemExpandedPositives, REPORT_SUBJECT_PREFIX, filterStalePermissions, filterRedundantReportPermissions, getEffectivePermissions, getEditorPermissions, } from '@feedmepos/hrm-permission/utils';
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 { getManagableRestaurantIds, usableRoleIds };
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, summarizeNames };
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 };
@@ -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,8 +19,8 @@ export declare const useRestaurantStore: () => {
20
19
  };
21
20
  managable: boolean;
22
21
  }[]>;
22
+ isLoading: import("vue").Ref<boolean, boolean>;
23
23
  $state: {
24
- isLoading: boolean;
25
24
  restaurants: {
26
25
  _id: string;
27
26
  businessId: string;
@@ -32,6 +31,7 @@ export declare const useRestaurantStore: () => {
32
31
  };
33
32
  managable: boolean;
34
33
  }[];
34
+ isLoading: boolean;
35
35
  } & import("pinia").PiniaCustomStateProperties<Pick<{
36
36
  restaurants: import("vue").Ref<{
37
37
  _id: string;
@@ -54,9 +54,8 @@ export declare const useRestaurantStore: () => {
54
54
  }[]>;
55
55
  isLoading: import("vue").Ref<boolean, boolean>;
56
56
  readRestaurants: (force?: boolean) => Promise<void>;
57
- }, "isLoading" | "restaurants">>;
57
+ }, "restaurants" | "isLoading">>;
58
58
  $patch(partialState: import("pinia")._DeepPartial<{
59
- isLoading: boolean;
60
59
  restaurants: {
61
60
  _id: string;
62
61
  businessId: string;
@@ -67,9 +66,9 @@ export declare const useRestaurantStore: () => {
67
66
  };
68
67
  managable: boolean;
69
68
  }[];
69
+ isLoading: boolean;
70
70
  }>): void;
71
71
  $patch<F extends (state: {
72
- isLoading: boolean;
73
72
  restaurants: {
74
73
  _id: string;
75
74
  businessId: string;
@@ -80,6 +79,7 @@ export declare const useRestaurantStore: () => {
80
79
  };
81
80
  managable: boolean;
82
81
  }[];
82
+ isLoading: boolean;
83
83
  }) => any>(stateMutator: ReturnType<F> extends Promise<any> ? never : F): void;
84
84
  $reset(): void;
85
85
  $subscribe(callback: import("pinia").SubscriptionCallback<Pick<{
@@ -104,7 +104,7 @@ export declare const useRestaurantStore: () => {
104
104
  }[]>;
105
105
  isLoading: import("vue").Ref<boolean, boolean>;
106
106
  readRestaurants: (force?: boolean) => Promise<void>;
107
- }, "isLoading" | "restaurants">>, options?: {
107
+ }, "restaurants" | "isLoading">>, options?: {
108
108
  detached?: boolean;
109
109
  } & import("vue").WatchOptions): () => void;
110
110
  $onAction(callback: import("pinia").StoreOnActionListener<"hrm-restaurant", Pick<{
@@ -129,7 +129,7 @@ export declare const useRestaurantStore: () => {
129
129
  }[]>;
130
130
  isLoading: import("vue").Ref<boolean, boolean>;
131
131
  readRestaurants: (force?: boolean) => Promise<void>;
132
- }, "isLoading" | "restaurants">, Pick<{
132
+ }, "restaurants" | "isLoading">, Pick<{
133
133
  restaurants: import("vue").Ref<{
134
134
  _id: string;
135
135
  businessId: string;
@@ -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: {
@@ -111,7 +101,7 @@ declare const useTeamStore: import("pinia").StoreDefinition<"hrm-team", Pick<{
111
101
  readTeamMembers: ({ force }?: {
112
102
  force?: boolean | undefined;
113
103
  }) => Promise<void>;
114
- }, "members" | "isLoading" | "hasLoaded">, Pick<{
104
+ }, "isLoading" | "members" | "hasLoaded">, Pick<{
115
105
  members: import("vue").Ref<{
116
106
  id: string;
117
107
  name: string;
@@ -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: {
@@ -19,12 +19,7 @@ export interface IFdtoPortalUser extends IPermissionUser {
19
19
  phoneNumber: string;
20
20
  email: string;
21
21
  posUser?: IFdtoPermissionPosUser;
22
- employeeId?: string | null;
23
- loginMethod: TeamMemberLoginMethod;
24
- status: TeamMemberStatus;
25
22
  }
26
- export type TeamMemberStatus = 'active' | 'invited';
27
- export type TeamMemberLoginMethod = 'sso' | 'feedme';
28
23
  export interface IFdtoPortalUserPage {
29
24
  items: IFdtoPortalUser[];
30
25
  total: number;
@@ -39,16 +34,10 @@ export interface IFdtoPermissionPosUserRole {
39
34
  restaurantId: string;
40
35
  roleId: string;
41
36
  }
42
- /** On a member edit `passcode` is sent only when the admin changed it; absent keeps the stored one. */
43
- export type IFdtoUpdatePermissionPosUser = Omit<IFdtoPermissionPosUser, 'passcode'> & {
44
- passcode?: string;
45
- };
46
37
  export interface IFdtoUpdatePortalUserReq {
47
- /** Absent keeps the stored one; '' clears it. */
48
- employeeId?: string;
49
38
  /** @deprecated use customPermissions instead */
50
39
  permissions?: FdoPermissionRule[];
51
- posUser?: IFdtoUpdatePermissionPosUser | null;
40
+ posUser?: IFdtoPermissionPosUser | null;
52
41
  permissionSetIds?: string[];
53
42
  customPermissions?: FdoPermissionRule[];
54
43
  }
@@ -60,7 +49,6 @@ export interface IFdtoCreatePortalUserReq {
60
49
  permissionSetIds?: string[];
61
50
  customPermissions: FdoPermissionRule[];
62
51
  name?: string;
63
- employeeId?: string;
64
52
  posUser?: IFdtoPermissionPosUser | null;
65
53
  }
66
54
  export interface FTeamMember {
@@ -72,8 +60,6 @@ export interface FTeamMember {
72
60
  managableRestaurantIds: string[] | null;
73
61
  permissions: FdoPermissionRule[];
74
62
  permissionLabels: string[];
75
- status: TeamMemberStatus;
76
- loginMethod: TeamMemberLoginMethod;
77
63
  doc: IFdtoPortalUser;
78
64
  }
79
65
  export interface IReadTeamMembersPageReq {
@@ -83,8 +69,6 @@ export interface IReadTeamMembersPageReq {
83
69
  restaurantIds?: string[];
84
70
  permissionSubjects?: string[];
85
71
  permissionSetIds?: string[];
86
- statuses?: TeamMemberStatus[];
87
- loginMethods?: TeamMemberLoginMethod[];
88
72
  }
89
73
  export interface IFdtoTeamMemberPage {
90
74
  items: FTeamMember[];
@@ -268,9 +268,6 @@ export declare const i18nMessages: {
268
268
  update: string;
269
269
  delete: string;
270
270
  "generate-passcode": string;
271
- invite: string;
272
- "invite-update": string;
273
- "invite-revoke": string;
274
271
  };
275
272
  "pos-user": {
276
273
  list: string;
@@ -630,9 +627,6 @@ export declare const i18nMessages: {
630
627
  update: string;
631
628
  delete: string;
632
629
  "generate-passcode": string;
633
- invite: string;
634
- "invite-update": string;
635
- "invite-revoke": string;
636
630
  };
637
631
  "pos-user": {
638
632
  list: string;
@@ -992,9 +986,6 @@ export declare const i18nMessages: {
992
986
  update: string;
993
987
  delete: string;
994
988
  "generate-passcode": string;
995
- invite: string;
996
- "invite-update": string;
997
- "invite-revoke": string;
998
989
  };
999
990
  "pos-user": {
1000
991
  list: string;
@@ -1354,9 +1345,6 @@ export declare const i18nMessages: {
1354
1345
  update: string;
1355
1346
  delete: string;
1356
1347
  "generate-passcode": string;
1357
- invite: string;
1358
- "invite-update": string;
1359
- "invite-revoke": string;
1360
1348
  };
1361
1349
  "pos-user": {
1362
1350
  list: string;
@@ -4,7 +4,7 @@ interface Options {
4
4
  logs: Ref<AuditLogEntry[]>;
5
5
  selectedLog: Ref<AuditLogEntry | null>;
6
6
  isSheetOpen: Ref<boolean>;
7
- /** Current tenant id (business or food court); the lookup waits until this is available. */
7
+ /** Current business id; the lookup waits until this is available. */
8
8
  businessId: () => string | undefined;
9
9
  }
10
10
  /**
@@ -160,11 +160,6 @@ export declare const i18nMessages: {
160
160
  "report:timesheet": string;
161
161
  "report:counterPayment": string;
162
162
  };
163
- addTitle: string;
164
- permissionsSubtitle: string;
165
- namePlaceholder: string;
166
- permissionAllowed: string;
167
- permissionsAllowed: string;
168
163
  };
169
164
  noData: {
170
165
  title: string;
@@ -373,11 +368,6 @@ export declare const i18nMessages: {
373
368
  "report:timesheet": string;
374
369
  "report:counterPayment": string;
375
370
  };
376
- addTitle: string;
377
- permissionsSubtitle: string;
378
- namePlaceholder: string;
379
- permissionAllowed: string;
380
- permissionsAllowed: string;
381
371
  };
382
372
  noData: {
383
373
  title: string;
@@ -586,11 +576,6 @@ export declare const i18nMessages: {
586
576
  "report:timesheet": string;
587
577
  "report:counterPayment": string;
588
578
  };
589
- addTitle: string;
590
- permissionsSubtitle: string;
591
- namePlaceholder: string;
592
- permissionAllowed: string;
593
- permissionsAllowed: string;
594
579
  };
595
580
  noData: {
596
581
  title: string;
@@ -798,11 +783,6 @@ export declare const i18nMessages: {
798
783
  "report:timesheet": string;
799
784
  "report:counterPayment": string;
800
785
  };
801
- addTitle: string;
802
- permissionsSubtitle: string;
803
- namePlaceholder: string;
804
- permissionAllowed: string;
805
- permissionsAllowed: string;
806
786
  };
807
787
  noData: {
808
788
  title: string;
@@ -1,44 +1,17 @@
1
- import { type PropType } from 'vue';
2
1
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
2
  id: {
4
3
  type: StringConstructor;
5
4
  default: undefined;
6
5
  };
7
- /** Outlets ticked when creating a role (the member sheet passes the row's outlets). */
8
- restaurantIds: {
9
- type: PropType<string[]>;
10
- default: () => never[];
11
- };
12
- /** Opened over another sheet: a back arrow returns to it. */
13
- showBack: {
14
- type: BooleanConstructor;
15
- default: boolean;
16
- };
17
6
  }>, {
18
7
  show: import("vue").Ref<boolean, boolean>;
19
8
  trigger: () => void;
20
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
21
- created: (roleId: string) => any;
22
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
9
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
10
  id: {
24
11
  type: StringConstructor;
25
12
  default: undefined;
26
13
  };
27
- /** Outlets ticked when creating a role (the member sheet passes the row's outlets). */
28
- restaurantIds: {
29
- type: PropType<string[]>;
30
- default: () => never[];
31
- };
32
- /** Opened over another sheet: a back arrow returns to it. */
33
- showBack: {
34
- type: BooleanConstructor;
35
- default: boolean;
36
- };
37
- }>> & Readonly<{
38
- onCreated?: ((roleId: string) => any) | undefined;
39
- }>, {
14
+ }>> & Readonly<{}>, {
40
15
  id: string;
41
- restaurantIds: string[];
42
- showBack: boolean;
43
16
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
44
17
  export default _default;
@@ -21,7 +21,7 @@ export interface ScheduleOnboardingAvailabilityOptions {
21
21
  }
22
22
  export declare function useScheduleOnboardingAvailability(options: ScheduleOnboardingAvailabilityOptions): {
23
23
  avail: Record<number, AvailRow>;
24
- avTab: import("vue").Ref<"part" | "full", "part" | "full">;
24
+ avTab: import("vue").Ref<"full" | "part", "full" | "part">;
25
25
  avPicked: Record<number, boolean>;
26
26
  avVary: Record<number, boolean>;
27
27
  avBulkOpen: import("vue").Ref<boolean, boolean>;
@@ -726,7 +726,7 @@ export declare function useScheduleOnboardingWizard(board: ScheduleBoardApi, add
726
726
  reviewRows: import("vue").ComputedRef<ReviewRow[]>;
727
727
  goTo: (target: ScheduleOnboardingStep) => void;
728
728
  avail: Record<number, import("./onboarding-types").AvailRow>;
729
- avTab: import("vue").Ref<"part" | "full", "part" | "full">;
729
+ avTab: import("vue").Ref<"full" | "part", "full" | "part">;
730
730
  avPicked: Record<number, boolean>;
731
731
  avBulkOpen: import("vue").Ref<boolean, boolean>;
732
732
  avBulk: {
@@ -28,7 +28,7 @@ export declare function useScheduleShiftDraft(): {
28
28
  positionId: import("vue").Ref<string | undefined, string | undefined>;
29
29
  required: import("vue").Ref<number, number>;
30
30
  sen: import("vue").Ref<"" | "senior" | "junior", "" | "senior" | "junior">;
31
- empType: import("vue").Ref<"" | "part" | "full", "" | "part" | "full">;
31
+ empType: import("vue").Ref<"" | "full" | "part", "" | "full" | "part">;
32
32
  roles: import("vue").Ref<{
33
33
  position: string;
34
34
  count: number;
@@ -39,7 +39,7 @@ export declare function useScheduleShiftPopover(board: ScheduleBoardApi, demand:
39
39
  positionId: import("vue").Ref<string | undefined, string | undefined>;
40
40
  required: import("vue").Ref<number, number>;
41
41
  sen: import("vue").Ref<"" | "senior" | "junior", "" | "senior" | "junior">;
42
- empType: import("vue").Ref<"" | "part" | "full", "" | "part" | "full">;
42
+ empType: import("vue").Ref<"" | "full" | "part", "" | "full" | "part">;
43
43
  roles: import("vue").Ref<{
44
44
  position: string;
45
45
  count: number;