@feedmepos/mf-order-setting 0.0.24 → 0.0.25

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 (55) hide show
  1. package/dist/{KioskDevicesView-DGkvW2mH.js → KioskDevicesView-gzH9-zL_.js} +1 -1
  2. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-BGZLd8T_.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-CLpClo-r.js} +3 -3
  3. package/dist/{KioskSettingView-DLb5nnCu.js → KioskSettingView-D1WdpaQN.js} +1 -1
  4. package/dist/{KioskView-kZZYSfUh.js → KioskView-D6-1bn1n.js} +38 -28
  5. package/dist/{OrderSettingsView-Cil4j9G5.js → OrderSettingsView-CqZREmjo.js} +6155 -6096
  6. package/dist/{app-D47VRl5B.js → app-i4N2c7ms.js} +38 -26
  7. package/dist/app.js +1 -1
  8. package/dist/{dayjs.min-R4180ukF.js → dayjs.min-CA-XbgTY.js} +36 -36
  9. package/dist/frontend/mf-order/src/app.d.ts +12 -0
  10. package/dist/frontend/mf-order/src/main.d.ts +797 -0
  11. package/dist/frontend/mf-order/src/stores/iframe/index.d.ts +6 -6
  12. package/dist/frontend/mf-order/src/stores/kiosk/index.d.ts +8 -260
  13. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +17 -722
  14. package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +1456 -2239
  15. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  16. package/dist/{index-DgLlDwJK.js → index-C4HI1NS4.js} +2 -2
  17. package/dist/package/entity/delivery/delivery.dto.d.ts +11 -6
  18. package/dist/package/entity/food-court/food-court.dto.d.ts +1 -1
  19. package/dist/package/entity/food-court/order.dto.d.ts +727 -378
  20. package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +6 -6
  21. package/dist/package/entity/incoming-order/incoming-order.do.d.ts +8 -8
  22. package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +16 -16
  23. package/dist/package/entity/index.d.ts +1 -0
  24. package/dist/package/entity/kiosk/marketing/marketing.dto.d.ts +1337 -656
  25. package/dist/package/entity/order/order.dto.d.ts +4942 -2401
  26. package/dist/package/entity/order/order.enum.d.ts +1 -1
  27. package/dist/package/entity/order/payment/payment.dto.d.ts +2899 -1419
  28. package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +9 -21
  29. package/dist/package/entity/order-platform/external/order/external-order.dto.d.ts +19 -51
  30. package/dist/package/entity/order-setting/order-setting.do.d.ts +8 -0
  31. package/dist/package/entity/order-setting/order-setting.dto.d.ts +16 -0
  32. package/dist/package/entity/order-setting/v3/v3.do.d.ts +3 -0
  33. package/dist/package/entity/order-setting/v3/v3.dto.d.ts +3 -0
  34. package/dist/package/entity/order-setting/v3/v3.enum.d.ts +3 -0
  35. package/dist/package/entity/payment/payment.dto.d.ts +3 -3
  36. package/dist/package/entity/restaurant/restaurant.dto.d.ts +19 -11
  37. package/dist/{queue.do-CNMuossU.js → queue.do-DcOVgeUq.js} +17139 -16655
  38. package/package.json +3 -3
  39. package/src/Entry.vue +3 -3
  40. package/src/locales/en-US.json +6 -0
  41. package/src/locales/th-TH.json +257 -0
  42. package/src/locales/zh-CN.json +6 -0
  43. package/src/main.ts +9 -1
  44. package/src/stores/iframe/index.ts +1 -1
  45. package/src/stores/kiosk/index.ts +1 -1
  46. package/src/stores/order-setting/index.ts +1 -1
  47. package/src/stores/order-setting/mapper.ts +12 -2
  48. package/src/stores/restaurant/index.ts +106 -85
  49. package/src/views/order-settings/delivery/DeliverySetting.vue +12 -12
  50. package/src/views/order-settings/delivery/inhouse/InHouseDelivery.vue +39 -35
  51. package/src/views/order-settings/dine-in/DineInSetting.vue +158 -24
  52. package/src/views/order-settings/general/GeneralSetting.vue +29 -33
  53. package/src/views/order-settings/pickup/PickUpSetting.vue +4 -2
  54. package/src/views/order-settings/pickup/PickUpSettingDialogContent.vue +23 -10
  55. package/src/views/order-settings/servicecharge/ServiceChargeSetting.vue +17 -8
@@ -1,5 +1,5 @@
1
1
  import { type RestaurantSettingDoc } from '@/api/restaurant-setting';
2
- import { FdoFoodpandaSettings, FdoRestaurantDineIn, FdoRestaurantFeedmeDelivery, FdoRestaurantInHouseDelivery, FdoRestaurantPickup, FdoServiceChargeSetting, FdoShopeeFoodSettings, type FdoAddress, type FdoProfile, type FdoRestaurant } from '@feedmepos/core/entity';
2
+ import { FdoFoodpandaSettings, FdoRestaurantDineIn, FdoRestaurantFeedmeDelivery, FdoRestaurantInHouseDelivery, FdoRestaurantPickup, FdoServiceChargeSetting, FdoShopeeFoodSettings, type FdoAddress, type FdoProfile, FdoRestaurant } from '@feedmepos/core/entity';
3
3
  import { FdoExternalSetting, FdoGrabfoodSettings } from '@entity';
