@feedmepos/mf-order-setting 0.0.68-prod → 0.0.69-dev

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 (25) hide show
  1. package/dist/{KioskDevicesView-CACKpFoO.js → KioskDevicesView-CXUSG5mE.js} +1 -1
  2. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-BJIOCfEr.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-DBd2dcTb.js} +3 -3
  3. package/dist/{KioskSettingView-BVjtaNjl.js → KioskSettingView-Br28Hy33.js} +4 -4
  4. package/dist/{KioskView-6K48HkE4.js → KioskView-DZH0fwKo.js} +4 -4
  5. package/dist/{OrderSettingsView-CStNEAkv.js → OrderSettingsView-BcjEgi-t.js} +2664 -2684
  6. package/dist/{app-CAyePmCd.js → app-CQs3Mzs4.js} +213 -213
  7. package/dist/app.js +1 -1
  8. package/dist/{dayjs.min-BytKqRJv.js → dayjs.min-CamQdVTz.js} +1 -1
  9. package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue.d.ts +2 -2
  10. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  11. package/dist/{index-DkRVfP6c.js → index-D4QOI5ZD.js} +2 -2
  12. package/dist/{index-BcbPl43J.js → index-D93HZvK6.js} +1 -1
  13. package/dist/package/entity/index.d.ts +5 -0
  14. package/dist/package/entity/order-platform/base-integration.dto.d.ts +18 -0
  15. package/dist/package/entity/order-platform/external/setting/external-setting.do.d.ts +3 -3
  16. package/dist/package/entity/order-platform/external/setting/external-setting.dto.d.ts +3 -3
  17. package/dist/package/entity/order-platform/gofood/gofood-order.do.d.ts +504 -0
  18. package/dist/package/entity/order-platform/gofood/gofood-settings.do.d.ts +54 -0
  19. package/dist/package/entity/order-platform/gofood/gofood-settings.dto.d.ts +36 -0
  20. package/dist/package/entity/order-platform/gofood/gofood.dto.d.ts +2516 -0
  21. package/dist/package/entity/order-platform/gofood/gofood.enum.d.ts +24 -0
  22. package/dist/package/entity/order-platform/order-platform.enum.d.ts +1 -1
  23. package/dist/{queue-transfer.dto-BB0t5A1B.js → queue-transfer.dto-Cv7set2l.js} +5700 -5525
  24. package/package.json +1 -1
  25. package/src/views/order-settings/delivery/integrated-delivery/IntegratedDelivery.vue +2 -0
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as Q, ref as $, resolveComponent as O, openBlock as w, createElementBlock as T, createElementVNode as P, toDisplayString as C, createVNode as D, unref as R, createBlock as j, computed as I, watch as oe, onMounted as le, withCtx as M, createTextVNode as se, createCommentVNode as E, Fragment as ae, renderList as ue, renderSlot as ie } from "vue";
2
- import { e as h } from "./app-CAyePmCd.js";
2
+ import { e as h } from "./app-CQs3Mzs4.js";
3
3
  import { useDialog as de, useSnackbar as ce } from "@feedmepos/ui-library";
4
4
  import { useI18n as G, useCoreStore as ne } from "@feedmepos/mf-common";
5
5
  import { defineStore as pe } from "pinia";
