@feedmepos/mf-order-setting 0.0.84 → 0.0.85

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 (109) hide show
  1. package/dist/DisplaySystemView-hmlT9gsb.js +6485 -0
  2. package/dist/{KioskDevicesView-DdwFuenU.js → KioskDevicesView-fW6M9Hao.js} +1 -1
  3. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-CxtLm_oh.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-GrsnYo80.js} +3 -3
  4. package/dist/KioskSettingView-BdEPftHH.js +839 -0
  5. package/dist/{KioskView-fwBwUGCQ.js → KioskView-Bwk9S0tc.js} +82 -70
  6. package/dist/{OrderSettingsView-RhlyZmzs.js → OrderSettingsView-DVXfVdXj.js} +30858 -30699
  7. package/dist/{app-ClOkRxOZ.js → app-BnrruYco.js} +74 -12
  8. package/dist/app.js +1 -1
  9. package/dist/display-preview/assets/BandBoard-DIcfXsNV.js +1 -0
  10. package/dist/display-preview/assets/CarouselBlock-XAhTyEWB.js +1 -0
  11. package/dist/display-preview/assets/{CategoryBoard-DClMUGfS.js → CategoryBoard-DBKe18hv.js} +1 -1
  12. package/dist/display-preview/assets/ImageBlock-BCbnYSHq.js +1 -0
  13. package/dist/display-preview/assets/PickupMode-Df_TPCh8.js +1 -0
  14. package/dist/display-preview/assets/{StatusBoard-BVESD28J.js → StatusBoard-28z3bPOf.js} +1 -1
  15. package/dist/display-preview/assets/TextBlock-CvJKITtx.js +1 -0
  16. package/dist/display-preview/assets/VideoBlock-Dop43wDv.js +1 -0
  17. package/dist/display-preview/assets/index-C6DET5zJ.css +1 -0
  18. package/dist/display-preview/assets/index-cqMoOpSN.js +2 -0
  19. package/dist/display-preview/assets/pickupView-DRMVXqrc.js +1 -0
  20. package/dist/display-preview/index.html +2 -2
  21. package/dist/frontend/mf-order/src/app.d.ts +62 -0
  22. package/dist/frontend/mf-order/src/main.d.ts +62 -0
  23. package/dist/frontend/mf-order/src/modules/display-system/interface.d.ts +21 -0
  24. package/dist/frontend/mf-order/src/modules/order-setting/kiosk/coverCarousel.d.ts +69 -0
  25. package/dist/frontend/mf-order/src/modules/order-setting/kiosk/interface.d.ts +5 -1
  26. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +90 -3
  27. package/dist/frontend/mf-order/src/views/display-system/DisplayFieldControl.vue.d.ts +3 -0
  28. package/dist/frontend/mf-order/src/views/display-system/DisplayInspector.vue.d.ts +3 -13
  29. package/dist/frontend/mf-order/src/views/order-settings/auto-send-kitchen.d.ts +58 -0
  30. package/dist/frontend/mf-order/src/views/order-settings/delivery/inhouse/InHouseDelivery.vue.d.ts +16 -1
  31. package/dist/frontend/mf-order/src/views/order-settings/pickup/PickUpSettingDialogContent.vue.d.ts +16 -1
  32. package/dist/frontend/mf-order/src/views/order-settings/useAutoSendGuard.d.ts +48 -0
  33. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  34. package/dist/{index-CKEbr9Es.js → index-D5wABuUx.js} +1 -1
  35. package/dist/{index-5k7kGCpJ.js → index-D7IWjZdy.js} +2 -2
  36. package/dist/{index-I2YGevce.js → index-LyvBqKnv.js} +1 -1
  37. package/dist/{order.dto-Dbn-hRrm.js → order.dto-D7HGiueX.js} +3579 -3428
  38. package/dist/package/entity/alert/investigation.dto.d.ts +25 -6
  39. package/dist/package/entity/alert/lark-callback.dto.d.ts +31 -12
  40. package/dist/package/entity/alert/suggestion.dto.d.ts +4 -4
  41. package/dist/package/entity/display/blocks.d.ts +42 -76
  42. package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +47 -36
  43. package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +1 -0
  44. package/dist/package/entity/index.d.ts +2 -0
  45. package/dist/package/entity/index.frontend.d.ts +2 -0
  46. package/dist/package/entity/order/effects/effect.dto.d.ts +266 -0
  47. package/dist/package/entity/order/order-item/order-item.dto.d.ts +36 -36
  48. package/dist/package/entity/order/order.do.d.ts +7 -64
  49. package/dist/package/entity/order/order.dto.d.ts +13006 -795
  50. package/dist/package/entity/order-platform/grabfood/grabfood-settings.do.d.ts +13 -0
  51. package/dist/package/entity/order-platform/grabfood/grabfood.dto.d.ts +3 -0
  52. package/dist/package/entity/order-platform/menu.dto.d.ts +10 -10
  53. package/dist/package/entity/order-platform/shopeefood/shopeefood-order.dto.d.ts +11 -8
  54. package/dist/package/entity/order-setting/auto-accept.dto.d.ts +94 -0
  55. package/dist/package/entity/order-setting/auto-send.resolve.d.ts +110 -0
  56. package/dist/package/entity/order-setting/delivery/inhouse-delivery.do.d.ts +3 -0
  57. package/dist/package/entity/order-setting/delivery/inhouse-delivery.dto.d.ts +3 -0
  58. package/dist/package/entity/order-setting/dine-in/dine-in.do.d.ts +3 -0
  59. package/dist/package/entity/order-setting/dine-in/dine-in.dto.d.ts +3 -0
  60. package/dist/package/entity/order-setting/kiosk/kiosk.do.d.ts +26 -0
  61. package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +39 -0
  62. package/dist/package/entity/order-setting/order-setting.do.d.ts +57 -4
  63. package/dist/package/entity/order-setting/order-setting.dto.d.ts +259 -9
  64. package/dist/package/entity/order-setting/pickup/pickup.do.d.ts +3 -0
  65. package/dist/package/entity/order-setting/pickup/pickup.dto.d.ts +3 -0
  66. package/dist/package/entity/order-setting/queue/queue.do.d.ts +2 -2
  67. package/dist/package/entity/order-setting/queue/queue.dto.d.ts +2 -2
  68. package/dist/package/entity/queue/queue.dto.d.ts +48 -48
  69. package/dist/package/entity/restaurant/restaurant.dto.d.ts +46 -8
  70. package/dist/package/entity/websocket/websocket.dto.d.ts +88 -0
  71. package/dist/style.css +1 -1
  72. package/package.json +2 -2
  73. package/src/locales/en-US.json +22 -2
  74. package/src/locales/ja-JP.json +12 -1
  75. package/src/locales/th-TH.json +12 -1
  76. package/src/locales/zh-CN.json +22 -2
  77. package/src/modules/display-system/interface.spec.ts +32 -18
  78. package/src/modules/display-system/interface.ts +32 -0
  79. package/src/modules/order-setting/kiosk/coverCarousel.spec.ts +172 -0
  80. package/src/modules/order-setting/kiosk/coverCarousel.ts +186 -0
  81. package/src/modules/order-setting/kiosk/interface.ts +138 -127
  82. package/src/stores/order-setting/mapper.spec.ts +26 -0
  83. package/src/stores/order-setting/mapper.ts +305 -293
  84. package/src/views/display-system/DisplayFieldControl.vue +46 -0
  85. package/src/views/display-system/DisplayInspector.vue +8 -3
  86. package/src/views/display-system/DisplaySystemView.vue +7 -3
  87. package/src/views/display-system/DisplayTemplateEditor.vue +28 -2
  88. package/src/views/kiosk/settings/KioskSettingView.vue +176 -60
  89. package/src/views/order-settings/auto-send-kitchen.spec.ts +137 -0
  90. package/src/views/order-settings/auto-send-kitchen.ts +92 -0
  91. package/src/views/order-settings/auto-send-resolve.spec.ts +123 -0
  92. package/src/views/order-settings/delivery/DeliverySetting.vue +10 -0
  93. package/src/views/order-settings/delivery/inhouse/InHouseDelivery.vue +40 -5
  94. package/src/views/order-settings/dine-in/DineInSetting.vue +38 -5
  95. package/src/views/order-settings/pickup/PickUpSetting.vue +1 -0
  96. package/src/views/order-settings/pickup/PickUpSettingDialogContent.vue +38 -5
  97. package/src/views/order-settings/queue/QueueSetting.vue +6 -9
  98. package/src/views/order-settings/useAutoSendGuard.ts +142 -0
  99. package/tsconfig.app.json +10 -1
  100. package/dist/DisplaySystemView-4Bz8p26A.js +0 -5892
  101. package/dist/KioskSettingView-D57KtQ-t.js +0 -711
  102. package/dist/display-preview/assets/BandBoard-BrDTYDc9.js +0 -1
  103. package/dist/display-preview/assets/CarouselBlock-CrkGxoGk.js +0 -1
  104. package/dist/display-preview/assets/ImageBlock-DtgfHd5G.js +0 -1
  105. package/dist/display-preview/assets/PickupMode-DKmqGlG8.js +0 -1
  106. package/dist/display-preview/assets/TextBlock-gAfeCCmE.js +0 -1
  107. package/dist/display-preview/assets/index-BB0ReVXy.js +0 -2
  108. package/dist/display-preview/assets/index-BWVpFSIw.css +0 -1
  109. package/dist/display-preview/assets/pickupView-C-BGcOu8.js +0 -1
