@feedmepos/mf-order-setting 0.0.70-prod → 0.0.71-dev
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-6ADPwAez.js → KioskDevicesView-CP_cGMXE.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-BBoONzyB.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-CiNLqFw6.js} +3 -3
- package/dist/{KioskSettingView-BhqV4Y53.js → KioskSettingView-BiKYEjfe.js} +4 -4
- package/dist/{KioskView-D7BdhS6J.js → KioskView-BYxPrI7N.js} +4 -4
- package/dist/{OrderSettingsView-DVWn3z4D.js → OrderSettingsView-C7Y-_y5U.js} +10985 -10866
- package/dist/{app-CMmf-Znb.js → app-BN02cB5o.js} +213 -213
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-C7u6rs7Y.js → dayjs.min-Bml-FvS7.js} +1 -1
- package/dist/frontend/mf-order/src/api/remoteOrder/index.d.ts +5 -2
- 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 +2 -2
- package/dist/frontend/mf-order/src/views/order-settings/delivery/delivery.d.ts +1 -0
- 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/GoFoodSetting.vue.d.ts +46 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-BXju8gUv.js → index-BlKeAWPk.js} +1 -1
- package/dist/index-DZA8A0m4.js +630 -0
- package/dist/{queue-transfer.dto-DTfr17-h.js → queue-transfer.dto-C7nRZOZH.js} +1 -1
- package/package.json +1 -1
- package/src/api/remoteOrder/index.ts +14 -1
- package/src/stores/restaurant/index.ts +5 -0
- package/src/views/order-settings/delivery/DeliverySetting.vue +60 -2
- package/src/views/order-settings/delivery/delivery.data.ts +12 -1
- package/src/views/order-settings/delivery/delivery.ts +2 -1
- package/src/views/order-settings/delivery/integrated-delivery/GoFoodSetting.vue +101 -0
- package/vite.config.ts +1 -0
- package/dist/index-DJHJUdYS.js +0 -614
package/dist/app.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DeliveryCompany, LinkedDeliveryDoc } from '../../views/order-settings/delivery/delivery';
|
|
2
2
|
import { FdoLinkedDelivery, FdoRestaurant, FdoRestaurantFeedmeDelivery, FdoRestaurantInHouseDelivery } from '@feedmepos/core/entity';
|
|
3
|
-
import type { FdoDeliverooSettings, FdoExternalSetting, FdoFoodpandaOrderOutput, FdoFoodpandaSettings, FdoGrabfoodOrderOutput, FdoGrabfoodSettings, FdoShopeeFoodOrder, FdoShopeeFoodOrderOutput, FdoShopeeFoodSettings, FdtoGetOrderReq } from '@entity';
|
|
4
|
-
type DeliveryCompanyUrl = 'foodpanda' | 'grabfood' | 'shopeefood' | 'deliveroo' | 'external';
|
|
3
|
+
import type { FdoDeliverooSettings, FdoExternalSetting, FdoFoodpandaOrderOutput, FdoFoodpandaSettings, FdoGoFoodSettings, FdoGrabfoodOrderOutput, FdoGrabfoodSettings, FdoShopeeFoodOrder, FdoShopeeFoodOrderOutput, FdoShopeeFoodSettings, FdtoGetOrderReq } from '@entity';
|
|
4
|
+
type DeliveryCompanyUrl = 'foodpanda' | 'grabfood' | 'shopeefood' | 'deliveroo' | 'gofood' | '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
|
+
readGofood(restaurantId: string): Promise<FdoGoFoodSettings | null>;
|
|
34
|
+
updateGofood(restaurantId: string, dto: FdoGoFoodSettings): Promise<FdoGoFoodSettings | null>;
|
|
35
|
+
syncGofoodMenu(restaurantId: string): Promise<FdoGoFoodSettings>;
|
|
33
36
|
updateDeliveroo(restaurantId: string, dto: FdoDeliverooSettings): Promise<FdoRestaurant>;
|
|
34
37
|
readDeliveroo(restaurantId: string): Promise<FdoDeliverooSettings | null>;
|
|
35
38
|
syncDeliverooMernu(merchantID: string): Promise<FdoDeliverooSettings>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type RestaurantSettingDoc } from '@/api/restaurant-setting';
|
|
2
2
|
import { FdoRestaurantDineIn, FdoRestaurantDriveThru, FdoRestaurantFeedmeDelivery, FdoRestaurantInHouseDelivery, FdoRestaurantPickup, FdoServiceChargeSetting, type FdoAddress, type FdoProfile, FdoRestaurant } from '@feedmepos/core/entity';
|
|
3
|
-
import { FdoDeliverooSettings, FdoGrabfoodSettings, FdoExternalSetting, FdoFoodpandaSettings, FdoShopeeFoodSettings } from '@entity';
|
|
3
|
+
import { FdoDeliverooSettings, FdoGrabfoodSettings, FdoExternalSetting, FdoFoodpandaSettings, FdoGoFoodSettings, FdoShopeeFoodSettings } from '@entity';
|
|
4
4
|
export interface Profile extends FdoProfile {
|
|
5
5
|
address: Address;
|
|
6
6
|
}
|
|
@@ -378,6 +378,7 @@ export declare const useRestaurantStore: import("pinia").StoreDefinition<"restau
|
|
|
378
378
|
updateIntegratedFoodpandaDelivery: (restaurantId: string, dto: FdoFoodpandaSettings) => Promise<void>;
|
|
379
379
|
updateIntegratedGrabfoodDelivery: (restaurantId: string, dto: FdoGrabfoodSettings) => Promise<void>;
|
|
380
380
|
updateIntegratedShopeefoodDelivery: (restaurantId: string, dto: FdoShopeeFoodSettings) => Promise<void>;
|
|
381
|
+
updateIntegratedGofoodDelivery: (restaurantId: string, dto: FdoGoFoodSettings) => Promise<void>;
|
|
381
382
|
updateIntegratedDeliverooDelivery: (restaurantId: string, dto: FdoDeliverooSettings) => Promise<void>;
|
|
382
383
|
updateExternalDelivery: (restaurantId: string, dto: FdoExternalSetting) => Promise<void>;
|
|
383
384
|
getRestaurantEPayment: () => true | string;
|
|
@@ -740,6 +741,7 @@ export declare const useRestaurantStore: import("pinia").StoreDefinition<"restau
|
|
|
740
741
|
updateIntegratedFoodpandaDelivery: (restaurantId: string, dto: FdoFoodpandaSettings) => Promise<void>;
|
|
741
742
|
updateIntegratedGrabfoodDelivery: (restaurantId: string, dto: FdoGrabfoodSettings) => Promise<void>;
|
|
742
743
|
updateIntegratedShopeefoodDelivery: (restaurantId: string, dto: FdoShopeeFoodSettings) => Promise<void>;
|
|
744
|
+
updateIntegratedGofoodDelivery: (restaurantId: string, dto: FdoGoFoodSettings) => Promise<void>;
|
|
743
745
|
updateIntegratedDeliverooDelivery: (restaurantId: string, dto: FdoDeliverooSettings) => Promise<void>;
|
|
744
746
|
updateExternalDelivery: (restaurantId: string, dto: FdoExternalSetting) => Promise<void>;
|
|
745
747
|
getRestaurantEPayment: () => true | string;
|
|
@@ -1102,7 +1104,8 @@ export declare const useRestaurantStore: import("pinia").StoreDefinition<"restau
|
|
|
1102
1104
|
updateIntegratedFoodpandaDelivery: (restaurantId: string, dto: FdoFoodpandaSettings) => Promise<void>;
|
|
1103
1105
|
updateIntegratedGrabfoodDelivery: (restaurantId: string, dto: FdoGrabfoodSettings) => Promise<void>;
|
|
1104
1106
|
updateIntegratedShopeefoodDelivery: (restaurantId: string, dto: FdoShopeeFoodSettings) => Promise<void>;
|
|
1107
|
+
updateIntegratedGofoodDelivery: (restaurantId: string, dto: FdoGoFoodSettings) => Promise<void>;
|
|
1105
1108
|
updateIntegratedDeliverooDelivery: (restaurantId: string, dto: FdoDeliverooSettings) => Promise<void>;
|
|
1106
1109
|
updateExternalDelivery: (restaurantId: string, dto: FdoExternalSetting) => Promise<void>;
|
|
1107
1110
|
getRestaurantEPayment: () => true | string;
|
|
1108
|
-
}, "readRestaurantSetting" | "selectRestaurant" | "updateServiceCharge" | "updateDineInSetting" | "updatePickupSetting" | "updateDriveThruSetting" | "updateInhouseDelivery" | "updateFeedmeDelivery" | "updateIntegratedFoodpandaDelivery" | "updateIntegratedGrabfoodDelivery" | "updateIntegratedShopeefoodDelivery" | "updateIntegratedDeliverooDelivery" | "updateExternalDelivery" | "getRestaurantEPayment">>;
|
|
1111
|
+
}, "readRestaurantSetting" | "selectRestaurant" | "updateServiceCharge" | "updateDineInSetting" | "updatePickupSetting" | "updateDriveThruSetting" | "updateInhouseDelivery" | "updateFeedmeDelivery" | "updateIntegratedFoodpandaDelivery" | "updateIntegratedGrabfoodDelivery" | "updateIntegratedShopeefoodDelivery" | "updateIntegratedGofoodDelivery" | "updateIntegratedDeliverooDelivery" | "updateExternalDelivery" | "getRestaurantEPayment">>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FdoFoodpandaSettings, FdoExternalSetting } from '@entity';
|
|
2
2
|
import type { FdoRestaurantFeedmeDelivery, FdoRestaurantInHouseDelivery } from '@feedmepos/core/entity';
|
|
3
|
-
import { FdoGrabfoodSettings, FdoShopeeFoodSettings } from '@entity';
|
|
3
|
+
import { FdoGoFoodSettings, FdoGrabfoodSettings, FdoShopeeFoodSettings } from '@entity';
|
|
4
4
|
import { type DeliveryCompany, type LinkedDeliveryDoc } from './delivery';
|
|
5
5
|
export interface DeliveryRow {
|
|
6
6
|
id: string;
|
|
@@ -10,7 +10,7 @@ export interface DeliveryRow {
|
|
|
10
10
|
paymentType: string;
|
|
11
11
|
status: string[];
|
|
12
12
|
}
|
|
13
|
-
type IntegratedDeliveryCompany = FdoRestaurantInHouseDelivery | FdoRestaurantFeedmeDelivery | FdoFoodpandaSettings | FdoGrabfoodSettings | FdoShopeeFoodSettings | FdoExternalSetting;
|
|
13
|
+
type IntegratedDeliveryCompany = FdoRestaurantInHouseDelivery | FdoRestaurantFeedmeDelivery | FdoFoodpandaSettings | FdoGrabfoodSettings | FdoShopeeFoodSettings | FdoGoFoodSettings | FdoExternalSetting;
|
|
14
14
|
export interface IntegratedDeliveryRow extends DeliveryRow {
|
|
15
15
|
setting: IntegratedDeliveryCompany;
|
|
16
16
|
company?: DeliveryCompany;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FdoDeliverooSettings, FdoExternalSetting, FdoGrabfoodSettings, FdoShopeeFoodSettings, FdoFoodpandaSettings } from '@entity';
|
|
1
|
+
import type { FdoDeliverooSettings, FdoExternalSetting, FdoGrabfoodSettings, FdoShopeeFoodSettings, FdoFoodpandaSettings, FdoGoFoodSettings } from '@entity';
|
|
2
2
|
import { FdoRestaurantFeedmeDelivery, FdoRestaurantInHouseDelivery } from '@feedmepos/core/entity';
|
|
3
3
|
declare function initInhouseDelivery(): FdoRestaurantInHouseDelivery;
|
|
4
4
|
declare function initFeedmeExpress(): FdoRestaurantFeedmeDelivery;
|
|
@@ -6,6 +6,7 @@ export declare function initFoodpandaDelivery(): FdoFoodpandaSettings;
|
|
|
6
6
|
declare function initGrabfoodDelivery(): FdoGrabfoodSettings;
|
|
7
7
|
declare function initShopeefoodDelivery(): FdoShopeeFoodSettings;
|
|
8
8
|
declare function initDeliverooDelivery(): FdoDeliverooSettings;
|
|
9
|
+
declare function initGoFoodDelivery(): FdoGoFoodSettings;
|
|
9
10
|
declare function initExternalDelivery(): FdoExternalSetting;
|
|
10
11
|
declare const _default: {
|
|
11
12
|
initInhouseDelivery: typeof initInhouseDelivery;
|
|
@@ -14,6 +15,7 @@ declare const _default: {
|
|
|
14
15
|
initGrabfoodDelivery: typeof initGrabfoodDelivery;
|
|
15
16
|
initShopeefoodDelivery: typeof initShopeefoodDelivery;
|
|
16
17
|
initDeliverooDelivery: typeof initDeliverooDelivery;
|
|
18
|
+
initGoFoodDelivery: typeof initGoFoodDelivery;
|
|
17
19
|
initExternalDelivery: typeof initExternalDelivery;
|
|
18
20
|
};
|
|
19
21
|
export default _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { FdoLinkedDelivery } from '@feedmepos/core/entity';
|
|
2
|
+
import { FdoGoFoodSettings } from '@entity';
|
|
3
|
+
import { type PropType } from 'vue';
|
|
4
|
+
import type { DeliveryCompany } from '../delivery';
|
|
5
|
+
export interface GoFoodDeliveryData {
|
|
6
|
+
manual: FdoLinkedDelivery | null;
|
|
7
|
+
integrated: FdoGoFoodSettings;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
10
|
+
initialValue: {
|
|
11
|
+
type: PropType<GoFoodDeliveryData>;
|
|
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<GoFoodDeliveryData>;
|
|
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;
|