@feedmepos/mf-order-setting 0.0.36 → 0.0.38

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 (51) hide show
  1. package/dist/{KioskDevicesView-wPKewwAS.js → KioskDevicesView-DoTQRyXe.js} +1 -1
  2. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-BCJPU2la.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-DB0dvpBG.js} +2 -2
  3. package/dist/{KioskSettingView-CV54HpY2.js → KioskSettingView-DRpVR7Ij.js} +1 -1
  4. package/dist/{KioskView-B4mggCt0.js → KioskView-4-s6RwC6.js} +7 -7
  5. package/dist/OrderSettingsView-BqgGXVhY.js +76752 -0
  6. package/dist/{app-D4exdzAx.js → app-BbOgWoeI.js} +33 -18
  7. package/dist/app.js +1 -1
  8. package/dist/{dayjs.min-C_sCJHuD.js → dayjs.min-COLd3dVw.js} +1 -1
  9. package/dist/frontend/mf-order/src/api/menu/index.d.ts +4 -0
  10. package/dist/frontend/mf-order/src/app.d.ts +15 -0
  11. package/dist/frontend/mf-order/src/helpers/order-setting.d.ts +6 -0
  12. package/dist/frontend/mf-order/src/main.d.ts +15 -0
  13. package/dist/frontend/mf-order/src/stores/menu/menu.d.ts +13 -4
  14. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +27 -0
  15. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  16. package/dist/{index-Cvhc_ltu.js → index-BewBuJGi.js} +2 -2
  17. package/dist/menu.dto-Bf0Evx6J.js +127224 -0
  18. package/dist/package/entity/food-court/order.dto.d.ts +1952 -1952
  19. package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +30 -30
  20. package/dist/package/entity/incoming-order/incoming-order.do.d.ts +24 -24
  21. package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +64 -64
  22. package/dist/package/entity/order/menu/menu.dto.d.ts +10 -0
  23. package/dist/package/entity/order/order-item/order-item.dto.d.ts +48 -48
  24. package/dist/package/entity/order/order.do.d.ts +20 -8
  25. package/dist/package/entity/order/order.dto.d.ts +3466 -3350
  26. package/dist/package/entity/order/payment/payment.dto.d.ts +1702 -1702
  27. package/dist/package/entity/order-platform/shopeefood/shopeefood-order.do.d.ts +33 -0
  28. package/dist/package/entity/order-platform/shopeefood/shopeefood-order.dto.d.ts +18 -0
  29. package/dist/package/entity/order-setting/order-setting.do.d.ts +168 -0
  30. package/dist/package/entity/order-setting/order-setting.dto.d.ts +134 -0
  31. package/dist/package/entity/order-setting/queue/queue.do.d.ts +95 -1613
  32. package/dist/package/entity/order-setting/queue/queue.dto.d.ts +62 -110
  33. package/dist/package/entity/order-setting/sequence/sequence.do.d.ts +72 -0
  34. package/dist/package/entity/order-setting/sequence/sequence.dto.d.ts +101 -0
  35. package/dist/package/entity/payment/payment.dto.d.ts +3 -3
  36. package/dist/package/entity/queue/queue.do.d.ts +18 -6
  37. package/dist/package/entity/queue/queue.dto.d.ts +922 -908
  38. package/dist/package/entity/restaurant/restaurant.dto.d.ts +363 -20
  39. package/package.json +4 -4
  40. package/src/api/menu/index.ts +4 -1
  41. package/src/helpers/order-setting.ts +20 -0
  42. package/src/locales/en-US.json +5 -0
  43. package/src/locales/th-TH.json +5 -0
  44. package/src/locales/zh-CN.json +5 -0
  45. package/src/stores/menu/menu.ts +33 -14
  46. package/src/stores/order-setting/mapper.ts +56 -56
  47. package/src/views/order-settings/OrderSettingsView.vue +30 -3
  48. package/src/views/order-settings/delivery/integrated-delivery/IntegratedDelivery.vue +0 -1
  49. package/src/views/order-settings/general/GeneralSetting.vue +159 -4
  50. package/dist/OrderSettingsView-CKGRFx_2.js +0 -50624
  51. package/dist/menu.dto-CeUdKgTW.js +0 -103445
@@ -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 v, defineComponent as S, onMounted as f, resolveComponent as b, createElementBlock as h, openBlock as P, createVNode as D } from "vue";
2
2
  import "vue-router";