@@ -13,6 +13,7 @@ export declare const FdoGrabfoodAdditionalStore: z.ZodObject<{
13
13
  enable: z.ZodBoolean;
14
14
  integrationStatus: z.ZodNullable<z.ZodOptional<z.ZodString>>;
15
15
  lastSynchronize: z.ZodNullable<z.ZodOptional<z.ZodString>>;
16
+ lastAvailabilitySync: z.ZodNullable<z.ZodOptional<z.ZodString>>;
16
17
  status: z.ZodNullable<z.ZodOptional<z.ZodString>>;
17
18
  menuSyncError: z.ZodNullable<z.ZodOptional<z.ZodString>>;
18
19
  menuRetryCount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -23,6 +24,7 @@ export declare const FdoGrabfoodAdditionalStore: z.ZodObject<{
23
24
  catalogId?: string | null | undefined;
24
25
  lastSynchronize?: string | null | undefined;
25
26
  menuSyncError?: string | null | undefined;
27
+ lastAvailabilitySync?: string | null | undefined;
26
28
  integrationStatus?: string | null | undefined;
27
29
  menuRetryCount?: number | null | undefined;
28
30
  integrationId: string;
@@ -34,6 +36,7 @@ export declare const FdoGrabfoodAdditionalStore: z.ZodObject<{
34
36
  catalogId?: string | null | undefined;
35
37
  lastSynchronize?: string | null | undefined;
36
38
  menuSyncError?: string | null | undefined;
39
+ lastAvailabilitySync?: string | null | undefined;
37
40
  integrationStatus?: string | null | undefined;
38
41
  menuRetryCount?: number | null | undefined;
39
42
  integrationId: string;
@@ -49,6 +52,7 @@ export declare const FdoGrabfoodSettings: z.ZodObject<z.extendShape<{
49
52
  merchantID: z.ZodString;
50
53
  catalogId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
51
54
  lastSynchronize: z.ZodNullable<z.ZodOptional<z.ZodString>>;
55
+ lastAvailabilitySync: z.ZodNullable<z.ZodOptional<z.ZodString>>;
52
56
  printReceiptAfterClose: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
53
57
  commissionRate: z.ZodNumber;
54
58
  autoCloseBill: z.ZodBoolean;
@@ -70,6 +74,7 @@ export declare const FdoGrabfoodSettings: z.ZodObject<z.extendShape<{
70
74
  enable: z.ZodBoolean;
71
75
  integrationStatus: z.ZodNullable<z.ZodOptional<z.ZodString>>;
72
76
  lastSynchronize: z.ZodNullable<z.ZodOptional<z.ZodString>>;
77
+ lastAvailabilitySync: z.ZodNullable<z.ZodOptional<z.ZodString>>;
73
78
  status: z.ZodNullable<z.ZodOptional<z.ZodString>>;
74
79
  menuSyncError: z.ZodNullable<z.ZodOptional<z.ZodString>>;
75
80
  menuRetryCount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -80,6 +85,7 @@ export declare const FdoGrabfoodSettings: z.ZodObject<z.extendShape<{
80
85
  catalogId?: string | null | undefined;
81
86
  lastSynchronize?: string | null | undefined;
82
87
  menuSyncError?: string | null | undefined;
88
+ lastAvailabilitySync?: string | null | undefined;
83
89
  integrationStatus?: string | null | undefined;
84
90
  menuRetryCount?: number | null | undefined;
85
91
  integrationId: string;
@@ -91,6 +97,7 @@ export declare const FdoGrabfoodSettings: z.ZodObject<z.extendShape<{
91
97
  catalogId?: string | null | undefined;
92
98
  lastSynchronize?: string | null | undefined;
93
99
  menuSyncError?: string | null | undefined;
100
+ lastAvailabilitySync?: string | null | undefined;
94
101
  integrationStatus?: string | null | undefined;
95
102
  menuRetryCount?: number | null | undefined;
96
103
  integrationId: string;
@@ -102,6 +109,7 @@ export declare const FdoGrabfoodSettings: z.ZodObject<z.extendShape<{
102
109
  catalogId?: string | null | undefined;
103
110
  lastSynchronize?: string | null | undefined;
104
111
  menuSyncError?: string | null | undefined;
112
+ lastAvailabilitySync?: string | null | undefined;
105
113
  integrationStatus?: string | null | undefined;
106
114
  menuRetryCount?: number | null | undefined;
107
115
  integrationId: string;
@@ -113,6 +121,7 @@ export declare const FdoGrabfoodSettings: z.ZodObject<z.extendShape<{
113
121
  catalogId?: string | null | undefined;
114
122
  lastSynchronize?: string | null | undefined;
115
123
  menuSyncError?: string | null | undefined;
124
+ lastAvailabilitySync?: string | null | undefined;
116
125
  integrationStatus?: string | null | undefined;
117
126
  menuRetryCount?: number | null | undefined;
118
127
  integrationId: string;
@@ -129,6 +138,7 @@ export declare const FdoGrabfoodSettings: z.ZodObject<z.extendShape<{
129
138
  menuSyncError?: string | null | undefined;
130
139
  printReceiptAfterClose?: boolean | null | undefined;
131
140
  syncIGI?: boolean | null | undefined;
141
+ lastAvailabilitySync?: string | null | undefined;
132
142
  showProductAddon?: boolean | null | undefined;
133
143
  ignoreDiscount?: boolean | null | undefined;
134
144
  additionalStores?: {
@@ -137,6 +147,7 @@ export declare const FdoGrabfoodSettings: z.ZodObject<z.extendShape<{
137
147
  catalogId?: string | null | undefined;
138
148
  lastSynchronize?: string | null | undefined;
139
149
  menuSyncError?: string | null | undefined;
150
+ lastAvailabilitySync?: string | null | undefined;
140
151
  integrationStatus?: string | null | undefined;
141
152
  menuRetryCount?: number | null | undefined;
142
153
  integrationId: string;
@@ -162,6 +173,7 @@ export declare const FdoGrabfoodSettings: z.ZodObject<z.extendShape<{
162
173
  menuSyncError?: string | null | undefined;
163
174
  printReceiptAfterClose?: boolean | null | undefined;
164
175
  syncIGI?: boolean | null | undefined;
176
+ lastAvailabilitySync?: string | null | undefined;
165
177
  showProductAddon?: boolean | null | undefined;
166
178
  ignoreDiscount?: boolean | null | undefined;
167
179
  additionalStores?: {
@@ -170,6 +182,7 @@ export declare const FdoGrabfoodSettings: z.ZodObject<z.extendShape<{
170
182
  catalogId?: string | null | undefined;
171
183
  lastSynchronize?: string | null | undefined;
172
184
  menuSyncError?: string | null | undefined;
185
+ lastAvailabilitySync?: string | null | undefined;
173
186
  integrationStatus?: string | null | undefined;
174
187
  menuRetryCount?: number | null | undefined;
175
188
  integrationId: string;
@@ -1704,6 +1704,7 @@ export declare const FdtoGrabfoodCreateOrUpdateSettings: z.ZodObject<{
1704
1704
  printReceiptAfterClose: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
1705
1705
  syncIGI: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
1706
1706
  commissionRate: z.ZodOptional<z.ZodNumber>;
1707
+ lastAvailabilitySync: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1707
1708
  showProductAddon: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
1708
1709
  ignoreDiscount: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
1709
1710
  integrationStatus: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -1725,6 +1726,7 @@ export declare const FdtoGrabfoodCreateOrUpdateSettings: z.ZodObject<{
1725
1726
  printReceiptAfterClose?: boolean | null | undefined;
1726
1727
  syncIGI?: boolean | null | undefined;
1727
1728
  commissionRate?: number | undefined;
1729
+ lastAvailabilitySync?: string | null | undefined;
1728
1730
  showProductAddon?: boolean | null | undefined;
1729
1731
  ignoreDiscount?: boolean | null | undefined;
1730
1732
  partnerMerchantID?: string | null | undefined;
@@ -1746,6 +1748,7 @@ export declare const FdtoGrabfoodCreateOrUpdateSettings: z.ZodObject<{
1746
1748
  printReceiptAfterClose?: boolean | null | undefined;
1747
1749
  syncIGI?: boolean | null | undefined;
1748
1750
  commissionRate?: number | undefined;
1751
+ lastAvailabilitySync?: string | null | undefined;
1749
1752
  showProductAddon?: boolean | null | undefined;
1750
1753
  ignoreDiscount?: boolean | null | undefined;
1751
1754
  partnerMerchantID?: string | null | undefined;
@@ -266,9 +266,9 @@ export declare const FdtoMergedProduct: z.ZodObject<{
266
266
  precision: number;
267
267
  } | null | undefined;
268
268
  openPrice?: boolean | null | undefined;
269
- noSst?: boolean | null | undefined;
270
269
  customAttributes?: Record<string, any> | null | undefined;
271
270
  shelfLife?: number | null | undefined;
271
+ noSst?: boolean | null | undefined;
272
272
  thumbnail?: string | null | undefined;
273
273
  takeawayUsed?: string | null | undefined;
274
274
  inventoryBindings?: {
@@ -339,9 +339,9 @@ export declare const FdtoMergedProduct: z.ZodObject<{
339
339
  precision: number;
340
340
  } | null | undefined;
341
341
  openPrice?: boolean | null | undefined;
342
- noSst?: boolean | null | undefined;
343
342
  customAttributes?: Record<string, any> | null | undefined;
344
343
  shelfLife?: number | null | undefined;
344
+ noSst?: boolean | null | undefined;
345
345
  thumbnail?: string | null | undefined;
346
346
  takeawayUsed?: string | null | undefined;
347
347
  inventoryBindings?: {
@@ -662,9 +662,9 @@ export declare const FdtoMergedMenuRes: z.ZodObject<{
662
662
  precision: number;
663
663
  } | null | undefined;
664
664
  openPrice?: boolean | null | undefined;
665
- noSst?: boolean | null | undefined;
666
665
  customAttributes?: Record<string, any> | null | undefined;
667
666
  shelfLife?: number | null | undefined;
667
+ noSst?: boolean | null | undefined;
668
668
  thumbnail?: string | null | undefined;
669
669
  takeawayUsed?: string | null | undefined;
670
670
  inventoryBindings?: {
@@ -735,9 +735,9 @@ export declare const FdtoMergedMenuRes: z.ZodObject<{
735
735
  precision: number;
736
736
  } | null | undefined;
737
737
  openPrice?: boolean | null | undefined;
738
- noSst?: boolean | null | undefined;
739
738
  customAttributes?: Record<string, any> | null | undefined;
740
739
  shelfLife?: number | null | undefined;
740
+ noSst?: boolean | null | undefined;
741
741
  thumbnail?: string | null | undefined;
742
742
  takeawayUsed?: string | null | undefined;
743
743
  inventoryBindings?: {
@@ -1042,9 +1042,9 @@ export declare const FdtoMergedMenuRes: z.ZodObject<{
1042
1042
  precision: number;
1043
1043
  } | null | undefined;
1044
1044
  openPrice?: boolean | null | undefined;
1045
- noSst?: boolean | null | undefined;
1046
1045
  customAttributes?: Record<string, any> | null | undefined;
1047
1046
  shelfLife?: number | null | undefined;
1047
+ noSst?: boolean | null | undefined;
1048
1048
  thumbnail?: string | null | undefined;
1049
1049
  takeawayUsed?: string | null | undefined;
1050
1050
  inventoryBindings?: {
@@ -1115,9 +1115,9 @@ export declare const FdtoMergedMenuRes: z.ZodObject<{
1115
1115
  precision: number;
1116
1116
  } | null | undefined;
1117
1117
  openPrice?: boolean | null | undefined;
1118
- noSst?: boolean | null | undefined;
1119
1118
  customAttributes?: Record<string, any> | null | undefined;
1120
1119
  shelfLife?: number | null | undefined;
1120
+ noSst?: boolean | null | undefined;
1121
1121
  thumbnail?: string | null | undefined;
1122
1122
  takeawayUsed?: string | null | undefined;
1123
1123
  inventoryBindings?: {
@@ -1194,9 +1194,9 @@ export declare const FdtoMergedMenuRes: z.ZodObject<{
1194
1194
  precision: number;
1195
1195
  } | null | undefined;
1196
1196
  openPrice?: boolean | null | undefined;
1197
- noSst?: boolean | null | undefined;
1198
1197
  customAttributes?: Record<string, any> | null | undefined;
1199
1198
  shelfLife?: number | null | undefined;
1199
+ noSst?: boolean | null | undefined;
1200
1200
  thumbnail?: string | null | undefined;
1201
1201
  takeawayUsed?: string | null | undefined;
1202
1202
  inventoryBindings?: {
@@ -1285,9 +1285,9 @@ export declare const FdtoMergedMenuRes: z.ZodObject<{
1285
1285
  precision: number;
1286
1286
  } | null | undefined;
1287
1287
  openPrice?: boolean | null | undefined;
1288
- noSst?: boolean | null | undefined;
1289
1288
  customAttributes?: Record<string, any> | null | undefined;
1290
1289
  shelfLife?: number | null | undefined;
1290
+ noSst?: boolean | null | undefined;
1291
1291
  thumbnail?: string | null | undefined;
1292
1292
  takeawayUsed?: string | null | undefined;
1293
1293
  inventoryBindings?: {
@@ -1362,9 +1362,9 @@ export declare const FdtoMergedMenuRes: z.ZodObject<{
1362
1362
  precision: number;
1363
1363
  } | null | undefined;
1364
1364
  openPrice?: boolean | null | undefined;
1365
- noSst?: boolean | null | undefined;
1366
1365
  customAttributes?: Record<string, any> | null | undefined;
1367
1366
  shelfLife?: number | null | undefined;
1367
+ noSst?: boolean | null | undefined;
1368
1368
  thumbnail?: string | null | undefined;
1369
1369
  takeawayUsed?: string | null | undefined;
1370
1370
  inventoryBindings?: {
@@ -1453,9 +1453,9 @@ export declare const FdtoMergedMenuRes: z.ZodObject<{
1453
1453
  precision: number;
1454
1454
  } | null | undefined;
1455
1455
  openPrice?: boolean | null | undefined;
1456
- noSst?: boolean | null | undefined;
1457
1456
  customAttributes?: Record<string, any> | null | undefined;
1458
1457
  shelfLife?: number | null | undefined;
1458
+ noSst?: boolean | null | undefined;
1459
1459
  thumbnail?: string | null | undefined;
1460
1460
  takeawayUsed?: string | null | undefined;
1461
1461
  inventoryBindings?: {
@@ -1409,15 +1409,18 @@ export declare const SFQueryOrdersDto: z.ZodObject<{
1409
1409
  store_id: z.ZodString;
1410
1410
  from_date: z.ZodString;
1411
1411
  end_date: z.ZodString;
1412
+ order_submission_sync_status: z.ZodOptional<z.ZodNumber>;
1412
1413
  order_submission_status: z.ZodOptional<z.ZodNumber>;
1413
1414
  page_num: z.ZodOptional<z.ZodNumber>;
1414
1415
  }, "strip", z.ZodTypeAny, {
1416
+ order_submission_sync_status?: number | undefined;
1415
1417
  order_submission_status?: number | undefined;
1416
1418
  page_num?: number | undefined;
1417
1419
  store_id: string;
1418
1420
  from_date: string;
1419
1421
  end_date: string;
1420
1422
  }, {
1423
+ order_submission_sync_status?: number | undefined;
1421
1424
  order_submission_status?: number | undefined;
1422
1425
  page_num?: number | undefined;
1423
1426
  store_id: string;
@@ -1435,16 +1438,16 @@ export declare const SFQueryOrderSummary: z.ZodObject<{
1435
1438
  order_id: string;
1436
1439
  store_id: string;
1437
1440
  vendor_id: string;
1441
+ order_submission_sync_status: number;
1438
1442
  order_status: string;
1439
1443
  order_submit_time: string;
1440
- order_submission_sync_status: number;
1441
1444
  }, {
1442
1445
  order_id: string;
1443
1446
  store_id: string;
1444
1447
  vendor_id: string;
1448
+ order_submission_sync_status: number;
1445
1449
  order_status: string;
1446
1450
  order_submit_time: string;
1447
- order_submission_sync_status: number;
1448
1451
  }>;
1449
1452
  export declare const SFQueryOrdersRes: z.ZodObject<{
1450
1453
  code: z.ZodNumber;
@@ -1461,16 +1464,16 @@ export declare const SFQueryOrdersRes: z.ZodObject<{
1461
1464
  order_id: string;
1462
1465
  store_id: string;
1463
1466
  vendor_id: string;
1467
+ order_submission_sync_status: number;
1464
1468
  order_status: string;
1465
1469
  order_submit_time: string;
1466
- order_submission_sync_status: number;
1467
1470
  }, {
1468
1471
  order_id: string;
1469
1472
  store_id: string;
1470
1473
  vendor_id: string;
1474
+ order_submission_sync_status: number;
1471
1475
  order_status: string;
1472
1476
  order_submit_time: string;
1473
- order_submission_sync_status: number;
1474
1477
  }>, "many">;
1475
1478
  has_more: z.ZodBoolean;
1476
1479
  }, "strip", z.ZodTypeAny, {
@@ -1478,9 +1481,9 @@ export declare const SFQueryOrdersRes: z.ZodObject<{
1478
1481
  order_id: string;
1479
1482
  store_id: string;
1480
1483
  vendor_id: string;
1484
+ order_submission_sync_status: number;
1481
1485
  order_status: string;
1482
1486
  order_submit_time: string;
1483
- order_submission_sync_status: number;
1484
1487
  }[];
1485
1488
  has_more: boolean;
1486
1489
  }, {
@@ -1488,9 +1491,9 @@ export declare const SFQueryOrdersRes: z.ZodObject<{
1488
1491
  order_id: string;
1489
1492
  store_id: string;
1490
1493
  vendor_id: string;
1494
+ order_submission_sync_status: number;
1491
1495
  order_status: string;
1492
1496
  order_submit_time: string;
1493
- order_submission_sync_status: number;
1494
1497
  }[];
1495
1498
  has_more: boolean;
1496
1499
  }>;
@@ -1500,9 +1503,9 @@ export declare const SFQueryOrdersRes: z.ZodObject<{
1500
1503
  order_id: string;
1501
1504
  store_id: string;
1502
1505
  vendor_id: string;
1506
+ order_submission_sync_status: number;
1503
1507
  order_status: string;
1504
1508
  order_submit_time: string;
1505
- order_submission_sync_status: number;
1506
1509
  }[];
1507
1510
  has_more: boolean;
1508
1511
  };
@@ -1514,9 +1517,9 @@ export declare const SFQueryOrdersRes: z.ZodObject<{
1514
1517
  order_id: string;
1515
1518
  store_id: string;
1516
1519
  vendor_id: string;
1520
+ order_submission_sync_status: number;
1517
1521
  order_status: string;
1518
1522
  order_submit_time: string;
1519
- order_submission_sync_status: number;
1520
1523
  }[];
1521
1524
  has_more: boolean;
1522
1525
  };
@@ -0,0 +1,94 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * One channel's auto-accept pair, exactly as `isAutoAcceptable`
4
+ * (backend/libs/incoming-order/incoming-order.service.ts) reads it.
5
+ *
6
+ * The two fields are NOT independent booleans and a single "does it
7
+ * auto-accept" boolean cannot express them: with `autoAcceptPaidOnly: true` the
8
+ * channel auto-accepts PAID orders and holds unpaid ones. So a restaurant in
9
+ * that mode resolves `autoSendKitchen: null` to true for some orders and false
10
+ * for others — which is why both fields travel.
11
+ */
12
+ export declare const OrderSettingChannelAutoAccept: z.ZodObject<{
13
+ autoAccept: z.ZodBoolean;
14
+ autoAcceptPaidOnly: z.ZodBoolean;
15
+ }, "strip", z.ZodTypeAny, {
16
+ autoAccept: boolean;
17
+ autoAcceptPaidOnly: boolean;
18
+ }, {
19
+ autoAccept: boolean;
20
+ autoAcceptPaidOnly: boolean;
21
+ }>;
22
+ /**
23
+ * Read-only projection of each FeedMe-native channel's auto-accept.
24
+ *
25
+ * The portal cannot read these itself: QR dine-in's lives on `FdoQrOrdering`
26
+ * (CouchDB doc `qrOrdering`), pickup's on `FdoRestaurantSetting.pickup`, and
27
+ * in-house delivery's on `FdoRestaurantSetting.inHouseDelivery` — none of which
28
+ * are part of `OrderSettings`. mf-order needs them to resolve what
29
+ * `autoSendKitchen: null` ("follow auto-accept") actually evaluates to, so it
30
+ * can refuse the auto-close-without-kitchen-send combination.
31
+ *
32
+ * Read-only on purpose. Auto-accept is edited from POS; exposing a writer here
33
+ * would give the same flag two owners.
34
+ */
35
+ export declare const OrderSettingAutoAcceptDto: z.ZodObject<{
36
+ dineIn: z.ZodNullable<z.ZodOptional<z.ZodObject<{
37
+ autoAccept: z.ZodBoolean;
38
+ autoAcceptPaidOnly: z.ZodBoolean;
39
+ }, "strip", z.ZodTypeAny, {
40
+ autoAccept: boolean;
41
+ autoAcceptPaidOnly: boolean;
42
+ }, {
43
+ autoAccept: boolean;
44
+ autoAcceptPaidOnly: boolean;
45
+ }>>>;
46
+ pickup: z.ZodNullable<z.ZodOptional<z.ZodObject<{
47
+ autoAccept: z.ZodBoolean;
48
+ autoAcceptPaidOnly: z.ZodBoolean;
49
+ }, "strip", z.ZodTypeAny, {
50
+ autoAccept: boolean;
51
+ autoAcceptPaidOnly: boolean;
52
+ }, {
53
+ autoAccept: boolean;
54
+ autoAcceptPaidOnly: boolean;
55
+ }>>>;
56
+ inhouseDelivery: z.ZodNullable<z.ZodOptional<z.ZodObject<{
57
+ autoAccept: z.ZodBoolean;
58
+ autoAcceptPaidOnly: z.ZodBoolean;
59
+ }, "strip", z.ZodTypeAny, {
60
+ autoAccept: boolean;
61
+ autoAcceptPaidOnly: boolean;
62
+ }, {
63
+ autoAccept: boolean;
64
+ autoAcceptPaidOnly: boolean;
65
+ }>>>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ pickup?: {
68
+ autoAccept: boolean;
69
+ autoAcceptPaidOnly: boolean;
70
+ } | null | undefined;
71
+ dineIn?: {
72
+ autoAccept: boolean;
73
+ autoAcceptPaidOnly: boolean;
74
+ } | null | undefined;
75
+ inhouseDelivery?: {
76
+ autoAccept: boolean;
77
+ autoAcceptPaidOnly: boolean;
78
+ } | null | undefined;
79
+ }, {
80
+ pickup?: {
81
+ autoAccept: boolean;
82
+ autoAcceptPaidOnly: boolean;
83
+ } | null | undefined;
84
+ dineIn?: {
85
+ autoAccept: boolean;
86
+ autoAcceptPaidOnly: boolean;
87
+ } | null | undefined;
88
+ inhouseDelivery?: {
89
+ autoAccept: boolean;
90
+ autoAcceptPaidOnly: boolean;
91
+ } | null | undefined;
92
+ }>;
93
+ export type OrderSettingChannelAutoAccept = z.infer<typeof OrderSettingChannelAutoAccept>;
94
+ export type OrderSettingAutoAcceptDto = z.infer<typeof OrderSettingAutoAcceptDto>;
@@ -0,0 +1,110 @@
1
+ import type { OrderSettingChannelAutoAccept } from './auto-accept.dto';
2
+ /**
3
+ * The single definition of what a FeedMe-native channel DOES to an order:
4
+ * whether it is accepted automatically, whether the kitchen is notified, and
5
+ * whether the bill closes.
6
+ *
7
+ * Shared deliberately. The same chain used to be written four times in
8
+ * `backend/libs/incoming-order/incoming-order.service.ts` (in-house delivery,
9
+ * queue, dine-in, kiosk, pickup) and re-derived again in three Vue files, and
10
+ * that duplication is exactly how the Queue settings page drifted out of step
11
+ * and reopened the bug this branch exists to fix. One copy, called by every
12
+ * producer, cannot drift.
13
+ *
14
+ * Import it RELATIVELY from the backend, never through the `@entity` barrel:
15
+ * the barrel pulls `zod-openapi/extend` and dies under ts-jest in a worktree
16
+ * (`.openapi is not a function`). This module has one type-only import and no
17
+ * runtime dependencies, so a relative import is safe from anywhere.
18
+ */
19
+ /** Whether THIS order arrived already paid. Decides the paid-only branch. */
20
+ export type OrderPaidState = boolean;
21
+ /**
22
+ * The per-channel half of `isAutoAcceptable`
23
+ * (`backend/libs/incoming-order/incoming-order.service.ts`), which is the only
24
+ * part a settings page can reason about.
25
+ *
26
+ * `null` = the channel's auto-accept could not be read (its CouchDB document
27
+ * may not exist yet). Callers must treat that as unknown and claim nothing —
28
+ * never as `false`.
29
+ */
30
+ export declare function resolveAutoAccept(channel: OrderSettingChannelAutoAccept | null | undefined, paid: OrderPaidState): boolean | null;
31
+ /**
32
+ * Whether the kitchen is notified when the order is accepted.
33
+ *
34
+ * The chain, in priority order:
35
+ * 1. the channel's own `autoSendKitchen`
36
+ * 2. `inheritFrom` — dine-in's value, for the channels that inherit it
37
+ * (QUEUE and KIOSK); omitted for channels that own their setting
38
+ * 3. `autoAccept` — the legacy "auto accept = auto send" binding, which is
39
+ * what every unmigrated restaurant still resolves to, so leaving the
40
+ * setting unset changes nothing for them
41
+ *
42
+ * `??` and not `||`: an explicit `false` must WIN over the fallbacks, which is
43
+ * the whole point of being able to turn kitchen-send off on a channel that
44
+ * auto-accepts.
45
+ */
46
+ export declare function resolveAutoSend(autoSendKitchen: boolean | null | undefined, autoAccept: boolean, inheritFrom?: boolean | null): boolean;
47
+ /**
48
+ * The stamped `autoCloseBill`, after the one invariant that makes every other
49
+ * guard unnecessary:
50
+ *
51
+ * **a bill is only closed automatically if the kitchen was notified.**
52
+ *
53
+ * A closed bill can no longer be sent to the kitchen, so the pair
54
+ * `autoSend: false` + `autoCloseBill: true` is never coherent — it is the
55
+ * reported bug, in configuration form.
56
+ *
57
+ * Enforcing it at the point of RESOLUTION rather than on the settings pages
58
+ * covers everything that reaches that resolver: queue, kiosk, stale portal
59
+ * bundles, direct API writes, and merchants who never open the page. A guard on
60
+ * the settings pages cannot, which is what the Queue page proved.
61
+ *
62
+ * It only covers callers that invoke it. Two do: the native order -> IncomingOrder
63
+ * stamper (`IncomingOrderService.toIncomingBillOption`) and `external-ordering-api`,
64
+ * which builds its own config and posts straight to incoming-order-backend. The
65
+ * delivery-platform backends need no call because they hardcode `autoSend: true`.
66
+ * Call this from any NEW producer — the guarantee is "every caller", not "every
67
+ * code path in the system".
68
+ *
69
+ * It suppresses the close rather than forcing the send on purpose. Forcing the
70
+ * send would start kitchen tickets the merchant never asked for — double
71
+ * cooking, wasted food. Suppressing loses nothing: the bill stays open and
72
+ * staff send and close it by hand, which is what they were already doing.
73
+ */
74
+ export declare function resolveAutoCloseBill(autoCloseBill: boolean | null | undefined, autoSend: boolean): boolean;
75
+ /**
76
+ * The bill-side flags of an IncomingOrder config, made coherent together.
77
+ *
78
+ * `autoCloseBill` and `printReceiptAfterClose` cannot be decided separately.
79
+ * POS gates the print on
80
+ * `canCloseBill && hasPayment && (printReceiptAfterClose ?? true)` — it never
81
+ * reads `autoCloseBill` — so suppressing the close while leaving the print set
82
+ * hands the customer a receipt for a bill that is still open. Note the
83
+ * `?? true`: ABSENT MEANS PRINT, so suppressing has to write an explicit
84
+ * `false`, not merely leave it unset.
85
+ *
86
+ * `suppressed` is deliberately `!autoSend && autoCloseBill === true`, not a
87
+ * before/after comparison of `autoCloseBill`:
88
+ * - the comparison form reports a suppression for a config that simply has
89
+ * `autoCloseBill` unset (`resolveAutoCloseBill` normalises nullish to
90
+ * `false`, and `false !== undefined`), which would force
91
+ * `printReceiptAfterClose: false` over a merchant's `true` when nothing was
92
+ * suppressed at all;
93
+ * - `!autoSend` rather than `autoSend === false` because an ABSENT `autoSend`
94
+ * suppresses the close too, and the print has to follow it there as well.
95
+ * Stored documents predate the required-boolean schemas, so absent is real.
96
+ *
97
+ * Both producers of an IncomingOrder config call this: the FeedMe-native
98
+ * stamper and `external-ordering-api`. Keeping it here rather than in either of
99
+ * them is what makes it testable — `external-ordering-api` is not on CI's jest
100
+ * path allowlist, so a copy of this logic living there would never be run.
101
+ */
102
+ export declare function resolveBillClosing(config: {
103
+ autoSend?: boolean | null;
104
+ autoCloseBill?: boolean | null;
105
+ printReceiptAfterClose?: boolean | null;
106
+ }): {
107
+ autoCloseBill: boolean;
108
+ printReceiptAfterClose: boolean | null | undefined;
109
+ suppressed: boolean;
110
+ };
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const FdoOrderInhouseDeliverySettings: z.ZodObject<{
3
+ autoSendKitchen: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
3
4
  autoCloseBill: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
4
5
  printReceiptAfterClose: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
5
6
  allowReject: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
@@ -7,9 +8,11 @@ export declare const FdoOrderInhouseDeliverySettings: z.ZodObject<{
7
8
  autoCloseBill?: boolean | null | undefined;
8
9
  allowReject?: boolean | null | undefined;
9
10
  printReceiptAfterClose?: boolean | null | undefined;
11
+ autoSendKitchen?: boolean | null | undefined;
10
12
  }, {
11
13
  autoCloseBill?: boolean | null | undefined;
12
14
  allowReject?: boolean | null | undefined;
13
15
  printReceiptAfterClose?: boolean | null | undefined;
16
+ autoSendKitchen?: boolean | null | undefined;
14
17
  }>;
15
18
  export type FdoOrderInhouseDeliverySettings = z.infer<typeof FdoOrderInhouseDeliverySettings>;
@@ -1,12 +1,15 @@
1
1
  import { z } from 'zod';
2
2
  export declare const OrderInhouseDeliverySettingsDto: z.ZodObject<{
3
+ autoSendKitchen: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
3
4
  autoCloseBill: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
4
5
  printReceiptAfterClose: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
5
6
  }, "strip", z.ZodTypeAny, {
6
7
  autoCloseBill?: boolean | null | undefined;
7
8
  printReceiptAfterClose?: boolean | null | undefined;
9
+ autoSendKitchen?: boolean | null | undefined;
8
10
  }, {
9
11
  autoCloseBill?: boolean | null | undefined;
10
12
  printReceiptAfterClose?: boolean | null | undefined;
13
+ autoSendKitchen?: boolean | null | undefined;
11
14
  }>;
12
15
  export type OrderInhouseDeliverySettingsDto = z.infer<typeof OrderInhouseDeliverySettingsDto>;
@@ -25,6 +25,7 @@ export declare const FdoOrderDineInSettings: z.ZodObject<{
25
25
  mergeAction?: "concat" | "keep" | "override" | undefined;
26
26
  }>>>;
27
27
  tableCartSyncMode: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEnum<["poll", "realtime"]>>>>;
28
+ autoSendKitchen: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
28
29
  autoCloseBill: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
29
30
  printReceiptAfterClose: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
30
31
  allowReject: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
@@ -36,6 +37,7 @@ export declare const FdoOrderDineInSettings: z.ZodObject<{
36
37
  autoCloseBill?: boolean | null | undefined;
37
38
  allowReject?: boolean | null | undefined;
38
39
  printReceiptAfterClose?: boolean | null | undefined;
40
+ autoSendKitchen?: boolean | null | undefined;
39
41
  printChecklist?: boolean | null | undefined;
40
42
  overridePax: boolean | null;
41
43
  tableCartSyncMode: "poll" | "realtime" | null;
@@ -47,6 +49,7 @@ export declare const FdoOrderDineInSettings: z.ZodObject<{
47
49
  autoCloseBill?: boolean | null | undefined;
48
50
  allowReject?: boolean | null | undefined;
49
51
  printReceiptAfterClose?: boolean | null | undefined;
52
+ autoSendKitchen?: boolean | null | undefined;
50
53
  printChecklist?: boolean | null | undefined;
51
54
  overridePax?: boolean | null | undefined;
52
55
  tableCartSyncMode?: "poll" | "realtime" | null | undefined;
@@ -23,6 +23,7 @@ export declare const OrderDineInSettingsDto: z.ZodObject<{
23
23
  mergeAction?: "concat" | "keep" | "override" | undefined;
24
24
  }>>>;
25
25
  tableCartSyncMode: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEnum<["poll", "realtime"]>>>>;
26
+ autoSendKitchen: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
26
27
  autoCloseBill: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
27
28
  printReceiptAfterClose: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
28
29
  }, "strip", z.ZodTypeAny, {
@@ -32,6 +33,7 @@ export declare const OrderDineInSettingsDto: z.ZodObject<{
32
33
  } | null | undefined;
33
34
  autoCloseBill?: boolean | null | undefined;
34
35
  printReceiptAfterClose?: boolean | null | undefined;
36
+ autoSendKitchen?: boolean | null | undefined;
35
37
  printChecklist?: boolean | null | undefined;
36
38
  overridePax: boolean | null;
37
39
  tableCartSyncMode: "poll" | "realtime" | null;
@@ -42,6 +44,7 @@ export declare const OrderDineInSettingsDto: z.ZodObject<{
42
44
  } | null | undefined;
43
45
  autoCloseBill?: boolean | null | undefined;
44
46
  printReceiptAfterClose?: boolean | null | undefined;
47
+ autoSendKitchen?: boolean | null | undefined;
45
48
  printChecklist?: boolean | null | undefined;
46
49
  overridePax?: boolean | null | undefined;
47
50
  tableCartSyncMode?: "poll" | "realtime" | null | undefined;