@feedmepos/mf-order-setting 0.0.27 → 0.0.28

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 (70) hide show
  1. package/dist/{KioskDevicesView-AKvyDF3w.js → KioskDevicesView-BgXkmJ7v.js} +1 -1
  2. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-Cx8VMyNB.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-DZT0BuUN.js} +2 -2
  3. package/dist/{KioskSettingView-equ5EIvU.js → KioskSettingView-DyX3Wv_2.js} +1 -1
  4. package/dist/{KioskView-CsE7BGtA.js → KioskView-Bgff7QPc.js} +4 -4
  5. package/dist/OrderSettingsView-C63s4uCD.js +74334 -0
  6. package/dist/{app-D-zQN9_E.js → app-Dp79Gu_F.js} +97 -25
  7. package/dist/app.js +1 -1
  8. package/dist/{dayjs.min-CWQSmujV.js → dayjs.min-B2ZkfNUH.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/app.d.ts +72 -0
  13. package/dist/frontend/mf-order/src/main.d.ts +72 -0
  14. package/dist/frontend/mf-order/src/stores/business/index.d.ts +62 -0
  15. package/dist/frontend/mf-order/src/stores/menu/menu.d.ts +138 -125
  16. package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +81 -78
  17. package/dist/frontend/mf-order/src/views/all-orders/ReflowOrder.vue.d.ts +54 -52
  18. package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue.d.ts +4 -0
  19. package/dist/frontend/mf-order/src/views/order-settings/discount-rule/DiscountRuleSetting.vue.d.ts +2 -0
  20. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  21. package/dist/{index-BwrMcIf2.js → index-DzQn92Tp.js} +2 -2
  22. package/dist/package/entity/booking/booking.do.d.ts +596 -551
  23. package/dist/package/entity/delivery/delivery.dto.d.ts +118 -109
  24. package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +342 -652
  25. package/dist/package/entity/incoming-order/incoming-order.do.d.ts +13778 -478
  26. package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +728 -1227
  27. package/dist/package/entity/incoming-order/incoming-order.enum.d.ts +1 -1
  28. package/dist/package/entity/index.d.ts +1 -0
  29. package/dist/package/entity/kiosk/kiosk.do.d.ts +32 -0
  30. package/dist/package/entity/kiosk/kiosk.dto.d.ts +14 -14
  31. package/dist/package/entity/kiosk/marketing/marketing.dto.d.ts +1469 -621
  32. package/dist/package/entity/member/member.dto.d.ts +14 -7
  33. package/dist/package/entity/order/effects/effect.dto.d.ts +154 -6
  34. package/dist/package/entity/order/order-item/order-item.dto.d.ts +87 -34
  35. package/dist/package/entity/order/order.do.d.ts +177 -572
  36. package/dist/package/entity/order/order.dto.d.ts +902 -1412
  37. package/dist/package/entity/order-platform/external/menu/external-menu.dto.d.ts +8 -0
  38. package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +8 -0
  39. package/dist/package/entity/order-platform/external/order/external-order.dto.d.ts +22 -3
  40. package/dist/package/entity/order-platform/external/order/external-order.enum.d.ts +1 -1
  41. package/dist/package/entity/order-platform/external/setting/external-setting.do.d.ts +5 -0
  42. package/dist/package/entity/order-platform/external/setting/external-setting.dto.d.ts +5 -0
  43. package/dist/package/entity/order-platform/external/zus/zus-menu.dto.d.ts +192 -0
  44. package/dist/package/entity/order-platform/foodpanda/foodpanda-order.do.d.ts +104 -0
  45. package/dist/package/entity/order-platform/foodpanda/foodpanda-order.dto.d.ts +152 -109
  46. package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.do.d.ts +3 -0
  47. package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.dto.d.ts +3 -0
  48. package/dist/package/entity/order-platform/foodpanda/foodpanda.enum.d.ts +2 -0
  49. package/dist/package/entity/order-platform/grabfood/grabfood-order.do.d.ts +139 -109
  50. package/dist/package/entity/order-platform/grabfood/grabfood-settings.do.d.ts +3 -0
  51. package/dist/package/entity/order-platform/grabfood/grabfood.dto.d.ts +112 -2
  52. package/dist/package/entity/order-platform/order-platform.dto.d.ts +6 -3
  53. package/dist/package/entity/order-platform/shopeefood/shopeefood-order.do.d.ts +164 -109
  54. package/dist/package/entity/order-platform/shopeefood/shopeefood-order.dto.d.ts +22 -0
  55. package/dist/package/entity/order-platform/shopeefood/shopeefood-settings.do.d.ts +3 -0
  56. package/dist/package/entity/order-platform/shopeefood/shopeefood-settings.dto.d.ts +3 -0
  57. package/dist/queue.do-BUtcyDk3.js +125578 -0
  58. package/package.json +4 -3
  59. package/src/api/business/index.ts +16 -0
  60. package/src/api/effects/index.ts +7 -0
  61. package/src/api/index.ts +9 -1
  62. package/src/locales/en-US.json +24 -1
  63. package/src/locales/th-TH.json +24 -1
  64. package/src/locales/zh-CN.json +27 -1
  65. package/src/stores/business/index.ts +45 -0
  66. package/src/stores/restaurant/index.ts +3 -1
  67. package/src/views/order-settings/OrderSettingsView.vue +17 -5
  68. package/src/views/order-settings/discount-rule/DiscountRuleSetting.vue +434 -0
  69. package/dist/OrderSettingsView-BpLXyk_0.js +0 -49013
  70. package/dist/queue.do-F110q0_J.js +0 -100389
@@ -1696,6 +1696,7 @@ export declare const FdtoGrabfoodCreateOrUpdateSettings: z.ZodObject<{
1696
1696
  catalogId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1697
1697
  enable: z.ZodOptional<z.ZodBoolean>;
1698
1698
  autoCloseBill: z.ZodOptional<z.ZodBoolean>;
1699
+ printReceiptAfterClose: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
1699
1700
  commissionRate: z.ZodOptional<z.ZodNumber>;
1700
1701
  lastSynchronize: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1701
1702
  showProductAddon: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
@@ -1709,6 +1710,7 @@ export declare const FdtoGrabfoodCreateOrUpdateSettings: z.ZodObject<{
1709
1710
  catalogId?: string | null | undefined;
1710
1711
  enable?: boolean | undefined;
1711
1712
  autoCloseBill?: boolean | undefined;
1713
+ printReceiptAfterClose?: boolean | null | undefined;
1712
1714
  commissionRate?: number | undefined;
1713
1715
  lastSynchronize?: string | null | undefined;
1714
1716
  showProductAddon?: boolean | null | undefined;
@@ -1722,6 +1724,7 @@ export declare const FdtoGrabfoodCreateOrUpdateSettings: z.ZodObject<{
1722
1724
  catalogId?: string | null | undefined;
1723
1725
  enable?: boolean | undefined;
1724
1726
  autoCloseBill?: boolean | undefined;
1727
+ printReceiptAfterClose?: boolean | null | undefined;
1725
1728
  commissionRate?: number | undefined;
1726
1729
  lastSynchronize?: string | null | undefined;
1727
1730
  showProductAddon?: boolean | null | undefined;
@@ -1810,6 +1813,106 @@ declare const GFUpdateMenuItemDto: z.ZodObject<{
1810
1813
  merchantId: string;
1811
1814
  field: "ITEM" | "MODIFIER";
1812
1815
  }>;
1816
+ declare const GFUpdateMenuModifierDto: z.ZodObject<{
1817
+ merchantId: z.ZodString;
1818
+ field: z.ZodEnum<["ITEM", "MODIFIER"]>;
1819
+ id: z.ZodString;
1820
+ price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1821
+ name: z.ZodString;
1822
+ availableStatus: z.ZodNullable<z.ZodOptional<z.ZodEnum<["AVAILABLE", "UNAVAILABLE"]>>>;
1823
+ }, "strip", z.ZodTypeAny, {
1824
+ price?: number | null | undefined;
1825
+ availableStatus?: "AVAILABLE" | "UNAVAILABLE" | null | undefined;
1826
+ name: string;
1827
+ id: string;
1828
+ merchantId: string;
1829
+ field: "ITEM" | "MODIFIER";
1830
+ }, {
1831
+ price?: number | null | undefined;
1832
+ availableStatus?: "AVAILABLE" | "UNAVAILABLE" | null | undefined;
1833
+ name: string;
1834
+ id: string;
1835
+ merchantId: string;
1836
+ field: "ITEM" | "MODIFIER";
1837
+ }>;
1838
+ declare const GFBatchUpdateMenuDto: z.ZodObject<{
1839
+ merchantId: z.ZodString;
1840
+ field: z.ZodEnum<["ITEM", "MODIFIER"]>;
1841
+ menuEntities: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1842
+ merchantId: z.ZodString;
1843
+ field: z.ZodEnum<["ITEM", "MODIFIER"]>;
1844
+ id: z.ZodString;
1845
+ price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1846
+ availableStatus: z.ZodNullable<z.ZodOptional<z.ZodEnum<["AVAILABLE", "UNAVAILABLE"]>>>;
1847
+ }, "strip", z.ZodTypeAny, {
1848
+ price?: number | null | undefined;
1849
+ availableStatus?: "AVAILABLE" | "UNAVAILABLE" | null | undefined;
1850
+ id: string;
1851
+ merchantId: string;
1852
+ field: "ITEM" | "MODIFIER";
1853
+ }, {
1854
+ price?: number | null | undefined;
1855
+ availableStatus?: "AVAILABLE" | "UNAVAILABLE" | null | undefined;
1856
+ id: string;
1857
+ merchantId: string;
1858
+ field: "ITEM" | "MODIFIER";
1859
+ }>, z.ZodObject<{
1860
+ merchantId: z.ZodString;
1861
+ field: z.ZodEnum<["ITEM", "MODIFIER"]>;
1862
+ id: z.ZodString;
1863
+ price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1864
+ name: z.ZodString;
1865
+ availableStatus: z.ZodNullable<z.ZodOptional<z.ZodEnum<["AVAILABLE", "UNAVAILABLE"]>>>;
1866
+ }, "strip", z.ZodTypeAny, {
1867
+ price?: number | null | undefined;
1868
+ availableStatus?: "AVAILABLE" | "UNAVAILABLE" | null | undefined;
1869
+ name: string;
1870
+ id: string;
1871
+ merchantId: string;
1872
+ field: "ITEM" | "MODIFIER";
1873
+ }, {
1874
+ price?: number | null | undefined;
1875
+ availableStatus?: "AVAILABLE" | "UNAVAILABLE" | null | undefined;
1876
+ name: string;
1877
+ id: string;
1878
+ merchantId: string;
1879
+ field: "ITEM" | "MODIFIER";
1880
+ }>]>, "many">;
1881
+ }, "strip", z.ZodTypeAny, {
1882
+ merchantId: string;
1883
+ field: "ITEM" | "MODIFIER";
1884
+ menuEntities: ({
1885
+ price?: number | null | undefined;
1886
+ availableStatus?: "AVAILABLE" | "UNAVAILABLE" | null | undefined;
1887
+ id: string;
1888
+ merchantId: string;
1889
+ field: "ITEM" | "MODIFIER";
1890
+ } | {
1891
+ price?: number | null | undefined;
1892
+ availableStatus?: "AVAILABLE" | "UNAVAILABLE" | null | undefined;
1893
+ name: string;
1894
+ id: string;
1895
+ merchantId: string;
1896
+ field: "ITEM" | "MODIFIER";
1897
+ })[];
1898
+ }, {
1899
+ merchantId: string;
1900
+ field: "ITEM" | "MODIFIER";
1901
+ menuEntities: ({
1902
+ price?: number | null | undefined;
1903
+ availableStatus?: "AVAILABLE" | "UNAVAILABLE" | null | undefined;
1904
+ id: string;
1905
+ merchantId: string;
1906
+ field: "ITEM" | "MODIFIER";
1907
+ } | {
1908
+ price?: number | null | undefined;
1909
+ availableStatus?: "AVAILABLE" | "UNAVAILABLE" | null | undefined;
1910
+ name: string;
1911
+ id: string;
1912
+ merchantId: string;
1913
+ field: "ITEM" | "MODIFIER";
1914
+ })[];
1915
+ }>;
1813
1916
  declare const GFAcceptOrRejectGFOrderDto: z.ZodObject<{
1814
1917
  orderID: z.ZodString;
1815
1918
  toState: z.ZodEnum<["Accepted", "Rejected"]>;
@@ -2198,6 +2301,7 @@ export declare const GFListOrdersRes: z.ZodObject<{
2198
2301
  estimatedOrderReadyTime: string;
2199
2302
  maxOrderReadyTime: string;
2200
2303
  }>>>;
2304
+ orderState: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ACCEPTED", "DRIVER_ALLOCATED", "DRIVER_ARRIVED", "COLLECTED", "DELIVERED", "FAILED", "CANCELLED"]>>>;
2201
2305
  }, "strip", z.ZodTypeAny, {
2202
2306
  receiver?: {
2203
2307
  name?: string | null | undefined;
@@ -2246,6 +2350,7 @@ export declare const GFListOrdersRes: z.ZodObject<{
2246
2350
  estimatedOrderReadyTime: string;
2247
2351
  maxOrderReadyTime: string;
2248
2352
  } | null | undefined;
2353
+ orderState?: "FAILED" | "DELIVERED" | "CANCELLED" | "ACCEPTED" | "COLLECTED" | "DRIVER_ALLOCATED" | "DRIVER_ARRIVED" | null | undefined;
2249
2354
  price: {
2250
2355
  deliveryFee?: number | null | undefined;
2251
2356
  tax?: number | null | undefined;
@@ -2346,6 +2451,7 @@ export declare const GFListOrdersRes: z.ZodObject<{
2346
2451
  estimatedOrderReadyTime: string;
2347
2452
  maxOrderReadyTime: string;
2348
2453
  } | null | undefined;
2454
+ orderState?: "FAILED" | "DELIVERED" | "CANCELLED" | "ACCEPTED" | "COLLECTED" | "DRIVER_ALLOCATED" | "DRIVER_ARRIVED" | null | undefined;
2349
2455
  price: {
2350
2456
  deliveryFee?: number | null | undefined;
2351
2457
  tax?: number | null | undefined;
@@ -2448,6 +2554,7 @@ export declare const GFListOrdersRes: z.ZodObject<{
2448
2554
  estimatedOrderReadyTime: string;
2449
2555
  maxOrderReadyTime: string;
2450
2556
  } | null | undefined;
2557
+ orderState?: "FAILED" | "DELIVERED" | "CANCELLED" | "ACCEPTED" | "COLLECTED" | "DRIVER_ALLOCATED" | "DRIVER_ARRIVED" | null | undefined;
2451
2558
  price: {
2452
2559
  deliveryFee?: number | null | undefined;
2453
2560
  tax?: number | null | undefined;
@@ -2551,6 +2658,7 @@ export declare const GFListOrdersRes: z.ZodObject<{
2551
2658
  estimatedOrderReadyTime: string;
2552
2659
  maxOrderReadyTime: string;
2553
2660
  } | null | undefined;
2661
+ orderState?: "FAILED" | "DELIVERED" | "CANCELLED" | "ACCEPTED" | "COLLECTED" | "DRIVER_ALLOCATED" | "DRIVER_ARRIVED" | null | undefined;
2554
2662
  price: {
2555
2663
  deliveryFee?: number | null | undefined;
2556
2664
  tax?: number | null | undefined;
@@ -2653,14 +2761,14 @@ export declare const GFPushOrderStateDto: z.ZodObject<{
2653
2761
  code?: string | null | undefined;
2654
2762
  message?: string | null | undefined;
2655
2763
  driverETA?: number | null | undefined;
2656
- state: "FAILED" | "DELIVERED" | "CANCELLED" | "ACCEPTED" | "DRIVER_ALLOCATED" | "DRIVER_ARRIVED" | "COLLECTED";
2764
+ state: "FAILED" | "DELIVERED" | "CANCELLED" | "ACCEPTED" | "COLLECTED" | "DRIVER_ALLOCATED" | "DRIVER_ARRIVED";
2657
2765
  merchantID: string;
2658
2766
  orderID: string;
2659
2767
  }, {
2660
2768
  code?: string | null | undefined;
2661
2769
  message?: string | null | undefined;
2662
2770
  driverETA?: number | null | undefined;
2663
- state: "FAILED" | "DELIVERED" | "CANCELLED" | "ACCEPTED" | "DRIVER_ALLOCATED" | "DRIVER_ARRIVED" | "COLLECTED";
2771
+ state: "FAILED" | "DELIVERED" | "CANCELLED" | "ACCEPTED" | "COLLECTED" | "DRIVER_ALLOCATED" | "DRIVER_ARRIVED";
2664
2772
  merchantID: string;
2665
2773
  orderID: string;
2666
2774
  }>;
@@ -4394,12 +4502,14 @@ export type GFMarkOrderRes = z.infer<typeof GFMarkOrderRes>;
4394
4502
  export type GFListOrdersRes = z.infer<typeof GFListOrdersRes>;
4395
4503
  export type GFTempPauseStoreDto = z.infer<typeof GFTempPauseStoreDto>;
4396
4504
  export type GFAcceptOrRejectGFOrderDto = z.infer<typeof GFAcceptOrRejectGFOrderDto>;
4505
+ export type GFUpdateMenuModifierDto = z.infer<typeof GFUpdateMenuModifierDto>;
4397
4506
  export type GFReportDeliveryDto = z.infer<typeof GFReportDeliveryDto>;
4398
4507
  export type GFListOrdersDto = z.infer<typeof GFListOrdersDto>;
4399
4508
  export type GFUpdateMenuItemDto = z.infer<typeof GFUpdateMenuItemDto>;
4400
4509
  export type GFConfig = z.infer<typeof GFConfig>;
4401
4510
  export type GFLoginRes = z.infer<typeof GFLoginRes>;
4402
4511
  export type GFLoginReq = z.infer<typeof GFLoginReq>;
4512
+ export type GFBatchUpdateMenuDto = z.infer<typeof GFBatchUpdateMenuDto>;
4403
4513
  export type FdtoGrabfoodCampaignWorkingPeriod = z.infer<typeof FdtoGrabfoodCampaignWorkingPeriod>;
4404
4514
  export type FdtoGrabfoodCampaignWorkingHour = z.infer<typeof FdtoGrabfoodCampaignWorkingHour>;
4405
4515
  export type FdtoGrabfoodCampaignCondition = z.infer<typeof FdtoGrabfoodCampaignCondition>;
@@ -13,20 +13,23 @@ export declare const FdtoIntegrationUpdateOrderReq: z.ZodObject<z.extendShape<{
13
13
  platform: z.ZodString;
14
14
  action: z.ZodEnum<["SYNC_MENU", "UPDATE_ORDER", "GET_OR_UPDATE_SETTING"]>;
15
15
  }, {
16
- status: z.ZodEnum<["REJECT", "DONE_PREPARED", "ACCEPT"]>;
16
+ status: z.ZodEnum<["REJECT", "DONE_PREPARED", "ACCEPT", "COLLECTED"]>;
17
17
  orderId: z.ZodString;
18
18
  billId: z.ZodString;
19
19
  reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20
+ billRev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20
21
  }>, "strip", z.ZodTypeAny, {
21
22
  reason?: string | null | undefined;
22
- status: "ACCEPT" | "REJECT" | "DONE_PREPARED";
23
+ billRev?: string | null | undefined;
24
+ status: "ACCEPT" | "REJECT" | "DONE_PREPARED" | "COLLECTED";
23
25
  orderId: string;
24
26
  action: "SYNC_MENU" | "UPDATE_ORDER" | "GET_OR_UPDATE_SETTING";
25
27
  platform: string;
26
28
  billId: string;
27
29
  }, {
28
30
  reason?: string | null | undefined;
29
- status: "ACCEPT" | "REJECT" | "DONE_PREPARED";
31
+ billRev?: string | null | undefined;
32
+ status: "ACCEPT" | "REJECT" | "DONE_PREPARED" | "COLLECTED";
30
33
  orderId: string;
31
34
  action: "SYNC_MENU" | "UPDATE_ORDER" | "GET_OR_UPDATE_SETTING";
32
35
  platform: string;