@feedmepos/mf-order-setting 0.0.83 → 0.0.84

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 (75) hide show
  1. package/dist/{DisplaySystemView-BXy_OnbY.js → DisplaySystemView-4Bz8p26A.js} +1 -1
  2. package/dist/{KioskDevicesView-D3YR1e6K.js → KioskDevicesView-DdwFuenU.js} +1 -1
  3. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-CuhL_Q5C.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-CxtLm_oh.js} +3 -3
  4. package/dist/{KioskSettingView-C3L9_8ag.js → KioskSettingView-D57KtQ-t.js} +289 -240
  5. package/dist/{KioskView-Cs6VBCj5.js → KioskView-fwBwUGCQ.js} +113 -103
  6. package/dist/{OrderSettingsView-BdaHRXda.js → OrderSettingsView-RhlyZmzs.js} +1772 -1766
  7. package/dist/{app-CP6AFTEu.js → app-ClOkRxOZ.js} +26 -6
  8. package/dist/app.js +1 -1
  9. package/dist/common/util/index.d.ts +9 -0
  10. package/dist/frontend/mf-order/src/app.d.ts +20 -0
  11. package/dist/frontend/mf-order/src/main.d.ts +20 -0
  12. package/dist/frontend/mf-order/src/modules/order-setting/kiosk/interface.d.ts +2 -0
  13. package/dist/frontend/mf-order/src/modules/order-setting/kiosk/languages.d.ts +7 -0
  14. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +6 -0
  15. package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue.d.ts +8 -0
  16. package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/IntegratedDelivery.vue.d.ts +9 -0
  17. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  18. package/dist/{index-LCS8oexE.js → index-5k7kGCpJ.js} +2 -2
  19. package/dist/{index-BckeUsPc.js → index-CKEbr9Es.js} +1 -1
  20. package/dist/{index-DoJzzpyh.js → index-I2YGevce.js} +1 -1
  21. package/dist/{order.dto-Bm04C1sQ.js → order.dto-Dbn-hRrm.js} +3294 -3235
  22. package/dist/package/entity/alert/alert-base.dto.d.ts +306 -0
  23. package/dist/package/entity/alert/alert.dto.d.ts +956 -0
  24. package/dist/package/entity/alert/alert.enum.d.ts +7 -0
  25. package/dist/package/entity/alert/categories/integration.d.ts +333 -0
  26. package/dist/package/entity/alert/categories/kiosk.d.ts +297 -0
  27. package/dist/package/entity/alert/categories/mini-program.d.ts +297 -0
  28. package/dist/package/entity/alert/investigation.dto.d.ts +86 -0
  29. package/dist/package/entity/alert/lark-callback.dto.d.ts +106 -0
  30. package/dist/package/entity/alert/suggestion.dto.d.ts +31 -0
  31. package/dist/package/entity/alert/suggestion.enum.d.ts +7 -0
  32. package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +80 -0
  33. package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +575 -0
  34. package/dist/package/entity/index.d.ts +12 -0
  35. package/dist/package/entity/index.frontend.d.ts +1 -0
  36. package/dist/package/entity/member/member.dto.d.ts +2 -1
  37. package/dist/package/entity/order/order.do.d.ts +64 -7
  38. package/dist/package/entity/order/order.dto.d.ts +85 -67
  39. package/dist/package/entity/order/payment/payment.dto.d.ts +36 -28
  40. package/dist/package/entity/order-platform/external/auth/external-auth.dto.d.ts +9 -15
  41. package/dist/package/entity/order-platform/external/menu/external-master-menu.do.d.ts +33 -0
  42. package/dist/package/entity/order-platform/external/menu/external-menu.do.d.ts +1185 -23
  43. package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +1104 -52
  44. package/dist/package/entity/order-platform/external/order/external-order.dto.d.ts +2914 -88
  45. package/dist/package/entity/order-platform/external/setting/external-setting.do.d.ts +38 -0
  46. package/dist/package/entity/order-platform/external/setting/external-setting.dto.d.ts +26 -0
  47. package/dist/package/entity/order-platform/foodpanda/foodpanda-availability.dto.d.ts +75 -0
  48. package/dist/package/entity/order-platform/foodpanda/foodpanda-order.do.d.ts +9 -0
  49. package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.do.d.ts +13 -0
  50. package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.dto.d.ts +3 -0
  51. package/dist/package/entity/order-platform/shopeefood/shopeefood.enum.d.ts +6 -0
  52. package/dist/package/entity/order-platform/tng/tng-order.do.d.ts +6 -6
  53. package/dist/package/entity/order-platform/tng/tng.dto.d.ts +2 -2
  54. package/dist/package/entity/order-setting/kiosk/kiosk.do.d.ts +3 -0
  55. package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +3 -0
  56. package/dist/package/entity/order-setting/kiosk/kiosk.enum.d.ts +12 -0
  57. package/dist/package/entity/order-setting/order-setting.do.d.ts +5 -0
  58. package/dist/package/entity/order-setting/order-setting.dto.d.ts +10 -0
  59. package/dist/package/entity/payment/payment.dto.d.ts +2 -2
  60. package/dist/package/entity/payment/transaction.d.ts +115 -30
  61. package/dist/package/entity/queue/queue.dto.d.ts +13 -11
  62. package/dist/package/entity/restaurant/restaurant.dto.d.ts +5 -0
  63. package/dist/package/entity/websocket/websocket.dto.d.ts +12 -0
  64. package/package.json +1 -1
  65. package/src/locales/en-US.json +5 -0
  66. package/src/locales/ja-JP.json +5 -0
  67. package/src/locales/th-TH.json +5 -0
  68. package/src/locales/zh-CN.json +5 -0
  69. package/src/modules/order-setting/kiosk/interface.ts +8 -0
  70. package/src/modules/order-setting/kiosk/languages.ts +29 -0
  71. package/src/stores/order-setting/mapper.spec.ts +44 -0
  72. package/src/stores/order-setting/mapper.ts +9 -2
  73. package/src/views/kiosk/settings/KioskSettingView.vue +63 -0
  74. package/src/views/order-settings/delivery/integrated-delivery/IntegratedDelivery.vue +6 -1
  75. package/src/views/order-settings/delivery/integrated-delivery/LinemanSetting.vue +2 -1
