@feedmepos/mf-hrm-portal 2.0.17-dev.5 → 2.0.18-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/{AuditLogList-Dl3Nmf00.js → AuditLogList-CaoW9uYd.js} +5 -5
  2. package/dist/EmployeeList-DcMvF9U5.js +839 -0
  3. package/dist/Main-CleutFvF.js +567 -0
  4. package/dist/{Main-CQ3KwxDY.js → Main-CvW6Vu8N.js} +2055 -2055
  5. package/dist/{Main-w0XUUaBp.js → Main-D7k57uq5.js} +32 -32
  6. package/dist/{PermissionSetList-B8qNOWH6.js → PermissionSetList-CM7kbWkO.js} +6 -6
  7. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C9VUjAu_.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Ces9YwYB.js} +525 -525
  8. package/dist/{RoleList-DMFJsUZv.js → RoleList-DR3eVJ9f.js} +102 -102
  9. package/dist/TeamMemberList-CZZv4Pu5.js +1038 -0
  10. package/dist/{TimesheetList-Bwp9_xHe.js → TimesheetList-WqqoKPbg.js} +132 -126
  11. package/dist/{app-COJbSNM4.js → app-R5EioPr4.js} +4 -4
  12. package/dist/app.js +1 -1
  13. package/dist/{dayjs.min-CcBi6N-K.js → dayjs.min-CN15Ft3o.js} +1 -1
  14. package/dist/employee-DwQlWLkL.js +204 -0
  15. package/dist/{iteration-JOKbtlLf.js → iteration-UBGGRoxQ.js} +9258 -9213
  16. package/dist/{lodash-D5xlVzib.js → lodash-CC6qHVUo.js} +1 -1
  17. package/dist/{rule-3sXHiW0y.js → rule-B519XbW6.js} +273 -273
  18. package/dist/src/api/restaurant/index.d.ts +5 -0
  19. package/dist/src/composables/useRestaurantMap.d.ts +2 -329
  20. package/dist/src/stores/restaurant.d.ts +181 -0
  21. package/dist/src/stores/role.d.ts +7 -7
  22. package/dist/src/types/restaurant.d.ts +11 -0
  23. package/dist/style.css +1 -1
  24. package/dist/{team-CyNektSD.js → team-BGLhgx5P.js} +1 -1
  25. package/dist/{timesheet-DkD3AysG.js → timesheet-BylrXRfd.js} +2 -2
  26. package/dist/tsconfig.app.tsbuildinfo +1 -1
  27. package/dist/useAppStore-Akl8AoVN.js +171 -0
  28. package/dist/{useLoading-4TNmhm5N.js → useLoading-rbrVwWuj.js} +1 -1
  29. package/dist/{useReportPermissions-CWMFFb8E.js → useReportPermissions-BOEZU86S.js} +3 -3
  30. package/package.json +1 -1
  31. package/dist/EmployeeList-DBd_rVW2.js +0 -831
  32. package/dist/Main-pTgqNncY.js +0 -560
  33. package/dist/TeamMemberList-BLRTfKLz.js +0 -1031
  34. package/dist/employee-xiV0LfnL.js +0 -204
  35. package/dist/useAppStore-CvmsaYSG.js +0 -171
