@feedmepos/mf-order-setting 0.0.70-prod → 0.0.71-prod

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 (27) hide show
  1. package/dist/{KioskDevicesView-6ADPwAez.js → KioskDevicesView-Bc8fuTjT.js} +1 -1
  2. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-BBoONzyB.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-jWYfHX2m.js} +3 -3
  3. package/dist/{KioskSettingView-BhqV4Y53.js → KioskSettingView-DEGMTl5F.js} +3 -3
  4. package/dist/{KioskView-D7BdhS6J.js → KioskView-McbIIcey.js} +4 -4
  5. package/dist/{OrderSettingsView-DVWn3z4D.js → OrderSettingsView-c2QeY1Fm.js} +10985 -10866
  6. package/dist/{app-CMmf-Znb.js → app-fjbo1GoG.js} +4 -4
  7. package/dist/app.js +1 -1
  8. package/dist/{dayjs.min-C7u6rs7Y.js → dayjs.min-i2OlzvqK.js} +1 -1
  9. package/dist/frontend/mf-order/src/api/remoteOrder/index.d.ts +5 -2
  10. package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +5 -2
  11. package/dist/frontend/mf-order/src/views/order-settings/delivery/DeliverySetting.vue.d.ts +2 -2
  12. package/dist/frontend/mf-order/src/views/order-settings/delivery/delivery.d.ts +1 -0
  13. package/dist/frontend/mf-order/src/views/order-settings/delivery/delivery.data.d.ts +3 -1
  14. package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/GoFoodSetting.vue.d.ts +46 -0
  15. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  16. package/dist/index-D51wVlZp.js +630 -0
  17. package/dist/{index-BXju8gUv.js → index-WVZqUcjG.js} +1 -1
  18. package/dist/{queue-transfer.dto-DTfr17-h.js → queue-transfer.dto-DWb04eFa.js} +1 -1
  19. package/package.json +1 -1
  20. package/src/api/remoteOrder/index.ts +14 -1
  21. package/src/stores/restaurant/index.ts +5 -0
  22. package/src/views/order-settings/delivery/DeliverySetting.vue +60 -2
  23. package/src/views/order-settings/delivery/delivery.data.ts +12 -1
  24. package/src/views/order-settings/delivery/delivery.ts +2 -1
  25. package/src/views/order-settings/delivery/integrated-delivery/GoFoodSetting.vue +101 -0
  26. package/vite.config.ts +1 -0
  27. package/dist/index-DJHJUdYS.js +0 -614
@@ -18619,22 +18619,22 @@ const Ty = { class: "flex-1 overflow-auto" }, Gy = /* @__PURE__ */ yc({
18619
18619
  {
18620
18620
  path: er.KioskRoute,
18621
18621
  name: "Kiosk",
18622
- component: () => import("./KioskView-D7BdhS6J.js")
18622
+ component: () => import("./KioskView-McbIIcey.js")
18623
18623
  },
18624
18624
  {
18625
18625
  path: er.KioskDeviceRoute,
18626
18626
  name: "Kiosk Device",
18627
- component: () => import("./KioskDevicesView-6ADPwAez.js")
18627
+ component: () => import("./KioskDevicesView-Bc8fuTjT.js")
18628
18628
  },
18629
18629
  {
18630
18630
  path: er.KioskOrderSettingRoute,
18631
18631
  name: "Kiosk Order Setting",
18632
- component: () => import("./KioskSettingView-BhqV4Y53.js")
18632
+ component: () => import("./KioskSettingView-DEGMTl5F.js")
18633
18633
  },
18634
18634
  {
18635
18635
  path: er.OrderSettingView,
18636
18636
  name: "Order Setting View",
18637
- component: () => import("./OrderSettingsView-DVWn3z4D.js")
18637
+ component: () => import("./OrderSettingsView-c2QeY1Fm.js")
18638
18638
  }
18639
18639
  ], qy = {
18640
18640
  "en-US": Tc,
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as e, p, q as r } from "./app-CMmf-Znb.js";
1
+ import { _ as e, p, q as r } from "./app-fjbo1GoG.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  p as i18nMessages,
@@ -1,4 +1,4 @@
1
- import { g as Q, c as K } from "./app-CMmf-Znb.js";
1
+ import { g as Q, c as K } from "./app-fjbo1GoG.js";
2
2
  var E = { exports: {} };
3
3
  (function(V, X) {
4
4
  (function(W, k) {
@@ -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;
@@ -7,6 +7,7 @@ export declare enum AUTO_INTEGRATION_CLIENT {
7
7
  grabfood = "grabfood",
8
8
  shopeefood = "shopeefood",
9
9
  deliveroo = "deliveroo",
10
+ gofood = "gofood",
10
11
  external = "external"
11
12
  }
12
13
  export interface 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;