@feedmepos/mf-hrm-portal 2.0.18-dev.2 → 2.0.18-dev.3

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 (64) hide show
  1. package/dist/AuditLogList-CPG5uNyJ.js +980 -0
  2. package/dist/EmployeeList-CyF7_ax8.js +736 -0
  3. package/dist/FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js +71 -0
  4. package/dist/HorizontalSplitter-o860F4xM.js +12 -0
  5. package/dist/{Main-BbOMNP31.js → Main-BwMCrfKS.js} +761 -758
  6. package/dist/Main-S5kR_LNV.js +85 -0
  7. package/dist/{Main-dqgR1UXY.js → Main-y2ea2vuC.js} +175 -181
  8. package/dist/PermissionSetList-C5oGIsQP.js +341 -0
  9. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-VaY4Fg_h.js +3480 -0
  10. package/dist/RoleList-C95uKJ8O.js +530 -0
  11. package/dist/TeamMemberList-CEqYCWn6.js +1114 -0
  12. package/dist/TeamMemberList.vue_vue_type_style_index_0_scoped_473cbd86_lang-DJ-znUI3.js +34 -0
  13. package/dist/{TimesheetList-D29EFj1Q.js → TimesheetList-DXtxCeNh.js} +126 -132
  14. package/dist/{app-SadE2J6-.js → app-BwtXEFgW.js} +711 -759
  15. package/dist/app.js +1 -1
  16. package/dist/{dayjs.min-DKCxxK08.js → dayjs.min-uVMAR_wK.js} +1 -1
  17. package/dist/employee-ImeXt_Q7.js +204 -0
  18. package/dist/{iteration-QZxp7XeE.js → iteration-BjJgU8cS.js} +4688 -4732
  19. package/dist/{lodash-DrksHyHu.js → lodash-CSw3Ei7_.js} +1 -1
  20. package/dist/{rule-CSsgDC6F.js → rule-B6wBPpcM.js} +265 -263
  21. package/dist/src/api/account/index.d.ts +4 -0
  22. package/dist/src/api/audit-log/index.d.ts +0 -9
  23. package/dist/src/api/index.d.ts +1 -0
  24. package/dist/src/components/CheckboxInput.vue.d.ts +1 -1
  25. package/dist/src/components/CollapsibleWrapper.vue.d.ts +0 -2
  26. package/dist/src/composables/useBasePermission.d.ts +0 -1
  27. package/dist/src/composables/useRestaurantMap.d.ts +329 -2
  28. package/dist/src/composables/useSupportedCountries.d.ts +5 -0
  29. package/dist/src/stores/role.d.ts +7 -7
  30. package/dist/src/stores/team.d.ts +6 -6
  31. package/dist/src/types/restaurant.d.ts +0 -11
  32. package/dist/src/types/team.d.ts +1 -1
  33. package/dist/src/views/hr/locales/index.d.ts +0 -16
  34. package/dist/src/views/team/components/BasePermission.vue.d.ts +7 -3
  35. package/dist/src/views/team/components/PosRolePermission.vue.d.ts +2 -2
  36. package/dist/src/views/team/locales/index.d.ts +0 -32
  37. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +3 -5
  38. package/dist/style.css +1 -1
  39. package/dist/{timesheet-sBe_HCZh.js → timesheet-D1f9XDxj.js} +2 -2
  40. package/dist/tsconfig.app.tsbuildinfo +1 -1
  41. package/dist/useAppStore-D7jswOfq.js +171 -0
  42. package/dist/useDebounce-B8ZPVS5C.js +15 -0
  43. package/dist/useDiscardConfirm-BHni0LNu.js +28 -0
  44. package/dist/{useLoading-PTqnaz_W.js → useLoading-kFlAIf6Y.js} +1 -1
  45. package/dist/{useReportPermissions-C3Uzu7vB.js → useReportPermissions-ClWD1GSr.js} +3 -3
  46. package/dist/useSearch-B6WK1LBB.js +15 -0
  47. package/package.json +1 -1
  48. package/dist/AuditLogList-D4E8pss5.js +0 -1037
  49. package/dist/CollapsibleWrapper.vue_vue_type_script_setup_true_lang-BLJlmPVa.js +0 -58
  50. package/dist/EmployeeList-BfJO89pN.js +0 -827
  51. package/dist/FormItem.vue_vue_type_script_setup_true_lang-D3MOFOUI.js +0 -45
  52. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +0 -49
  53. package/dist/Main-XmxzThcC.js +0 -86
  54. package/dist/PermissionSetList-DO0PRS6Z.js +0 -347
  55. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DL4_xvBZ.js +0 -3443
  56. package/dist/RoleList-DB3NfUYF.js +0 -545
  57. package/dist/TeamMemberList-4hEx6L5r.js +0 -1090
  58. package/dist/employee-3KJs872J.js +0 -204
  59. package/dist/src/api/restaurant/index.d.ts +0 -5
  60. package/dist/src/components/Skeleton.vue.d.ts +0 -7
  61. package/dist/src/stores/restaurant.d.ts +0 -181
  62. package/dist/useAppStore-BDADkWuX.js +0 -171
  63. package/dist/useDebounce-CWb5QR9G.js +0 -28
  64. package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