@@ -0,0 +1,5 @@
1
+ import type { HrmRestaurant } from '@/types/restaurant';
2
+ declare const RestaurantAPI: {
3
+ readRestaurants(): Promise<HrmRestaurant[]>;
4
+ };
5
+ export default RestaurantAPI;
@@ -1,329 +1,2 @@
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
- }>>;
1
+ import type { HrmRestaurant } from '@/types/restaurant';
2
+ export declare function useRestaurantMap(): import("vue").ComputedRef<Record<string, HrmRestaurant>>;
@@ -0,0 +1,181 @@
1
+ import type { HrmRestaurant } from '@/types/restaurant';
2
+ export declare const useRestaurantStore: () => {
3
+ restaurants: import("vue").Ref<{
4
+ _id: string;
5
+ businessId: string;
6
+ profile: {
7
+ name: string;
8
+ code?: string | undefined;
9
+ legalName: string;
10
+ };
11
+ managable: boolean;
12
+ }[], HrmRestaurant[] | {
13
+ _id: string;
14
+ businessId: string;
15
+ profile: {
16
+ name: string;
17
+ code?: string | undefined;
18
+ legalName: string;
19
+ };
20
+ managable: boolean;
21
+ }[]>;
22
+ isLoading: import("vue").Ref<boolean, boolean>;
23
+ $state: {
24
+ restaurants: {
25
+ _id: string;
26
+ businessId: string;
27
+ profile: {
28
+ name: string;
29
+ code?: string | undefined;
30
+ legalName: string;
31
+ };
32
+ managable: boolean;
33
+ }[];
34
+ isLoading: boolean;
35
+ } & import("pinia").PiniaCustomStateProperties<Pick<{
36
+ restaurants: import("vue").Ref<{
37
+ _id: string;
38
+ businessId: string;
39
+ profile: {
40
+ name: string;
41
+ code?: string | undefined;
42
+ legalName: string;
43
+ };
44
+ managable: boolean;
45
+ }[], HrmRestaurant[] | {
46
+ _id: string;
47
+ businessId: string;
48
+ profile: {
49
+ name: string;
50
+ code?: string | undefined;
51
+ legalName: string;
52
+ };
53
+ managable: boolean;
54
+ }[]>;
55
+ isLoading: import("vue").Ref<boolean, boolean>;
56
+ readRestaurants: (force?: boolean) => Promise<void>;
57
+ }, "restaurants" | "isLoading">>;
58
+ $patch(partialState: import("pinia")._DeepPartial<{
59
+ restaurants: {
60
+ _id: string;
61
+ businessId: string;
62
+ profile: {
63
+ name: string;
64
+ code?: string | undefined;
65
+ legalName: string;
66
+ };
67
+ managable: boolean;
68
+ }[];
69
+ isLoading: boolean;
70
+ }>): void;
71
+ $patch<F extends (state: {
72
+ restaurants: {
73
+ _id: string;
74
+ businessId: string;
75
+ profile: {
76
+ name: string;
77
+ code?: string | undefined;
78
+ legalName: string;
79
+ };
80
+ managable: boolean;
81
+ }[];
82
+ isLoading: boolean;
83
+ }) => any>(stateMutator: ReturnType<F> extends Promise<any> ? never : F): void;
84
+ $reset(): void;
85
+ $subscribe(callback: import("pinia").SubscriptionCallback<Pick<{
86
+ restaurants: import("vue").Ref<{
87
+ _id: string;
88
+ businessId: string;
89
+ profile: {
90
+ name: string;
91
+ code?: string | undefined;
92
+ legalName: string;
93
+ };
94
+ managable: boolean;
95
+ }[], HrmRestaurant[] | {
96
+ _id: string;
97
+ businessId: string;
98
+ profile: {
99
+ name: string;
100
+ code?: string | undefined;
101
+ legalName: string;
102
+ };
103
+ managable: boolean;
104
+ }[]>;
105
+ isLoading: import("vue").Ref<boolean, boolean>;
106
+ readRestaurants: (force?: boolean) => Promise<void>;
107
+ }, "restaurants" | "isLoading">>, options?: {
108
+ detached?: boolean;
109
+ } & import("vue").WatchOptions): () => void;
110
+ $onAction(callback: import("pinia").StoreOnActionListener<"restaurant", Pick<{
111
+ restaurants: import("vue").Ref<{
112
+ _id: string;
113
+ businessId: string;
114
+ profile: {
115
+ name: string;
116
+ code?: string | undefined;
117
+ legalName: string;
118
+ };
119
+ managable: boolean;
120
+ }[], HrmRestaurant[] | {
121
+ _id: string;
122
+ businessId: string;
123
+ profile: {
124
+ name: string;
125
+ code?: string | undefined;
126
+ legalName: string;
127
+ };
128
+ managable: boolean;
129
+ }[]>;
130
+ isLoading: import("vue").Ref<boolean, boolean>;
131
+ readRestaurants: (force?: boolean) => Promise<void>;
132
+ }, "restaurants" | "isLoading">, Pick<{
133
+ restaurants: import("vue").Ref<{
134
+ _id: string;
135
+ businessId: string;
136
+ profile: {
137
+ name: string;
138
+ code?: string | undefined;
139
+ legalName: string;
140
+ };
141
+ managable: boolean;
142
+ }[], HrmRestaurant[] | {
143
+ _id: string;
144
+ businessId: string;
145
+ profile: {
146
+ name: string;
147
+ code?: string | undefined;
148
+ legalName: string;
149
+ };
150
+ managable: boolean;
151
+ }[]>;
152
+ isLoading: import("vue").Ref<boolean, boolean>;
153
+ readRestaurants: (force?: boolean) => Promise<void>;
154
+ }, never>, Pick<{
155
+ restaurants: import("vue").Ref<{
156
+ _id: string;
157
+ businessId: string;
158
+ profile: {
159
+ name: string;
160
+ code?: string | undefined;
161
+ legalName: string;
162
+ };
163
+ managable: boolean;
164
+ }[], HrmRestaurant[] | {
165
+ _id: string;
166
+ businessId: string;
167
+ profile: {
168
+ name: string;
169
+ code?: string | undefined;
170
+ legalName: string;
171
+ };
172
+ managable: boolean;
173
+ }[]>;
174
+ isLoading: import("vue").Ref<boolean, boolean>;
175
+ readRestaurants: (force?: boolean) => Promise<void>;
176
+ }, "readRestaurants">>, detached?: boolean): () => void;
177
+ $dispose(): void;
178
+ $id: "restaurant";
179
+ _customProperties: Set<string>;
180
+ readRestaurants: (force?: boolean) => Promise<void>;
181
+ };
@@ -1,5 +1,6 @@
1
1
  import type { Role, IFdtoUpdateRoleReq } from '@/types/role';
