@feedmepos/mf-order-setting 0.0.48 → 0.0.50

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 (71) hide show
  1. package/dist/{KioskDevicesView-iZTQ--DO.js → KioskDevicesView-u14hzPbE.js} +1 -1
  2. package/dist/KioskDevicesView.vue_vue_type_script_setup_true_lang-DBgRDIoS.js +501 -0
  3. package/dist/{KioskSettingView-mN7UPNYu.js → KioskSettingView-DmvtZcV1.js} +34 -33
  4. package/dist/KioskView-M8V91gD5.js +474 -0
  5. package/dist/{OrderSettingsView-B5Nq_u9Z.js → OrderSettingsView-Bl3LshG3.js} +15016 -14688
  6. package/dist/{app-B3KtJhiw.js → app-CLewMjcd.js} +89 -25
  7. package/dist/app.js +1 -1
  8. package/dist/{dayjs.min-GjkM9dM2.js → dayjs.min-DCTYRWyD.js} +1 -1
  9. package/dist/frontend/mf-order/src/api/restaurant-setting/index.d.ts +2 -1
  10. package/dist/frontend/mf-order/src/app.d.ts +64 -0
  11. package/dist/frontend/mf-order/src/main.d.ts +64 -0
  12. package/dist/frontend/mf-order/src/modules/kiosk/interface.d.ts +1 -0
  13. package/dist/frontend/mf-order/src/stores/kiosk/index.d.ts +3 -0
  14. package/dist/frontend/mf-order/src/stores/menu/menu.d.ts +1 -0
  15. package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +5 -2
  16. package/dist/frontend/mf-order/src/views/kiosk/devices/KioskDevicesView.vue.d.ts +6 -3
  17. package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue.d.ts +8 -0
  18. package/dist/frontend/mf-order/src/views/order-settings/drive-thru/DriveThruSetting.vue.d.ts +2 -0
  19. package/dist/frontend/mf-order/src/views/order-settings/servicecharge/ServiceChargeRule.vue.d.ts +2 -2
  20. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  21. package/dist/{index-Dwzta1U-.js → index-B7LtJeBJ.js} +2 -2
  22. package/dist/{menu.dto-DgPhiIVk.js → menu.dto-Co7iXHNr.js} +25558 -25019
  23. package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +108 -16
  24. package/dist/package/entity/incoming-order/incoming-order.do.d.ts +63 -18
  25. package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +118 -18
  26. package/dist/package/entity/kiosk/kiosk.do.d.ts +32 -0
  27. package/dist/package/entity/kiosk/kiosk.dto.d.ts +44 -0
  28. package/dist/package/entity/kiosk/marketing/marketing.dto.d.ts +1071 -0
  29. package/dist/package/entity/order/order-item/order-item.dto.d.ts +8 -0
  30. package/dist/package/entity/order/order.dto.d.ts +16 -8
  31. package/dist/package/entity/order/order.enum.d.ts +2 -0
  32. package/dist/package/entity/order-platform/deliveroo/deliveroo-dto.d.ts +2 -2
  33. package/dist/package/entity/order-platform/deliveroo/deliveroo-setting.do.d.ts +2 -2
  34. package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +62 -0
  35. package/dist/package/entity/order-platform/external/order/external-order.dto.d.ts +178 -0
  36. package/dist/package/entity/order-platform/external/setting/external-setting.do.d.ts +6 -0
  37. package/dist/package/entity/order-platform/external/setting/external-setting.dto.d.ts +6 -0
  38. package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.do.d.ts +4 -4
  39. package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.dto.d.ts +5 -5
  40. package/dist/package/entity/order-platform/grabfood/grabfood-menu.do.d.ts +15 -0
  41. package/dist/package/entity/order-platform/grabfood/grabfood-omni.do.d.ts +1834 -15
  42. package/dist/package/entity/order-platform/grabfood/grabfood-order.do.d.ts +13 -13
  43. package/dist/package/entity/order-platform/grabfood/grabfood-settings.do.d.ts +5 -2
  44. package/dist/package/entity/order-platform/grabfood/grabfood-webhook.dto.d.ts +528 -805
  45. package/dist/package/entity/order-platform/grabfood/grabfood.dto.d.ts +14 -11
  46. package/dist/package/entity/order-platform/grabfood/grabfood.enum.d.ts +1 -1
  47. package/dist/package/entity/order-platform/order-platform.dto.d.ts +0 -20
  48. package/dist/package/entity/order-platform/shopeefood/shopeefood-settings.do.d.ts +2 -2
  49. package/dist/package/entity/order-platform/shopeefood/shopeefood-settings.dto.d.ts +2 -2
  50. package/dist/package/entity/queue/queue.do.d.ts +12 -0
  51. package/dist/package/entity/queue/queue.dto.d.ts +26 -6
  52. package/package.json +4 -4
  53. package/src/api/restaurant-setting/index.ts +6 -0
  54. package/src/locales/en-US.json +16 -0
  55. package/src/locales/ja-JP.json +16 -0
  56. package/src/locales/th-TH.json +16 -0
  57. package/src/locales/zh-CN.json +16 -0
  58. package/src/main.ts +2 -2
  59. package/src/modules/kiosk/interface.ts +1 -0
  60. package/src/stores/kiosk/mapper.ts +1 -0
  61. package/src/stores/restaurant/index.ts +6 -0
  62. package/src/views/kiosk/KioskSummary.vue +37 -31
  63. package/src/views/kiosk/KioskView.vue +4 -1
  64. package/src/views/kiosk/devices/KioskDeviceCard.vue +205 -89
  65. package/src/views/kiosk/devices/KioskDevicesView.vue +133 -17
  66. package/src/views/kiosk/settings/KioskPaymentTypeSection.vue +8 -3
  67. package/src/views/order-settings/OrderSettingsView.vue +6 -1
  68. package/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue +22 -1
  69. package/src/views/order-settings/drive-thru/DriveThruSetting.vue +101 -0
  70. package/dist/KioskDevicesView.vue_vue_type_script_setup_true_lang-CPDemTBj.js +0 -306
  71. package/dist/KioskView-NEpc7Ivb.js +0 -452
