@feedmepos/mf-order-setting 0.0.28 → 0.0.30

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 (28) hide show
  1. package/dist/{KioskDevicesView-BgXkmJ7v.js → KioskDevicesView-Dvr4RUmt.js} +1 -1
  2. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-DZT0BuUN.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-CJ-xAR8i.js} +2 -2
  3. package/dist/{KioskSettingView-DyX3Wv_2.js → KioskSettingView-DaJz8ZZi.js} +1 -1
  4. package/dist/{KioskView-Bgff7QPc.js → KioskView-v8Yl4x4R.js} +4 -4
  5. package/dist/{OrderSettingsView-C63s4uCD.js → OrderSettingsView-DT9krR3_.js} +10916 -10702
  6. package/dist/{app-Dp79Gu_F.js → app-Dhx_DQ6c.js} +36 -15
  7. package/dist/app.js +1 -1
  8. package/dist/{dayjs.min-B2ZkfNUH.js → dayjs.min-BLlPHZkl.js} +1 -1
  9. package/dist/frontend/mf-order/src/api/remoteOrder/index.d.ts +1 -0
  10. package/dist/frontend/mf-order/src/app.d.ts +21 -0
  11. package/dist/frontend/mf-order/src/main.d.ts +21 -0
  12. package/dist/frontend/mf-order/src/stores/menu/menu.d.ts +1 -0
  13. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  14. package/dist/{index-DzQn92Tp.js → index-Cg9kSeyn.js} +2 -2
  15. package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +3 -0
  16. package/dist/package/entity/order/pickup/pickup.dto.d.ts +37 -0
  17. package/dist/package/entity/order-platform/grabfood/grabfood.dto.d.ts +40 -0
  18. package/dist/package/entity/order-platform/grabfood/grabfood.enum.d.ts +2 -0
  19. package/dist/package/entity/queue/queue.dto.d.ts +11446 -93
  20. package/dist/package/entity/user/user.do.d.ts +129 -18
  21. package/dist/{queue.do-BUtcyDk3.js → queue.do-zk6sqriQ.js} +4543 -4509
  22. package/package.json +2 -2
  23. package/src/api/remoteOrder/index.ts +3 -0
  24. package/src/locales/en-US.json +8 -1
  25. package/src/locales/th-TH.json +8 -1
  26. package/src/locales/zh-CN.json +8 -1
  27. package/src/views/order-settings/delivery/integrated-delivery/GrabfoodSetting.vue +38 -1
  28. package/src/views/order-settings/discount-rule/DiscountRuleSetting.vue +47 -24