4
4
  export interface Profile extends FdoProfile {
5
5
  address: Address;
@@ -18,331 +18,31 @@ export interface ExtendedRestaurant extends FdoRestaurant {
18
18
  tinNo?: string;
19
19
  isEInvoiceActive?: boolean;
20
20
  }
21
- interface RestaurantState {
22
- adminRestaurants: FdoRestaurant[];
23
- managableRestaurants: ExtendedRestaurant[];
24
- businessRestaurants: ExtendedRestaurant[];
25
- currentRestaurantId: string;
26
- restaurantSettings: {
27
- [restaurantId: string]: RestaurantSettingDoc;
28
- };
29
- }
30
21
  export declare function setRestaurantId(id?: string | null): void;
31
- export declare const useRestaurantStore: import("pinia").StoreDefinition<"restaurant", RestaurantState, {
32
- currentRestaurant: (state: {
33
- adminRestaurants: {
34
- channel?: string | null | undefined;
35
- machineId?: string | null | undefined;
22
+ export declare const useRestaurantStore: import("pinia").StoreDefinition<"restaurant", Pick<{
23
+ state: {
24
+ restaurantSettings: {
25
+ [restaurantId: string]: RestaurantSettingDoc;
26
+ };
27
+ };
28
+ currentRestaurant: {
29
+ channel?: string | null | undefined;
30
+ machineId?: string | null | undefined;
31
+ catalogId?: string | null | undefined;
32
+ customAttributes?: Record<string, any> | null | undefined;
33
+ takeaway?: {
36
34
  catalogId?: string | null | undefined;
37
- customAttributes?: Record<string, any> | null | undefined;
38
- takeaway?: {
39
- catalogId?: string | null | undefined;
40
- } | null | undefined;
41
- inHouseDelivery?: {
42
- taxes?: Record<string, {
43
- inclusive: boolean;
44
- taxCode: string;
45
- systemCode: string;
46
- }> | null | undefined;
47
- autoAccept?: boolean | null | undefined;
48
- deliveryTime?: {
49
- time?: string[] | null | undefined;
50
- custom?: {
51
- 0: {
52
- hours: {
53
- end: string;
54
- start: string;
55
- }[];
56
- enable: boolean;
57
- };
58
- 2: {
59
- hours: {
60
- end: string;
61
- start: string;
62
- }[];
63
- enable: boolean;
64
- };
65
- 1: {
66
- hours: {
67
- end: string;
68
- start: string;
69
- }[];
70
- enable: boolean;
71
- };
72
- 3: {
73
- hours: {
74
- end: string;
75
- start: string;
76
- }[];
77
- enable: boolean;
78
- };
79
- 4: {
80
- hours: {
81
- end: string;
82
- start: string;
83
- }[];
84
- enable: boolean;
85
- };
86
- 5: {
87
- hours: {
88
- end: string;
89
- start: string;
90
- }[];
91
- enable: boolean;
92
- };
93
- 6: {
94
- hours: {
95
- end: string;
96
- start: string;
97
- }[];
98
- enable: boolean;
99
- };
100
- } | null | undefined;
101
- day: {
102
- max: number;
103
- min: number;
104
- };
105
- } | null | undefined;
106
- paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
107
- offlinePaymentTypes?: {
108
- name: string;
109
- instruction: string;
110
- }[] | null | undefined;
111
- autoAcceptPaidOnly?: boolean | null | undefined;
112
- ignoreStock?: boolean | null | undefined;
113
- catalogId: string | null;
114
- enable: boolean;
115
- areas: {
116
- minPurchase?: {
117
- currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
118
- amount: number;
119
- precision: number;
120
- } | null | undefined;
121
- freeAfterTotal?: {
122
- currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
123
- amount: number;
124
- precision: number;
125
- } | null | undefined;
126
- polygon: number[][];
127
- deliveryFee: {
128
- currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
129
- amount: number;
130
- precision: number;
131
- };
132
- }[];
133
- term: string;
134
- } | null | undefined;
135
- pickup?: {
136
- catalogId?: string | null | undefined;
137
- autoAccept?: boolean | null | undefined;
138
- paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
139
- offlinePaymentTypes?: {
140
- name: string;
141
- instruction: string;
142
- }[] | null | undefined;
143
- autoAcceptPaidOnly?: boolean | null | undefined;
144
- ignoreStock?: boolean | null | undefined;
145
- pickupTime?: {
146
- day: {
147
- max: number;
148
- min: number;
149
- };
150
- } | null | undefined;
151
- pickupPointConfig?: {
152
- restaurantEnable: boolean;
153
- points: {
154
- name: string;
155
- address: string;
156
- coordinates: number[];
157
- }[];
158
- } | null | undefined;
159
- } | null | undefined;
160
- dineIn?: {
161
- paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
162
- offlinePaymentTypes?: {
163
- name: string;
164
- instruction: string;
165
- }[] | null | undefined;
166
- ignoreStock?: boolean | null | undefined;
167
- staticQr?: boolean | null | undefined;
168
- disableItemRemark?: boolean | null | undefined;
169
- acceptQueue?: boolean | null | undefined;
170
- anonymousOrder: boolean;
171
- } | null | undefined;
172
- pf_business?: {
173
- internal?: boolean | null | undefined;
174
- url?: string | null | undefined;
175
- expiredAt?: string | null | undefined;
176
- agentId?: string | null | undefined;
177
- attributeSettings?: {
178
- type: "string" | "number" | "boolean" | "date";
179
- key: string;
180
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
181
- }[] | null | undefined;
182
- pf_agent?: {
183
- clickupId?: string | null | undefined;
184
- members?: {
185
- pf_user?: {
186
- email?: string | null | undefined;
187
- phoneNumber?: string | null | undefined;
188
- birthday?: string | null | undefined;
189
- gender?: "MALE" | "FEMALE" | null | undefined;
190
- addresses?: {
191
- name: string;
192
- address: string;
193
- coordinates: number[];
194
- }[] | null | undefined;
195
- photoURL?: string | null | undefined;
196
- displayName?: string | null | undefined;
197
- imported?: {
198
- raw: Record<string, any>;
199
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
200
- } | null | undefined;
201
- _id: string;
202
- } | null | undefined;
203
- role: "ADMIN";
204
- userId: string;
205
- }[] | null | undefined;
206
- code: string;
207
- name: string;
208
- _id: string;
209
- isReseller: boolean;
210
- } | null | undefined;
211
- thumbnail?: string | null | undefined;
212
- billingInfos?: {
213
- _id?: string | null | undefined;
214
- name: string;
215
- address: {
216
- coordinates?: number[] | null | undefined;
217
- line2?: string | null | undefined;
218
- state: string;
219
- country: string;
220
- line1: string;
221
- city: string;
222
- postcode: string;
223
- };
224
- email: string;
225
- companyName: string;
226
- contact: string;
227
- }[] | null | undefined;
228
- customerDisplayImages?: {
229
- url: string;
230
- restaurantIds: string[];
231
- }[] | null | undefined;
232
- name: string;
233
- _id: string;
234
- ownerId: string;
235
- restaurantQuota: number;
236
- warehouseQuota: number;
237
- menuVersion: string;
238
- } | null | undefined;
239
- features?: string[] | null | undefined;
240
- machineOtp?: string | null | undefined;
241
- machineOtpExpiredAt?: string | null | undefined;
242
- posVersion?: string | null | undefined;
243
- posHeartbeat?: string | null | undefined;
244
- posVersionHistory?: Record<string, string> | null | undefined;
245
- additionalCatalogs?: string[] | null | undefined;
246
- feedmeDelivery?: {
247
- instruction?: string | null | undefined;
248
- catalogId?: string | null | undefined;
249
- autoAccept?: boolean | null | undefined;
250
- term?: string | null | undefined;
251
- ignoreStock?: boolean | null | undefined;
252
- enable: boolean;
253
- } | null | undefined;
254
- foodpandaDelivery?: {
255
- _id?: string | undefined;
256
- ignoreDiscount?: boolean | null | undefined;
257
- catalogId?: string | null | undefined;
258
- commissionRate?: number | null | undefined;
259
- lastSynchronize?: string | null | undefined;
260
- showProductAddon?: boolean | null | undefined;
261
- autoAccept?: boolean | null | undefined;
262
- reportConfig?: {
263
- commissionRate: number;
264
- discountCampaigns: {
265
- name: string;
266
- date: {
267
- end: string;
268
- start: string;
269
- };
270
- vendorBearPercentage: number;
271
- }[];
272
- } | null | undefined;
273
- hasSst?: boolean | null | undefined;
274
- enable: boolean;
275
- remoteId: string;
276
- autoCloseBill: boolean;
277
- } | null | undefined;
278
- grabfoodDelivery?: {
279
- _id?: string | undefined;
280
- catalogId?: string | null | undefined;
281
- lastSynchronize?: string | null | undefined;
282
- showProductAddon?: boolean | null | undefined;
283
- enable: boolean;
284
- commissionRate: number;
285
- autoCloseBill: boolean;
286
- merchantID: string;
287
- } | null | undefined;
288
- shopeefoodDelivery?: {
289
- _id?: string | undefined;
290
- catalogId?: string | null | undefined;
291
- lastSynchronize?: string | null | undefined;
292
- showProductAddon?: boolean | null | undefined;
293
- enable: boolean;
294
- autoCloseBill: boolean;
295
- reportConfig: {
296
- commissionRate: number;
297
- discountCampaigns: {
298
- name: string;
299
- date: {
300
- end: string;
301
- start: string;
302
- };
303
- vendorBearPercentage: number;
304
- }[];
305
- };
306
- storeID: string;
307
- } | null | undefined;
308
- couchDbPassword?: string | null | undefined;
309
- apiToken?: string | null | undefined;
310
- remoteSupports?: {
311
- anydeskId?: string | null | undefined;
312
- anydeskPassword?: string | null | undefined;
313
- deviceName: string;
314
- }[] | null | undefined;
315
- payoutAccount?: Record<string, any> | null | undefined;
316
- clearCount?: number | null | undefined;
317
- queueSetting?: {
318
- duration?: number | null | undefined;
319
- enableOrder: boolean;
320
- initialNumber: number;
321
- endNumber: number;
322
- currentNumber: number;
323
- autoCalledLimit: number;
324
- } | null | undefined;
325
- tableMappingSetting?: {
326
- enable?: boolean | null | undefined;
327
- showSeat?: boolean | null | undefined;
328
- mapBorderColor?: number | null | undefined;
329
- mapLineColor?: number | null | undefined;
330
- } | null | undefined;
331
- _id: string;
332
- expiredAt: string;
333
- businessId: string;
334
- profile: {
335
- code?: string | null | undefined;
336
- url?: string | null | undefined;
337
- description?: string | null | undefined;
338
- _id?: string | null | undefined;
339
- legalName?: string | null | undefined;
340
- sstRegNo?: string | null | undefined;
341
- discovery?: boolean | null | undefined;
342
- coverPhoto?: string | null | undefined;
343
- thumbnailPhoto?: string | null | undefined;
344
- photos?: string[] | null | undefined;
345
- operatingHours?: {
35
+ } | null | undefined;
36
+ inHouseDelivery?: {
37
+ taxes?: Record<string, {
38
+ inclusive: boolean;
39
+ taxCode: string;
40
+ systemCode: string;
41
+ }> | null | undefined;
42
+ autoAccept?: boolean | null | undefined;
43
+ deliveryTime?: {
44
+ time?: string[] | null | undefined;
45
+ custom?: {
346
46
  0: {
347
47
  hours: {
348
48
  end: string;
@@ -393,30 +93,121 @@ export declare const useRestaurantStore: import("pinia").StoreDefinition<"restau
393
93
  enable: boolean;
394
94
  };
395
95
  } | null | undefined;
396
- tags?: string[] | null | undefined;
96
+ day: {
97
+ max: number;
98
+ min: number;
99
+ };
100
+ } | null | undefined;
101
+ paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
102
+ offlinePaymentTypes?: {
397
103
  name: string;
398
- address: {
399
- coordinates?: number[] | null | undefined;
400
- line2?: string | null | undefined;
401
- state: string;
402
- country: string;
403
- line1: string;
404
- city: string;
405
- postcode: string;
104
+ instruction: string;
105
+ }[] | null | undefined;
106
+ autoAcceptPaidOnly?: boolean | null | undefined;
107
+ ignoreStock?: boolean | null | undefined;
108
+ catalogId: string | null;
109
+ enable: boolean;
110
+ areas: {
111
+ minPurchase?: {
112
+ currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
113
+ amount: number;
114
+ precision: number;
115
+ } | null | undefined;
116
+ freeAfterTotal?: {
117
+ currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
118
+ amount: number;
119
+ precision: number;
120
+ } | null | undefined;
121
+ polygon: number[][];
122
+ deliveryFee: {
123
+ currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
124
+ amount: number;
125
+ precision: number;
406
126
  };
407
- email: string;
408
- phoneNo: string;
409
- regNo: string;
410
- };
411
- }[];
412
- managableRestaurants: {
413
- id: string;
414
- profile: {
127
+ }[];
128
+ term: string;
129
+ } | null | undefined;
130
+ pickup?: {
131
+ catalogId?: string | null | undefined;
132
+ autoAccept?: boolean | null | undefined;
133
+ paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
134
+ offlinePaymentTypes?: {
135
+ name: string;
136
+ instruction: string;
137
+ }[] | null | undefined;
138
+ autoAcceptPaidOnly?: boolean | null | undefined;
139
+ ignoreStock?: boolean | null | undefined;
140
+ pickupTime?: {
141
+ day: {
142
+ max: number;
143
+ min: number;
144
+ };
145
+ } | null | undefined;
146
+ pickupPointConfig?: {
147
+ restaurantEnable: boolean;
148
+ points: {
149
+ name: string;
150
+ address: string;
151
+ coordinates: number[];
152
+ }[];
153
+ } | null | undefined;
154
+ } | null | undefined;
155
+ dineIn?: {
156
+ paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
157
+ offlinePaymentTypes?: {
158
+ name: string;
159
+ instruction: string;
160
+ }[] | null | undefined;
161
+ ignoreStock?: boolean | null | undefined;
162
+ staticQr?: boolean | null | undefined;
163
+ disableItemRemark?: boolean | null | undefined;
164
+ acceptQueue?: boolean | null | undefined;
165
+ anonymousOrder: boolean;
166
+ } | null | undefined;
167
+ pf_business?: {
168
+ internal?: boolean | null | undefined;
169
+ url?: string | null | undefined;
170
+ expiredAt?: string | null | undefined;
171
+ agentId?: string | null | undefined;
172
+ attributeSettings?: {
173
+ type: "string" | "number" | "boolean" | "date";
174
+ key: string;
175
+ entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
176
+ }[] | null | undefined;
177
+ pf_agent?: {
178
+ clickupId?: string | null | undefined;
179
+ members?: {
180
+ pf_user?: {
181
+ email?: string | null | undefined;
182
+ phoneNumber?: string | null | undefined;
183
+ birthday?: string | null | undefined;
184
+ gender?: "MALE" | "FEMALE" | null | undefined;
185
+ addresses?: {
186
+ name: string;
187
+ address: string;
188
+ coordinates: number[];
189
+ }[] | null | undefined;
190
+ photoURL?: string | null | undefined;
191
+ displayName?: string | null | undefined;
192
+ imported?: {
193
+ raw: Record<string, any>;
194
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
195
+ } | null | undefined;
196
+ _id: string;
197
+ } | null | undefined;
198
+ role: "ADMIN";
199
+ userId: string;
200
+ }[] | null | undefined;
201
+ code: string;
202
+ name: string;
203
+ _id: string;
204
+ isReseller: boolean;
205
+ } | null | undefined;
206
+ thumbnail?: string | null | undefined;
207
+ billingInfos?: {
208
+ _id?: string | null | undefined;
209
+ name: string;
415
210
  address: {
416
- formatted: string;
417
- isValidPostcode: boolean;
418
- isValid: boolean;
419
- isValidCoordinate: boolean;
420
211
  coordinates?: number[] | null | undefined;
421
212
  line2?: string | null | undefined;
422
213
  state: string;
@@ -425,405 +216,219 @@ export declare const useRestaurantStore: import("pinia").StoreDefinition<"restau
425
216
  city: string;
426
217
  postcode: string;
427
218
  };
428
- code?: string | null | undefined;
429
- url?: string | null | undefined;
430
- description?: string | null | undefined;
431
- _id?: string | null | undefined;
432
- legalName?: string | null | undefined;
433
- sstRegNo?: string | null | undefined;
434
- discovery?: boolean | null | undefined;
435
- coverPhoto?: string | null | undefined;
436
- thumbnailPhoto?: string | null | undefined;
437
- photos?: string[] | null | undefined;
438
- operatingHours?: {
439
- 0: {
440
- hours: {
441
- end: string;
442
- start: string;
443
- }[];
444
- enable: boolean;
445
- };
446
- 2: {
447
- hours: {
448
- end: string;
449
- start: string;
450
- }[];
451
- enable: boolean;
452
- };
453
- 1: {
454
- hours: {
455
- end: string;
456
- start: string;
457
- }[];
458
- enable: boolean;
459
- };
460
- 3: {
461
- hours: {
462
- end: string;
463
- start: string;
464
- }[];
465
- enable: boolean;
466
- };
467
- 4: {
468
- hours: {
469
- end: string;
470
- start: string;
471
- }[];
472
- enable: boolean;
473
- };
474
- 5: {
475
- hours: {
476
- end: string;
477
- start: string;
478
- }[];
479
- enable: boolean;
480
- };
481
- 6: {
482
- hours: {
483
- end: string;
484
- start: string;
485
- }[];
486
- enable: boolean;
487
- };
488
- } | null | undefined;
489
- tags?: string[] | null | undefined;
490
- name: string;
491
219
  email: string;
492
- phoneNo: string;
493
- regNo: string;
494
- };
495
- allowEPayment: true | string;
496
- msicCode?: string | undefined;
497
- tinNo?: string | undefined;
498
- isEInvoiceActive?: boolean | undefined;
499
- channel?: string | null | undefined;
500
- machineId?: string | null | undefined;
501
- catalogId?: string | null | undefined;
502
- customAttributes?: Record<string, any> | null | undefined;
503
- takeaway?: {
504
- catalogId?: string | null | undefined;
505
- } | null | undefined;
506
- inHouseDelivery?: {
507
- taxes?: Record<string, {
508
- inclusive: boolean;
509
- taxCode: string;
510
- systemCode: string;
511
- }> | null | undefined;
512
- autoAccept?: boolean | null | undefined;
513
- deliveryTime?: {
514
- time?: string[] | null | undefined;
515
- custom?: {
516
- 0: {
517
- hours: {
518
- end: string;
519
- start: string;
520
- }[];
521
- enable: boolean;
522
- };
523
- 2: {
524
- hours: {
525
- end: string;
526
- start: string;
527
- }[];
528
- enable: boolean;
529
- };
530
- 1: {
531
- hours: {
532
- end: string;
533
- start: string;
534
- }[];
535
- enable: boolean;
536
- };
537
- 3: {
538
- hours: {
539
- end: string;
540
- start: string;
541
- }[];
542
- enable: boolean;
543
- };
544
- 4: {
545
- hours: {
546
- end: string;
547
- start: string;
548
- }[];
549
- enable: boolean;
550
- };
551
- 5: {
552
- hours: {
553
- end: string;
554
- start: string;
555
- }[];
556
- enable: boolean;
557
- };
558
- 6: {
559
- hours: {
560
- end: string;
561
- start: string;
562
- }[];
563
- enable: boolean;
564
- };
565
- } | null | undefined;
566
- day: {
567
- max: number;
568
- min: number;
569
- };
570
- } | null | undefined;
571
- paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
572
- offlinePaymentTypes?: {
573
- name: string;
574
- instruction: string;
575
- }[] | null | undefined;
576
- autoAcceptPaidOnly?: boolean | null | undefined;
577
- ignoreStock?: boolean | null | undefined;
578
- catalogId: string | null;
579
- enable: boolean;
580
- areas: {
581
- minPurchase?: {
582
- currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
583
- amount: number;
584
- precision: number;
585
- } | null | undefined;
586
- freeAfterTotal?: {
587
- currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
588
- amount: number;
589
- precision: number;
590
- } | null | undefined;
591
- polygon: number[][];
592
- deliveryFee: {
593
- currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
594
- amount: number;
595
- precision: number;
220
+ companyName: string;
221
+ contact: string;
222
+ }[] | null | undefined;
223
+ customerDisplayImages?: {
224
+ url: string;
225
+ restaurantIds: string[];
226
+ }[] | null | undefined;
227
+ name: string;
228
+ _id: string;
229
+ ownerId: string;
230
+ restaurantQuota: number;
231
+ warehouseQuota: number;
232
+ menuVersion: string;
233
+ } | null | undefined;
234
+ features?: string[] | null | undefined;
235
+ machineOtp?: string | null | undefined;
236
+ machineOtpExpiredAt?: string | null | undefined;
237
+ posVersion?: string | null | undefined;
238
+ posHeartbeat?: string | null | undefined;
239
+ posVersionHistory?: Record<string, string> | null | undefined;
240
+ additionalCatalogs?: string[] | null | undefined;
241
+ feedmeDelivery?: {
242
+ instruction?: string | null | undefined;
243
+ catalogId?: string | null | undefined;
244
+ autoAccept?: boolean | null | undefined;
245
+ term?: string | null | undefined;
246
+ ignoreStock?: boolean | null | undefined;
247
+ enable: boolean;
248
+ } | null | undefined;
249
+ foodpandaDelivery?: {
250
+ _id?: string | undefined;
251
+ ignoreDiscount?: boolean | null | undefined;
252
+ catalogId?: string | null | undefined;
253
+ commissionRate?: number | null | undefined;
254
+ lastSynchronize?: string | null | undefined;
255
+ showProductAddon?: boolean | null | undefined;
256
+ autoAccept?: boolean | null | undefined;
257
+ reportConfig?: {
258
+ commissionRate: number;
259
+ discountCampaigns: {
260
+ name: string;
261
+ date: {
262
+ end: string;
263
+ start: string;
596
264
  };
265
+ vendorBearPercentage: number;
597
266
  }[];
598
- term: string;
599
267
  } | null | undefined;
600
- pickup?: {
601
- catalogId?: string | null | undefined;
602
- autoAccept?: boolean | null | undefined;
603
- paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
604
- offlinePaymentTypes?: {
268
+ hasSst?: boolean | null | undefined;
269
+ enable: boolean;
270
+ remoteId: string;
271
+ autoCloseBill: boolean;
272
+ } | null | undefined;
273
+ grabfoodDelivery?: {
274
+ _id?: string | undefined;
275
+ catalogId?: string | null | undefined;
276
+ lastSynchronize?: string | null | undefined;
277
+ showProductAddon?: boolean | null | undefined;
278
+ enable: boolean;
279
+ commissionRate: number;
280
+ autoCloseBill: boolean;
281
+ merchantID: string;
282
+ } | null | undefined;
283
+ shopeefoodDelivery?: {
284
+ _id?: string | undefined;
285
+ catalogId?: string | null | undefined;
286
+ lastSynchronize?: string | null | undefined;
287
+ showProductAddon?: boolean | null | undefined;
288
+ enable: boolean;
289
+ autoCloseBill: boolean;
290
+ reportConfig: {
291
+ commissionRate: number;
292
+ discountCampaigns: {
605
293
  name: string;
606
- instruction: string;
607
- }[] | null | undefined;
608
- autoAcceptPaidOnly?: boolean | null | undefined;
609
- ignoreStock?: boolean | null | undefined;
610
- pickupTime?: {
611
- day: {
612
- max: number;
613
- min: number;
294
+ date: {
295
+ end: string;
296
+ start: string;
614
297
  };
615
- } | null | undefined;
616
- pickupPointConfig?: {
617
- restaurantEnable: boolean;
618
- points: {
619
- name: string;
620
- address: string;
621
- coordinates: number[];
298
+ vendorBearPercentage: number;
299
+ }[];
300
+ };
301
+ storeID: string;
302
+ } | null | undefined;
303
+ couchDbPassword?: string | null | undefined;
304
+ apiToken?: string | null | undefined;
305
+ remoteSupports?: {
306
+ anydeskId?: string | null | undefined;
307
+ anydeskPassword?: string | null | undefined;
308
+ deviceName: string;
309
+ }[] | null | undefined;
310
+ payoutAccount?: Record<string, any> | null | undefined;
311
+ clearCount?: number | null | undefined;
312
+ queueSetting?: {
313
+ duration?: number | null | undefined;
314
+ enableOrder: boolean;
315
+ initialNumber: number;
316
+ endNumber: number;
317
+ currentNumber: number;
318
+ autoCalledLimit: number;
319
+ } | null | undefined;
320
+ tableMappingSetting?: {
321
+ enable?: boolean | null | undefined;
322
+ showSeat?: boolean | null | undefined;
323
+ mapBorderColor?: number | null | undefined;
324
+ mapLineColor?: number | null | undefined;
325
+ } | null | undefined;
326
+ _id: string;
327
+ expiredAt: string;
328
+ businessId: string;
329
+ profile: {
330
+ code?: string | null | undefined;
331
+ url?: string | null | undefined;
332
+ description?: string | null | undefined;
333
+ _id?: string | null | undefined;
334
+ legalName?: string | null | undefined;
335
+ sstRegNo?: string | null | undefined;
336
+ discovery?: boolean | null | undefined;
337
+ coverPhoto?: string | null | undefined;
338
+ thumbnailPhoto?: string | null | undefined;
339
+ photos?: string[] | null | undefined;
340
+ operatingHours?: {
341
+ 0: {
342
+ hours: {
343
+ end: string;
344
+ start: string;
622
345
  }[];
623
- } | null | undefined;
624
- } | null | undefined;
625
- dineIn?: {
626
- paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
627
- offlinePaymentTypes?: {
628
- name: string;
629
- instruction: string;
630
- }[] | null | undefined;
631
- ignoreStock?: boolean | null | undefined;
632
- staticQr?: boolean | null | undefined;
633
- disableItemRemark?: boolean | null | undefined;
634
- acceptQueue?: boolean | null | undefined;
635
- anonymousOrder: boolean;
636
- } | null | undefined;
637
- pf_business?: {
638
- internal?: boolean | null | undefined;
639
- url?: string | null | undefined;
640
- expiredAt?: string | null | undefined;
641
- agentId?: string | null | undefined;
642
- attributeSettings?: {
643
- type: "string" | "number" | "boolean" | "date";
644
- key: string;
645
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
646
- }[] | null | undefined;
647
- pf_agent?: {
648
- clickupId?: string | null | undefined;
649
- members?: {
650
- pf_user?: {
651
- email?: string | null | undefined;
652
- phoneNumber?: string | null | undefined;
653
- birthday?: string | null | undefined;
654
- gender?: "MALE" | "FEMALE" | null | undefined;
655
- addresses?: {
656
- name: string;
657
- address: string;
658
- coordinates: number[];
659
- }[] | null | undefined;
660
- photoURL?: string | null | undefined;
661
- displayName?: string | null | undefined;
662
- imported?: {
663
- raw: Record<string, any>;
664
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
665
- } | null | undefined;
666
- _id: string;
667
- } | null | undefined;
668
- role: "ADMIN";
669
- userId: string;
670
- }[] | null | undefined;
671
- code: string;
672
- name: string;
673
- _id: string;
674
- isReseller: boolean;
675
- } | null | undefined;
676
- thumbnail?: string | null | undefined;
677
- billingInfos?: {
678
- _id?: string | null | undefined;
679
- name: string;
680
- address: {
681
- coordinates?: number[] | null | undefined;
682
- line2?: string | null | undefined;
683
- state: string;
684
- country: string;
685
- line1: string;
686
- city: string;
687
- postcode: string;
688
- };
689
- email: string;
690
- companyName: string;
691
- contact: string;
692
- }[] | null | undefined;
693
- customerDisplayImages?: {
694
- url: string;
695
- restaurantIds: string[];
696
- }[] | null | undefined;
697
- name: string;
698
- _id: string;
699
- ownerId: string;
700
- restaurantQuota: number;
701
- warehouseQuota: number;
702
- menuVersion: string;
703
- } | null | undefined;
704
- features?: string[] | null | undefined;
705
- machineOtp?: string | null | undefined;
706
- machineOtpExpiredAt?: string | null | undefined;
707
- posVersion?: string | null | undefined;
708
- posHeartbeat?: string | null | undefined;
709
- posVersionHistory?: Record<string, string> | null | undefined;
710
- additionalCatalogs?: string[] | null | undefined;
711
- feedmeDelivery?: {
712
- instruction?: string | null | undefined;
713
- catalogId?: string | null | undefined;
714
- autoAccept?: boolean | null | undefined;
715
- term?: string | null | undefined;
716
- ignoreStock?: boolean | null | undefined;
717
- enable: boolean;
718
- } | null | undefined;
719
- foodpandaDelivery?: {
720
- _id?: string | undefined;
721
- ignoreDiscount?: boolean | null | undefined;
722
- catalogId?: string | null | undefined;
723
- commissionRate?: number | null | undefined;
724
- lastSynchronize?: string | null | undefined;
725
- showProductAddon?: boolean | null | undefined;
726
- autoAccept?: boolean | null | undefined;
727
- reportConfig?: {
728
- commissionRate: number;
729
- discountCampaigns: {
730
- name: string;
731
- date: {
732
- end: string;
733
- start: string;
734
- };
735
- vendorBearPercentage: number;
346
+ enable: boolean;
347
+ };
348
+ 2: {
349
+ hours: {
350
+ end: string;
351
+ start: string;
736
352
  }[];
737
- } | null | undefined;
738
- hasSst?: boolean | null | undefined;
739
- enable: boolean;
740
- remoteId: string;
741
- autoCloseBill: boolean;
742
- } | null | undefined;
743
- grabfoodDelivery?: {
744
- _id?: string | undefined;
745
- catalogId?: string | null | undefined;
746
- lastSynchronize?: string | null | undefined;
747
- showProductAddon?: boolean | null | undefined;
748
- enable: boolean;
749
- commissionRate: number;
750
- autoCloseBill: boolean;
751
- merchantID: string;
752
- } | null | undefined;
753
- shopeefoodDelivery?: {
754
- _id?: string | undefined;
755
- catalogId?: string | null | undefined;
756
- lastSynchronize?: string | null | undefined;
757
- showProductAddon?: boolean | null | undefined;
758
- enable: boolean;
759
- autoCloseBill: boolean;
760
- reportConfig: {
761
- commissionRate: number;
762
- discountCampaigns: {
763
- name: string;
764
- date: {
765
- end: string;
766
- start: string;
767
- };
768
- vendorBearPercentage: number;
353
+ enable: boolean;
354
+ };
355
+ 1: {
356
+ hours: {
357
+ end: string;
358
+ start: string;
359
+ }[];
360
+ enable: boolean;
361
+ };
362
+ 3: {
363
+ hours: {
364
+ end: string;
365
+ start: string;
769
366
  }[];
367
+ enable: boolean;
770
368
  };
771
- storeID: string;
772
- } | null | undefined;
773
- couchDbPassword?: string | null | undefined;
774
- apiToken?: string | null | undefined;
775
- remoteSupports?: {
776
- anydeskId?: string | null | undefined;
777
- anydeskPassword?: string | null | undefined;
778
- deviceName: string;
779
- }[] | null | undefined;
780
- payoutAccount?: Record<string, any> | null | undefined;
781
- clearCount?: number | null | undefined;
782
- queueSetting?: {
783
- duration?: number | null | undefined;
784
- enableOrder: boolean;
785
- initialNumber: number;
786
- endNumber: number;
787
- currentNumber: number;
788
- autoCalledLimit: number;
789
- } | null | undefined;
790
- tableMappingSetting?: {
791
- enable?: boolean | null | undefined;
792
- showSeat?: boolean | null | undefined;
793
- mapBorderColor?: number | null | undefined;
794
- mapLineColor?: number | null | undefined;
795
- } | null | undefined;
796
- _id: string;
797
- expiredAt: string;
798
- businessId: string;
799
- }[];
800
- businessRestaurants: {
801
- id: string;
802
- profile: {
803
- address: {
804
- formatted: string;
805
- isValidPostcode: boolean;
806
- isValid: boolean;
807
- isValidCoordinate: boolean;
808
- coordinates?: number[] | null | undefined;
809
- line2?: string | null | undefined;
810
- state: string;
811
- country: string;
812
- line1: string;
813
- city: string;
814
- postcode: string;
369
+ 4: {
370
+ hours: {
371
+ end: string;
372
+ start: string;
373
+ }[];
374
+ enable: boolean;
815
375
  };
816
- code?: string | null | undefined;
817
- url?: string | null | undefined;
818
- description?: string | null | undefined;
819
- _id?: string | null | undefined;
820
- legalName?: string | null | undefined;
821
- sstRegNo?: string | null | undefined;
822
- discovery?: boolean | null | undefined;
823
- coverPhoto?: string | null | undefined;
824
- thumbnailPhoto?: string | null | undefined;
825
- photos?: string[] | null | undefined;
826
- operatingHours?: {
376
+ 5: {
377
+ hours: {
378
+ end: string;
379
+ start: string;
380
+ }[];
381
+ enable: boolean;
382
+ };
383
+ 6: {
384
+ hours: {
385
+ end: string;
386
+ start: string;
387
+ }[];
388
+ enable: boolean;
389
+ };
390
+ } | null | undefined;
391
+ tags?: string[] | null | undefined;
392
+ name: string;
393
+ address: {
394
+ coordinates?: number[] | null | undefined;
395
+ line2?: string | null | undefined;
396
+ state: string;
397
+ country: string;
398
+ line1: string;
399
+ city: string;
400
+ postcode: string;
401
+ };
402
+ email: string;
403
+ phoneNo: string;
404
+ regNo: string;
405
+ };
406
+ } | undefined;
407
+ currentRestaurantSetting: RestaurantSettingDoc | undefined;
408
+ readRestaurantSetting: (restaurantId: string) => Promise<RestaurantSettingDoc>;
409
+ selectRestaurant: (restaurantId: string) => Promise<void>;
410
+ updateServiceCharge: (serviceCharge: FdoServiceChargeSetting) => Promise<void>;
411
+ updateDineInSetting: (setting: FdoRestaurantDineIn) => Promise<void>;
412
+ updatePickupSetting: (setting: FdoRestaurantPickup) => Promise<void>;
413
+ updateInhouseDelivery: (restaurantId: string, dto: FdoRestaurantInHouseDelivery) => Promise<void>;
414
+ updateFeedmeDelivery: (restaurantId: string, dto: FdoRestaurantFeedmeDelivery) => Promise<{
415
+ channel?: string | null | undefined;
416
+ machineId?: string | null | undefined;
417
+ catalogId?: string | null | undefined;
418
+ customAttributes?: Record<string, any> | null | undefined;
419
+ takeaway?: {
420
+ catalogId?: string | null | undefined;
421
+ } | null | undefined;
422
+ inHouseDelivery?: {
423
+ taxes?: Record<string, {
424
+ inclusive: boolean;
425
+ taxCode: string;
426
+ systemCode: string;
427
+ }> | null | undefined;
428
+ autoAccept?: boolean | null | undefined;
429
+ deliveryTime?: {
430
+ time?: string[] | null | undefined;
431
+ custom?: {
827
432
  0: {
828
433
  hours: {
829
434
  end: string;
@@ -874,479 +479,10 @@ export declare const useRestaurantStore: import("pinia").StoreDefinition<"restau
874
479
  enable: boolean;
875
480
  };
876
481
  } | null | undefined;
877
- tags?: string[] | null | undefined;
878
- name: string;
879
- email: string;
880
- phoneNo: string;
881
- regNo: string;
882
- };
883
- allowEPayment: true | string;
884
- msicCode?: string | undefined;
885
- tinNo?: string | undefined;
886
- isEInvoiceActive?: boolean | undefined;
887
- channel?: string | null | undefined;
888
- machineId?: string | null | undefined;
889
- catalogId?: string | null | undefined;
890
- customAttributes?: Record<string, any> | null | undefined;
891
- takeaway?: {
892
- catalogId?: string | null | undefined;
893
- } | null | undefined;
894
- inHouseDelivery?: {
895
- taxes?: Record<string, {
896
- inclusive: boolean;
897
- taxCode: string;
898
- systemCode: string;
899
- }> | null | undefined;
900
- autoAccept?: boolean | null | undefined;
901
- deliveryTime?: {
902
- time?: string[] | null | undefined;
903
- custom?: {
904
- 0: {
905
- hours: {
906
- end: string;
907
- start: string;
908
- }[];
909
- enable: boolean;
910
- };
911
- 2: {
912
- hours: {
913
- end: string;
914
- start: string;
915
- }[];
916
- enable: boolean;
917
- };
918
- 1: {
919
- hours: {
920
- end: string;
921
- start: string;
922
- }[];
923
- enable: boolean;
924
- };
925
- 3: {
926
- hours: {
927
- end: string;
928
- start: string;
929
- }[];
930
- enable: boolean;
931
- };
932
- 4: {
933
- hours: {
934
- end: string;
935
- start: string;
936
- }[];
937
- enable: boolean;
938
- };
939
- 5: {
940
- hours: {
941
- end: string;
942
- start: string;
943
- }[];
944
- enable: boolean;
945
- };
946
- 6: {
947
- hours: {
948
- end: string;
949
- start: string;
950
- }[];
951
- enable: boolean;
952
- };
953
- } | null | undefined;
954
- day: {
955
- max: number;
956
- min: number;
957
- };
958
- } | null | undefined;
959
- paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
960
- offlinePaymentTypes?: {
961
- name: string;
962
- instruction: string;
963
- }[] | null | undefined;
964
- autoAcceptPaidOnly?: boolean | null | undefined;
965
- ignoreStock?: boolean | null | undefined;
966
- catalogId: string | null;
967
- enable: boolean;
968
- areas: {
969
- minPurchase?: {
970
- currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
971
- amount: number;
972
- precision: number;
973
- } | null | undefined;
974
- freeAfterTotal?: {
975
- currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
976
- amount: number;
977
- precision: number;
978
- } | null | undefined;
979
- polygon: number[][];
980
- deliveryFee: {
981
- currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
982
- amount: number;
983
- precision: number;
984
- };
985
- }[];
986
- term: string;
987
- } | null | undefined;
988
- pickup?: {
989
- catalogId?: string | null | undefined;
990
- autoAccept?: boolean | null | undefined;
991
- paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
992
- offlinePaymentTypes?: {
993
- name: string;
994
- instruction: string;
995
- }[] | null | undefined;
996
- autoAcceptPaidOnly?: boolean | null | undefined;
997
- ignoreStock?: boolean | null | undefined;
998
- pickupTime?: {
999
- day: {
1000
- max: number;
1001
- min: number;
1002
- };
1003
- } | null | undefined;
1004
- pickupPointConfig?: {
1005
- restaurantEnable: boolean;
1006
- points: {
1007
- name: string;
1008
- address: string;
1009
- coordinates: number[];
1010
- }[];
1011
- } | null | undefined;
1012
- } | null | undefined;
1013
- dineIn?: {
1014
- paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
1015
- offlinePaymentTypes?: {
1016
- name: string;
1017
- instruction: string;
1018
- }[] | null | undefined;
1019
- ignoreStock?: boolean | null | undefined;
1020
- staticQr?: boolean | null | undefined;
1021
- disableItemRemark?: boolean | null | undefined;
1022
- acceptQueue?: boolean | null | undefined;
1023
- anonymousOrder: boolean;
1024
- } | null | undefined;
1025
- pf_business?: {
1026
- internal?: boolean | null | undefined;
1027
- url?: string | null | undefined;
1028
- expiredAt?: string | null | undefined;
1029
- agentId?: string | null | undefined;
1030
- attributeSettings?: {
1031
- type: "string" | "number" | "boolean" | "date";
1032
- key: string;
1033
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
1034
- }[] | null | undefined;
1035
- pf_agent?: {
1036
- clickupId?: string | null | undefined;
1037
- members?: {
1038
- pf_user?: {
1039
- email?: string | null | undefined;
1040
- phoneNumber?: string | null | undefined;
1041
- birthday?: string | null | undefined;
1042
- gender?: "MALE" | "FEMALE" | null | undefined;
1043
- addresses?: {
1044
- name: string;
1045
- address: string;
1046
- coordinates: number[];
1047
- }[] | null | undefined;
1048
- photoURL?: string | null | undefined;
1049
- displayName?: string | null | undefined;
1050
- imported?: {
1051
- raw: Record<string, any>;
1052
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
1053
- } | null | undefined;
1054
- _id: string;
1055
- } | null | undefined;
1056
- role: "ADMIN";
1057
- userId: string;
1058
- }[] | null | undefined;
1059
- code: string;
1060
- name: string;
1061
- _id: string;
1062
- isReseller: boolean;
1063
- } | null | undefined;
1064
- thumbnail?: string | null | undefined;
1065
- billingInfos?: {
1066
- _id?: string | null | undefined;
1067
- name: string;
1068
- address: {
1069
- coordinates?: number[] | null | undefined;
1070
- line2?: string | null | undefined;
1071
- state: string;
1072
- country: string;
1073
- line1: string;
1074
- city: string;
1075
- postcode: string;
1076
- };
1077
- email: string;
1078
- companyName: string;
1079
- contact: string;
1080
- }[] | null | undefined;
1081
- customerDisplayImages?: {
1082
- url: string;
1083
- restaurantIds: string[];
1084
- }[] | null | undefined;
1085
- name: string;
1086
- _id: string;
1087
- ownerId: string;
1088
- restaurantQuota: number;
1089
- warehouseQuota: number;
1090
- menuVersion: string;
1091
- } | null | undefined;
1092
- features?: string[] | null | undefined;
1093
- machineOtp?: string | null | undefined;
1094
- machineOtpExpiredAt?: string | null | undefined;
1095
- posVersion?: string | null | undefined;
1096
- posHeartbeat?: string | null | undefined;
1097
- posVersionHistory?: Record<string, string> | null | undefined;
1098
- additionalCatalogs?: string[] | null | undefined;
1099
- feedmeDelivery?: {
1100
- instruction?: string | null | undefined;
1101
- catalogId?: string | null | undefined;
1102
- autoAccept?: boolean | null | undefined;
1103
- term?: string | null | undefined;
1104
- ignoreStock?: boolean | null | undefined;
1105
- enable: boolean;
1106
- } | null | undefined;
1107
- foodpandaDelivery?: {
1108
- _id?: string | undefined;
1109
- ignoreDiscount?: boolean | null | undefined;
1110
- catalogId?: string | null | undefined;
1111
- commissionRate?: number | null | undefined;
1112
- lastSynchronize?: string | null | undefined;
1113
- showProductAddon?: boolean | null | undefined;
1114
- autoAccept?: boolean | null | undefined;
1115
- reportConfig?: {
1116
- commissionRate: number;
1117
- discountCampaigns: {
1118
- name: string;
1119
- date: {
1120
- end: string;
1121
- start: string;
1122
- };
1123
- vendorBearPercentage: number;
1124
- }[];
1125
- } | null | undefined;
1126
- hasSst?: boolean | null | undefined;
1127
- enable: boolean;
1128
- remoteId: string;
1129
- autoCloseBill: boolean;
1130
- } | null | undefined;
1131
- grabfoodDelivery?: {
1132
- _id?: string | undefined;
1133
- catalogId?: string | null | undefined;
1134
- lastSynchronize?: string | null | undefined;
1135
- showProductAddon?: boolean | null | undefined;
1136
- enable: boolean;
1137
- commissionRate: number;
1138
- autoCloseBill: boolean;
1139
- merchantID: string;
1140
- } | null | undefined;
1141
- shopeefoodDelivery?: {
1142
- _id?: string | undefined;
1143
- catalogId?: string | null | undefined;
1144
- lastSynchronize?: string | null | undefined;
1145
- showProductAddon?: boolean | null | undefined;
1146
- enable: boolean;
1147
- autoCloseBill: boolean;
1148
- reportConfig: {
1149
- commissionRate: number;
1150
- discountCampaigns: {
1151
- name: string;
1152
- date: {
1153
- end: string;
1154
- start: string;
1155
- };
1156
- vendorBearPercentage: number;
1157
- }[];
1158
- };
1159
- storeID: string;
1160
- } | null | undefined;
1161
- couchDbPassword?: string | null | undefined;
1162
- apiToken?: string | null | undefined;
1163
- remoteSupports?: {
1164
- anydeskId?: string | null | undefined;
1165
- anydeskPassword?: string | null | undefined;
1166
- deviceName: string;
1167
- }[] | null | undefined;
1168
- payoutAccount?: Record<string, any> | null | undefined;
1169
- clearCount?: number | null | undefined;
1170
- queueSetting?: {
1171
- duration?: number | null | undefined;
1172
- enableOrder: boolean;
1173
- initialNumber: number;
1174
- endNumber: number;
1175
- currentNumber: number;
1176
- autoCalledLimit: number;
1177
- } | null | undefined;
1178
- tableMappingSetting?: {
1179
- enable?: boolean | null | undefined;
1180
- showSeat?: boolean | null | undefined;
1181
- mapBorderColor?: number | null | undefined;
1182
- mapLineColor?: number | null | undefined;
1183
- } | null | undefined;
1184
- _id: string;
1185
- expiredAt: string;
1186
- businessId: string;
1187
- }[];
1188
- currentRestaurantId: string;
1189
- restaurantSettings: {
1190
- [restaurantId: string]: RestaurantSettingDoc;
1191
- };
1192
- } & import("pinia").PiniaCustomStateProperties<RestaurantState>) => {
1193
- id: string;
1194
- profile: {
1195
- address: {
1196
- formatted: string;
1197
- isValidPostcode: boolean;
1198
- isValid: boolean;
1199
- isValidCoordinate: boolean;
1200
- coordinates?: number[] | null | undefined;
1201
- line2?: string | null | undefined;
1202
- state: string;
1203
- country: string;
1204
- line1: string;
1205
- city: string;
1206
- postcode: string;
1207
- };
1208
- code?: string | null | undefined;
1209
- url?: string | null | undefined;
1210
- description?: string | null | undefined;
1211
- _id?: string | null | undefined;
1212
- legalName?: string | null | undefined;
1213
- sstRegNo?: string | null | undefined;
1214
- discovery?: boolean | null | undefined;
1215
- coverPhoto?: string | null | undefined;
1216
- thumbnailPhoto?: string | null | undefined;
1217
- photos?: string[] | null | undefined;
1218
- operatingHours?: {
1219
- 0: {
1220
- hours: {
1221
- end: string;
1222
- start: string;
1223
- }[];
1224
- enable: boolean;
1225
- };
1226
- 2: {
1227
- hours: {
1228
- end: string;
1229
- start: string;
1230
- }[];
1231
- enable: boolean;
1232
- };
1233
- 1: {
1234
- hours: {
1235
- end: string;
1236
- start: string;
1237
- }[];
1238
- enable: boolean;
1239
- };
1240
- 3: {
1241
- hours: {
1242
- end: string;
1243
- start: string;
1244
- }[];
1245
- enable: boolean;
1246
- };
1247
- 4: {
1248
- hours: {
1249
- end: string;
1250
- start: string;
1251
- }[];
1252
- enable: boolean;
1253
- };
1254
- 5: {
1255
- hours: {
1256
- end: string;
1257
- start: string;
1258
- }[];
1259
- enable: boolean;
1260
- };
1261
- 6: {
1262
- hours: {
1263
- end: string;
1264
- start: string;
1265
- }[];
1266
- enable: boolean;
1267
- };
1268
- } | null | undefined;
1269
- tags?: string[] | null | undefined;
1270
- name: string;
1271
- email: string;
1272
- phoneNo: string;
1273
- regNo: string;
1274
- };
1275
- allowEPayment: true | string;
1276
- msicCode?: string | undefined;
1277
- tinNo?: string | undefined;
1278
- isEInvoiceActive?: boolean | undefined;
1279
- channel?: string | null | undefined;
1280
- machineId?: string | null | undefined;
1281
- catalogId?: string | null | undefined;
1282
- customAttributes?: Record<string, any> | null | undefined;
1283
- takeaway?: {
1284
- catalogId?: string | null | undefined;
1285
- } | null | undefined;
1286
- inHouseDelivery?: {
1287
- taxes?: Record<string, {
1288
- inclusive: boolean;
1289
- taxCode: string;
1290
- systemCode: string;
1291
- }> | null | undefined;
1292
- autoAccept?: boolean | null | undefined;
1293
- deliveryTime?: {
1294
- time?: string[] | null | undefined;
1295
- custom?: {
1296
- 0: {
1297
- hours: {
1298
- end: string;
1299
- start: string;
1300
- }[];
1301
- enable: boolean;
1302
- };
1303
- 2: {
1304
- hours: {
1305
- end: string;
1306
- start: string;
1307
- }[];
1308
- enable: boolean;
1309
- };
1310
- 1: {
1311
- hours: {
1312
- end: string;
1313
- start: string;
1314
- }[];
1315
- enable: boolean;
1316
- };
1317
- 3: {
1318
- hours: {
1319
- end: string;
1320
- start: string;
1321
- }[];
1322
- enable: boolean;
1323
- };
1324
- 4: {
1325
- hours: {
1326
- end: string;
1327
- start: string;
1328
- }[];
1329
- enable: boolean;
1330
- };
1331
- 5: {
1332
- hours: {
1333
- end: string;
1334
- start: string;
1335
- }[];
1336
- enable: boolean;
1337
- };
1338
- 6: {
1339
- hours: {
1340
- end: string;
1341
- start: string;
1342
- }[];
1343
- enable: boolean;
1344
- };
1345
- } | null | undefined;
1346
- day: {
1347
- max: number;
1348
- min: number;
1349
- };
482
+ day: {
483
+ max: number;
484
+ min: number;
485
+ };
1350
486
  } | null | undefined;
1351
487
  paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
1352
488
  offlinePaymentTypes?: {
@@ -1576,321 +712,113 @@ export declare const useRestaurantStore: import("pinia").StoreDefinition<"restau
1576
712
  _id: string;
1577
713
  expiredAt: string;
1578
714
  businessId: string;
1579
- } | undefined;
1580
- currentRestaurantSetting: (state: {
1581
- adminRestaurants: {
1582
- channel?: string | null | undefined;
1583
- machineId?: string | null | undefined;
1584
- catalogId?: string | null | undefined;
1585
- customAttributes?: Record<string, any> | null | undefined;
1586
- takeaway?: {
1587
- catalogId?: string | null | undefined;
1588
- } | null | undefined;
1589
- inHouseDelivery?: {
1590
- taxes?: Record<string, {
1591
- inclusive: boolean;
1592
- taxCode: string;
1593
- systemCode: string;
1594
- }> | null | undefined;
1595
- autoAccept?: boolean | null | undefined;
1596
- deliveryTime?: {
1597
- time?: string[] | null | undefined;
1598
- custom?: {
1599
- 0: {
1600
- hours: {
1601
- end: string;
1602
- start: string;
1603
- }[];
1604
- enable: boolean;
1605
- };
1606
- 2: {
1607
- hours: {
1608
- end: string;
1609
- start: string;
1610
- }[];
1611
- enable: boolean;
1612
- };
1613
- 1: {
1614
- hours: {
1615
- end: string;
1616
- start: string;
1617
- }[];
1618
- enable: boolean;
1619
- };
1620
- 3: {
1621
- hours: {
1622
- end: string;
1623
- start: string;
1624
- }[];
1625
- enable: boolean;
1626
- };
1627
- 4: {
1628
- hours: {
1629
- end: string;
1630
- start: string;
1631
- }[];
1632
- enable: boolean;
1633
- };
1634
- 5: {
1635
- hours: {
1636
- end: string;
1637
- start: string;
1638
- }[];
1639
- enable: boolean;
1640
- };
1641
- 6: {
1642
- hours: {
1643
- end: string;
1644
- start: string;
1645
- }[];
1646
- enable: boolean;
1647
- };
1648
- } | null | undefined;
1649
- day: {
1650
- max: number;
1651
- min: number;
1652
- };
1653
- } | null | undefined;
1654
- paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
1655
- offlinePaymentTypes?: {
1656
- name: string;
1657
- instruction: string;
1658
- }[] | null | undefined;
1659
- autoAcceptPaidOnly?: boolean | null | undefined;
1660
- ignoreStock?: boolean | null | undefined;
1661
- catalogId: string | null;
1662
- enable: boolean;
1663
- areas: {
1664
- minPurchase?: {
1665
- currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
1666
- amount: number;
1667
- precision: number;
1668
- } | null | undefined;
1669
- freeAfterTotal?: {
1670
- currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
1671
- amount: number;
1672
- precision: number;
1673
- } | null | undefined;
1674
- polygon: number[][];
1675
- deliveryFee: {
1676
- currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
1677
- amount: number;
1678
- precision: number;
1679
- };
1680
- }[];
1681
- term: string;
1682
- } | null | undefined;
1683
- pickup?: {
1684
- catalogId?: string | null | undefined;
1685
- autoAccept?: boolean | null | undefined;
1686
- paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
1687
- offlinePaymentTypes?: {
1688
- name: string;
1689
- instruction: string;
1690
- }[] | null | undefined;
1691
- autoAcceptPaidOnly?: boolean | null | undefined;
1692
- ignoreStock?: boolean | null | undefined;
1693
- pickupTime?: {
1694
- day: {
1695
- max: number;
1696
- min: number;
1697
- };
1698
- } | null | undefined;
1699
- pickupPointConfig?: {
1700
- restaurantEnable: boolean;
1701
- points: {
1702
- name: string;
1703
- address: string;
1704
- coordinates: number[];
1705
- }[];
1706
- } | null | undefined;
1707
- } | null | undefined;
1708
- dineIn?: {
1709
- paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
1710
- offlinePaymentTypes?: {
1711
- name: string;
1712
- instruction: string;
1713
- }[] | null | undefined;
1714
- ignoreStock?: boolean | null | undefined;
1715
- staticQr?: boolean | null | undefined;
1716
- disableItemRemark?: boolean | null | undefined;
1717
- acceptQueue?: boolean | null | undefined;
1718
- anonymousOrder: boolean;
1719
- } | null | undefined;
1720
- pf_business?: {
1721
- internal?: boolean | null | undefined;
1722
- url?: string | null | undefined;
1723
- expiredAt?: string | null | undefined;
1724
- agentId?: string | null | undefined;
1725
- attributeSettings?: {
1726
- type: "string" | "number" | "boolean" | "date";
1727
- key: string;
1728
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
1729
- }[] | null | undefined;
1730
- pf_agent?: {
1731
- clickupId?: string | null | undefined;
1732
- members?: {
1733
- pf_user?: {
1734
- email?: string | null | undefined;
1735
- phoneNumber?: string | null | undefined;
1736
- birthday?: string | null | undefined;
1737
- gender?: "MALE" | "FEMALE" | null | undefined;
1738
- addresses?: {
1739
- name: string;
1740
- address: string;
1741
- coordinates: number[];
1742
- }[] | null | undefined;
1743
- photoURL?: string | null | undefined;
1744
- displayName?: string | null | undefined;
1745
- imported?: {
1746
- raw: Record<string, any>;
1747
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
1748
- } | null | undefined;
1749
- _id: string;
1750
- } | null | undefined;
1751
- role: "ADMIN";
1752
- userId: string;
1753
- }[] | null | undefined;
1754
- code: string;
1755
- name: string;
1756
- _id: string;
1757
- isReseller: boolean;
1758
- } | null | undefined;
1759
- thumbnail?: string | null | undefined;
1760
- billingInfos?: {
1761
- _id?: string | null | undefined;
1762
- name: string;
1763
- address: {
1764
- coordinates?: number[] | null | undefined;
1765
- line2?: string | null | undefined;
1766
- state: string;
1767
- country: string;
1768
- line1: string;
1769
- city: string;
1770
- postcode: string;
1771
- };
1772
- email: string;
1773
- companyName: string;
1774
- contact: string;
1775
- }[] | null | undefined;
1776
- customerDisplayImages?: {
1777
- url: string;
1778
- restaurantIds: string[];
1779
- }[] | null | undefined;
1780
- name: string;
1781
- _id: string;
1782
- ownerId: string;
1783
- restaurantQuota: number;
1784
- warehouseQuota: number;
1785
- menuVersion: string;
1786
- } | null | undefined;
1787
- features?: string[] | null | undefined;
1788
- machineOtp?: string | null | undefined;
1789
- machineOtpExpiredAt?: string | null | undefined;
1790
- posVersion?: string | null | undefined;
1791
- posHeartbeat?: string | null | undefined;
1792
- posVersionHistory?: Record<string, string> | null | undefined;
1793
- additionalCatalogs?: string[] | null | undefined;
1794
- feedmeDelivery?: {
1795
- instruction?: string | null | undefined;
1796
- catalogId?: string | null | undefined;
1797
- autoAccept?: boolean | null | undefined;
1798
- term?: string | null | undefined;
1799
- ignoreStock?: boolean | null | undefined;
1800
- enable: boolean;
1801
- } | null | undefined;
1802
- foodpandaDelivery?: {
1803
- _id?: string | undefined;
1804
- ignoreDiscount?: boolean | null | undefined;
1805
- catalogId?: string | null | undefined;
1806
- commissionRate?: number | null | undefined;
1807
- lastSynchronize?: string | null | undefined;
1808
- showProductAddon?: boolean | null | undefined;
1809
- autoAccept?: boolean | null | undefined;
1810
- reportConfig?: {
1811
- commissionRate: number;
1812
- discountCampaigns: {
1813
- name: string;
1814
- date: {
1815
- end: string;
1816
- start: string;
1817
- };
1818
- vendorBearPercentage: number;
715
+ profile: {
716
+ code?: string | null | undefined;
717
+ url?: string | null | undefined;
718
+ description?: string | null | undefined;
719
+ _id?: string | null | undefined;
720
+ legalName?: string | null | undefined;
721
+ sstRegNo?: string | null | undefined;
722
+ discovery?: boolean | null | undefined;
723
+ coverPhoto?: string | null | undefined;
724
+ thumbnailPhoto?: string | null | undefined;
725
+ photos?: string[] | null | undefined;
726
+ operatingHours?: {
727
+ 0: {
728
+ hours: {
729
+ end: string;
730
+ start: string;
1819
731
  }[];
1820
- } | null | undefined;
1821
- hasSst?: boolean | null | undefined;
1822
- enable: boolean;
1823
- remoteId: string;
1824
- autoCloseBill: boolean;
1825
- } | null | undefined;
1826
- grabfoodDelivery?: {
1827
- _id?: string | undefined;
1828
- catalogId?: string | null | undefined;
1829
- lastSynchronize?: string | null | undefined;
1830
- showProductAddon?: boolean | null | undefined;
1831
- enable: boolean;
1832
- commissionRate: number;
1833
- autoCloseBill: boolean;
1834
- merchantID: string;
1835
- } | null | undefined;
1836
- shopeefoodDelivery?: {
1837
- _id?: string | undefined;
1838
- catalogId?: string | null | undefined;
1839
- lastSynchronize?: string | null | undefined;
1840
- showProductAddon?: boolean | null | undefined;
1841
- enable: boolean;
1842
- autoCloseBill: boolean;
1843
- reportConfig: {
1844
- commissionRate: number;
1845
- discountCampaigns: {
1846
- name: string;
1847
- date: {
1848
- end: string;
1849
- start: string;
1850
- };
1851
- vendorBearPercentage: number;
732
+ enable: boolean;
733
+ };
734
+ 2: {
735
+ hours: {
736
+ end: string;
737
+ start: string;
1852
738
  }[];
739
+ enable: boolean;
740
+ };
741
+ 1: {
742
+ hours: {
743
+ end: string;
744
+ start: string;
745
+ }[];
746
+ enable: boolean;
747
+ };
748
+ 3: {
749
+ hours: {
750
+ end: string;
751
+ start: string;
752
+ }[];
753
+ enable: boolean;
754
+ };
755
+ 4: {
756
+ hours: {
757
+ end: string;
758
+ start: string;
759
+ }[];
760
+ enable: boolean;
761
+ };
762
+ 5: {
763
+ hours: {
764
+ end: string;
765
+ start: string;
766
+ }[];
767
+ enable: boolean;
768
+ };
769
+ 6: {
770
+ hours: {
771
+ end: string;
772
+ start: string;
773
+ }[];
774
+ enable: boolean;
1853
775
  };
1854
- storeID: string;
1855
- } | null | undefined;
1856
- couchDbPassword?: string | null | undefined;
1857
- apiToken?: string | null | undefined;
1858
- remoteSupports?: {
1859
- anydeskId?: string | null | undefined;
1860
- anydeskPassword?: string | null | undefined;
1861
- deviceName: string;
1862
- }[] | null | undefined;
1863
- payoutAccount?: Record<string, any> | null | undefined;
1864
- clearCount?: number | null | undefined;
1865
- queueSetting?: {
1866
- duration?: number | null | undefined;
1867
- enableOrder: boolean;
1868
- initialNumber: number;
1869
- endNumber: number;
1870
- currentNumber: number;
1871
- autoCalledLimit: number;
1872
- } | null | undefined;
1873
- tableMappingSetting?: {
1874
- enable?: boolean | null | undefined;
1875
- showSeat?: boolean | null | undefined;
1876
- mapBorderColor?: number | null | undefined;
1877
- mapLineColor?: number | null | undefined;
1878
776
  } | null | undefined;
1879
- _id: string;
1880
- expiredAt: string;
1881
- businessId: string;
1882
- profile: {
1883
- code?: string | null | undefined;
1884
- url?: string | null | undefined;
1885
- description?: string | null | undefined;
1886
- _id?: string | null | undefined;
1887
- legalName?: string | null | undefined;
1888
- sstRegNo?: string | null | undefined;
1889
- discovery?: boolean | null | undefined;
1890
- coverPhoto?: string | null | undefined;
1891
- thumbnailPhoto?: string | null | undefined;
1892
- photos?: string[] | null | undefined;
1893
- operatingHours?: {
777
+ tags?: string[] | null | undefined;
778
+ name: string;
779
+ address: {
780
+ coordinates?: number[] | null | undefined;
781
+ line2?: string | null | undefined;
782
+ state: string;
783
+ country: string;
784
+ line1: string;
785
+ city: string;
786
+ postcode: string;
787
+ };
788
+ email: string;
789
+ phoneNo: string;
790
+ regNo: string;
791
+ };
792
+ }>;
793
+ updateIntegratedFoodpandaDelivery: (restaurantId: string, dto: FdoFoodpandaSettings) => Promise<void>;
794
+ updateIntegratedGrabfoodDelivery: (restaurantId: string, dto: FdoGrabfoodSettings) => Promise<void>;
795
+ updateIntegratedShopeefoodDelivery: (restaurantId: string, dto: FdoShopeeFoodSettings) => Promise<void>;
796
+ updateExternalDelivery: (restaurantId: string, dto: FdoExternalSetting) => Promise<void>;
797
+ getRestaurantEPayment: () => true | string;
798
+ }, "state" | "currentRestaurant" | "currentRestaurantSetting">, Pick<{
799
+ state: {
800
+ restaurantSettings: {
801
+ [restaurantId: string]: RestaurantSettingDoc;
802
+ };
803
+ };
804
+ currentRestaurant: {
805
+ channel?: string | null | undefined;
806
+ machineId?: string | null | undefined;
807
+ catalogId?: string | null | undefined;
808
+ customAttributes?: Record<string, any> | null | undefined;
809
+ takeaway?: {
810
+ catalogId?: string | null | undefined;
811
+ } | null | undefined;
812
+ inHouseDelivery?: {
813
+ taxes?: Record<string, {
814
+ inclusive: boolean;
815
+ taxCode: string;
816
+ systemCode: string;
817
+ }> | null | undefined;
818
+ autoAccept?: boolean | null | undefined;
819
+ deliveryTime?: {
820
+ time?: string[] | null | undefined;
821
+ custom?: {
1894
822
  0: {
1895
823
  hours: {
1896
824
  end: string;
@@ -1941,30 +869,121 @@ export declare const useRestaurantStore: import("pinia").StoreDefinition<"restau
1941
869
  enable: boolean;
1942
870
  };
1943
871
  } | null | undefined;
1944
- tags?: string[] | null | undefined;
872
+ day: {
873
+ max: number;
874
+ min: number;
875
+ };
876
+ } | null | undefined;
877
+ paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
878
+ offlinePaymentTypes?: {
1945
879
  name: string;
1946
- address: {
1947
- coordinates?: number[] | null | undefined;
1948
- line2?: string | null | undefined;
1949
- state: string;
1950
- country: string;
1951
- line1: string;
1952
- city: string;
1953
- postcode: string;
880
+ instruction: string;
881
+ }[] | null | undefined;
882
+ autoAcceptPaidOnly?: boolean | null | undefined;
883
+ ignoreStock?: boolean | null | undefined;
884
+ catalogId: string | null;
885
+ enable: boolean;
886
+ areas: {
887
+ minPurchase?: {
888
+ currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
889
+ amount: number;
890
+ precision: number;
891
+ } | null | undefined;
892
+ freeAfterTotal?: {
893
+ currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
894
+ amount: number;
895
+ precision: number;
896
+ } | null | undefined;
897
+ polygon: number[][];
898
+ deliveryFee: {
899
+ currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
900
+ amount: number;
901
+ precision: number;
1954
902
  };
1955
- email: string;
1956
- phoneNo: string;
1957
- regNo: string;
1958
- };
1959
- }[];
1960
- managableRestaurants: {
1961
- id: string;
1962
- profile: {
903
+ }[];
904
+ term: string;
905
+ } | null | undefined;
906
+ pickup?: {
907
+ catalogId?: string | null | undefined;
908
+ autoAccept?: boolean | null | undefined;
909
+ paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
910
+ offlinePaymentTypes?: {
911
+ name: string;
912
+ instruction: string;
913
+ }[] | null | undefined;
914
+ autoAcceptPaidOnly?: boolean | null | undefined;
915
+ ignoreStock?: boolean | null | undefined;
916
+ pickupTime?: {
917
+ day: {
918
+ max: number;
919
+ min: number;
920
+ };
921
+ } | null | undefined;
922
+ pickupPointConfig?: {
923
+ restaurantEnable: boolean;
924
+ points: {
925
+ name: string;
926
+ address: string;
927
+ coordinates: number[];
928
+ }[];
929
+ } | null | undefined;
930
+ } | null | undefined;
931
+ dineIn?: {
932
+ paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
933
+ offlinePaymentTypes?: {
934
+ name: string;
935
+ instruction: string;
936
+ }[] | null | undefined;
937
+ ignoreStock?: boolean | null | undefined;
938
+ staticQr?: boolean | null | undefined;
939
+ disableItemRemark?: boolean | null | undefined;
940
+ acceptQueue?: boolean | null | undefined;
941
+ anonymousOrder: boolean;
942
+ } | null | undefined;
943
+ pf_business?: {
944
+ internal?: boolean | null | undefined;
945
+ url?: string | null | undefined;
946
+ expiredAt?: string | null | undefined;
947
+ agentId?: string | null | undefined;
948
+ attributeSettings?: {
949
+ type: "string" | "number" | "boolean" | "date";
950
+ key: string;
951
+ entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
952
+ }[] | null | undefined;
953
+ pf_agent?: {
954
+ clickupId?: string | null | undefined;
955
+ members?: {
956
+ pf_user?: {
957
+ email?: string | null | undefined;
958
+ phoneNumber?: string | null | undefined;
959
+ birthday?: string | null | undefined;
960
+ gender?: "MALE" | "FEMALE" | null | undefined;
961
+ addresses?: {
962
+ name: string;
963
+ address: string;
964
+ coordinates: number[];
965
+ }[] | null | undefined;
966
+ photoURL?: string | null | undefined;
967
+ displayName?: string | null | undefined;
968
+ imported?: {
969
+ raw: Record<string, any>;
970
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
971
+ } | null | undefined;
972
+ _id: string;
973
+ } | null | undefined;
974
+ role: "ADMIN";
975
+ userId: string;
976
+ }[] | null | undefined;
977
+ code: string;
978
+ name: string;
979
+ _id: string;
980
+ isReseller: boolean;
981
+ } | null | undefined;
982
+ thumbnail?: string | null | undefined;
983
+ billingInfos?: {
984
+ _id?: string | null | undefined;
985
+ name: string;
1963
986
  address: {
1964
- formatted: string;
1965
- isValidPostcode: boolean;
1966
- isValid: boolean;
1967
- isValidCoordinate: boolean;
1968
987
  coordinates?: number[] | null | undefined;
1969
988
  line2?: string | null | undefined;
1970
989
  state: string;
@@ -1973,405 +992,219 @@ export declare const useRestaurantStore: import("pinia").StoreDefinition<"restau
1973
992
  city: string;
1974
993
  postcode: string;
1975
994
  };
1976
- code?: string | null | undefined;
1977
- url?: string | null | undefined;
1978
- description?: string | null | undefined;
1979
- _id?: string | null | undefined;
1980
- legalName?: string | null | undefined;
1981
- sstRegNo?: string | null | undefined;
1982
- discovery?: boolean | null | undefined;
1983
- coverPhoto?: string | null | undefined;
1984
- thumbnailPhoto?: string | null | undefined;
1985
- photos?: string[] | null | undefined;
1986
- operatingHours?: {
1987
- 0: {
1988
- hours: {
1989
- end: string;
1990
- start: string;
1991
- }[];
1992
- enable: boolean;
1993
- };
1994
- 2: {
1995
- hours: {
1996
- end: string;
1997
- start: string;
1998
- }[];
1999
- enable: boolean;
2000
- };
2001
- 1: {
2002
- hours: {
2003
- end: string;
2004
- start: string;
2005
- }[];
2006
- enable: boolean;
2007
- };
2008
- 3: {
2009
- hours: {
2010
- end: string;
2011
- start: string;
2012
- }[];
2013
- enable: boolean;
2014
- };
2015
- 4: {
2016
- hours: {
2017
- end: string;
2018
- start: string;
2019
- }[];
2020
- enable: boolean;
2021
- };
2022
- 5: {
2023
- hours: {
2024
- end: string;
2025
- start: string;
2026
- }[];
2027
- enable: boolean;
2028
- };
2029
- 6: {
2030
- hours: {
2031
- end: string;
2032
- start: string;
2033
- }[];
2034
- enable: boolean;
2035
- };
2036
- } | null | undefined;
2037
- tags?: string[] | null | undefined;
2038
- name: string;
2039
995
  email: string;
2040
- phoneNo: string;
2041
- regNo: string;
2042
- };
2043
- allowEPayment: true | string;
2044
- msicCode?: string | undefined;
2045
- tinNo?: string | undefined;
2046
- isEInvoiceActive?: boolean | undefined;
2047
- channel?: string | null | undefined;
2048
- machineId?: string | null | undefined;
2049
- catalogId?: string | null | undefined;
2050
- customAttributes?: Record<string, any> | null | undefined;
2051
- takeaway?: {
2052
- catalogId?: string | null | undefined;
2053
- } | null | undefined;
2054
- inHouseDelivery?: {
2055
- taxes?: Record<string, {
2056
- inclusive: boolean;
2057
- taxCode: string;
2058
- systemCode: string;
2059
- }> | null | undefined;
2060
- autoAccept?: boolean | null | undefined;
2061
- deliveryTime?: {
2062
- time?: string[] | null | undefined;
2063
- custom?: {
2064
- 0: {
2065
- hours: {
2066
- end: string;
2067
- start: string;
2068
- }[];
2069
- enable: boolean;
2070
- };
2071
- 2: {
2072
- hours: {
2073
- end: string;
2074
- start: string;
2075
- }[];
2076
- enable: boolean;
2077
- };
2078
- 1: {
2079
- hours: {
2080
- end: string;
2081
- start: string;
2082
- }[];
2083
- enable: boolean;
2084
- };
2085
- 3: {
2086
- hours: {
2087
- end: string;
2088
- start: string;
2089
- }[];
2090
- enable: boolean;
2091
- };
2092
- 4: {
2093
- hours: {
2094
- end: string;
2095
- start: string;
2096
- }[];
2097
- enable: boolean;
2098
- };
2099
- 5: {
2100
- hours: {
2101
- end: string;
2102
- start: string;
2103
- }[];
2104
- enable: boolean;
2105
- };
2106
- 6: {
2107
- hours: {
2108
- end: string;
2109
- start: string;
2110
- }[];
2111
- enable: boolean;
2112
- };
2113
- } | null | undefined;
2114
- day: {
2115
- max: number;
2116
- min: number;
2117
- };
2118
- } | null | undefined;
2119
- paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
2120
- offlinePaymentTypes?: {
2121
- name: string;
2122
- instruction: string;
2123
- }[] | null | undefined;
2124
- autoAcceptPaidOnly?: boolean | null | undefined;
2125
- ignoreStock?: boolean | null | undefined;
2126
- catalogId: string | null;
2127
- enable: boolean;
2128
- areas: {
2129
- minPurchase?: {
2130
- currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
2131
- amount: number;
2132
- precision: number;
2133
- } | null | undefined;
2134
- freeAfterTotal?: {
2135
- currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
2136
- amount: number;
2137
- precision: number;
2138
- } | null | undefined;
2139
- polygon: number[][];
2140
- deliveryFee: {
2141
- currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
2142
- amount: number;
2143
- precision: number;
996
+ companyName: string;
997
+ contact: string;
998
+ }[] | null | undefined;
999
+ customerDisplayImages?: {
1000
+ url: string;
1001
+ restaurantIds: string[];
1002
+ }[] | null | undefined;
1003
+ name: string;
1004
+ _id: string;
1005
+ ownerId: string;
1006
+ restaurantQuota: number;
1007
+ warehouseQuota: number;
1008
+ menuVersion: string;
1009
+ } | null | undefined;
1010
+ features?: string[] | null | undefined;
1011
+ machineOtp?: string | null | undefined;
1012
+ machineOtpExpiredAt?: string | null | undefined;
1013
+ posVersion?: string | null | undefined;
1014
+ posHeartbeat?: string | null | undefined;
1015
+ posVersionHistory?: Record<string, string> | null | undefined;
1016
+ additionalCatalogs?: string[] | null | undefined;
1017
+ feedmeDelivery?: {
1018
+ instruction?: string | null | undefined;
1019
+ catalogId?: string | null | undefined;
1020
+ autoAccept?: boolean | null | undefined;
1021
+ term?: string | null | undefined;
1022
+ ignoreStock?: boolean | null | undefined;
1023
+ enable: boolean;
1024
+ } | null | undefined;
1025
+ foodpandaDelivery?: {
1026
+ _id?: string | undefined;
1027
+ ignoreDiscount?: boolean | null | undefined;
1028
+ catalogId?: string | null | undefined;
1029
+ commissionRate?: number | null | undefined;
1030
+ lastSynchronize?: string | null | undefined;
1031
+ showProductAddon?: boolean | null | undefined;
1032
+ autoAccept?: boolean | null | undefined;
1033
+ reportConfig?: {
1034
+ commissionRate: number;
1035
+ discountCampaigns: {
1036
+ name: string;
1037
+ date: {
1038
+ end: string;
1039
+ start: string;
2144
1040
  };
1041
+ vendorBearPercentage: number;
2145
1042
  }[];
2146
- term: string;
2147
1043
  } | null | undefined;
2148
- pickup?: {
2149
- catalogId?: string | null | undefined;
2150
- autoAccept?: boolean | null | undefined;
2151
- paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
2152
- offlinePaymentTypes?: {
1044
+ hasSst?: boolean | null | undefined;
1045
+ enable: boolean;
1046
+ remoteId: string;
1047
+ autoCloseBill: boolean;
1048
+ } | null | undefined;
1049
+ grabfoodDelivery?: {
1050
+ _id?: string | undefined;
1051
+ catalogId?: string | null | undefined;
1052
+ lastSynchronize?: string | null | undefined;
1053
+ showProductAddon?: boolean | null | undefined;
1054
+ enable: boolean;
1055
+ commissionRate: number;
1056
+ autoCloseBill: boolean;
1057
+ merchantID: string;
1058
+ } | null | undefined;
1059
+ shopeefoodDelivery?: {
1060
+ _id?: string | undefined;
1061
+ catalogId?: string | null | undefined;
1062
+ lastSynchronize?: string | null | undefined;
1063
+ showProductAddon?: boolean | null | undefined;
1064
+ enable: boolean;
1065
+ autoCloseBill: boolean;
1066
+ reportConfig: {
1067
+ commissionRate: number;
1068
+ discountCampaigns: {
2153
1069
  name: string;
2154
- instruction: string;
2155
- }[] | null | undefined;
2156
- autoAcceptPaidOnly?: boolean | null | undefined;
2157
- ignoreStock?: boolean | null | undefined;
2158
- pickupTime?: {
2159
- day: {
2160
- max: number;
2161
- min: number;
1070
+ date: {
1071
+ end: string;
1072
+ start: string;
2162
1073
  };
2163
- } | null | undefined;
2164
- pickupPointConfig?: {
2165
- restaurantEnable: boolean;
2166
- points: {
2167
- name: string;
2168
- address: string;
2169
- coordinates: number[];
1074
+ vendorBearPercentage: number;
1075
+ }[];
1076
+ };
1077
+ storeID: string;
1078
+ } | null | undefined;
1079
+ couchDbPassword?: string | null | undefined;
1080
+ apiToken?: string | null | undefined;
1081
+ remoteSupports?: {
1082
+ anydeskId?: string | null | undefined;
1083
+ anydeskPassword?: string | null | undefined;
1084
+ deviceName: string;
1085
+ }[] | null | undefined;
1086
+ payoutAccount?: Record<string, any> | null | undefined;
1087
+ clearCount?: number | null | undefined;
1088
+ queueSetting?: {
1089
+ duration?: number | null | undefined;
1090
+ enableOrder: boolean;
1091
+ initialNumber: number;
1092
+ endNumber: number;
1093
+ currentNumber: number;
1094
+ autoCalledLimit: number;
1095
+ } | null | undefined;
1096
+ tableMappingSetting?: {
1097
+ enable?: boolean | null | undefined;
1098
+ showSeat?: boolean | null | undefined;
1099
+ mapBorderColor?: number | null | undefined;
1100
+ mapLineColor?: number | null | undefined;
1101
+ } | null | undefined;
1102
+ _id: string;
1103
+ expiredAt: string;
1104
+ businessId: string;
1105
+ profile: {
1106
+ code?: string | null | undefined;
1107
+ url?: string | null | undefined;
1108
+ description?: string | null | undefined;
1109
+ _id?: string | null | undefined;
1110
+ legalName?: string | null | undefined;
1111
+ sstRegNo?: string | null | undefined;
1112
+ discovery?: boolean | null | undefined;
1113
+ coverPhoto?: string | null | undefined;
1114
+ thumbnailPhoto?: string | null | undefined;
1115
+ photos?: string[] | null | undefined;
1116
+ operatingHours?: {
1117
+ 0: {
1118
+ hours: {
1119
+ end: string;
1120
+ start: string;
2170
1121
  }[];
2171
- } | null | undefined;
2172
- } | null | undefined;
2173
- dineIn?: {
2174
- paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
2175
- offlinePaymentTypes?: {
2176
- name: string;
2177
- instruction: string;
2178
- }[] | null | undefined;
2179
- ignoreStock?: boolean | null | undefined;
2180
- staticQr?: boolean | null | undefined;
2181
- disableItemRemark?: boolean | null | undefined;
2182
- acceptQueue?: boolean | null | undefined;
2183
- anonymousOrder: boolean;
2184
- } | null | undefined;
2185
- pf_business?: {
2186
- internal?: boolean | null | undefined;
2187
- url?: string | null | undefined;
2188
- expiredAt?: string | null | undefined;
2189
- agentId?: string | null | undefined;
2190
- attributeSettings?: {
2191
- type: "string" | "number" | "boolean" | "date";
2192
- key: string;
2193
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
2194
- }[] | null | undefined;
2195
- pf_agent?: {
2196
- clickupId?: string | null | undefined;
2197
- members?: {
2198
- pf_user?: {
2199
- email?: string | null | undefined;
2200
- phoneNumber?: string | null | undefined;
2201
- birthday?: string | null | undefined;
2202
- gender?: "MALE" | "FEMALE" | null | undefined;
2203
- addresses?: {
2204
- name: string;
2205
- address: string;
2206
- coordinates: number[];
2207
- }[] | null | undefined;
2208
- photoURL?: string | null | undefined;
2209
- displayName?: string | null | undefined;
2210
- imported?: {
2211
- raw: Record<string, any>;
2212
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
2213
- } | null | undefined;
2214
- _id: string;
2215
- } | null | undefined;
2216
- role: "ADMIN";
2217
- userId: string;
2218
- }[] | null | undefined;
2219
- code: string;
2220
- name: string;
2221
- _id: string;
2222
- isReseller: boolean;
2223
- } | null | undefined;
2224
- thumbnail?: string | null | undefined;
2225
- billingInfos?: {
2226
- _id?: string | null | undefined;
2227
- name: string;
2228
- address: {
2229
- coordinates?: number[] | null | undefined;
2230
- line2?: string | null | undefined;
2231
- state: string;
2232
- country: string;
2233
- line1: string;
2234
- city: string;
2235
- postcode: string;
2236
- };
2237
- email: string;
2238
- companyName: string;
2239
- contact: string;
2240
- }[] | null | undefined;
2241
- customerDisplayImages?: {
2242
- url: string;
2243
- restaurantIds: string[];
2244
- }[] | null | undefined;
2245
- name: string;
2246
- _id: string;
2247
- ownerId: string;
2248
- restaurantQuota: number;
2249
- warehouseQuota: number;
2250
- menuVersion: string;
2251
- } | null | undefined;
2252
- features?: string[] | null | undefined;
2253
- machineOtp?: string | null | undefined;
2254
- machineOtpExpiredAt?: string | null | undefined;
2255
- posVersion?: string | null | undefined;
2256
- posHeartbeat?: string | null | undefined;
2257
- posVersionHistory?: Record<string, string> | null | undefined;
2258
- additionalCatalogs?: string[] | null | undefined;
2259
- feedmeDelivery?: {
2260
- instruction?: string | null | undefined;
2261
- catalogId?: string | null | undefined;
2262
- autoAccept?: boolean | null | undefined;
2263
- term?: string | null | undefined;
2264
- ignoreStock?: boolean | null | undefined;
2265
- enable: boolean;
2266
- } | null | undefined;
2267
- foodpandaDelivery?: {
2268
- _id?: string | undefined;
2269
- ignoreDiscount?: boolean | null | undefined;
2270
- catalogId?: string | null | undefined;
2271
- commissionRate?: number | null | undefined;
2272
- lastSynchronize?: string | null | undefined;
2273
- showProductAddon?: boolean | null | undefined;
2274
- autoAccept?: boolean | null | undefined;
2275
- reportConfig?: {
2276
- commissionRate: number;
2277
- discountCampaigns: {
2278
- name: string;
2279
- date: {
2280
- end: string;
2281
- start: string;
2282
- };
2283
- vendorBearPercentage: number;
1122
+ enable: boolean;
1123
+ };
1124
+ 2: {
1125
+ hours: {
1126
+ end: string;
1127
+ start: string;
2284
1128
  }[];
2285
- } | null | undefined;
2286
- hasSst?: boolean | null | undefined;
2287
- enable: boolean;
2288
- remoteId: string;
2289
- autoCloseBill: boolean;
2290
- } | null | undefined;
2291
- grabfoodDelivery?: {
2292
- _id?: string | undefined;
2293
- catalogId?: string | null | undefined;
2294
- lastSynchronize?: string | null | undefined;
2295
- showProductAddon?: boolean | null | undefined;
2296
- enable: boolean;
2297
- commissionRate: number;
2298
- autoCloseBill: boolean;
2299
- merchantID: string;
2300
- } | null | undefined;
2301
- shopeefoodDelivery?: {
2302
- _id?: string | undefined;
2303
- catalogId?: string | null | undefined;
2304
- lastSynchronize?: string | null | undefined;
2305
- showProductAddon?: boolean | null | undefined;
2306
- enable: boolean;
2307
- autoCloseBill: boolean;
2308
- reportConfig: {
2309
- commissionRate: number;
2310
- discountCampaigns: {
2311
- name: string;
2312
- date: {
2313
- end: string;
2314
- start: string;
2315
- };
2316
- vendorBearPercentage: number;
1129
+ enable: boolean;
1130
+ };
1131
+ 1: {
1132
+ hours: {
1133
+ end: string;
1134
+ start: string;
2317
1135
  }[];
1136
+ enable: boolean;
2318
1137
  };
2319
- storeID: string;
2320
- } | null | undefined;
2321
- couchDbPassword?: string | null | undefined;
2322
- apiToken?: string | null | undefined;
2323
- remoteSupports?: {
2324
- anydeskId?: string | null | undefined;
2325
- anydeskPassword?: string | null | undefined;
2326
- deviceName: string;
2327
- }[] | null | undefined;
2328
- payoutAccount?: Record<string, any> | null | undefined;
2329
- clearCount?: number | null | undefined;
2330
- queueSetting?: {
2331
- duration?: number | null | undefined;
2332
- enableOrder: boolean;
2333
- initialNumber: number;
2334
- endNumber: number;
2335
- currentNumber: number;
2336
- autoCalledLimit: number;
2337
- } | null | undefined;
2338
- tableMappingSetting?: {
2339
- enable?: boolean | null | undefined;
2340
- showSeat?: boolean | null | undefined;
2341
- mapBorderColor?: number | null | undefined;
2342
- mapLineColor?: number | null | undefined;
2343
- } | null | undefined;
2344
- _id: string;
2345
- expiredAt: string;
2346
- businessId: string;
2347
- }[];
2348
- businessRestaurants: {
2349
- id: string;
2350
- profile: {
2351
- address: {
2352
- formatted: string;
2353
- isValidPostcode: boolean;
2354
- isValid: boolean;
2355
- isValidCoordinate: boolean;
2356
- coordinates?: number[] | null | undefined;
2357
- line2?: string | null | undefined;
2358
- state: string;
2359
- country: string;
2360
- line1: string;
2361
- city: string;
2362
- postcode: string;
1138
+ 3: {
1139
+ hours: {
1140
+ end: string;
1141
+ start: string;
1142
+ }[];
1143
+ enable: boolean;
2363
1144
  };
2364
- code?: string | null | undefined;
2365
- url?: string | null | undefined;
2366
- description?: string | null | undefined;
2367
- _id?: string | null | undefined;
2368
- legalName?: string | null | undefined;
2369
- sstRegNo?: string | null | undefined;
2370
- discovery?: boolean | null | undefined;
2371
- coverPhoto?: string | null | undefined;
2372
- thumbnailPhoto?: string | null | undefined;
2373
- photos?: string[] | null | undefined;
2374
- operatingHours?: {
1145
+ 4: {
1146
+ hours: {
1147
+ end: string;
1148
+ start: string;
1149
+ }[];
1150
+ enable: boolean;
1151
+ };
1152
+ 5: {
1153
+ hours: {
1154
+ end: string;
1155
+ start: string;
1156
+ }[];
1157
+ enable: boolean;
1158
+ };
1159
+ 6: {
1160
+ hours: {
1161
+ end: string;
1162
+ start: string;
1163
+ }[];
1164
+ enable: boolean;
1165
+ };
1166
+ } | null | undefined;
1167
+ tags?: string[] | null | undefined;
1168
+ name: string;
1169
+ address: {
1170
+ coordinates?: number[] | null | undefined;
1171
+ line2?: string | null | undefined;
1172
+ state: string;
1173
+ country: string;
1174
+ line1: string;
1175
+ city: string;
1176
+ postcode: string;
1177
+ };
1178
+ email: string;
1179
+ phoneNo: string;
1180
+ regNo: string;
1181
+ };
1182
+ } | undefined;
1183
+ currentRestaurantSetting: RestaurantSettingDoc | undefined;
1184
+ readRestaurantSetting: (restaurantId: string) => Promise<RestaurantSettingDoc>;
1185
+ selectRestaurant: (restaurantId: string) => Promise<void>;
1186
+ updateServiceCharge: (serviceCharge: FdoServiceChargeSetting) => Promise<void>;
1187
+ updateDineInSetting: (setting: FdoRestaurantDineIn) => Promise<void>;
1188
+ updatePickupSetting: (setting: FdoRestaurantPickup) => Promise<void>;
1189
+ updateInhouseDelivery: (restaurantId: string, dto: FdoRestaurantInHouseDelivery) => Promise<void>;
1190
+ updateFeedmeDelivery: (restaurantId: string, dto: FdoRestaurantFeedmeDelivery) => Promise<{
1191
+ channel?: string | null | undefined;
1192
+ machineId?: string | null | undefined;
1193
+ catalogId?: string | null | undefined;
1194
+ customAttributes?: Record<string, any> | null | undefined;
1195
+ takeaway?: {
1196
+ catalogId?: string | null | undefined;
1197
+ } | null | undefined;
1198
+ inHouseDelivery?: {
1199
+ taxes?: Record<string, {
1200
+ inclusive: boolean;
1201
+ taxCode: string;
1202
+ systemCode: string;
1203
+ }> | null | undefined;
1204
+ autoAccept?: boolean | null | undefined;
1205
+ deliveryTime?: {
1206
+ time?: string[] | null | undefined;
1207
+ custom?: {
2375
1208
  0: {
2376
1209
  hours: {
2377
1210
  end: string;
@@ -2422,330 +1255,715 @@ export declare const useRestaurantStore: import("pinia").StoreDefinition<"restau
2422
1255
  enable: boolean;
2423
1256
  };
2424
1257
  } | null | undefined;
2425
- tags?: string[] | null | undefined;
2426
- name: string;
2427
- email: string;
2428
- phoneNo: string;
2429
- regNo: string;
2430
- };
2431
- allowEPayment: true | string;
2432
- msicCode?: string | undefined;
2433
- tinNo?: string | undefined;
2434
- isEInvoiceActive?: boolean | undefined;
2435
- channel?: string | null | undefined;
2436
- machineId?: string | null | undefined;
2437
- catalogId?: string | null | undefined;
2438
- customAttributes?: Record<string, any> | null | undefined;
2439
- takeaway?: {
2440
- catalogId?: string | null | undefined;
2441
- } | null | undefined;
2442
- inHouseDelivery?: {
2443
- taxes?: Record<string, {
2444
- inclusive: boolean;
2445
- taxCode: string;
2446
- systemCode: string;
2447
- }> | null | undefined;
2448
- autoAccept?: boolean | null | undefined;
2449
- deliveryTime?: {
2450
- time?: string[] | null | undefined;
2451
- custom?: {
2452
- 0: {
2453
- hours: {
2454
- end: string;
2455
- start: string;
2456
- }[];
2457
- enable: boolean;
2458
- };
2459
- 2: {
2460
- hours: {
2461
- end: string;
2462
- start: string;
2463
- }[];
2464
- enable: boolean;
2465
- };
2466
- 1: {
2467
- hours: {
2468
- end: string;
2469
- start: string;
2470
- }[];
2471
- enable: boolean;
2472
- };
2473
- 3: {
2474
- hours: {
2475
- end: string;
2476
- start: string;
2477
- }[];
2478
- enable: boolean;
2479
- };
2480
- 4: {
2481
- hours: {
2482
- end: string;
2483
- start: string;
2484
- }[];
2485
- enable: boolean;
2486
- };
2487
- 5: {
2488
- hours: {
2489
- end: string;
2490
- start: string;
2491
- }[];
2492
- enable: boolean;
2493
- };
2494
- 6: {
2495
- hours: {
2496
- end: string;
2497
- start: string;
2498
- }[];
2499
- enable: boolean;
2500
- };
2501
- } | null | undefined;
2502
- day: {
2503
- max: number;
2504
- min: number;
2505
- };
2506
- } | null | undefined;
2507
- paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
2508
- offlinePaymentTypes?: {
2509
- name: string;
2510
- instruction: string;
2511
- }[] | null | undefined;
2512
- autoAcceptPaidOnly?: boolean | null | undefined;
2513
- ignoreStock?: boolean | null | undefined;
2514
- catalogId: string | null;
2515
- enable: boolean;
2516
- areas: {
2517
- minPurchase?: {
2518
- currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
2519
- amount: number;
2520
- precision: number;
2521
- } | null | undefined;
2522
- freeAfterTotal?: {
2523
- currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
2524
- amount: number;
2525
- precision: number;
2526
- } | null | undefined;
2527
- polygon: number[][];
2528
- deliveryFee: {
2529
- currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
2530
- amount: number;
2531
- precision: number;
2532
- };
2533
- }[];
2534
- term: string;
1258
+ day: {
1259
+ max: number;
1260
+ min: number;
1261
+ };
2535
1262
  } | null | undefined;
2536
- pickup?: {
2537
- catalogId?: string | null | undefined;
2538
- autoAccept?: boolean | null | undefined;
2539
- paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
2540
- offlinePaymentTypes?: {
2541
- name: string;
2542
- instruction: string;
2543
- }[] | null | undefined;
2544
- autoAcceptPaidOnly?: boolean | null | undefined;
2545
- ignoreStock?: boolean | null | undefined;
2546
- pickupTime?: {
2547
- day: {
2548
- max: number;
2549
- min: number;
2550
- };
1263
+ paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
1264
+ offlinePaymentTypes?: {
1265
+ name: string;
1266
+ instruction: string;
1267
+ }[] | null | undefined;
1268
+ autoAcceptPaidOnly?: boolean | null | undefined;
1269
+ ignoreStock?: boolean | null | undefined;
1270
+ catalogId: string | null;
1271
+ enable: boolean;
1272
+ areas: {
1273
+ minPurchase?: {
1274
+ currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
1275
+ amount: number;
1276
+ precision: number;
2551
1277
  } | null | undefined;
2552
- pickupPointConfig?: {
2553
- restaurantEnable: boolean;
2554
- points: {
2555
- name: string;
2556
- address: string;
2557
- coordinates: number[];
2558
- }[];
1278
+ freeAfterTotal?: {
1279
+ currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
1280
+ amount: number;
1281
+ precision: number;
2559
1282
  } | null | undefined;
1283
+ polygon: number[][];
1284
+ deliveryFee: {
1285
+ currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
1286
+ amount: number;
1287
+ precision: number;
1288
+ };
1289
+ }[];
1290
+ term: string;
1291
+ } | null | undefined;
1292
+ pickup?: {
1293
+ catalogId?: string | null | undefined;
1294
+ autoAccept?: boolean | null | undefined;
1295
+ paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
1296
+ offlinePaymentTypes?: {
1297
+ name: string;
1298
+ instruction: string;
1299
+ }[] | null | undefined;
1300
+ autoAcceptPaidOnly?: boolean | null | undefined;
1301
+ ignoreStock?: boolean | null | undefined;
1302
+ pickupTime?: {
1303
+ day: {
1304
+ max: number;
1305
+ min: number;
1306
+ };
2560
1307
  } | null | undefined;
2561
- dineIn?: {
2562
- paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
2563
- offlinePaymentTypes?: {
1308
+ pickupPointConfig?: {
1309
+ restaurantEnable: boolean;
1310
+ points: {
2564
1311
  name: string;
2565
- instruction: string;
2566
- }[] | null | undefined;
2567
- ignoreStock?: boolean | null | undefined;
2568
- staticQr?: boolean | null | undefined;
2569
- disableItemRemark?: boolean | null | undefined;
2570
- acceptQueue?: boolean | null | undefined;
2571
- anonymousOrder: boolean;
1312
+ address: string;
1313
+ coordinates: number[];
1314
+ }[];
2572
1315
  } | null | undefined;
2573
- pf_business?: {
2574
- internal?: boolean | null | undefined;
2575
- url?: string | null | undefined;
2576
- expiredAt?: string | null | undefined;
2577
- agentId?: string | null | undefined;
2578
- attributeSettings?: {
2579
- type: "string" | "number" | "boolean" | "date";
2580
- key: string;
2581
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
2582
- }[] | null | undefined;
2583
- pf_agent?: {
2584
- clickupId?: string | null | undefined;
2585
- members?: {
2586
- pf_user?: {
2587
- email?: string | null | undefined;
2588
- phoneNumber?: string | null | undefined;
2589
- birthday?: string | null | undefined;
2590
- gender?: "MALE" | "FEMALE" | null | undefined;
2591
- addresses?: {
2592
- name: string;
2593
- address: string;
2594
- coordinates: number[];
2595
- }[] | null | undefined;
2596
- photoURL?: string | null | undefined;
2597
- displayName?: string | null | undefined;
2598
- imported?: {
2599
- raw: Record<string, any>;
2600
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
2601
- } | null | undefined;
2602
- _id: string;
1316
+ } | null | undefined;
1317
+ dineIn?: {
1318
+ paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
1319
+ offlinePaymentTypes?: {
1320
+ name: string;
1321
+ instruction: string;
1322
+ }[] | null | undefined;
1323
+ ignoreStock?: boolean | null | undefined;
1324
+ staticQr?: boolean | null | undefined;
1325
+ disableItemRemark?: boolean | null | undefined;
1326
+ acceptQueue?: boolean | null | undefined;
1327
+ anonymousOrder: boolean;
1328
+ } | null | undefined;
1329
+ pf_business?: {
1330
+ internal?: boolean | null | undefined;
1331
+ url?: string | null | undefined;
1332
+ expiredAt?: string | null | undefined;
1333
+ agentId?: string | null | undefined;
1334
+ attributeSettings?: {
1335
+ type: "string" | "number" | "boolean" | "date";
1336
+ key: string;
1337
+ entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
1338
+ }[] | null | undefined;
1339
+ pf_agent?: {
1340
+ clickupId?: string | null | undefined;
1341
+ members?: {
1342
+ pf_user?: {
1343
+ email?: string | null | undefined;
1344
+ phoneNumber?: string | null | undefined;
1345
+ birthday?: string | null | undefined;
1346
+ gender?: "MALE" | "FEMALE" | null | undefined;
1347
+ addresses?: {
1348
+ name: string;
1349
+ address: string;
1350
+ coordinates: number[];
1351
+ }[] | null | undefined;
1352
+ photoURL?: string | null | undefined;
1353
+ displayName?: string | null | undefined;
1354
+ imported?: {
1355
+ raw: Record<string, any>;
1356
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
2603
1357
  } | null | undefined;
2604
- role: "ADMIN";
2605
- userId: string;
2606
- }[] | null | undefined;
2607
- code: string;
2608
- name: string;
2609
- _id: string;
2610
- isReseller: boolean;
2611
- } | null | undefined;
2612
- thumbnail?: string | null | undefined;
2613
- billingInfos?: {
2614
- _id?: string | null | undefined;
2615
- name: string;
2616
- address: {
2617
- coordinates?: number[] | null | undefined;
2618
- line2?: string | null | undefined;
2619
- state: string;
2620
- country: string;
2621
- line1: string;
2622
- city: string;
2623
- postcode: string;
2624
- };
2625
- email: string;
2626
- companyName: string;
2627
- contact: string;
2628
- }[] | null | undefined;
2629
- customerDisplayImages?: {
2630
- url: string;
2631
- restaurantIds: string[];
1358
+ _id: string;
1359
+ } | null | undefined;
1360
+ role: "ADMIN";
1361
+ userId: string;
2632
1362
  }[] | null | undefined;
1363
+ code: string;
2633
1364
  name: string;
2634
1365
  _id: string;
2635
- ownerId: string;
2636
- restaurantQuota: number;
2637
- warehouseQuota: number;
2638
- menuVersion: string;
2639
- } | null | undefined;
2640
- features?: string[] | null | undefined;
2641
- machineOtp?: string | null | undefined;
2642
- machineOtpExpiredAt?: string | null | undefined;
2643
- posVersion?: string | null | undefined;
2644
- posHeartbeat?: string | null | undefined;
2645
- posVersionHistory?: Record<string, string> | null | undefined;
2646
- additionalCatalogs?: string[] | null | undefined;
2647
- feedmeDelivery?: {
2648
- instruction?: string | null | undefined;
2649
- catalogId?: string | null | undefined;
2650
- autoAccept?: boolean | null | undefined;
2651
- term?: string | null | undefined;
2652
- ignoreStock?: boolean | null | undefined;
2653
- enable: boolean;
2654
- } | null | undefined;
2655
- foodpandaDelivery?: {
2656
- _id?: string | undefined;
2657
- ignoreDiscount?: boolean | null | undefined;
2658
- catalogId?: string | null | undefined;
2659
- commissionRate?: number | null | undefined;
2660
- lastSynchronize?: string | null | undefined;
2661
- showProductAddon?: boolean | null | undefined;
2662
- autoAccept?: boolean | null | undefined;
2663
- reportConfig?: {
2664
- commissionRate: number;
2665
- discountCampaigns: {
2666
- name: string;
2667
- date: {
2668
- end: string;
2669
- start: string;
2670
- };
2671
- vendorBearPercentage: number;
2672
- }[];
2673
- } | null | undefined;
2674
- hasSst?: boolean | null | undefined;
2675
- enable: boolean;
2676
- remoteId: string;
2677
- autoCloseBill: boolean;
1366
+ isReseller: boolean;
2678
1367
  } | null | undefined;
2679
- grabfoodDelivery?: {
2680
- _id?: string | undefined;
2681
- catalogId?: string | null | undefined;
2682
- lastSynchronize?: string | null | undefined;
2683
- showProductAddon?: boolean | null | undefined;
2684
- enable: boolean;
1368
+ thumbnail?: string | null | undefined;
1369
+ billingInfos?: {
1370
+ _id?: string | null | undefined;
1371
+ name: string;
1372
+ address: {
1373
+ coordinates?: number[] | null | undefined;
1374
+ line2?: string | null | undefined;
1375
+ state: string;
1376
+ country: string;
1377
+ line1: string;
1378
+ city: string;
1379
+ postcode: string;
1380
+ };
1381
+ email: string;
1382
+ companyName: string;
1383
+ contact: string;
1384
+ }[] | null | undefined;
1385
+ customerDisplayImages?: {
1386
+ url: string;
1387
+ restaurantIds: string[];
1388
+ }[] | null | undefined;
1389
+ name: string;
1390
+ _id: string;
1391
+ ownerId: string;
1392
+ restaurantQuota: number;
1393
+ warehouseQuota: number;
1394
+ menuVersion: string;
1395
+ } | null | undefined;
1396
+ features?: string[] | null | undefined;
1397
+ machineOtp?: string | null | undefined;
1398
+ machineOtpExpiredAt?: string | null | undefined;
1399
+ posVersion?: string | null | undefined;
1400
+ posHeartbeat?: string | null | undefined;
1401
+ posVersionHistory?: Record<string, string> | null | undefined;
1402
+ additionalCatalogs?: string[] | null | undefined;
1403
+ feedmeDelivery?: {
1404
+ instruction?: string | null | undefined;
1405
+ catalogId?: string | null | undefined;
1406
+ autoAccept?: boolean | null | undefined;
1407
+ term?: string | null | undefined;
1408
+ ignoreStock?: boolean | null | undefined;
1409
+ enable: boolean;
1410
+ } | null | undefined;
1411
+ foodpandaDelivery?: {
1412
+ _id?: string | undefined;
1413
+ ignoreDiscount?: boolean | null | undefined;
1414
+ catalogId?: string | null | undefined;
1415
+ commissionRate?: number | null | undefined;
1416
+ lastSynchronize?: string | null | undefined;
1417
+ showProductAddon?: boolean | null | undefined;
1418
+ autoAccept?: boolean | null | undefined;
1419
+ reportConfig?: {
2685
1420
  commissionRate: number;
2686
- autoCloseBill: boolean;
2687
- merchantID: string;
1421
+ discountCampaigns: {
1422
+ name: string;
1423
+ date: {
1424
+ end: string;
1425
+ start: string;
1426
+ };
1427
+ vendorBearPercentage: number;
1428
+ }[];
2688
1429
  } | null | undefined;
2689
- shopeefoodDelivery?: {
2690
- _id?: string | undefined;
2691
- catalogId?: string | null | undefined;
2692
- lastSynchronize?: string | null | undefined;
2693
- showProductAddon?: boolean | null | undefined;
2694
- enable: boolean;
2695
- autoCloseBill: boolean;
2696
- reportConfig: {
2697
- commissionRate: number;
2698
- discountCampaigns: {
2699
- name: string;
2700
- date: {
2701
- end: string;
2702
- start: string;
2703
- };
2704
- vendorBearPercentage: number;
1430
+ hasSst?: boolean | null | undefined;
1431
+ enable: boolean;
1432
+ remoteId: string;
1433
+ autoCloseBill: boolean;
1434
+ } | null | undefined;
1435
+ grabfoodDelivery?: {
1436
+ _id?: string | undefined;
1437
+ catalogId?: string | null | undefined;
1438
+ lastSynchronize?: string | null | undefined;
1439
+ showProductAddon?: boolean | null | undefined;
1440
+ enable: boolean;
1441
+ commissionRate: number;
1442
+ autoCloseBill: boolean;
1443
+ merchantID: string;
1444
+ } | null | undefined;
1445
+ shopeefoodDelivery?: {
1446
+ _id?: string | undefined;
1447
+ catalogId?: string | null | undefined;
1448
+ lastSynchronize?: string | null | undefined;
1449
+ showProductAddon?: boolean | null | undefined;
1450
+ enable: boolean;
1451
+ autoCloseBill: boolean;
1452
+ reportConfig: {
1453
+ commissionRate: number;
1454
+ discountCampaigns: {
1455
+ name: string;
1456
+ date: {
1457
+ end: string;
1458
+ start: string;
1459
+ };
1460
+ vendorBearPercentage: number;
1461
+ }[];
1462
+ };
1463
+ storeID: string;
1464
+ } | null | undefined;
1465
+ couchDbPassword?: string | null | undefined;
1466
+ apiToken?: string | null | undefined;
1467
+ remoteSupports?: {
1468
+ anydeskId?: string | null | undefined;
1469
+ anydeskPassword?: string | null | undefined;
1470
+ deviceName: string;
1471
+ }[] | null | undefined;
1472
+ payoutAccount?: Record<string, any> | null | undefined;
1473
+ clearCount?: number | null | undefined;
1474
+ queueSetting?: {
1475
+ duration?: number | null | undefined;
1476
+ enableOrder: boolean;
1477
+ initialNumber: number;
1478
+ endNumber: number;
1479
+ currentNumber: number;
1480
+ autoCalledLimit: number;
1481
+ } | null | undefined;
1482
+ tableMappingSetting?: {
1483
+ enable?: boolean | null | undefined;
1484
+ showSeat?: boolean | null | undefined;
1485
+ mapBorderColor?: number | null | undefined;
1486
+ mapLineColor?: number | null | undefined;
1487
+ } | null | undefined;
1488
+ _id: string;
1489
+ expiredAt: string;
1490
+ businessId: string;
1491
+ profile: {
1492
+ code?: string | null | undefined;
1493
+ url?: string | null | undefined;
1494
+ description?: string | null | undefined;
1495
+ _id?: string | null | undefined;
1496
+ legalName?: string | null | undefined;
1497
+ sstRegNo?: string | null | undefined;
1498
+ discovery?: boolean | null | undefined;
1499
+ coverPhoto?: string | null | undefined;
1500
+ thumbnailPhoto?: string | null | undefined;
1501
+ photos?: string[] | null | undefined;
1502
+ operatingHours?: {
1503
+ 0: {
1504
+ hours: {
1505
+ end: string;
1506
+ start: string;
2705
1507
  }[];
1508
+ enable: boolean;
2706
1509
  };
2707
- storeID: string;
2708
- } | null | undefined;
2709
- couchDbPassword?: string | null | undefined;
2710
- apiToken?: string | null | undefined;
2711
- remoteSupports?: {
2712
- anydeskId?: string | null | undefined;
2713
- anydeskPassword?: string | null | undefined;
2714
- deviceName: string;
2715
- }[] | null | undefined;
2716
- payoutAccount?: Record<string, any> | null | undefined;
2717
- clearCount?: number | null | undefined;
2718
- queueSetting?: {
2719
- duration?: number | null | undefined;
2720
- enableOrder: boolean;
2721
- initialNumber: number;
2722
- endNumber: number;
2723
- currentNumber: number;
2724
- autoCalledLimit: number;
2725
- } | null | undefined;
2726
- tableMappingSetting?: {
2727
- enable?: boolean | null | undefined;
2728
- showSeat?: boolean | null | undefined;
2729
- mapBorderColor?: number | null | undefined;
2730
- mapLineColor?: number | null | undefined;
2731
- } | null | undefined;
2732
- _id: string;
2733
- expiredAt: string;
2734
- businessId: string;
2735
- }[];
2736
- currentRestaurantId: string;
1510
+ 2: {
1511
+ hours: {
1512
+ end: string;
1513
+ start: string;
1514
+ }[];
1515
+ enable: boolean;
1516
+ };
1517
+ 1: {
1518
+ hours: {
1519
+ end: string;
1520
+ start: string;
1521
+ }[];
1522
+ enable: boolean;
1523
+ };
1524
+ 3: {
1525
+ hours: {
1526
+ end: string;
1527
+ start: string;
1528
+ }[];
1529
+ enable: boolean;
1530
+ };
1531
+ 4: {
1532
+ hours: {
1533
+ end: string;
1534
+ start: string;
1535
+ }[];
1536
+ enable: boolean;
1537
+ };
1538
+ 5: {
1539
+ hours: {
1540
+ end: string;
1541
+ start: string;
1542
+ }[];
1543
+ enable: boolean;
1544
+ };
1545
+ 6: {
1546
+ hours: {
1547
+ end: string;
1548
+ start: string;
1549
+ }[];
1550
+ enable: boolean;
1551
+ };
1552
+ } | null | undefined;
1553
+ tags?: string[] | null | undefined;
1554
+ name: string;
1555
+ address: {
1556
+ coordinates?: number[] | null | undefined;
1557
+ line2?: string | null | undefined;
1558
+ state: string;
1559
+ country: string;
1560
+ line1: string;
1561
+ city: string;
1562
+ postcode: string;
1563
+ };
1564
+ email: string;
1565
+ phoneNo: string;
1566
+ regNo: string;
1567
+ };
1568
+ }>;
1569
+ updateIntegratedFoodpandaDelivery: (restaurantId: string, dto: FdoFoodpandaSettings) => Promise<void>;
1570
+ updateIntegratedGrabfoodDelivery: (restaurantId: string, dto: FdoGrabfoodSettings) => Promise<void>;
1571
+ updateIntegratedShopeefoodDelivery: (restaurantId: string, dto: FdoShopeeFoodSettings) => Promise<void>;
1572
+ updateExternalDelivery: (restaurantId: string, dto: FdoExternalSetting) => Promise<void>;
1573
+ getRestaurantEPayment: () => true | string;
1574
+ }, never>, Pick<{
1575
+ state: {
2737
1576
  restaurantSettings: {
2738
1577
  [restaurantId: string]: RestaurantSettingDoc;
2739
1578
  };
2740
- } & import("pinia").PiniaCustomStateProperties<RestaurantState>) => RestaurantSettingDoc;
2741
- }, {
2742
- readRestaurantSetting(restaurantId: string): Promise<RestaurantSettingDoc>;
2743
- selectRestaurant(restaurantId: string): Promise<void>;
2744
- updateServiceCharge(serviceCharge: FdoServiceChargeSetting): Promise<void>;
2745
- updateDineInSetting(setting: FdoRestaurantDineIn): Promise<void>;
2746
- updatePickupSetting(setting: FdoRestaurantPickup): Promise<void>;
2747
- updateInhouseDelivery(restaurantId: string, dto: FdoRestaurantInHouseDelivery): Promise<void>;
2748
- updateFeedmeDelivery(restaurantId: string, dto: FdoRestaurantFeedmeDelivery): Promise<{
1579
+ };
1580
+ currentRestaurant: {
1581
+ channel?: string | null | undefined;
1582
+ machineId?: string | null | undefined;
1583
+ catalogId?: string | null | undefined;
1584
+ customAttributes?: Record<string, any> | null | undefined;
1585
+ takeaway?: {
1586
+ catalogId?: string | null | undefined;
1587
+ } | null | undefined;
1588
+ inHouseDelivery?: {
1589
+ taxes?: Record<string, {
1590
+ inclusive: boolean;
1591
+ taxCode: string;
1592
+ systemCode: string;
1593
+ }> | null | undefined;
1594
+ autoAccept?: boolean | null | undefined;
1595
+ deliveryTime?: {
1596
+ time?: string[] | null | undefined;
1597
+ custom?: {
1598
+ 0: {
1599
+ hours: {
1600
+ end: string;
1601
+ start: string;
1602
+ }[];
1603
+ enable: boolean;
1604
+ };
1605
+ 2: {
1606
+ hours: {
1607
+ end: string;
1608
+ start: string;
1609
+ }[];
1610
+ enable: boolean;
1611
+ };
1612
+ 1: {
1613
+ hours: {
1614
+ end: string;
1615
+ start: string;
1616
+ }[];
1617
+ enable: boolean;
1618
+ };
1619
+ 3: {
1620
+ hours: {
1621
+ end: string;
1622
+ start: string;
1623
+ }[];
1624
+ enable: boolean;
1625
+ };
1626
+ 4: {
1627
+ hours: {
1628
+ end: string;
1629
+ start: string;
1630
+ }[];
1631
+ enable: boolean;
1632
+ };
1633
+ 5: {
1634
+ hours: {
1635
+ end: string;
1636
+ start: string;
1637
+ }[];
1638
+ enable: boolean;
1639
+ };
1640
+ 6: {
1641
+ hours: {
1642
+ end: string;
1643
+ start: string;
1644
+ }[];
1645
+ enable: boolean;
1646
+ };
1647
+ } | null | undefined;
1648
+ day: {
1649
+ max: number;
1650
+ min: number;
1651
+ };
1652
+ } | null | undefined;
1653
+ paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
1654
+ offlinePaymentTypes?: {
1655
+ name: string;
1656
+ instruction: string;
1657
+ }[] | null | undefined;
1658
+ autoAcceptPaidOnly?: boolean | null | undefined;
1659
+ ignoreStock?: boolean | null | undefined;
1660
+ catalogId: string | null;
1661
+ enable: boolean;
1662
+ areas: {
1663
+ minPurchase?: {
1664
+ currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
1665
+ amount: number;
1666
+ precision: number;
1667
+ } | null | undefined;
1668
+ freeAfterTotal?: {
1669
+ currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
1670
+ amount: number;
1671
+ precision: number;
1672
+ } | null | undefined;
1673
+ polygon: number[][];
1674
+ deliveryFee: {
1675
+ currency: "ALL" | "MYR" | "AED" | "AFN" | "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" | "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";
1676
+ amount: number;
1677
+ precision: number;
1678
+ };
1679
+ }[];
1680
+ term: string;
1681
+ } | null | undefined;
1682
+ pickup?: {
1683
+ catalogId?: string | null | undefined;
1684
+ autoAccept?: boolean | null | undefined;
1685
+ paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
1686
+ offlinePaymentTypes?: {
1687
+ name: string;
1688
+ instruction: string;
1689
+ }[] | null | undefined;
1690
+ autoAcceptPaidOnly?: boolean | null | undefined;
1691
+ ignoreStock?: boolean | null | undefined;
1692
+ pickupTime?: {
1693
+ day: {
1694
+ max: number;
1695
+ min: number;
1696
+ };
1697
+ } | null | undefined;
1698
+ pickupPointConfig?: {
1699
+ restaurantEnable: boolean;
1700
+ points: {
1701
+ name: string;
1702
+ address: string;
1703
+ coordinates: number[];
1704
+ }[];
1705
+ } | null | undefined;
1706
+ } | null | undefined;
1707
+ dineIn?: {
1708
+ paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | null | undefined;
1709
+ offlinePaymentTypes?: {
1710
+ name: string;
1711
+ instruction: string;
1712
+ }[] | null | undefined;
1713
+ ignoreStock?: boolean | null | undefined;
1714
+ staticQr?: boolean | null | undefined;
1715
+ disableItemRemark?: boolean | null | undefined;
1716
+ acceptQueue?: boolean | null | undefined;
1717
+ anonymousOrder: boolean;
1718
+ } | null | undefined;
1719
+ pf_business?: {
1720
+ internal?: boolean | null | undefined;
1721
+ url?: string | null | undefined;
1722
+ expiredAt?: string | null | undefined;
1723
+ agentId?: string | null | undefined;
1724
+ attributeSettings?: {
1725
+ type: "string" | "number" | "boolean" | "date";
1726
+ key: string;
1727
+ entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
1728
+ }[] | null | undefined;
1729
+ pf_agent?: {
1730
+ clickupId?: string | null | undefined;
1731
+ members?: {
1732
+ pf_user?: {
1733
+ email?: string | null | undefined;
1734
+ phoneNumber?: string | null | undefined;
1735
+ birthday?: string | null | undefined;
1736
+ gender?: "MALE" | "FEMALE" | null | undefined;
1737
+ addresses?: {
1738
+ name: string;
1739
+ address: string;
1740
+ coordinates: number[];
1741
+ }[] | null | undefined;
1742
+ photoURL?: string | null | undefined;
1743
+ displayName?: string | null | undefined;
1744
+ imported?: {
1745
+ raw: Record<string, any>;
1746
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
1747
+ } | null | undefined;
1748
+ _id: string;
1749
+ } | null | undefined;
1750
+ role: "ADMIN";
1751
+ userId: string;
1752
+ }[] | null | undefined;
1753
+ code: string;
1754
+ name: string;
1755
+ _id: string;
1756
+ isReseller: boolean;
1757
+ } | null | undefined;
1758
+ thumbnail?: string | null | undefined;
1759
+ billingInfos?: {
1760
+ _id?: string | null | undefined;
1761
+ name: string;
1762
+ address: {
1763
+ coordinates?: number[] | null | undefined;
1764
+ line2?: string | null | undefined;
1765
+ state: string;
1766
+ country: string;
1767
+ line1: string;
1768
+ city: string;
1769
+ postcode: string;
1770
+ };
1771
+ email: string;
1772
+ companyName: string;
1773
+ contact: string;
1774
+ }[] | null | undefined;
1775
+ customerDisplayImages?: {
1776
+ url: string;
1777
+ restaurantIds: string[];
1778
+ }[] | null | undefined;
1779
+ name: string;
1780
+ _id: string;
1781
+ ownerId: string;
1782
+ restaurantQuota: number;
1783
+ warehouseQuota: number;
1784
+ menuVersion: string;
1785
+ } | null | undefined;
1786
+ features?: string[] | null | undefined;
1787
+ machineOtp?: string | null | undefined;
1788
+ machineOtpExpiredAt?: string | null | undefined;
1789
+ posVersion?: string | null | undefined;
1790
+ posHeartbeat?: string | null | undefined;
1791
+ posVersionHistory?: Record<string, string> | null | undefined;
1792
+ additionalCatalogs?: string[] | null | undefined;
1793
+ feedmeDelivery?: {
1794
+ instruction?: string | null | undefined;
1795
+ catalogId?: string | null | undefined;
1796
+ autoAccept?: boolean | null | undefined;
1797
+ term?: string | null | undefined;
1798
+ ignoreStock?: boolean | null | undefined;
1799
+ enable: boolean;
1800
+ } | null | undefined;
1801
+ foodpandaDelivery?: {
1802
+ _id?: string | undefined;
1803
+ ignoreDiscount?: boolean | null | undefined;
1804
+ catalogId?: string | null | undefined;
1805
+ commissionRate?: number | null | undefined;
1806
+ lastSynchronize?: string | null | undefined;
1807
+ showProductAddon?: boolean | null | undefined;
1808
+ autoAccept?: boolean | null | undefined;
1809
+ reportConfig?: {
1810
+ commissionRate: number;
1811
+ discountCampaigns: {
1812
+ name: string;
1813
+ date: {
1814
+ end: string;
1815
+ start: string;
1816
+ };
1817
+ vendorBearPercentage: number;
1818
+ }[];
1819
+ } | null | undefined;
1820
+ hasSst?: boolean | null | undefined;
1821
+ enable: boolean;
1822
+ remoteId: string;
1823
+ autoCloseBill: boolean;
1824
+ } | null | undefined;
1825
+ grabfoodDelivery?: {
1826
+ _id?: string | undefined;
1827
+ catalogId?: string | null | undefined;
1828
+ lastSynchronize?: string | null | undefined;
1829
+ showProductAddon?: boolean | null | undefined;
1830
+ enable: boolean;
1831
+ commissionRate: number;
1832
+ autoCloseBill: boolean;
1833
+ merchantID: string;
1834
+ } | null | undefined;
1835
+ shopeefoodDelivery?: {
1836
+ _id?: string | undefined;
1837
+ catalogId?: string | null | undefined;
1838
+ lastSynchronize?: string | null | undefined;
1839
+ showProductAddon?: boolean | null | undefined;
1840
+ enable: boolean;
1841
+ autoCloseBill: boolean;
1842
+ reportConfig: {
1843
+ commissionRate: number;
1844
+ discountCampaigns: {
1845
+ name: string;
1846
+ date: {
1847
+ end: string;
1848
+ start: string;
1849
+ };
1850
+ vendorBearPercentage: number;
1851
+ }[];
1852
+ };
1853
+ storeID: string;
1854
+ } | null | undefined;
1855
+ couchDbPassword?: string | null | undefined;
1856
+ apiToken?: string | null | undefined;
1857
+ remoteSupports?: {
1858
+ anydeskId?: string | null | undefined;
1859
+ anydeskPassword?: string | null | undefined;
1860
+ deviceName: string;
1861
+ }[] | null | undefined;
1862
+ payoutAccount?: Record<string, any> | null | undefined;
1863
+ clearCount?: number | null | undefined;
1864
+ queueSetting?: {
1865
+ duration?: number | null | undefined;
1866
+ enableOrder: boolean;
1867
+ initialNumber: number;
1868
+ endNumber: number;
1869
+ currentNumber: number;
1870
+ autoCalledLimit: number;
1871
+ } | null | undefined;
1872
+ tableMappingSetting?: {
1873
+ enable?: boolean | null | undefined;
1874
+ showSeat?: boolean | null | undefined;
1875
+ mapBorderColor?: number | null | undefined;
1876
+ mapLineColor?: number | null | undefined;
1877
+ } | null | undefined;
1878
+ _id: string;
1879
+ expiredAt: string;
1880
+ businessId: string;
1881
+ profile: {
1882
+ code?: string | null | undefined;
1883
+ url?: string | null | undefined;
1884
+ description?: string | null | undefined;
1885
+ _id?: string | null | undefined;
1886
+ legalName?: string | null | undefined;
1887
+ sstRegNo?: string | null | undefined;
1888
+ discovery?: boolean | null | undefined;
1889
+ coverPhoto?: string | null | undefined;
1890
+ thumbnailPhoto?: string | null | undefined;
1891
+ photos?: string[] | null | undefined;
1892
+ operatingHours?: {
1893
+ 0: {
1894
+ hours: {
1895
+ end: string;
1896
+ start: string;
1897
+ }[];
1898
+ enable: boolean;
1899
+ };
1900
+ 2: {
1901
+ hours: {
1902
+ end: string;
1903
+ start: string;
1904
+ }[];
1905
+ enable: boolean;
1906
+ };
1907
+ 1: {
1908
+ hours: {
1909
+ end: string;
1910
+ start: string;
1911
+ }[];
1912
+ enable: boolean;
1913
+ };
1914
+ 3: {
1915
+ hours: {
1916
+ end: string;
1917
+ start: string;
1918
+ }[];
1919
+ enable: boolean;
1920
+ };
1921
+ 4: {
1922
+ hours: {
1923
+ end: string;
1924
+ start: string;
1925
+ }[];
1926
+ enable: boolean;
1927
+ };
1928
+ 5: {
1929
+ hours: {
1930
+ end: string;
1931
+ start: string;
1932
+ }[];
1933
+ enable: boolean;
1934
+ };
1935
+ 6: {
1936
+ hours: {
1937
+ end: string;
1938
+ start: string;
1939
+ }[];
1940
+ enable: boolean;
1941
+ };
1942
+ } | null | undefined;
1943
+ tags?: string[] | null | undefined;
1944
+ name: string;
1945
+ address: {
1946
+ coordinates?: number[] | null | undefined;
1947
+ line2?: string | null | undefined;
1948
+ state: string;
1949
+ country: string;
1950
+ line1: string;
1951
+ city: string;
1952
+ postcode: string;
1953
+ };
1954
+ email: string;
1955
+ phoneNo: string;
1956
+ regNo: string;
1957
+ };
1958
+ } | undefined;
1959
+ currentRestaurantSetting: RestaurantSettingDoc | undefined;
1960
+ readRestaurantSetting: (restaurantId: string) => Promise<RestaurantSettingDoc>;
1961
+ selectRestaurant: (restaurantId: string) => Promise<void>;
1962
+ updateServiceCharge: (serviceCharge: FdoServiceChargeSetting) => Promise<void>;
1963
+ updateDineInSetting: (setting: FdoRestaurantDineIn) => Promise<void>;
1964
+ updatePickupSetting: (setting: FdoRestaurantPickup) => Promise<void>;
1965
+ updateInhouseDelivery: (restaurantId: string, dto: FdoRestaurantInHouseDelivery) => Promise<void>;
1966
+ updateFeedmeDelivery: (restaurantId: string, dto: FdoRestaurantFeedmeDelivery) => Promise<{
2749
1967
  channel?: string | null | undefined;
2750
1968
  machineId?: string | null | undefined;
2751
1969
  catalogId?: string | null | undefined;
@@ -3124,10 +2342,9 @@ export declare const useRestaurantStore: import("pinia").StoreDefinition<"restau
3124
2342
  regNo: string;
3125
2343
  };
3126
2344
  }>;
3127
- updateIntegratedFoodpandaDelivery(restaurantId: string, dto: FdoFoodpandaSettings): Promise<void>;
3128
- updateIntegratedGrabfoodDelivery(restaurantId: string, dto: FdoGrabfoodSettings): Promise<void>;
3129
- updateIntegratedShopeefoodDelivery(restaurantId: string, dto: FdoShopeeFoodSettings): Promise<void>;
3130
- updateExternalDelivery(restaurantId: string, dto: FdoExternalSetting): Promise<void>;
3131
- getRestaurantEPayment(dto?: FdoRestaurant | undefined): true | string;
3132
- }>;
3133
- export {};
2345
+ updateIntegratedFoodpandaDelivery: (restaurantId: string, dto: FdoFoodpandaSettings) => Promise<void>;
2346
+ updateIntegratedGrabfoodDelivery: (restaurantId: string, dto: FdoGrabfoodSettings) => Promise<void>;
2347
+ updateIntegratedShopeefoodDelivery: (restaurantId: string, dto: FdoShopeeFoodSettings) => Promise<void>;
2348
+ updateExternalDelivery: (restaurantId: string, dto: FdoExternalSetting) => Promise<void>;
2349
+ getRestaurantEPayment: () => true | string;
2350
+ }, "updateDineInSetting" | "selectRestaurant" | "readRestaurantSetting" | "updateServiceCharge" | "updatePickupSetting" | "updateInhouseDelivery" | "updateFeedmeDelivery" | "updateIntegratedFoodpandaDelivery" | "updateIntegratedGrabfoodDelivery" | "updateIntegratedShopeefoodDelivery" | "updateExternalDelivery" | "getRestaurantEPayment">>;