@feedmepos/mf-order-setting 0.0.79 → 0.0.80

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 (35) hide show
  1. package/dist/{DisplaySystemView-BKTYE0GI.js → DisplaySystemView-B4Ja1kBe.js} +2 -2
  2. package/dist/{KioskDevicesView-B3AWg9QR.js → KioskDevicesView-jYkKGyRX.js} +1 -1
  3. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-s79NGSsG.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-Wicz8r3Q.js} +4 -4
  4. package/dist/{KioskSettingView-D8-2hQT9.js → KioskSettingView-CDO8VdiK.js} +4 -4
  5. package/dist/{KioskView-CrbUYY75.js → KioskView-Dex_N5wi.js} +6 -6
  6. package/dist/{OrderSettingsView-BPv13A7B.js → OrderSettingsView-D4YqwLji.js} +9728 -9551
  7. package/dist/{app-rzXWOYA2.js → app-DxJcADSR.js} +296 -236
  8. package/dist/app.js +1 -1
  9. package/dist/{firebase-storage-BTc4aPcq.js → firebase-storage-GDIc9Lze.js} +1 -1
  10. package/dist/frontend/mf-order/src/app.d.ts +60 -0
  11. package/dist/frontend/mf-order/src/main.d.ts +60 -0
  12. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +27 -0
  13. package/dist/frontend/mf-order/src/views/order-settings/queue/code-setting-band.d.ts +19 -0
  14. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  15. package/dist/{index-BQLc4wu7.js → index-BOw_SLS3.js} +1 -1
  16. package/dist/{index-DMgNRp_k.js → index-BP2ZDwqX.js} +2 -2
  17. package/dist/{index-1TKkR2Bs.js → index-CTRKXPzk.js} +3 -3
  18. package/dist/{index-BoJCd-Jk.js → index-Dl-iHqtg.js} +1 -1
  19. package/dist/{order.dto-Ck2nw6IY.js → order.dto-BkJSHx_a.js} +197 -170
  20. package/dist/package/entity/order-setting/order-setting.do.d.ts +79 -0
  21. package/dist/package/entity/order-setting/order-setting.dto.d.ts +158 -0
  22. package/dist/package/entity/order-setting/queue/queue.do.d.ts +158 -0
  23. package/dist/package/entity/order-setting/queue/queue.dto.d.ts +62 -0
  24. package/dist/package/entity/queue/queue.dto.d.ts +62 -0
  25. package/dist/package/entity/restaurant/restaurant.dto.d.ts +158 -0
  26. package/package.json +1 -1
  27. package/src/locales/en-US.json +15 -0
  28. package/src/locales/ja-JP.json +15 -0
  29. package/src/locales/th-TH.json +16 -1
  30. package/src/locales/zh-CN.json +16 -1
  31. package/src/views/order-settings/queue/QueueSetting.vue +294 -2
  32. package/src/views/order-settings/queue/code-setting-band.spec.ts +69 -0
  33. package/src/views/order-settings/queue/code-setting-band.ts +27 -0
  34. package/src/views/order-settings/queue/queue-wait-estimate-dto.spec.ts +131 -0
  35. package/vite.config.ts +1 -1
@@ -1,4 +1,4 @@
1
- import { d as D, c as ee, r as Jz, e as H, n as fe, b as Zz } from "./app-rzXWOYA2.js";
1
+ import { d as D, c as ee, r as Jz, e as H, n as fe, b as Zz } from "./app-DxJcADSR.js";
2
2
  var c = D();