@@ -208,6 +208,11 @@ const k = {
208
208
  selectRestaurant: "Select Restaurant",
209
209
  selectServiceChargeType: "Select service charge type",
210
210
  selectTable: "Select table",
211
+ selfServeActivation: {
212
+ title: "Self Serve Activation",
213
+ subTitle: "New to the flow? Click here to",
214
+ learnMore: "learn more"
215
+ },
211
216
  serve: "serve",
212
217
  serviceCharge: "Service Charge",
213
218
  serviceChargeRule: "* Service Charge required POS version 4.0.0 or higher",
@@ -287,11 +292,13 @@ const k = {
287
292
  syncSuccess: "Discount rule setting synced to all restaurants",
288
293
  title: "Discount Rule",
289
294
  updateSuccess: "Discount rule setting updated",
290
- version: "Version"
295
+ version: "Version",
296
+ promotion: "Promotion",
297
+ voucher: "Voucher"
291
298
  }
292
299
  }, C = {
293
300
  order: k
294
- }, I = {
301
+ }, A = {
295
302
  accept: "接受",
296
303
  acceptedPayment: "可接受付款方式",
297
304
  acceptQueue: "接受队列",
@@ -502,6 +509,11 @@ const k = {
502
509
  selectRestaurant: "选择餐厅",
503
510
  selectServiceChargeType: "选择服务费类型",
504
511
  selectTable: "选择餐桌",
512
+ selfServeActivation: {
513
+ title: "自助激活对接",
514
+ subTitle: "第一次使用这个流程?点击此处",
515
+ learnMore: "了解更多"
516
+ },
505
517
  serve: "服务",
506
518
  serviceCharge: "服务费",
507
519
  serviceChargeRule: "* 服务费功能仅适用于POS版本4.0.0或更高版本。",
@@ -581,10 +593,12 @@ const k = {
581
593
  syncSuccess: "折扣规则设置已同步到所有餐厅",
582
594
  title: "折扣规则",
583
595
  updateSuccess: "折扣规则设置已更新",
584
- version: "版本"
596
+ version: "版本",
597
+ promotion: "促销",
598
+ voucher: "代金券"
585
599
  }
586
- }, A = {
587
- order: I
600
+ }, I = {
601
+ order: A
588
602
  }, x = {
589
603
  accept: "ยอมรับ",
590
604
  acceptedPayment: "ยอมรับการชำระเงิน",
@@ -789,6 +803,11 @@ const k = {
789
803
  selectRestaurant: "เลือกร้านอาหาร",
790
804
  selectServiceChargeType: "เลือกประเภทค่าบริการ",
791
805
  selectTable: "เลือกโต๊ะ",
806
+ selfServeActivation: {
807
+ title: "เปิดใช้งานการบริการตนเอง",
808
+ subTitle: "เปิดใช้งานการบริการตนเองเพื่อให้ลูกค้าสามารถสั่งซื้อได้ด้วยตนเอง",
809
+ learnMore: "เรียนรู้เพิ่มเติม"
810
+ },
792
811
  serve: "เสิร์ฟ",
793
812
  serviceCharge: "ค่าบริการ",
794
813
  serviceChargeRule: "* ค่าบริการจำเป็นต้องใช้ POS เวอร์ชัน 4.0.0 ขึ้นไป",
@@ -867,12 +886,14 @@ const k = {
867
886
  syncSuccess: "ซิงค์กฎส่วนลดไปยังร้านอาหารทั้งหมดเรียบร้อยแล้ว",
868
887
  title: "กฎส่วนลด",
869
888
  updateSuccess: "อัปเดตกฎส่วนลดเรียบร้อยแล้ว",
870
- version: "เวอร์ชัน"
889
+ version: "เวอร์ชัน",
890
+ promotion: "โปรโมชั่น",
891
+ voucher: "บัตรกำนัล"
871
892
  }
872
893
  }, T = {
873
894
  order: x
874
895
  }, m = g(null), v = () => m.value;
875
- function O(t) {
896
+ function M(t) {
876
897
  m.value || (m.value = t);
877
898
  }
878
899
  const B = Object.freeze({
@@ -952,16 +973,16 @@ class d {
952
973
  }
953
974
  }
954
975
  d.CALLBACK_NAME = "_dk_google_maps_loader_cb";
955
- var M = { googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4" };
976
+ var O = { googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4" };
956
977
  const w = { class: "flex-1 overflow-auto" }, W = /* @__PURE__ */ S({
957
978
  __name: "App",
958
979
  setup(t) {
959
980
  async function i() {
960
981
  if (v()) return;
961
- const a = await new d(M.googleMap, {
982
+ const a = await new d(O.googleMap, {
962
983
  libraries: ["places"]
963
984
  }).load();
964
- O(a);
985
+ M(a);
965
986
  }
966
987
  return f(async () => {
967
988
  await i();
@@ -981,26 +1002,26 @@ const w = { class: "flex-1 overflow-auto" }, W = /* @__PURE__ */ S({
981
1002
  {
982
1003
  path: u.KioskRoute,
983
1004
  name: "Kiosk",
984
- component: () => import("./KioskView-Bgff7QPc.js")
1005
+ component: () => import("./KioskView-v8Yl4x4R.js")
985
1006
  },
986
1007
  {
987
1008
  path: u.KioskDeviceRoute,
988
1009
  name: "Kiosk Device",
989
- component: () => import("./KioskDevicesView-BgXkmJ7v.js")
1010
+ component: () => import("./KioskDevicesView-Dvr4RUmt.js")
990
1011
  },
991
1012
  {
992
1013
  path: u.KioskOrderSettingRoute,
993
1014
  name: "Kiosk Order Setting",
994
- component: () => import("./KioskSettingView-DyX3Wv_2.js")
1015
+ component: () => import("./KioskSettingView-DaJz8ZZi.js")
995
1016
  },
996
1017
  {
997
1018
  path: u.OrderSettingView,
998
1019
  name: "Order Setting View",
999
- component: () => import("./OrderSettingsView-C63s4uCD.js")
1020
+ component: () => import("./OrderSettingsView-DT9krR3_.js")
1000
1021
  }
1001
1022
  ], H = {
1002
1023
  "en-US": C,
1003
- "zh-CN": A,
1024
+ "zh-CN": I,
1004
1025
  "th-TH": T
1005
1026
  };
1006
1027
  export {
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as a, i as e, r as o } from "./app-Dp79Gu_F.js";
1
+ import { _ as a, i as e, r as o } from "./app-Dhx_DQ6c.js";
2
2
  export {
3
3
  a as FmApp,
4
4
  e as i18nMessages,
@@ -1,4 +1,4 @@
1
- import { g as nt, r as kt, m as Dt } from "./queue.do-BUtcyDk3.js";
1
+ import { g as nt, r as kt, m as Dt } from "./queue.do-zk6sqriQ.js";
2
2
  import { useCoreStore as Q } from "@feedmepos/mf-common";
3
3
  function rt(e, t) {
4
4
  return function() {
@@ -23,6 +23,7 @@ export declare const remoteOrderApi: {
23
23
  rejectGrabfoodOrders(orderId: string): Promise<FdoGrabfoodOrderOutput>;
24
24
  updateGrabfood(restaurantId: string, dto: FdoGrabfoodSettings): Promise<FdoRestaurant>;
25
25
  syncGrabfoodMenu(merchantId: string): Promise<FdoGrabfoodSettings>;
26
+ startSelfServeFlow(restaurantId: string): Promise<string | null>;
26
27
  readShopeefood(restaurantId: string): Promise<FdoShopeeFoodSettings | null>;
27
28
  readShopeefoodOrders(req: FdtoGetOrderReq): Promise<(FdoShopeeFoodOrderOutput & FdoShopeeFoodOrder)[]>;
28
29
  reflowShopeefoodOrders(orderId: string): Promise<FdoShopeeFoodOrderOutput>;
@@ -210,6 +210,11 @@ export declare const i18nMessages: {
210
210
  selectRestaurant: string;
211
211
  selectServiceChargeType: string;
212
212
  selectTable: string;
213
+ selfServeActivation: {
214
+ title: string;
215
+ subTitle: string;
216
+ learnMore: string;
217
+ };
213
218
  serve: string;
214
219
  serviceCharge: string;
215
220
  serviceChargeRule: string;
@@ -290,6 +295,8 @@ export declare const i18nMessages: {
290
295
  title: string;
291
296
  updateSuccess: string;
292
297
  version: string;
298
+ promotion: string;
299
+ voucher: string;
293
300
  };
294
301
  };
295
302
  };
@@ -505,6 +512,11 @@ export declare const i18nMessages: {
505
512
  selectRestaurant: string;
506
513
  selectServiceChargeType: string;
507
514
  selectTable: string;
515
+ selfServeActivation: {
516
+ title: string;
517
+ subTitle: string;
518
+ learnMore: string;
519
+ };
508
520
  serve: string;
509
521
  serviceCharge: string;
510
522
  serviceChargeRule: string;
@@ -585,6 +597,8 @@ export declare const i18nMessages: {
585
597
  title: string;
586
598
  updateSuccess: string;
587
599
  version: string;
600
+ promotion: string;
601
+ voucher: string;
588
602
  };
589
603
  };
590
604
  };
@@ -793,6 +807,11 @@ export declare const i18nMessages: {
793
807
  selectRestaurant: string;
794
808
  selectServiceChargeType: string;
795
809
  selectTable: string;
810
+ selfServeActivation: {
811
+ title: string;
812
+ subTitle: string;
813
+ learnMore: string;
814
+ };
796
815
  serve: string;
797
816
  serviceCharge: string;
798
817
  serviceChargeRule: string;
@@ -872,6 +891,8 @@ export declare const i18nMessages: {
872
891
  title: string;
873
892
  updateSuccess: string;
874
893
  version: string;
894
+ promotion: string;
895
+ voucher: string;
875
896
  };
876
897
  };
877
898
  };
@@ -209,6 +209,11 @@ export declare const i18nMessages: {
209
209
  selectRestaurant: string;
210
210
  selectServiceChargeType: string;
211
211
  selectTable: string;
212
+ selfServeActivation: {
213
+ title: string;
214
+ subTitle: string;
215
+ learnMore: string;
216
+ };
212
217
  serve: string;
213
218
  serviceCharge: string;
214
219
  serviceChargeRule: string;
@@ -289,6 +294,8 @@ export declare const i18nMessages: {
289
294
  title: string;
290
295
  updateSuccess: string;
291
296
  version: string;
297
+ promotion: string;
298
+ voucher: string;
292
299
  };
293
300
  };
294
301
  };
@@ -504,6 +511,11 @@ export declare const i18nMessages: {
504
511
  selectRestaurant: string;
505
512
  selectServiceChargeType: string;
506
513
  selectTable: string;
514
+ selfServeActivation: {
515
+ title: string;
516
+ subTitle: string;
517
+ learnMore: string;
518
+ };
507
519
  serve: string;
508
520
  serviceCharge: string;
509
521
  serviceChargeRule: string;
@@ -584,6 +596,8 @@ export declare const i18nMessages: {
584
596
  title: string;
585
597
  updateSuccess: string;
586
598
  version: string;
599
+ promotion: string;
600
+ voucher: string;
587
601
  };
588
602
  };
589
603
  };
@@ -792,6 +806,11 @@ export declare const i18nMessages: {
792
806
  selectRestaurant: string;
793
807
  selectServiceChargeType: string;
794
808
  selectTable: string;
809
+ selfServeActivation: {
810
+ title: string;
811
+ subTitle: string;
812
+ learnMore: string;
813
+ };
795
814
  serve: string;
796
815
  serviceCharge: string;
797
816
  serviceChargeRule: string;
@@ -871,6 +890,8 @@ export declare const i18nMessages: {
871
890
  title: string;
872
891
  updateSuccess: string;
873
892
  version: string;
893
+ promotion: string;
894
+ voucher: string;
874
895
  };
875
896
  };
876
897
  };
@@ -63,6 +63,7 @@ export declare const useMenuStore: import("pinia").StoreDefinition<"menu", MenuS
63
63
  _id: string;
64
64
  modules: {
65
65
  subCategory?: {
66
+ position?: number | null | undefined;
66
67
  _id: string;
67
68
  name: string;
68
69
  }[] | null | undefined;