@feedmepos/mf-order-setting 0.0.27 → 0.0.29

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 (77) hide show
  1. package/dist/{KioskDevicesView-AKvyDF3w.js → KioskDevicesView-Dvr4RUmt.js} +1 -1
  2. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-Cx8VMyNB.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-CJ-xAR8i.js} +2 -2
  3. package/dist/{KioskSettingView-equ5EIvU.js → KioskSettingView-DaJz8ZZi.js} +1 -1
  4. package/dist/{KioskView-CsE7BGtA.js → KioskView-v8Yl4x4R.js} +4 -4
  5. package/dist/OrderSettingsView-CN1PFwX_.js +74545 -0
  6. package/dist/{app-D-zQN9_E.js → app-d1Lptg6A.js} +123 -30
  7. package/dist/app.js +1 -1
  8. package/dist/{dayjs.min-CWQSmujV.js → dayjs.min-BLlPHZkl.js} +278 -267
  9. package/dist/frontend/mf-order/src/api/business/index.d.ts +5 -0
  10. package/dist/frontend/mf-order/src/api/effects/index.d.ts +3 -0
  11. package/dist/frontend/mf-order/src/api/index.d.ts +2 -0
  12. package/dist/frontend/mf-order/src/api/remoteOrder/index.d.ts +1 -0
  13. package/dist/frontend/mf-order/src/app.d.ts +93 -0
  14. package/dist/frontend/mf-order/src/main.d.ts +93 -0
  15. package/dist/frontend/mf-order/src/stores/business/index.d.ts +62 -0
  16. package/dist/frontend/mf-order/src/stores/menu/menu.d.ts +139 -125
  17. package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +81 -78
  18. package/dist/frontend/mf-order/src/views/all-orders/ReflowOrder.vue.d.ts +54 -52
  19. package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue.d.ts +4 -0
  20. package/dist/frontend/mf-order/src/views/order-settings/discount-rule/DiscountRuleSetting.vue.d.ts +2 -0
  21. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  22. package/dist/{index-BwrMcIf2.js → index-Cg9kSeyn.js} +2 -2
  23. package/dist/package/entity/booking/booking.do.d.ts +596 -551
  24. package/dist/package/entity/delivery/delivery.dto.d.ts +118 -109
  25. package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +342 -652
  26. package/dist/package/entity/incoming-order/incoming-order.do.d.ts +13778 -478
  27. package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +731 -1227
  28. package/dist/package/entity/incoming-order/incoming-order.enum.d.ts +1 -1
  29. package/dist/package/entity/index.d.ts +1 -0
  30. package/dist/package/entity/kiosk/kiosk.do.d.ts +32 -0
  31. package/dist/package/entity/kiosk/kiosk.dto.d.ts +14 -14
  32. package/dist/package/entity/kiosk/marketing/marketing.dto.d.ts +1469 -621
  33. package/dist/package/entity/member/member.dto.d.ts +14 -7
  34. package/dist/package/entity/order/effects/effect.dto.d.ts +154 -6
  35. package/dist/package/entity/order/order-item/order-item.dto.d.ts +87 -34
  36. package/dist/package/entity/order/order.do.d.ts +177 -572
  37. package/dist/package/entity/order/order.dto.d.ts +902 -1412
  38. package/dist/package/entity/order/pickup/pickup.dto.d.ts +37 -0
  39. package/dist/package/entity/order-platform/external/menu/external-menu.dto.d.ts +8 -0
  40. package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +8 -0
  41. package/dist/package/entity/order-platform/external/order/external-order.dto.d.ts +22 -3
  42. package/dist/package/entity/order-platform/external/order/external-order.enum.d.ts +1 -1
  43. package/dist/package/entity/order-platform/external/setting/external-setting.do.d.ts +5 -0
  44. package/dist/package/entity/order-platform/external/setting/external-setting.dto.d.ts +5 -0
  45. package/dist/package/entity/order-platform/external/zus/zus-menu.dto.d.ts +192 -0
  46. package/dist/package/entity/order-platform/foodpanda/foodpanda-order.do.d.ts +104 -0
  47. package/dist/package/entity/order-platform/foodpanda/foodpanda-order.dto.d.ts +152 -109
  48. package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.do.d.ts +3 -0
  49. package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.dto.d.ts +3 -0
  50. package/dist/package/entity/order-platform/foodpanda/foodpanda.enum.d.ts +2 -0
  51. package/dist/package/entity/order-platform/grabfood/grabfood-order.do.d.ts +139 -109
  52. package/dist/package/entity/order-platform/grabfood/grabfood-settings.do.d.ts +3 -0
  53. package/dist/package/entity/order-platform/grabfood/grabfood.dto.d.ts +152 -2
  54. package/dist/package/entity/order-platform/grabfood/grabfood.enum.d.ts +2 -0
  55. package/dist/package/entity/order-platform/order-platform.dto.d.ts +6 -3
  56. package/dist/package/entity/order-platform/shopeefood/shopeefood-order.do.d.ts +164 -109
  57. package/dist/package/entity/order-platform/shopeefood/shopeefood-order.dto.d.ts +22 -0
  58. package/dist/package/entity/order-platform/shopeefood/shopeefood-settings.do.d.ts +3 -0
  59. package/dist/package/entity/order-platform/shopeefood/shopeefood-settings.dto.d.ts +3 -0
  60. package/dist/package/entity/queue/queue.dto.d.ts +11446 -93
  61. package/dist/package/entity/user/user.do.d.ts +129 -18
  62. package/dist/queue.do-zk6sqriQ.js +125612 -0
  63. package/package.json +4 -3
  64. package/src/api/business/index.ts +16 -0
  65. package/src/api/effects/index.ts +7 -0
  66. package/src/api/index.ts +9 -1
  67. package/src/api/remoteOrder/index.ts +3 -0
  68. package/src/locales/en-US.json +31 -1
  69. package/src/locales/th-TH.json +31 -1
  70. package/src/locales/zh-CN.json +34 -1
  71. package/src/stores/business/index.ts +45 -0
  72. package/src/stores/restaurant/index.ts +3 -1
  73. package/src/views/order-settings/OrderSettingsView.vue +17 -5
  74. package/src/views/order-settings/delivery/integrated-delivery/GrabfoodSetting.vue +38 -1
  75. package/src/views/order-settings/discount-rule/DiscountRuleSetting.vue +452 -0
  76. package/dist/OrderSettingsView-BpLXyk_0.js +0 -49013
  77. package/dist/queue.do-F110q0_J.js +0 -100389