@@ -0,0 +1,4 @@
1
+ export declare const accountApi: {
2
+ getSupportedCountries(): Promise<string[]>;
3
+ };
4
+ export default accountApi;
@@ -1,14 +1,5 @@
1
1
  import type { AuditLogEntry } from '@/types/audit-log';
2
2
  declare const AuditLogAPI: {
3
- count(params?: {
4
- from?: string;
5
- to?: string;
6
- userIds?: string[];
7
- subjects?: string[];
8
- subjectPrefixes?: string[];
9
- actions?: string[];
10
- outcomes?: string[];
11
- }): Promise<number>;
12
3
  read(params?: {
13
4
  limit?: number;
14
5
  offset?: number;
@@ -5,6 +5,7 @@ export declare class ApiError extends Error {
5
5
  }
6
6
  export declare const businessClientInstance: (subPath?: string) => AxiosInstance;
7
7
  export declare const queryEngineClientInstance: () => AxiosInstance;
8
+ export declare const accountClientInstance: () => AxiosInstance;
8
9
  export declare const grantClientInstance: () => AxiosInstance;
9
10
  export declare const grantValidateClientInstance: () => AxiosInstance;
10
11
  export declare function getAxiosData<T>(response: AxiosResponse<T>): T;
@@ -143,9 +143,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
143
143
  }>, {
144
144
  max: number;
145
145
  min: number;
146
- disable: boolean;
147
146
  showAllToggle: string | boolean;
148
147
  includeDisabledOptionsWhenSelectAll: boolean;
148
+ disable: boolean;
149
149
  showIntermediate: boolean;
150
150
  gutter: number;
151
151
  falsyShowSlot: boolean;
@@ -1,6 +1,5 @@
1
1
  interface Props {
2
2
  title?: string;
3
- subtitle?: string;
4
3
  initiallyCollapsed?: boolean;
5
4
  }
6
5
  declare var __VLS_1: {}, __VLS_7: {};
@@ -11,7 +10,6 @@ type __VLS_Slots = {} & {
11
10
  };
12
11
  declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
13
12
  title: string;
14
- subtitle: string;
15
13
  initiallyCollapsed: boolean;
16
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
15
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -21,7 +21,6 @@ export declare function useBasePermission(modelValue: Readonly<Ref<FdoPermission
21
21
  categoryGroups: ComputedRef<CategoryGroup[]>;
22
22
  toggleCategory: (category: string, subjects: unknown[]) => void;
23
23
  isAllManageChecked: (group: CategoryGroup) => boolean;
24
- isAllManageIndeterminate: (group: CategoryGroup) => boolean;
25
24
  toggleAllManage: (group: CategoryGroup) => void;
26
25
  isManageChecked: (group: CategoryGroup, subject: string) => boolean;
27
26
  isManageIndeterminate: (group: CategoryGroup, subject: string) => boolean;
@@ -1,2 +1,329 @@
1
- import type { HrmRestaurant } from '@/types/restaurant';
2
- export declare function useRestaurantMap(): import("vue").ComputedRef<Record<string, HrmRestaurant>>;
1
+ export declare function useRestaurantMap(): import("vue").ComputedRef<Record<string, {
2
+ channel?: string | null | undefined;
3
+ machineId?: string | null | undefined;
4
+ catalogId?: string | null | undefined;
5
+ customAttributes?: Record<string, any> | null | undefined;
6
+ takeaway?: {
7
+ catalogId?: string | null | undefined;
8
+ } | null | undefined;
9
+ inHouseDelivery?: {
10
+ taxes?: Record<string, {
11
+ inclusive: boolean;
12
+ taxCode: string;
13
+ systemCode: string;
14
+ }> | null | undefined;
15
+ deliveryTime?: {
16
+ time?: string[] | null | undefined;
17
+ custom?: {
18
+ 0: {
19
+ hours: {
20
+ end: string;
21
+ start: string;
22
+ }[];
23
+ enable: boolean;
24
+ };
25
+ 2: {
26
+ hours: {
27
+ end: string;
28
+ start: string;
29
+ }[];
30
+ enable: boolean;
31
+ };
32
+ 1: {
33
+ hours: {
34
+ end: string;
35
+ start: string;
36
+ }[];
37
+ enable: boolean;
38
+ };
39
+ 3: {
40
+ hours: {
41
+ end: string;
42
+ start: string;
43
+ }[];
44
+ enable: boolean;
45
+ };
46
+ 4: {
47
+ hours: {
48
+ end: string;
49
+ start: string;
50
+ }[];
51
+ enable: boolean;
52
+ };
53
+ 5: {
54
+ hours: {
55
+ end: string;
56
+ start: string;
57
+ }[];
58
+ enable: boolean;
59
+ };
60
+ 6: {
61
+ hours: {
62
+ end: string;
63
+ start: string;
64
+ }[];
65
+ enable: boolean;
66
+ };
67
+ } | null | undefined;
68
+ day: {
69
+ max: number;
70
+ min: number;
71
+ };
72
+ } | null | undefined;
73
+ paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
74
+ offlinePaymentTypes?: {
75
+ name: string;
76
+ instruction: string;
77
+ }[] | null | undefined;
78
+ autoAccept?: boolean | null | undefined;
79
+ autoAcceptPaidOnly?: boolean | null | undefined;
80
+ ignoreStock?: boolean | null | undefined;
81
+ catalogId: string | null;
82
+ enable: boolean;
83
+ areas: {
84
+ minPurchase?: {
85
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
86
+ amount: number;
87
+ precision: number;
88
+ } | null | undefined;
89
+ freeAfterTotal?: {
90
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
91
+ amount: number;
92
+ precision: number;
93
+ } | null | undefined;
94
+ polygon: number[][];
95
+ deliveryFee: {
96
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
97
+ amount: number;
98
+ precision: number;
99
+ };
100
+ }[];
101
+ term: string;
102
+ } | null | undefined;
103
+ pickup?: {
104
+ catalogId?: string | null | undefined;
105
+ paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
106
+ offlinePaymentTypes?: {
107
+ name: string;
108
+ instruction: string;
109
+ }[] | null | undefined;
110
+ autoAccept?: boolean | null | undefined;
111
+ autoAcceptPaidOnly?: boolean | null | undefined;
112
+ ignoreStock?: boolean | null | undefined;
113
+ pickupTime?: {
114
+ day: {
115
+ max: number;
116
+ min: number;
117
+ };
118
+ } | null | undefined;
119
+ pickupPointConfig?: {
120
+ restaurantEnable: boolean;
121
+ points: {
122
+ name: string;
123
+ address: string;
124
+ coordinates: number[];
125
+ }[];
126
+ } | null | undefined;
127
+ } | null | undefined;
128
+ dineIn?: {
129
+ paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
130
+ offlinePaymentTypes?: {
131
+ name: string;
132
+ instruction: string;
133
+ }[] | null | undefined;
134
+ ignoreStock?: boolean | null | undefined;
135
+ staticQr?: boolean | null | undefined;
136
+ disableItemRemark?: boolean | null | undefined;
137
+ acceptQueue?: boolean | null | undefined;
138
+ anonymousOrder: boolean;
139
+ } | null | undefined;
140
+ pf_business?: {
141
+ internal?: boolean | null | undefined;
142
+ url?: string | null | undefined;
143
+ expiredAt?: string | null | undefined;
144
+ agentId?: string | null | undefined;
145
+ attributeSettings?: {
146
+ options?: any[] | null | undefined;
147
+ type: "string" | "number" | "boolean" | "date";
148
+ key: string;
149
+ entity: "item" | "group" | "restaurant" | "inventorySku" | "inventoryRecipe" | "warehouse";
150
+ }[] | null | undefined;
151
+ pf_agent?: {
152
+ clickupId?: string | null | undefined;
153
+ members?: {
154
+ pf_user?: {
155
+ email?: string | null | undefined;
156
+ phoneNumber?: string | null | undefined;
157
+ birthday?: string | null | undefined;
158
+ gender?: "MALE" | "FEMALE" | null | undefined;
159
+ addresses?: {
160
+ name: string;
161
+ address: string;
162
+ coordinates: number[];
163
+ }[] | null | undefined;
164
+ photoURL?: string | null | undefined;
165
+ displayName?: string | null | undefined;
166
+ imported?: {
167
+ raw: Record<string, any>;
168
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
169
+ } | null | undefined;
170
+ _id: string;
171
+ } | null | undefined;
172
+ role: "ADMIN";
173
+ userId: string;
174
+ }[] | null | undefined;
175
+ code: string;
176
+ name: string;
177
+ _id: string;
178
+ isReseller: boolean;
179
+ } | null | undefined;
180
+ thumbnail?: string | null | undefined;
181
+ billingInfos?: {
182
+ _id?: string | null | undefined;
183
+ name: string;
184
+ address: {
185
+ coordinates?: number[] | null | undefined;
186
+ line2?: string | null | undefined;
187
+ state: string;
188
+ country: string;
189
+ line1: string;
190
+ city: string;
191
+ postcode: string;
192
+ };
193
+ email: string;
194
+ companyName: string;
195
+ contact: string;
196
+ }[] | null | undefined;
197
+ customerDisplayImages?: {
198
+ url: string;
199
+ restaurantIds: string[];
200
+ }[] | null | undefined;
201
+ name: string;
202
+ _id: string;
203
+ ownerId: string;
204
+ restaurantQuota: number;
205
+ warehouseQuota: number;
206
+ menuVersion: string;
207
+ } | null | undefined;
208
+ features?: string[] | null | undefined;
209
+ machineOtp?: string | null | undefined;
210
+ machineOtpExpiredAt?: string | null | undefined;
211
+ posVersion?: string | null | undefined;
212
+ posHeartbeat?: string | null | undefined;
213
+ posVersionHistory?: Record<string, string> | null | undefined;
214
+ additionalCatalogs?: string[] | null | undefined;
215
+ feedmeDelivery?: {
216
+ instruction?: string | null | undefined;
217
+ catalogId?: string | null | undefined;
218
+ term?: string | null | undefined;
219
+ autoAccept?: boolean | null | undefined;
220
+ ignoreStock?: boolean | null | undefined;
221
+ enable: boolean;
222
+ } | null | undefined;
223
+ couchDbPassword?: string | null | undefined;
224
+ apiToken?: string | null | undefined;
225
+ remoteSupports?: {
226
+ anydeskId?: string | null | undefined;
227
+ anydeskPassword?: string | null | undefined;
228
+ deviceName: string;
229
+ }[] | null | undefined;
230
+ payoutAccount?: Record<string, any> | null | undefined;
231
+ clearCount?: number | null | undefined;
232
+ queueSetting?: {
233
+ duration?: number | null | undefined;
234
+ enableOrder: boolean;
235
+ initialNumber: number;
236
+ endNumber: number;
237
+ currentNumber: number;
238
+ autoCalledLimit: number;
239
+ } | null | undefined;
240
+ tableMappingSetting?: {
241
+ enable?: boolean | null | undefined;
242
+ showSeat?: boolean | null | undefined;
243
+ mapBorderColor?: number | null | undefined;
244
+ mapLineColor?: number | null | undefined;
245
+ } | null | undefined;
246
+ foodpandaDelivery?: any;
247
+ grabfoodDelivery?: any;
248
+ shopeefoodDelivery?: any;
249
+ _id: string;
250
+ expiredAt: string;
251
+ businessId: string;
252
+ profile: {
253
+ code?: string | null | undefined;
254
+ url?: string | null | undefined;
255
+ description?: string | null | undefined;
256
+ _id?: string | null | undefined;
257
+ legalName?: string | null | undefined;
258
+ sstRegNo?: string | null | undefined;
259
+ discovery?: boolean | null | undefined;
260
+ coverPhoto?: string | null | undefined;
261
+ thumbnailPhoto?: string | null | undefined;
262
+ photos?: string[] | null | undefined;
263
+ operatingHours?: {
264
+ 0: {
265
+ hours: {
266
+ end: string;
267
+ start: string;
268
+ }[];
269
+ enable: boolean;
270
+ };
271
+ 2: {
272
+ hours: {
273
+ end: string;
274
+ start: string;
275
+ }[];
276
+ enable: boolean;
277
+ };
278
+ 1: {
279
+ hours: {
280
+ end: string;
281
+ start: string;
282
+ }[];
283
+ enable: boolean;
284
+ };
285
+ 3: {
286
+ hours: {
287
+ end: string;
288
+ start: string;
289
+ }[];
290
+ enable: boolean;
291
+ };
292
+ 4: {
293
+ hours: {
294
+ end: string;
295
+ start: string;
296
+ }[];
297
+ enable: boolean;
298
+ };
299
+ 5: {
300
+ hours: {
301
+ end: string;
302
+ start: string;
303
+ }[];
304
+ enable: boolean;
305
+ };
306
+ 6: {
307
+ hours: {
308
+ end: string;
309
+ start: string;
310
+ }[];
311
+ enable: boolean;
312
+ };
313
+ } | null | undefined;
314
+ tags?: string[] | null | undefined;
315
+ name: string;
316
+ address: {
317
+ coordinates?: number[] | null | undefined;
318
+ line2?: string | null | undefined;
319
+ state: string;
320
+ country: string;
321
+ line1: string;
322
+ city: string;
323
+ postcode: string;
324
+ };
325
+ email: string;
326
+ phoneNo: string;
327
+ regNo: string;
328
+ };
329
+ }>>;
@@ -0,0 +1,5 @@
1
+ import { type CountryCode } from 'libphonenumber-js';
2
+ export declare function useSupportedCountries(): {
3
+ supportedCountries: import("vue").Ref<CountryCode[], CountryCode[]>;
4
+ ready: import("vue").Ref<boolean, boolean>;
5
+ };
@@ -1,6 +1,5 @@
1
1
  import type { Role, IFdtoUpdateRoleReq } from '@/types/role';
2
2
  export declare const useRoleStore: () => {
3
- isLoading: import("vue").Ref<boolean, boolean>;
4
3
  roles: import("vue").Ref<{
5
4
  restaurants: {
6
5
  id: string;
@@ -22,8 +21,8 @@ export declare const useRoleStore: () => {
22
21
  _id: string;
23
22
  permissions: Record<string, any>[];
24
23
  }[]>;
24
+ isLoading: import("vue").Ref<boolean, boolean>;
25
25
  $state: {
26
- isLoading: boolean;
27
26
  roles: {
28
27
  restaurants: {
29
28
  id: string;
@@ -35,6 +34,7 @@ export declare const useRoleStore: () => {
35
34
  _id: string;
36
35
  permissions: Record<string, any>[];
37
36
  }[];
37
+ isLoading: boolean;
38
38
  } & import("pinia").PiniaCustomStateProperties<Pick<{
39
39
  roles: import("vue").Ref<{
40
40
  restaurants: {
@@ -62,9 +62,8 @@ export declare const useRoleStore: () => {
62
62
  createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
63
63
  updateRole: (roleId: string, dto: IFdtoUpdateRoleReq) => Promise<void>;
64
64
  deleteRole: (role: Role) => Promise<void>;
65
- }, "isLoading" | "roles">>;
65
+ }, "roles" | "isLoading">>;
66
66
  $patch(partialState: import("pinia")._DeepPartial<{
67
- isLoading: boolean;
68
67
  roles: {
69
68
  restaurants: {
70
69
  id: string;
@@ -76,9 +75,9 @@ export declare const useRoleStore: () => {
76
75
  _id: string;
77
76
  permissions: Record<string, any>[];
78
77
  }[];
78
+ isLoading: boolean;
79
79
  }>): void;
80
80
  $patch<F extends (state: {
81
- isLoading: boolean;
82
81
  roles: {
83
82
  restaurants: {
84
83
  id: string;
@@ -90,6 +89,7 @@ export declare const useRoleStore: () => {
90
89
  _id: string;
91
90
  permissions: Record<string, any>[];
92
91
  }[];
92
+ isLoading: boolean;
93
93
  }) => any>(stateMutator: ReturnType<F> extends Promise<any> ? never : F): void;
94
94
  $reset(): void;
95
95
  $subscribe(callback: import("pinia").SubscriptionCallback<Pick<{
@@ -119,7 +119,7 @@ export declare const useRoleStore: () => {
119
119
  createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
120
120
  updateRole: (roleId: string, dto: IFdtoUpdateRoleReq) => Promise<void>;
121
121
  deleteRole: (role: Role) => Promise<void>;
122
- }, "isLoading" | "roles">>, options?: {
122
+ }, "roles" | "isLoading">>, options?: {
123
123
  detached?: boolean;
124
124
  } & import("vue").WatchOptions): () => void;
125
125
  $onAction(callback: import("pinia").StoreOnActionListener<"role", Pick<{
@@ -149,7 +149,7 @@ export declare const useRoleStore: () => {
149
149
  createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
150
150
  updateRole: (roleId: string, dto: IFdtoUpdateRoleReq) => Promise<void>;
151
151
  deleteRole: (role: Role) => Promise<void>;
152
- }, "isLoading" | "roles">, Pick<{
152
+ }, "roles" | "isLoading">, Pick<{
153
153
  roles: import("vue").Ref<{
154
154
  restaurants: {
155
155
  id: string;
@@ -6,7 +6,7 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
6
6
  phoneNumber: string;
7
7
  email: string;
8
8
  restaurants: string[];
9
- managableRestaurantIds: string[] | null;
9
+ managableRestaurantIds: string[];
10
10
  permissions: {
11
11
  reason?: string | null | undefined | undefined;
12
12
  conditions?: any;
@@ -52,7 +52,7 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
52
52
  phoneNumber: string;
53
53
  email: string;
54
54
  restaurants: string[];
55
- managableRestaurantIds: string[] | null;
55
+ managableRestaurantIds: string[];
56
56
  permissions: {
57
57
  reason?: string | null | undefined | undefined;
58
58
  conditions?: any;
@@ -107,7 +107,7 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
107
107
  phoneNumber: string;
108
108
  email: string;
109
109
  restaurants: string[];
110
- managableRestaurantIds: string[] | null;
110
+ managableRestaurantIds: string[];
111
111
  permissions: {
112
112
  reason?: string | null | undefined | undefined;
113
113
  conditions?: any;
@@ -153,7 +153,7 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
153
153
  phoneNumber: string;
154
154
  email: string;
155
155
  restaurants: string[];
156
- managableRestaurantIds: string[] | null;
156
+ managableRestaurantIds: string[];
157
157
  permissions: {
158
158
  reason?: string | null | undefined | undefined;
159
159
  conditions?: any;
@@ -208,7 +208,7 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
208
208
  phoneNumber: string;
209
209
  email: string;
210
210
  restaurants: string[];
211
- managableRestaurantIds: string[] | null;
211
+ managableRestaurantIds: string[];
212
212
  permissions: {
213
213
  reason?: string | null | undefined | undefined;
214
214
  conditions?: any;
@@ -254,7 +254,7 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
254
254
  phoneNumber: string;
255
255
  email: string;
256
256
  restaurants: string[];
257
- managableRestaurantIds: string[] | null;
257
+ managableRestaurantIds: string[];
258
258
  permissions: {
259
259
  reason?: string | null | undefined | undefined;
260
260
  conditions?: any;
@@ -1,15 +1,4 @@
1
1
  import type { FdoAddress, FdoProfile, FdoRestaurant } from '@feedmepos/core/entity';
2
- export interface HrmRestaurantProfileSummary {
3
- name: string;
4
- code?: string;
5
- legalName: string;
6
- }
7
- export interface HrmRestaurant {
8
- _id: string;
9
- businessId: string;
10
- profile: HrmRestaurantProfileSummary;
11
- managable: boolean;
12
- }
13
2
  export interface Address extends FdoAddress {
14
3
  formatted: string;
15
4
  isValidPostcode: boolean;
@@ -57,7 +57,7 @@ export interface FTeamMember {
57
57
  phoneNumber: string;
58
58
  email: string;
59
59
  restaurants: string[];
60
- managableRestaurantIds: string[] | null;
60
+ managableRestaurantIds: string[];
61
61
  permissions: FdoPermissionRule[];
62
62
  permissionLabels: string[];
63
63
  doc: IFdtoPortalUser;
@@ -11,15 +11,12 @@ export declare const i18nMessages: {
11
11
  code: string;
12
12
  name: string;
13
13
  restaurants: string;
14
- assignedRole: string;
15
14
  since: string;
16
15
  };
17
16
  form: {
18
17
  add: string;
19
18
  update: string;
20
19
  employeeSetting: string;
21
- assignmentSection: string;
22
- addAnother: string;
23
20
  masterUserConfig: string;
24
21
  code: string;
25
22
  masterUser: string;
@@ -29,7 +26,6 @@ export declare const i18nMessages: {
29
26
  passcodeRequired: string;
30
27
  passcodeGenerate: string;
31
28
  atLeastOneRestaurant: string;
32
- roleRequired: string;
33
29
  all: string;
34
30
  role: string;
35
31
  name: string;
@@ -214,15 +210,12 @@ export declare const i18nMessages: {
214
210
  code: string;
215
211
  name: string;
216
212
  restaurants: string;
217
- assignedRole: string;
218
213
  since: string;
219
214
  };
220
215
  form: {
221
216
  add: string;
222
217
  update: string;
223
218
  employeeSetting: string;
224
- assignmentSection: string;
225
- addAnother: string;
226
219
  masterUserConfig: string;
227
220
  code: string;
228
221
  masterUser: string;
@@ -232,7 +225,6 @@ export declare const i18nMessages: {
232
225
  passcodeRequired: string;
233
226
  passcodeGenerate: string;
234
227
  atLeastOneRestaurant: string;
235
- roleRequired: string;
236
228
  all: string;
237
229
  role: string;
238
230
  name: string;
@@ -417,15 +409,12 @@ export declare const i18nMessages: {
417
409
  code: string;
418
410
  name: string;
419
411
  restaurants: string;
420
- assignedRole: string;
421
412
  since: string;
422
413
  };
423
414
  form: {
424
415
  add: string;
425
416
  update: string;
426
417
  employeeSetting: string;
427
- assignmentSection: string;
428
- addAnother: string;
429
418
  masterUserConfig: string;
430
419
  code: string;
431
420
  masterUser: string;
@@ -435,7 +424,6 @@ export declare const i18nMessages: {
435
424
  passcodeRequired: string;
436
425
  passcodeGenerate: string;
437
426
  atLeastOneRestaurant: string;
438
- roleRequired: string;
439
427
  all: string;
440
428
  role: string;
441
429
  name: string;
@@ -619,15 +607,12 @@ export declare const i18nMessages: {
619
607
  code: string;
620
608
  name: string;
621
609
  restaurants: string;
622
- assignedRole: string;
623
610
  since: string;
624
611
  };
625
612
  form: {
626
613
  add: string;
627
614
  update: string;
628
615
  employeeSetting: string;
629
- assignmentSection: string;
630
- addAnother: string;
631
616
  masterUserConfig: string;
632
617
  code: string;
633
618
  masterUser: string;
@@ -637,7 +622,6 @@ export declare const i18nMessages: {
637
622
  passcodeRequired: string;
638
623
  passcodeGenerate: string;
639
624
  atLeastOneRestaurant: string;
640
- roleRequired: string;
641
625
  all: string;
642
626
  role: string;
643
627
  name: string;