@feedmepos/mf-order-setting 0.0.32 → 0.0.34
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-D2w5MMCg.js → KioskDevicesView-BHzBoF_O.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-BwxGSbuI.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-C5JpMDP_.js} +2 -2
- package/dist/KioskSettingView-i8tgH3dF.js +841 -0
- package/dist/{KioskView-NetckXQx.js → KioskView-DW7vX6rJ.js} +41 -34
- package/dist/{OrderSettingsView-CL0o1fHq.js → OrderSettingsView-D3SQHET3.js} +5446 -5282
- package/dist/{app-DnvFFLBj.js → app-C15xKXga.js} +18 -8
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-BAx2Uba9.js → dayjs.min-KE7XM_kc.js} +1 -1
- package/dist/frontend/mf-order/src/api/remoteOrder/index.d.ts +5 -2
- package/dist/frontend/mf-order/src/app.d.ts +10 -0
- package/dist/frontend/mf-order/src/main.d.ts +10 -0
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +12 -0
- package/dist/frontend/mf-order/src/stores/order-setting/mapper.d.ts +3 -3
- package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +5 -2
- package/dist/frontend/mf-order/src/views/kiosk/settings/KioskPaymentTypeSection.vue.d.ts +8 -0
- package/dist/frontend/mf-order/src/views/order-settings/delivery/DeliverySetting.vue.d.ts +1 -1
- package/dist/frontend/mf-order/src/views/order-settings/delivery/delivery.d.ts +3 -1
- package/dist/frontend/mf-order/src/views/order-settings/delivery/delivery.data.d.ts +3 -1
- package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/DeliverooSetting.vue.d.ts +46 -0
- package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue.d.ts +4 -4
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-DuneL3VN.js → index-DGfFxIZo.js} +2 -2
- package/dist/{queue.do-B1npBXsB.js → menu.dto-CLARGRsi.js} +15200 -14810
- package/dist/package/entity/index.d.ts +22 -1
- package/dist/package/entity/order/order-item/order-item.dto.d.ts +2 -2
- package/dist/package/entity/order/order.enum.d.ts +1 -1
- package/dist/package/entity/order-platform/deliveroo/deliveroo-dto.d.ts +523 -0
- package/dist/package/entity/order-platform/deliveroo/deliveroo-order.do.d.ts +7814 -0
- package/dist/package/entity/order-platform/deliveroo/deliveroo-order.dto.d.ts +15 -0
- package/dist/package/entity/order-platform/deliveroo/deliveroo-setting.do.d.ts +37 -0
- package/dist/package/entity/order-platform/deliveroo/deliveroo.enum.d.ts +31 -0
- package/dist/package/entity/order-platform/deliveroo/deliveroo.menu.dto.d.ts +2341 -0
- package/dist/package/entity/order-platform/external/setting/external-setting.do.d.ts +3 -3
- package/dist/package/entity/order-platform/external/setting/external-setting.dto.d.ts +3 -3
- package/dist/package/entity/order-platform/order-platform.enum.d.ts +6 -1
- package/dist/package/entity/order-setting/kiosk/kiosk.do.d.ts +42 -0
- package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +32 -0
- package/dist/package/entity/order-setting/order-setting.do.d.ts +22 -0
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +44 -0
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +22 -0
- package/dist/package/entity/websocket/websocket.dto.d.ts +48 -0
- package/package.json +1 -1
- package/src/api/remoteOrder/index.ts +20 -2
- package/src/locales/en-US.json +3 -0
- package/src/locales/th-TH.json +3 -0
- package/src/locales/zh-CN.json +4 -0
- package/src/stores/order-setting/mapper.ts +230 -168
- package/src/stores/restaurant/index.ts +12 -7
- package/src/views/kiosk/settings/KioskPaymentTypeSection.vue +31 -1
- package/src/views/order-settings/delivery/DeliverySetting.vue +141 -57
- package/src/views/order-settings/delivery/delivery.data.ts +10 -1
- package/src/views/order-settings/delivery/delivery.ts +34 -9
- package/src/views/order-settings/delivery/integrated-delivery/DeliverooSetting.vue +109 -0
- package/src/views/order-settings/delivery/integrated-delivery/IntegratedDelivery.vue +11 -10
- package/dist/KioskSettingView-CUMAS8OG.js +0 -821
|
@@ -36,6 +36,7 @@ const k = {
|
|
|
36
36
|
auto: "Auto",
|
|
37
37
|
autoIntegration: "Auto Integration",
|
|
38
38
|
autoIntegrationWarning: "Auto delivery integration not available, contact our staff for more information. Reason: {reason}",
|
|
39
|
+
autoIntegrationCountryNotSupport: "Platform not support auto integration in current country.",
|
|
39
40
|
autoSendKitchen: "Auto Send Kitchen",
|
|
40
41
|
autoSendKitchenSublabel: "Required POS version 7 or above",
|
|
41
42
|
balance: "Balance",
|
|
@@ -193,6 +194,8 @@ const k = {
|
|
|
193
194
|
productSelected: "product(s) selected",
|
|
194
195
|
promptAnonymousLoginDialog: "Prompt Login Dialog For Anonymous Order",
|
|
195
196
|
qrPay: "QR Pay",
|
|
197
|
+
terminalScanPay: "Terminal Scan Pay",
|
|
198
|
+
terminalQrPay: "Terminal QR Pay",
|
|
196
199
|
rate: "Rate",
|
|
197
200
|
remoteId: "Remote ID",
|
|
198
201
|
restaurant: "Restaurant",
|
|
@@ -335,6 +338,7 @@ const k = {
|
|
|
335
338
|
auto: "自动",
|
|
336
339
|
autoIntegration: "自动对接",
|
|
337
340
|
autoIntegrationWarning: "自动配送对接不可用, 请联络我们的工作人员了解更多信息。 原因: {reason}",
|
|
341
|
+
autoIntegrationCountryNotSupport: "平台不支持当前国家/地区的自动配送对接。",
|
|
338
342
|
autoSendKitchen: "自动发送至厨房",
|
|
339
343
|
autoSendKitchenSublabel: "需要POS版本7或以上",
|
|
340
344
|
balance: "余额",
|
|
@@ -493,6 +497,8 @@ const k = {
|
|
|
493
497
|
productSelected: "已选择商品",
|
|
494
498
|
promptAnonymousLoginDialog: "为匿名用户弹出登入对话框",
|
|
495
499
|
qrPay: "二维码支付",
|
|
500
|
+
terminalScanPay: "终端扫描支付",
|
|
501
|
+
terminalQrPay: "终端二维码支付",
|
|
496
502
|
rate: "费率",
|
|
497
503
|
remoteId: "平台注册ID",
|
|
498
504
|
restaurant: "餐厅",
|
|
@@ -574,6 +580,7 @@ const k = {
|
|
|
574
580
|
DeliverySettingUpdated: "配送设置已更新",
|
|
575
581
|
selectPlatform: "选择平台",
|
|
576
582
|
platform: "平台",
|
|
583
|
+
rateLimitWarning: "每分钟只允许一次请求。请稍后再试",
|
|
577
584
|
discountRule: {
|
|
578
585
|
add: "添加折扣规则",
|
|
579
586
|
description: "定义折扣在账单中如何应用。仅适用于POS版本{minPosVersion}或更高版本。",
|
|
@@ -637,6 +644,7 @@ const k = {
|
|
|
637
644
|
auto: "อัตโนมัติ",
|
|
638
645
|
autoIntegration: "รวมอัตโนมัติ",
|
|
639
646
|
autoIntegrationWarning: "การรวมระบบการจัดส่งอัตโนมัติไม่พร้อมใช้งาน โปรดติดต่อเจ้าหน้าที่ของเราเพื่อขอข้อมูลเพิ่มเติม เหตุผล: {reason}",
|
|
647
|
+
autoIntegrationCountryNotSupport: "แพลตฟอร์มไม่รองรับการเชื่อมต่อการจัดส่งแบบไดนามิกในประเทศ/ภูมิภาคปัจจุบัน",
|
|
640
648
|
autoSendKitchen: "ส่งอัตโนมัติครัว",
|
|
641
649
|
autoSendKitchenSublabel: "ต้องใช้ POS เวอร์ชัน 7 ขึ้นไป",
|
|
642
650
|
balance: "ยอดคงเหลือ",
|
|
@@ -791,6 +799,8 @@ const k = {
|
|
|
791
799
|
productSelected: "ผลิตภัณฑ์ที่เลือก",
|
|
792
800
|
promptAnonymousLoginDialog: "กล่องโต้ตอบพร้อมท์เข้าสู่ระบบสำหรับคำสั่งซื้อแบบไม่เปิดเผยตัวตน",
|
|
793
801
|
qrPay: "ชำระเงินด้วย QR",
|
|
802
|
+
terminalScanPay: "ชำระเงินด้วยการสแกนเทอร์มินัล",
|
|
803
|
+
terminalQrPay: "ชำระเงินด้วย QR เทอร์มินัล",
|
|
794
804
|
rate: "อัตรา",
|
|
795
805
|
remoteId: "รหัสประจำตัวระยะไกล",
|
|
796
806
|
restaurant: "ร้านอาหาร",
|
|
@@ -926,7 +936,7 @@ function V({
|
|
|
926
936
|
}
|
|
927
937
|
return e.map((o) => ({ lat: o.lat(), lng: o.lng() }));
|
|
928
938
|
}
|
|
929
|
-
function
|
|
939
|
+
function Q(t) {
|
|
930
940
|
if (!t.length) return;
|
|
931
941
|
const { lat: i, lng: e } = y(t[0]), { maxLng: a, minLng: r, maxLat: o, minLat: c } = t.reduce((n, p) => {
|
|
932
942
|
const { lng: s, lat: l } = y(p);
|
|
@@ -1001,26 +1011,26 @@ const w = { class: "flex-1 overflow-auto" }, W = /* @__PURE__ */ S({
|
|
|
1001
1011
|
KioskDeviceRoute: E,
|
|
1002
1012
|
KioskOrderSettingRoute: F,
|
|
1003
1013
|
OrderSettingView: N
|
|
1004
|
-
},
|
|
1014
|
+
}, _ = [
|
|
1005
1015
|
{
|
|
1006
1016
|
path: u.KioskRoute,
|
|
1007
1017
|
name: "Kiosk",
|
|
1008
|
-
component: () => import("./KioskView-
|
|
1018
|
+
component: () => import("./KioskView-DW7vX6rJ.js")
|
|
1009
1019
|
},
|
|
1010
1020
|
{
|
|
1011
1021
|
path: u.KioskDeviceRoute,
|
|
1012
1022
|
name: "Kiosk Device",
|
|
1013
|
-
component: () => import("./KioskDevicesView-
|
|
1023
|
+
component: () => import("./KioskDevicesView-BHzBoF_O.js")
|
|
1014
1024
|
},
|
|
1015
1025
|
{
|
|
1016
1026
|
path: u.KioskOrderSettingRoute,
|
|
1017
1027
|
name: "Kiosk Order Setting",
|
|
1018
|
-
component: () => import("./KioskSettingView-
|
|
1028
|
+
component: () => import("./KioskSettingView-i8tgH3dF.js")
|
|
1019
1029
|
},
|
|
1020
1030
|
{
|
|
1021
1031
|
path: u.OrderSettingView,
|
|
1022
1032
|
name: "Order Setting View",
|
|
1023
|
-
component: () => import("./OrderSettingsView-
|
|
1033
|
+
component: () => import("./OrderSettingsView-D3SQHET3.js")
|
|
1024
1034
|
}
|
|
1025
1035
|
], H = {
|
|
1026
1036
|
"en-US": C,
|
|
@@ -1033,8 +1043,8 @@ export {
|
|
|
1033
1043
|
V as b,
|
|
1034
1044
|
B as c,
|
|
1035
1045
|
U as d,
|
|
1036
|
-
|
|
1046
|
+
Q as e,
|
|
1037
1047
|
v as g,
|
|
1038
1048
|
H as i,
|
|
1039
|
-
|
|
1049
|
+
_ as r
|
|
1040
1050
|
};
|
package/dist/app.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DeliveryCompany, LinkedDeliveryDoc } from '../../views/order-settings/delivery/delivery';
|
|
2
2
|
import { FdoFoodpandaSettings, FdoLinkedDelivery, FdoRestaurant, FdoRestaurantFeedmeDelivery, FdoRestaurantInHouseDelivery, FdoShopeeFoodOrder } from '@feedmepos/core/entity';
|
|
3
|
-
import type { FdoExternalSetting, FdoFoodpandaOrderOutput, FdoGrabfoodOrderOutput, FdoGrabfoodSettings, FdoShopeeFoodOrderOutput, FdoShopeeFoodSettings, FdtoGetOrderReq } from '@entity';
|
|
4
|
-
type DeliveryCompanyUrl = 'foodpanda' | 'grabfood' | 'shopeefood' | 'external';
|
|
3
|
+
import type { FdoDeliverooSettings, FdoExternalSetting, FdoFoodpandaOrderOutput, FdoGrabfoodOrderOutput, FdoGrabfoodSettings, FdoShopeeFoodOrderOutput, FdoShopeeFoodSettings, FdtoGetOrderReq } from '@entity';
|
|
4
|
+
type DeliveryCompanyUrl = 'foodpanda' | 'grabfood' | 'shopeefood' | 'deliveroo' | 'external';
|
|
5
5
|
export declare const remoteOrderApi: {
|
|
6
6
|
readLinkedDeliveryCompanies(): Promise<LinkedDeliveryDoc[]>;
|
|
7
7
|
readLocalDeliveryCompanies(): Promise<DeliveryCompany[]>;
|
|
@@ -30,6 +30,9 @@ export declare const remoteOrderApi: {
|
|
|
30
30
|
rejectShopeefoodOrders(orderId: string): Promise<FdoShopeeFoodOrderOutput>;
|
|
31
31
|
updateShopeefood(restaurantId: string, dto: FdoShopeeFoodSettings): Promise<FdoRestaurant>;
|
|
32
32
|
syncShopeefoodMenu(storeId: string): Promise<FdoShopeeFoodSettings>;
|
|
33
|
+
updateDeliveroo(restaurantId: string, dto: FdoDeliverooSettings): Promise<FdoRestaurant>;
|
|
34
|
+
readDeliveroo(restaurantId: string): Promise<FdoDeliverooSettings | null>;
|
|
35
|
+
syncDeliverooMernu(merchantID: string): Promise<FdoDeliverooSettings>;
|
|
33
36
|
readExternal(restaurantId: string): Promise<FdoExternalSetting | null>;
|
|
34
37
|
updateExternal(restaurantId: string, dto: FdoExternalSetting): Promise<FdoExternalSetting>;
|
|
35
38
|
syncExternalMenu(restaurantId: string): Promise<FdoExternalSetting>;
|
|
@@ -38,6 +38,7 @@ export declare const i18nMessages: {
|
|
|
38
38
|
auto: string;
|
|
39
39
|
autoIntegration: string;
|
|
40
40
|
autoIntegrationWarning: string;
|
|
41
|
+
autoIntegrationCountryNotSupport: string;
|
|
41
42
|
autoSendKitchen: string;
|
|
42
43
|
autoSendKitchenSublabel: string;
|
|
43
44
|
balance: string;
|
|
@@ -195,6 +196,8 @@ export declare const i18nMessages: {
|
|
|
195
196
|
productSelected: string;
|
|
196
197
|
promptAnonymousLoginDialog: string;
|
|
197
198
|
qrPay: string;
|
|
199
|
+
terminalScanPay: string;
|
|
200
|
+
terminalQrPay: string;
|
|
198
201
|
rate: string;
|
|
199
202
|
remoteId: string;
|
|
200
203
|
restaurant: string;
|
|
@@ -338,6 +341,7 @@ export declare const i18nMessages: {
|
|
|
338
341
|
auto: string;
|
|
339
342
|
autoIntegration: string;
|
|
340
343
|
autoIntegrationWarning: string;
|
|
344
|
+
autoIntegrationCountryNotSupport: string;
|
|
341
345
|
autoSendKitchen: string;
|
|
342
346
|
autoSendKitchenSublabel: string;
|
|
343
347
|
balance: string;
|
|
@@ -496,6 +500,8 @@ export declare const i18nMessages: {
|
|
|
496
500
|
productSelected: string;
|
|
497
501
|
promptAnonymousLoginDialog: string;
|
|
498
502
|
qrPay: string;
|
|
503
|
+
terminalScanPay: string;
|
|
504
|
+
terminalQrPay: string;
|
|
499
505
|
rate: string;
|
|
500
506
|
remoteId: string;
|
|
501
507
|
restaurant: string;
|
|
@@ -577,6 +583,7 @@ export declare const i18nMessages: {
|
|
|
577
583
|
DeliverySettingUpdated: string;
|
|
578
584
|
selectPlatform: string;
|
|
579
585
|
platform: string;
|
|
586
|
+
rateLimitWarning: string;
|
|
580
587
|
discountRule: {
|
|
581
588
|
add: string;
|
|
582
589
|
description: string;
|
|
@@ -641,6 +648,7 @@ export declare const i18nMessages: {
|
|
|
641
648
|
auto: string;
|
|
642
649
|
autoIntegration: string;
|
|
643
650
|
autoIntegrationWarning: string;
|
|
651
|
+
autoIntegrationCountryNotSupport: string;
|
|
644
652
|
autoSendKitchen: string;
|
|
645
653
|
autoSendKitchenSublabel: string;
|
|
646
654
|
balance: string;
|
|
@@ -795,6 +803,8 @@ export declare const i18nMessages: {
|
|
|
795
803
|
productSelected: string;
|
|
796
804
|
promptAnonymousLoginDialog: string;
|
|
797
805
|
qrPay: string;
|
|
806
|
+
terminalScanPay: string;
|
|
807
|
+
terminalQrPay: string;
|
|
798
808
|
rate: string;
|
|
799
809
|
remoteId: string;
|
|
800
810
|
restaurant: string;
|
|
@@ -37,6 +37,7 @@ export declare const i18nMessages: {
|
|
|
37
37
|
auto: string;
|
|
38
38
|
autoIntegration: string;
|
|
39
39
|
autoIntegrationWarning: string;
|
|
40
|
+
autoIntegrationCountryNotSupport: string;
|
|
40
41
|
autoSendKitchen: string;
|
|
41
42
|
autoSendKitchenSublabel: string;
|
|
42
43
|
balance: string;
|
|
@@ -194,6 +195,8 @@ export declare const i18nMessages: {
|
|
|
194
195
|
productSelected: string;
|
|
195
196
|
promptAnonymousLoginDialog: string;
|
|
196
197
|
qrPay: string;
|
|
198
|
+
terminalScanPay: string;
|
|
199
|
+
terminalQrPay: string;
|
|
197
200
|
rate: string;
|
|
198
201
|
remoteId: string;
|
|
199
202
|
restaurant: string;
|
|
@@ -337,6 +340,7 @@ export declare const i18nMessages: {
|
|
|
337
340
|
auto: string;
|
|
338
341
|
autoIntegration: string;
|
|
339
342
|
autoIntegrationWarning: string;
|
|
343
|
+
autoIntegrationCountryNotSupport: string;
|
|
340
344
|
autoSendKitchen: string;
|
|
341
345
|
autoSendKitchenSublabel: string;
|
|
342
346
|
balance: string;
|
|
@@ -495,6 +499,8 @@ export declare const i18nMessages: {
|
|
|
495
499
|
productSelected: string;
|
|
496
500
|
promptAnonymousLoginDialog: string;
|
|
497
501
|
qrPay: string;
|
|
502
|
+
terminalScanPay: string;
|
|
503
|
+
terminalQrPay: string;
|
|
498
504
|
rate: string;
|
|
499
505
|
remoteId: string;
|
|
500
506
|
restaurant: string;
|
|
@@ -576,6 +582,7 @@ export declare const i18nMessages: {
|
|
|
576
582
|
DeliverySettingUpdated: string;
|
|
577
583
|
selectPlatform: string;
|
|
578
584
|
platform: string;
|
|
585
|
+
rateLimitWarning: string;
|
|
579
586
|
discountRule: {
|
|
580
587
|
add: string;
|
|
581
588
|
description: string;
|
|
@@ -640,6 +647,7 @@ export declare const i18nMessages: {
|
|
|
640
647
|
auto: string;
|
|
641
648
|
autoIntegration: string;
|
|
642
649
|
autoIntegrationWarning: string;
|
|
650
|
+
autoIntegrationCountryNotSupport: string;
|
|
643
651
|
autoSendKitchen: string;
|
|
644
652
|
autoSendKitchenSublabel: string;
|
|
645
653
|
balance: string;
|
|
@@ -794,6 +802,8 @@ export declare const i18nMessages: {
|
|
|
794
802
|
productSelected: string;
|
|
795
803
|
promptAnonymousLoginDialog: string;
|
|
796
804
|
qrPay: string;
|
|
805
|
+
terminalScanPay: string;
|
|
806
|
+
terminalQrPay: string;
|
|
797
807
|
rate: string;
|
|
798
808
|
remoteId: string;
|
|
799
809
|
restaurant: string;
|
|
@@ -52,6 +52,8 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
|
|
|
52
52
|
eWallet: {
|
|
53
53
|
qrPay: boolean;
|
|
54
54
|
scanPay: boolean;
|
|
55
|
+
terminalScanPay: boolean;
|
|
56
|
+
terminalQrPay: boolean;
|
|
55
57
|
};
|
|
56
58
|
};
|
|
57
59
|
};
|
|
@@ -223,6 +225,8 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
|
|
|
223
225
|
eWallet: {
|
|
224
226
|
qrPay: boolean;
|
|
225
227
|
scanPay: boolean;
|
|
228
|
+
terminalScanPay: boolean;
|
|
229
|
+
terminalQrPay: boolean;
|
|
226
230
|
};
|
|
227
231
|
} | null | undefined;
|
|
228
232
|
} | null | undefined;
|
|
@@ -294,6 +298,8 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
|
|
|
294
298
|
eWallet: {
|
|
295
299
|
qrPay: boolean;
|
|
296
300
|
scanPay: boolean;
|
|
301
|
+
terminalScanPay: boolean;
|
|
302
|
+
terminalQrPay: boolean;
|
|
297
303
|
};
|
|
298
304
|
};
|
|
299
305
|
};
|
|
@@ -465,6 +471,8 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
|
|
|
465
471
|
eWallet: {
|
|
466
472
|
qrPay: boolean;
|
|
467
473
|
scanPay: boolean;
|
|
474
|
+
terminalScanPay: boolean;
|
|
475
|
+
terminalQrPay: boolean;
|
|
468
476
|
};
|
|
469
477
|
} | null | undefined;
|
|
470
478
|
} | null | undefined;
|
|
@@ -536,6 +544,8 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
|
|
|
536
544
|
eWallet: {
|
|
537
545
|
qrPay: boolean;
|
|
538
546
|
scanPay: boolean;
|
|
547
|
+
terminalScanPay: boolean;
|
|
548
|
+
terminalQrPay: boolean;
|
|
539
549
|
};
|
|
540
550
|
};
|
|
541
551
|
};
|
|
@@ -707,6 +717,8 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
|
|
|
707
717
|
eWallet: {
|
|
708
718
|
qrPay: boolean;
|
|
709
719
|
scanPay: boolean;
|
|
720
|
+
terminalScanPay: boolean;
|
|
721
|
+
terminalQrPay: boolean;
|
|
710
722
|
};
|
|
711
723
|
} | null | undefined;
|
|
712
724
|
} | null | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OrderSettingsDto, OrderKioskDineInSequenceDto } from
|
|
1
|
+
import { OrderSettingsDto, OrderKioskDineInSequenceDto } from '@entity';
|
|
2
2
|
import type { MfKioskOrderSetting, MfDisplayStandSetting, KioskTakeawaySettingForm, MfKioskOrderSettingForm, MfKioskSubmitOrderInstruction, KioskPickAtCounterSettingForm } from '@/modules/order-setting/kiosk/interface';
|
|
3
|
-
import type { MfOrderSetting } from
|
|
4
|
-
import type { OrderKioskSettings } from
|
|
3
|
+
import type { MfOrderSetting } from '@/modules/order-setting/interface';
|
|
4
|
+
import type { OrderKioskSettings } from '@entity';
|
|
5
5
|
export declare const defaultDisplayStand: MfDisplayStandSetting;
|
|
6
6
|
export declare const defaultTakeaway: KioskTakeawaySettingForm;
|
|
7
7
|
export declare const defaultPickUp: KioskPickAtCounterSettingForm;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type RestaurantSettingDoc } from '@/api/restaurant-setting';
|
|
2
2
|
import { FdoFoodpandaSettings, FdoRestaurantDineIn, FdoRestaurantFeedmeDelivery, FdoRestaurantInHouseDelivery, FdoRestaurantPickup, FdoServiceChargeSetting, FdoShopeeFoodSettings, type FdoAddress, type FdoProfile, FdoRestaurant } from '@feedmepos/core/entity';
|
|
3
|
-
import {
|
|
3
|
+
import { FdoDeliverooSettings, FdoGrabfoodSettings, FdoExternalSetting } from '@entity';
|
|
4
4
|
export interface Profile extends FdoProfile {
|
|
5
5
|
address: Address;
|
|
6
6
|
}
|
|
@@ -415,6 +415,7 @@ export declare const useRestaurantStore: import("pinia").StoreDefinition<"restau
|
|
|
415
415
|
updateIntegratedFoodpandaDelivery: (restaurantId: string, dto: FdoFoodpandaSettings) => Promise<void>;
|
|
416
416
|
updateIntegratedGrabfoodDelivery: (restaurantId: string, dto: FdoGrabfoodSettings) => Promise<void>;
|
|
417
417
|
updateIntegratedShopeefoodDelivery: (restaurantId: string, dto: FdoShopeeFoodSettings) => Promise<void>;
|
|
418
|
+
updateIntegratedDeliverooDelivery: (restaurantId: string, dto: FdoDeliverooSettings) => Promise<void>;
|
|
418
419
|
updateExternalDelivery: (restaurantId: string, dto: FdoExternalSetting) => Promise<void>;
|
|
419
420
|
getRestaurantEPayment: () => true | string;
|
|
420
421
|
}, "state" | "currentRestaurantSetting">, Pick<{
|
|
@@ -813,6 +814,7 @@ export declare const useRestaurantStore: import("pinia").StoreDefinition<"restau
|
|
|
813
814
|
updateIntegratedFoodpandaDelivery: (restaurantId: string, dto: FdoFoodpandaSettings) => Promise<void>;
|
|
814
815
|
updateIntegratedGrabfoodDelivery: (restaurantId: string, dto: FdoGrabfoodSettings) => Promise<void>;
|
|
815
816
|
updateIntegratedShopeefoodDelivery: (restaurantId: string, dto: FdoShopeeFoodSettings) => Promise<void>;
|
|
817
|
+
updateIntegratedDeliverooDelivery: (restaurantId: string, dto: FdoDeliverooSettings) => Promise<void>;
|
|
816
818
|
updateExternalDelivery: (restaurantId: string, dto: FdoExternalSetting) => Promise<void>;
|
|
817
819
|
getRestaurantEPayment: () => true | string;
|
|
818
820
|
}, never>, Pick<{
|
|
@@ -1211,6 +1213,7 @@ export declare const useRestaurantStore: import("pinia").StoreDefinition<"restau
|
|
|
1211
1213
|
updateIntegratedFoodpandaDelivery: (restaurantId: string, dto: FdoFoodpandaSettings) => Promise<void>;
|
|
1212
1214
|
updateIntegratedGrabfoodDelivery: (restaurantId: string, dto: FdoGrabfoodSettings) => Promise<void>;
|
|
1213
1215
|
updateIntegratedShopeefoodDelivery: (restaurantId: string, dto: FdoShopeeFoodSettings) => Promise<void>;
|
|
1216
|
+
updateIntegratedDeliverooDelivery: (restaurantId: string, dto: FdoDeliverooSettings) => Promise<void>;
|
|
1214
1217
|
updateExternalDelivery: (restaurantId: string, dto: FdoExternalSetting) => Promise<void>;
|
|
1215
1218
|
getRestaurantEPayment: () => true | string;
|
|
1216
|
-
}, "updateDineInSetting" | "selectRestaurant" | "readRestaurantSetting" | "updateServiceCharge" | "updatePickupSetting" | "updateInhouseDelivery" | "updateFeedmeDelivery" | "updateIntegratedFoodpandaDelivery" | "updateIntegratedGrabfoodDelivery" | "updateIntegratedShopeefoodDelivery" | "updateExternalDelivery" | "getRestaurantEPayment">>;
|
|
1219
|
+
}, "updateDineInSetting" | "selectRestaurant" | "readRestaurantSetting" | "updateServiceCharge" | "updatePickupSetting" | "updateInhouseDelivery" | "updateFeedmeDelivery" | "updateIntegratedFoodpandaDelivery" | "updateIntegratedGrabfoodDelivery" | "updateIntegratedShopeefoodDelivery" | "updateIntegratedDeliverooDelivery" | "updateExternalDelivery" | "getRestaurantEPayment">>;
|
|
@@ -24,6 +24,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
24
24
|
eWallet: {
|
|
25
25
|
qrPay: boolean;
|
|
26
26
|
scanPay: boolean;
|
|
27
|
+
terminalScanPay: boolean;
|
|
28
|
+
terminalQrPay: boolean;
|
|
27
29
|
};
|
|
28
30
|
}>;
|
|
29
31
|
required: true;
|
|
@@ -42,6 +44,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
42
44
|
eWallet: {
|
|
43
45
|
qrPay: boolean;
|
|
44
46
|
scanPay: boolean;
|
|
47
|
+
terminalScanPay: boolean;
|
|
48
|
+
terminalQrPay: boolean;
|
|
45
49
|
};
|
|
46
50
|
}) => any;
|
|
47
51
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -69,6 +73,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
69
73
|
eWallet: {
|
|
70
74
|
qrPay: boolean;
|
|
71
75
|
scanPay: boolean;
|
|
76
|
+
terminalScanPay: boolean;
|
|
77
|
+
terminalQrPay: boolean;
|
|
72
78
|
};
|
|
73
79
|
}>;
|
|
74
80
|
required: true;
|
|
@@ -87,6 +93,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
87
93
|
eWallet: {
|
|
88
94
|
qrPay: boolean;
|
|
89
95
|
scanPay: boolean;
|
|
96
|
+
terminalScanPay: boolean;
|
|
97
|
+
terminalQrPay: boolean;
|
|
90
98
|
};
|
|
91
99
|
}) => any) | undefined;
|
|
92
100
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FdoFoodpandaSettings, FdoExternalSetting } from '@entity';
|
|
2
2
|
import type { FdoRestaurantFeedmeDelivery, FdoRestaurantInHouseDelivery } from '@feedmepos/core/entity';
|
|
3
3
|
import { FdoGrabfoodSettings, FdoShopeeFoodSettings } from '@entity';
|
|
4
4
|
import { type DeliveryCompany, type LinkedDeliveryDoc } from './delivery';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FdoLinkedDelivery } from "@feedmepos/core/entity";
|
|
1
|
+
import { FdoLinkedDelivery, F_COUNTRY } from "@feedmepos/core/entity";
|
|
2
2
|
export type LinkedDeliveryDoc = FdoLinkedDelivery & {
|
|
3
3
|
_rev: string;
|
|
4
4
|
};
|
|
@@ -6,6 +6,7 @@ export declare enum AUTO_INTEGRATION_CLIENT {
|
|
|
6
6
|
foodpanda = "foodpanda",
|
|
7
7
|
grabfood = "grabfood",
|
|
8
8
|
shopeefood = "shopeefood",
|
|
9
|
+
deliveroo = "deliveroo",
|
|
9
10
|
external = "external"
|
|
10
11
|
}
|
|
11
12
|
export interface DeliveryCompany {
|
|
@@ -20,4 +21,5 @@ export declare function useDelivery(): {
|
|
|
20
21
|
filterLocalDeliveryCompanies: (companies: DeliveryCompany[]) => DeliveryCompany[];
|
|
21
22
|
getPaymentType: (paymentTypeKey?: string) => "Cash" | "Default";
|
|
22
23
|
equalKey: (key: string, targetKey: string) => boolean;
|
|
24
|
+
isIntegratedPlatformSupported: (platform: AUTO_INTEGRATION_CLIENT, country?: F_COUNTRY | null) => boolean;
|
|
23
25
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { FdoExternalSetting } from '@entity';
|
|
1
|
+
import type { FdoDeliverooSettings, FdoExternalSetting } from '@entity';
|
|
2
2
|
import { FdoRestaurantFeedmeDelivery, FdoGrabfoodSettings, FdoShopeeFoodSettings, FdoFoodpandaSettings, FdoRestaurantInHouseDelivery } from '@feedmepos/core/entity';
|
|
3
3
|
declare function initInhouseDelivery(): FdoRestaurantInHouseDelivery;
|
|
4
4
|
declare function initFeedmeExpress(): FdoRestaurantFeedmeDelivery;
|
|
5
5
|
export declare function initFoodpandaDelivery(): FdoFoodpandaSettings;
|
|
6
6
|
declare function initGrabfoodDelivery(): FdoGrabfoodSettings;
|
|
7
7
|
declare function initShopeefoodDelivery(): FdoShopeeFoodSettings;
|
|
8
|
+
declare function initDeliverooDelivery(): FdoDeliverooSettings;
|
|
8
9
|
declare function initExternalDelivery(): FdoExternalSetting;
|
|
9
10
|
declare const _default: {
|
|
10
11
|
initInhouseDelivery: typeof initInhouseDelivery;
|
|
@@ -12,6 +13,7 @@ declare const _default: {
|
|
|
12
13
|
initFoodpandaDelivery: typeof initFoodpandaDelivery;
|
|
13
14
|
initGrabfoodDelivery: typeof initGrabfoodDelivery;
|
|
14
15
|
initShopeefoodDelivery: typeof initShopeefoodDelivery;
|
|
16
|
+
initDeliverooDelivery: typeof initDeliverooDelivery;
|
|
15
17
|
initExternalDelivery: typeof initExternalDelivery;
|
|
16
18
|
};
|
|
17
19
|
export default _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { FdoLinkedDelivery } from '@feedmepos/core/entity';
|
|
3
|
+
import { FdoDeliverooSettings } from '@entity';
|
|
4
|
+
import type { DeliveryCompany } from '../delivery';
|
|
5
|
+
export interface DeliverooDeliveryData {
|
|
6
|
+
manual: FdoLinkedDelivery | null;
|
|
7
|
+
integrated: FdoDeliverooSettings;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
10
|
+
initialValue: {
|
|
11
|
+
type: PropType<DeliverooDeliveryData>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
company: {
|
|
15
|
+
type: PropType<DeliveryCompany>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
canUseAutoDeliveryIntegration: {
|
|
19
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
23
|
+
"update:model-value": (payload: {
|
|
24
|
+
manual: any;
|
|
25
|
+
auto: any;
|
|
26
|
+
}) => any;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
initialValue: {
|
|
29
|
+
type: PropType<DeliverooDeliveryData>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
company: {
|
|
33
|
+
type: PropType<DeliveryCompany>;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
canUseAutoDeliveryIntegration: {
|
|
37
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
}>> & Readonly<{
|
|
41
|
+
"onUpdate:model-value"?: ((payload: {
|
|
42
|
+
manual: any;
|
|
43
|
+
auto: any;
|
|
44
|
+
}) => any) | undefined;
|
|
45
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
46
|
+
export default _default;
|
|
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
15
15
|
} | null | undefined;
|
|
16
16
|
_id: string;
|
|
17
17
|
enable: boolean;
|
|
18
|
-
platform: "IN_HOUSE" | "FEEDME" | "
|
|
18
|
+
platform: "IN_HOUSE" | "FEEDME" | "DELIVEROO" | "FOOD_PANDA" | "GRAB_FOOD" | "SHOPEE_FOOD" | "ZUS";
|
|
19
19
|
config: {
|
|
20
20
|
printReceiptAfterClose?: boolean | null | undefined;
|
|
21
21
|
autoAccept: boolean;
|
|
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
40
40
|
} | null | undefined;
|
|
41
41
|
_id: string;
|
|
42
42
|
enable: boolean;
|
|
43
|
-
platform: "IN_HOUSE" | "FEEDME" | "
|
|
43
|
+
platform: "IN_HOUSE" | "FEEDME" | "DELIVEROO" | "FOOD_PANDA" | "GRAB_FOOD" | "SHOPEE_FOOD" | "ZUS";
|
|
44
44
|
config: {
|
|
45
45
|
printReceiptAfterClose?: boolean | null | undefined;
|
|
46
46
|
autoAccept: boolean;
|
|
@@ -64,7 +64,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
64
64
|
} | null | undefined;
|
|
65
65
|
_id: string;
|
|
66
66
|
enable: boolean;
|
|
67
|
-
platform: "IN_HOUSE" | "FEEDME" | "
|
|
67
|
+
platform: "IN_HOUSE" | "FEEDME" | "DELIVEROO" | "FOOD_PANDA" | "GRAB_FOOD" | "SHOPEE_FOOD" | "ZUS";
|
|
68
68
|
config: {
|
|
69
69
|
printReceiptAfterClose?: boolean | null | undefined;
|
|
70
70
|
autoAccept: boolean;
|
|
@@ -89,7 +89,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
89
89
|
} | null | undefined;
|
|
90
90
|
_id: string;
|
|
91
91
|
enable: boolean;
|
|
92
|
-
platform: "IN_HOUSE" | "FEEDME" | "
|
|
92
|
+
platform: "IN_HOUSE" | "FEEDME" | "DELIVEROO" | "FOOD_PANDA" | "GRAB_FOOD" | "SHOPEE_FOOD" | "ZUS";
|
|
93
93
|
config: {
|
|
94
94
|
printReceiptAfterClose?: boolean | null | undefined;
|
|
95
95
|
autoAccept: boolean;
|