@@ -29,6 +29,17 @@ export declare const FdoExternalDeliverySettings: z.ZodObject<{
29
29
  systemCode: string;
30
30
  } | null | undefined;
31
31
  }>;
32
+ /** Non-monetary, restaurant-scoped rollout switches. */
33
+ export declare const FdoExternalPricingCapabilities: z.ZodObject<{
34
+ payloadTaxSemantics: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
35
+ assertTotals: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ payloadTaxSemantics?: boolean | null | undefined;
38
+ assertTotals?: boolean | null | undefined;
39
+ }, {
40
+ payloadTaxSemantics?: boolean | null | undefined;
41
+ assertTotals?: boolean | null | undefined;
42
+ }>;
32
43
  export declare const FdoExternalSetting: z.ZodObject<{
33
44
  _id: z.ZodEffects<z.ZodString, string, string>;
34
45
  enable: z.ZodBoolean;
@@ -48,6 +59,16 @@ export declare const FdoExternalSetting: z.ZodObject<{
48
59
  * For zus also same, but for the giftcard store, they would like to follow product tax setting
49
60
  */
50
61
  skipAllocateTax: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
62
+ externalPricing: z.ZodNullable<z.ZodOptional<z.ZodObject<{
63
+ payloadTaxSemantics: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
64
+ assertTotals: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ payloadTaxSemantics?: boolean | null | undefined;
67
+ assertTotals?: boolean | null | undefined;
68
+ }, {
69
+ payloadTaxSemantics?: boolean | null | undefined;
70
+ assertTotals?: boolean | null | undefined;
71
+ }>>>;
51
72
  /**
52
73
  * MenuV1 only: group top-level items sharing the same (category, last subCategory)
53
74
  * into one synthetic item whose `variant`s are the real sizes, so the partner never
@@ -62,6 +83,10 @@ export declare const FdoExternalSetting: z.ZodObject<{
62
83
  printReceiptAfterClose?: boolean | null | undefined;
63
84
  bypass?: boolean | null | undefined;
64
85
  skipAllocateTax?: boolean | null | undefined;
86
+ externalPricing?: {
87
+ payloadTaxSemantics?: boolean | null | undefined;
88
+ assertTotals?: boolean | null | undefined;
89
+ } | null | undefined;
65
90
  groupItemsBySubCategory?: boolean | null | undefined;
66
91
  autoCloseBill: boolean;
67
92
  autoAccept: boolean;
@@ -71,6 +96,10 @@ export declare const FdoExternalSetting: z.ZodObject<{
71
96
  printReceiptAfterClose?: boolean | null | undefined;
72
97
  bypass?: boolean | null | undefined;
73
98
  skipAllocateTax?: boolean | null | undefined;
99
+ externalPricing?: {
100
+ payloadTaxSemantics?: boolean | null | undefined;
101
+ assertTotals?: boolean | null | undefined;
102
+ } | null | undefined;
74
103
  groupItemsBySubCategory?: boolean | null | undefined;
75
104
  autoCloseBill: boolean;
76
105
  autoAccept: boolean;
@@ -152,6 +181,10 @@ export declare const FdoExternalSetting: z.ZodObject<{
152
181
  printReceiptAfterClose?: boolean | null | undefined;
153
182
  bypass?: boolean | null | undefined;
154
183
  skipAllocateTax?: boolean | null | undefined;
184
+ externalPricing?: {
185
+ payloadTaxSemantics?: boolean | null | undefined;
186
+ assertTotals?: boolean | null | undefined;
187
+ } | null | undefined;
155
188
  groupItemsBySubCategory?: boolean | null | undefined;
156
189
  autoCloseBill: boolean;
157
190
  autoAccept: boolean;
@@ -182,6 +215,10 @@ export declare const FdoExternalSetting: z.ZodObject<{
182
215
  printReceiptAfterClose?: boolean | null | undefined;
183
216
  bypass?: boolean | null | undefined;
184
217
  skipAllocateTax?: boolean | null | undefined;
218
+ externalPricing?: {
219
+ payloadTaxSemantics?: boolean | null | undefined;
220
+ assertTotals?: boolean | null | undefined;
221
+ } | null | undefined;
185
222
  groupItemsBySubCategory?: boolean | null | undefined;
186
223
  autoCloseBill: boolean;
187
224
  autoAccept: boolean;
@@ -190,3 +227,4 @@ export declare const FdoExternalSetting: z.ZodObject<{
190
227
  platform: "IN_HOUSE" | "FEEDME" | "DELIVEROO" | "FOOD_PANDA" | "GRAB_FOOD" | "SHOPEE_FOOD" | "ZUS" | "TNG" | "HAKSHAN" | "US_PIZZA" | "GO_FOOD" | "LINEMAN";
191
228
  }>;
192
229
  export type FdoExternalSetting = z.infer<typeof FdoExternalSetting>;
230
+ export type FdoExternalPricingCapabilities = z.infer<typeof FdoExternalPricingCapabilities>;
@@ -10,12 +10,26 @@ export declare const FdtoExternalSettingCreateOrUpdate: z.ZodObject<Omit<{
10
10
  printReceiptAfterClose: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
11
11
  bypass: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
12
12
  skipAllocateTax: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
13
+ externalPricing: z.ZodNullable<z.ZodOptional<z.ZodObject<{
14
+ payloadTaxSemantics: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
15
+ assertTotals: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ payloadTaxSemantics?: boolean | null | undefined;
18
+ assertTotals?: boolean | null | undefined;
19
+ }, {
20
+ payloadTaxSemantics?: boolean | null | undefined;
21
+ assertTotals?: boolean | null | undefined;
22
+ }>>>;
13
23
  groupItemsBySubCategory: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
14
24
  }, "strip", z.ZodTypeAny, {
15
25
  allowReject?: boolean | null | undefined;
16
26
  printReceiptAfterClose?: boolean | null | undefined;
17
27
  bypass?: boolean | null | undefined;
18
28
  skipAllocateTax?: boolean | null | undefined;
29
+ externalPricing?: {
30
+ payloadTaxSemantics?: boolean | null | undefined;
31
+ assertTotals?: boolean | null | undefined;
32
+ } | null | undefined;
19
33
  groupItemsBySubCategory?: boolean | null | undefined;
20
34
  autoCloseBill: boolean;
21
35
  autoAccept: boolean;
@@ -25,6 +39,10 @@ export declare const FdtoExternalSettingCreateOrUpdate: z.ZodObject<Omit<{
25
39
  printReceiptAfterClose?: boolean | null | undefined;
26
40
  bypass?: boolean | null | undefined;
27
41
  skipAllocateTax?: boolean | null | undefined;
42
+ externalPricing?: {
43
+ payloadTaxSemantics?: boolean | null | undefined;
44
+ assertTotals?: boolean | null | undefined;
45
+ } | null | undefined;
28
46
  groupItemsBySubCategory?: boolean | null | undefined;
29
47
  autoCloseBill: boolean;
30
48
  autoAccept: boolean;
@@ -100,6 +118,10 @@ export declare const FdtoExternalSettingCreateOrUpdate: z.ZodObject<Omit<{
100
118
  printReceiptAfterClose?: boolean | null | undefined;
101
119
  bypass?: boolean | null | undefined;
102
120
  skipAllocateTax?: boolean | null | undefined;
121
+ externalPricing?: {
122
+ payloadTaxSemantics?: boolean | null | undefined;
123
+ assertTotals?: boolean | null | undefined;
124
+ } | null | undefined;
103
125
  groupItemsBySubCategory?: boolean | null | undefined;
104
126
  autoCloseBill: boolean;
105
127
  autoAccept: boolean;
@@ -129,6 +151,10 @@ export declare const FdtoExternalSettingCreateOrUpdate: z.ZodObject<Omit<{
129
151
  printReceiptAfterClose?: boolean | null | undefined;
130
152
  bypass?: boolean | null | undefined;
131
153
  skipAllocateTax?: boolean | null | undefined;
154
+ externalPricing?: {
155
+ payloadTaxSemantics?: boolean | null | undefined;
156
+ assertTotals?: boolean | null | undefined;
157
+ } | null | undefined;
132
158
  groupItemsBySubCategory?: boolean | null | undefined;
133
159
  autoCloseBill: boolean;
134
160
  autoAccept: boolean;
@@ -0,0 +1,75 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Foodpanda item-availability push.
4
+ *
5
+ * One request carries many item ids and a single `isAvailable`, so a batch of
6
+ * POS changes becomes two calls (the available set and the unavailable set)
7
+ * rather than one call per item.
8
+ */
9
+ export declare const FPUpdateCatalogItemAvailabilityRequest: z.ZodObject<{
10
+ globalEntityId: z.ZodString;
11
+ items: z.ZodArray<z.ZodString, "atleastone">;
12
+ type: z.ZodLiteral<"ITEM">;
13
+ isAvailable: z.ZodBoolean;
14
+ }, "strip", z.ZodTypeAny, {
15
+ type: "ITEM";
16
+ items: [string, ...string[]];
17
+ globalEntityId: string;
18
+ isAvailable: boolean;
19
+ }, {
20
+ type: "ITEM";
21
+ items: [string, ...string[]];
22
+ globalEntityId: string;
23
+ isAvailable: boolean;
24
+ }>;
25
+ /**
26
+ * Result detail is keyed by VENDOR, not by item — there is no per-item outcome
27
+ * to react to, so a partial failure cannot be attributed to a specific id.
28
+ */
29
+ export declare const FPCatalogItemAvailabilityResultDetail: z.ZodObject<{
30
+ platformVendorId: z.ZodString;
31
+ globalEntityId: z.ZodString;
32
+ status: z.ZodString;
33
+ }, "passthrough", z.ZodTypeAny, {
34
+ status: string;
35
+ globalEntityId: string;
36
+ platformVendorId: string;
37
+ }, {
38
+ status: string;
39
+ globalEntityId: string;
40
+ platformVendorId: string;
41
+ }>;
42
+ /** HTTP 200 response body. HTTP 204 has no body. */
43
+ export declare const FPUpdateCatalogItemAvailabilityResponse: z.ZodObject<{
44
+ status: z.ZodString;
45
+ details: z.ZodArray<z.ZodObject<{
46
+ platformVendorId: z.ZodString;
47
+ globalEntityId: z.ZodString;
48
+ status: z.ZodString;
49
+ }, "passthrough", z.ZodTypeAny, {
50
+ status: string;
51
+ globalEntityId: string;
52
+ platformVendorId: string;
53
+ }, {
54
+ status: string;
55
+ globalEntityId: string;
56
+ platformVendorId: string;
57
+ }>, "many">;
58
+ }, "passthrough", z.ZodTypeAny, {
59
+ details: {
60
+ status: string;
61
+ globalEntityId: string;
62
+ platformVendorId: string;
63
+ }[];
64
+ status: string;
65
+ }, {
66
+ details: {
67
+ status: string;
68
+ globalEntityId: string;
69
+ platformVendorId: string;
70
+ }[];
71
+ status: string;
72
+ }>;
73
+ export type FPUpdateCatalogItemAvailabilityRequest = z.infer<typeof FPUpdateCatalogItemAvailabilityRequest>;
74
+ export type FPCatalogItemAvailabilityResultDetail = z.infer<typeof FPCatalogItemAvailabilityResultDetail>;
75
+ export type FPUpdateCatalogItemAvailabilityResponse = z.infer<typeof FPUpdateCatalogItemAvailabilityResponse>;
@@ -3830,16 +3830,25 @@ declare const FPConfig: z.ZodObject<{
3830
3830
  password: z.ZodString;
3831
3831
  grant_type: z.ZodString;
3832
3832
  chainCode: z.ZodString;
3833
+ /**
3834
+ * Delivery Hero region code (FP_MY, FP_SG, FP_HK, YS_TR, ...) required in the
3835
+ * item-availability request body. A per-deployment constant, not per
3836
+ * restaurant, so it comes from env like the rest of this config. Empty when
3837
+ * unset, which the availability push treats as "not configured" and declines.
3838
+ */
3839
+ globalEntityId: z.ZodString;
3833
3840
  }, "strip", z.ZodTypeAny, {
3834
3841
  grant_type: string;
3835
3842
  username: string;
3836
3843
  password: string;
3837
3844
  chainCode: string;
3845
+ globalEntityId: string;
3838
3846
  }, {
3839
3847
  grant_type: string;
3840
3848
  username: string;
3841
3849
  password: string;
3842
3850
  chainCode: string;
3851
+ globalEntityId: string;
3843
3852
  }>;
3844
3853
  declare const FPLoginRes: z.ZodObject<{
3845
3854
  access_token: z.ZodString;
@@ -84,6 +84,7 @@ export declare const FdoFoodpandaAdditionalStore: z.ZodObject<{
84
84
  catalogId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
85
85
  enable: z.ZodBoolean;
86
86
  lastSynchronize: z.ZodNullable<z.ZodOptional<z.ZodString>>;
87
+ lastAvailabilitySync: z.ZodNullable<z.ZodOptional<z.ZodString>>;
87
88
  status: z.ZodNullable<z.ZodOptional<z.ZodString>>;
88
89
  menuSyncError: z.ZodNullable<z.ZodOptional<z.ZodString>>;
89
90
  updatedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -93,6 +94,7 @@ export declare const FdoFoodpandaAdditionalStore: z.ZodObject<{
93
94
  catalogId?: string | null | undefined;
94
95
  lastSynchronize?: string | null | undefined;
95
96
  menuSyncError?: string | null | undefined;
97
+ lastAvailabilitySync?: string | null | undefined;
96
98
  integrationId: string;
97
99
  enable: boolean;
98
100
  remoteId: string;
@@ -102,6 +104,7 @@ export declare const FdoFoodpandaAdditionalStore: z.ZodObject<{
102
104
  catalogId?: string | null | undefined;
103
105
  lastSynchronize?: string | null | undefined;
104
106
  menuSyncError?: string | null | undefined;
107
+ lastAvailabilitySync?: string | null | undefined;
105
108
  integrationId: string;
106
109
  enable: boolean;
107
110
  remoteId: string;
@@ -115,6 +118,7 @@ export declare const FdoFoodpandaSettings: z.ZodObject<z.extendShape<{
115
118
  remoteId: z.ZodString;
116
119
  catalogId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
117
120
  lastSynchronize: z.ZodNullable<z.ZodOptional<z.ZodString>>;
121
+ lastAvailabilitySync: z.ZodNullable<z.ZodOptional<z.ZodString>>;
118
122
  commissionRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
119
123
  autoCloseBill: z.ZodBoolean;
120
124
  allowReject: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
@@ -186,6 +190,7 @@ export declare const FdoFoodpandaSettings: z.ZodObject<z.extendShape<{
186
190
  catalogId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
187
191
  enable: z.ZodBoolean;
188
192
  lastSynchronize: z.ZodNullable<z.ZodOptional<z.ZodString>>;
193
+ lastAvailabilitySync: z.ZodNullable<z.ZodOptional<z.ZodString>>;
189
194
  status: z.ZodNullable<z.ZodOptional<z.ZodString>>;
190
195
  menuSyncError: z.ZodNullable<z.ZodOptional<z.ZodString>>;
191
196
  updatedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -195,6 +200,7 @@ export declare const FdoFoodpandaSettings: z.ZodObject<z.extendShape<{
195
200
  catalogId?: string | null | undefined;
196
201
  lastSynchronize?: string | null | undefined;
197
202
  menuSyncError?: string | null | undefined;
203
+ lastAvailabilitySync?: string | null | undefined;
198
204
  integrationId: string;
199
205
  enable: boolean;
200
206
  remoteId: string;
@@ -204,6 +210,7 @@ export declare const FdoFoodpandaSettings: z.ZodObject<z.extendShape<{
204
210
  catalogId?: string | null | undefined;
205
211
  lastSynchronize?: string | null | undefined;
206
212
  menuSyncError?: string | null | undefined;
213
+ lastAvailabilitySync?: string | null | undefined;
207
214
  integrationId: string;
208
215
  enable: boolean;
209
216
  remoteId: string;
@@ -213,6 +220,7 @@ export declare const FdoFoodpandaSettings: z.ZodObject<z.extendShape<{
213
220
  catalogId?: string | null | undefined;
214
221
  lastSynchronize?: string | null | undefined;
215
222
  menuSyncError?: string | null | undefined;
223
+ lastAvailabilitySync?: string | null | undefined;
216
224
  integrationId: string;
217
225
  enable: boolean;
218
226
  remoteId: string;
@@ -222,6 +230,7 @@ export declare const FdoFoodpandaSettings: z.ZodObject<z.extendShape<{
222
230
  catalogId?: string | null | undefined;
223
231
  lastSynchronize?: string | null | undefined;
224
232
  menuSyncError?: string | null | undefined;
233
+ lastAvailabilitySync?: string | null | undefined;
225
234
  integrationId: string;
226
235
  enable: boolean;
227
236
  remoteId: string;
@@ -239,6 +248,7 @@ export declare const FdoFoodpandaSettings: z.ZodObject<z.extendShape<{
239
248
  autoAccept?: boolean | null | undefined;
240
249
  groupItemsBySubCategory?: boolean | null | undefined;
241
250
  commissionRate?: number | null | undefined;
251
+ lastAvailabilitySync?: string | null | undefined;
242
252
  showProductAddon?: boolean | null | undefined;
243
253
  reportConfig?: {
244
254
  commissionRate: number;
@@ -260,6 +270,7 @@ export declare const FdoFoodpandaSettings: z.ZodObject<z.extendShape<{
260
270
  catalogId?: string | null | undefined;
261
271
  lastSynchronize?: string | null | undefined;
262
272
  menuSyncError?: string | null | undefined;
273
+ lastAvailabilitySync?: string | null | undefined;
263
274
  integrationId: string;
264
275
  enable: boolean;
265
276
  remoteId: string;
@@ -281,6 +292,7 @@ export declare const FdoFoodpandaSettings: z.ZodObject<z.extendShape<{
281
292
  autoAccept?: boolean | null | undefined;
282
293
  groupItemsBySubCategory?: boolean | null | undefined;
283
294
  commissionRate?: number | null | undefined;
295
+ lastAvailabilitySync?: string | null | undefined;
284
296
  showProductAddon?: boolean | null | undefined;
285
297
  reportConfig?: {
286
298
  commissionRate: number;
@@ -302,6 +314,7 @@ export declare const FdoFoodpandaSettings: z.ZodObject<z.extendShape<{
302
314
  catalogId?: string | null | undefined;
303
315
  lastSynchronize?: string | null | undefined;
304
316
  menuSyncError?: string | null | undefined;
317
+ lastAvailabilitySync?: string | null | undefined;
305
318
  integrationId: string;
306
319
  enable: boolean;
307
320
  remoteId: string;
@@ -11,6 +11,7 @@ export declare const FPdtoCreateOrUpdateSetting: z.ZodObject<{
11
11
  syncIGI: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
12
12
  groupItemsBySubCategory: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
13
13
  commissionRate: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
14
+ lastAvailabilitySync: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
14
15
  showProductAddon: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
15
16
  reportConfig: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
16
17
  commissionRate: z.ZodNumber;
@@ -81,6 +82,7 @@ export declare const FPdtoCreateOrUpdateSetting: z.ZodObject<{
81
82
  syncIGI?: boolean | null | undefined;
82
83
  groupItemsBySubCategory?: boolean | null | undefined;
83
84
  commissionRate?: number | null | undefined;
85
+ lastAvailabilitySync?: string | null | undefined;
84
86
  showProductAddon?: boolean | null | undefined;
85
87
  reportConfig?: {
86
88
  commissionRate: number;
@@ -109,6 +111,7 @@ export declare const FPdtoCreateOrUpdateSetting: z.ZodObject<{
109
111
  syncIGI?: boolean | null | undefined;
110
112
  groupItemsBySubCategory?: boolean | null | undefined;
111
113
  commissionRate?: number | null | undefined;
114
+ lastAvailabilitySync?: string | null | undefined;
112
115
  showProductAddon?: boolean | null | undefined;
113
116
  reportConfig?: {
114
117
  commissionRate: number;
@@ -19,3 +19,9 @@ export type SF_ORDER_STATUS = z.infer<typeof SF_ORDER_STATUS>;
19
19
  export type SF_PAYMENT_METHOD = z.infer<typeof SF_PAYMENT_METHOD>;
20
20
  export type SF_DELIVERY_MODE = z.infer<typeof SF_DELIVERY_MODE>;
21
21
  export type SF_STORE_STATUS = z.infer<typeof SF_STORE_STATUS>;
22
+ /**
23
+ * ShopeeFood answers a store it does not recognise with HTTP 200, no `data`, and this code — axios
24
+ * never throws, so the code is the only signal separating "SF does not know this store" from
25
+ * "it knows the store but has no such order". Observed against a storeID that cannot exist.
26
+ */
27
+ export declare const SF_STORE_UNKNOWN = 1310002;
@@ -969,8 +969,8 @@ export declare const TngOrder: z.ZodObject<{
969
969
  partnerMerchantId: string;
970
970
  menuId: string;
971
971
  userId: string;
972
- brandProfileId: string;
973
972
  fulfilmentMode: string;
973
+ brandProfileId: string;
974
974
  featureMode: string;
975
975
  featureModeIdentifier: string;
976
976
  paymentDetail: {
@@ -1064,8 +1064,8 @@ export declare const TngOrder: z.ZodObject<{
1064
1064
  partnerMerchantId: string;
1065
1065
  menuId: string;
1066
1066
  userId: string;
1067
- brandProfileId: string;
1068
1067
  fulfilmentMode: string;
1068
+ brandProfileId: string;
1069
1069
  featureMode: string;
1070
1070
  featureModeIdentifier: string;
1071
1071
  paymentDetail: {
@@ -1567,8 +1567,8 @@ export declare const FdoTngOrder: z.ZodObject<{
1567
1567
  partnerMerchantId: string;
1568
1568
  menuId: string;
1569
1569
  userId: string;
1570
- brandProfileId: string;
1571
1570
  fulfilmentMode: string;
1571
+ brandProfileId: string;
1572
1572
  featureMode: string;
1573
1573
  featureModeIdentifier: string;
1574
1574
  paymentDetail: {
@@ -1662,8 +1662,8 @@ export declare const FdoTngOrder: z.ZodObject<{
1662
1662
  partnerMerchantId: string;
1663
1663
  menuId: string;
1664
1664
  userId: string;
1665
- brandProfileId: string;
1666
1665
  fulfilmentMode: string;
1666
+ brandProfileId: string;
1667
1667
  featureMode: string;
1668
1668
  featureModeIdentifier: string;
1669
1669
  paymentDetail: {
@@ -1766,8 +1766,8 @@ export declare const FdoTngOrder: z.ZodObject<{
1766
1766
  partnerMerchantId: string;
1767
1767
  menuId: string;
1768
1768
  userId: string;
1769
- brandProfileId: string;
1770
1769
  fulfilmentMode: string;
1770
+ brandProfileId: string;
1771
1771
  featureMode: string;
1772
1772
  featureModeIdentifier: string;
1773
1773
  paymentDetail: {
@@ -1869,8 +1869,8 @@ export declare const FdoTngOrder: z.ZodObject<{
1869
1869
  partnerMerchantId: string;
1870
1870
  menuId: string;
1871
1871
  userId: string;
1872
- brandProfileId: string;
1873
1872
  fulfilmentMode: string;
1873
+ brandProfileId: string;
1874
1874
  featureMode: string;
1875
1875
  featureModeIdentifier: string;
1876
1876
  paymentDetail: {
@@ -448,8 +448,8 @@ export declare const FdtoTngOrderSyncRequest: z.ZodObject<{
448
448
  partnerMerchantId: string;
449
449
  menuId: string;
450
450
  userId: string;
451
- brandProfileId: string;
452
451
  fulfilmentMode: string;
452
+ brandProfileId: string;
453
453
  featureMode: string;
454
454
  featureModeIdentifier: string;
455
455
  paymentDetail: {
@@ -543,8 +543,8 @@ export declare const FdtoTngOrderSyncRequest: z.ZodObject<{
543
543
  partnerMerchantId: string;
544
544
  menuId: string;
545
545
  userId: string;
546
- brandProfileId: string;
547
546
  fulfilmentMode: string;
547
+ brandProfileId: string;
548
548
  featureMode: string;
549
549
  featureModeIdentifier: string;
550
550
  paymentDetail: {
@@ -445,6 +445,7 @@ export declare const FdoOrderKioskSettings: z.ZodObject<{
445
445
  autoCloseBill: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
446
446
  printReceiptAfterClose: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
447
447
  allowReject: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
448
+ languages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
448
449
  }, "strip", z.ZodTypeAny, {
449
450
  autoCloseBill?: boolean | null | undefined;
450
451
  allowReject?: boolean | null | undefined;
@@ -507,6 +508,7 @@ export declare const FdoOrderKioskSettings: z.ZodObject<{
507
508
  coverImageLandscape?: string | null | undefined;
508
509
  coverImagePortrait?: string | null | undefined;
509
510
  otaChannel?: string | null | undefined;
511
+ languages?: string[] | null | undefined;
510
512
  }, {
511
513
  autoCloseBill?: boolean | null | undefined;
512
514
  allowReject?: boolean | null | undefined;
@@ -569,6 +571,7 @@ export declare const FdoOrderKioskSettings: z.ZodObject<{
569
571
  coverImageLandscape?: string | null | undefined;
570
572
  coverImagePortrait?: string | null | undefined;
571
573
  otaChannel?: string | null | undefined;
574
+ languages?: string[] | null | undefined;
572
575
  }>;
573
576
  export type FdoOrderKioskSettings = z.infer<typeof FdoOrderKioskSettings>;
574
577
  export type FdoEPaymentMethod = z.infer<typeof FdoEPaymentMethod>;
@@ -643,6 +643,7 @@ export declare const OrderKioskSettings: z.ZodDefault<z.ZodObject<{
643
643
  otaChannel: z.ZodNullable<z.ZodOptional<z.ZodString>>;
644
644
  autoCloseBill: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
645
645
  printReceiptAfterClose: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
646
+ languages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
646
647
  }, "strip", z.ZodTypeAny, {
647
648
  autoCloseBill?: boolean | null | undefined;
648
649
  printReceiptAfterClose?: boolean | null | undefined;
@@ -704,6 +705,7 @@ export declare const OrderKioskSettings: z.ZodDefault<z.ZodObject<{
704
705
  coverImageLandscape?: string | null | undefined;
705
706
  coverImagePortrait?: string | null | undefined;
706
707
  otaChannel?: string | null | undefined;
708
+ languages?: string[] | null | undefined;
707
709
  }, {
708
710
  autoCloseBill?: boolean | null | undefined;
709
711
  printReceiptAfterClose?: boolean | null | undefined;
@@ -765,6 +767,7 @@ export declare const OrderKioskSettings: z.ZodDefault<z.ZodObject<{
765
767
  coverImageLandscape?: string | null | undefined;
766
768
  coverImagePortrait?: string | null | undefined;
767
769
  otaChannel?: string | null | undefined;
770
+ languages?: string[] | null | undefined;
768
771
  }>>;
769
772
  export type OrderKioskSettings = z.infer<typeof OrderKioskSettings>;
770
773
  export type OrderKioskDineIn = z.infer<typeof OrderKioskDineIn>;
@@ -1,3 +1,15 @@
1
1
  import { z } from "zod";
2
2
  export declare const F_LOCALE: z.ZodString;
3
3
  export type F_LOCALE = z.infer<typeof F_LOCALE>;
4
+ /**
5
+ * The locales the kiosk app ships message bundles for, in the order the app
6
+ * lists them. Kept here (not in kiosk-v2) so the portal can offer exactly the
7
+ * same set when a merchant restricts which languages the kiosk shows.
8
+ *
9
+ * `OrderKioskSettings.languages` deliberately stores plain strings rather than
10
+ * an enum built from this list: a merchant record saved by a newer portal must
11
+ * never make `OrderSettings` parsing fail on an older backend or an older
12
+ * kiosk bundle. Readers ignore codes they do not recognise instead.
13
+ */
14
+ export declare const KIOSK_LOCALES: readonly ["en-US", "zh-CN", "th-TH", "vi-VN", "id-ID", "ko-KR", "ja-JP", "ar-SA"];
15
+ export type KioskLocale = (typeof KIOSK_LOCALES)[number];
@@ -788,6 +788,7 @@ export declare const FdoOrderSettings: z.ZodObject<{
788
788
  autoCloseBill: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
789
789
  printReceiptAfterClose: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
790
790
  allowReject: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
791
+ languages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
791
792
  }, "strip", z.ZodTypeAny, {
792
793
  autoCloseBill?: boolean | null | undefined;
793
794
  allowReject?: boolean | null | undefined;
@@ -850,6 +851,7 @@ export declare const FdoOrderSettings: z.ZodObject<{
850
851
  coverImageLandscape?: string | null | undefined;
851
852
  coverImagePortrait?: string | null | undefined;
852
853
  otaChannel?: string | null | undefined;
854
+ languages?: string[] | null | undefined;
853
855
  }, {
854
856
  autoCloseBill?: boolean | null | undefined;
855
857
  allowReject?: boolean | null | undefined;
@@ -912,6 +914,7 @@ export declare const FdoOrderSettings: z.ZodObject<{
912
914
  coverImageLandscape?: string | null | undefined;
913
915
  coverImagePortrait?: string | null | undefined;
914
916
  otaChannel?: string | null | undefined;
917
+ languages?: string[] | null | undefined;
915
918
  }>>>;
916
919
  queueSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
917
920
  enableOrder: z.ZodBoolean;
@@ -1367,6 +1370,7 @@ export declare const FdoOrderSettings: z.ZodObject<{
1367
1370
  coverImageLandscape?: string | null | undefined;
1368
1371
  coverImagePortrait?: string | null | undefined;
1369
1372
  otaChannel?: string | null | undefined;
1373
+ languages?: string[] | null | undefined;
1370
1374
  } | null | undefined;
1371
1375
  queueSettings?: {
1372
1376
  showWaitEstimate?: boolean | null | undefined;
@@ -1594,6 +1598,7 @@ export declare const FdoOrderSettings: z.ZodObject<{
1594
1598
  coverImageLandscape?: string | null | undefined;
1595
1599
  coverImagePortrait?: string | null | undefined;
1596
1600
  otaChannel?: string | null | undefined;
1601
+ languages?: string[] | null | undefined;
1597
1602
  } | null | undefined;
1598
1603
  queueSettings?: {
1599
1604
  showWaitEstimate?: boolean | null | undefined;
@@ -570,6 +570,7 @@ export declare const OrderSettingsDto: z.ZodObject<{
570
570
  otaChannel: z.ZodNullable<z.ZodOptional<z.ZodString>>;
571
571
  autoCloseBill: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
572
572
  printReceiptAfterClose: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
573
+ languages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
573
574
  }, "strip", z.ZodTypeAny, {
574
575
  autoCloseBill?: boolean | null | undefined;
575
576
  printReceiptAfterClose?: boolean | null | undefined;
@@ -631,6 +632,7 @@ export declare const OrderSettingsDto: z.ZodObject<{
631
632
  coverImageLandscape?: string | null | undefined;
632
633
  coverImagePortrait?: string | null | undefined;
633
634
  otaChannel?: string | null | undefined;
635
+ languages?: string[] | null | undefined;
634
636
  }, {
635
637
  autoCloseBill?: boolean | null | undefined;
636
638
  printReceiptAfterClose?: boolean | null | undefined;
@@ -692,6 +694,7 @@ export declare const OrderSettingsDto: z.ZodObject<{
692
694
  coverImageLandscape?: string | null | undefined;
693
695
  coverImagePortrait?: string | null | undefined;
694
696
  otaChannel?: string | null | undefined;
697
+ languages?: string[] | null | undefined;
695
698
  }>>>>;
696
699
  queueSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
697
700
  enableOrder: z.ZodBoolean;
@@ -1310,6 +1313,7 @@ export declare const OrderSettingsDto: z.ZodObject<{
1310
1313
  coverImageLandscape?: string | null | undefined;
1311
1314
  coverImagePortrait?: string | null | undefined;
1312
1315
  otaChannel?: string | null | undefined;
1316
+ languages?: string[] | null | undefined;
1313
1317
  } | null | undefined;
1314
1318
  queueSettings?: {
1315
1319
  showWaitEstimate?: boolean | null | undefined;
@@ -1540,6 +1544,7 @@ export declare const OrderSettingsDto: z.ZodObject<{
1540
1544
  coverImageLandscape?: string | null | undefined;
1541
1545
  coverImagePortrait?: string | null | undefined;
1542
1546
  otaChannel?: string | null | undefined;
1547
+ languages?: string[] | null | undefined;
1543
1548
  } | null | undefined;
1544
1549
  queueSettings?: {
1545
1550
  duration?: number | undefined;
@@ -2180,6 +2185,7 @@ export declare const OrderSettingUpdateDto: z.ZodObject<Omit<{
2180
2185
  otaChannel: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2181
2186
  autoCloseBill: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
2182
2187
  printReceiptAfterClose: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
2188
+ languages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2183
2189
  }, "strip", z.ZodTypeAny, {
2184
2190
  autoCloseBill?: boolean | null | undefined;
2185
2191
  printReceiptAfterClose?: boolean | null | undefined;
@@ -2241,6 +2247,7 @@ export declare const OrderSettingUpdateDto: z.ZodObject<Omit<{
2241
2247
  coverImageLandscape?: string | null | undefined;
2242
2248
  coverImagePortrait?: string | null | undefined;
2243
2249
  otaChannel?: string | null | undefined;
2250
+ languages?: string[] | null | undefined;
2244
2251
  }, {
2245
2252
  autoCloseBill?: boolean | null | undefined;
2246
2253
  printReceiptAfterClose?: boolean | null | undefined;
@@ -2302,6 +2309,7 @@ export declare const OrderSettingUpdateDto: z.ZodObject<Omit<{
2302
2309
  coverImageLandscape?: string | null | undefined;
2303
2310
  coverImagePortrait?: string | null | undefined;
2304
2311
  otaChannel?: string | null | undefined;
2312
+ languages?: string[] | null | undefined;
2305
2313
  }>>>>;
2306
2314
  queueSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2307
2315
  enableOrder: z.ZodBoolean;
@@ -2920,6 +2928,7 @@ export declare const OrderSettingUpdateDto: z.ZodObject<Omit<{
2920
2928
  coverImageLandscape?: string | null | undefined;
2921
2929
  coverImagePortrait?: string | null | undefined;
2922
2930
  otaChannel?: string | null | undefined;
2931
+ languages?: string[] | null | undefined;
2923
2932
  } | null | undefined;
2924
2933
  queueSettings?: {
2925
2934
  showWaitEstimate?: boolean | null | undefined;
@@ -3149,6 +3158,7 @@ export declare const OrderSettingUpdateDto: z.ZodObject<Omit<{
3149
3158
  coverImageLandscape?: string | null | undefined;
3150
3159
  coverImagePortrait?: string | null | undefined;
3151
3160
  otaChannel?: string | null | undefined;
3161
+ languages?: string[] | null | undefined;
3152
3162
  } | null | undefined;
3153
3163
  queueSettings?: {
3154
3164
  duration?: number | undefined;
@@ -46,7 +46,7 @@ export declare const IdentifierDto: z.ZodObject<z.extendShape<Omit<z.extendShape
46
46
  precision: number;
47
47
  } | null | undefined;
48
48
  tPlus?: number | null | undefined;
49
- issuer: "OTHER" | "CASH" | "FEEDME" | "MACAU_PASS" | "KBANK" | "CARD" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "VISA" | "MASTER" | "MYDEBIT" | "AMEX" | "JCB" | "DISCOVER" | "DINERS" | "THAIQR" | "TRUEMONEY" | "LINEPAY" | "REVOLUT" | "SARAWAKPAY" | "SETEL";
49
+ issuer: "OTHER" | "CASH" | "FEEDME" | "MACAU_PASS" | "KBANK" | "AMEX" | "BOOST" | "JCB" | "MASTER" | "VISA" | "ALIPAY" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "MYDEBIT" | "DISCOVER" | "DINERS" | "THAIQR" | "TRUEMONEY" | "LINEPAY" | "REVOLUT" | "SARAWAKPAY" | "SETEL";
50
50
  variant: string;
51
51
  }, {
52
52
  rate?: {
@@ -58,7 +58,7 @@ export declare const IdentifierDto: z.ZodObject<z.extendShape<Omit<z.extendShape
58
58
  precision: number;
59
59
  } | null | undefined;
60
60
  tPlus?: number | null | undefined;
61
- issuer: "OTHER" | "CASH" | "FEEDME" | "MACAU_PASS" | "KBANK" | "CARD" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "VISA" | "MASTER" | "MYDEBIT" | "AMEX" | "JCB" | "DISCOVER" | "DINERS" | "THAIQR" | "TRUEMONEY" | "LINEPAY" | "REVOLUT" | "SARAWAKPAY" | "SETEL";
61
+ issuer: "OTHER" | "CASH" | "FEEDME" | "MACAU_PASS" | "KBANK" | "AMEX" | "BOOST" | "JCB" | "MASTER" | "VISA" | "ALIPAY" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "MYDEBIT" | "DISCOVER" | "DINERS" | "THAIQR" | "TRUEMONEY" | "LINEPAY" | "REVOLUT" | "SARAWAKPAY" | "SETEL";
62
62
  variant: string;
63
63
  }>;
64
64
  export type IdentifierDto = z.infer<typeof IdentifierDto>;