6
- import { r as A, g as n, y as N, S as z, f as q } from "./queue-transfer.dto-BB0t5A1B.js";
6
+ import { r as A, g as n, y as N, S as z, f as q } from "./queue-transfer.dto-Cv7set2l.js";
7
7
  const ye = /* @__PURE__ */ Q({
8
8
  __name: "OfflinePaymentTypeDialogContent",
9
9
  props: {
@@ -1,4 +1,4 @@
1
- import { g as i, x as _, S as C, r as g } from "./queue-transfer.dto-BB0t5A1B.js";
1
+ import { g as i, x as _, S as C, r as g } from "./queue-transfer.dto-Cv7set2l.js";
2
2
  async function R() {
3
3
  const r = await g().get("/order-settings");
4
4
  return i(r);
@@ -155,5 +155,10 @@ export * from './order-platform/deliveroo/deliveroo-dto';
155
155
  export * from './order-platform/deliveroo/deliveroo-setting.do';
156
156
  export * from './order-platform/deliveroo/deliveroo-order.do';
157
157
  export * from './order-platform/deliveroo/deliveroo-order.dto';
158
+ export * from './order-platform/gofood/gofood.enum';
159
+ export * from './order-platform/gofood/gofood.dto';
160
+ export * from './order-platform/gofood/gofood-order.do';
161
+ export * from './order-platform/gofood/gofood-settings.do';
162
+ export * from './order-platform/gofood/gofood-settings.dto';
158
163
  export * from './order/menu/menu.dto';
159
164
  export * from './order/queue-transfer.dto';
@@ -40,6 +40,16 @@ export declare const FdtoStoreStatusRes: z.ZodObject<{
40
40
  closedReason?: string | null | undefined;
41
41
  isOpen: boolean;
42
42
  }>>>;
43
+ gofood: z.ZodNullable<z.ZodOptional<z.ZodObject<{
44
+ isOpen: z.ZodBoolean;
45
+ closedReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ closedReason?: string | null | undefined;
48
+ isOpen: boolean;
49
+ }, {
50
+ closedReason?: string | null | undefined;
51
+ isOpen: boolean;
52
+ }>>>;
43
53
  }, "strip", z.ZodTypeAny, {
44
54
  foodpanda?: {
45
55
  closedReason?: string | null | undefined;
@@ -53,6 +63,10 @@ export declare const FdtoStoreStatusRes: z.ZodObject<{
53
63
  closedReason?: string | null | undefined;
54
64
  isOpen: boolean;
55
65
  } | null | undefined;
66
+ gofood?: {
67
+ closedReason?: string | null | undefined;
68
+ isOpen: boolean;
69
+ } | null | undefined;
56
70
  }, {
57
71
  foodpanda?: {
58
72
  closedReason?: string | null | undefined;
@@ -66,6 +80,10 @@ export declare const FdtoStoreStatusRes: z.ZodObject<{
66
80
  closedReason?: string | null | undefined;
67
81
  isOpen: boolean;
68
82
  } | null | undefined;
83
+ gofood?: {
84
+ closedReason?: string | null | undefined;
85
+ isOpen: boolean;
86
+ } | null | undefined;
69
87
  }>;
70
88
  export type FdtoStoreStatus = z.infer<typeof FdtoStoreStatus>;
71
89
  export type FdtoStoreStatusRes = z.infer<typeof FdtoStoreStatusRes>;
@@ -62,7 +62,7 @@ export declare const FdoExternalSetting: z.ZodObject<{
62
62
  autoSend: boolean;
63
63
  autoCloseBill: boolean;
64
64
  }>;
65
- platform: z.ZodEnum<["DELIVEROO", "FOOD_PANDA", "GRAB_FOOD", "SHOPEE_FOOD", "DELIVEROO", "FEEDME", "IN_HOUSE", "ZUS", "HAKSHAN"]>;
65
+ platform: z.ZodEnum<["DELIVEROO", "FOOD_PANDA", "GRAB_FOOD", "SHOPEE_FOOD", "DELIVEROO", "FEEDME", "IN_HOUSE", "ZUS", "HAKSHAN", "GO_FOOD"]>;
66
66
  delivery: z.ZodNullable<z.ZodOptional<z.ZodObject<{
67
67
  catalogId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
68
68
  deliveryFeeTax: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -118,7 +118,7 @@ export declare const FdoExternalSetting: z.ZodObject<{
118
118
  lastSynchronize?: string | null | undefined;
119
119
  _id: string;
120
120
  enable: boolean;
121
- platform: "IN_HOUSE" | "FEEDME" | "HAKSHAN" | "DELIVEROO" | "FOOD_PANDA" | "GRAB_FOOD" | "SHOPEE_FOOD" | "ZUS";
121
+ platform: "IN_HOUSE" | "FEEDME" | "HAKSHAN" | "DELIVEROO" | "FOOD_PANDA" | "GRAB_FOOD" | "SHOPEE_FOOD" | "ZUS" | "GO_FOOD";
122
122
  config: {
123
123
  printReceiptAfterClose?: boolean | null | undefined;
124
124
  bypass?: boolean | null | undefined;
@@ -143,7 +143,7 @@ export declare const FdoExternalSetting: z.ZodObject<{
143
143
  lastSynchronize?: string | null | undefined;
144
144
  _id: string;
145
145
  enable: boolean;
146
- platform: "IN_HOUSE" | "FEEDME" | "HAKSHAN" | "DELIVEROO" | "FOOD_PANDA" | "GRAB_FOOD" | "SHOPEE_FOOD" | "ZUS";
146
+ platform: "IN_HOUSE" | "FEEDME" | "HAKSHAN" | "DELIVEROO" | "FOOD_PANDA" | "GRAB_FOOD" | "SHOPEE_FOOD" | "ZUS" | "GO_FOOD";
147
147
  config: {
148
148
  printReceiptAfterClose?: boolean | null | undefined;
149
149
  bypass?: boolean | null | undefined;
@@ -24,7 +24,7 @@ export declare const FdtoExternalSettingCreateOrUpdate: z.ZodObject<Omit<{
24
24
  autoSend: boolean;
25
25
  autoCloseBill: boolean;
26
26
  }>;
27
- platform: z.ZodEnum<["DELIVEROO", "FOOD_PANDA", "GRAB_FOOD", "SHOPEE_FOOD", "DELIVEROO", "FEEDME", "IN_HOUSE", "ZUS", "HAKSHAN"]>;
27
+ platform: z.ZodEnum<["DELIVEROO", "FOOD_PANDA", "GRAB_FOOD", "SHOPEE_FOOD", "DELIVEROO", "FEEDME", "IN_HOUSE", "ZUS", "HAKSHAN", "GO_FOOD"]>;
28
28
  delivery: z.ZodNullable<z.ZodOptional<z.ZodObject<{
29
29
  catalogId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
30
30
  deliveryFeeTax: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -79,7 +79,7 @@ export declare const FdtoExternalSettingCreateOrUpdate: z.ZodObject<Omit<{
79
79
  updatedAt?: string | null | undefined;
80
80
  lastSynchronize?: string | null | undefined;
81
81
  enable: boolean;
82
- platform: "IN_HOUSE" | "FEEDME" | "HAKSHAN" | "DELIVEROO" | "FOOD_PANDA" | "GRAB_FOOD" | "SHOPEE_FOOD" | "ZUS";
82
+ platform: "IN_HOUSE" | "FEEDME" | "HAKSHAN" | "DELIVEROO" | "FOOD_PANDA" | "GRAB_FOOD" | "SHOPEE_FOOD" | "ZUS" | "GO_FOOD";
83
83
  config: {
84
84
  printReceiptAfterClose?: boolean | null | undefined;
85
85
  bypass?: boolean | null | undefined;
@@ -103,7 +103,7 @@ export declare const FdtoExternalSettingCreateOrUpdate: z.ZodObject<Omit<{
103
103
  updatedAt?: string | null | undefined;
104
104
  lastSynchronize?: string | null | undefined;
105
105
  enable: boolean;
106
- platform: "IN_HOUSE" | "FEEDME" | "HAKSHAN" | "DELIVEROO" | "FOOD_PANDA" | "GRAB_FOOD" | "SHOPEE_FOOD" | "ZUS";
106
+ platform: "IN_HOUSE" | "FEEDME" | "HAKSHAN" | "DELIVEROO" | "FOOD_PANDA" | "GRAB_FOOD" | "SHOPEE_FOOD" | "ZUS" | "GO_FOOD";
107
107
  config: {
108
108
  printReceiptAfterClose?: boolean | null | undefined;
109
109
  bypass?: boolean | null | undefined;
@@ -0,0 +1,504 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Persisted GoFood vendor order — populated by the webhook controller on
4
+ * `gofood.order.created` and updated as subsequent lifecycle events arrive.
5
+ *
6
+ * Mirrors the FdoGrabfoodOrder shape: `_id` (Mongo), `orderStatus`, `raw`
7
+ * (the webhook body), and `billId` for v7+ POS reconciliation.
8
+ */
9
+ export declare const FdoGoFoodOrder: z.ZodObject<{
10
+ _id: z.ZodEffects<z.ZodString, string, string>;
11
+ orderStatus: z.ZodObject<{
12
+ status: z.ZodEnum<["CREATED", "AWAITING_MERCHANT_ACCEPTANCE", "MERCHANT_ACCEPTED", "DRIVER_OTW_PICKUP", "DRIVER_ARRIVED", "COMPLETED", "CANCELLED"]>;
13
+ message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ message?: string | null | undefined;
16
+ status: "COMPLETED" | "CANCELLED" | "DRIVER_ARRIVED" | "CREATED" | "AWAITING_MERCHANT_ACCEPTANCE" | "MERCHANT_ACCEPTED" | "DRIVER_OTW_PICKUP";
17
+ }, {
18
+ message?: string | null | undefined;
19
+ status: "COMPLETED" | "CANCELLED" | "DRIVER_ARRIVED" | "CREATED" | "AWAITING_MERCHANT_ACCEPTANCE" | "MERCHANT_ACCEPTED" | "DRIVER_OTW_PICKUP";
20
+ }>;
21
+ raw: z.ZodObject<{
22
+ customer: z.ZodObject<{
23
+ id: z.ZodString;
24
+ name: z.ZodString;
25
+ }, "strip", z.ZodTypeAny, {
26
+ name: string;
27
+ id: string;
28
+ }, {
29
+ name: string;
30
+ id: string;
31
+ }>;
32
+ driver: z.ZodNullable<z.ZodOptional<z.ZodObject<{
33
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ name?: string | null | undefined;
36
+ }, {
37
+ name?: string | null | undefined;
38
+ }>>>;
39
+ service_type: z.ZodUnion<[z.ZodEnum<["gofood", "gofood_pickup"]>, z.ZodString]>;
40
+ outlet: z.ZodObject<{
41
+ id: z.ZodString;
42
+ external_outlet_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ external_outlet_id?: string | null | undefined;
45
+ id: string;
46
+ }, {
47
+ external_outlet_id?: string | null | undefined;
48
+ id: string;
49
+ }>;
50
+ order: z.ZodObject<{
51
+ status: z.ZodEnum<["CREATED", "AWAITING_MERCHANT_ACCEPTANCE", "MERCHANT_ACCEPTED", "DRIVER_OTW_PICKUP", "DRIVER_ARRIVED", "COMPLETED", "CANCELLED"]>;
52
+ pin: z.ZodString;
53
+ order_number: z.ZodString;
54
+ order_total: z.ZodNumber;
55
+ currency: z.ZodString;
56
+ takeaway_charges: z.ZodNumber;
57
+ order_items: z.ZodArray<z.ZodObject<{
58
+ id: z.ZodString;
59
+ external_id: z.ZodString;
60
+ name: z.ZodString;
61
+ quantity: z.ZodNumber;
62
+ price: z.ZodNumber;
63
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
64
+ variants: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
65
+ id: z.ZodString;
66
+ external_id: z.ZodString;
67
+ name: z.ZodString;
68
+ }, "strip", z.ZodTypeAny, {
69
+ name: string;
70
+ id: string;
71
+ external_id: string;
72
+ }, {
73
+ name: string;
74
+ id: string;
75
+ external_id: string;
76
+ }>, "many">>>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ notes?: string | null | undefined;
79
+ variants?: {
80
+ name: string;
81
+ id: string;
82
+ external_id: string;
83
+ }[] | null | undefined;
84
+ name: string;
85
+ id: string;
86
+ quantity: number;
87
+ price: number;
88
+ external_id: string;
89
+ }, {
90
+ notes?: string | null | undefined;
91
+ variants?: {
92
+ name: string;
93
+ id: string;
94
+ external_id: string;
95
+ }[] | null | undefined;
96
+ name: string;
97
+ id: string;
98
+ quantity: number;
99
+ price: number;
100
+ external_id: string;
101
+ }>, "many">;
102
+ applied_promotions: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
103
+ scope: z.ZodUnion<[z.ZodEnum<["sku", "cart_discount", "delivery_discount"]>, z.ZodString]>;
104
+ redeemed_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
105
+ merchant_budget_share_percentage: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
106
+ detail: z.ZodObject<{
107
+ id: z.ZodString;
108
+ item: z.ZodNullable<z.ZodOptional<z.ZodObject<{
109
+ id: z.ZodString;
110
+ external_id: z.ZodString;
111
+ }, "strip", z.ZodTypeAny, {
112
+ id: string;
113
+ external_id: string;
114
+ }, {
115
+ id: string;
116
+ external_id: string;
117
+ }>>>;
118
+ }, "strip", z.ZodTypeAny, {
119
+ item?: {
120
+ id: string;
121
+ external_id: string;
122
+ } | null | undefined;
123
+ id: string;
124
+ }, {
125
+ item?: {
126
+ id: string;
127
+ external_id: string;
128
+ } | null | undefined;
129
+ id: string;
130
+ }>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ redeemed_amount?: number | null | undefined;
133
+ merchant_budget_share_percentage?: number | null | undefined;
134
+ scope: string;
135
+ detail: {
136
+ item?: {
137
+ id: string;
138
+ external_id: string;
139
+ } | null | undefined;
140
+ id: string;
141
+ };
142
+ }, {
143
+ redeemed_amount?: number | null | undefined;
144
+ merchant_budget_share_percentage?: number | null | undefined;
145
+ scope: string;
146
+ detail: {
147
+ item?: {
148
+ id: string;
149
+ external_id: string;
150
+ } | null | undefined;
151
+ id: string;
152
+ };
153
+ }>, "many">>>;
154
+ cutlery_requested: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
155
+ created_at: z.ZodString;
156
+ cancellation_detail: z.ZodNullable<z.ZodOptional<z.ZodObject<{
157
+ reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
158
+ }, "strip", z.ZodTypeAny, {
159
+ reason?: string | null | undefined;
160
+ }, {
161
+ reason?: string | null | undefined;
162
+ }>>>;
163
+ scheduled_flag: z.ZodNullable<z.ZodOptional<z.ZodObject<{
164
+ is_catering: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
165
+ schedule_delivery_time_start: z.ZodNullable<z.ZodOptional<z.ZodString>>;
166
+ schedule_delivery_time_end: z.ZodNullable<z.ZodOptional<z.ZodString>>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ is_catering?: boolean | null | undefined;
169
+ schedule_delivery_time_start?: string | null | undefined;
170
+ schedule_delivery_time_end?: string | null | undefined;
171
+ }, {
172
+ is_catering?: boolean | null | undefined;
173
+ schedule_delivery_time_start?: string | null | undefined;
174
+ schedule_delivery_time_end?: string | null | undefined;
175
+ }>>>;
176
+ }, "strip", z.ZodTypeAny, {
177
+ applied_promotions?: {
178
+ redeemed_amount?: number | null | undefined;
179
+ merchant_budget_share_percentage?: number | null | undefined;
180
+ scope: string;
181
+ detail: {
182
+ item?: {
183
+ id: string;
184
+ external_id: string;
185
+ } | null | undefined;
186
+ id: string;
187
+ };
188
+ }[] | null | undefined;
189
+ cutlery_requested?: boolean | null | undefined;
190
+ cancellation_detail?: {
191
+ reason?: string | null | undefined;
192
+ } | null | undefined;
193
+ scheduled_flag?: {
194
+ is_catering?: boolean | null | undefined;
195
+ schedule_delivery_time_start?: string | null | undefined;
196
+ schedule_delivery_time_end?: string | null | undefined;
197
+ } | null | undefined;
198
+ status: "COMPLETED" | "CANCELLED" | "DRIVER_ARRIVED" | "CREATED" | "AWAITING_MERCHANT_ACCEPTANCE" | "MERCHANT_ACCEPTED" | "DRIVER_OTW_PICKUP";
199
+ currency: string;
200
+ created_at: string;
201
+ order_number: string;
202
+ pin: string;
203
+ order_total: number;
204
+ takeaway_charges: number;
205
+ order_items: {
206
+ notes?: string | null | undefined;
207
+ variants?: {
208
+ name: string;
209
+ id: string;
210
+ external_id: string;
211
+ }[] | null | undefined;
212
+ name: string;
213
+ id: string;
214
+ quantity: number;
215
+ price: number;
216
+ external_id: string;
217
+ }[];
218
+ }, {
219
+ applied_promotions?: {
220
+ redeemed_amount?: number | null | undefined;
221
+ merchant_budget_share_percentage?: number | null | undefined;
222
+ scope: string;
223
+ detail: {
224
+ item?: {
225
+ id: string;
226
+ external_id: string;
227
+ } | null | undefined;
228
+ id: string;
229
+ };
230
+ }[] | null | undefined;
231
+ cutlery_requested?: boolean | null | undefined;
232
+ cancellation_detail?: {
233
+ reason?: string | null | undefined;
234
+ } | null | undefined;
235
+ scheduled_flag?: {
236
+ is_catering?: boolean | null | undefined;
237
+ schedule_delivery_time_start?: string | null | undefined;
238
+ schedule_delivery_time_end?: string | null | undefined;
239
+ } | null | undefined;
240
+ status: "COMPLETED" | "CANCELLED" | "DRIVER_ARRIVED" | "CREATED" | "AWAITING_MERCHANT_ACCEPTANCE" | "MERCHANT_ACCEPTED" | "DRIVER_OTW_PICKUP";
241
+ currency: string;
242
+ created_at: string;
243
+ order_number: string;
244
+ pin: string;
245
+ order_total: number;
246
+ takeaway_charges: number;
247
+ order_items: {
248
+ notes?: string | null | undefined;
249
+ variants?: {
250
+ name: string;
251
+ id: string;
252
+ external_id: string;
253
+ }[] | null | undefined;
254
+ name: string;
255
+ id: string;
256
+ quantity: number;
257
+ price: number;
258
+ external_id: string;
259
+ }[];
260
+ }>;
261
+ }, "strip", z.ZodTypeAny, {
262
+ driver?: {
263
+ name?: string | null | undefined;
264
+ } | null | undefined;
265
+ order: {
266
+ applied_promotions?: {
267
+ redeemed_amount?: number | null | undefined;
268
+ merchant_budget_share_percentage?: number | null | undefined;
269
+ scope: string;
270
+ detail: {
271
+ item?: {
272
+ id: string;
273
+ external_id: string;
274
+ } | null | undefined;
275
+ id: string;
276
+ };
277
+ }[] | null | undefined;
278
+ cutlery_requested?: boolean | null | undefined;
279
+ cancellation_detail?: {
280
+ reason?: string | null | undefined;
281
+ } | null | undefined;
282
+ scheduled_flag?: {
283
+ is_catering?: boolean | null | undefined;
284
+ schedule_delivery_time_start?: string | null | undefined;
285
+ schedule_delivery_time_end?: string | null | undefined;
286
+ } | null | undefined;
287
+ status: "COMPLETED" | "CANCELLED" | "DRIVER_ARRIVED" | "CREATED" | "AWAITING_MERCHANT_ACCEPTANCE" | "MERCHANT_ACCEPTED" | "DRIVER_OTW_PICKUP";
288
+ currency: string;
289
+ created_at: string;
290
+ order_number: string;
291
+ pin: string;
292
+ order_total: number;
293
+ takeaway_charges: number;
294
+ order_items: {
295
+ notes?: string | null | undefined;
296
+ variants?: {
297
+ name: string;
298
+ id: string;
299
+ external_id: string;
300
+ }[] | null | undefined;
301
+ name: string;
302
+ id: string;
303
+ quantity: number;
304
+ price: number;
305
+ external_id: string;
306
+ }[];
307
+ };
308
+ customer: {
309
+ name: string;
310
+ id: string;
311
+ };
312
+ service_type: string;
313
+ outlet: {
314
+ external_outlet_id?: string | null | undefined;
315
+ id: string;
316
+ };
317
+ }, {
318
+ driver?: {
319
+ name?: string | null | undefined;
320
+ } | null | undefined;
321
+ order: {
322
+ applied_promotions?: {
323
+ redeemed_amount?: number | null | undefined;
324
+ merchant_budget_share_percentage?: number | null | undefined;
325
+ scope: string;
326
+ detail: {
327
+ item?: {
328
+ id: string;
329
+ external_id: string;
330
+ } | null | undefined;
331
+ id: string;
332
+ };
333
+ }[] | null | undefined;
334
+ cutlery_requested?: boolean | null | undefined;
335
+ cancellation_detail?: {
336
+ reason?: string | null | undefined;
337
+ } | null | undefined;
338
+ scheduled_flag?: {
339
+ is_catering?: boolean | null | undefined;
340
+ schedule_delivery_time_start?: string | null | undefined;
341
+ schedule_delivery_time_end?: string | null | undefined;
342
+ } | null | undefined;
343
+ status: "COMPLETED" | "CANCELLED" | "DRIVER_ARRIVED" | "CREATED" | "AWAITING_MERCHANT_ACCEPTANCE" | "MERCHANT_ACCEPTED" | "DRIVER_OTW_PICKUP";
344
+ currency: string;
345
+ created_at: string;
346
+ order_number: string;
347
+ pin: string;
348
+ order_total: number;
349
+ takeaway_charges: number;
350
+ order_items: {
351
+ notes?: string | null | undefined;
352
+ variants?: {
353
+ name: string;
354
+ id: string;
355
+ external_id: string;
356
+ }[] | null | undefined;
357
+ name: string;
358
+ id: string;
359
+ quantity: number;
360
+ price: number;
361
+ external_id: string;
362
+ }[];
363
+ };
364
+ customer: {
365
+ name: string;
366
+ id: string;
367
+ };
368
+ service_type: string;
369
+ outlet: {
370
+ external_outlet_id?: string | null | undefined;
371
+ id: string;
372
+ };
373
+ }>;
374
+ billId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
375
+ }, "strip", z.ZodTypeAny, {
376
+ billId?: string | null | undefined;
377
+ _id: string;
378
+ orderStatus: {
379
+ message?: string | null | undefined;
380
+ status: "COMPLETED" | "CANCELLED" | "DRIVER_ARRIVED" | "CREATED" | "AWAITING_MERCHANT_ACCEPTANCE" | "MERCHANT_ACCEPTED" | "DRIVER_OTW_PICKUP";
381
+ };
382
+ raw: {
383
+ driver?: {
384
+ name?: string | null | undefined;
385
+ } | null | undefined;
386
+ order: {
387
+ applied_promotions?: {
388
+ redeemed_amount?: number | null | undefined;
389
+ merchant_budget_share_percentage?: number | null | undefined;
390
+ scope: string;
391
+ detail: {
392
+ item?: {
393
+ id: string;
394
+ external_id: string;
395
+ } | null | undefined;
396
+ id: string;
397
+ };
398
+ }[] | null | undefined;
399
+ cutlery_requested?: boolean | null | undefined;
400
+ cancellation_detail?: {
401
+ reason?: string | null | undefined;
402
+ } | null | undefined;
403
+ scheduled_flag?: {
404
+ is_catering?: boolean | null | undefined;
405
+ schedule_delivery_time_start?: string | null | undefined;
406
+ schedule_delivery_time_end?: string | null | undefined;
407
+ } | null | undefined;
408
+ status: "COMPLETED" | "CANCELLED" | "DRIVER_ARRIVED" | "CREATED" | "AWAITING_MERCHANT_ACCEPTANCE" | "MERCHANT_ACCEPTED" | "DRIVER_OTW_PICKUP";
409
+ currency: string;
410
+ created_at: string;
411
+ order_number: string;
412
+ pin: string;
413
+ order_total: number;
414
+ takeaway_charges: number;
415
+ order_items: {
416
+ notes?: string | null | undefined;
417
+ variants?: {
418
+ name: string;
419
+ id: string;
420
+ external_id: string;
421
+ }[] | null | undefined;
422
+ name: string;
423
+ id: string;
424
+ quantity: number;
425
+ price: number;
426
+ external_id: string;
427
+ }[];
428
+ };
429
+ customer: {
430
+ name: string;
431
+ id: string;
432
+ };
433
+ service_type: string;
434
+ outlet: {
435
+ external_outlet_id?: string | null | undefined;
436
+ id: string;
437
+ };
438
+ };
439
+ }, {
440
+ billId?: string | null | undefined;
441
+ _id: string;
442
+ orderStatus: {
443
+ message?: string | null | undefined;
444
+ status: "COMPLETED" | "CANCELLED" | "DRIVER_ARRIVED" | "CREATED" | "AWAITING_MERCHANT_ACCEPTANCE" | "MERCHANT_ACCEPTED" | "DRIVER_OTW_PICKUP";
445
+ };
446
+ raw: {
447
+ driver?: {
448
+ name?: string | null | undefined;
449
+ } | null | undefined;
450
+ order: {
451
+ applied_promotions?: {
452
+ redeemed_amount?: number | null | undefined;
453
+ merchant_budget_share_percentage?: number | null | undefined;
454
+ scope: string;
455
+ detail: {
456
+ item?: {
457
+ id: string;
458
+ external_id: string;
459
+ } | null | undefined;
460
+ id: string;
461
+ };
462
+ }[] | null | undefined;
463
+ cutlery_requested?: boolean | null | undefined;
464
+ cancellation_detail?: {
465
+ reason?: string | null | undefined;
466
+ } | null | undefined;
467
+ scheduled_flag?: {
468
+ is_catering?: boolean | null | undefined;
469
+ schedule_delivery_time_start?: string | null | undefined;
470
+ schedule_delivery_time_end?: string | null | undefined;
471
+ } | null | undefined;
472
+ status: "COMPLETED" | "CANCELLED" | "DRIVER_ARRIVED" | "CREATED" | "AWAITING_MERCHANT_ACCEPTANCE" | "MERCHANT_ACCEPTED" | "DRIVER_OTW_PICKUP";
473
+ currency: string;
474
+ created_at: string;
475
+ order_number: string;
476
+ pin: string;
477
+ order_total: number;
478
+ takeaway_charges: number;
479
+ order_items: {
480
+ notes?: string | null | undefined;
481
+ variants?: {
482
+ name: string;
483
+ id: string;
484
+ external_id: string;
485
+ }[] | null | undefined;
486
+ name: string;
487
+ id: string;
488
+ quantity: number;
489
+ price: number;
490
+ external_id: string;
491
+ }[];
492
+ };
493
+ customer: {
494
+ name: string;
495
+ id: string;
496
+ };
497
+ service_type: string;
498
+ outlet: {
499
+ external_outlet_id?: string | null | undefined;
500
+ id: string;
501
+ };
502
+ };
503
+ }>;
504
+ export type FdoGoFoodOrder = z.infer<typeof FdoGoFoodOrder>;
@@ -0,0 +1,54 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Per-restaurant GoFood integration setting. Convention matches sibling
4
+ * platforms (Grab/FP/SF/DR): doc `_id` IS the restaurant's `_id`, so
5
+ * `findById(restaurantId)` resolves the doc.
6
+ *
7
+ * `outletId` is the GoFood `{outlet_id}` URL path param — analogous to
8
+ * Grab's `merchantID`, FP's `remoteId`, SF's `storeID`.
9
+ *
10
+ * Credentials live in env (`GOFOOD_CLIENT_ID` / `GOFOOD_CLIENT_SECRET` /
11
+ * `GOFOOD_NOTIFICATION_SECRET_KEY`) — direct→facilitator caps the cred
12
+ * set at ≤2 so env is the right tier.
13
+ *
14
+ * `status` / `updatedAt` / `menuSyncError` are the canonical
15
+ * menu-sync-result fields (mirroring Foodpanda / Shopeefood schemas);
16
+ * the webhook controller writes them when
17
+ * `gofood.catalog.menu_mapping_updated` arrives.
18
+ */
19
+ export declare const FdoGoFoodSettings: z.ZodObject<z.extendShape<{
20
+ enable: z.ZodBoolean;
21
+ }, {
22
+ _id: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
23
+ outletId: z.ZodString;
24
+ catalogId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
25
+ lastSynchronize: z.ZodNullable<z.ZodOptional<z.ZodString>>;
26
+ autoCloseBill: z.ZodBoolean;
27
+ printReceiptAfterClose: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
28
+ status: z.ZodNullable<z.ZodOptional<z.ZodString>>;
29
+ updatedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
30
+ menuSyncError: z.ZodNullable<z.ZodOptional<z.ZodString>>;
31
+ }>, "strip", z.ZodTypeAny, {
32
+ status?: string | null | undefined;
33
+ _id?: string | undefined;
34
+ catalogId?: string | null | undefined;
35
+ printReceiptAfterClose?: boolean | null | undefined;
36
+ updatedAt?: string | null | undefined;
37
+ lastSynchronize?: string | null | undefined;
38
+ menuSyncError?: string | null | undefined;
39
+ enable: boolean;
40
+ autoCloseBill: boolean;
41
+ outletId: string;
42
+ }, {
43
+ status?: string | null | undefined;
44
+ _id?: string | undefined;
45
+ catalogId?: string | null | undefined;
46
+ printReceiptAfterClose?: boolean | null | undefined;
47
+ updatedAt?: string | null | undefined;
48
+ lastSynchronize?: string | null | undefined;
49
+ menuSyncError?: string | null | undefined;
50
+ enable: boolean;
51
+ autoCloseBill: boolean;
52
+ outletId: string;
53
+ }>;
54
+ export type FdoGoFoodSettings = z.infer<typeof FdoGoFoodSettings>;