@feedmepos/mf-order-setting 0.0.32 → 0.0.33
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-CxZI99me.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-BwxGSbuI.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-EGj4fxeN.js} +2 -2
- package/dist/{KioskSettingView-CUMAS8OG.js → KioskSettingView-CTDY8__s.js} +1 -1
- package/dist/{KioskView-NetckXQx.js → KioskView-IUQTvUF8.js} +4 -4
- package/dist/{OrderSettingsView-CL0o1fHq.js → OrderSettingsView-VLE9yxNt.js} +5446 -5282
- package/dist/{app-DnvFFLBj.js → app-cd45Ryph.js} +12 -8
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-BAx2Uba9.js → dayjs.min-CRAlrjJy.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 +4 -0
- package/dist/frontend/mf-order/src/main.d.ts +4 -0
- package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +5 -2
- 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-DLWAy-3K.js} +2 -2
- package/dist/{queue.do-B1npBXsB.js → menu.dto-DGDI6XwH.js} +15195 -14809
- 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-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/package.json +1 -1
- package/src/api/remoteOrder/index.ts +20 -2
- package/src/locales/en-US.json +1 -0
- package/src/locales/th-TH.json +1 -0
- package/src/locales/zh-CN.json +2 -0
- package/src/stores/restaurant/index.ts +12 -7
- 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
|
@@ -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",
|
|
@@ -335,6 +336,7 @@ const k = {
|
|
|
335
336
|
auto: "自动",
|
|
336
337
|
autoIntegration: "自动对接",
|
|
337
338
|
autoIntegrationWarning: "自动配送对接不可用, 请联络我们的工作人员了解更多信息。 原因: {reason}",
|
|
339
|
+
autoIntegrationCountryNotSupport: "平台不支持当前国家/地区的自动配送对接。",
|
|
338
340
|
autoSendKitchen: "自动发送至厨房",
|
|
339
341
|
autoSendKitchenSublabel: "需要POS版本7或以上",
|
|
340
342
|
balance: "余额",
|
|
@@ -574,6 +576,7 @@ const k = {
|
|
|
574
576
|
DeliverySettingUpdated: "配送设置已更新",
|
|
575
577
|
selectPlatform: "选择平台",
|
|
576
578
|
platform: "平台",
|
|
579
|
+
rateLimitWarning: "每分钟只允许一次请求。请稍后再试",
|
|
577
580
|
discountRule: {
|
|
578
581
|
add: "添加折扣规则",
|
|
579
582
|
description: "定义折扣在账单中如何应用。仅适用于POS版本{minPosVersion}或更高版本。",
|
|
@@ -637,6 +640,7 @@ const k = {
|
|
|
637
640
|
auto: "อัตโนมัติ",
|
|
638
641
|
autoIntegration: "รวมอัตโนมัติ",
|
|
639
642
|
autoIntegrationWarning: "การรวมระบบการจัดส่งอัตโนมัติไม่พร้อมใช้งาน โปรดติดต่อเจ้าหน้าที่ของเราเพื่อขอข้อมูลเพิ่มเติม เหตุผล: {reason}",
|
|
643
|
+
autoIntegrationCountryNotSupport: "แพลตฟอร์มไม่รองรับการเชื่อมต่อการจัดส่งแบบไดนามิกในประเทศ/ภูมิภาคปัจจุบัน",
|
|
640
644
|
autoSendKitchen: "ส่งอัตโนมัติครัว",
|
|
641
645
|
autoSendKitchenSublabel: "ต้องใช้ POS เวอร์ชัน 7 ขึ้นไป",
|
|
642
646
|
balance: "ยอดคงเหลือ",
|
|
@@ -926,7 +930,7 @@ function V({
|
|
|
926
930
|
}
|
|
927
931
|
return e.map((o) => ({ lat: o.lat(), lng: o.lng() }));
|
|
928
932
|
}
|
|
929
|
-
function
|
|
933
|
+
function W(t) {
|
|
930
934
|
if (!t.length) return;
|
|
931
935
|
const { lat: i, lng: e } = y(t[0]), { maxLng: a, minLng: r, maxLat: o, minLat: c } = t.reduce((n, p) => {
|
|
932
936
|
const { lng: s, lat: l } = y(p);
|
|
@@ -977,7 +981,7 @@ class d {
|
|
|
977
981
|
}
|
|
978
982
|
d.CALLBACK_NAME = "_dk_google_maps_loader_cb";
|
|
979
983
|
var O = { googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4" };
|
|
980
|
-
const w = { class: "flex-1 overflow-auto" },
|
|
984
|
+
const w = { class: "flex-1 overflow-auto" }, _ = /* @__PURE__ */ S({
|
|
981
985
|
__name: "App",
|
|
982
986
|
setup(t) {
|
|
983
987
|
async function i() {
|
|
@@ -1005,22 +1009,22 @@ const w = { class: "flex-1 overflow-auto" }, W = /* @__PURE__ */ S({
|
|
|
1005
1009
|
{
|
|
1006
1010
|
path: u.KioskRoute,
|
|
1007
1011
|
name: "Kiosk",
|
|
1008
|
-
component: () => import("./KioskView-
|
|
1012
|
+
component: () => import("./KioskView-IUQTvUF8.js")
|
|
1009
1013
|
},
|
|
1010
1014
|
{
|
|
1011
1015
|
path: u.KioskDeviceRoute,
|
|
1012
1016
|
name: "Kiosk Device",
|
|
1013
|
-
component: () => import("./KioskDevicesView-
|
|
1017
|
+
component: () => import("./KioskDevicesView-CxZI99me.js")
|
|
1014
1018
|
},
|
|
1015
1019
|
{
|
|
1016
1020
|
path: u.KioskOrderSettingRoute,
|
|
1017
1021
|
name: "Kiosk Order Setting",
|
|
1018
|
-
component: () => import("./KioskSettingView-
|
|
1022
|
+
component: () => import("./KioskSettingView-CTDY8__s.js")
|
|
1019
1023
|
},
|
|
1020
1024
|
{
|
|
1021
1025
|
path: u.OrderSettingView,
|
|
1022
1026
|
name: "Order Setting View",
|
|
1023
|
-
component: () => import("./OrderSettingsView-
|
|
1027
|
+
component: () => import("./OrderSettingsView-VLE9yxNt.js")
|
|
1024
1028
|
}
|
|
1025
1029
|
], H = {
|
|
1026
1030
|
"en-US": C,
|
|
@@ -1028,12 +1032,12 @@ const w = { class: "flex-1 overflow-auto" }, W = /* @__PURE__ */ S({
|
|
|
1028
1032
|
"th-TH": T
|
|
1029
1033
|
};
|
|
1030
1034
|
export {
|
|
1031
|
-
|
|
1035
|
+
_,
|
|
1032
1036
|
y as a,
|
|
1033
1037
|
V as b,
|
|
1034
1038
|
B as c,
|
|
1035
1039
|
U as d,
|
|
1036
|
-
|
|
1040
|
+
W as e,
|
|
1037
1041
|
v as g,
|
|
1038
1042
|
H as i,
|
|
1039
1043
|
Q as r
|
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;
|
|
@@ -338,6 +339,7 @@ export declare const i18nMessages: {
|
|
|
338
339
|
auto: string;
|
|
339
340
|
autoIntegration: string;
|
|
340
341
|
autoIntegrationWarning: string;
|
|
342
|
+
autoIntegrationCountryNotSupport: string;
|
|
341
343
|
autoSendKitchen: string;
|
|
342
344
|
autoSendKitchenSublabel: string;
|
|
343
345
|
balance: string;
|
|
@@ -577,6 +579,7 @@ export declare const i18nMessages: {
|
|
|
577
579
|
DeliverySettingUpdated: string;
|
|
578
580
|
selectPlatform: string;
|
|
579
581
|
platform: string;
|
|
582
|
+
rateLimitWarning: string;
|
|
580
583
|
discountRule: {
|
|
581
584
|
add: string;
|
|
582
585
|
description: string;
|
|
@@ -641,6 +644,7 @@ export declare const i18nMessages: {
|
|
|
641
644
|
auto: string;
|
|
642
645
|
autoIntegration: string;
|
|
643
646
|
autoIntegrationWarning: string;
|
|
647
|
+
autoIntegrationCountryNotSupport: string;
|
|
644
648
|
autoSendKitchen: string;
|
|
645
649
|
autoSendKitchenSublabel: string;
|
|
646
650
|
balance: 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;
|
|
@@ -337,6 +338,7 @@ export declare const i18nMessages: {
|
|
|
337
338
|
auto: string;
|
|
338
339
|
autoIntegration: string;
|
|
339
340
|
autoIntegrationWarning: string;
|
|
341
|
+
autoIntegrationCountryNotSupport: string;
|
|
340
342
|
autoSendKitchen: string;
|
|
341
343
|
autoSendKitchenSublabel: string;
|
|
342
344
|
balance: string;
|
|
@@ -576,6 +578,7 @@ export declare const i18nMessages: {
|
|
|
576
578
|
DeliverySettingUpdated: string;
|
|
577
579
|
selectPlatform: string;
|
|
578
580
|
platform: string;
|
|
581
|
+
rateLimitWarning: string;
|
|
579
582
|
discountRule: {
|
|
580
583
|
add: string;
|
|
581
584
|
description: string;
|
|
@@ -640,6 +643,7 @@ export declare const i18nMessages: {
|
|
|
640
643
|
auto: string;
|
|
641
644
|
autoIntegration: string;
|
|
642
645
|
autoIntegrationWarning: string;
|
|
646
|
+
autoIntegrationCountryNotSupport: string;
|
|
643
647
|
autoSendKitchen: string;
|
|
644
648
|
autoSendKitchenSublabel: string;
|
|
645
649
|
balance: string;
|
|
@@ -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">>;
|
|
@@ -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;
|