@feedmepos/mf-settings 0.0.1

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 (63) hide show
  1. package/README.md +46 -0
  2. package/dist/app.js +90121 -0
  3. package/dist/favicon.ico +0 -0
  4. package/dist/node_modules/@feedmepos/portal-shared/src/api/index.d.ts +3 -0
  5. package/dist/node_modules/@feedmepos/portal-shared/src/api/public.d.ts +5 -0
  6. package/dist/node_modules/@feedmepos/portal-shared/src/components/form/FormLabel.vue.d.ts +33 -0
  7. package/dist/node_modules/@feedmepos/portal-shared/src/components/form/ImageDropField.vue.d.ts +42 -0
  8. package/dist/node_modules/@feedmepos/portal-shared/src/components/form/RestaurantSelector.vue.d.ts +28 -0
  9. package/dist/node_modules/@feedmepos/portal-shared/src/components/layout/FullScreenForm.vue.d.ts +32 -0
  10. package/dist/node_modules/@feedmepos/portal-shared/src/components/layout/PageLayout.vue.d.ts +24 -0
  11. package/dist/node_modules/@feedmepos/portal-shared/src/components/map/GoogleMap.vue.d.ts +79 -0
  12. package/dist/node_modules/@feedmepos/portal-shared/src/components/types.d.ts +95 -0
  13. package/dist/node_modules/@feedmepos/portal-shared/src/composable/clipboard.d.ts +3 -0
  14. package/dist/node_modules/@feedmepos/portal-shared/src/composable/loading.d.ts +29 -0
  15. package/dist/node_modules/@feedmepos/portal-shared/src/feature/featureMinVersion.d.ts +34 -0
  16. package/dist/node_modules/@feedmepos/portal-shared/src/helpers/contextMenu.d.ts +13 -0
  17. package/dist/node_modules/@feedmepos/portal-shared/src/helpers/createComponent.d.ts +7 -0
  18. package/dist/node_modules/@feedmepos/portal-shared/src/helpers/createForm.d.ts +2 -0
  19. package/dist/node_modules/@feedmepos/portal-shared/src/helpers/iteration.d.ts +10 -0
  20. package/dist/node_modules/@feedmepos/portal-shared/src/helpers/map.d.ts +370 -0
  21. package/dist/node_modules/@feedmepos/portal-shared/src/helpers/object.d.ts +6 -0
  22. package/dist/node_modules/@feedmepos/portal-shared/vite-preset.d.ts +10 -0
  23. package/dist/src/App.vue.d.ts +3 -0
  24. package/dist/src/Entry.vue.d.ts +2 -0
  25. package/dist/src/View/Business.vue.d.ts +2 -0
  26. package/dist/src/View/Device.vue.d.ts +2 -0
  27. package/dist/src/View/FoodCourt.vue.d.ts +2 -0
  28. package/dist/src/View/Payout.vue.d.ts +2 -0
  29. package/dist/src/View/bank.d.ts +36 -0
  30. package/dist/src/api/business.d.ts +9 -0
  31. package/dist/src/api/foodCourt.d.ts +16 -0
  32. package/dist/src/api/index.d.ts +7 -0
  33. package/dist/src/api/restaurant.d.ts +14 -0
  34. package/dist/src/app.d.ts +4 -0
  35. package/dist/src/components/NavigationTab.vue.d.ts +2 -0
  36. package/dist/src/components/business/Branding.vue.d.ts +2 -0
  37. package/dist/src/components/business/BusinessForm.vue.d.ts +41 -0
  38. package/dist/src/components/business/CoordinateDialog.vue.d.ts +27 -0
  39. package/dist/src/components/business/CoordinateInput.vue.d.ts +45 -0
  40. package/dist/src/components/business/GeneralInformation.vue.d.ts +15 -0
  41. package/dist/src/components/business/OperationHoursInput.vue.d.ts +28 -0
  42. package/dist/src/components/business/RestaurantAddress.vue.d.ts +49 -0
  43. package/dist/src/components/business/RestaurantForm.vue.d.ts +56 -0
  44. package/dist/src/components/foodcourt/CreateFoodCourt.vue.d.ts +26 -0
  45. package/dist/src/components/foodcourt/EditFoodCourt.vue.d.ts +28 -0
  46. package/dist/src/components/foodcourt/InviteFoodCourtMemberDialog.vue.d.ts +525 -0
  47. package/dist/src/components/foodcourt/foodCourt.d.ts +17 -0
  48. package/dist/src/components/payout/PayoutForm.vue.d.ts +79 -0
  49. package/dist/src/composable/search.d.ts +4 -0
  50. package/dist/src/extensions/business.d.ts +2 -0
  51. package/dist/src/extensions/profile.d.ts +27 -0
  52. package/dist/src/helpers/businessUrl.d.ts +2 -0
  53. package/dist/src/main.d.ts +1 -0
  54. package/dist/src/manager/restaurant.d.ts +12 -0
  55. package/dist/src/plugins/r2Storage.d.ts +12 -0
  56. package/dist/src/router/index.d.ts +2 -0
  57. package/dist/src/router/shared.d.ts +2 -0
  58. package/dist/src/types/business.d.ts +0 -0
  59. package/dist/src/types/permission.d.ts +68 -0
  60. package/dist/src/types/restaurant.d.ts +24 -0
  61. package/dist/style.css +1 -0
  62. package/dist/tsconfig.app.tsbuildinfo +1 -0
  63. package/package.json +83 -0