@@ -1697,13 +1697,14 @@ export declare const FdtoGrabfoodCreateOrUpdateSettings: z.ZodObject<{
1697
1697
  enable: z.ZodOptional<z.ZodBoolean>;
1698
1698
  autoCloseBill: z.ZodOptional<z.ZodBoolean>;
1699
1699
  printReceiptAfterClose: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
1700
- commissionRate: z.ZodOptional<z.ZodNumber>;
1700
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1701
1701
  lastSynchronize: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1702
+ commissionRate: z.ZodOptional<z.ZodNumber>;
1702
1703
  showProductAddon: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
1703
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1704
1704
  menuSyncError: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1705
1705
  merchantID: z.ZodOptional<z.ZodString>;
1706
1706
  syncV2: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
1707
+ syncIGI: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
1707
1708
  partnerMerchantID: z.ZodOptional<z.ZodString>;
1708
1709
  }, "strip", z.ZodTypeAny, {
1709
1710
  status?: string | null | undefined;
@@ -1712,14 +1713,15 @@ export declare const FdtoGrabfoodCreateOrUpdateSettings: z.ZodObject<{
1712
1713
  enable?: boolean | undefined;
1713
1714
  autoCloseBill?: boolean | undefined;
1714
1715
  printReceiptAfterClose?: boolean | null | undefined;
1715
- commissionRate?: number | undefined;
1716
+ updatedAt?: string | null | undefined;
1716
1717
  lastSynchronize?: string | null | undefined;
1718
+ commissionRate?: number | undefined;
1717
1719
  showProductAddon?: boolean | null | undefined;
1718
- updatedAt?: string | null | undefined;
1719
1720
  menuSyncError?: string | null | undefined;
1720
1721
  partnerMerchantID?: string | undefined;
1721
1722
  merchantID?: string | undefined;
1722
1723
  syncV2?: boolean | null | undefined;
1724
+ syncIGI?: boolean | null | undefined;
1723
1725
  }, {
1724
1726
  status?: string | null | undefined;
1725
1727
  _id?: string | undefined;
@@ -1727,14 +1729,15 @@ export declare const FdtoGrabfoodCreateOrUpdateSettings: z.ZodObject<{
1727
1729
  enable?: boolean | undefined;
1728
1730
  autoCloseBill?: boolean | undefined;
1729
1731
  printReceiptAfterClose?: boolean | null | undefined;
1730
- commissionRate?: number | undefined;
1732
+ updatedAt?: string | null | undefined;
1731
1733
  lastSynchronize?: string | null | undefined;
1734
+ commissionRate?: number | undefined;
1732
1735
  showProductAddon?: boolean | null | undefined;
1733
- updatedAt?: string | null | undefined;
1734
1736
  menuSyncError?: string | null | undefined;
1735
1737
  partnerMerchantID?: string | undefined;
1736
1738
  merchantID?: string | undefined;
1737
1739
  syncV2?: boolean | null | undefined;
1740
+ syncIGI?: boolean | null | undefined;
1738
1741
  }>;
1739
1742
  export declare const FdtoGrabfoodUpdateMenuItem: z.ZodObject<{
1740
1743
  merchantId: z.ZodString;
@@ -2307,7 +2310,7 @@ export declare const GFListOrdersRes: z.ZodObject<{
2307
2310
  estimatedOrderReadyTime: string;
2308
2311
  maxOrderReadyTime: string;
2309
2312
  }>>>;
2310
- orderState: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ACCEPTED", "DRIVER_ALLOCATED", "DRIVER_ARRIVED", "COLLECTED", "DELIVERED", "FAILED", "CANCELLED", "COMPLETED", "REFUNDED"]>>>;
2313
+ orderState: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ACCEPTED", "DRIVER_ALLOCATED", "DRIVER_ARRIVED", "COLLECTED", "DELIVERED", "FAILED", "CANCELLED", "COMPLETED", "REFUNDED", "BILL_PAID"]>>>;
2311
2314
  }, "strip", z.ZodTypeAny, {
2312
2315
  receiver?: {
2313
2316
  name?: string | null | undefined;
@@ -2356,7 +2359,7 @@ export declare const GFListOrdersRes: z.ZodObject<{
2356
2359
  estimatedOrderReadyTime: string;
2357
2360
  maxOrderReadyTime: string;
2358
2361
  } | null | undefined;
2359
- orderState?: "FAILED" | "COMPLETED" | "DELIVERED" | "CANCELLED" | "ACCEPTED" | "REFUNDED" | "COLLECTED" | "DRIVER_ALLOCATED" | "DRIVER_ARRIVED" | null | undefined;
2362
+ orderState?: "FAILED" | "COMPLETED" | "DELIVERED" | "CANCELLED" | "ACCEPTED" | "REFUNDED" | "COLLECTED" | "DRIVER_ALLOCATED" | "DRIVER_ARRIVED" | "BILL_PAID" | null | undefined;
2360
2363
  price: {
2361
2364
  deliveryFee?: number | null | undefined;
2362
2365
  tax?: number | null | undefined;
@@ -2458,7 +2461,7 @@ export declare const GFListOrdersRes: z.ZodObject<{
2458
2461
  estimatedOrderReadyTime: string;
2459
2462
  maxOrderReadyTime: string;
2460
2463
  } | null | undefined;
2461
- orderState?: "FAILED" | "COMPLETED" | "DELIVERED" | "CANCELLED" | "ACCEPTED" | "REFUNDED" | "COLLECTED" | "DRIVER_ALLOCATED" | "DRIVER_ARRIVED" | null | undefined;
2464
+ orderState?: "FAILED" | "COMPLETED" | "DELIVERED" | "CANCELLED" | "ACCEPTED" | "REFUNDED" | "COLLECTED" | "DRIVER_ALLOCATED" | "DRIVER_ARRIVED" | "BILL_PAID" | null | undefined;
2462
2465
  price: {
2463
2466
  deliveryFee?: number | null | undefined;
2464
2467
  tax?: number | null | undefined;
@@ -2562,7 +2565,7 @@ export declare const GFListOrdersRes: z.ZodObject<{
2562
2565
  estimatedOrderReadyTime: string;
2563
2566
  maxOrderReadyTime: string;
2564
2567
  } | null | undefined;
2565
- orderState?: "FAILED" | "COMPLETED" | "DELIVERED" | "CANCELLED" | "ACCEPTED" | "REFUNDED" | "COLLECTED" | "DRIVER_ALLOCATED" | "DRIVER_ARRIVED" | null | undefined;
2568
+ orderState?: "FAILED" | "COMPLETED" | "DELIVERED" | "CANCELLED" | "ACCEPTED" | "REFUNDED" | "COLLECTED" | "DRIVER_ALLOCATED" | "DRIVER_ARRIVED" | "BILL_PAID" | null | undefined;
2566
2569
  price: {
2567
2570
  deliveryFee?: number | null | undefined;
2568
2571
  tax?: number | null | undefined;
@@ -2667,7 +2670,7 @@ export declare const GFListOrdersRes: z.ZodObject<{
2667
2670
  estimatedOrderReadyTime: string;
2668
2671
  maxOrderReadyTime: string;
2669
2672
  } | null | undefined;
2670
- orderState?: "FAILED" | "COMPLETED" | "DELIVERED" | "CANCELLED" | "ACCEPTED" | "REFUNDED" | "COLLECTED" | "DRIVER_ALLOCATED" | "DRIVER_ARRIVED" | null | undefined;
2673
+ orderState?: "FAILED" | "COMPLETED" | "DELIVERED" | "CANCELLED" | "ACCEPTED" | "REFUNDED" | "COLLECTED" | "DRIVER_ALLOCATED" | "DRIVER_ARRIVED" | "BILL_PAID" | null | undefined;
2671
2674
  price: {
2672
2675
  deliveryFee?: number | null | undefined;
2673
2676
  tax?: number | null | undefined;
@@ -8,7 +8,7 @@ export declare const GF_UPDATE_MENU_FIELD_TYPE: z.ZodEnum<["ITEM", "MODIFIER"]>;
8
8
  export declare const GF_CAMPAIGN_EATER_TYPE: z.ZodEnum<["all", "new"]>;
9
9
  export declare const GF_CAMPAIGN_DISCOUNT_TYPE: z.ZodEnum<["net", "percentage", "delivery", "freeItem"]>;
10
10
  export declare const GF_CAMPAIGN_SCOPE_TYPE: z.ZodEnum<["order", "items"]>;
11
- export declare const GF_PUSH_ORDER_STATE: z.ZodEnum<["ACCEPTED", "DRIVER_ALLOCATED", "DRIVER_ARRIVED", "COLLECTED", "DELIVERED", "FAILED", "CANCELLED", "COMPLETED", "REFUNDED"]>;
11
+ export declare const GF_PUSH_ORDER_STATE: z.ZodEnum<["ACCEPTED", "DRIVER_ALLOCATED", "DRIVER_ARRIVED", "COLLECTED", "DELIVERED", "FAILED", "CANCELLED", "COMPLETED", "REFUNDED", "BILL_PAID"]>;
12
12
  export declare const GF_ORDER_STATUS: z.ZodEnum<["pending", "accepted", "rejected"]>;
13
13
  export declare const GF_PAYMENT_TYPE: z.ZodEnum<["CASH", "CASHLESS"]>;
14
14
  export declare const GF_QR_TYPE: z.ZodEnum<["Dynamic", "Static"]>;
@@ -56,26 +56,6 @@ export declare const FdtoUpdateOrderPlatformSettingReq: z.ZodObject<z.extendShap
56
56
  action: "SYNC_MENU" | "UPDATE_ORDER" | "GET_OR_UPDATE_SETTING";
57
57
  platform: string;
58
58
  }>;
59
- export declare const FdtoUpdateOrderPlatformItemReq: z.ZodObject<{
60
- /**
61
- * enable = null -> GET
62
- * enable = true/false -> UPDATE
63
- */
64
- enable: z.ZodBoolean;
65
- itemId: z.ZodString;
66
- itemName: z.ZodString;
67
- groupId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
68
- }, "strip", z.ZodTypeAny, {
69
- groupId?: string | null | undefined;
70
- enable: boolean;
71
- itemId: string;
72
- itemName: string;
73
- }, {
74
- groupId?: string | null | undefined;
75
- enable: boolean;
76
- itemId: string;
77
- itemName: string;
78
- }>;
79
59
  export declare const FdtoGetOrderDateRange: z.ZodObject<{
80
60
  start: z.ZodNullable<z.ZodOptional<z.ZodString>>;
81
61
  end: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -148,9 +148,9 @@ export declare const FdoShopeeFoodSettings: z.ZodObject<z.extendShape<{
148
148
  _id?: string | undefined;
149
149
  catalogId?: string | null | undefined;
150
150
  printReceiptAfterClose?: boolean | null | undefined;
151
+ updatedAt?: string | null | undefined;
151
152
  lastSynchronize?: string | null | undefined;
152
153
  showProductAddon?: boolean | null | undefined;
153
- updatedAt?: string | null | undefined;
154
154
  menuSyncError?: string | null | undefined;
155
155
  syncV2?: boolean | null | undefined;
156
156
  enable: boolean;
@@ -172,9 +172,9 @@ export declare const FdoShopeeFoodSettings: z.ZodObject<z.extendShape<{
172
172
  _id?: string | undefined;
173
173
  catalogId?: string | null | undefined;
174
174
  printReceiptAfterClose?: boolean | null | undefined;
175
+ updatedAt?: string | null | undefined;
175
176
  lastSynchronize?: string | null | undefined;
176
177
  showProductAddon?: boolean | null | undefined;
177
- updatedAt?: string | null | undefined;
178
178
  menuSyncError?: string | null | undefined;
179
179
  syncV2?: boolean | null | undefined;
180
180
  enable: boolean;
@@ -69,9 +69,9 @@ export declare const FdtoCreateOrUpdateShopeeFoodSettings: z.ZodObject<Omit<z.ex
69
69
  _id?: string | undefined;
70
70
  catalogId?: string | null | undefined;
71
71
  printReceiptAfterClose?: boolean | null | undefined;
72
+ updatedAt?: string | null | undefined;
72
73
  lastSynchronize?: string | null | undefined;
73
74
  showProductAddon?: boolean | null | undefined;
74
- updatedAt?: string | null | undefined;
75
75
  menuSyncError?: string | null | undefined;
76
76
  syncV2?: boolean | null | undefined;
77
77
  enable: boolean;
@@ -93,9 +93,9 @@ export declare const FdtoCreateOrUpdateShopeeFoodSettings: z.ZodObject<Omit<z.ex
93
93
  _id?: string | undefined;
94
94
  catalogId?: string | null | undefined;
95
95
  printReceiptAfterClose?: boolean | null | undefined;
96
+ updatedAt?: string | null | undefined;
96
97
  lastSynchronize?: string | null | undefined;
97
98
  showProductAddon?: boolean | null | undefined;
98
- updatedAt?: string | null | undefined;
99
99
  menuSyncError?: string | null | undefined;
100
100
  syncV2?: boolean | null | undefined;
101
101
  enable: boolean;
@@ -1184,6 +1184,7 @@ export declare const FdoRestaurantQueueProduct: z.ZodObject<{
1184
1184
  unit: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1185
1185
  customAttributes: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1186
1186
  subCategories: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1187
+ shelfLife: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1187
1188
  }, "strip", z.ZodTypeAny, {
1188
1189
  unit?: string | null | undefined;
1189
1190
  categoryName?: string | null | undefined;
@@ -1230,6 +1231,7 @@ export declare const FdoRestaurantQueueProduct: z.ZodObject<{
1230
1231
  }[] | null | undefined;
1231
1232
  customAttributes?: Record<string, any> | null | undefined;
1232
1233
  subCategories?: string[] | null | undefined;
1234
+ shelfLife?: number | null | undefined;
1233
1235
  code: string;
1234
1236
  name: string;
1235
1237
  price: {
@@ -1283,6 +1285,7 @@ export declare const FdoRestaurantQueueProduct: z.ZodObject<{
1283
1285
  }[] | null | undefined;
1284
1286
  customAttributes?: Record<string, any> | null | undefined;
1285
1287
  subCategories?: string[] | null | undefined;
1288
+ shelfLife?: number | null | undefined;
1286
1289
  code: string;
1287
1290
  name: string;
1288
1291
  price: {
@@ -1380,6 +1383,7 @@ export declare const FdoRestaurantQueueProduct: z.ZodObject<{
1380
1383
  }[] | null | undefined;
1381
1384
  customAttributes?: Record<string, any> | null | undefined;
1382
1385
  subCategories?: string[] | null | undefined;
1386
+ shelfLife?: number | null | undefined;
1383
1387
  code: string;
1384
1388
  name: string;
1385
1389
  price: {
@@ -1564,6 +1568,7 @@ export declare const FdoRestaurantQueueProduct: z.ZodObject<{
1564
1568
  }[] | null | undefined;
1565
1569
  customAttributes?: Record<string, any> | null | undefined;
1566
1570
  subCategories?: string[] | null | undefined;
1571
+ shelfLife?: number | null | undefined;
1567
1572
  code: string;
1568
1573
  name: string;
1569
1574
  price: {
@@ -2531,6 +2536,7 @@ export declare const FdoRestaurantQueueCart: z.ZodObject<{
2531
2536
  unit: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2532
2537
  customAttributes: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2533
2538
  subCategories: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2539
+ shelfLife: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
2534
2540
  }, "strip", z.ZodTypeAny, {
2535
2541
  unit?: string | null | undefined;
2536
2542
  categoryName?: string | null | undefined;
@@ -2577,6 +2583,7 @@ export declare const FdoRestaurantQueueCart: z.ZodObject<{
2577
2583
  }[] | null | undefined;
2578
2584
  customAttributes?: Record<string, any> | null | undefined;
2579
2585
  subCategories?: string[] | null | undefined;
2586
+ shelfLife?: number | null | undefined;
2580
2587
  code: string;
2581
2588
  name: string;
2582
2589
  price: {
@@ -2630,6 +2637,7 @@ export declare const FdoRestaurantQueueCart: z.ZodObject<{
2630
2637
  }[] | null | undefined;
2631
2638
  customAttributes?: Record<string, any> | null | undefined;
2632
2639
  subCategories?: string[] | null | undefined;
2640
+ shelfLife?: number | null | undefined;
2633
2641
  code: string;
2634
2642
  name: string;
2635
2643
  price: {
@@ -2727,6 +2735,7 @@ export declare const FdoRestaurantQueueCart: z.ZodObject<{
2727
2735
  }[] | null | undefined;
2728
2736
  customAttributes?: Record<string, any> | null | undefined;
2729
2737
  subCategories?: string[] | null | undefined;
2738
+ shelfLife?: number | null | undefined;
2730
2739
  code: string;
2731
2740
  name: string;
2732
2741
  price: {
@@ -2911,6 +2920,7 @@ export declare const FdoRestaurantQueueCart: z.ZodObject<{
2911
2920
  }[] | null | undefined;
2912
2921
  customAttributes?: Record<string, any> | null | undefined;
2913
2922
  subCategories?: string[] | null | undefined;
2923
+ shelfLife?: number | null | undefined;
2914
2924
  code: string;
2915
2925
  name: string;
2916
2926
  price: {
@@ -3116,6 +3126,7 @@ export declare const FdoRestaurantQueueCart: z.ZodObject<{
3116
3126
  }[] | null | undefined;
3117
3127
  customAttributes?: Record<string, any> | null | undefined;
3118
3128
  subCategories?: string[] | null | undefined;
3129
+ shelfLife?: number | null | undefined;
3119
3130
  code: string;
3120
3131
  name: string;
3121
3132
  price: {
@@ -3321,6 +3332,7 @@ export declare const FdoRestaurantQueueCart: z.ZodObject<{
3321
3332
  }[] | null | undefined;
3322
3333
  customAttributes?: Record<string, any> | null | undefined;
3323
3334
  subCategories?: string[] | null | undefined;
3335
+ shelfLife?: number | null | undefined;
3324
3336
  code: string;
3325
3337
  name: string;
3326
3338
  price: {
@@ -3852,6 +3852,7 @@ export declare const RestaurantQueueDto: z.ZodObject<{
3852
3852
  target: "PAYMENT";
3853
3853
  };
3854
3854
  success: boolean;
3855
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
3855
3856
  adjustment: {
3856
3857
  inclusive?: boolean | null | undefined;
3857
3858
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -3861,7 +3862,6 @@ export declare const RestaurantQueueDto: z.ZodObject<{
3861
3862
  };
3862
3863
  };
3863
3864
  referenceId: string;
3864
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
3865
3865
  }, {
3866
3866
  reason?: string | null | undefined;
3867
3867
  priority?: number | null | undefined;
@@ -3943,6 +3943,7 @@ export declare const RestaurantQueueDto: z.ZodObject<{
3943
3943
  target: "PAYMENT";
3944
3944
  };
3945
3945
  success: boolean;
3946
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
3946
3947
  adjustment: {
3947
3948
  inclusive?: boolean | null | undefined;
3948
3949
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -3952,7 +3953,6 @@ export declare const RestaurantQueueDto: z.ZodObject<{
3952
3953
  };
3953
3954
  };
3954
3955
  referenceId: string;
3955
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
3956
3956
  }>>, "many">>;
3957
3957
  option: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
3958
3958
  type: z.ZodEnum<["DINE_IN", "PICKUP", "DELIVERY"]>;
@@ -6059,6 +6059,7 @@ export declare const RestaurantQueueDto: z.ZodObject<{
6059
6059
  target: "PAYMENT";
6060
6060
  };
6061
6061
  success: boolean;
6062
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
6062
6063
  adjustment: {
6063
6064
  inclusive?: boolean | null | undefined;
6064
6065
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -6068,7 +6069,6 @@ export declare const RestaurantQueueDto: z.ZodObject<{
6068
6069
  };
6069
6070
  };
6070
6071
  referenceId: string;
6071
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
6072
6072
  })[];
6073
6073
  orderAt: string;
6074
6074
  }, {
@@ -6360,6 +6360,7 @@ export declare const RestaurantQueueDto: z.ZodObject<{
6360
6360
  target: "PAYMENT";
6361
6361
  };
6362
6362
  success: boolean;
6363
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
6363
6364
  adjustment: {
6364
6365
  inclusive?: boolean | null | undefined;
6365
6366
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -6369,7 +6370,6 @@ export declare const RestaurantQueueDto: z.ZodObject<{
6369
6370
  };
6370
6371
  };
6371
6372
  referenceId: string;
6372
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
6373
6373
  })[] | undefined;
6374
6374
  option: {
6375
6375
  remark?: string | null | undefined;
@@ -7441,6 +7441,7 @@ export declare const RestaurantQueueDto: z.ZodObject<{
7441
7441
  target: "PAYMENT";
7442
7442
  };
7443
7443
  success: boolean;
7444
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
7444
7445
  adjustment: {
7445
7446
  inclusive?: boolean | null | undefined;
7446
7447
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -7450,7 +7451,6 @@ export declare const RestaurantQueueDto: z.ZodObject<{
7450
7451
  };
7451
7452
  };
7452
7453
  referenceId: string;
7453
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
7454
7454
  })[];
7455
7455
  orderAt: string;
7456
7456
  } | null | undefined;
@@ -7878,6 +7878,7 @@ export declare const RestaurantQueueDto: z.ZodObject<{
7878
7878
  target: "PAYMENT";
7879
7879
  };
7880
7880
  success: boolean;
7881
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
7881
7882
  adjustment: {
7882
7883
  inclusive?: boolean | null | undefined;
7883
7884
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -7887,7 +7888,6 @@ export declare const RestaurantQueueDto: z.ZodObject<{
7887
7888
  };
7888
7889
  };
7889
7890
  referenceId: string;
7890
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
7891
7891
  })[] | undefined;
7892
7892
  option: {
7893
7893
  remark?: string | null | undefined;
@@ -8414,8 +8414,28 @@ export declare const RestaurantQueueUpdateStatusDto: z.ZodObject<{
8414
8414
  }, {
8415
8415
  status: "QUEUE" | "ARRIVED" | "EXPIRED" | "CALLED" | "CANCEL";
8416
8416
  }>;
8417
+ export declare const FdtoCreateQueueRequest: z.ZodObject<{
8418
+ phoneNumber: z.ZodString;
8419
+ name: z.ZodOptional<z.ZodString>;
8420
+ pax: z.ZodOptional<z.ZodNumber>;
8421
+ isSub: z.ZodOptional<z.ZodBoolean>;
8422
+ remark: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8423
+ }, "strip", z.ZodTypeAny, {
8424
+ name?: string | undefined;
8425
+ remark?: string | null | undefined;
8426
+ pax?: number | undefined;
8427
+ isSub?: boolean | undefined;
8428
+ phoneNumber: string;
8429
+ }, {
8430
+ name?: string | undefined;
8431
+ remark?: string | null | undefined;
8432
+ pax?: number | undefined;
8433
+ isSub?: boolean | undefined;
8434
+ phoneNumber: string;
8435
+ }>;
8417
8436
  export type RestaurantQueueStatusDto = z.infer<typeof RestaurantQueueStatusDto>;
8418
8437
  export type RestaurantQueueCartDto = z.infer<typeof RestaurantQueueCartDto>;
8419
8438
  export type RestaurantQueuePOSDto = z.infer<typeof RestaurantQueuePOSDto>;
8420
8439
  export type RestaurantQueueDto = z.infer<typeof RestaurantQueueDto>;
8421
8440
  export type RestaurantQueueUpdateStatusDto = z.infer<typeof RestaurantQueueUpdateStatusDto>;
8441
+ export type FdtoCreateQueueRequest = z.infer<typeof FdtoCreateQueueRequest>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-order-setting",
3
- "version": "0.0.48",
3
+ "version": "0.0.50",
4
4
  "type": "module",
5
5
  "module": "./dist/app.js",
6
6
  "license": "UNLICENSED",
@@ -26,8 +26,8 @@
26
26
  "format": "prettier --write src/"
27
27
  },
28
28
  "dependencies": {
29
- "@feedmepos/core": "^2.14.57",
30
- "@feedmepos/menu": "^1.7.30",
29
+ "@feedmepos/core": "^2.14.60",
30
+ "@feedmepos/menu": "^1.7.32",
31
31
  "@feedmepos/mf-common": "1.20.0-beta.2",
32
32
  "@feedmepos/ordering": "^0.0.3",
33
33
  "@feedmepos/ui-library": "1.5.2-beta.1",
@@ -70,4 +70,4 @@
70
70
  "vite": "^5.1.4",
71
71
  "vue-tsc": "^2.2.0"
72
72
  }
73
- }
73
+ }
@@ -6,6 +6,7 @@ import type { OrderSettingsDto } from '@entity'
6
6
  import {
7
7
  FdoQueueQrSetting,
8
8
  FdoRestaurantDineIn,
9
+ FdoRestaurantDriveThru,
9
10
  FdoRestaurantPickup,
10
11
  FdoRestaurantSetting,
11
12
  FdoServiceChargeSetting
@@ -34,6 +35,11 @@ export const restaurantApi = {
34
35
  return getData(result)
35
36
  },
36
37
 
38
+ async updateDriveThruSetting(setting: FdoRestaurantDriveThru) {
39
+ const result = await restaurantClientInstance().put('/drive-thru', setting)
40
+ return getData(result)
41
+ },
42
+
37
43
  async updateServiceCharge(setting: FdoServiceChargeSetting) {
38
44
  const result = await restaurantClientInstance().put('/service-charge-setting', setting)
39
45
  return getData(result)
@@ -97,6 +97,10 @@
97
97
  "deviceDetails": "Device Details",
98
98
  "dineIn": "Dine In",
99
99
  "dineInCanTakeaway": "Allow Takeaway",
100
+ "driveThru": "Drive Thru",
101
+ "driveThruSettingUpdated": "Drive thru setting updated.",
102
+ "enableDriveThru": "Enable Drive Thru",
103
+ "enableDriveThruSublabel": "Enable drive thru ordering for customers",
100
104
  "dineInType": "Dine In Type",
101
105
  "discountCampaign": "Discount Campaign",
102
106
  "displayStand": "Display Stand",
@@ -294,6 +298,18 @@
294
298
  "unbindKioskDeviceWarning": "Are you sure want to unbind device? If yes, please enter {machineId} inside the textfield",
295
299
  "unbindSuccess": "Kiosk display successfully unbinded.",
296
300
  "unbindWarning": "Please enter the machine ID to confirm unbind.",
301
+ "searchDevices": "Search by slot, machine ID, or name...",
302
+ "allTypes": "All Types",
303
+ "tabletOnly": "Tablet Only",
304
+ "kioskOnly": "Kiosk Only",
305
+ "showingDevices": "Showing {count} of {total}",
306
+ "noDevicesMatch": "No devices match your search criteria.",
307
+ "noDevicesBound": "No devices bound yet. Click \"Bind device\" to add one.",
308
+ "clickToCopy": "Click to copy",
309
+ "machineIdCopied": "Machine ID copied to clipboard",
310
+ "copyFailed": "Failed to copy to clipboard",
311
+ "pinSet": "PIN Set",
312
+ "noPin": "No PIN",
297
313
  "unknown": "Unknown",
298
314
  "update": "Update",
299
315
  "updatedAt": "Updated at",
@@ -97,6 +97,10 @@
97
97
  "deviceDetails": "デバイス詳細",
98
98
  "dineIn": "店内飲食",
99
99
  "dineInCanTakeaway": "テイクアウト許可",
100
+ "driveThru": "ドライブスルー",
101
+ "driveThruSettingUpdated": "ドライブスルー設定が更新されました。",
102
+ "enableDriveThru": "ドライブスルーを有効にする",
103
+ "enableDriveThruSublabel": "お客様向けのドライブスルー注文を有効にする",
100
104
  "dineInType": "店内飲食タイプ",
101
105
  "discountCampaign": "割引キャンペーン",
102
106
  "displayStand": "ディスプレイスタンド",
@@ -289,6 +293,18 @@
289
293
  "unbindKioskDeviceWarning": "デバイスの紐付けを解除してもよろしいですか?解除する場合は、テキストフィールドに{machineId}を入力してください",
290
294
  "unbindSuccess": "キオスクディスプレイの紐付けが正常に解除されました。",
291
295
  "unbindWarning": "紐付け解除を確認するには、マシンIDを入力してください。",
296
+ "searchDevices": "スロット、マシンID、名前で検索...",
297
+ "allTypes": "すべてのタイプ",
298
+ "tabletOnly": "タブレットのみ",
299
+ "kioskOnly": "キオスクのみ",
300
+ "showingDevices": "{count} / {total} 件表示",
301
+ "noDevicesMatch": "検索条件に一致するデバイスはありません",
302
+ "noDevicesBound": "まだデバイスがバインドされていません。「デバイスをバインド」をクリックして追加してください。",
303
+ "clickToCopy": "クリックしてコピー",
304
+ "machineIdCopied": "マシンIDをクリップボードにコピーしました",
305
+ "copyFailed": "クリップボードへのコピーに失敗しました",
306
+ "pinSet": "PIN設定済み",
307
+ "noPin": "PINなし",
292
308
  "unknown": "不明",
293
309
  "update": "更新",
294
310
  "updatedAt": "更新日時",
@@ -97,6 +97,10 @@
97
97
  "deviceDetails": "รายละเอียดอุปกรณ์",
98
98
  "dineIn": "รับประทานอาหารที่ร้าน",
99
99
  "dineInCanTakeaway": "อนุญาตให้นำกลับบ้าน",
100
+ "driveThru": "ไดรฟ์ทรู",
101
+ "driveThruSettingUpdated": "อัปเดตการตั้งค่าไดรฟ์ทรูแล้ว",
102
+ "enableDriveThru": "เปิดใช้งานไดรฟ์ทรู",
103
+ "enableDriveThruSublabel": "เปิดใช้งานการสั่งอาหารไดรฟ์ทรูสำหรับลูกค้า",
100
104
  "dineInType": "ประเภทรับประทานอาหารที่ร้าน",
101
105
  "discountCampaign": "แคมเปญส่วนลด",
102
106
  "displayStand": "แท่นวางสินค้า",
@@ -289,6 +293,18 @@
289
293
  "unbindKioskDeviceWarning": "คุณแน่ใจว่าต้องการยกเลิกการเชื่อมโยงอุปกรณ์หรือไม่ หากใช่ โปรดป้อน {machineId} ในช่องข้อความ",
290
294
  "unbindSuccess": "ยกเลิกการเชื่อมโยงจอแสดงผล Kiosk สำเร็จแล้ว",
291
295
  "unbindWarning": "โปรดป้อน ID เครื่องเพื่อยืนยันการยกเลิกการเชื่อมโยง",
296
+ "searchDevices": "ค้นหาตามสล็อต, ID เครื่อง หรือชื่อ...",
297
+ "allTypes": "ทุกประเภท",
298
+ "tabletOnly": "แท็บเล็ตเท่านั้น",
299
+ "kioskOnly": "คีออสก์เท่านั้น",
300
+ "showingDevices": "แสดง {count} จาก {total}",
301
+ "noDevicesMatch": "ไม่มีอุปกรณ์ตรงกับเกณฑ์การค้นหาของคุณ",
302
+ "noDevicesBound": "ยังไม่มีอุปกรณ์ที่ผูกไว้ คลิก \"ผูกอุปกรณ์\" เพื่อเพิ่ม",
303
+ "clickToCopy": "คลิกเพื่อคัดลอก",
304
+ "machineIdCopied": "คัดลอก ID เครื่องไปยังคลิปบอร์ดแล้ว",
305
+ "copyFailed": "ไม่สามารถคัดลอกไปยังคลิปบอร์ด",
306
+ "pinSet": "ตั้ง PIN แล้ว",
307
+ "noPin": "ไม่มี PIN",
292
308
  "unknown": "ไม่ทราบ",
293
309
  "update": "อัปเดต",
294
310
  "updatedAt": "อัปเดตเมื่อ",
@@ -98,6 +98,10 @@
98
98
  "deviceDetails": "设备详情",
99
99
  "dineIn": "堂食",
100
100
  "dineInCanTakeaway": "允许外带",
101
+ "driveThru": "得来速",
102
+ "driveThruSettingUpdated": "得来速设置已更新。",
103
+ "enableDriveThru": "启用得来速",
104
+ "enableDriveThruSublabel": "为顾客启用得来速点餐",
101
105
  "dineInType": "堂食类型",
102
106
  "discountCampaign": "促销活动",
103
107
  "displayStand": "桌牌",
@@ -296,6 +300,18 @@
296
300
  "unbindKioskDeviceWarning": "你确定要解除绑定设备吗?如果是,请在文本框中输入{machineId}",
297
301
  "unbindSuccess": "自助点餐设备成功解除绑定",
298
302
  "unbindWarning": "请输入设备ID以确认解除绑定",
303
+ "searchDevices": "按槽位、设备ID或名称搜索...",
304
+ "allTypes": "全部类型",
305
+ "tabletOnly": "仅平板",
306
+ "kioskOnly": "仅自助终端",
307
+ "showingDevices": "显示 {count} / {total}",
308
+ "noDevicesMatch": "没有设备符合您的搜索条件",
309
+ "noDevicesBound": "尚未绑定任何设备。点击\"绑定设备\"添加。",
310
+ "clickToCopy": "点击复制",
311
+ "machineIdCopied": "设备ID已复制到剪贴板",
312
+ "copyFailed": "复制到剪贴板失败",
313
+ "pinSet": "已设置PIN",
314
+ "noPin": "无PIN",
299
315
  "unknown": "未知",
300
316
  "update": "更新",
301
317
  "updatedAt": "更新于",
package/src/main.ts CHANGED
@@ -38,9 +38,9 @@ app.use(FeedMeUI, {
38
38
  locale: detectLocale(),
39
39
  })
40
40
 
41
- app.use(createPinia())
41
+ app.use(createPinia() as any)
42
42
  app.use(router)
43
- app.use(initI18n())
43
+ app.use(initI18n() as any)
44
44
 
45
45
 
46
46
  const CoreStore = useCoreStore();
@@ -15,6 +15,7 @@ export interface MfKioskDevice {
15
15
  pinInfo?: string,
16
16
  deviceAppVersion?: string,
17
17
  deviceAppOTAVersion?: string,
18
+ lastStartup?: Date,
18
19
  }
19
20
 
20
21
 
@@ -16,6 +16,7 @@ const toMfKioskDevice = (dto: KioskDeviceDto): MfKioskDevice => {
16
16
  pinInfo: dto.pinInfo ?? undefined,
17
17
  deviceAppVersion: dto.deviceAppVersion ?? undefined,
18
18
  deviceAppOTAVersion: dto.deviceAppOTAVersion ?? undefined,
19
+ lastStartup: dto.lastStartup ? new Date(dto.lastStartup) : undefined,
19
20
  };
20
21
  };
21
22
 
@@ -4,6 +4,7 @@ import {
4
4
  F_FEATURE,
5
5
  F_PAYOUT_ACCOUNT_STATUS,
6
6
  FdoRestaurantDineIn,
7
+ FdoRestaurantDriveThru,
7
8
  FdoRestaurantFeedmeDelivery,
8
9
  FdoRestaurantInHouseDelivery,
9
10
  FdoRestaurantPickup,
@@ -92,6 +93,10 @@ export const useRestaurantStore = defineStore('restaurant', () => {
92
93
  await restaurantApi.updatePickupSetting(setting)
93
94
  }
94
95
 
96
+ async function updateDriveThruSetting(setting: FdoRestaurantDriveThru) {
97
+ await restaurantApi.updateDriveThruSetting(setting)
98
+ }
99
+
95
100
  async function updateInhouseDelivery(restaurantId: string, dto: FdoRestaurantInHouseDelivery) {
96
101
  await remoteOrderApi.integratedDelivery.updateInhouse(restaurantId, dto)
97
102
  }
@@ -149,6 +154,7 @@ export const useRestaurantStore = defineStore('restaurant', () => {
149
154
  updateServiceCharge,
150
155
  updateDineInSetting,
151
156
  updatePickupSetting,
157
+ updateDriveThruSetting,
152
158
  updateInhouseDelivery,
153
159
  updateFeedmeDelivery,
154
160
  updateIntegratedFoodpandaDelivery,