@@ -1,4 +1,4 @@
1
- import { ref as g, defineComponent as S, onMounted as f, resolveComponent as b, createElementBlock as h, openBlock as P, createVNode as D } from "vue";
1
+ import { ref as g, defineComponent as S, onMounted as f, resolveComponent as h, createElementBlock as b, openBlock as P, createVNode as D } from "vue";
2
2
  import "vue-router";
3
3
  const k = {
4
4
  accept: "accept",
@@ -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",
@@ -265,10 +270,35 @@ const k = {
265
270
  pickupCatalog: "Pickup catalog",
266
271
  DeliverySettingUpdated: "Delivery setting updated.",
267
272
  selectPlatform: "Select Platform",
268
- platform: "Platform"
273
+ platform: "Platform",
274
+ discountRule: {
275
+ add: "Add discount rule",
276
+ description: "Define how the discount is applied to the bill. Require POS version {minPosVersion} or above.",
277
+ effect: "Promotion/Vouchers",
278
+ effectSelected: "{count} selected",
279
+ effectUsedInOtherGroup: "Used in another rule",
280
+ forceSync: "Force sync",
281
+ latest: "Latest",
282
+ loadingRestaurants: "Loading restaurants",
283
+ maxTotalUses: "Max total uses",
284
+ maxTotalUsesSublabel: "Maximum times promotions/vouchers can be used per bill",
285
+ outdated: "Outdated",
286
+ restaurantName: "Restaurant Name",
287
+ restaurants: "Restaurants",
288
+ restaurantsDescription: "Sync status of the discount rule across all restaurants",
289
+ selectAllEffects: "Select all promotions/vouchers",
290
+ selectEffects: "Select promotions/vouchers",
291
+ status: "Status",
292
+ syncSuccess: "Discount rule setting synced to all restaurants",
293
+ title: "Discount Rule",
294
+ updateSuccess: "Discount rule setting updated",
295
+ version: "Version",
296
+ promotion: "Promotion",
297
+ voucher: "Voucher"
298
+ }
269
299
  }, C = {
270
300
  order: k
271
- }, I = {
301
+ }, A = {
272
302
  accept: "接受",
273
303
  acceptedPayment: "可接受付款方式",
274
304
  acceptQueue: "接受队列",
@@ -360,6 +390,7 @@ const k = {
360
390
  edit: "编辑",
361
391
  editOfflinePayment: "编辑线下支付方式",
362
392
  editPickupPoint: "编辑取货地点",
393
+ effectSelected: "已选择效果",
363
394
  enableServiceCharge: "启用服务费",
364
395
  end: "结束",
365
396
  enterAddress: "输入地址",
@@ -472,10 +503,17 @@ const k = {
472
503
  search: "搜索",
473
504
  searchRestaurant: "搜索餐厅",
474
505
  selectAllItemsIncludeCustomItem: "全部 (包括自定义商品)",
506
+ selectEffects: "选择效果",
507
+ selectAllEffects: "选择所有效果",
475
508
  selectItem: "请选择",
476
509
  selectRestaurant: "选择餐厅",
477
510
  selectServiceChargeType: "选择服务费类型",
478
511
  selectTable: "选择餐桌",
512
+ selfServeActivation: {
513
+ title: "自助激活对接",
514
+ subTitle: "第一次使用这个流程?点击此处",
515
+ learnMore: "了解更多"
516
+ },
479
517
  serve: "服务",
480
518
  serviceCharge: "服务费",
481
519
  serviceChargeRule: "* 服务费功能仅适用于POS版本4.0.0或更高版本。",
@@ -533,9 +571,34 @@ const k = {
533
571
  pickupCatalog: "自取目录",
534
572
  DeliverySettingUpdated: "配送设置已更新",
535
573
  selectPlatform: "选择平台",
536
- platform: "平台"
537
- }, A = {
538
- order: I
574
+ platform: "平台",
575
+ discountRule: {
576
+ add: "添加折扣规则",
577
+ description: "定义折扣在账单中如何应用。仅适用于POS版本{minPosVersion}或更高版本。",
578
+ effect: "促销/代金券",
579
+ effectSelected: "已选择{count}个",
580
+ effectUsedInOtherGroup: "已在其他规则中使用",
581
+ forceSync: "强制同步",
582
+ latest: "已发布",
583
+ loadingRestaurants: "正在加载餐厅",
584
+ maxTotalUses: "最大使用次数",
585
+ maxTotalUsesSublabel: "每张账单最多可使用促销/代金券次数",
586
+ outdated: "过时",
587
+ restaurantName: "餐厅名称",
588
+ restaurants: "餐厅",
589
+ restaurantsDescription: "所有餐厅的折扣规则同步状态",
590
+ selectAllEffects: "选择所有促销/代金券",
591
+ selectEffects: "选择促销/代金券",
592
+ status: "状态",
593
+ syncSuccess: "折扣规则设置已同步到所有餐厅",
594
+ title: "折扣规则",
595
+ updateSuccess: "折扣规则设置已更新",
596
+ version: "版本",
597
+ promotion: "促销",
598
+ voucher: "代金券"
599
+ }
600
+ }, I = {
601
+ order: A
539
602
  }, x = {
540
603
  accept: "ยอมรับ",
541
604
  acceptedPayment: "ยอมรับการชำระเงิน",
@@ -740,6 +803,11 @@ const k = {
740
803
  selectRestaurant: "เลือกร้านอาหาร",
741
804
  selectServiceChargeType: "เลือกประเภทค่าบริการ",
742
805
  selectTable: "เลือกโต๊ะ",
806
+ selfServeActivation: {
807
+ title: "เปิดใช้งานการบริการตนเอง",
808
+ subTitle: "เปิดใช้งานการบริการตนเองเพื่อให้ลูกค้าสามารถสั่งซื้อได้ด้วยตนเอง",
809
+ learnMore: "เรียนรู้เพิ่มเติม"
810
+ },
743
811
  serve: "เสิร์ฟ",
744
812
  serviceCharge: "ค่าบริการ",
745
813
  serviceChargeRule: "* ค่าบริการจำเป็นต้องใช้ POS เวอร์ชัน 4.0.0 ขึ้นไป",
@@ -796,11 +864,36 @@ const k = {
796
864
  pickupCatalog: "แคตตาล็อกการรับสินค้า",
797
865
  DeliverySettingUpdated: "อัปเดตการตั้งค่าการจัดส่งแล้ว",
798
866
  selectPlatform: "เลือกแพลตฟอร์ม",
799
- platform: "แพลตฟอร์ม"
867
+ platform: "แพลตฟอร์ม",
868
+ discountRule: {
869
+ add: "เพิ่มกฎส่วนลด",
870
+ description: "กำหนดวิธีการใช้ส่วนลดในบิล ใช้ได้กับ POS เวอร์ชัน {minPosVersion} หรือใหม่กว่าเท่านั้น",
871
+ effect: "โปรโมชั่น/บัตรกำนัล",
872
+ effectSelected: "เลือกแล้ว {count} รายการ",
873
+ effectUsedInOtherGroup: "ถูกใช้ในกฎอื่น",
874
+ forceSync: "ซิงค์ข้อมูลแบบบังคับ",
875
+ latest: "เผยแพร่ล่าสุด",
876
+ loadingRestaurants: "กำลังโหลดร้านอาหาร",
877
+ maxTotalUses: "จำนวนการใช้งานสูงสุด",
878
+ maxTotalUsesSublabel: "จำนวนครั้งสูงสุดที่สามารถใช้โปรโมชั่น/บัตรกำนัลต่อบิล",
879
+ outdated: "ล้าสมัย",
880
+ restaurantName: "ชื่อร้านอาหาร",
881
+ restaurants: "ร้านอาหาร",
882
+ restaurantsDescription: "สถานะการซิงค์กฎส่วนลดของทุกร้านอาหาร",
883
+ selectAllEffects: "เลือกโปรโมชั่น/บัตรกำนัลทั้งหมด",
884
+ selectEffects: "เลือกโปรโมชั่น/บัตรกำนัล",
885
+ status: "สถานะ",
886
+ syncSuccess: "ซิงค์กฎส่วนลดไปยังร้านอาหารทั้งหมดเรียบร้อยแล้ว",
887
+ title: "กฎส่วนลด",
888
+ updateSuccess: "อัปเดตกฎส่วนลดเรียบร้อยแล้ว",
889
+ version: "เวอร์ชัน",
890
+ promotion: "โปรโมชั่น",
891
+ voucher: "บัตรกำนัล"
892
+ }
800
893
  }, T = {
801
894
  order: x
802
895
  }, m = g(null), v = () => m.value;
803
- function w(t) {
896
+ function M(t) {
804
897
  m.value || (m.value = t);
805
898
  }
806
899
  const B = Object.freeze({
@@ -809,7 +902,7 @@ const B = Object.freeze({
809
902
  lng: 103.7413591
810
903
  }
811
904
  });
812
- function V(t) {
905
+ function U(t) {
813
906
  return [t.lng, t.lat];
814
907
  }
815
908
  function y(t) {
@@ -819,20 +912,20 @@ function y(t) {
819
912
  lng: t[0]
820
913
  };
821
914
  }
822
- function U({
915
+ function V({
823
916
  center: t,
824
917
  radius: i
825
918
  }) {
826
919
  const e = [], a = i / 6371 * (180 / Math.PI), r = a / Math.cos(t.lat * (Math.PI / 180));
827
920
  for (let o = 0; o < 361; o += 45) {
828
- const d = o * (Math.PI / 180), n = t.lng + r * Math.cos(d), p = t.lat + a * Math.sin(d), s = v(), l = new s.maps.LatLng(p, n, !0);
921
+ const c = o * (Math.PI / 180), n = t.lng + r * Math.cos(c), p = t.lat + a * Math.sin(c), s = v(), l = new s.maps.LatLng(p, n, !0);
829
922
  e.push(l);
830
923
  }
831
924
  return e.map((o) => ({ lat: o.lat(), lng: o.lng() }));
832
925
  }
833
926
  function _(t) {
834
927
  if (!t.length) return;
835
- const { lat: i, lng: e } = y(t[0]), { maxLng: a, minLng: r, maxLat: o, minLat: d } = t.reduce((n, p) => {
928
+ const { lat: i, lng: e } = y(t[0]), { maxLng: a, minLng: r, maxLat: o, minLat: c } = t.reduce((n, p) => {
836
929
  const { lng: s, lat: l } = y(p);
837
930
  return s > n.maxLng && (n.maxLng = s), s < n.minLng && (n.minLng = s), l > n.maxLat && (n.maxLat = l), l < n.minLat && (n.minLat = l), n;
838
931
  }, {
@@ -843,16 +936,16 @@ function _(t) {
843
936
  });
844
937
  return {
845
938
  lng: r + (a - r) / 2,
846
- lat: d + (o - d) / 2
939
+ lat: c + (o - c) / 2
847
940
  };
848
941
  }
849
- class c {
942
+ class d {
850
943
  constructor(i = null, e = {}) {
851
944
  if (this.apiKey = i, this.options = e, typeof window > "u")
852
945
  throw new Error("google-maps is supported only in browser environment");
853
946
  }
854
947
  load() {
855
- return typeof this.api < "u" ? Promise.resolve(this.api) : typeof this.loader < "u" ? this.loader : (window[c.CALLBACK_NAME] = () => {
948
+ return typeof this.api < "u" ? Promise.resolve(this.api) : typeof this.loader < "u" ? this.loader : (window[d.CALLBACK_NAME] = () => {
856
949
  if (this.api = window.google, typeof this.resolve > "u")
857
950
  throw new Error("Should not happen");
858
951
  this.resolve(this.api);
@@ -868,7 +961,7 @@ class c {
868
961
  }
869
962
  createUrl() {
870
963
  const i = [
871
- `callback=${c.CALLBACK_NAME}`
964
+ `callback=${d.CALLBACK_NAME}`
872
965
  ];
873
966
  this.apiKey && i.push(`key=${this.apiKey}`);
874
967
  for (let e in this.options)
@@ -879,23 +972,23 @@ class c {
879
972
  return `https://maps.googleapis.com/maps/api/js?${i.join("&")}`;
880
973
  }
881
974
  }
882
- c.CALLBACK_NAME = "_dk_google_maps_loader_cb";
883
- var M = { googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4" };
884
- const O = { class: "flex-1 overflow-auto" }, W = /* @__PURE__ */ S({
975
+ d.CALLBACK_NAME = "_dk_google_maps_loader_cb";
976
+ var O = { googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4" };
977
+ const w = { class: "flex-1 overflow-auto" }, W = /* @__PURE__ */ S({
885
978
  __name: "App",
886
979
  setup(t) {
887
980
  async function i() {
888
981
  if (v()) return;
889
- const a = await new c(M.googleMap, {
982
+ const a = await new d(O.googleMap, {
890
983
  libraries: ["places"]
891
984
  }).load();
892
- w(a);
985
+ M(a);
893
986
  }
894
987
  return f(async () => {
895
988
  await i();
896
989
  }), (e, a) => {
897
- const r = b("RouterView");
898
- return P(), h("div", O, [
990
+ const r = h("RouterView");
991
+ return P(), b("div", w, [
899
992
  D(r)
900
993
  ]);
901
994
  };
@@ -909,34 +1002,34 @@ const O = { class: "flex-1 overflow-auto" }, W = /* @__PURE__ */ S({
909
1002
  {
910
1003
  path: u.KioskRoute,
911
1004
  name: "Kiosk",
912
- component: () => import("./KioskView-CsE7BGtA.js")
1005
+ component: () => import("./KioskView-v8Yl4x4R.js")
913
1006
  },
914
1007
  {
915
1008
  path: u.KioskDeviceRoute,
916
1009
  name: "Kiosk Device",
917
- component: () => import("./KioskDevicesView-AKvyDF3w.js")
1010
+ component: () => import("./KioskDevicesView-Dvr4RUmt.js")
918
1011
  },
919
1012
  {
920
1013
  path: u.KioskOrderSettingRoute,
921
1014
  name: "Kiosk Order Setting",
922
- component: () => import("./KioskSettingView-equ5EIvU.js")
1015
+ component: () => import("./KioskSettingView-DaJz8ZZi.js")
923
1016
  },
924
1017
  {
925
1018
  path: u.OrderSettingView,
926
1019
  name: "Order Setting View",
927
- component: () => import("./OrderSettingsView-BpLXyk_0.js")
1020
+ component: () => import("./OrderSettingsView-CN1PFwX_.js")
928
1021
  }
929
1022
  ], H = {
930
1023
  "en-US": C,
931
- "zh-CN": A,
1024
+ "zh-CN": I,
932
1025
  "th-TH": T
933
1026
  };
934
1027
  export {
935
1028
  W as _,
936
1029
  y as a,
937
- U as b,
1030
+ V as b,
938
1031
  B as c,
939
- V as d,
1032
+ U as d,
940
1033
  _ as e,
941
1034
  v as g,
942
1035
  H as i,
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as a, i as e, r as o } from "./app-D-zQN9_E.js";
1
+ import { _ as a, i as e, r as o } from "./app-d1Lptg6A.js";
2
2
  export {
3
3
  a as FmApp,
4
4
  e as i18nMessages,