@@ -0,0 +1,525 @@
1
+ import { type PropType } from "vue";
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ team: {
4
+ type: PropType<{
5
+ dineIn: {
6
+ anonymousOrder: boolean;
7
+ paymentTypes: string[];
8
+ };
9
+ shortUrl?: string | undefined;
10
+ ownerId?: string | undefined;
11
+ pf_owner?: {
12
+ catalogId?: string | null | undefined;
13
+ pickup?: {
14
+ catalogId?: string | null | undefined;
15
+ autoAccept?: boolean | null | undefined;
16
+ pickupTime?: {
17
+ day: {
18
+ min: number;
19
+ max: number;
20
+ };
21
+ } | null | undefined;
22
+ pickupPointConfig?: {
23
+ restaurantEnable: boolean;
24
+ points: {
25
+ name: string;
26
+ address: string;
27
+ coordinates: number[];
28
+ }[];
29
+ } | null | undefined;
30
+ paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
31
+ offlinePaymentTypes?: {
32
+ name: string;
33
+ instruction: string;
34
+ }[] | null | undefined;
35
+ autoAcceptPaidOnly?: boolean | null | undefined;
36
+ ignoreStock?: boolean | null | undefined;
37
+ } | null | undefined;
38
+ dineIn?: {
39
+ paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
40
+ offlinePaymentTypes?: {
41
+ name: string;
42
+ instruction: string;
43
+ }[] | null | undefined;
44
+ ignoreStock?: boolean | null | undefined;
45
+ staticQr?: boolean | null | undefined;
46
+ disableItemRemark?: boolean | null | undefined;
47
+ acceptQueue?: boolean | null | undefined;
48
+ anonymousOrder: boolean;
49
+ } | null | undefined;
50
+ businessId: string;
51
+ profile: {
52
+ _id?: string | null | undefined;
53
+ discovery?: boolean | null | undefined;
54
+ legalName?: string | null | undefined;
55
+ sstRegNo?: string | null | undefined;
56
+ coverPhoto?: string | null | undefined;
57
+ thumbnailPhoto?: string | null | undefined;
58
+ description?: string | null | undefined;
59
+ photos?: string[] | null | undefined;
60
+ operatingHours?: {
61
+ 0: {
62
+ enable: boolean;
63
+ hours: {
64
+ start: string;
65
+ end: string;
66
+ }[];
67
+ };
68
+ 1: {
69
+ enable: boolean;
70
+ hours: {
71
+ start: string;
72
+ end: string;
73
+ }[];
74
+ };
75
+ 2: {
76
+ enable: boolean;
77
+ hours: {
78
+ start: string;
79
+ end: string;
80
+ }[];
81
+ };
82
+ 3: {
83
+ enable: boolean;
84
+ hours: {
85
+ start: string;
86
+ end: string;
87
+ }[];
88
+ };
89
+ 4: {
90
+ enable: boolean;
91
+ hours: {
92
+ start: string;
93
+ end: string;
94
+ }[];
95
+ };
96
+ 5: {
97
+ enable: boolean;
98
+ hours: {
99
+ start: string;
100
+ end: string;
101
+ }[];
102
+ };
103
+ 6: {
104
+ enable: boolean;
105
+ hours: {
106
+ start: string;
107
+ end: string;
108
+ }[];
109
+ };
110
+ } | null | undefined;
111
+ tags?: string[] | null | undefined;
112
+ name: string;
113
+ address: {
114
+ coordinates?: number[] | null | undefined;
115
+ line2?: string | null | undefined;
116
+ line1: string;
117
+ state: string;
118
+ city: string;
119
+ postcode: string;
120
+ country: string;
121
+ };
122
+ phoneNo: string;
123
+ email: string;
124
+ regNo: string;
125
+ url: string | null;
126
+ };
127
+ _id: string;
128
+ expiredAt: string;
129
+ features: string[] | null;
130
+ } | undefined;
131
+ status: "PENDING" | "ACTIVE" | "INACTIVE" | "DECLINED";
132
+ _id: string;
133
+ name: string;
134
+ members: {
135
+ status: "PENDING" | "ACTIVE" | "INACTIVE" | "DECLINED";
136
+ _id: string;
137
+ lastUpdatedAt: string;
138
+ }[];
139
+ pf_restaurants: {
140
+ catalogId?: string | null | undefined;
141
+ pickup?: {
142
+ catalogId?: string | null | undefined;
143
+ autoAccept?: boolean | null | undefined;
144
+ pickupTime?: {
145
+ day: {
146
+ min: number;
147
+ max: number;
148
+ };
149
+ } | null | undefined;
150
+ pickupPointConfig?: {
151
+ restaurantEnable: boolean;
152
+ points: {
153
+ name: string;
154
+ address: string;
155
+ coordinates: number[];
156
+ }[];
157
+ } | null | undefined;
158
+ paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
159
+ offlinePaymentTypes?: {
160
+ name: string;
161
+ instruction: string;
162
+ }[] | null | undefined;
163
+ autoAcceptPaidOnly?: boolean | null | undefined;
164
+ ignoreStock?: boolean | null | undefined;
165
+ } | null | undefined;
166
+ dineIn?: {
167
+ paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
168
+ offlinePaymentTypes?: {
169
+ name: string;
170
+ instruction: string;
171
+ }[] | null | undefined;
172
+ ignoreStock?: boolean | null | undefined;
173
+ staticQr?: boolean | null | undefined;
174
+ disableItemRemark?: boolean | null | undefined;
175
+ acceptQueue?: boolean | null | undefined;
176
+ anonymousOrder: boolean;
177
+ } | null | undefined;
178
+ businessId: string;
179
+ profile: {
180
+ _id?: string | null | undefined;
181
+ discovery?: boolean | null | undefined;
182
+ legalName?: string | null | undefined;
183
+ sstRegNo?: string | null | undefined;
184
+ coverPhoto?: string | null | undefined;
185
+ thumbnailPhoto?: string | null | undefined;
186
+ description?: string | null | undefined;
187
+ photos?: string[] | null | undefined;
188
+ operatingHours?: {
189
+ 0: {
190
+ enable: boolean;
191
+ hours: {
192
+ start: string;
193
+ end: string;
194
+ }[];
195
+ };
196
+ 1: {
197
+ enable: boolean;
198
+ hours: {
199
+ start: string;
200
+ end: string;
201
+ }[];
202
+ };
203
+ 2: {
204
+ enable: boolean;
205
+ hours: {
206
+ start: string;
207
+ end: string;
208
+ }[];
209
+ };
210
+ 3: {
211
+ enable: boolean;
212
+ hours: {
213
+ start: string;
214
+ end: string;
215
+ }[];
216
+ };
217
+ 4: {
218
+ enable: boolean;
219
+ hours: {
220
+ start: string;
221
+ end: string;
222
+ }[];
223
+ };
224
+ 5: {
225
+ enable: boolean;
226
+ hours: {
227
+ start: string;
228
+ end: string;
229
+ }[];
230
+ };
231
+ 6: {
232
+ enable: boolean;
233
+ hours: {
234
+ start: string;
235
+ end: string;
236
+ }[];
237
+ };
238
+ } | null | undefined;
239
+ tags?: string[] | null | undefined;
240
+ name: string;
241
+ address: {
242
+ coordinates?: number[] | null | undefined;
243
+ line2?: string | null | undefined;
244
+ line1: string;
245
+ state: string;
246
+ city: string;
247
+ postcode: string;
248
+ country: string;
249
+ };
250
+ phoneNo: string;
251
+ email: string;
252
+ regNo: string;
253
+ url: string | null;
254
+ };
255
+ status: "PENDING" | "ACTIVE" | "INACTIVE" | "DECLINED";
256
+ _id: string;
257
+ expiredAt: string;
258
+ features: string[] | null;
259
+ }[];
260
+ }>;
261
+ required: true;
262
+ };
263
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
264
+ team: {
265
+ type: PropType<{
266
+ dineIn: {
267
+ anonymousOrder: boolean;
268
+ paymentTypes: string[];
269
+ };
270
+ shortUrl?: string | undefined;
271
+ ownerId?: string | undefined;
272
+ pf_owner?: {
273
+ catalogId?: string | null | undefined;
274
+ pickup?: {
275
+ catalogId?: string | null | undefined;
276
+ autoAccept?: boolean | null | undefined;
277
+ pickupTime?: {
278
+ day: {
279
+ min: number;
280
+ max: number;
281
+ };
282
+ } | null | undefined;
283
+ pickupPointConfig?: {
284
+ restaurantEnable: boolean;
285
+ points: {
286
+ name: string;
287
+ address: string;
288
+ coordinates: number[];
289
+ }[];
290
+ } | null | undefined;
291
+ paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
292
+ offlinePaymentTypes?: {
293
+ name: string;
294
+ instruction: string;
295
+ }[] | null | undefined;
296
+ autoAcceptPaidOnly?: boolean | null | undefined;
297
+ ignoreStock?: boolean | null | undefined;
298
+ } | null | undefined;
299
+ dineIn?: {
300
+ paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
301
+ offlinePaymentTypes?: {
302
+ name: string;
303
+ instruction: string;
304
+ }[] | null | undefined;
305
+ ignoreStock?: boolean | null | undefined;
306
+ staticQr?: boolean | null | undefined;
307
+ disableItemRemark?: boolean | null | undefined;
308
+ acceptQueue?: boolean | null | undefined;
309
+ anonymousOrder: boolean;
310
+ } | null | undefined;
311
+ businessId: string;
312
+ profile: {
313
+ _id?: string | null | undefined;
314
+ discovery?: boolean | null | undefined;
315
+ legalName?: string | null | undefined;
316
+ sstRegNo?: string | null | undefined;
317
+ coverPhoto?: string | null | undefined;
318
+ thumbnailPhoto?: string | null | undefined;
319
+ description?: string | null | undefined;
320
+ photos?: string[] | null | undefined;
321
+ operatingHours?: {
322
+ 0: {
323
+ enable: boolean;
324
+ hours: {
325
+ start: string;
326
+ end: string;
327
+ }[];
328
+ };
329
+ 1: {
330
+ enable: boolean;
331
+ hours: {
332
+ start: string;
333
+ end: string;
334
+ }[];
335
+ };
336
+ 2: {
337
+ enable: boolean;
338
+ hours: {
339
+ start: string;
340
+ end: string;
341
+ }[];
342
+ };
343
+ 3: {
344
+ enable: boolean;
345
+ hours: {
346
+ start: string;
347
+ end: string;
348
+ }[];
349
+ };
350
+ 4: {
351
+ enable: boolean;
352
+ hours: {
353
+ start: string;
354
+ end: string;
355
+ }[];
356
+ };
357
+ 5: {
358
+ enable: boolean;
359
+ hours: {
360
+ start: string;
361
+ end: string;
362
+ }[];
363
+ };
364
+ 6: {
365
+ enable: boolean;
366
+ hours: {
367
+ start: string;
368
+ end: string;
369
+ }[];
370
+ };
371
+ } | null | undefined;
372
+ tags?: string[] | null | undefined;
373
+ name: string;
374
+ address: {
375
+ coordinates?: number[] | null | undefined;
376
+ line2?: string | null | undefined;
377
+ line1: string;
378
+ state: string;
379
+ city: string;
380
+ postcode: string;
381
+ country: string;
382
+ };
383
+ phoneNo: string;
384
+ email: string;
385
+ regNo: string;
386
+ url: string | null;
387
+ };
388
+ _id: string;
389
+ expiredAt: string;
390
+ features: string[] | null;
391
+ } | undefined;
392
+ status: "PENDING" | "ACTIVE" | "INACTIVE" | "DECLINED";
393
+ _id: string;
394
+ name: string;
395
+ members: {
396
+ status: "PENDING" | "ACTIVE" | "INACTIVE" | "DECLINED";
397
+ _id: string;
398
+ lastUpdatedAt: string;
399
+ }[];
400
+ pf_restaurants: {
401
+ catalogId?: string | null | undefined;
402
+ pickup?: {
403
+ catalogId?: string | null | undefined;
404
+ autoAccept?: boolean | null | undefined;
405
+ pickupTime?: {
406
+ day: {
407
+ min: number;
408
+ max: number;
409
+ };
410
+ } | null | undefined;
411
+ pickupPointConfig?: {
412
+ restaurantEnable: boolean;
413
+ points: {
414
+ name: string;
415
+ address: string;
416
+ coordinates: number[];
417
+ }[];
418
+ } | null | undefined;
419
+ paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
420
+ offlinePaymentTypes?: {
421
+ name: string;
422
+ instruction: string;
423
+ }[] | null | undefined;
424
+ autoAcceptPaidOnly?: boolean | null | undefined;
425
+ ignoreStock?: boolean | null | undefined;
426
+ } | null | undefined;
427
+ dineIn?: {
428
+ paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
429
+ offlinePaymentTypes?: {
430
+ name: string;
431
+ instruction: string;
432
+ }[] | null | undefined;
433
+ ignoreStock?: boolean | null | undefined;
434
+ staticQr?: boolean | null | undefined;
435
+ disableItemRemark?: boolean | null | undefined;
436
+ acceptQueue?: boolean | null | undefined;
437
+ anonymousOrder: boolean;
438
+ } | null | undefined;
439
+ businessId: string;
440
+ profile: {
441
+ _id?: string | null | undefined;
442
+ discovery?: boolean | null | undefined;
443
+ legalName?: string | null | undefined;
444
+ sstRegNo?: string | null | undefined;
445
+ coverPhoto?: string | null | undefined;
446
+ thumbnailPhoto?: string | null | undefined;
447
+ description?: string | null | undefined;
448
+ photos?: string[] | null | undefined;
449
+ operatingHours?: {
450
+ 0: {
451
+ enable: boolean;
452
+ hours: {
453
+ start: string;
454
+ end: string;
455
+ }[];
456
+ };
457
+ 1: {
458
+ enable: boolean;
459
+ hours: {
460
+ start: string;
461
+ end: string;
462
+ }[];
463
+ };
464
+ 2: {
465
+ enable: boolean;
466
+ hours: {
467
+ start: string;
468
+ end: string;
469
+ }[];
470
+ };
471
+ 3: {
472
+ enable: boolean;
473
+ hours: {
474
+ start: string;
475
+ end: string;
476
+ }[];
477
+ };
478
+ 4: {
479
+ enable: boolean;
480
+ hours: {
481
+ start: string;
482
+ end: string;
483
+ }[];
484
+ };
485
+ 5: {
486
+ enable: boolean;
487
+ hours: {
488
+ start: string;
489
+ end: string;
490
+ }[];
491
+ };
492
+ 6: {
493
+ enable: boolean;
494
+ hours: {
495
+ start: string;
496
+ end: string;
497
+ }[];
498
+ };
499
+ } | null | undefined;
500
+ tags?: string[] | null | undefined;
501
+ name: string;
502
+ address: {
503
+ coordinates?: number[] | null | undefined;
504
+ line2?: string | null | undefined;
505
+ line1: string;
506
+ state: string;
507
+ city: string;
508
+ postcode: string;
509
+ country: string;
510
+ };
511
+ phoneNo: string;
512
+ email: string;
513
+ regNo: string;
514
+ url: string | null;
515
+ };
516
+ status: "PENDING" | "ACTIVE" | "INACTIVE" | "DECLINED";
517
+ _id: string;
518
+ expiredAt: string;
519
+ features: string[] | null;
520
+ }[];
521
+ }>;
522
+ required: true;
523
+ };
524
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
525
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { F_FOOD_COURT_STATUS } from "@feedmepos/ordering-model";
2
+ export interface FdtoFoodCourtMemberAction {
3
+ label: string;
4
+ newStatus: F_FOOD_COURT_STATUS;
5
+ }
6
+ export declare class FoodCourtMemberStatus {
7
+ private status;
8
+ private isFoodCourtOwner;
9
+ private canManageRestaurant;
10
+ constructor(status: F_FOOD_COURT_STATUS, isFoodCourtOwner: boolean, canManageRestaurant: boolean);
11
+ get description(): string;
12
+ get actions(): FdtoFoodCourtMemberAction[];
13
+ private generateActiveActions;
14
+ private generateInactiveActions;
15
+ private generatePendingActions;
16
+ private generateDeclinedActions;
17
+ }
@@ -0,0 +1,79 @@
1
+ import { type PropType } from "vue";
2
+ import { type BankName, BankType } from "@/View/bank";
3
+ export interface PayoutAccountDialogData {
4
+ bank: {
5
+ name: BankName;
6
+ type: BankType;
7
+ accountNumber: string;
8
+ holderName: string;
9
+ };
10
+ keyPerson?: string;
11
+ keyPersonEmail?: string;
12
+ keyPersonPhone?: string;
13
+ ssm: string;
14
+ bankStatement: string;
15
+ exteriorPhoto: string;
16
+ newSSM?: File;
17
+ newBankStatement?: File;
18
+ newExteriorPhoto?: File;
19
+ }
20
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
21
+ initialValue: {
22
+ type: PropType<PayoutAccountDialogData>;
23
+ required: true;
24
+ };
25
+ isNewAccount: {
26
+ type: BooleanConstructor;
27
+ required: true;
28
+ };
29
+ bankOptions: {
30
+ type: PropType<{
31
+ label: string;
32
+ value: BankName;
33
+ }[]>;
34
+ required: true;
35
+ };
36
+ bankTypes: {
37
+ type: PropType<{
38
+ label: string;
39
+ value: BankType;
40
+ }[]>;
41
+ required: true;
42
+ };
43
+ }>, {
44
+ show: import("vue").Ref<boolean, boolean>;
45
+ trigger: (event?: any) => void;
46
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
47
+ initialValue: {
48
+ type: PropType<PayoutAccountDialogData>;
49
+ required: true;
50
+ };
51
+ isNewAccount: {
52
+ type: BooleanConstructor;
53
+ required: true;
54
+ };
55
+ bankOptions: {
56
+ type: PropType<{
57
+ label: string;
58
+ value: BankName;
59
+ }[]>;
60
+ required: true;
61
+ };
62
+ bankTypes: {
63
+ type: PropType<{
64
+ label: string;
65
+ value: BankType;
66
+ }[]>;
67
+ required: true;
68
+ };
69
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
70
+ default?(_: {
71
+ trigger: (event?: any) => void;
72
+ }): any;
73
+ }>;
74
+ export default _default;
75
+ type __VLS_WithTemplateSlots<T, S> = T & {
76
+ new (): {
77
+ $slots: S;
78
+ };
79
+ };
@@ -0,0 +1,4 @@
1
+ export declare const useSearch: (initialValue?: string) => {
2
+ searchKey: import("vue").Ref<string, string>;
3
+ filter: (arr: unknown[]) => boolean;
4
+ };
@@ -0,0 +1,2 @@
1
+ import { FdoBusiness, FdoRestaurant } from "@feedmepos/core/entity";
2
+ export declare function canCreateRestaurant(business: FdoBusiness, restaurants: FdoRestaurant[]): boolean | undefined;
@@ -0,0 +1,27 @@
1
+ import { FdoProfile, FdoAddress } from "@feedmepos/core/entity";
2
+ export interface Address extends FdoAddress {
3
+ formatted: string;
4
+ isValidPostcode: boolean;
5
+ isValid: boolean;
6
+ isValidCoordinate: boolean;
7
+ }
8
+ export interface Profile extends FdoProfile {
9
+ address: Address;
10
+ }
11
+ export declare function initProfile(name?: string): {
12
+ name: string;
13
+ address: {
14
+ line1: string;
15
+ line2: string;
16
+ state: string;
17
+ city: string;
18
+ postcode: string;
19
+ country: string;
20
+ coordinates: never[];
21
+ };
22
+ phoneNo: string;
23
+ regNo: string;
24
+ email: string;
25
+ };
26
+ export declare function initAddress(): Address;
27
+ export declare function formatAddress(address: FdoAddress): Address;
@@ -0,0 +1,2 @@
1
+ export declare const businessUrlRegex: RegExp;
2
+ export declare const reservedUrl: string[];
@@ -0,0 +1 @@
1
+ import "@feedmepos/mf-common/style.css";
@@ -0,0 +1,12 @@
1
+ import type { FdoProfile } from "@feedmepos/core/entity";
2
+ import type { ExtendedRestaurant } from "@/types/restaurant";
3
+ type UpdateRestaurantData = {
4
+ newThumbnailPhoto?: File;
5
+ newCoverPhoto?: File;
6
+ newPhotos?: File[];
7
+ } & FdoProfile;
8
+ export declare const useRestaurantManage: () => {
9
+ createRestaurant(businessId: string, data: UpdateRestaurantData): Promise<void>;
10
+ updateRestaurantProfile(restaurant: ExtendedRestaurant, data: UpdateRestaurantData): Promise<void>;
11
+ };
12
+ export {};
@@ -0,0 +1,12 @@
1
+ export declare const firebaseStorage: {
2
+ get(url: string, bucketUrl?: string): Promise<string>;
3
+ update(url: string, file: File, bucketUrl?: string): Promise<string>;
4
+ delete(url: string, bucketUrl?: string): Promise<void>;
5
+ };
6
+ export declare const r2Storage: {
7
+ get(url: string): Promise<string | ReadableStream<any> | undefined>;
8
+ update(url: string, file: File, config?: {
9
+ includedTime: boolean;
10
+ }): Promise<string>;
11
+ delete(url: string): Promise<void>;
12
+ };