2
2
  export declare const useRoleStore: () => {
3
+ isLoading: import("vue").Ref<boolean, boolean>;
3
4
  roles: import("vue").Ref<{
4
5
  restaurants: {
5
6
  id: string;
@@ -21,8 +22,8 @@ export declare const useRoleStore: () => {
21
22
  _id: string;
22
23
  permissions: Record<string, any>[];
23
24
  }[]>;
24
- isLoading: import("vue").Ref<boolean, boolean>;
25
25
  $state: {
26
+ isLoading: boolean;
26
27
  roles: {
27
28
  restaurants: {
28
29
  id: string;
@@ -34,7 +35,6 @@ export declare const useRoleStore: () => {
34
35
  _id: string;
35
36
  permissions: Record<string, any>[];
36
37
  }[];
37
- isLoading: boolean;
38
38
  } & import("pinia").PiniaCustomStateProperties<Pick<{
39
39
  roles: import("vue").Ref<{
40
40
  restaurants: {
@@ -62,8 +62,9 @@ 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
- }, "roles" | "isLoading">>;
65
+ }, "isLoading" | "roles">>;
66
66
  $patch(partialState: import("pinia")._DeepPartial<{
67
+ isLoading: boolean;
67
68
  roles: {
68
69
  restaurants: {
69
70
  id: string;
@@ -75,9 +76,9 @@ export declare const useRoleStore: () => {
75
76
  _id: string;
76
77
  permissions: Record<string, any>[];
77
78
  }[];
78
- isLoading: boolean;
79
79
  }>): void;
80
80
  $patch<F extends (state: {
81
+ isLoading: boolean;
81
82
  roles: {
82
83
  restaurants: {
83
84
  id: string;
@@ -89,7 +90,6 @@ export declare const useRoleStore: () => {
89
90
  _id: string;
90
91
  permissions: Record<string, any>[];
91
92
  }[];
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
- }, "roles" | "isLoading">>, options?: {
122
+ }, "isLoading" | "roles">>, 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
- }, "roles" | "isLoading">, Pick<{
152
+ }, "isLoading" | "roles">, Pick<{
153
153
  roles: import("vue").Ref<{
154
154
  restaurants: {
155
155
  id: string;
@@ -1,4 +1,15 @@
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
+ }
2
13
  export interface Address extends FdoAddress {
3
14
  formatted: string;
4
15
  isValidPostcode: boolean;
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .employee-list-table[data-v-1910886a] [class~=gap-24]>div:first-child{display:none}.user-info-icon[data-v-c2c7ed35]{flex-shrink:0;cursor:pointer;font-size:.75rem;font-weight:600;line-height:1rem;letter-spacing:.02em;text-decoration-line:none;color:var(--fm-color-neutral-white);display:flex;align-items:center;justify-content:center;background:linear-gradient(201deg,#fc9b40 10.3%,#ff6052 98.36%)}.user-info-icon--md[data-v-c2c7ed35]{height:2.25rem;width:2.25rem;border-radius:8px}.user-info-icon--lg[data-v-c2c7ed35]{height:48px;width:48px;border-radius:16px}.profile-menu[data-v-c2c7ed35]{width:280px;padding-top:12px;padding-bottom:12px}.profile-menu--profile[data-v-c2c7ed35]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(8px * var(--tw-space-x-reverse));margin-left:calc(8px * calc(1 - var(--tw-space-x-reverse)))}.profile-menu--profile[data-v-c2c7ed35]{padding:16px 16px 12px;border-radius:8px;display:flex;align-items:center;border-width:1px;border-color:var(--fm-color-neutral-gray-200)}.profile-menu--profile .profile-displayName[data-v-c2c7ed35]{font-size:1rem;font-weight:400;line-height:1.25rem;letter-spacing:.005em;text-decoration-line:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-menu--profile .profile-email[data-v-c2c7ed35],.profile-menu--profile .profile-phone[data-v-c2c7ed35]{font-size:.875rem;font-weight:400;line-height:1.125rem;letter-spacing:.0125em;text-decoration-line:none;color:var(--fm-color-neutral-gray-300);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audit-log-list-table[data-v-5566060e] [class~=gap-24]>div:first-child{display:none}.audit-log-action-label[data-v-5566060e]{display:block;width:100%;max-width:100%;max-height:6.25rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.25rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-action-label[data-v-5566060e]::-webkit-scrollbar{display:none}.audit-log-operation-label-detail[data-v-5566060e]{max-height:6.875rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.375rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-operation-label-detail[data-v-5566060e]::-webkit-scrollbar{display:none}
1
+ .employee-list-table[data-v-e931839a] [class~=gap-24]>div:first-child{display:none}.user-info-icon[data-v-c2c7ed35]{flex-shrink:0;cursor:pointer;font-size:.75rem;font-weight:600;line-height:1rem;letter-spacing:.02em;text-decoration-line:none;color:var(--fm-color-neutral-white);display:flex;align-items:center;justify-content:center;background:linear-gradient(201deg,#fc9b40 10.3%,#ff6052 98.36%)}.user-info-icon--md[data-v-c2c7ed35]{height:2.25rem;width:2.25rem;border-radius:8px}.user-info-icon--lg[data-v-c2c7ed35]{height:48px;width:48px;border-radius:16px}.profile-menu[data-v-c2c7ed35]{width:280px;padding-top:12px;padding-bottom:12px}.profile-menu--profile[data-v-c2c7ed35]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(8px * var(--tw-space-x-reverse));margin-left:calc(8px * calc(1 - var(--tw-space-x-reverse)))}.profile-menu--profile[data-v-c2c7ed35]{padding:16px 16px 12px;border-radius:8px;display:flex;align-items:center;border-width:1px;border-color:var(--fm-color-neutral-gray-200)}.profile-menu--profile .profile-displayName[data-v-c2c7ed35]{font-size:1rem;font-weight:400;line-height:1.25rem;letter-spacing:.005em;text-decoration-line:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-menu--profile .profile-email[data-v-c2c7ed35],.profile-menu--profile .profile-phone[data-v-c2c7ed35]{font-size:.875rem;font-weight:400;line-height:1.125rem;letter-spacing:.0125em;text-decoration-line:none;color:var(--fm-color-neutral-gray-300);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audit-log-list-table[data-v-5566060e] [class~=gap-24]>div:first-child{display:none}.audit-log-action-label[data-v-5566060e]{display:block;width:100%;max-width:100%;max-height:6.25rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.25rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-action-label[data-v-5566060e]::-webkit-scrollbar{display:none}.audit-log-operation-label-detail[data-v-5566060e]{max-height:6.875rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.375rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-operation-label-detail[data-v-5566060e]::-webkit-scrollbar{display:none}
@@ -1,6 +1,6 @@
1
1
  import { defineStore as d } from "pinia";
2
2
  import { ref as s, computed as o } from "vue";
3
- import { t as f } from "./rule-3sXHiW0y.js";
3
+ import { t as f } from "./rule-B519XbW6.js";
4
4
  const I = d("team", () => {
5
5
  const r = s([]), a = s(!1), m = o(
6
6
  () => Object.fromEntries(r.value.map((e) => [e.doc.userId, e.name]))
@@ -1,7 +1,7 @@
1
- import { d as i } from "./dayjs.min-CcBi6N-K.js";
1
+ import { d as i } from "./dayjs.min-CN15Ft3o.js";
2
2
  import { defineStore as p, storeToRefs as T } from "pinia";
3
3
  import { ref as l } from "vue";
4
- import { b as c, g as y, s as S } from "./iteration-JOKbtlLf.js";
4
+ import { b as c, g as y, s as S } from "./iteration-UBGGRoxQ.js";
5
5
  import { i as f, f as g } from "./utils-BZkjJbju.js";
6
6
  const u = {
7
7
  async readTimesheets(t, e) {