3
3
  function ju(u) {
4
4
  throw new Error('Could not dynamically require "' + u + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
@@ -20560,7 +20560,7 @@ const ut = c.z.enum([
20560
20560
  "SCANPAY",
20561
20561
  "SOFTPOS",
20562
20562
  "TERMINAL"
20563
- ]), H3 = c.z.enum([
20563
+ ]), K3 = c.z.enum([
20564
20564
  "SCANPAY",
20565
20565
  "QRPAY",
20566
20566
  "TERMINAL",
@@ -38544,7 +38544,7 @@ c.z.object({
38544
38544
  catalogId: c.z.string().nullish(),
38545
38545
  enable: c.z.boolean().optional()
38546
38546
  });
38547
- const DF = c.z.enum(["dineIn", "pickup", "reservation"]), K3 = DF.options;
38547
+ const DF = c.z.enum(["dineIn", "pickup", "reservation"]), x3 = DF.options;
38548
38548
  c.z.enum(["DINE_IN", "PICK_UP", "RESERVATION"]);
38549
38549
  c.z.enum(["ONLINE_PAYMENT"]);
38550
38550
  const kF = c.z.enum(["TNGD", "CASHIER"]);
@@ -38850,11 +38850,29 @@ const eA = c.z.object({
38850
38850
  buttonTertiary: Ye,
38851
38851
  typoButtonTertiary: Ye,
38852
38852
  buttonPrimaryChip: Ye
38853
+ }), hA = c.z.object({
38854
+ paxUpTo: c.z.number().positive().int().nullable(),
38855
+ bands: c.z.array(
38856
+ c.z.object({
38857
+ upTo: c.z.number().int().nonnegative().nullable(),
38858
+ minutes: c.z.number().int().nonnegative()
38859
+ })
38860
+ )
38853
38861
  }), Rz = c.z.object({
38862
+ /**
38863
+ * Stable identifier, assigned on first write. Optional because every
38864
+ * document predating this field lacks one, and nothing reads it for code
38865
+ * allocation — it exists so a settings save can match incoming segments to
38866
+ * stored ones and preserve their `waitEstimate`. Index is unusable (reorder,
38867
+ * insert, delete) and prefix is not unique.
38868
+ */
38869
+ id: c.z.string().nullish(),
38854
38870
  start: c.z.number().positive().int(),
38855
38871
  end: c.z.number().positive().int().nullish(),
38856
38872
  current: c.z.number(),
38857
38873
  prefix: c.z.string().nullish(),
38874
+ /** Pax sub-rows for this segment. Absent = no estimate for these parties. */
38875
+ waitEstimate: c.z.array(hA).nullish(),
38858
38876
  /**
38859
38877
  * To allow customization to different prefix and running number based on pax size
38860
38878
  */
@@ -38862,7 +38880,7 @@ const eA = c.z.object({
38862
38880
  min: c.z.number().positive().int(),
38863
38881
  max: c.z.number().positive().int()
38864
38882
  })
38865
- }), hA = c.z.object({
38883
+ }), bA = c.z.object({
38866
38884
  /**
38867
38885
  * Enable pre order from queue
38868
38886
  */
@@ -38871,6 +38889,13 @@ const eA = c.z.object({
38871
38889
  * Use case: Hotpot shop always want first 5 queue to be in called status to wait in front of shop
38872
38890
  */
38873
38891
  autoCalledLimit: c.z.number(),
38892
+ /**
38893
+ * Master switch for showing the wait estimate to customers. Off by default:
38894
+ * with no configuration there is no defensible number to show, and the bug
38895
+ * this replaces was exactly a fabricated constant. Bands live per segment
38896
+ * (`codeSettings[].waitEstimate`); this governs whether any of them display.
38897
+ */
38898
+ showWaitEstimate: c.z.boolean().nullish(),
38874
38899
  /**
38875
38900
  * This field not using in the code
38876
38901
  */
@@ -38893,7 +38918,7 @@ const eA = c.z.object({
38893
38918
  * Enable transferring queue pre-orders to tablet devices by scanning a QR code
38894
38919
  */
38895
38920
  enableQueueToTabletTransfer: c.z.boolean().nullish()
38896
- }), x3 = {
38921
+ }), W3 = {
38897
38922
  autoCalledLimit: 0,
38898
38923
  enableOrder: !0,
38899
38924
  duration: 20,
@@ -38914,14 +38939,14 @@ const eA = c.z.object({
38914
38939
  }
38915
38940
  }
38916
38941
  ]
38917
- }, bA = c.z.object({
38942
+ }, gA = c.z.object({
38918
38943
  systemCode: c.z.string(),
38919
38944
  taxCode: c.z.string()
38920
- }), gA = c.z.object({
38945
+ }), pA = c.z.object({
38921
38946
  inclusive: c.z.boolean(),
38922
38947
  ignoreDiscount: c.z.boolean(),
38923
- taxOverride: bA.nullish()
38924
- }), oc = c.z.enum(["keep", "override", "concat"]), pA = c.z.object({
38948
+ taxOverride: gA.nullish()
38949
+ }), oc = c.z.enum(["keep", "override", "concat"]), yA = c.z.object({
38925
38950
  autoAccept: c.z.boolean(),
38926
38951
  autoSend: c.z.boolean(),
38927
38952
  autoCloseBill: c.z.boolean(),
@@ -38930,7 +38955,7 @@ const eA = c.z.object({
38930
38955
  // toggle (GrabFood/ShopeeFood settings); nullish/absent = treated as false.
38931
38956
  autoCloseOnDelivered: c.z.boolean().nullish(),
38932
38957
  voidReturnStock: c.z.boolean().nullish(),
38933
- taxes: gA.nullish(),
38958
+ taxes: pA.nullish(),
38934
38959
  printReceiptAfterClose: c.z.boolean().nullish(),
38935
38960
  printChecklist: c.z.boolean().nullish(),
38936
38961
  overridePax: c.z.boolean().nullish(),
@@ -38957,7 +38982,7 @@ const eA = c.z.object({
38957
38982
  // authoritative gate is the REJECT guard on `PUT /pos/order`, which keys off
38958
38983
  // THIS flag so the policy holds on POS builds that predate the UI change.
38959
38984
  canReject: c.z.boolean().nullish()
38960
- }), yA = c.z.object({
38985
+ }), zA = c.z.object({
38961
38986
  reason: c.z.string(),
38962
38987
  amount: H.FdoDinero
38963
38988
  }), Sz = c.z.object({
@@ -38965,14 +38990,14 @@ const eA = c.z.object({
38965
38990
  orderId: c.z.string(),
38966
38991
  billId: c.z.string().nullish(),
38967
38992
  eventType: uF.nullish(),
38968
- refund: yA.nullish(),
38993
+ refund: zA.nullish(),
38969
38994
  // Why the order reached its current `status` (e.g. why it was REJECTED). Free
38970
38995
  // text, interpreted per status; future outcomes reuse this rather than adding a
38971
38996
  // field per outcome. Surfaced read-only via getIncomingOrders.
38972
38997
  reason: c.z.string().nullish(),
38973
38998
  status: aF,
38974
38999
  bill: H.FdoBill,
38975
- config: pA,
39000
+ config: yA,
38976
39001
  restaurantId: c.z.string(),
38977
39002
  expiredAt: c.z.string(),
38978
39003
  orderAt: c.z.string().nullish(),
@@ -38981,13 +39006,13 @@ const eA = c.z.object({
38981
39006
  });
38982
39007
  Sz.extend({}).describe(ve.ZodMeta.couch().repo("incomingOrder").build());
38983
39008
  Sz.extend({}).describe(ve.ZodMeta.mongo().repo("IncomingOrders").build());
38984
- const Mz = c.z.enum(["poll", "realtime"]), zA = c.z.object({
39009
+ const Mz = c.z.enum(["poll", "realtime"]), _A = c.z.object({
38985
39010
  enabled: c.z.boolean().default(!1),
38986
39011
  mergeAction: oc.default("override")
38987
- }), _A = c.z.object({
39012
+ }), vA = c.z.object({
38988
39013
  printChecklist: c.z.boolean().nullish(),
38989
39014
  overridePax: c.z.boolean().nullish().default(!0),
38990
- remark: zA.nullish(),
39015
+ remark: _A.nullish(),
38991
39016
  tableCartSyncMode: Mz.nullish().default("poll"),
38992
39017
  // Stamped onto IncomingOrder config so POS auto-closes the bill on accept.
38993
39018
  autoCloseBill: c.z.boolean().nullish(),
@@ -38997,7 +39022,7 @@ const Mz = c.z.enum(["poll", "realtime"]), zA = c.z.object({
38997
39022
  // button — the order can then only be accepted (KDI-5089). Nullish ⇒ reject
38998
39023
  // allowed, i.e. existing behaviour.
38999
39024
  allowReject: c.z.boolean().nullish()
39000
- }), vA = c.z.object({
39025
+ }), $A = c.z.object({
39001
39026
  // Stamped onto IncomingOrder config so POS auto-closes the bill on accept.
39002
39027
  autoCloseBill: c.z.boolean().nullish(),
39003
39028
  // Stamped onto IncomingOrder config so POS prints the receipt after closing.
@@ -39006,7 +39031,7 @@ const Mz = c.z.enum(["poll", "realtime"]), zA = c.z.object({
39006
39031
  // button — the order can then only be accepted (KDI-5089). Nullish ⇒ reject
39007
39032
  // allowed, i.e. existing behaviour.
39008
39033
  allowReject: c.z.boolean().nullish()
39009
- }), $A = c.z.object({
39034
+ }), EA = c.z.object({
39010
39035
  // Stamped onto IncomingOrder config so POS auto-closes the bill on accept.
39011
39036
  autoCloseBill: c.z.boolean().nullish(),
39012
39037
  // Stamped onto IncomingOrder config so POS prints the receipt after closing.
@@ -39022,15 +39047,15 @@ c.z.object({
39022
39047
  // Default : true
39023
39048
  autoSendKitchen: c.z.boolean().nullish(),
39024
39049
  hideProductCode: c.z.boolean().nullish(),
39025
- dineInSettings: _A.nullish(),
39026
- pickupSettings: vA.nullish(),
39027
- inhouseDeliverySettings: $A.nullish(),
39050
+ dineInSettings: vA.nullish(),
39051
+ pickupSettings: $A.nullish(),
39052
+ inhouseDeliverySettings: EA.nullish(),
39028
39053
  v3Settings: fA.nullish(),
39029
39054
  upsellingSettings: cA.nullish(),
39030
39055
  reservationSettings: tA.nullish(),
39031
39056
  sequenceSettings: lA.nullish(),
39032
39057
  kioskSettings: KF.nullish(),
39033
- queueSettings: hA.nullish(),
39058
+ queueSettings: bA.nullish(),
39034
39059
  smsSettings: c.z.array(dA).nullish(),
39035
39060
  customization: c.z.object({
39036
39061
  colorScheme: mA.nullish()
@@ -39054,7 +39079,7 @@ c.z.object({
39054
39079
  5: c.z.array(cr).default([]),
39055
39080
  6: c.z.array(cr).default([])
39056
39081
  });
39057
- const EA = c.z.object({
39082
+ const TA = c.z.object({
39058
39083
  id: c.z.number(),
39059
39084
  enable: c.z.boolean(),
39060
39085
  catalogId: c.z.string().optional(),
@@ -39063,58 +39088,58 @@ const EA = c.z.object({
39063
39088
  deposit: ip,
39064
39089
  serviceCharge: ip
39065
39090
  })
39066
- }), TA = c.z.object({
39091
+ }), FA = c.z.object({
39067
39092
  enableIdx: c.z.number().optional(),
39068
- options: c.z.array(EA)
39093
+ options: c.z.array(TA)
39069
39094
  }), Fr = c.z.object({
39070
39095
  prefix: c.z.string(),
39071
39096
  current: c.z.number().positive().int(),
39072
39097
  digit: c.z.number().nullish()
39073
- }), FA = Fr.extend({
39098
+ }), AA = Fr.extend({
39074
39099
  prefix: c.z.string().default("#TA"),
39075
39100
  current: c.z.number().nonnegative().int().default(0)
39076
- }), AA = Fr.extend({
39101
+ }), IA = Fr.extend({
39077
39102
  prefix: c.z.string().default("#P"),
39078
39103
  current: c.z.number().nonnegative().int().default(0)
39079
- }), IA = Fr.extend({
39104
+ }), RA = Fr.extend({
39080
39105
  prefix: c.z.string().default("#D"),
39081
39106
  current: c.z.number().nonnegative().int().default(0)
39082
- }), RA = Fr.extend({
39107
+ }), SA = Fr.extend({
39083
39108
  prefix: c.z.string().default("FM"),
39084
39109
  current: c.z.number().nonnegative().int().default(0)
39085
- }), SA = Fr.extend({
39110
+ }), MA = Fr.extend({
39086
39111
  prefix: c.z.string().default("#RS"),
39087
39112
  current: c.z.number().nonnegative().int().default(0)
39088
- }), MA = Fr.extend({
39113
+ }), wA = Fr.extend({
39089
39114
  prefix: c.z.string().default("#K"),
39090
39115
  current: c.z.number().nonnegative().int().default(0)
39091
- }), wA = c.z.object({
39092
- resetTime: c.z.string()
39093
39116
  }), PA = c.z.object({
39094
- autoReset: wA.nullish(),
39095
- takeaway: FA.optional(),
39096
- pickup: AA.optional(),
39097
- inHouseDelivery: IA.optional(),
39098
- feedMeDelivery: RA.optional(),
39099
- reservation: SA.optional(),
39100
- kioskDineIn: MA.optional()
39117
+ resetTime: c.z.string()
39101
39118
  }), OA = c.z.object({
39119
+ autoReset: PA.nullish(),
39120
+ takeaway: AA.optional(),
39121
+ pickup: IA.optional(),
39122
+ inHouseDelivery: RA.optional(),
39123
+ feedMeDelivery: SA.optional(),
39124
+ reservation: MA.optional(),
39125
+ kioskDineIn: wA.optional()
39126
+ }), jA = c.z.object({
39102
39127
  prefix: c.z.string(),
39103
39128
  current: c.z.number().positive().int(),
39104
39129
  digit: c.z.number().nullish()
39105
39130
  });
39106
- OA.extend({
39131
+ jA.extend({
39107
39132
  next: c.z.number(),
39108
39133
  code: c.z.string()
39109
39134
  });
39110
- const jA = c.z.object({
39135
+ const CA = c.z.object({
39111
39136
  raw: c.z.string(),
39112
39137
  keys: c.z.record(c.z.string(), Az).default({})
39113
- }), CA = c.z.object({
39138
+ }), NA = c.z.object({
39114
39139
  enable: c.z.boolean(),
39115
39140
  action: Fz,
39116
39141
  type: c.z.union([H.F_ORDER_TYPE, ut]),
39117
- message: jA
39142
+ message: CA
39118
39143
  }), sc = c.z.object({
39119
39144
  recommandation: c.z.boolean(),
39120
39145
  item: c.z.boolean(),
@@ -39149,6 +39174,8 @@ const jA = c.z.object({
39149
39174
  enableOrder: c.z.boolean(),
39150
39175
  autoCalledLimit: c.z.number(),
39151
39176
  duration: c.z.number().default(0),
39177
+ /** Master switch for the customer-facing wait estimate. Off by default. */
39178
+ showWaitEstimate: c.z.boolean().nullish(),
39152
39179
  /**
39153
39180
  * To allow customization to different prefix and running number based on pax size
39154
39181
  */
@@ -39167,63 +39194,63 @@ const jA = c.z.object({
39167
39194
  * Enable transferring queue pre-orders to tablet devices by scanning a QR code
39168
39195
  */
39169
39196
  enableQueueToTabletTransfer: c.z.boolean().nullish()
39170
- }), NA = c.z.object({
39197
+ }), DA = c.z.object({
39171
39198
  enabled: c.z.boolean().default(!1),
39172
39199
  mergeAction: oc.default("override")
39173
- }), DA = c.z.object({
39200
+ }), kA = c.z.object({
39174
39201
  printChecklist: c.z.boolean().nullish(),
39175
39202
  overridePax: c.z.boolean().nullish().default(!0),
39176
- remark: NA.nullish(),
39203
+ remark: DA.nullish(),
39177
39204
  tableCartSyncMode: Mz.nullish().default("poll"),
39178
39205
  autoCloseBill: c.z.boolean().nullish(),
39179
39206
  printReceiptAfterClose: c.z.boolean().nullish()
39180
- }), kA = c.z.object({
39207
+ }), BA = c.z.object({
39181
39208
  autoCloseBill: c.z.boolean().nullish(),
39182
39209
  printReceiptAfterClose: c.z.boolean().nullish()
39183
- }), BA = c.z.object({
39210
+ }), qA = c.z.object({
39184
39211
  _id: c.z.string(),
39185
39212
  enableV3: c.z.boolean().nullish(),
39186
39213
  autoSendKitchen: c.z.boolean().nullish(),
39187
39214
  hideProductCode: c.z.boolean().nullish(),
39188
- dineInSettings: DA.nullish(),
39189
- pickupSettings: kA.nullish(),
39215
+ dineInSettings: kA.nullish(),
39216
+ pickupSettings: BA.nullish(),
39190
39217
  inhouseDeliverySettings: qF.nullish(),
39191
39218
  v3Settings: wz,
39192
39219
  upsellingSettings: sc.nullish(),
39193
- reservationSettings: TA.nullish(),
39220
+ reservationSettings: FA.nullish(),
39194
39221
  kioskSettings: Tz.nullish(),
39195
39222
  queueSettings: lc.nullish(),
39196
- sequenceSettings: PA.nullish(),
39197
- smsSettings: c.z.array(CA).nullish(),
39223
+ sequenceSettings: OA.nullish(),
39224
+ smsSettings: c.z.array(NA).nullish(),
39198
39225
  customization: c.z.object({
39199
39226
  colorScheme: Pz.nullish()
39200
39227
  }).nullish(),
39201
39228
  lastOrderMinutesBeforeClose: c.z.number().nullish(),
39202
39229
  dynamicQrSessionSource: c.z.enum(["remote", "couchdb"]).nullish()
39203
- }), W3 = BA.omit({ _id: !0 }), su = c.z.object({
39230
+ }), Q3 = qA.omit({ _id: !0 }), su = c.z.object({
39204
39231
  type: ut
39205
- }), qA = su.extend({
39232
+ }), GA = su.extend({
39206
39233
  type: c.z.literal(ut.enum.QR),
39207
39234
  session: c.z.string().nullish(),
39208
39235
  slot: c.z.string()
39209
- }), GA = su.extend({
39236
+ }), LA = su.extend({
39210
39237
  type: c.z.literal(ut.enum.QUEUE),
39211
39238
  queueId: c.z.string(),
39212
39239
  slot: c.z.string().nullish()
39213
- }), LA = su.extend({
39240
+ }), UA = su.extend({
39214
39241
  type: c.z.literal(ut.enum.RESERVATION),
39215
39242
  reservationId: c.z.string(),
39216
39243
  slot: c.z.string().nullish()
39217
- }), UA = su.extend({
39244
+ }), YA = su.extend({
39218
39245
  type: c.z.literal(ut.enum.TAKEAWAY),
39219
39246
  slot: c.z.string(),
39220
39247
  seqNumber: c.z.string().nullish()
39221
- }), YA = c.z.discriminatedUnion("type", [
39222
- qA,
39248
+ }), VA = c.z.discriminatedUnion("type", [
39223
39249
  GA,
39224
39250
  LA,
39225
- UA
39226
- ]), VA = c.z.object({
39251
+ UA,
39252
+ YA
39253
+ ]), HA = c.z.object({
39227
39254
  id: c.z.string(),
39228
39255
  event: c.z.string(),
39229
39256
  bank: c.z.object({
@@ -39235,7 +39262,7 @@ const jA = c.z.object({
39235
39262
  status: c.z.string().nullish(),
39236
39263
  businessId: c.z.string().nullish(),
39237
39264
  notifyUrl: c.z.string().nullish(),
39238
- store: VA
39265
+ store: HA
39239
39266
  }), lu = c.z.object({
39240
39267
  _id: c.z.string(),
39241
39268
  payFor: lt.F_PAYMENT_FOR,
@@ -39270,7 +39297,7 @@ const jA = c.z.object({
39270
39297
  receipt: c.z.record(c.z.string(), c.z.string()).nullish(),
39271
39298
  details: c.z.record(c.z.string(), c.z.any()).nullish(),
39272
39299
  printConfig: c.z.record(c.z.string(), c.z.any()).nullish()
39273
- }), HA = c.z.object({
39300
+ }), KA = c.z.object({
39274
39301
  _id: c.z.string(),
39275
39302
  payFor: c.z.literal(lt.F_PAYMENT_FOR.Enum.ORDER),
39276
39303
  payId: c.z.string(),
@@ -39283,12 +39310,12 @@ const jA = c.z.object({
39283
39310
  payout: H.FdoDinero.nullish()
39284
39311
  });
39285
39312
  lu.extend({
39286
- children: c.z.array(HA).nullish()
39313
+ children: c.z.array(KA).nullish()
39287
39314
  });
39288
39315
  lu.extend({
39289
39316
  parentId: c.z.string().nullish()
39290
39317
  });
39291
- const KA = c.z.object({
39318
+ const xA = c.z.object({
39292
39319
  id: c.z.string(),
39293
39320
  event: c.z.string(),
39294
39321
  bank: c.z.object({
@@ -39320,10 +39347,10 @@ const KA = c.z.object({
39320
39347
  createdAt: c.z.date(),
39321
39348
  // Date for output
39322
39349
  completedAt: c.z.date().nullish(),
39323
- store: KA.nullish(),
39350
+ store: xA.nullish(),
39324
39351
  group: lt.F_PAYMENT_TRANSACTION_GROUP,
39325
39352
  seqNumber: c.z.string().nullish()
39326
- }), xA = c.z.object({
39353
+ }), WA = c.z.object({
39327
39354
  _id: c.z.string(),
39328
39355
  gateway: c.z.string(),
39329
39356
  // String to accept any gateway
@@ -39350,7 +39377,7 @@ c.z.object({
39350
39377
  pf_order: c.z.any().nullish()
39351
39378
  // FdoOrder causes circular dependency
39352
39379
  });
39353
- const WA = c.z.discriminatedUnion("type", [
39380
+ const QA = c.z.discriminatedUnion("type", [
39354
39381
  O1,
39355
39382
  C1,
39356
39383
  j1,
@@ -39419,28 +39446,28 @@ const du = c.z.object({
39419
39446
  unionKey: "type",
39420
39447
  baseType: "FdoDineInBaseSubOption"
39421
39448
  }).build()
39422
- ), QA = du.extend({
39449
+ ), JA = du.extend({
39423
39450
  type: c.z.literal(ut.enum.QR),
39424
39451
  session: c.z.string().nullish(),
39425
39452
  slot: c.z.string()
39426
- }), JA = du.extend({
39453
+ }), ZA = du.extend({
39427
39454
  type: c.z.literal(ut.enum.QUEUE),
39428
39455
  queueId: c.z.string().superRefine(ve.isObjectId),
39429
39456
  slot: c.z.string().nullish()
39430
- }), ZA = du.extend({
39457
+ }), XA = du.extend({
39431
39458
  type: c.z.literal(ut.enum.RESERVATION),
39432
39459
  reservationId: c.z.string().superRefine(ve.isObjectId),
39433
39460
  pf_booking: c.z.lazy(() => yi).optional(),
39434
39461
  slot: c.z.string().nullish()
39435
- }), XA = du.extend({
39462
+ }), e3 = du.extend({
39436
39463
  type: c.z.literal(ut.enum.TAKEAWAY),
39437
39464
  slot: c.z.string(),
39438
39465
  seqNumber: c.z.string().nullish()
39439
- }), e3 = c.z.discriminatedUnion("type", [
39440
- QA,
39466
+ }), t3 = c.z.discriminatedUnion("type", [
39441
39467
  JA,
39442
39468
  ZA,
39443
- XA
39469
+ XA,
39470
+ e3
39444
39471
  ]).describe(
39445
39472
  ve.ZodMeta.dart().discriminatedUnion({ baseType: "FdoDineInBaseSubOption" }).build()
39446
39473
  ), fc = c.z.unknown().and(
@@ -39475,18 +39502,18 @@ const cu = c.z.object({
39475
39502
  }), Dz = c.z.object({
39476
39503
  type: mt,
39477
39504
  trxResults: c.z.array(c.z.lazy(() => cu)).nullish(),
39478
- transactions: c.z.array(c.z.lazy(() => xA)).nullish()
39479
- }), t3 = c.z.object({
39505
+ transactions: c.z.array(c.z.lazy(() => WA)).nullish()
39506
+ }), n3 = c.z.object({
39480
39507
  type: mt,
39481
39508
  trxResults: c.z.array(c.z.lazy(() => cu)).nullish(),
39482
39509
  transactions: c.z.array(c.z.string()).nullish(),
39483
39510
  pf_transactions: c.z.array(lu).nullish()
39484
- }), n3 = c.z.object({
39511
+ }), r3 = c.z.object({
39485
39512
  type: mt,
39486
39513
  trxResults: c.z.array(c.z.lazy(() => cu)).nullish(),
39487
39514
  transactions: c.z.array(c.z.lazy(() => jz)).nullish(),
39488
39515
  credits: c.z.array(c.z.any()).nullish()
39489
- }), r3 = c.z.object({
39516
+ }), a3 = c.z.object({
39490
39517
  type: mt,
39491
39518
  transactions: c.z.array(c.z.string()).nullish(),
39492
39519
  credits: c.z.array(c.z.string()).nullish()
@@ -39494,7 +39521,7 @@ const cu = c.z.object({
39494
39521
  c.z.object({
39495
39522
  amount: H.FdoDinero
39496
39523
  });
39497
- const a3 = c.z.object({
39524
+ const i3 = c.z.object({
39498
39525
  type: md,
39499
39526
  transactionId: c.z.string(),
39500
39527
  rawResult: fc,
@@ -39505,7 +39532,7 @@ c.z.object({
39505
39532
  inApp: c.z.boolean().default(!1),
39506
39533
  fullPayment: c.z.boolean().default(!0)
39507
39534
  });
39508
- const i3 = c.z.object({
39535
+ const u3 = c.z.object({
39509
39536
  code: c.z.string().nullish(),
39510
39537
  unit: c.z.string().nullish(),
39511
39538
  perXUnit: c.z.string().or(c.z.number()).nullish(),
@@ -39562,10 +39589,10 @@ const i3 = c.z.object({
39562
39589
  code: u.product.code,
39563
39590
  price: u.product.price
39564
39591
  } : null
39565
- })), u3 = c.z.object({
39592
+ })), o3 = c.z.object({
39566
39593
  takeaway: c.z.boolean(),
39567
39594
  delivery: c.z.boolean().nullish()
39568
- }), o3 = c.z.object({
39595
+ }), s3 = c.z.object({
39569
39596
  name: c.z.array(c.z.string()),
39570
39597
  name_locale: c.z.record(c.z.array(c.z.string())).nullish(),
39571
39598
  combinationKey: c.z.string()
@@ -39575,9 +39602,9 @@ const i3 = c.z.object({
39575
39602
  subItems: c.z.array(kz),
39576
39603
  quantity: c.z.number(),
39577
39604
  remark: c.z.string().nullish(),
39578
- product: i3,
39579
- variantSelected: o3.nullish(),
39580
- is: u3.nullish(),
39605
+ product: u3,
39606
+ variantSelected: s3.nullish(),
39607
+ is: o3.nullish(),
39581
39608
  customer: H.FdoBillCustomerRef.nullish(),
39582
39609
  upsellingId: c.z.string().nullish(),
39583
39610
  adjustments: c.z.record(c.z.lazy(() => H.FdoItemAdjustment)),
@@ -39592,25 +39619,25 @@ const i3 = c.z.object({
39592
39619
  unionKey: "type",
39593
39620
  baseType: "FdoBaseOrderOption"
39594
39621
  }).build()
39595
- ), s3 = c.z.object({
39622
+ ), l3 = c.z.object({
39596
39623
  breakdown: c.z.record(c.z.object({
39597
39624
  count: c.z.number()
39598
39625
  }))
39599
- }), l3 = fu.extend({
39626
+ }), d3 = fu.extend({
39600
39627
  type: c.z.literal(li.enum.DINE_IN),
39601
39628
  pax: c.z.number().nullish(),
39602
- personMeta: s3.nullish(),
39603
- sub: e3
39604
- }), d3 = fu.extend({
39629
+ personMeta: l3.nullish(),
39630
+ sub: t3
39631
+ }), c3 = fu.extend({
39605
39632
  type: c.z.literal(li.enum.PICKUP),
39606
39633
  contactNumber: c.z.string(),
39607
39634
  pickupAt: c.z.string(),
39608
39635
  pickupPoint: c.z.lazy(() => H.FdoPickupPoint).nullish(),
39609
39636
  slot: c.z.string().nullish()
39610
- }), c3 = fu.extend({
39637
+ }), f3 = fu.extend({
39611
39638
  type: c.z.literal(li.enum.DELIVERY),
39612
39639
  status: ft,
39613
- providers: c.z.array(WA).nullish(),
39640
+ providers: c.z.array(QA).nullish(),
39614
39641
  contactNumber: c.z.string(),
39615
39642
  addressLine: c.z.string(),
39616
39643
  lat: c.z.number(),
@@ -39622,19 +39649,19 @@ const i3 = c.z.object({
39622
39649
  slot: c.z.string().nullish(),
39623
39650
  ...hd.shape
39624
39651
  }), Bz = c.z.discriminatedUnion("type", [
39625
- l3,
39626
39652
  d3,
39627
- c3
39653
+ c3,
39654
+ f3
39628
39655
  ]).describe(
39629
39656
  ve.ZodMeta.dart().discriminatedUnion({ baseType: "FdoBaseOrderOption" }).build()
39630
39657
  ), qz = c.z.object({
39631
39658
  type: mt,
39632
39659
  transactions: c.z.array(c.z.string().superRefine(ve.isObjectId)).nullish(),
39633
39660
  credits: c.z.array(c.z.string().superRefine(ve.isObjectId)).nullish(),
39634
- trxResults: c.z.array(c.z.lazy(() => a3)).nullish(),
39661
+ trxResults: c.z.array(c.z.lazy(() => i3)).nullish(),
39635
39662
  pf_transactions: c.z.array(c.z.lazy(() => lu)).nullish(),
39636
39663
  pf_credits: c.z.array(H.FdoCreditTransaction).nullish()
39637
- }), f3 = c.z.lazy(
39664
+ }), m3 = c.z.lazy(
39638
39665
  () => H.FdoFinalBillEffect.extend({
39639
39666
  id: c.z.string().nullish()
39640
39667
  // Customer V3 need this to identify item effect
@@ -39652,7 +39679,7 @@ const i3 = c.z.object({
39652
39679
  // to the same `/dine?id=&seat=` URL a printed table QR uses, so without this the two entry
39653
39680
  // points are indistinguishable on the order. Absent = not an NFC tap.
39654
39681
  nfcId: c.z.string().nullish()
39655
- }), m3 = c.z.object({
39682
+ }), h3 = c.z.object({
39656
39683
  _id: c.z.string().superRefine(ve.isObjectId),
39657
39684
  billId: c.z.string().nullish(),
39658
39685
  billRev: c.z.string().nullish(),
@@ -39674,14 +39701,14 @@ const i3 = c.z.object({
39674
39701
  payment: qz.nullish(),
39675
39702
  freeCreditAsDiscount: c.z.boolean().nullish(),
39676
39703
  creditDiscountTransaction: c.z.any().nullish(),
39677
- effects: c.z.array(f3),
39704
+ effects: c.z.array(m3),
39678
39705
  option: Bz,
39679
39706
  orderAt: c.z.string().superRefine(ve.isISODateString),
39680
39707
  status: St,
39681
39708
  bill: c.z.lazy(() => H.FdoBill).nullish(),
39682
39709
  rejectReason: c.z.string().nullish(),
39683
39710
  orderMetadata: hc.nullish()
39684
- }).describe(ve.ZodMeta.mongo().repo("Orders").build()), zi = m3, h3 = c.z.any(), Ar = c.z.object({
39711
+ }).describe(ve.ZodMeta.mongo().repo("Orders").build()), zi = h3, b3 = c.z.any(), Ar = c.z.object({
39685
39712
  name: c.z.array(c.z.string()),
39686
39713
  name_locale: c.z.record(c.z.array(c.z.string())).nullish(),
39687
39714
  combinationKey: c.z.string()
@@ -39729,11 +39756,11 @@ const i3 = c.z.object({
39729
39756
  upsellingId: c.z.string().nullish()
39730
39757
  }), Lz = Gz.extend({
39731
39758
  subItems: c.z.array(c.z.lazy(() => Lz))
39732
- }), b3 = Gz.extend({
39759
+ }), g3 = Gz.extend({
39733
39760
  product: bc.extend({
39734
39761
  price: H.FdoDinero.nullish()
39735
39762
  }).nullish()
39736
- }), Uz = b3.extend({
39763
+ }), Uz = g3.extend({
39737
39764
  subItems: c.z.array(c.z.lazy(() => Uz))
39738
39765
  }), gc = c.z.object({
39739
39766
  takeaway: c.z.boolean(),
@@ -39752,15 +39779,15 @@ const i3 = c.z.object({
39752
39779
  adjustments: c.z.record(c.z.any()).default({}),
39753
39780
  taxes: c.z.record(c.z.any()).default({}),
39754
39781
  nettTotal: H.FdoDinero.nullish()
39755
- }), g3 = _i.extend({
39782
+ }), p3 = _i.extend({
39756
39783
  subItems: c.z.array(Uz)
39757
- }), p3 = c.z.object({
39784
+ }), y3 = c.z.object({
39758
39785
  name: c.z.string(),
39759
39786
  price: H.FdoDinero,
39760
39787
  serveDelayId: c.z.string().nullish(),
39761
39788
  serveDelayName: c.z.string().nullish(),
39762
39789
  serveDelayInMins: c.z.number().nullish()
39763
- }), y3 = c.z.object({
39790
+ }), z3 = c.z.object({
39764
39791
  selection: c.z.string(),
39765
39792
  price: H.FdoDinero.nullish(),
39766
39793
  name: c.z.string(),
@@ -39772,17 +39799,17 @@ const i3 = c.z.object({
39772
39799
  name: c.z.string(),
39773
39800
  quantity: c.z.number(),
39774
39801
  variantSelected: Ar.nullish(),
39775
- subItems: c.z.array(y3).nullish()
39802
+ subItems: c.z.array(z3).nullish()
39776
39803
  }), pc = c.z.object({
39777
39804
  id: c.z.string().nullish(),
39778
39805
  productId: c.z.string().nullish(),
39779
39806
  subItems: c.z.array(Yz),
39780
39807
  quantity: c.z.number(),
39781
39808
  remark: c.z.string().nullish(),
39782
- product: p3,
39809
+ product: y3,
39783
39810
  variantSelected: Ar.nullish(),
39784
39811
  is: gc.nullish()
39785
- }), z3 = c.z.any();
39812
+ }), _3 = c.z.any();
39786
39813
  c.z.object({
39787
39814
  id: c.z.string().nullish(),
39788
39815
  productId: c.z.string().nullish(),
@@ -39792,15 +39819,15 @@ c.z.object({
39792
39819
  is: c.z.lazy(() => gc).nullish(),
39793
39820
  _raw: c.z.any(),
39794
39821
  price: H.FdoDinero,
39795
- variantSelectionGroups: c.z.array(c.z.lazy(() => z3)),
39822
+ variantSelectionGroups: c.z.array(c.z.lazy(() => _3)),
39796
39823
  product: c.z.any(),
39797
39824
  nettTotal: H.FdoDinero.nullish(),
39798
39825
  variantSelected: Ar,
39799
39826
  count: c.z.number()
39800
39827
  });
39801
- const _3 = c.z.object({
39828
+ const v3 = c.z.object({
39802
39829
  taxAndChargeSetting: H.FdtoTaxAndChargeSetting,
39803
- menu: h3.nullish(),
39830
+ menu: b3.nullish(),
39804
39831
  roundToNearest: c.z.number().optional(),
39805
39832
  restaurant: c.z.object({
39806
39833
  _id: c.z.string(),
@@ -39810,14 +39837,14 @@ const _3 = c.z.object({
39810
39837
  c.z.object({
39811
39838
  order: zi,
39812
39839
  oldDraft: c.z.array(mc),
39813
- draftOption: c.z.lazy(() => _3),
39840
+ draftOption: c.z.lazy(() => v3),
39814
39841
  notify: c.z.function().args(c.z.string(), c.z.record(c.z.string(), H.FdoBillItem)).returns(c.z.void())
39815
39842
  });
39816
- const v3 = c.z.object({
39843
+ const $3 = c.z.object({
39817
39844
  name: c.z.string(),
39818
39845
  address: c.z.string(),
39819
39846
  coordinates: c.z.array(c.z.number())
39820
- }), $3 = c.z.object({
39847
+ }), E3 = c.z.object({
39821
39848
  name: c.z.string(),
39822
39849
  address: c.z.string(),
39823
39850
  coordinates: c.z.array(c.z.number())
@@ -39826,7 +39853,7 @@ c.z.object({
39826
39853
  orderNumber: c.z.string(),
39827
39854
  customerName: c.z.string(),
39828
39855
  phoneNumber: c.z.string(),
39829
- pickupPoint: v3.nullish()
39856
+ pickupPoint: $3.nullish()
39830
39857
  });
39831
39858
  c.z.object({
39832
39859
  id: c.z.string(),
@@ -39865,7 +39892,7 @@ const Vz = c.z.object({
39865
39892
  profile: H.FdoProfile.extend({ url: c.z.string().nullish().default("") }),
39866
39893
  dineIn: c.z.lazy(() => H.FdoRestaurantDineIn).nullish(),
39867
39894
  pickup: c.z.lazy(() => H.FdoRestaurantPickup).nullish()
39868
- }), E3 = c.z.object({
39895
+ }), T3 = c.z.object({
39869
39896
  restaurantId: c.z.string(),
39870
39897
  roundToNearest: c.z.number().optional(),
39871
39898
  roundingType: H.FdoDineroRoundingType.nullish(),
@@ -39888,27 +39915,27 @@ c.z.object({
39888
39915
  hideProductCode: c.z.boolean().nullish(),
39889
39916
  paymentGateways: c.z.array(lt.FdoPaymentGateway),
39890
39917
  posHeartbeat: c.z.string().nullish(),
39891
- pricingContext: E3.nullish()
39918
+ pricingContext: T3.nullish()
39892
39919
  });
39893
39920
  const Hz = H.FdoUser.omit({ imported: !0 });
39894
39921
  c.z.object({
39895
39922
  success: c.z.boolean(),
39896
39923
  user: H.FdoUser
39897
39924
  });
39898
- const T3 = c.z.object({
39925
+ const F3 = c.z.object({
39899
39926
  start: c.z.string().superRefine(ve.isISODateString),
39900
39927
  end: c.z.string().superRefine(ve.isISODateString)
39901
- }), F3 = c.z.object({
39928
+ }), A3 = c.z.object({
39902
39929
  start: c.z.string(),
39903
39930
  end: c.z.string()
39904
- }), A3 = c.z.enum(["SHOW", "HIDDEN", "DISABLE"]);
39931
+ }), I3 = c.z.enum(["SHOW", "HIDDEN", "DISABLE"]);
39905
39932
  c.z.object({
39906
39933
  from: H.F_ADJUSTMENT_CAUSE,
39907
39934
  referenceId: c.z.string(),
39908
39935
  items: c.z.array(c.z.string()),
39909
39936
  status: c.z.string()
39910
39937
  });
39911
- const I3 = c.z.object({
39938
+ const R3 = c.z.object({
39912
39939
  adjustment: H.FdoAdjustmentOption,
39913
39940
  options: c.z.discriminatedUnion("target", [
39914
39941
  H.FdoBillEffect,
@@ -39917,9 +39944,9 @@ const I3 = c.z.object({
39917
39944
  availableOnlineOrder: c.z.array(li).nullish(),
39918
39945
  priority: c.z.number().nullish()
39919
39946
  }), yc = c.z.object({
39920
- raw: I3,
39947
+ raw: R3,
39921
39948
  name: c.z.string(),
39922
- visible: A3,
39949
+ visible: I3,
39923
39950
  from: H.F_ADJUSTMENT_CAUSE,
39924
39951
  referenceId: c.z.string(),
39925
39952
  returnId: c.z.string().optional(),
@@ -39942,12 +39969,12 @@ const Kz = c.z.any(), vi = c.z.object({
39942
39969
  breakdown: c.z.record(c.z.object({
39943
39970
  count: c.z.number()
39944
39971
  }))
39945
- }), R3 = vi.extend({
39972
+ }), S3 = vi.extend({
39946
39973
  type: c.z.literal(H.F_ORDER_TYPE.enum.DINE_IN),
39947
39974
  pax: c.z.number().nullish(),
39948
39975
  personMeta: xz.nullish(),
39949
- sub: YA
39950
- }), S3 = vi.extend({
39976
+ sub: VA
39977
+ }), M3 = vi.extend({
39951
39978
  type: c.z.literal(H.F_ORDER_TYPE.enum.DINE_IN),
39952
39979
  slot: c.z.string().nullish(),
39953
39980
  pax: c.z.number().nullish(),
@@ -39958,7 +39985,7 @@ const Kz = c.z.any(), vi = c.z.object({
39958
39985
  type: c.z.literal(H.F_ORDER_TYPE.enum.PICKUP),
39959
39986
  contactNumber: c.z.string(),
39960
39987
  pickupAt: c.z.string(),
39961
- pickupPoint: c.z.lazy(() => $3).nullish(),
39988
+ pickupPoint: c.z.lazy(() => E3).nullish(),
39962
39989
  slot: c.z.string().nullish()
39963
39990
  }), Qz = vi.extend({
39964
39991
  type: c.z.literal(H.F_ORDER_TYPE.enum.DELIVERY),
@@ -39975,30 +40002,30 @@ const Kz = c.z.any(), vi = c.z.object({
39975
40002
  slot: c.z.string().nullish(),
39976
40003
  ...hd.shape
39977
40004
  }), $i = c.z.discriminatedUnion("type", [
39978
- R3,
40005
+ S3,
39979
40006
  Wz,
39980
40007
  Qz
39981
40008
  ]), zc = c.z.discriminatedUnion("type", [
39982
- S3,
40009
+ M3,
39983
40010
  Wz,
39984
40011
  Qz
39985
40012
  ]), _c = vi.omit({ remark: !0 }).extend({
39986
40013
  restaurantId: c.z.string()
39987
- }), M3 = _c.extend({
40014
+ }), w3 = _c.extend({
39988
40015
  type: c.z.literal(H.F_ORDER_TYPE.Enum.DINE_IN),
39989
40016
  slot: c.z.string(),
39990
40017
  userId: c.z.string().nullish()
39991
- }), w3 = _c.extend({
40018
+ }), P3 = _c.extend({
39992
40019
  type: c.z.literal(H.F_ORDER_TYPE.Enum.PICKUP),
39993
40020
  userId: c.z.string()
39994
- }), P3 = _c.extend({
40021
+ }), O3 = _c.extend({
39995
40022
  type: c.z.literal(H.F_ORDER_TYPE.Enum.DELIVERY),
39996
40023
  userId: c.z.string()
39997
40024
  });
39998
40025
  c.z.discriminatedUnion("type", [
39999
- M3,
40000
40026
  w3,
40001
- P3
40027
+ P3,
40028
+ O3
40002
40029
  ]);
40003
40030
  c.z.object({
40004
40031
  restaurantId: c.z.string(),
@@ -40009,7 +40036,7 @@ c.z.object({
40009
40036
  slots: c.z.array(c.z.string())
40010
40037
  });
40011
40038
  c.z.object({
40012
- orderAt: F3.nullish(),
40039
+ orderAt: A3.nullish(),
40013
40040
  skip: c.z.number().nullish(),
40014
40041
  limit: c.z.number().nullish(),
40015
40042
  type: c.z.array(H.F_ORDER_TYPE).nullish(),
@@ -40023,7 +40050,7 @@ c.z.object({
40023
40050
  slot: c.z.string().nullish(),
40024
40051
  subType: ut.nullish()
40025
40052
  });
40026
- const O3 = c.z.object({
40053
+ const j3 = c.z.object({
40027
40054
  id: c.z.string().nullish(),
40028
40055
  // Customer V3 need this to identify item effect
40029
40056
  target: c.z.any(),
@@ -40031,17 +40058,17 @@ const O3 = c.z.object({
40031
40058
  referenceId: c.z.string(),
40032
40059
  returnId: c.z.string().nullish(),
40033
40060
  items: c.z.array(c.z.string())
40034
- }), j3 = c.z.object({
40061
+ }), C3 = c.z.object({
40035
40062
  draft: c.z.array(_i).default([]),
40036
40063
  option: $i,
40037
40064
  payment: Nz.omit({ pf_transactions: !0 }).nullish(),
40038
40065
  userId: c.z.string().nullish(),
40039
- effects: c.z.array(O3).default([])
40066
+ effects: c.z.array(j3).default([])
40040
40067
  });
40041
40068
  c.z.object({
40042
40069
  restaurant: c.z.string(),
40043
40070
  orderMetadata: hc.nullish()
40044
- }).extend(j3.shape);
40071
+ }).extend(C3.shape);
40045
40072
  c.z.object({
40046
40073
  itemIds: c.z.array(c.z.string()).nullish(),
40047
40074
  effectIds: c.z.array(c.z.string()).nullish()
@@ -40086,7 +40113,7 @@ c.z.object({
40086
40113
  userName: c.z.string().nullish(),
40087
40114
  restaurant: c.z.string(),
40088
40115
  pf_restaurant: Vz.nullish(),
40089
- payment: t3.nullish(),
40116
+ payment: n3.nullish(),
40090
40117
  freeCreditAsDiscount: c.z.boolean().nullish(),
40091
40118
  creditDiscountTransaction: c.z.any().nullish(),
40092
40119
  effects: c.z.array(c.z.object({ id: c.z.string().nullish() }).and(H.FdoFinalBillEffect)).default([]),
@@ -40142,7 +40169,7 @@ c.z.object({
40142
40169
  userName: c.z.string().nullish(),
40143
40170
  billId: c.z.string().nullish(),
40144
40171
  draft: c.z.array(pc),
40145
- payment: r3,
40172
+ payment: a3,
40146
40173
  effects: c.z.array(c.z.lazy(() => c.z.any())).nullish(),
40147
40174
  rejectReason: c.z.string().nullish()
40148
40175
  }).transform((u) => ({
@@ -40154,7 +40181,7 @@ c.z.object({
40154
40181
  c.z.object({
40155
40182
  _id: c.z.string(),
40156
40183
  billId: c.z.string().nullish(),
40157
- draft: c.z.array(g3),
40184
+ draft: c.z.array(p3),
40158
40185
  pf_user: c.z.lazy(() => c.z.any()).nullish(),
40159
40186
  userId: c.z.string().nullish(),
40160
40187
  userName: c.z.string().nullish(),
@@ -40194,7 +40221,7 @@ c.z.object({
40194
40221
  // bill: FdoBill.nullish(),
40195
40222
  bill: c.z.any().nullish(),
40196
40223
  draft: c.z.array(_i),
40197
- payment: n3.nullish(),
40224
+ payment: r3.nullish(),
40198
40225
  rejectReason: c.z.string().nullish(),
40199
40226
  effects: c.z.array(c.z.lazy(() => c.z.any())).default([])
40200
40227
  });
@@ -40202,7 +40229,7 @@ c.z.object({
40202
40229
  restaurantId: c.z.string(),
40203
40230
  slot: c.z.string()
40204
40231
  });
40205
- const C3 = c.z.object({
40232
+ const N3 = c.z.object({
40206
40233
  id: c.z.string().nullish(),
40207
40234
  // Customer V3 need this to identify item effect
40208
40235
  target: H.F_EFFECT_TARGET,
@@ -40210,7 +40237,7 @@ const C3 = c.z.object({
40210
40237
  referenceId: c.z.string(),
40211
40238
  returnId: c.z.string().nullish(),
40212
40239
  items: c.z.array(c.z.string()).default([])
40213
- }), N3 = c.z.object({
40240
+ }), D3 = c.z.object({
40214
40241
  id: c.z.string().nullish(),
40215
40242
  // Customer V3 need this to identify item effect
40216
40243
  from: H.F_ADJUSTMENT_CAUSE,
@@ -40219,19 +40246,19 @@ const C3 = c.z.object({
40219
40246
  items: c.z.array(c.z.string()).nullish()
40220
40247
  }), vc = fu.omit({ remark: !0 }).extend({
40221
40248
  restaurantId: c.z.string()
40222
- }), D3 = vc.extend({
40249
+ }), k3 = vc.extend({
40223
40250
  type: c.z.literal(H.F_ORDER_TYPE.enum.DINE_IN),
40224
40251
  slot: c.z.string(),
40225
40252
  userId: c.z.string().nullish()
40226
- }), k3 = vc.extend({
40253
+ }), B3 = vc.extend({
40227
40254
  type: c.z.literal(H.F_ORDER_TYPE.enum.PICKUP),
40228
40255
  userId: c.z.string()
40229
- }), B3 = vc.extend({
40256
+ }), q3 = vc.extend({
40230
40257
  type: c.z.literal(H.F_ORDER_TYPE.enum.DELIVERY),
40231
40258
  userId: c.z.string()
40232
40259
  });
40233
40260
  c.z.object({
40234
- orderAt: T3.nullish(),
40261
+ orderAt: F3.nullish(),
40235
40262
  skip: c.z.number().nullish(),
40236
40263
  limit: c.z.number().nullish(),
40237
40264
  type: c.z.array(H.F_ORDER_TYPE).nullish(),
@@ -40249,7 +40276,7 @@ c.z.object({
40249
40276
  subType: ut.nullish(),
40250
40277
  billIds: c.z.array(c.z.string()).nullish()
40251
40278
  });
40252
- const q3 = c.z.object({
40279
+ const G3 = c.z.object({
40253
40280
  draft: c.z.array(mc),
40254
40281
  option: Bz,
40255
40282
  payment: qz.omit({
@@ -40257,21 +40284,21 @@ const q3 = c.z.object({
40257
40284
  pf_credits: !0
40258
40285
  }).nullish(),
40259
40286
  userId: c.z.string().nullish(),
40260
- effects: c.z.array(C3)
40287
+ effects: c.z.array(N3)
40261
40288
  });
40262
40289
  c.z.object({
40263
40290
  itemIds: c.z.array(c.z.string()).nullish(),
40264
40291
  effectIds: c.z.array(c.z.string()).nullish()
40265
40292
  });
40266
40293
  c.z.discriminatedUnion("type", [
40267
- D3,
40268
40294
  k3,
40269
- B3
40295
+ B3,
40296
+ q3
40270
40297
  ]);
40271
40298
  c.z.object({
40272
40299
  restaurant: c.z.string(),
40273
40300
  orderMetadata: hc.default({ orderPlatform: Pi.Enum.UNKNOWN })
40274
- }).extend(q3.shape);
40301
+ }).extend(G3.shape);
40275
40302
  c.z.object({
40276
40303
  bill: H.FdoBill,
40277
40304
  order: zi,
@@ -40282,7 +40309,7 @@ c.z.object({
40282
40309
  dynamicQrSession: H.FdoDynamicQrSession.optional(),
40283
40310
  user: H.FdoUser.optional()
40284
40311
  });
40285
- const G3 = c.z.object({
40312
+ const L3 = c.z.object({
40286
40313
  roundToNearest: c.z.number().optional(),
40287
40314
  roundingType: H.FdoDineroRoundingType.nullish(),
40288
40315
  calculatorVersion: c.z.number().optional(),
@@ -40293,7 +40320,7 @@ const G3 = c.z.object({
40293
40320
  c.z.object({
40294
40321
  order: zi,
40295
40322
  orderType: H.F_ORDER_TYPE,
40296
- billCalculateOption: G3
40323
+ billCalculateOption: L3
40297
40324
  });
40298
40325
  c.z.object({
40299
40326
  id: c.z.string().nullish(),
@@ -40301,9 +40328,9 @@ c.z.object({
40301
40328
  items: c.z.array(c.z.string()).optional(),
40302
40329
  customer: H.FdoBillCustomerRef.optional()
40303
40330
  });
40304
- const L3 = c.z.array(N3), U3 = zi.extend({
40305
- effects: L3
40306
- }), Y3 = U3;
40331
+ const U3 = c.z.array(D3), Y3 = zi.extend({
40332
+ effects: U3
40333
+ }), V3 = Y3;
40307
40334
  c.z.object({
40308
40335
  user: H.FdoUser.optional(),
40309
40336
  restaurant: H.FdoRestaurant,
@@ -40320,7 +40347,7 @@ c.z.object({
40320
40347
  transaction: c.z.boolean()
40321
40348
  });
40322
40349
  c.z.object({
40323
- order: Y3,
40350
+ order: V3,
40324
40351
  user: H.FdoUser.optional(),
40325
40352
  restaurant: H.FdoRestaurant,
40326
40353
  taxAndChargeSetting: H.FdtoTaxAndChargeSetting,
@@ -40343,10 +40370,10 @@ c.z.object({
40343
40370
  export {
40344
40371
  rz as C,
40345
40372
  uA as F,
40346
- FA as O,
40347
- K3 as T,
40373
+ AA as O,
40374
+ x3 as T,
40348
40375
  Ez as a,
40349
- H3 as b,
40376
+ K3 as b,
40350
40377
  mt as c,
40351
40378
  L$ as d,
40352
40379
  ju as e,
@@ -40356,11 +40383,11 @@ export {
40356
40383
  Az as i,
40357
40384
  Fz as j,
40358
40385
  li as k,
40359
- AA as l,
40360
- IA as m,
40361
- RA as n,
40386
+ IA as l,
40387
+ RA as m,
40388
+ SA as n,
40362
40389
  Iz as o,
40363
- x3 as p,
40364
- W3 as q,
40390
+ W3 as p,
40391
+ Q3 as q,
40365
40392
  t1 as r
40366
40393
  };