@feedmepos/mf-order-setting 0.0.77 → 0.0.78
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.
- package/dist/{KioskDevicesView-Dgs5_UoK.js → KioskDevicesView-Db2DyKc2.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-B4DXPgAV.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-Do-EH0Hn.js} +3 -3
- package/dist/{KioskSettingView-BUcPNVTc.js → KioskSettingView-D1JaAjmx.js} +3 -3
- package/dist/KioskView-B0jhv4Zp.js +464 -0
- package/dist/OrderSettingsView-BPNN4jOB.js +35883 -0
- package/dist/{app-BIvt4NBq.js → app-DpdLDlVr.js} +1993 -1954
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-B58_jBg3.js → dayjs.min-Cs3D4xiZ.js} +1 -1
- package/dist/frontend/mf-order/src/app.d.ts +16 -0
- package/dist/frontend/mf-order/src/helpers/map.d.ts +12 -1
- package/dist/frontend/mf-order/src/main.d.ts +16 -0
- package/dist/frontend/mf-order/src/stores/menu/menu.d.ts +28 -0
- package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +9 -0
- package/dist/frontend/mf-order/src/views/order-settings/delivery/delivery.d.ts +5 -0
- package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue.d.ts +6 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-CLS-FSH-.js → index-BZL2Hpkn.js} +2 -2
- package/dist/{index-CahsmFL1.js → index-DXkcRRAu.js} +1 -1
- package/dist/lineman-settings.dto-CtRqCjzQ.js +74920 -0
- package/dist/package/entity/booking/booking.do.d.ts +125 -0
- package/dist/package/entity/delivery/delivery.dto.d.ts +25 -0
- package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +87 -0
- package/dist/package/entity/member/member.dto.d.ts +38 -0
- package/dist/package/entity/order/order.do.d.ts +90 -0
- package/dist/package/entity/order/order.dto.d.ts +198 -0
- package/dist/package/entity/order-platform/external/menu/external-master-menu.do.d.ts +316 -48
- package/dist/package/entity/order-platform/external/menu/external-menu.do.d.ts +1131 -209
- package/dist/package/entity/order-platform/external/menu/external-menu.dto.d.ts +3 -3
- package/dist/package/entity/order-platform/external/menu/external-menu.enum.d.ts +10 -1
- package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +80 -36
- package/dist/package/entity/order-platform/external/order/external-order.dto.d.ts +190 -83
- package/dist/package/entity/order-platform/external/order/external-order.enum.d.ts +2 -2
- package/dist/package/entity/order-platform/external/setting/external-setting.do.d.ts +18 -0
- package/dist/package/entity/order-platform/external/setting/external-setting.dto.d.ts +13 -0
- package/dist/package/entity/order-platform/foodpanda/foodpanda-order.dto.d.ts +25 -0
- package/dist/package/entity/order-platform/grabfood/grabfood-order.do.d.ts +25 -0
- package/dist/package/entity/order-platform/order-platform.dto.d.ts +2 -0
- package/dist/package/entity/order-platform/shopeefood/shopeefood-order.do.d.ts +25 -0
- package/dist/style.css +1 -1
- package/package.json +7 -9
- package/src/helpers/map.ts +24 -0
- package/src/locales/en-US.json +4 -0
- package/src/locales/ja-JP.json +4 -0
- package/src/locales/th-TH.json +4 -0
- package/src/locales/zh-CN.json +4 -0
- package/src/views/kiosk/KioskView.vue +51 -7
- package/src/views/order-settings/OrderSettingsView.vue +2 -2
- package/src/views/order-settings/delivery/DeliverySetting.vue +18 -1
- package/src/views/order-settings/delivery/delivery.ts +37 -0
- package/src/views/order-settings/delivery/inhouse/DeliveryOrder.vue +24 -8
- package/src/views/order-settings/delivery/inhouse/ZoneDialog.vue +14 -2
- package/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue +136 -27
- package/dist/KioskView-DelVMMj4.js +0 -430
- package/dist/OrderSettingsView-DE2U7vqW.js +0 -60930
- package/dist/lineman-settings.dto-DBDThIb0.js +0 -62793
package/dist/app.js
CHANGED
|
@@ -84,6 +84,7 @@ export declare const i18nMessages: {
|
|
|
84
84
|
apply: string;
|
|
85
85
|
applyFor: string;
|
|
86
86
|
asap: string;
|
|
87
|
+
externalCatalogRequired: string;
|
|
87
88
|
auto: string;
|
|
88
89
|
autoCalledLimit: string;
|
|
89
90
|
autoCloseBill: string;
|
|
@@ -172,7 +173,9 @@ export declare const i18nMessages: {
|
|
|
172
173
|
deviceType: string;
|
|
173
174
|
dineIn: string;
|
|
174
175
|
dineInCanTakeaway: string;
|
|
176
|
+
dineInCatalog: string;
|
|
175
177
|
dineInModeAutoCorrected: string;
|
|
178
|
+
dineInNotSupported: string;
|
|
176
179
|
dineInRemarkEnabled: string;
|
|
177
180
|
dineInRemarkEnabledRequiresPosVersion: string;
|
|
178
181
|
dineInRemarkEnabledSublabel: string;
|
|
@@ -324,6 +327,7 @@ export declare const i18nMessages: {
|
|
|
324
327
|
noPin: string;
|
|
325
328
|
noPresetRemarks: string;
|
|
326
329
|
noPresetRemarksAdded: string;
|
|
330
|
+
noRestaurantFound: string;
|
|
327
331
|
noRestaurantSelected: string;
|
|
328
332
|
notAllowed: string;
|
|
329
333
|
notSet: string;
|
|
@@ -555,6 +559,7 @@ export declare const i18nMessages: {
|
|
|
555
559
|
apply: string;
|
|
556
560
|
applyFor: string;
|
|
557
561
|
asap: string;
|
|
562
|
+
externalCatalogRequired: string;
|
|
558
563
|
auto: string;
|
|
559
564
|
autoIntegration: string;
|
|
560
565
|
autoResetOrderNumber: string;
|
|
@@ -728,6 +733,7 @@ export declare const i18nMessages: {
|
|
|
728
733
|
noAvailableItem: string;
|
|
729
734
|
noAvailableTable: string;
|
|
730
735
|
nonNegativeRule: string;
|
|
736
|
+
noRestaurantFound: string;
|
|
731
737
|
noRestaurantSelected: string;
|
|
732
738
|
notAllowed: string;
|
|
733
739
|
offlinePayment: string;
|
|
@@ -910,6 +916,8 @@ export declare const i18nMessages: {
|
|
|
910
916
|
manageExternalDelivery: string;
|
|
911
917
|
deliveryCatalog: string;
|
|
912
918
|
pickupCatalog: string;
|
|
919
|
+
dineInCatalog: string;
|
|
920
|
+
dineInNotSupported: string;
|
|
913
921
|
DeliverySettingUpdated: string;
|
|
914
922
|
selectPlatform: string;
|
|
915
923
|
platform: string;
|
|
@@ -1019,6 +1027,7 @@ export declare const i18nMessages: {
|
|
|
1019
1027
|
apply: string;
|
|
1020
1028
|
applyFor: string;
|
|
1021
1029
|
asap: string;
|
|
1030
|
+
externalCatalogRequired: string;
|
|
1022
1031
|
auto: string;
|
|
1023
1032
|
autoIntegration: string;
|
|
1024
1033
|
autoResetOrderNumber: string;
|
|
@@ -1190,6 +1199,7 @@ export declare const i18nMessages: {
|
|
|
1190
1199
|
noAvailableItem: string;
|
|
1191
1200
|
noAvailableTable: string;
|
|
1192
1201
|
nonNegativeRule: string;
|
|
1202
|
+
noRestaurantFound: string;
|
|
1193
1203
|
noRestaurantSelected: string;
|
|
1194
1204
|
notAllowed: string;
|
|
1195
1205
|
offlinePayment: string;
|
|
@@ -1369,6 +1379,8 @@ export declare const i18nMessages: {
|
|
|
1369
1379
|
manageExternalDelivery: string;
|
|
1370
1380
|
deliveryCatalog: string;
|
|
1371
1381
|
pickupCatalog: string;
|
|
1382
|
+
dineInCatalog: string;
|
|
1383
|
+
dineInNotSupported: string;
|
|
1372
1384
|
DeliverySettingUpdated: string;
|
|
1373
1385
|
selectPlatform: string;
|
|
1374
1386
|
platform: string;
|
|
@@ -1477,6 +1489,7 @@ export declare const i18nMessages: {
|
|
|
1477
1489
|
apply: string;
|
|
1478
1490
|
applyFor: string;
|
|
1479
1491
|
asap: string;
|
|
1492
|
+
externalCatalogRequired: string;
|
|
1480
1493
|
auto: string;
|
|
1481
1494
|
autoIntegration: string;
|
|
1482
1495
|
autoResetOrderNumber: string;
|
|
@@ -1643,6 +1656,7 @@ export declare const i18nMessages: {
|
|
|
1643
1656
|
noAvailableItem: string;
|
|
1644
1657
|
noAvailableTable: string;
|
|
1645
1658
|
nonNegativeRule: string;
|
|
1659
|
+
noRestaurantFound: string;
|
|
1646
1660
|
noRestaurantSelected: string;
|
|
1647
1661
|
notAllowed: string;
|
|
1648
1662
|
offlinePayment: string;
|
|
@@ -1825,6 +1839,8 @@ export declare const i18nMessages: {
|
|
|
1825
1839
|
manageExternalDelivery: string;
|
|
1826
1840
|
deliveryCatalog: string;
|
|
1827
1841
|
pickupCatalog: string;
|
|
1842
|
+
dineInCatalog: string;
|
|
1843
|
+
dineInNotSupported: string;
|
|
1828
1844
|
DeliverySettingUpdated: string;
|
|
1829
1845
|
selectPlatform: string;
|
|
1830
1846
|
platform: string;
|
|
@@ -32,4 +32,15 @@ declare function generateAreaPaths({ center, radius }: {
|
|
|
32
32
|
declare function pathToPolygon(path: MapCoordinate[]): number[][];
|
|
33
33
|
declare function polygonToPath(polygon: number[][]): MapCoordinate[];
|
|
34
34
|
declare function getPolygonCenter(polygon: number[][]): MapCoordinate | undefined;
|
|
35
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Inverse of `generateAreaPaths` — recovers the "Delivery Zone (km)" of a stored polygon so an
|
|
37
|
+
* existing zone can be reopened with the distance it was created with.
|
|
38
|
+
*
|
|
39
|
+
* `generateAreaPaths` spreads its vertices over `radiusLat = (radius / 6371) * (180 / PI)` and is
|
|
40
|
+
* called with `radius = distanceInKM / 2`, so `distanceInKM` is the polygon's latitude span
|
|
41
|
+
* converted back to km. For a hand-edited (non-circular) polygon there is no single distance —
|
|
42
|
+
* the latitude span is still the closest description of the drawn shape, and the caller must not
|
|
43
|
+
* regenerate the polygon from it. Returns `undefined` when the polygon can't describe a distance.
|
|
44
|
+
*/
|
|
45
|
+
declare function getPolygonDistanceInKM(polygon: number[][]): number | undefined;
|
|
46
|
+
export { googleMap, coordinates, getDefaultCoordinates, coordinateToArray, arrayToCoordinate, generateAreaPaths, pathToPolygon, polygonToPath, getPolygonCenter, getPolygonDistanceInKM, };
|
|
@@ -83,6 +83,7 @@ export declare const i18nMessages: {
|
|
|
83
83
|
apply: string;
|
|
84
84
|
applyFor: string;
|
|
85
85
|
asap: string;
|
|
86
|
+
externalCatalogRequired: string;
|
|
86
87
|
auto: string;
|
|
87
88
|
autoCalledLimit: string;
|
|
88
89
|
autoCloseBill: string;
|
|
@@ -171,7 +172,9 @@ export declare const i18nMessages: {
|
|
|
171
172
|
deviceType: string;
|
|
172
173
|
dineIn: string;
|
|
173
174
|
dineInCanTakeaway: string;
|
|
175
|
+
dineInCatalog: string;
|
|
174
176
|
dineInModeAutoCorrected: string;
|
|
177
|
+
dineInNotSupported: string;
|
|
175
178
|
dineInRemarkEnabled: string;
|
|
176
179
|
dineInRemarkEnabledRequiresPosVersion: string;
|
|
177
180
|
dineInRemarkEnabledSublabel: string;
|
|
@@ -323,6 +326,7 @@ export declare const i18nMessages: {
|
|
|
323
326
|
noPin: string;
|
|
324
327
|
noPresetRemarks: string;
|
|
325
328
|
noPresetRemarksAdded: string;
|
|
329
|
+
noRestaurantFound: string;
|
|
326
330
|
noRestaurantSelected: string;
|
|
327
331
|
notAllowed: string;
|
|
328
332
|
notSet: string;
|
|
@@ -554,6 +558,7 @@ export declare const i18nMessages: {
|
|
|
554
558
|
apply: string;
|
|
555
559
|
applyFor: string;
|
|
556
560
|
asap: string;
|
|
561
|
+
externalCatalogRequired: string;
|
|
557
562
|
auto: string;
|
|
558
563
|
autoIntegration: string;
|
|
559
564
|
autoResetOrderNumber: string;
|
|
@@ -727,6 +732,7 @@ export declare const i18nMessages: {
|
|
|
727
732
|
noAvailableItem: string;
|
|
728
733
|
noAvailableTable: string;
|
|
729
734
|
nonNegativeRule: string;
|
|
735
|
+
noRestaurantFound: string;
|
|
730
736
|
noRestaurantSelected: string;
|
|
731
737
|
notAllowed: string;
|
|
732
738
|
offlinePayment: string;
|
|
@@ -909,6 +915,8 @@ export declare const i18nMessages: {
|
|
|
909
915
|
manageExternalDelivery: string;
|
|
910
916
|
deliveryCatalog: string;
|
|
911
917
|
pickupCatalog: string;
|
|
918
|
+
dineInCatalog: string;
|
|
919
|
+
dineInNotSupported: string;
|
|
912
920
|
DeliverySettingUpdated: string;
|
|
913
921
|
selectPlatform: string;
|
|
914
922
|
platform: string;
|
|
@@ -1018,6 +1026,7 @@ export declare const i18nMessages: {
|
|
|
1018
1026
|
apply: string;
|
|
1019
1027
|
applyFor: string;
|
|
1020
1028
|
asap: string;
|
|
1029
|
+
externalCatalogRequired: string;
|
|
1021
1030
|
auto: string;
|
|
1022
1031
|
autoIntegration: string;
|
|
1023
1032
|
autoResetOrderNumber: string;
|
|
@@ -1189,6 +1198,7 @@ export declare const i18nMessages: {
|
|
|
1189
1198
|
noAvailableItem: string;
|
|
1190
1199
|
noAvailableTable: string;
|
|
1191
1200
|
nonNegativeRule: string;
|
|
1201
|
+
noRestaurantFound: string;
|
|
1192
1202
|
noRestaurantSelected: string;
|
|
1193
1203
|
notAllowed: string;
|
|
1194
1204
|
offlinePayment: string;
|
|
@@ -1368,6 +1378,8 @@ export declare const i18nMessages: {
|
|
|
1368
1378
|
manageExternalDelivery: string;
|
|
1369
1379
|
deliveryCatalog: string;
|
|
1370
1380
|
pickupCatalog: string;
|
|
1381
|
+
dineInCatalog: string;
|
|
1382
|
+
dineInNotSupported: string;
|
|
1371
1383
|
DeliverySettingUpdated: string;
|
|
1372
1384
|
selectPlatform: string;
|
|
1373
1385
|
platform: string;
|
|
@@ -1476,6 +1488,7 @@ export declare const i18nMessages: {
|
|
|
1476
1488
|
apply: string;
|
|
1477
1489
|
applyFor: string;
|
|
1478
1490
|
asap: string;
|
|
1491
|
+
externalCatalogRequired: string;
|
|
1479
1492
|
auto: string;
|
|
1480
1493
|
autoIntegration: string;
|
|
1481
1494
|
autoResetOrderNumber: string;
|
|
@@ -1642,6 +1655,7 @@ export declare const i18nMessages: {
|
|
|
1642
1655
|
noAvailableItem: string;
|
|
1643
1656
|
noAvailableTable: string;
|
|
1644
1657
|
nonNegativeRule: string;
|
|
1658
|
+
noRestaurantFound: string;
|
|
1645
1659
|
noRestaurantSelected: string;
|
|
1646
1660
|
notAllowed: string;
|
|
1647
1661
|
offlinePayment: string;
|
|
@@ -1824,6 +1838,8 @@ export declare const i18nMessages: {
|
|
|
1824
1838
|
manageExternalDelivery: string;
|
|
1825
1839
|
deliveryCatalog: string;
|
|
1826
1840
|
pickupCatalog: string;
|
|
1841
|
+
dineInCatalog: string;
|
|
1842
|
+
dineInNotSupported: string;
|
|
1827
1843
|
DeliverySettingUpdated: string;
|
|
1828
1844
|
selectPlatform: string;
|
|
1829
1845
|
platform: string;
|
|
@@ -183,6 +183,7 @@ export declare const useMenuStore: import("pinia").StoreDefinition<"menu", MenuS
|
|
|
183
183
|
pos: boolean;
|
|
184
184
|
app: boolean;
|
|
185
185
|
} | null | undefined;
|
|
186
|
+
image?: string | null | undefined;
|
|
186
187
|
}[] | null | undefined;
|
|
187
188
|
}[] | null | undefined;
|
|
188
189
|
isDefault?: boolean | null | undefined;
|
|
@@ -197,6 +198,7 @@ export declare const useMenuStore: import("pinia").StoreDefinition<"menu", MenuS
|
|
|
197
198
|
pos: boolean;
|
|
198
199
|
app: boolean;
|
|
199
200
|
} | null | undefined;
|
|
201
|
+
image?: string | null | undefined;
|
|
200
202
|
}[] | null | undefined;
|
|
201
203
|
}[] | null | undefined;
|
|
202
204
|
usePriceTiers?: string[] | null | undefined;
|
|
@@ -316,6 +318,7 @@ export declare const useMenuStore: import("pinia").StoreDefinition<"menu", MenuS
|
|
|
316
318
|
pos: boolean;
|
|
317
319
|
app: boolean;
|
|
318
320
|
} | null | undefined;
|
|
321
|
+
image?: string | null | undefined;
|
|
319
322
|
}[] | null | undefined;
|
|
320
323
|
}[];
|
|
321
324
|
openPrice: boolean;
|
|
@@ -446,6 +449,7 @@ export declare const useMenuStore: import("pinia").StoreDefinition<"menu", MenuS
|
|
|
446
449
|
pos: boolean;
|
|
447
450
|
app: boolean;
|
|
448
451
|
} | null | undefined;
|
|
452
|
+
image?: string | null | undefined;
|
|
449
453
|
}[] | null | undefined;
|
|
450
454
|
}[] | null | undefined;
|
|
451
455
|
isDefault?: boolean | null | undefined;
|
|
@@ -460,6 +464,7 @@ export declare const useMenuStore: import("pinia").StoreDefinition<"menu", MenuS
|
|
|
460
464
|
pos: boolean;
|
|
461
465
|
app: boolean;
|
|
462
466
|
} | null | undefined;
|
|
467
|
+
image?: string | null | undefined;
|
|
463
468
|
}[];
|
|
464
469
|
} | null | undefined;
|
|
465
470
|
category?: string | null | undefined;
|
|
@@ -525,6 +530,22 @@ export declare const useMenuStore: import("pinia").StoreDefinition<"menu", MenuS
|
|
|
525
530
|
isDefault?: boolean | null | undefined;
|
|
526
531
|
}[] | null | undefined;
|
|
527
532
|
} | null | undefined;
|
|
533
|
+
images?: {
|
|
534
|
+
_id: string;
|
|
535
|
+
isDefault: boolean;
|
|
536
|
+
url: string;
|
|
537
|
+
imageSet: Record<string, string | null | undefined>;
|
|
538
|
+
}[] | null | undefined;
|
|
539
|
+
orderQuantity?: {
|
|
540
|
+
perBill?: {
|
|
541
|
+
min?: number | null | undefined;
|
|
542
|
+
max?: number | null | undefined;
|
|
543
|
+
} | null | undefined;
|
|
544
|
+
perOrderSession?: {
|
|
545
|
+
min?: number | null | undefined;
|
|
546
|
+
max?: number | null | undefined;
|
|
547
|
+
} | null | undefined;
|
|
548
|
+
} | null | undefined;
|
|
528
549
|
}[];
|
|
529
550
|
group: {
|
|
530
551
|
_id: string;
|
|
@@ -650,6 +671,7 @@ export declare const useMenuStore: import("pinia").StoreDefinition<"menu", MenuS
|
|
|
650
671
|
pos: boolean;
|
|
651
672
|
app: boolean;
|
|
652
673
|
} | null | undefined;
|
|
674
|
+
image?: string | null | undefined;
|
|
653
675
|
}[] | null | undefined;
|
|
654
676
|
}[] | null | undefined;
|
|
655
677
|
isDefault?: boolean | null | undefined;
|
|
@@ -664,6 +686,7 @@ export declare const useMenuStore: import("pinia").StoreDefinition<"menu", MenuS
|
|
|
664
686
|
pos: boolean;
|
|
665
687
|
app: boolean;
|
|
666
688
|
} | null | undefined;
|
|
689
|
+
image?: string | null | undefined;
|
|
667
690
|
}[];
|
|
668
691
|
name_locale?: Record<string, string> | null | undefined;
|
|
669
692
|
customAttributes?: Record<string, any> | null | undefined;
|
|
@@ -803,6 +826,7 @@ export declare const useMenuStore: import("pinia").StoreDefinition<"menu", MenuS
|
|
|
803
826
|
pos: boolean;
|
|
804
827
|
app: boolean;
|
|
805
828
|
} | null | undefined;
|
|
829
|
+
image?: string | null | undefined;
|
|
806
830
|
}[] | null | undefined;
|
|
807
831
|
}[] | null | undefined;
|
|
808
832
|
isDefault?: boolean | null | undefined;
|
|
@@ -817,6 +841,7 @@ export declare const useMenuStore: import("pinia").StoreDefinition<"menu", MenuS
|
|
|
817
841
|
pos: boolean;
|
|
818
842
|
app: boolean;
|
|
819
843
|
} | null | undefined;
|
|
844
|
+
image?: string | null | undefined;
|
|
820
845
|
}[];
|
|
821
846
|
groups: {
|
|
822
847
|
_id: string;
|
|
@@ -894,6 +919,7 @@ export declare const useMenuStore: import("pinia").StoreDefinition<"menu", MenuS
|
|
|
894
919
|
pos: boolean;
|
|
895
920
|
app: boolean;
|
|
896
921
|
} | null | undefined;
|
|
922
|
+
image?: string | null | undefined;
|
|
897
923
|
}[] | null | undefined;
|
|
898
924
|
}[];
|
|
899
925
|
filters?: {
|
|
@@ -1129,6 +1155,7 @@ export declare const useMenuStore: import("pinia").StoreDefinition<"menu", MenuS
|
|
|
1129
1155
|
pos: boolean;
|
|
1130
1156
|
app: boolean;
|
|
1131
1157
|
} | null | undefined;
|
|
1158
|
+
image?: string | null | undefined;
|
|
1132
1159
|
}[] | null | undefined;
|
|
1133
1160
|
}[] | null | undefined;
|
|
1134
1161
|
isDefault?: boolean | null | undefined;
|
|
@@ -1143,6 +1170,7 @@ export declare const useMenuStore: import("pinia").StoreDefinition<"menu", MenuS
|
|
|
1143
1170
|
pos: boolean;
|
|
1144
1171
|
app: boolean;
|
|
1145
1172
|
} | null | undefined;
|
|
1173
|
+
image?: string | null | undefined;
|
|
1146
1174
|
}[];
|
|
1147
1175
|
}[];
|
|
1148
1176
|
subCategory?: {
|
|
@@ -246,6 +246,9 @@ export declare const useRestaurantStore: import("pinia").StoreDefinition<"restau
|
|
|
246
246
|
url: string;
|
|
247
247
|
restaurantIds: string[];
|
|
248
248
|
}[] | null | undefined;
|
|
249
|
+
menuConfig?: {
|
|
250
|
+
mode: "businessLevel" | "restaurantLevel";
|
|
251
|
+
} | null | undefined;
|
|
249
252
|
name: string;
|
|
250
253
|
_id: string;
|
|
251
254
|
ownerId: string;
|
|
@@ -610,6 +613,9 @@ export declare const useRestaurantStore: import("pinia").StoreDefinition<"restau
|
|
|
610
613
|
url: string;
|
|
611
614
|
restaurantIds: string[];
|
|
612
615
|
}[] | null | undefined;
|
|
616
|
+
menuConfig?: {
|
|
617
|
+
mode: "businessLevel" | "restaurantLevel";
|
|
618
|
+
} | null | undefined;
|
|
613
619
|
name: string;
|
|
614
620
|
_id: string;
|
|
615
621
|
ownerId: string;
|
|
@@ -974,6 +980,9 @@ export declare const useRestaurantStore: import("pinia").StoreDefinition<"restau
|
|
|
974
980
|
url: string;
|
|
975
981
|
restaurantIds: string[];
|
|
976
982
|
}[] | null | undefined;
|
|
983
|
+
menuConfig?: {
|
|
984
|
+
mode: "businessLevel" | "restaurantLevel";
|
|
985
|
+
} | null | undefined;
|
|
977
986
|
name: string;
|
|
978
987
|
_id: string;
|
|
979
988
|
ownerId: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FdoLinkedDelivery, F_COUNTRY } from '@feedmepos/core/entity';
|
|
2
|
+
import { type FdoExternalSetting } from '@entity';
|
|
2
3
|
export type LinkedDeliveryDoc = FdoLinkedDelivery & {
|
|
3
4
|
_rev: string;
|
|
4
5
|
};
|
|
@@ -19,6 +20,10 @@ export interface DeliveryCompany {
|
|
|
19
20
|
paymentTypeKey: string;
|
|
20
21
|
key: string;
|
|
21
22
|
}
|
|
23
|
+
export type ExternalMenuOrderType = 'delivery' | 'pickup' | 'dineIn';
|
|
24
|
+
export type ExternalMenuOrderTypeWithRequiredCatalog = Extract<ExternalMenuOrderType, 'delivery' | 'pickup'>;
|
|
25
|
+
export declare function externalMenuOrderTypeRequiresCatalog(platform: FdoExternalSetting['platform'], orderType: ExternalMenuOrderType): orderType is ExternalMenuOrderTypeWithRequiredCatalog;
|
|
26
|
+
export declare function getInvalidExternalMenuCatalogOrderTypes(setting: Pick<FdoExternalSetting, 'platform' | 'delivery' | 'pickup'>): ExternalMenuOrderTypeWithRequiredCatalog[];
|
|
22
27
|
export declare function useDelivery(): {
|
|
23
28
|
getLinkedDeliveryDoc: (docs: LinkedDeliveryDoc[], key: string) => LinkedDeliveryDoc | undefined;
|
|
24
29
|
filterLocalDeliveryCompanies: (companies: DeliveryCompany[]) => DeliveryCompany[];
|
|
@@ -18,6 +18,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
18
18
|
systemCode: string;
|
|
19
19
|
} | null | undefined;
|
|
20
20
|
} | null | undefined;
|
|
21
|
+
dineIn?: {
|
|
22
|
+
catalogId?: string | null | undefined;
|
|
23
|
+
} | null | undefined;
|
|
21
24
|
updatedAt?: string | null | undefined;
|
|
22
25
|
lastSynchronize?: string | null | undefined;
|
|
23
26
|
_id: string;
|
|
@@ -51,6 +54,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
51
54
|
systemCode: string;
|
|
52
55
|
} | null | undefined;
|
|
53
56
|
} | null | undefined;
|
|
57
|
+
dineIn?: {
|
|
58
|
+
catalogId?: string | null | undefined;
|
|
59
|
+
} | null | undefined;
|
|
54
60
|
updatedAt?: string | null | undefined;
|
|
55
61
|
lastSynchronize?: string | null | undefined;
|
|
56
62
|
_id: string;
|