3
3
  const k = {
4
4
  accept: "accept",
@@ -35,6 +35,7 @@ const k = {
35
35
  asap: "ASAP",
36
36
  auto: "Auto",
37
37
  autoIntegration: "Auto Integration",
38
+ autoResetOrderNumber: "Auto reset order number",
38
39
  autoIntegrationWarning: "Auto delivery integration not available, contact our staff for more information. Reason: {reason}",
39
40
  autoIntegrationCountryNotSupport: "Platform not support auto integration in current country.",
40
41
  autoSendKitchen: "Auto Send Kitchen",
@@ -58,6 +59,7 @@ const k = {
58
59
  create: "Create",
59
60
  createTestOrder: "Create Test Order",
60
61
  credit: "Credit",
62
+ currentNumber: "Current Number",
61
63
  customerItemRemark: "Customer item remark",
62
64
  customerItemRemarkSublabel: "Customer can attach remark to item",
63
65
  customOfflinePayment: "Custom Offline Payment",
@@ -105,6 +107,7 @@ const k = {
105
107
  eWalletDescription: "Scan QR Code to make payment with phone",
106
108
  exclusive: "Exclulsive",
107
109
  failed: "FAILED",
110
+ failedToLoadCatalogOptions: "Failed to load catalog options, please refresh again",
108
111
  failedToUpdateSetting: "Failed to update setting",
109
112
  feedMeExpress: "FeedMe express",
110
113
  feedmeExpressNotApproved: "Your payout account is under review. Please contact our staff for further assistant.",
@@ -171,6 +174,7 @@ const k = {
171
174
  online: "Online",
172
175
  operatingHour: "Operating hour",
173
176
  orderFrom: "Order from",
177
+ orderNumberSettings: "Order Number Settings",
174
178
  orderSetting: "Order Setting",
175
179
  orderType: "Order Type",
176
180
  padDigit: "Pad Digit",
@@ -220,6 +224,7 @@ const k = {
220
224
  learnMore: "learn more"
221
225
  },
222
226
  serve: "serve",
227
+ sequenceSettingRules: "Cannot be less than 1 and more than 4",
223
228
  serviceCharge: "Service Charge",
224
229
  serviceChargeRule: "* Service Charge required POS version 4.0.0 or higher",
225
230
  serviceChargeSublabel: "Make your own rules to omit change based on different conditions such as restaurant, dining option, items, slot, etc.",
@@ -339,6 +344,7 @@ const k = {
339
344
  asap: "尽快配送",
340
345
  auto: "自动",
341
346
  autoIntegration: "自动对接",
347
+ autoResetOrderNumber: "自动重置订单号",
342
348
  autoIntegrationWarning: "自动配送对接不可用, 请联络我们的工作人员了解更多信息。 原因: {reason}",
343
349
  autoIntegrationCountryNotSupport: "平台不支持当前国家/地区的自动配送对接。",
344
350
  autoSendKitchen: "自动发送至厨房",
@@ -363,6 +369,7 @@ const k = {
363
369
  create: "创建",
364
370
  createTestOrder: "创建测试订单",
365
371
  credit: "可用余额",
372
+ currentNumber: "当前号码",
366
373
  customerItemRemark: "客户商品备注",
367
374
  customerItemRemarkSublabel: "客户可以为商品添加备注",
368
375
  customOfflinePayment: "自定义线下付款方式",
@@ -411,6 +418,7 @@ const k = {
411
418
  eWalletDescription: "使用手机扫描二维码进行支付",
412
419
  exclusive: "不包括",
413
420
  failed: "失败",
421
+ failedToLoadCatalogOptions: "目录选项加载失败,请重新刷新",
414
422
  failedToUpdateSetting: "设置更新失败",
415
423
  feedMeExpress: "FeedMe 外卖快递",
416
424
  feedmeExpressNotApproved: "您的支付账户正在审核中,请联系我们的工作人员获取进一步的帮助。",
@@ -477,6 +485,7 @@ const k = {
477
485
  online: "在线",
478
486
  operatingHour: "营业时间",
479
487
  orderFrom: "预订从",
488
+ orderNumberSettings: "订单号设置",
480
489
  orderSetting: "订单设置",
481
490
  orderType: "订单类型",
482
491
  padDigit: "位数",
@@ -526,6 +535,7 @@ const k = {
526
535
  learnMore: "了解更多"
527
536
  },
528
537
  serve: "服务",
538
+ sequenceSettingRules: "不能小于 1 且不能大于 4",
529
539
  serviceCharge: "服务费",
530
540
  serviceChargeRule: "* 服务费功能仅适用于POS版本4.0.0或更高版本。",
531
541
  serviceChargeSublabel: "根据不同的情况,如餐厅,就餐选项,商品,时间段等,自定义规则。",
@@ -611,7 +621,7 @@ const k = {
611
621
  }
612
622
  }, I = {
613
623
  order: A
614
- }, x = {
624
+ }, T = {
615
625
  accept: "ยอมรับ",
616
626
  acceptedPayment: "ยอมรับการชำระเงิน",
617
627
  acceptQueue: "ยอมรับคิว",
@@ -646,6 +656,7 @@ const k = {
646
656
  asap: "ทันที",
647
657
  auto: "อัตโนมัติ",
648
658
  autoIntegration: "รวมอัตโนมัติ",
659
+ autoResetOrderNumber: "รีเซ็ตหมายเลขคำสั่งซื้ออัตโนมัติ",
649
660
  autoIntegrationWarning: "การรวมระบบการจัดส่งอัตโนมัติไม่พร้อมใช้งาน โปรดติดต่อเจ้าหน้าที่ของเราเพื่อขอข้อมูลเพิ่มเติม เหตุผล: {reason}",
650
661
  autoIntegrationCountryNotSupport: "แพลตฟอร์มไม่รองรับการเชื่อมต่อการจัดส่งแบบไดนามิกในประเทศ/ภูมิภาคปัจจุบัน",
651
662
  autoSendKitchen: "ส่งอัตโนมัติครัว",
@@ -669,6 +680,7 @@ const k = {
669
680
  create: "สร้าง",
670
681
  createTestOrder: "สร้างคำสั่งซื้อทดสอบ",
671
682
  credit: "เครดิต",
683
+ currentNumber: "หมายเลขปัจจุบัน",
672
684
  customerItemRemark: "หมายเหตุรายการลูกค้า",
673
685
  customerItemRemarkSublabel: "ลูกค้าสามารถแนบหมายเหตุกับรายการได้",
674
686
  customOfflinePayment: "การชำระเงินออฟไลน์แบบกำหนดเอง",
@@ -714,6 +726,7 @@ const k = {
714
726
  eWalletDescription: "สแกนรหัส QR เพื่อชำระเงินด้วยโทรศัพท์",
715
727
  exclusive: "พิเศษ",
716
728
  failed: "ล้มเหลว",
729
+ failedToLoadCatalogOptions: "ไม่สามารถโหลดตัวเลือกแค็ตตาล็อกได้ กรุณารีเฟรชอีกครั้ง",
717
730
  failedToUpdateSetting: "ไม่สามารถอัปเดตการตั้งค่า",
718
731
  feedMeExpress: "FeedMe express",
719
732
  feedmeExpressNotApproved: "บัญชีการจ่ายเงินของคุณอยู่ระหว่างการตรวจสอบ โปรดติดต่อเจ้าหน้าที่ของเราเพื่อรับความช่วยเหลือเพิ่มเติม",
@@ -780,6 +793,7 @@ const k = {
780
793
  online: "ออนไลน์",
781
794
  operatingHour: "เวลาทำการ",
782
795
  orderFrom: "คำสั่งซื้อจาก",
796
+ orderNumberSettings: "การตั้งค่าหมายเลขคำสั่งซื้อ",
783
797
  orderSetting: "การตั้งค่าคำสั่งซื้อ",
784
798
  orderType: "ประเภทคำสั่งซื้อ",
785
799
  padDigit: "ตัวเลขบนแป้น",
@@ -827,6 +841,7 @@ const k = {
827
841
  learnMore: "เรียนรู้เพิ่มเติม"
828
842
  },
829
843
  serve: "เสิร์ฟ",
844
+ sequenceSettingRules: "ไม่สามารถน้อยกว่า 1 และมากกว่า 4 ได้",
830
845
  serviceCharge: "ค่าบริการ",
831
846
  serviceChargeRule: "* ค่าบริการจำเป็นต้องใช้ POS เวอร์ชัน 4.0.0 ขึ้นไป",
832
847
  serviceChargeSublabel: "สร้างกฎเกณฑ์ของคุณเองเพื่อหลีกเลี่ยงการเปลี่ยนแปลงตามเงื่อนไขที่แตกต่างกัน เช่น ร้านอาหาร ตัวเลือกการรับประทานอาหาร รายการ ช่อง ฯลฯ",
@@ -908,9 +923,9 @@ const k = {
908
923
  promotion: "โปรโมชั่น",
909
924
  voucher: "บัตรกำนัล"
910
925
  }
911
- }, T = {
912
- order: x
913
- }, m = g(null), v = () => m.value;
926
+ }, x = {
927
+ order: T
928
+ }, m = v(null), g = () => m.value;
914
929
  function O(t) {
915
930
  m.value || (m.value = t);
916
931
  }
@@ -936,7 +951,7 @@ function V({
936
951
  }) {
937
952
  const e = [], a = i / 6371 * (180 / Math.PI), r = a / Math.cos(t.lat * (Math.PI / 180));
938
953
  for (let o = 0; o < 361; o += 45) {
939
- 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);
954
+ const c = o * (Math.PI / 180), n = t.lng + r * Math.cos(c), p = t.lat + a * Math.sin(c), s = g(), l = new s.maps.LatLng(p, n, !0);
940
955
  e.push(l);
941
956
  }
942
957
  return e.map((o) => ({ lat: o.lat(), lng: o.lng() }));
@@ -996,7 +1011,7 @@ const w = { class: "flex-1 overflow-auto" }, Q = /* @__PURE__ */ S({
996
1011
  __name: "App",
997
1012
  setup(t) {
998
1013
  async function i() {
999
- if (v()) return;
1014
+ if (g()) return;
1000
1015
  const a = await new d(M.googleMap, {
1001
1016
  libraries: ["places"]
1002
1017
  }).load();
@@ -1011,36 +1026,36 @@ const w = { class: "flex-1 overflow-auto" }, Q = /* @__PURE__ */ S({
1011
1026
  ]);
1012
1027
  };
1013
1028
  }
1014
- }), R = "/kiosk", E = "/kiosk/device", F = "/kiosk/order-setting", N = "/order-settings", u = {
1029
+ }), R = "/kiosk", E = "/kiosk/device", N = "/kiosk/order-setting", F = "/order-settings", u = {
1015
1030
  KioskRoute: R,
1016
1031
  KioskDeviceRoute: E,
1017
- KioskOrderSettingRoute: F,
1018
- OrderSettingView: N
1032
+ KioskOrderSettingRoute: N,
1033
+ OrderSettingView: F
1019
1034
  }, _ = [
1020
1035
  {
1021
1036
  path: u.KioskRoute,
1022
1037
  name: "Kiosk",
1023
- component: () => import("./KioskView-B4mggCt0.js")
1038
+ component: () => import("./KioskView-4-s6RwC6.js")
1024
1039
  },
1025
1040
  {
1026
1041
  path: u.KioskDeviceRoute,
1027
1042
  name: "Kiosk Device",
1028
- component: () => import("./KioskDevicesView-wPKewwAS.js")
1043
+ component: () => import("./KioskDevicesView-DoTQRyXe.js")
1029
1044
  },
1030
1045
  {
1031
1046
  path: u.KioskOrderSettingRoute,
1032
1047
  name: "Kiosk Order Setting",
1033
- component: () => import("./KioskSettingView-CV54HpY2.js")
1048
+ component: () => import("./KioskSettingView-DRpVR7Ij.js")
1034
1049
  },
1035
1050
  {
1036
1051
  path: u.OrderSettingView,
1037
1052
  name: "Order Setting View",
1038
- component: () => import("./OrderSettingsView-CKGRFx_2.js")
1053
+ component: () => import("./OrderSettingsView-BqgGXVhY.js")
1039
1054
  }
1040
- ], H = {
1055
+ ], q = {
1041
1056
  "en-US": C,
1042
1057
  "zh-CN": I,
1043
- "th-TH": T
1058
+ "th-TH": x
1044
1059
  };
1045
1060
  export {
1046
1061
  Q as _,
@@ -1049,7 +1064,7 @@ export {
1049
1064
  B as c,
1050
1065
  U as d,
1051
1066
  W as e,
1052
- v as g,
1053
- H as i,
1067
+ g,
1068
+ q as i,
1054
1069
  _ as r
1055
1070
  };
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as a, i as e, r as o } from "./app-D4exdzAx.js";
1
+ import { _ as a, i as e, r as o } from "./app-BbOgWoeI.js";
2
2
  export {
3
3
  a as FmApp,
4
4
  e as i18nMessages,
@@ -1,4 +1,4 @@
1
- import { g as nt, q as kt, j as Dt } from "./menu.dto-CeUdKgTW.js";
1
+ import { g as nt, u as kt, k as Dt } from "./menu.dto-Bf0Evx6J.js";
2
2
  import { useCoreStore as Q } from "@feedmepos/mf-common";
3
3
  function rt(e, t) {
4
4
  return function() {
@@ -4,5 +4,9 @@ interface MenuV4Doc extends FdoMenuV4 {
4
4
  }
5
5
  export declare const menuApi: {
6
6
  readMenu(): Promise<MenuV4Doc>;
7
+ readCatalogOptions(restaurantId: string): Promise<Record<string, Array<{
8
+ _id: string;
9
+ name: string;
10
+ }>>>;
7
11
  };
8
12
  export {};
@@ -37,6 +37,7 @@ export declare const i18nMessages: {
37
37
  asap: string;
38
38
  auto: string;
39
39
  autoIntegration: string;
40
+ autoResetOrderNumber: string;
40
41
  autoIntegrationWarning: string;
41
42
  autoIntegrationCountryNotSupport: string;
42
43
  autoSendKitchen: string;
@@ -60,6 +61,7 @@ export declare const i18nMessages: {
60
61
  create: string;
61
62
  createTestOrder: string;
62
63
  credit: string;
64
+ currentNumber: string;
63
65
  customerItemRemark: string;
64
66
  customerItemRemarkSublabel: string;
65
67
  customOfflinePayment: string;
@@ -107,6 +109,7 @@ export declare const i18nMessages: {
107
109
  eWalletDescription: string;
108
110
  exclusive: string;
109
111
  failed: string;
112
+ failedToLoadCatalogOptions: string;
110
113
  failedToUpdateSetting: string;
111
114
  feedMeExpress: string;
112
115
  feedmeExpressNotApproved: string;
@@ -173,6 +176,7 @@ export declare const i18nMessages: {
173
176
  online: string;
174
177
  operatingHour: string;
175
178
  orderFrom: string;
179
+ orderNumberSettings: string;
176
180
  orderSetting: string;
177
181
  orderType: string;
178
182
  padDigit: string;
@@ -222,6 +226,7 @@ export declare const i18nMessages: {
222
226
  learnMore: string;
223
227
  };
224
228
  serve: string;
229
+ sequenceSettingRules: string;
225
230
  serviceCharge: string;
226
231
  serviceChargeRule: string;
227
232
  serviceChargeSublabel: string;
@@ -342,6 +347,7 @@ export declare const i18nMessages: {
342
347
  asap: string;
343
348
  auto: string;
344
349
  autoIntegration: string;
350
+ autoResetOrderNumber: string;
345
351
  autoIntegrationWarning: string;
346
352
  autoIntegrationCountryNotSupport: string;
347
353
  autoSendKitchen: string;
@@ -366,6 +372,7 @@ export declare const i18nMessages: {
366
372
  create: string;
367
373
  createTestOrder: string;
368
374
  credit: string;
375
+ currentNumber: string;
369
376
  customerItemRemark: string;
370
377
  customerItemRemarkSublabel: string;
371
378
  customOfflinePayment: string;
@@ -414,6 +421,7 @@ export declare const i18nMessages: {
414
421
  eWalletDescription: string;
415
422
  exclusive: string;
416
423
  failed: string;
424
+ failedToLoadCatalogOptions: string;
417
425
  failedToUpdateSetting: string;
418
426
  feedMeExpress: string;
419
427
  feedmeExpressNotApproved: string;
@@ -480,6 +488,7 @@ export declare const i18nMessages: {
480
488
  online: string;
481
489
  operatingHour: string;
482
490
  orderFrom: string;
491
+ orderNumberSettings: string;
483
492
  orderSetting: string;
484
493
  orderType: string;
485
494
  padDigit: string;
@@ -529,6 +538,7 @@ export declare const i18nMessages: {
529
538
  learnMore: string;
530
539
  };
531
540
  serve: string;
541
+ sequenceSettingRules: string;
532
542
  serviceCharge: string;
533
543
  serviceChargeRule: string;
534
544
  serviceChargeSublabel: string;
@@ -650,6 +660,7 @@ export declare const i18nMessages: {
650
660
  asap: string;
651
661
  auto: string;
652
662
  autoIntegration: string;
663
+ autoResetOrderNumber: string;
653
664
  autoIntegrationWarning: string;
654
665
  autoIntegrationCountryNotSupport: string;
655
666
  autoSendKitchen: string;
@@ -673,6 +684,7 @@ export declare const i18nMessages: {
673
684
  create: string;
674
685
  createTestOrder: string;
675
686
  credit: string;
687
+ currentNumber: string;
676
688
  customerItemRemark: string;
677
689
  customerItemRemarkSublabel: string;
678
690
  customOfflinePayment: string;
@@ -718,6 +730,7 @@ export declare const i18nMessages: {
718
730
  eWalletDescription: string;
719
731
  exclusive: string;
720
732
  failed: string;
733
+ failedToLoadCatalogOptions: string;
721
734
  failedToUpdateSetting: string;
722
735
  feedMeExpress: string;
723
736
  feedmeExpressNotApproved: string;
@@ -784,6 +797,7 @@ export declare const i18nMessages: {
784
797
  online: string;
785
798
  operatingHour: string;
786
799
  orderFrom: string;
800
+ orderNumberSettings: string;
787
801
  orderSetting: string;
788
802
  orderType: string;
789
803
  padDigit: string;
@@ -831,6 +845,7 @@ export declare const i18nMessages: {
831
845
  learnMore: string;
832
846
  };
833
847
  serve: string;
848
+ sequenceSettingRules: string;
834
849
  serviceCharge: string;
835
850
  serviceChargeRule: string;
836
851
  serviceChargeSublabel: string;
@@ -0,0 +1,6 @@
1
+ import { type BaseOrderNumberSettings } from '@entity';
2
+ export declare function getSequenceStartEndLabel(sequence: BaseOrderNumberSettings): {
3
+ start: string;
4
+ end: string;
5
+ };
6
+ export declare function sequenceSettingRules(errMsg: string, digit?: number | null): (() => string | true)[];
@@ -36,6 +36,7 @@ export declare const i18nMessages: {
36
36
  asap: string;
37
37
  auto: string;
38
38
  autoIntegration: string;
39
+ autoResetOrderNumber: string;
39
40
  autoIntegrationWarning: string;
40
41
  autoIntegrationCountryNotSupport: string;
41
42
  autoSendKitchen: string;
@@ -59,6 +60,7 @@ export declare const i18nMessages: {
59
60
  create: string;
60
61
  createTestOrder: string;
61
62
  credit: string;
63
+ currentNumber: string;
62
64
  customerItemRemark: string;
63
65
  customerItemRemarkSublabel: string;
64
66
  customOfflinePayment: string;
@@ -106,6 +108,7 @@ export declare const i18nMessages: {
106
108
  eWalletDescription: string;
107
109
  exclusive: string;
108
110
  failed: string;
111
+ failedToLoadCatalogOptions: string;
109
112
  failedToUpdateSetting: string;
110
113
  feedMeExpress: string;
111
114
  feedmeExpressNotApproved: string;
@@ -172,6 +175,7 @@ export declare const i18nMessages: {
172
175
  online: string;
173
176
  operatingHour: string;
174
177
  orderFrom: string;
178
+ orderNumberSettings: string;
175
179
  orderSetting: string;
176
180
  orderType: string;
177
181
  padDigit: string;
@@ -221,6 +225,7 @@ export declare const i18nMessages: {
221
225
  learnMore: string;
222
226
  };
223
227
  serve: string;
228
+ sequenceSettingRules: string;
224
229
  serviceCharge: string;
225
230
  serviceChargeRule: string;
226
231
  serviceChargeSublabel: string;
@@ -341,6 +346,7 @@ export declare const i18nMessages: {
341
346
  asap: string;
342
347
  auto: string;
343
348
  autoIntegration: string;
349
+ autoResetOrderNumber: string;
344
350
  autoIntegrationWarning: string;
345
351
  autoIntegrationCountryNotSupport: string;
346
352
  autoSendKitchen: string;
@@ -365,6 +371,7 @@ export declare const i18nMessages: {
365
371
  create: string;
366
372
  createTestOrder: string;
367
373
  credit: string;
374
+ currentNumber: string;
368
375
  customerItemRemark: string;
369
376
  customerItemRemarkSublabel: string;
370
377
  customOfflinePayment: string;
@@ -413,6 +420,7 @@ export declare const i18nMessages: {
413
420
  eWalletDescription: string;
414
421
  exclusive: string;
415
422
  failed: string;
423
+ failedToLoadCatalogOptions: string;
416
424
  failedToUpdateSetting: string;
417
425
  feedMeExpress: string;
418
426
  feedmeExpressNotApproved: string;
@@ -479,6 +487,7 @@ export declare const i18nMessages: {
479
487
  online: string;
480
488
  operatingHour: string;
481
489
  orderFrom: string;
490
+ orderNumberSettings: string;
482
491
  orderSetting: string;
483
492
  orderType: string;
484
493
  padDigit: string;
@@ -528,6 +537,7 @@ export declare const i18nMessages: {
528
537
  learnMore: string;
529
538
  };
530
539
  serve: string;
540
+ sequenceSettingRules: string;
531
541
  serviceCharge: string;
532
542
  serviceChargeRule: string;
533
543
  serviceChargeSublabel: string;
@@ -649,6 +659,7 @@ export declare const i18nMessages: {
649
659
  asap: string;
650
660
  auto: string;
651
661
  autoIntegration: string;
662
+ autoResetOrderNumber: string;
652
663
  autoIntegrationWarning: string;
653
664
  autoIntegrationCountryNotSupport: string;
654
665
  autoSendKitchen: string;
@@ -672,6 +683,7 @@ export declare const i18nMessages: {
672
683
  create: string;
673
684
  createTestOrder: string;
674
685
  credit: string;
686
+ currentNumber: string;
675
687
  customerItemRemark: string;
676
688
  customerItemRemarkSublabel: string;
677
689
  customOfflinePayment: string;
@@ -717,6 +729,7 @@ export declare const i18nMessages: {
717
729
  eWalletDescription: string;
718
730
  exclusive: string;
719
731
  failed: string;
732
+ failedToLoadCatalogOptions: string;
720
733
  failedToUpdateSetting: string;
721
734
  feedMeExpress: string;
722
735
  feedmeExpressNotApproved: string;
@@ -783,6 +796,7 @@ export declare const i18nMessages: {
783
796
  online: string;
784
797
  operatingHour: string;
785
798
  orderFrom: string;
799
+ orderNumberSettings: string;
786
800
  orderSetting: string;
787
801
  orderType: string;
788
802
  padDigit: string;
@@ -830,6 +844,7 @@ export declare const i18nMessages: {
830
844
  learnMore: string;
831
845
  };
832
846
  serve: string;
847
+ sequenceSettingRules: string;
833
848
  serviceCharge: string;
834
849
  serviceChargeRule: string;
835
850
  serviceChargeSublabel: string;
@@ -8,6 +8,12 @@ interface MenuState {
8
8
  } & FdoMenuV4;
9
9
  currentCatalogId: string | null;
10
10
  currentSchedulerId: string;
11
+ catalogOptions: {
12
+ label: string;
13
+ value: string | null;
14
+ }[];
15
+ loadingCatalogOptions: boolean;
16
+ catalogOptionsError: string | null;
11
17
  }
12
18
  export declare function sortPosition<T extends FdoHasPosition>(arr: T[], elseIf: keyof T | ((v: T) => string)): T[];
13
19
  export declare function categorizedItems(categories: (Omit<FdoMenuV4Category, '_id'> & {
@@ -1138,11 +1144,13 @@ export declare const useMenuStore: import("pinia").StoreDefinition<"menu", MenuS
1138
1144
  };
1139
1145
  currentCatalogId: string | null;
1140
1146
  currentSchedulerId: string;
1147
+ catalogOptions: {
1148
+ label: string;
1149
+ value: string | null;
1150
+ }[];
1151
+ loadingCatalogOptions: boolean;
1152
+ catalogOptionsError: string | null;
1141
1153
  } & import("pinia").PiniaCustomStateProperties<MenuState>) => FdoMenuV4Catalog | undefined;
1142
- catalogOptions(): {
1143
- label: string;
1144
- value: string | null;
1145
- }[];
1146
1154
  categories(): (Omit<FdoMenuV4Category, '_id'> & {
1147
1155
  _id: string | null;
1148
1156
  })[];
@@ -1155,6 +1163,7 @@ export declare const useMenuStore: import("pinia").StoreDefinition<"menu", MenuS
1155
1163
  rules(): MenuRules;
1156
1164
  }, {
1157
1165
  readMenu(): Promise<void>;
1166
+ loadCatalogOptions(restaurantId: string): Promise<void>;
1158
1167
  selectCatalog(id: string | null): void;
1159
1168
  }>;
1160
1169
  export {};
@@ -138,26 +138,35 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
138
138
  } | null | undefined;
139
139
  sequenceSettings?: {
140
140
  pickup?: {
141
+ digit?: number | null | undefined;
141
142
  prefix: string;
142
143
  current: number;
143
144
  } | undefined;
144
145
  takeaway?: {
146
+ digit?: number | null | undefined;
145
147
  prefix: string;
146
148
  current: number;
147
149
  } | undefined;
148
150
  inHouseDelivery?: {
151
+ digit?: number | null | undefined;
149
152
  prefix: string;
150
153
  current: number;
151
154
  } | undefined;
155
+ autoReset?: {
156
+ resetTime: string;
157
+ } | null | undefined;
152
158
  feedMeDelivery?: {
159
+ digit?: number | null | undefined;
153
160
  prefix: string;
154
161
  current: number;
155
162
  } | undefined;
156
163
  reservation?: {
164
+ digit?: number | null | undefined;
157
165
  prefix: string;
158
166
  current: number;
159
167
  } | undefined;
160
168
  kioskDineIn?: {
169
+ digit?: number | null | undefined;
161
170
  prefix: string;
162
171
  current: number;
163
172
  } | undefined;
@@ -384,26 +393,35 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
384
393
  } | null | undefined;
385
394
  sequenceSettings?: {
386
395
  pickup?: {
396
+ digit?: number | null | undefined;
387
397
  prefix: string;
388
398
  current: number;
389
399
  } | undefined;
390
400
  takeaway?: {
401
+ digit?: number | null | undefined;
391
402
  prefix: string;
392
403
  current: number;
393
404
  } | undefined;
394
405
  inHouseDelivery?: {
406
+ digit?: number | null | undefined;
395
407
  prefix: string;
396
408
  current: number;
397
409
  } | undefined;
410
+ autoReset?: {
411
+ resetTime: string;
412
+ } | null | undefined;
398
413
  feedMeDelivery?: {
414
+ digit?: number | null | undefined;
399
415
  prefix: string;
400
416
  current: number;
401
417
  } | undefined;
402
418
  reservation?: {
419
+ digit?: number | null | undefined;
403
420
  prefix: string;
404
421
  current: number;
405
422
  } | undefined;
406
423
  kioskDineIn?: {
424
+ digit?: number | null | undefined;
407
425
  prefix: string;
408
426
  current: number;
409
427
  } | undefined;
@@ -630,26 +648,35 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
630
648
  } | null | undefined;
631
649
  sequenceSettings?: {
632
650
  pickup?: {
651
+ digit?: number | null | undefined;
633
652
  prefix: string;
634
653
  current: number;
635
654
  } | undefined;
636
655
  takeaway?: {
656
+ digit?: number | null | undefined;
637
657
  prefix: string;
638
658
  current: number;
639
659
  } | undefined;
640
660
  inHouseDelivery?: {
661
+ digit?: number | null | undefined;
641
662
  prefix: string;
642
663
  current: number;
643
664
  } | undefined;
665
+ autoReset?: {
666
+ resetTime: string;
667
+ } | null | undefined;
644
668
  feedMeDelivery?: {
669
+ digit?: number | null | undefined;
645
670
  prefix: string;
646
671
  current: number;
647
672
  } | undefined;
648
673
  reservation?: {
674
+ digit?: number | null | undefined;
649
675
  prefix: string;
650
676
  current: number;
651
677
  } | undefined;
652
678
  kioskDineIn?: {
679
+ digit?: number | null | undefined;
653
680
  prefix: string;
654
681
  current: number;
655
682
  } | undefined;