@feedmepos/mf-order-setting 0.0.85 → 0.0.86

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 (84) hide show
  1. package/dist/{DisplaySystemView-hmlT9gsb.js → DisplaySystemView-DjFBEWoq.js} +1 -1
  2. package/dist/{KioskDevicesView-fW6M9Hao.js → KioskDevicesView-RKMdLuB3.js} +1 -1
  3. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-GrsnYo80.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-BrG6Au5z.js} +3 -3
  4. package/dist/{KioskSettingView-BdEPftHH.js → KioskSettingView-CzelEig6.js} +3 -3
  5. package/dist/{KioskView-Bwk9S0tc.js → KioskView-Bi5Kc4cS.js} +35 -30
  6. package/dist/OrderSettingsView-BfxrjGAi.js +68958 -0
  7. package/dist/{app-BnrruYco.js → app-Bg-n-Eug.js} +8316 -7952
  8. package/dist/app.js +1 -1
  9. package/dist/common/index.d.ts +6 -7
  10. package/dist/frontend/mf-order/src/app.d.ts +24 -8
  11. package/dist/frontend/mf-order/src/main.d.ts +24 -8
  12. package/dist/frontend/mf-order/src/modules/order-setting/kiosk/interface.d.ts +2 -0
  13. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +18 -99
  14. package/dist/frontend/mf-order/src/views/order-settings/delivery/delivery.d.ts +1 -0
  15. package/dist/frontend/mf-order/src/views/order-settings/delivery/inhouse/InHouseDelivery.vue.d.ts +3 -0
  16. package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/IntegratedDelivery.vue.d.ts +12 -1
  17. package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/IntegrationIdentityDetails.vue.d.ts +12 -0
  18. package/dist/frontend/mf-order/src/views/order-settings/pickup/PickUpSettingDialogContent.vue.d.ts +3 -0
  19. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  20. package/dist/{index-LyvBqKnv.js → index-0eYg6XEb.js} +1 -1
  21. package/dist/{index-D5wABuUx.js → index-C7Ug4fCi.js} +1 -1
  22. package/dist/{index-D7IWjZdy.js → index-g_rocKrp.js} +2 -2
  23. package/dist/order.dto-MKeJAj6d.js +39215 -0
  24. package/dist/package/entity/alert/investigation.dto.d.ts +3 -0
  25. package/dist/package/entity/alert/suggestion.dto.d.ts +3 -0
  26. package/dist/package/entity/delivery/delivery.dto.d.ts +1 -11
  27. package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +89 -51
  28. package/dist/package/entity/index.d.ts +0 -7
  29. package/dist/package/entity/kiosk/kiosk.dto.d.ts +6 -0
  30. package/dist/package/entity/kiosk/marketing/marketing.dto.d.ts +26 -0
  31. package/dist/package/entity/member/member.dto.d.ts +12 -12
  32. package/dist/package/entity/order/dine-in/dine-in.do.d.ts +9 -159
  33. package/dist/package/entity/order/dine-in/dine-in.dto.d.ts +3 -17
  34. package/dist/package/entity/order/effects/effect.dto.d.ts +32 -0
  35. package/dist/package/entity/order/menu/menu.dto.d.ts +6 -144
  36. package/dist/package/entity/order/order.do.d.ts +109 -269
  37. package/dist/package/entity/order/order.dto.d.ts +408 -782
  38. package/dist/package/entity/order/order.enum.d.ts +1 -1
  39. package/dist/package/entity/order/timeslot/timeslot.dto.d.ts +4 -4
  40. package/dist/package/entity/order-platform/foodpanda/foodpanda-order.dto.d.ts +1 -11
  41. package/dist/package/entity/order-platform/grabfood/grabfood-order.do.d.ts +1 -11
  42. package/dist/package/entity/order-platform/order-platform.dto.d.ts +278 -234
  43. package/dist/package/entity/order-platform/shopeefood/shopeefood-order.do.d.ts +1 -11
  44. package/dist/package/entity/order-platform/tng/tng-menu.do.d.ts +6 -6
  45. package/dist/package/entity/order-setting/delivery/inhouse-delivery.dto.d.ts +3 -0
  46. package/dist/package/entity/order-setting/dine-in/dine-in.dto.d.ts +65 -0
  47. package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +1004 -0
  48. package/dist/package/entity/order-setting/order-setting.do.d.ts +5 -337
  49. package/dist/package/entity/order-setting/order-setting.dto.d.ts +879 -678
  50. package/dist/package/entity/order-setting/pickup/pickup.dto.d.ts +3 -0
  51. package/dist/package/entity/order-setting/sequence/sequence.do.d.ts +0 -41
  52. package/dist/package/entity/order-setting/sequence/sequence.dto.d.ts +0 -43
  53. package/dist/package/entity/order-setting/sms/sms.do.d.ts +3 -3
  54. package/dist/package/entity/order-setting/sms/sms.dto.d.ts +3 -3
  55. package/dist/package/entity/queue/queue.do.d.ts +2 -2
  56. package/dist/package/entity/queue/queue.dto.d.ts +49 -65
  57. package/dist/package/entity/restaurant/restaurant.dto.d.ts +11 -0
  58. package/dist/package/entity/websocket/websocket.dto.d.ts +33 -161
  59. package/dist/package/entity/websocket/websocket.enum.d.ts +1 -1
  60. package/dist/style.css +1 -1
  61. package/package.json +2 -2
  62. package/src/locales/en-US.json +6 -2
  63. package/src/locales/ja-JP.json +6 -2
  64. package/src/locales/th-TH.json +6 -2
  65. package/src/locales/zh-CN.json +6 -2
  66. package/src/modules/order-setting/kiosk/interface.ts +12 -0
  67. package/src/stores/order-setting/mapper.spec.ts +36 -0
  68. package/src/stores/order-setting/mapper.ts +5 -0
  69. package/src/views/order-settings/delivery/DeliverySetting.vue +5 -5
  70. package/src/views/order-settings/delivery/delivery.spec.ts +34 -0
  71. package/src/views/order-settings/delivery/delivery.ts +14 -1
  72. package/src/views/order-settings/delivery/integrated-delivery/IntegratedDelivery.vue +10 -1
  73. package/src/views/order-settings/delivery/integrated-delivery/IntegrationIdentityDetails.vue +121 -22
  74. package/src/views/order-settings/delivery/integrated-delivery/LinemanSetting.vue +161 -10
  75. package/dist/OrderSettingsView-DVXfVdXj.js +0 -94831
  76. package/dist/common/booking/index.d.ts +0 -38
  77. package/dist/order.dto-D7HGiueX.js +0 -43514
  78. package/dist/package/entity/booking/booking.do.d.ts +0 -17197
  79. package/dist/package/entity/booking/booking.dto.d.ts +0 -305
  80. package/dist/package/entity/booking/booking.enum.d.ts +0 -7
  81. package/dist/package/entity/order/dine-in/reservation.do.d.ts +0 -75
  82. package/dist/package/entity/order/dine-in/reservation.dto.d.ts +0 -15
  83. package/dist/package/entity/order-setting/reservation/reservation.do.d.ts +0 -662
  84. package/dist/package/entity/order-setting/reservation/reservation.dto.d.ts +0 -527
@@ -6,7 +6,6 @@ import type { FdtoOverridedMenu } from '@feedmepos/entity';
6
6
  import { FdtoCustomerEffect } from './effects/effect.dto';
7
7
  import { FdtoMember } from '../member/member.dto';
8
8
  import { PaymentTransaction } from '../payment/transaction';
9
- import { BookingReservationDto } from '../booking/booking.dto';
10
9
  type SerializableZodObject<T> = z.ZodObject<z.ZodRawShape, 'strip', z.ZodTypeAny, T>;
11
10
  export declare const OrderPersonMetaDto: z.ZodObject<{
12
11
  breakdown: z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -49,7 +48,7 @@ export declare const OrderDineInOptionDto: z.ZodObject<z.extendShape<{
49
48
  }>;
50
49
  }>>>;
51
50
  sub: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
52
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
51
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
53
52
  }, {
54
53
  type: z.ZodLiteral<"QR">;
55
54
  session: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -63,7 +62,7 @@ export declare const OrderDineInOptionDto: z.ZodObject<z.extendShape<{
63
62
  slot: string;
64
63
  type: "QR";
65
64
  }> | z.ZodObject<z.extendShape<{
66
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
65
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
67
66
  }, {
68
67
  type: z.ZodLiteral<"QUEUE">;
69
68
  queueId: z.ZodString;
@@ -77,21 +76,7 @@ export declare const OrderDineInOptionDto: z.ZodObject<z.extendShape<{
77
76
  type: "QUEUE";
78
77
  queueId: string;
79
78
  }> | z.ZodObject<z.extendShape<{
80
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
81
- }, {
82
- type: z.ZodLiteral<"RESERVATION">;
83
- reservationId: z.ZodString;
84
- slot: z.ZodNullable<z.ZodOptional<z.ZodString>>;
85
- }>, "strip", z.ZodTypeAny, {
86
- slot?: string | null | undefined;
87
- type: "RESERVATION";
88
- reservationId: string;
89
- }, {
90
- slot?: string | null | undefined;
91
- type: "RESERVATION";
92
- reservationId: string;
93
- }> | z.ZodObject<z.extendShape<{
94
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
79
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
95
80
  }, {
96
81
  type: z.ZodLiteral<"TAKEAWAY">;
97
82
  slot: z.ZodString;
@@ -121,10 +106,6 @@ export declare const OrderDineInOptionDto: z.ZodObject<z.extendShape<{
121
106
  slot?: string | null | undefined;
122
107
  type: "QUEUE";
123
108
  queueId: string;
124
- } | {
125
- slot?: string | null | undefined;
126
- type: "RESERVATION";
127
- reservationId: string;
128
109
  } | {
129
110
  seqNumber?: string | null | undefined;
130
111
  slot: string;
@@ -147,10 +128,6 @@ export declare const OrderDineInOptionDto: z.ZodObject<z.extendShape<{
147
128
  slot?: string | null | undefined;
148
129
  type: "QUEUE";
149
130
  queueId: string;
150
- } | {
151
- slot?: string | null | undefined;
152
- type: "RESERVATION";
153
- reservationId: string;
154
131
  } | {
155
132
  seqNumber?: string | null | undefined;
156
133
  slot: string;
@@ -1552,7 +1529,7 @@ export declare const OrderOptionDto: z.ZodDiscriminatedUnion<"type", z.Primitive
1552
1529
  }>;
1553
1530
  }>>>;
1554
1531
  sub: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
1555
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
1532
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
1556
1533
  }, {
1557
1534
  type: z.ZodLiteral<"QR">;
1558
1535
  session: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -1566,7 +1543,7 @@ export declare const OrderOptionDto: z.ZodDiscriminatedUnion<"type", z.Primitive
1566
1543
  slot: string;
1567
1544
  type: "QR";
1568
1545
  }> | z.ZodObject<z.extendShape<{
1569
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
1546
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
1570
1547
  }, {
1571
1548
  type: z.ZodLiteral<"QUEUE">;
1572
1549
  queueId: z.ZodString;
@@ -1580,21 +1557,7 @@ export declare const OrderOptionDto: z.ZodDiscriminatedUnion<"type", z.Primitive
1580
1557
  type: "QUEUE";
1581
1558
  queueId: string;
1582
1559
  }> | z.ZodObject<z.extendShape<{
1583
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
1584
- }, {
1585
- type: z.ZodLiteral<"RESERVATION">;
1586
- reservationId: z.ZodString;
1587
- slot: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1588
- }>, "strip", z.ZodTypeAny, {
1589
- slot?: string | null | undefined;
1590
- type: "RESERVATION";
1591
- reservationId: string;
1592
- }, {
1593
- slot?: string | null | undefined;
1594
- type: "RESERVATION";
1595
- reservationId: string;
1596
- }> | z.ZodObject<z.extendShape<{
1597
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
1560
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
1598
1561
  }, {
1599
1562
  type: z.ZodLiteral<"TAKEAWAY">;
1600
1563
  slot: z.ZodString;
@@ -1624,10 +1587,6 @@ export declare const OrderOptionDto: z.ZodDiscriminatedUnion<"type", z.Primitive
1624
1587
  slot?: string | null | undefined;
1625
1588
  type: "QUEUE";
1626
1589
  queueId: string;
1627
- } | {
1628
- slot?: string | null | undefined;
1629
- type: "RESERVATION";
1630
- reservationId: string;
1631
1590
  } | {
1632
1591
  seqNumber?: string | null | undefined;
1633
1592
  slot: string;
@@ -1650,10 +1609,6 @@ export declare const OrderOptionDto: z.ZodDiscriminatedUnion<"type", z.Primitive
1650
1609
  slot?: string | null | undefined;
1651
1610
  type: "QUEUE";
1652
1611
  queueId: string;
1653
- } | {
1654
- slot?: string | null | undefined;
1655
- type: "RESERVATION";
1656
- reservationId: string;
1657
1612
  } | {
1658
1613
  seqNumber?: string | null | undefined;
1659
1614
  slot: string;
@@ -4440,7 +4395,7 @@ export declare const OrderQueryDto: z.ZodObject<{
4440
4395
  excludeDeliveryStatus: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["CREATING", "NEW", "IN_DELIVER", "PICKING_UP", "IN_RETURN", "CANCELED", "RETURNED", "COMPLETE", "FAILED", "REFUSED"]>, "many">>>;
4441
4396
  ascending: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
4442
4397
  slot: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4443
- subType: z.ZodNullable<z.ZodOptional<z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>>>;
4398
+ subType: z.ZodNullable<z.ZodOptional<z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>>>;
4444
4399
  }, "strip", z.ZodTypeAny, {
4445
4400
  slot?: string | null | undefined;
4446
4401
  type?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
@@ -4457,7 +4412,7 @@ export declare const OrderQueryDto: z.ZodObject<{
4457
4412
  deliveryStatus?: ("CREATING" | "NEW" | "IN_DELIVER" | "PICKING_UP" | "IN_RETURN" | "CANCELED" | "RETURNED" | "COMPLETE" | "FAILED" | "REFUSED")[] | null | undefined;
4458
4413
  excludeDeliveryStatus?: ("CREATING" | "NEW" | "IN_DELIVER" | "PICKING_UP" | "IN_RETURN" | "CANCELED" | "RETURNED" | "COMPLETE" | "FAILED" | "REFUSED")[] | null | undefined;
4459
4414
  ascending?: number | null | undefined;
4460
- subType?: "QR" | "QUEUE" | "RESERVATION" | "TAKEAWAY" | "KIOSK" | "COUNTER" | null | undefined;
4415
+ subType?: "QR" | "QUEUE" | "TAKEAWAY" | "KIOSK" | "COUNTER" | null | undefined;
4461
4416
  }, {
4462
4417
  slot?: string | null | undefined;
4463
4418
  type?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
@@ -4474,7 +4429,7 @@ export declare const OrderQueryDto: z.ZodObject<{
4474
4429
  deliveryStatus?: ("CREATING" | "NEW" | "IN_DELIVER" | "PICKING_UP" | "IN_RETURN" | "CANCELED" | "RETURNED" | "COMPLETE" | "FAILED" | "REFUSED")[] | null | undefined;
4475
4430
  excludeDeliveryStatus?: ("CREATING" | "NEW" | "IN_DELIVER" | "PICKING_UP" | "IN_RETURN" | "CANCELED" | "RETURNED" | "COMPLETE" | "FAILED" | "REFUSED")[] | null | undefined;
4476
4431
  ascending?: number | null | undefined;
4477
- subType?: "QR" | "QUEUE" | "RESERVATION" | "TAKEAWAY" | "KIOSK" | "COUNTER" | null | undefined;
4432
+ subType?: "QR" | "QUEUE" | "TAKEAWAY" | "KIOSK" | "COUNTER" | null | undefined;
4478
4433
  }>;
4479
4434
  export declare const OrderEffectDto: z.ZodObject<{
4480
4435
  id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -5364,7 +5319,7 @@ export declare const OrderUpdateDto: z.ZodObject<{
5364
5319
  }>;
5365
5320
  }>>>;
5366
5321
  sub: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
5367
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
5322
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
5368
5323
  }, {
5369
5324
  type: z.ZodLiteral<"QR">;
5370
5325
  session: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -5378,7 +5333,7 @@ export declare const OrderUpdateDto: z.ZodObject<{
5378
5333
  slot: string;
5379
5334
  type: "QR";
5380
5335
  }> | z.ZodObject<z.extendShape<{
5381
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
5336
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
5382
5337
  }, {
5383
5338
  type: z.ZodLiteral<"QUEUE">;
5384
5339
  queueId: z.ZodString;
@@ -5392,21 +5347,7 @@ export declare const OrderUpdateDto: z.ZodObject<{
5392
5347
  type: "QUEUE";
5393
5348
  queueId: string;
5394
5349
  }> | z.ZodObject<z.extendShape<{
5395
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
5396
- }, {
5397
- type: z.ZodLiteral<"RESERVATION">;
5398
- reservationId: z.ZodString;
5399
- slot: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5400
- }>, "strip", z.ZodTypeAny, {
5401
- slot?: string | null | undefined;
5402
- type: "RESERVATION";
5403
- reservationId: string;
5404
- }, {
5405
- slot?: string | null | undefined;
5406
- type: "RESERVATION";
5407
- reservationId: string;
5408
- }> | z.ZodObject<z.extendShape<{
5409
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
5350
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
5410
5351
  }, {
5411
5352
  type: z.ZodLiteral<"TAKEAWAY">;
5412
5353
  slot: z.ZodString;
@@ -5436,10 +5377,6 @@ export declare const OrderUpdateDto: z.ZodObject<{
5436
5377
  slot?: string | null | undefined;
5437
5378
  type: "QUEUE";
5438
5379
  queueId: string;
5439
- } | {
5440
- slot?: string | null | undefined;
5441
- type: "RESERVATION";
5442
- reservationId: string;
5443
5380
  } | {
5444
5381
  seqNumber?: string | null | undefined;
5445
5382
  slot: string;
@@ -5462,10 +5399,6 @@ export declare const OrderUpdateDto: z.ZodObject<{
5462
5399
  slot?: string | null | undefined;
5463
5400
  type: "QUEUE";
5464
5401
  queueId: string;
5465
- } | {
5466
- slot?: string | null | undefined;
5467
- type: "RESERVATION";
5468
- reservationId: string;
5469
5402
  } | {
5470
5403
  seqNumber?: string | null | undefined;
5471
5404
  slot: string;
@@ -7191,10 +7124,6 @@ export declare const OrderUpdateDto: z.ZodObject<{
7191
7124
  slot?: string | null | undefined;
7192
7125
  type: "QUEUE";
7193
7126
  queueId: string;
7194
- } | {
7195
- slot?: string | null | undefined;
7196
- type: "RESERVATION";
7197
- reservationId: string;
7198
7127
  } | {
7199
7128
  seqNumber?: string | null | undefined;
7200
7129
  slot: string;
@@ -7626,7 +7555,6 @@ export declare const OrderUpdateDto: z.ZodObject<{
7626
7555
  }[] | null | undefined;
7627
7556
  type: "cash" | "ePayment" | "ePaymentNonPayout" | "credit" | "ePaymentSandbox";
7628
7557
  } | null | undefined;
7629
- userId?: string | null | undefined;
7630
7558
  draft?: {
7631
7559
  id?: string | null | undefined;
7632
7560
  remark?: string | null | undefined;
@@ -7820,6 +7748,7 @@ export declare const OrderUpdateDto: z.ZodObject<{
7820
7748
  } & /*elided*/ any)[];
7821
7749
  })[];
7822
7750
  }[] | undefined;
7751
+ userId?: string | null | undefined;
7823
7752
  effects?: {
7824
7753
  id?: string | null | undefined;
7825
7754
  target?: any;
@@ -7844,10 +7773,6 @@ export declare const OrderUpdateDto: z.ZodObject<{
7844
7773
  slot?: string | null | undefined;
7845
7774
  type: "QUEUE";
7846
7775
  queueId: string;
7847
- } | {
7848
- slot?: string | null | undefined;
7849
- type: "RESERVATION";
7850
- reservationId: string;
7851
7776
  } | {
7852
7777
  seqNumber?: string | null | undefined;
7853
7778
  slot: string;
@@ -8956,7 +8881,7 @@ export declare const OrderCreateDto: z.ZodObject<z.extendShape<{
8956
8881
  }>;
8957
8882
  }>>>;
8958
8883
  sub: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
8959
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
8884
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
8960
8885
  }, {
8961
8886
  type: z.ZodLiteral<"QR">;
8962
8887
  session: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -8970,7 +8895,7 @@ export declare const OrderCreateDto: z.ZodObject<z.extendShape<{
8970
8895
  slot: string;
8971
8896
  type: "QR";
8972
8897
  }> | z.ZodObject<z.extendShape<{
8973
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
8898
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
8974
8899
  }, {
8975
8900
  type: z.ZodLiteral<"QUEUE">;
8976
8901
  queueId: z.ZodString;
@@ -8984,21 +8909,7 @@ export declare const OrderCreateDto: z.ZodObject<z.extendShape<{
8984
8909
  type: "QUEUE";
8985
8910
  queueId: string;
8986
8911
  }> | z.ZodObject<z.extendShape<{
8987
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
8988
- }, {
8989
- type: z.ZodLiteral<"RESERVATION">;
8990
- reservationId: z.ZodString;
8991
- slot: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8992
- }>, "strip", z.ZodTypeAny, {
8993
- slot?: string | null | undefined;
8994
- type: "RESERVATION";
8995
- reservationId: string;
8996
- }, {
8997
- slot?: string | null | undefined;
8998
- type: "RESERVATION";
8999
- reservationId: string;
9000
- }> | z.ZodObject<z.extendShape<{
9001
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
8912
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
9002
8913
  }, {
9003
8914
  type: z.ZodLiteral<"TAKEAWAY">;
9004
8915
  slot: z.ZodString;
@@ -9028,10 +8939,6 @@ export declare const OrderCreateDto: z.ZodObject<z.extendShape<{
9028
8939
  slot?: string | null | undefined;
9029
8940
  type: "QUEUE";
9030
8941
  queueId: string;
9031
- } | {
9032
- slot?: string | null | undefined;
9033
- type: "RESERVATION";
9034
- reservationId: string;
9035
8942
  } | {
9036
8943
  seqNumber?: string | null | undefined;
9037
8944
  slot: string;
@@ -9054,10 +8961,6 @@ export declare const OrderCreateDto: z.ZodObject<z.extendShape<{
9054
8961
  slot?: string | null | undefined;
9055
8962
  type: "QUEUE";
9056
8963
  queueId: string;
9057
- } | {
9058
- slot?: string | null | undefined;
9059
- type: "RESERVATION";
9060
- reservationId: string;
9061
8964
  } | {
9062
8965
  seqNumber?: string | null | undefined;
9063
8966
  slot: string;
@@ -10794,10 +10697,6 @@ export declare const OrderCreateDto: z.ZodObject<z.extendShape<{
10794
10697
  slot?: string | null | undefined;
10795
10698
  type: "QUEUE";
10796
10699
  queueId: string;
10797
- } | {
10798
- slot?: string | null | undefined;
10799
- type: "RESERVATION";
10800
- reservationId: string;
10801
10700
  } | {
10802
10701
  seqNumber?: string | null | undefined;
10803
10702
  slot: string;
@@ -11230,7 +11129,6 @@ export declare const OrderCreateDto: z.ZodObject<z.extendShape<{
11230
11129
  }[] | null | undefined;
11231
11130
  type: "cash" | "ePayment" | "ePaymentNonPayout" | "credit" | "ePaymentSandbox";
11232
11131
  } | null | undefined;
11233
- userId?: string | null | undefined;
11234
11132
  draft?: {
11235
11133
  id?: string | null | undefined;
11236
11134
  remark?: string | null | undefined;
@@ -11424,6 +11322,7 @@ export declare const OrderCreateDto: z.ZodObject<z.extendShape<{
11424
11322
  } & /*elided*/ any)[];
11425
11323
  })[];
11426
11324
  }[] | undefined;
11325
+ userId?: string | null | undefined;
11427
11326
  effects?: {
11428
11327
  id?: string | null | undefined;
11429
11328
  target?: any;
@@ -11459,10 +11358,6 @@ export declare const OrderCreateDto: z.ZodObject<z.extendShape<{
11459
11358
  slot?: string | null | undefined;
11460
11359
  type: "QUEUE";
11461
11360
  queueId: string;
11462
- } | {
11463
- slot?: string | null | undefined;
11464
- type: "RESERVATION";
11465
- reservationId: string;
11466
11361
  } | {
11467
11362
  seqNumber?: string | null | undefined;
11468
11363
  slot: string;
@@ -14062,10 +13957,16 @@ export declare const OrderDto: z.ZodObject<{
14062
13957
  }, {
14063
13958
  type: z.ZodLiteral<"SIMPLE">;
14064
13959
  withAddons: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
13960
+ targetScope: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ITEM", "SUB_ITEM"]>>>;
13961
+ calculationBase: z.ZodNullable<z.ZodOptional<z.ZodEnum<["SUB_ITEM", "BASE_ITEM"]>>>;
14065
13962
  }>, "strip", z.ZodTypeAny, {
13963
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
13964
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
14066
13965
  withAddons?: string[] | null | undefined;
14067
13966
  type: "SIMPLE";
14068
13967
  }, {
13968
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
13969
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
14069
13970
  withAddons?: string[] | null | undefined;
14070
13971
  type: "SIMPLE";
14071
13972
  }> | z.ZodObject<z.extendShape<{
@@ -14175,6 +14076,8 @@ export declare const OrderDto: z.ZodObject<{
14175
14076
  maxQuantity?: number | null | undefined;
14176
14077
  target: "ITEM";
14177
14078
  strategy: {
14079
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
14080
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
14178
14081
  withAddons?: string[] | null | undefined;
14179
14082
  type: "SIMPLE";
14180
14083
  } | {
@@ -14216,6 +14119,8 @@ export declare const OrderDto: z.ZodObject<{
14216
14119
  maxQuantity?: number | null | undefined;
14217
14120
  target: "ITEM";
14218
14121
  strategy: {
14122
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
14123
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
14219
14124
  withAddons?: string[] | null | undefined;
14220
14125
  type: "SIMPLE";
14221
14126
  } | {
@@ -14322,6 +14227,7 @@ export declare const OrderDto: z.ZodObject<{
14322
14227
  reason?: string | null | undefined;
14323
14228
  priority?: number | null | undefined;
14324
14229
  items?: string[] | null | undefined;
14230
+ autoApplied?: boolean | null | undefined;
14325
14231
  adjustmentRule?: {
14326
14232
  type: "CAPPED_AT";
14327
14233
  } | null | undefined;
@@ -14338,7 +14244,6 @@ export declare const OrderDto: z.ZodObject<{
14338
14244
  toGet?: string[] | null | undefined;
14339
14245
  maximumReached?: boolean | null | undefined;
14340
14246
  returnId?: string | null | undefined;
14341
- autoApplied?: boolean | null | undefined;
14342
14247
  name: string;
14343
14248
  options: {
14344
14249
  excludeIds?: string[] | null | undefined;
@@ -14362,6 +14267,8 @@ export declare const OrderDto: z.ZodObject<{
14362
14267
  maxQuantity?: number | null | undefined;
14363
14268
  target: "ITEM";
14364
14269
  strategy: {
14270
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
14271
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
14365
14272
  withAddons?: string[] | null | undefined;
14366
14273
  type: "SIMPLE";
14367
14274
  } | {
@@ -14402,6 +14309,8 @@ export declare const OrderDto: z.ZodObject<{
14402
14309
  target: "PAYMENT";
14403
14310
  };
14404
14311
  success: boolean;
14312
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
14313
+ referenceId: string;
14405
14314
  adjustment: {
14406
14315
  inclusive?: boolean | null | undefined;
14407
14316
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -14410,12 +14319,11 @@ export declare const OrderDto: z.ZodObject<{
14410
14319
  precision: number;
14411
14320
  };
14412
14321
  };
14413
- referenceId: string;
14414
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
14415
14322
  }, {
14416
14323
  reason?: string | null | undefined;
14417
14324
  priority?: number | null | undefined;
14418
14325
  items?: string[] | null | undefined;
14326
+ autoApplied?: boolean | null | undefined;
14419
14327
  adjustmentRule?: {
14420
14328
  type: "CAPPED_AT";
14421
14329
  } | null | undefined;
@@ -14432,7 +14340,6 @@ export declare const OrderDto: z.ZodObject<{
14432
14340
  toGet?: string[] | null | undefined;
14433
14341
  maximumReached?: boolean | null | undefined;
14434
14342
  returnId?: string | null | undefined;
14435
- autoApplied?: boolean | null | undefined;
14436
14343
  name: string;
14437
14344
  options: {
14438
14345
  excludeIds?: string[] | null | undefined;
@@ -14456,6 +14363,8 @@ export declare const OrderDto: z.ZodObject<{
14456
14363
  maxQuantity?: number | null | undefined;
14457
14364
  target: "ITEM";
14458
14365
  strategy: {
14366
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
14367
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
14459
14368
  withAddons?: string[] | null | undefined;
14460
14369
  type: "SIMPLE";
14461
14370
  } | {
@@ -14496,6 +14405,8 @@ export declare const OrderDto: z.ZodObject<{
14496
14405
  target: "PAYMENT";
14497
14406
  };
14498
14407
  success: boolean;
14408
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
14409
+ referenceId: string;
14499
14410
  adjustment: {
14500
14411
  inclusive?: boolean | null | undefined;
14501
14412
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -14504,8 +14415,6 @@ export declare const OrderDto: z.ZodObject<{
14504
14415
  precision: number;
14505
14416
  };
14506
14417
  };
14507
- referenceId: string;
14508
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
14509
14418
  }>>, "many">>;
14510
14419
  option: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
14511
14420
  type: z.ZodEnum<["DINE_IN", "PICKUP", "DELIVERY"]>;
@@ -14531,7 +14440,7 @@ export declare const OrderDto: z.ZodObject<{
14531
14440
  }>;
14532
14441
  }>>>;
14533
14442
  sub: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
14534
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
14443
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
14535
14444
  }, {
14536
14445
  type: z.ZodLiteral<"QR">;
14537
14446
  session: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -14545,7 +14454,7 @@ export declare const OrderDto: z.ZodObject<{
14545
14454
  slot: string;
14546
14455
  type: "QR";
14547
14456
  }> | z.ZodObject<z.extendShape<{
14548
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
14457
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
14549
14458
  }, {
14550
14459
  type: z.ZodLiteral<"QUEUE">;
14551
14460
  queueId: z.ZodString;
@@ -14559,21 +14468,7 @@ export declare const OrderDto: z.ZodObject<{
14559
14468
  type: "QUEUE";
14560
14469
  queueId: string;
14561
14470
  }> | z.ZodObject<z.extendShape<{
14562
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
14563
- }, {
14564
- type: z.ZodLiteral<"RESERVATION">;
14565
- reservationId: z.ZodString;
14566
- slot: z.ZodNullable<z.ZodOptional<z.ZodString>>;
14567
- }>, "strip", z.ZodTypeAny, {
14568
- slot?: string | null | undefined;
14569
- type: "RESERVATION";
14570
- reservationId: string;
14571
- }, {
14572
- slot?: string | null | undefined;
14573
- type: "RESERVATION";
14574
- reservationId: string;
14575
- }> | z.ZodObject<z.extendShape<{
14576
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
14471
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
14577
14472
  }, {
14578
14473
  type: z.ZodLiteral<"TAKEAWAY">;
14579
14474
  slot: z.ZodString;
@@ -14603,10 +14498,6 @@ export declare const OrderDto: z.ZodObject<{
14603
14498
  slot?: string | null | undefined;
14604
14499
  type: "QUEUE";
14605
14500
  queueId: string;
14606
- } | {
14607
- slot?: string | null | undefined;
14608
- type: "RESERVATION";
14609
- reservationId: string;
14610
14501
  } | {
14611
14502
  seqNumber?: string | null | undefined;
14612
14503
  slot: string;
@@ -14629,10 +14520,6 @@ export declare const OrderDto: z.ZodObject<{
14629
14520
  slot?: string | null | undefined;
14630
14521
  type: "QUEUE";
14631
14522
  queueId: string;
14632
- } | {
14633
- slot?: string | null | undefined;
14634
- type: "RESERVATION";
14635
- reservationId: string;
14636
14523
  } | {
14637
14524
  seqNumber?: string | null | undefined;
14638
14525
  slot: string;
@@ -16156,6 +16043,7 @@ export declare const OrderDto: z.ZodObject<{
16156
16043
  } | null | undefined;
16157
16044
  bill?: any;
16158
16045
  userId?: string | null | undefined;
16046
+ userName?: string | null | undefined;
16159
16047
  pf_user?: {
16160
16048
  email?: string | null | undefined;
16161
16049
  photoURL?: string | null | undefined;
@@ -16170,7 +16058,6 @@ export declare const OrderDto: z.ZodObject<{
16170
16058
  displayName?: string | null | undefined;
16171
16059
  _id: string;
16172
16060
  } | null | undefined;
16173
- userName?: string | null | undefined;
16174
16061
  freeCreditAsDiscount?: boolean | null | undefined;
16175
16062
  creditDiscountTransaction?: any;
16176
16063
  option: {
@@ -16189,10 +16076,6 @@ export declare const OrderDto: z.ZodObject<{
16189
16076
  slot?: string | null | undefined;
16190
16077
  type: "QUEUE";
16191
16078
  queueId: string;
16192
- } | {
16193
- slot?: string | null | undefined;
16194
- type: "RESERVATION";
16195
- reservationId: string;
16196
16079
  } | {
16197
16080
  seqNumber?: string | null | undefined;
16198
16081
  slot: string;
@@ -16609,6 +16492,7 @@ export declare const OrderDto: z.ZodObject<{
16609
16492
  reason?: string | null | undefined;
16610
16493
  priority?: number | null | undefined;
16611
16494
  items?: string[] | null | undefined;
16495
+ autoApplied?: boolean | null | undefined;
16612
16496
  adjustmentRule?: {
16613
16497
  type: "CAPPED_AT";
16614
16498
  } | null | undefined;
@@ -16625,7 +16509,6 @@ export declare const OrderDto: z.ZodObject<{
16625
16509
  toGet?: string[] | null | undefined;
16626
16510
  maximumReached?: boolean | null | undefined;
16627
16511
  returnId?: string | null | undefined;
16628
- autoApplied?: boolean | null | undefined;
16629
16512
  name: string;
16630
16513
  options: {
16631
16514
  excludeIds?: string[] | null | undefined;
@@ -16649,6 +16532,8 @@ export declare const OrderDto: z.ZodObject<{
16649
16532
  maxQuantity?: number | null | undefined;
16650
16533
  target: "ITEM";
16651
16534
  strategy: {
16535
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
16536
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
16652
16537
  withAddons?: string[] | null | undefined;
16653
16538
  type: "SIMPLE";
16654
16539
  } | {
@@ -16689,6 +16574,8 @@ export declare const OrderDto: z.ZodObject<{
16689
16574
  target: "PAYMENT";
16690
16575
  };
16691
16576
  success: boolean;
16577
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
16578
+ referenceId: string;
16692
16579
  adjustment: {
16693
16580
  inclusive?: boolean | null | undefined;
16694
16581
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -16697,8 +16584,6 @@ export declare const OrderDto: z.ZodObject<{
16697
16584
  precision: number;
16698
16585
  };
16699
16586
  };
16700
- referenceId: string;
16701
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
16702
16587
  })[];
16703
16588
  }, {
16704
16589
  payment?: {
@@ -16895,6 +16780,7 @@ export declare const OrderDto: z.ZodObject<{
16895
16780
  } | null | undefined;
16896
16781
  bill?: any;
16897
16782
  userId?: string | null | undefined;
16783
+ userName?: string | null | undefined;
16898
16784
  pf_user?: {
16899
16785
  email?: string | null | undefined;
16900
16786
  photoURL?: string | null | undefined;
@@ -16909,7 +16795,6 @@ export declare const OrderDto: z.ZodObject<{
16909
16795
  displayName?: string | null | undefined;
16910
16796
  _id: string;
16911
16797
  } | null | undefined;
16912
- userName?: string | null | undefined;
16913
16798
  freeCreditAsDiscount?: boolean | null | undefined;
16914
16799
  creditDiscountTransaction?: any;
16915
16800
  effects?: ({
@@ -16918,6 +16803,7 @@ export declare const OrderDto: z.ZodObject<{
16918
16803
  reason?: string | null | undefined;
16919
16804
  priority?: number | null | undefined;
16920
16805
  items?: string[] | null | undefined;
16806
+ autoApplied?: boolean | null | undefined;
16921
16807
  adjustmentRule?: {
16922
16808
  type: "CAPPED_AT";
16923
16809
  } | null | undefined;
@@ -16934,7 +16820,6 @@ export declare const OrderDto: z.ZodObject<{
16934
16820
  toGet?: string[] | null | undefined;
16935
16821
  maximumReached?: boolean | null | undefined;
16936
16822
  returnId?: string | null | undefined;
16937
- autoApplied?: boolean | null | undefined;
16938
16823
  name: string;
16939
16824
  options: {
16940
16825
  excludeIds?: string[] | null | undefined;
@@ -16958,6 +16843,8 @@ export declare const OrderDto: z.ZodObject<{
16958
16843
  maxQuantity?: number | null | undefined;
16959
16844
  target: "ITEM";
16960
16845
  strategy: {
16846
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
16847
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
16961
16848
  withAddons?: string[] | null | undefined;
16962
16849
  type: "SIMPLE";
16963
16850
  } | {
@@ -16998,6 +16885,8 @@ export declare const OrderDto: z.ZodObject<{
16998
16885
  target: "PAYMENT";
16999
16886
  };
17000
16887
  success: boolean;
16888
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
16889
+ referenceId: string;
17001
16890
  adjustment: {
17002
16891
  inclusive?: boolean | null | undefined;
17003
16892
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -17006,8 +16895,6 @@ export declare const OrderDto: z.ZodObject<{
17006
16895
  precision: number;
17007
16896
  };
17008
16897
  };
17009
- referenceId: string;
17010
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
17011
16898
  })[] | undefined;
17012
16899
  option: {
17013
16900
  remark?: string | null | undefined;
@@ -17025,10 +16912,6 @@ export declare const OrderDto: z.ZodObject<{
17025
16912
  slot?: string | null | undefined;
17026
16913
  type: "QUEUE";
17027
16914
  queueId: string;
17028
- } | {
17029
- slot?: string | null | undefined;
17030
- type: "RESERVATION";
17031
- reservationId: string;
17032
16915
  } | {
17033
16916
  seqNumber?: string | null | undefined;
17034
16917
  slot: string;
@@ -19820,10 +19703,16 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
19820
19703
  }, {
19821
19704
  type: z.ZodLiteral<"SIMPLE">;
19822
19705
  withAddons: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
19706
+ targetScope: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ITEM", "SUB_ITEM"]>>>;
19707
+ calculationBase: z.ZodNullable<z.ZodOptional<z.ZodEnum<["SUB_ITEM", "BASE_ITEM"]>>>;
19823
19708
  }>, "strip", z.ZodTypeAny, {
19709
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
19710
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
19824
19711
  withAddons?: string[] | null | undefined;
19825
19712
  type: "SIMPLE";
19826
19713
  }, {
19714
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
19715
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
19827
19716
  withAddons?: string[] | null | undefined;
19828
19717
  type: "SIMPLE";
19829
19718
  }> | z.ZodObject<z.extendShape<{
@@ -19933,6 +19822,8 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
19933
19822
  maxQuantity?: number | null | undefined;
19934
19823
  target: "ITEM";
19935
19824
  strategy: {
19825
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
19826
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
19936
19827
  withAddons?: string[] | null | undefined;
19937
19828
  type: "SIMPLE";
19938
19829
  } | {
@@ -19974,6 +19865,8 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
19974
19865
  maxQuantity?: number | null | undefined;
19975
19866
  target: "ITEM";
19976
19867
  strategy: {
19868
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
19869
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
19977
19870
  withAddons?: string[] | null | undefined;
19978
19871
  type: "SIMPLE";
19979
19872
  } | {
@@ -20080,6 +19973,7 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
20080
19973
  reason?: string | null | undefined;
20081
19974
  priority?: number | null | undefined;
20082
19975
  items?: string[] | null | undefined;
19976
+ autoApplied?: boolean | null | undefined;
20083
19977
  adjustmentRule?: {
20084
19978
  type: "CAPPED_AT";
20085
19979
  } | null | undefined;
@@ -20096,7 +19990,6 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
20096
19990
  toGet?: string[] | null | undefined;
20097
19991
  maximumReached?: boolean | null | undefined;
20098
19992
  returnId?: string | null | undefined;
20099
- autoApplied?: boolean | null | undefined;
20100
19993
  name: string;
20101
19994
  options: {
20102
19995
  excludeIds?: string[] | null | undefined;
@@ -20120,6 +20013,8 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
20120
20013
  maxQuantity?: number | null | undefined;
20121
20014
  target: "ITEM";
20122
20015
  strategy: {
20016
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
20017
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
20123
20018
  withAddons?: string[] | null | undefined;
20124
20019
  type: "SIMPLE";
20125
20020
  } | {
@@ -20160,6 +20055,8 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
20160
20055
  target: "PAYMENT";
20161
20056
  };
20162
20057
  success: boolean;
20058
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
20059
+ referenceId: string;
20163
20060
  adjustment: {
20164
20061
  inclusive?: boolean | null | undefined;
20165
20062
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -20168,12 +20065,11 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
20168
20065
  precision: number;
20169
20066
  };
20170
20067
  };
20171
- referenceId: string;
20172
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
20173
20068
  }, {
20174
20069
  reason?: string | null | undefined;
20175
20070
  priority?: number | null | undefined;
20176
20071
  items?: string[] | null | undefined;
20072
+ autoApplied?: boolean | null | undefined;
20177
20073
  adjustmentRule?: {
20178
20074
  type: "CAPPED_AT";
20179
20075
  } | null | undefined;
@@ -20190,7 +20086,6 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
20190
20086
  toGet?: string[] | null | undefined;
20191
20087
  maximumReached?: boolean | null | undefined;
20192
20088
  returnId?: string | null | undefined;
20193
- autoApplied?: boolean | null | undefined;
20194
20089
  name: string;
20195
20090
  options: {
20196
20091
  excludeIds?: string[] | null | undefined;
@@ -20214,6 +20109,8 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
20214
20109
  maxQuantity?: number | null | undefined;
20215
20110
  target: "ITEM";
20216
20111
  strategy: {
20112
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
20113
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
20217
20114
  withAddons?: string[] | null | undefined;
20218
20115
  type: "SIMPLE";
20219
20116
  } | {
@@ -20254,6 +20151,8 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
20254
20151
  target: "PAYMENT";
20255
20152
  };
20256
20153
  success: boolean;
20154
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
20155
+ referenceId: string;
20257
20156
  adjustment: {
20258
20157
  inclusive?: boolean | null | undefined;
20259
20158
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -20262,8 +20161,6 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
20262
20161
  precision: number;
20263
20162
  };
20264
20163
  };
20265
- referenceId: string;
20266
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
20267
20164
  }>>, "many">>;
20268
20165
  option: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
20269
20166
  type: z.ZodEnum<["DINE_IN", "PICKUP", "DELIVERY"]>;
@@ -20289,7 +20186,7 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
20289
20186
  }>;
20290
20187
  }>>>;
20291
20188
  sub: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
20292
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
20189
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
20293
20190
  }, {
20294
20191
  type: z.ZodLiteral<"QR">;
20295
20192
  session: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -20303,7 +20200,7 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
20303
20200
  slot: string;
20304
20201
  type: "QR";
20305
20202
  }> | z.ZodObject<z.extendShape<{
20306
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
20203
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
20307
20204
  }, {
20308
20205
  type: z.ZodLiteral<"QUEUE">;
20309
20206
  queueId: z.ZodString;
@@ -20317,21 +20214,7 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
20317
20214
  type: "QUEUE";
20318
20215
  queueId: string;
20319
20216
  }> | z.ZodObject<z.extendShape<{
20320
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
20321
- }, {
20322
- type: z.ZodLiteral<"RESERVATION">;
20323
- reservationId: z.ZodString;
20324
- slot: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20325
- }>, "strip", z.ZodTypeAny, {
20326
- slot?: string | null | undefined;
20327
- type: "RESERVATION";
20328
- reservationId: string;
20329
- }, {
20330
- slot?: string | null | undefined;
20331
- type: "RESERVATION";
20332
- reservationId: string;
20333
- }> | z.ZodObject<z.extendShape<{
20334
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
20217
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
20335
20218
  }, {
20336
20219
  type: z.ZodLiteral<"TAKEAWAY">;
20337
20220
  slot: z.ZodString;
@@ -20361,10 +20244,6 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
20361
20244
  slot?: string | null | undefined;
20362
20245
  type: "QUEUE";
20363
20246
  queueId: string;
20364
- } | {
20365
- slot?: string | null | undefined;
20366
- type: "RESERVATION";
20367
- reservationId: string;
20368
20247
  } | {
20369
20248
  seqNumber?: string | null | undefined;
20370
20249
  slot: string;
@@ -20387,10 +20266,6 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
20387
20266
  slot?: string | null | undefined;
20388
20267
  type: "QUEUE";
20389
20268
  queueId: string;
20390
- } | {
20391
- slot?: string | null | undefined;
20392
- type: "RESERVATION";
20393
- reservationId: string;
20394
20269
  } | {
20395
20270
  seqNumber?: string | null | undefined;
20396
20271
  slot: string;
@@ -21719,7 +21594,7 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
21719
21594
  status: z.ZodEnum<["DRAFT", "PENDING_PAYMENT", "ALLOCATING_DELIVERY", "NEW", "ACCEPTED", "DECLINED"]>;
21720
21595
  bill: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
21721
21596
  rejectReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
21722
- }, "pf_restaurant" | "pf_user" | "draft">, {
21597
+ }, "pf_restaurant" | "draft" | "pf_user">, {
21723
21598
  /** Total quantity across the order's lines — the "3 items" a card prints. */
21724
21599
  itemCount: z.ZodNumber;
21725
21600
  }>, "strip", z.ZodTypeAny, {
@@ -21815,10 +21690,6 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
21815
21690
  slot?: string | null | undefined;
21816
21691
  type: "QUEUE";
21817
21692
  queueId: string;
21818
- } | {
21819
- slot?: string | null | undefined;
21820
- type: "RESERVATION";
21821
- reservationId: string;
21822
21693
  } | {
21823
21694
  seqNumber?: string | null | undefined;
21824
21695
  slot: string;
@@ -22042,6 +21913,7 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
22042
21913
  reason?: string | null | undefined;
22043
21914
  priority?: number | null | undefined;
22044
21915
  items?: string[] | null | undefined;
21916
+ autoApplied?: boolean | null | undefined;
22045
21917
  adjustmentRule?: {
22046
21918
  type: "CAPPED_AT";
22047
21919
  } | null | undefined;
@@ -22058,7 +21930,6 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
22058
21930
  toGet?: string[] | null | undefined;
22059
21931
  maximumReached?: boolean | null | undefined;
22060
21932
  returnId?: string | null | undefined;
22061
- autoApplied?: boolean | null | undefined;
22062
21933
  name: string;
22063
21934
  options: {
22064
21935
  excludeIds?: string[] | null | undefined;
@@ -22082,6 +21953,8 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
22082
21953
  maxQuantity?: number | null | undefined;
22083
21954
  target: "ITEM";
22084
21955
  strategy: {
21956
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
21957
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
22085
21958
  withAddons?: string[] | null | undefined;
22086
21959
  type: "SIMPLE";
22087
21960
  } | {
@@ -22122,6 +21995,8 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
22122
21995
  target: "PAYMENT";
22123
21996
  };
22124
21997
  success: boolean;
21998
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
21999
+ referenceId: string;
22125
22000
  adjustment: {
22126
22001
  inclusive?: boolean | null | undefined;
22127
22002
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -22130,8 +22005,6 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
22130
22005
  precision: number;
22131
22006
  };
22132
22007
  };
22133
- referenceId: string;
22134
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
22135
22008
  })[];
22136
22009
  itemCount: number;
22137
22010
  }, {
@@ -22217,6 +22090,7 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
22217
22090
  reason?: string | null | undefined;
22218
22091
  priority?: number | null | undefined;
22219
22092
  items?: string[] | null | undefined;
22093
+ autoApplied?: boolean | null | undefined;
22220
22094
  adjustmentRule?: {
22221
22095
  type: "CAPPED_AT";
22222
22096
  } | null | undefined;
@@ -22233,7 +22107,6 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
22233
22107
  toGet?: string[] | null | undefined;
22234
22108
  maximumReached?: boolean | null | undefined;
22235
22109
  returnId?: string | null | undefined;
22236
- autoApplied?: boolean | null | undefined;
22237
22110
  name: string;
22238
22111
  options: {
22239
22112
  excludeIds?: string[] | null | undefined;
@@ -22257,6 +22130,8 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
22257
22130
  maxQuantity?: number | null | undefined;
22258
22131
  target: "ITEM";
22259
22132
  strategy: {
22133
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
22134
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
22260
22135
  withAddons?: string[] | null | undefined;
22261
22136
  type: "SIMPLE";
22262
22137
  } | {
@@ -22297,6 +22172,8 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
22297
22172
  target: "PAYMENT";
22298
22173
  };
22299
22174
  success: boolean;
22175
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
22176
+ referenceId: string;
22300
22177
  adjustment: {
22301
22178
  inclusive?: boolean | null | undefined;
22302
22179
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -22305,8 +22182,6 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
22305
22182
  precision: number;
22306
22183
  };
22307
22184
  };
22308
- referenceId: string;
22309
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
22310
22185
  })[] | undefined;
22311
22186
  option: {
22312
22187
  remark?: string | null | undefined;
@@ -22324,10 +22199,6 @@ export declare const OrderHistorySummaryRowDto: z.ZodObject<z.extendShape<Omit<{
22324
22199
  slot?: string | null | undefined;
22325
22200
  type: "QUEUE";
22326
22201
  queueId: string;
22327
- } | {
22328
- slot?: string | null | undefined;
22329
- type: "RESERVATION";
22330
- reservationId: string;
22331
22202
  } | {
22332
22203
  seqNumber?: string | null | undefined;
22333
22204
  slot: string;
@@ -25794,10 +25665,16 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
25794
25665
  }, {
25795
25666
  type: z.ZodLiteral<"SIMPLE">;
25796
25667
  withAddons: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
25668
+ targetScope: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ITEM", "SUB_ITEM"]>>>;
25669
+ calculationBase: z.ZodNullable<z.ZodOptional<z.ZodEnum<["SUB_ITEM", "BASE_ITEM"]>>>;
25797
25670
  }>, "strip", z.ZodTypeAny, {
25671
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
25672
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
25798
25673
  withAddons?: string[] | null | undefined;
25799
25674
  type: "SIMPLE";
25800
25675
  }, {
25676
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
25677
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
25801
25678
  withAddons?: string[] | null | undefined;
25802
25679
  type: "SIMPLE";
25803
25680
  }> | z.ZodObject<z.extendShape<{
@@ -25907,6 +25784,8 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
25907
25784
  maxQuantity?: number | null | undefined;
25908
25785
  target: "ITEM";
25909
25786
  strategy: {
25787
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
25788
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
25910
25789
  withAddons?: string[] | null | undefined;
25911
25790
  type: "SIMPLE";
25912
25791
  } | {
@@ -25948,6 +25827,8 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
25948
25827
  maxQuantity?: number | null | undefined;
25949
25828
  target: "ITEM";
25950
25829
  strategy: {
25830
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
25831
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
25951
25832
  withAddons?: string[] | null | undefined;
25952
25833
  type: "SIMPLE";
25953
25834
  } | {
@@ -26054,6 +25935,7 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
26054
25935
  reason?: string | null | undefined;
26055
25936
  priority?: number | null | undefined;
26056
25937
  items?: string[] | null | undefined;
25938
+ autoApplied?: boolean | null | undefined;
26057
25939
  adjustmentRule?: {
26058
25940
  type: "CAPPED_AT";
26059
25941
  } | null | undefined;
@@ -26070,7 +25952,6 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
26070
25952
  toGet?: string[] | null | undefined;
26071
25953
  maximumReached?: boolean | null | undefined;
26072
25954
  returnId?: string | null | undefined;
26073
- autoApplied?: boolean | null | undefined;
26074
25955
  name: string;
26075
25956
  options: {
26076
25957
  excludeIds?: string[] | null | undefined;
@@ -26094,6 +25975,8 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
26094
25975
  maxQuantity?: number | null | undefined;
26095
25976
  target: "ITEM";
26096
25977
  strategy: {
25978
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
25979
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
26097
25980
  withAddons?: string[] | null | undefined;
26098
25981
  type: "SIMPLE";
26099
25982
  } | {
@@ -26134,6 +26017,8 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
26134
26017
  target: "PAYMENT";
26135
26018
  };
26136
26019
  success: boolean;
26020
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
26021
+ referenceId: string;
26137
26022
  adjustment: {
26138
26023
  inclusive?: boolean | null | undefined;
26139
26024
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -26142,12 +26027,11 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
26142
26027
  precision: number;
26143
26028
  };
26144
26029
  };
26145
- referenceId: string;
26146
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
26147
26030
  }, {
26148
26031
  reason?: string | null | undefined;
26149
26032
  priority?: number | null | undefined;
26150
26033
  items?: string[] | null | undefined;
26034
+ autoApplied?: boolean | null | undefined;
26151
26035
  adjustmentRule?: {
26152
26036
  type: "CAPPED_AT";
26153
26037
  } | null | undefined;
@@ -26164,7 +26048,6 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
26164
26048
  toGet?: string[] | null | undefined;
26165
26049
  maximumReached?: boolean | null | undefined;
26166
26050
  returnId?: string | null | undefined;
26167
- autoApplied?: boolean | null | undefined;
26168
26051
  name: string;
26169
26052
  options: {
26170
26053
  excludeIds?: string[] | null | undefined;
@@ -26188,6 +26071,8 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
26188
26071
  maxQuantity?: number | null | undefined;
26189
26072
  target: "ITEM";
26190
26073
  strategy: {
26074
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
26075
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
26191
26076
  withAddons?: string[] | null | undefined;
26192
26077
  type: "SIMPLE";
26193
26078
  } | {
@@ -26228,6 +26113,8 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
26228
26113
  target: "PAYMENT";
26229
26114
  };
26230
26115
  success: boolean;
26116
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
26117
+ referenceId: string;
26231
26118
  adjustment: {
26232
26119
  inclusive?: boolean | null | undefined;
26233
26120
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -26236,8 +26123,6 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
26236
26123
  precision: number;
26237
26124
  };
26238
26125
  };
26239
- referenceId: string;
26240
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
26241
26126
  }>>, "many">>;
26242
26127
  option: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
26243
26128
  type: z.ZodEnum<["DINE_IN", "PICKUP", "DELIVERY"]>;
@@ -26263,7 +26148,7 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
26263
26148
  }>;
26264
26149
  }>>>;
26265
26150
  sub: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
26266
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
26151
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
26267
26152
  }, {
26268
26153
  type: z.ZodLiteral<"QR">;
26269
26154
  session: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -26277,7 +26162,7 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
26277
26162
  slot: string;
26278
26163
  type: "QR";
26279
26164
  }> | z.ZodObject<z.extendShape<{
26280
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
26165
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
26281
26166
  }, {
26282
26167
  type: z.ZodLiteral<"QUEUE">;
26283
26168
  queueId: z.ZodString;
@@ -26291,21 +26176,7 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
26291
26176
  type: "QUEUE";
26292
26177
  queueId: string;
26293
26178
  }> | z.ZodObject<z.extendShape<{
26294
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
26295
- }, {
26296
- type: z.ZodLiteral<"RESERVATION">;
26297
- reservationId: z.ZodString;
26298
- slot: z.ZodNullable<z.ZodOptional<z.ZodString>>;
26299
- }>, "strip", z.ZodTypeAny, {
26300
- slot?: string | null | undefined;
26301
- type: "RESERVATION";
26302
- reservationId: string;
26303
- }, {
26304
- slot?: string | null | undefined;
26305
- type: "RESERVATION";
26306
- reservationId: string;
26307
- }> | z.ZodObject<z.extendShape<{
26308
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
26179
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
26309
26180
  }, {
26310
26181
  type: z.ZodLiteral<"TAKEAWAY">;
26311
26182
  slot: z.ZodString;
@@ -26335,10 +26206,6 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
26335
26206
  slot?: string | null | undefined;
26336
26207
  type: "QUEUE";
26337
26208
  queueId: string;
26338
- } | {
26339
- slot?: string | null | undefined;
26340
- type: "RESERVATION";
26341
- reservationId: string;
26342
26209
  } | {
26343
26210
  seqNumber?: string | null | undefined;
26344
26211
  slot: string;
@@ -26361,10 +26228,6 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
26361
26228
  slot?: string | null | undefined;
26362
26229
  type: "QUEUE";
26363
26230
  queueId: string;
26364
- } | {
26365
- slot?: string | null | undefined;
26366
- type: "RESERVATION";
26367
- reservationId: string;
26368
26231
  } | {
26369
26232
  seqNumber?: string | null | undefined;
26370
26233
  slot: string;
@@ -27693,7 +27556,7 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
27693
27556
  status: z.ZodEnum<["DRAFT", "PENDING_PAYMENT", "ALLOCATING_DELIVERY", "NEW", "ACCEPTED", "DECLINED"]>;
27694
27557
  bill: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
27695
27558
  rejectReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
27696
- }, "pf_restaurant" | "pf_user" | "draft">, {
27559
+ }, "pf_restaurant" | "draft" | "pf_user">, {
27697
27560
  /** Total quantity across the order's lines — the "3 items" a card prints. */
27698
27561
  itemCount: z.ZodNumber;
27699
27562
  }>, "strip", z.ZodTypeAny, {
@@ -27789,10 +27652,6 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
27789
27652
  slot?: string | null | undefined;
27790
27653
  type: "QUEUE";
27791
27654
  queueId: string;
27792
- } | {
27793
- slot?: string | null | undefined;
27794
- type: "RESERVATION";
27795
- reservationId: string;
27796
27655
  } | {
27797
27656
  seqNumber?: string | null | undefined;
27798
27657
  slot: string;
@@ -28016,6 +27875,7 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
28016
27875
  reason?: string | null | undefined;
28017
27876
  priority?: number | null | undefined;
28018
27877
  items?: string[] | null | undefined;
27878
+ autoApplied?: boolean | null | undefined;
28019
27879
  adjustmentRule?: {
28020
27880
  type: "CAPPED_AT";
28021
27881
  } | null | undefined;
@@ -28032,7 +27892,6 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
28032
27892
  toGet?: string[] | null | undefined;
28033
27893
  maximumReached?: boolean | null | undefined;
28034
27894
  returnId?: string | null | undefined;
28035
- autoApplied?: boolean | null | undefined;
28036
27895
  name: string;
28037
27896
  options: {
28038
27897
  excludeIds?: string[] | null | undefined;
@@ -28056,6 +27915,8 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
28056
27915
  maxQuantity?: number | null | undefined;
28057
27916
  target: "ITEM";
28058
27917
  strategy: {
27918
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
27919
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
28059
27920
  withAddons?: string[] | null | undefined;
28060
27921
  type: "SIMPLE";
28061
27922
  } | {
@@ -28096,6 +27957,8 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
28096
27957
  target: "PAYMENT";
28097
27958
  };
28098
27959
  success: boolean;
27960
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
27961
+ referenceId: string;
28099
27962
  adjustment: {
28100
27963
  inclusive?: boolean | null | undefined;
28101
27964
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -28104,8 +27967,6 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
28104
27967
  precision: number;
28105
27968
  };
28106
27969
  };
28107
- referenceId: string;
28108
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
28109
27970
  })[];
28110
27971
  itemCount: number;
28111
27972
  }, {
@@ -28191,6 +28052,7 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
28191
28052
  reason?: string | null | undefined;
28192
28053
  priority?: number | null | undefined;
28193
28054
  items?: string[] | null | undefined;
28055
+ autoApplied?: boolean | null | undefined;
28194
28056
  adjustmentRule?: {
28195
28057
  type: "CAPPED_AT";
28196
28058
  } | null | undefined;
@@ -28207,7 +28069,6 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
28207
28069
  toGet?: string[] | null | undefined;
28208
28070
  maximumReached?: boolean | null | undefined;
28209
28071
  returnId?: string | null | undefined;
28210
- autoApplied?: boolean | null | undefined;
28211
28072
  name: string;
28212
28073
  options: {
28213
28074
  excludeIds?: string[] | null | undefined;
@@ -28231,6 +28092,8 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
28231
28092
  maxQuantity?: number | null | undefined;
28232
28093
  target: "ITEM";
28233
28094
  strategy: {
28095
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
28096
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
28234
28097
  withAddons?: string[] | null | undefined;
28235
28098
  type: "SIMPLE";
28236
28099
  } | {
@@ -28271,6 +28134,8 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
28271
28134
  target: "PAYMENT";
28272
28135
  };
28273
28136
  success: boolean;
28137
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
28138
+ referenceId: string;
28274
28139
  adjustment: {
28275
28140
  inclusive?: boolean | null | undefined;
28276
28141
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -28279,8 +28144,6 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
28279
28144
  precision: number;
28280
28145
  };
28281
28146
  };
28282
- referenceId: string;
28283
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
28284
28147
  })[] | undefined;
28285
28148
  option: {
28286
28149
  remark?: string | null | undefined;
@@ -28298,10 +28161,6 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
28298
28161
  slot?: string | null | undefined;
28299
28162
  type: "QUEUE";
28300
28163
  queueId: string;
28301
- } | {
28302
- slot?: string | null | undefined;
28303
- type: "RESERVATION";
28304
- reservationId: string;
28305
28164
  } | {
28306
28165
  seqNumber?: string | null | undefined;
28307
28166
  slot: string;
@@ -28731,10 +28590,6 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
28731
28590
  slot?: string | null | undefined;
28732
28591
  type: "QUEUE";
28733
28592
  queueId: string;
28734
- } | {
28735
- slot?: string | null | undefined;
28736
- type: "RESERVATION";
28737
- reservationId: string;
28738
28593
  } | {
28739
28594
  seqNumber?: string | null | undefined;
28740
28595
  slot: string;
@@ -28958,6 +28813,7 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
28958
28813
  reason?: string | null | undefined;
28959
28814
  priority?: number | null | undefined;
28960
28815
  items?: string[] | null | undefined;
28816
+ autoApplied?: boolean | null | undefined;
28961
28817
  adjustmentRule?: {
28962
28818
  type: "CAPPED_AT";
28963
28819
  } | null | undefined;
@@ -28974,7 +28830,6 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
28974
28830
  toGet?: string[] | null | undefined;
28975
28831
  maximumReached?: boolean | null | undefined;
28976
28832
  returnId?: string | null | undefined;
28977
- autoApplied?: boolean | null | undefined;
28978
28833
  name: string;
28979
28834
  options: {
28980
28835
  excludeIds?: string[] | null | undefined;
@@ -28998,6 +28853,8 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
28998
28853
  maxQuantity?: number | null | undefined;
28999
28854
  target: "ITEM";
29000
28855
  strategy: {
28856
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
28857
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
29001
28858
  withAddons?: string[] | null | undefined;
29002
28859
  type: "SIMPLE";
29003
28860
  } | {
@@ -29038,6 +28895,8 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
29038
28895
  target: "PAYMENT";
29039
28896
  };
29040
28897
  success: boolean;
28898
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
28899
+ referenceId: string;
29041
28900
  adjustment: {
29042
28901
  inclusive?: boolean | null | undefined;
29043
28902
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -29046,8 +28905,6 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
29046
28905
  precision: number;
29047
28906
  };
29048
28907
  };
29049
- referenceId: string;
29050
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
29051
28908
  })[];
29052
28909
  itemCount: number;
29053
28910
  }[];
@@ -29256,6 +29113,7 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
29256
29113
  reason?: string | null | undefined;
29257
29114
  priority?: number | null | undefined;
29258
29115
  items?: string[] | null | undefined;
29116
+ autoApplied?: boolean | null | undefined;
29259
29117
  adjustmentRule?: {
29260
29118
  type: "CAPPED_AT";
29261
29119
  } | null | undefined;
@@ -29272,7 +29130,6 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
29272
29130
  toGet?: string[] | null | undefined;
29273
29131
  maximumReached?: boolean | null | undefined;
29274
29132
  returnId?: string | null | undefined;
29275
- autoApplied?: boolean | null | undefined;
29276
29133
  name: string;
29277
29134
  options: {
29278
29135
  excludeIds?: string[] | null | undefined;
@@ -29296,6 +29153,8 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
29296
29153
  maxQuantity?: number | null | undefined;
29297
29154
  target: "ITEM";
29298
29155
  strategy: {
29156
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
29157
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
29299
29158
  withAddons?: string[] | null | undefined;
29300
29159
  type: "SIMPLE";
29301
29160
  } | {
@@ -29336,6 +29195,8 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
29336
29195
  target: "PAYMENT";
29337
29196
  };
29338
29197
  success: boolean;
29198
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
29199
+ referenceId: string;
29339
29200
  adjustment: {
29340
29201
  inclusive?: boolean | null | undefined;
29341
29202
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -29344,8 +29205,6 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
29344
29205
  precision: number;
29345
29206
  };
29346
29207
  };
29347
- referenceId: string;
29348
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
29349
29208
  })[] | undefined;
29350
29209
  option: {
29351
29210
  remark?: string | null | undefined;
@@ -29363,10 +29222,6 @@ export declare const OrderHistorySummaryDto: z.ZodObject<{
29363
29222
  slot?: string | null | undefined;
29364
29223
  type: "QUEUE";
29365
29224
  queueId: string;
29366
- } | {
29367
- slot?: string | null | undefined;
29368
- type: "RESERVATION";
29369
- reservationId: string;
29370
29225
  } | {
29371
29226
  seqNumber?: string | null | undefined;
29372
29227
  slot: string;
@@ -32053,10 +31908,16 @@ export declare const OrderKioskDto: z.ZodObject<{
32053
31908
  }, {
32054
31909
  type: z.ZodLiteral<"SIMPLE">;
32055
31910
  withAddons: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
31911
+ targetScope: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ITEM", "SUB_ITEM"]>>>;
31912
+ calculationBase: z.ZodNullable<z.ZodOptional<z.ZodEnum<["SUB_ITEM", "BASE_ITEM"]>>>;
32056
31913
  }>, "strip", z.ZodTypeAny, {
31914
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
31915
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
32057
31916
  withAddons?: string[] | null | undefined;
32058
31917
  type: "SIMPLE";
32059
31918
  }, {
31919
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
31920
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
32060
31921
  withAddons?: string[] | null | undefined;
32061
31922
  type: "SIMPLE";
32062
31923
  }> | z.ZodObject<z.extendShape<{
@@ -32166,6 +32027,8 @@ export declare const OrderKioskDto: z.ZodObject<{
32166
32027
  maxQuantity?: number | null | undefined;
32167
32028
  target: "ITEM";
32168
32029
  strategy: {
32030
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
32031
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
32169
32032
  withAddons?: string[] | null | undefined;
32170
32033
  type: "SIMPLE";
32171
32034
  } | {
@@ -32207,6 +32070,8 @@ export declare const OrderKioskDto: z.ZodObject<{
32207
32070
  maxQuantity?: number | null | undefined;
32208
32071
  target: "ITEM";
32209
32072
  strategy: {
32073
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
32074
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
32210
32075
  withAddons?: string[] | null | undefined;
32211
32076
  type: "SIMPLE";
32212
32077
  } | {
@@ -32313,6 +32178,7 @@ export declare const OrderKioskDto: z.ZodObject<{
32313
32178
  reason?: string | null | undefined;
32314
32179
  priority?: number | null | undefined;
32315
32180
  items?: string[] | null | undefined;
32181
+ autoApplied?: boolean | null | undefined;
32316
32182
  adjustmentRule?: {
32317
32183
  type: "CAPPED_AT";
32318
32184
  } | null | undefined;
@@ -32329,7 +32195,6 @@ export declare const OrderKioskDto: z.ZodObject<{
32329
32195
  toGet?: string[] | null | undefined;
32330
32196
  maximumReached?: boolean | null | undefined;
32331
32197
  returnId?: string | null | undefined;
32332
- autoApplied?: boolean | null | undefined;
32333
32198
  name: string;
32334
32199
  options: {
32335
32200
  excludeIds?: string[] | null | undefined;
@@ -32353,6 +32218,8 @@ export declare const OrderKioskDto: z.ZodObject<{
32353
32218
  maxQuantity?: number | null | undefined;
32354
32219
  target: "ITEM";
32355
32220
  strategy: {
32221
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
32222
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
32356
32223
  withAddons?: string[] | null | undefined;
32357
32224
  type: "SIMPLE";
32358
32225
  } | {
@@ -32393,6 +32260,8 @@ export declare const OrderKioskDto: z.ZodObject<{
32393
32260
  target: "PAYMENT";
32394
32261
  };
32395
32262
  success: boolean;
32263
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
32264
+ referenceId: string;
32396
32265
  adjustment: {
32397
32266
  inclusive?: boolean | null | undefined;
32398
32267
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -32401,12 +32270,11 @@ export declare const OrderKioskDto: z.ZodObject<{
32401
32270
  precision: number;
32402
32271
  };
32403
32272
  };
32404
- referenceId: string;
32405
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
32406
32273
  }, {
32407
32274
  reason?: string | null | undefined;
32408
32275
  priority?: number | null | undefined;
32409
32276
  items?: string[] | null | undefined;
32277
+ autoApplied?: boolean | null | undefined;
32410
32278
  adjustmentRule?: {
32411
32279
  type: "CAPPED_AT";
32412
32280
  } | null | undefined;
@@ -32423,7 +32291,6 @@ export declare const OrderKioskDto: z.ZodObject<{
32423
32291
  toGet?: string[] | null | undefined;
32424
32292
  maximumReached?: boolean | null | undefined;
32425
32293
  returnId?: string | null | undefined;
32426
- autoApplied?: boolean | null | undefined;
32427
32294
  name: string;
32428
32295
  options: {
32429
32296
  excludeIds?: string[] | null | undefined;
@@ -32447,6 +32314,8 @@ export declare const OrderKioskDto: z.ZodObject<{
32447
32314
  maxQuantity?: number | null | undefined;
32448
32315
  target: "ITEM";
32449
32316
  strategy: {
32317
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
32318
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
32450
32319
  withAddons?: string[] | null | undefined;
32451
32320
  type: "SIMPLE";
32452
32321
  } | {
@@ -32487,6 +32356,8 @@ export declare const OrderKioskDto: z.ZodObject<{
32487
32356
  target: "PAYMENT";
32488
32357
  };
32489
32358
  success: boolean;
32359
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
32360
+ referenceId: string;
32490
32361
  adjustment: {
32491
32362
  inclusive?: boolean | null | undefined;
32492
32363
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -32495,8 +32366,6 @@ export declare const OrderKioskDto: z.ZodObject<{
32495
32366
  precision: number;
32496
32367
  };
32497
32368
  };
32498
- referenceId: string;
32499
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
32500
32369
  }>>, "many">>;
32501
32370
  option: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
32502
32371
  type: z.ZodEnum<["DINE_IN", "PICKUP", "DELIVERY"]>;
@@ -32522,7 +32391,7 @@ export declare const OrderKioskDto: z.ZodObject<{
32522
32391
  }>;
32523
32392
  }>>>;
32524
32393
  sub: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
32525
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
32394
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
32526
32395
  }, {
32527
32396
  type: z.ZodLiteral<"QR">;
32528
32397
  session: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -32536,7 +32405,7 @@ export declare const OrderKioskDto: z.ZodObject<{
32536
32405
  slot: string;
32537
32406
  type: "QR";
32538
32407
  }> | z.ZodObject<z.extendShape<{
32539
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
32408
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
32540
32409
  }, {
32541
32410
  type: z.ZodLiteral<"QUEUE">;
32542
32411
  queueId: z.ZodString;
@@ -32550,21 +32419,7 @@ export declare const OrderKioskDto: z.ZodObject<{
32550
32419
  type: "QUEUE";
32551
32420
  queueId: string;
32552
32421
  }> | z.ZodObject<z.extendShape<{
32553
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
32554
- }, {
32555
- type: z.ZodLiteral<"RESERVATION">;
32556
- reservationId: z.ZodString;
32557
- slot: z.ZodNullable<z.ZodOptional<z.ZodString>>;
32558
- }>, "strip", z.ZodTypeAny, {
32559
- slot?: string | null | undefined;
32560
- type: "RESERVATION";
32561
- reservationId: string;
32562
- }, {
32563
- slot?: string | null | undefined;
32564
- type: "RESERVATION";
32565
- reservationId: string;
32566
- }> | z.ZodObject<z.extendShape<{
32567
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
32422
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
32568
32423
  }, {
32569
32424
  type: z.ZodLiteral<"TAKEAWAY">;
32570
32425
  slot: z.ZodString;
@@ -32594,10 +32449,6 @@ export declare const OrderKioskDto: z.ZodObject<{
32594
32449
  slot?: string | null | undefined;
32595
32450
  type: "QUEUE";
32596
32451
  queueId: string;
32597
- } | {
32598
- slot?: string | null | undefined;
32599
- type: "RESERVATION";
32600
- reservationId: string;
32601
32452
  } | {
32602
32453
  seqNumber?: string | null | undefined;
32603
32454
  slot: string;
@@ -32620,10 +32471,6 @@ export declare const OrderKioskDto: z.ZodObject<{
32620
32471
  slot?: string | null | undefined;
32621
32472
  type: "QUEUE";
32622
32473
  queueId: string;
32623
- } | {
32624
- slot?: string | null | undefined;
32625
- type: "RESERVATION";
32626
- reservationId: string;
32627
32474
  } | {
32628
32475
  seqNumber?: string | null | undefined;
32629
32476
  slot: string;
@@ -34169,6 +34016,7 @@ export declare const OrderKioskDto: z.ZodObject<{
34169
34016
  } | null | undefined;
34170
34017
  bill?: any;
34171
34018
  userId?: string | null | undefined;
34019
+ userName?: string | null | undefined;
34172
34020
  pf_user?: {
34173
34021
  email?: string | null | undefined;
34174
34022
  photoURL?: string | null | undefined;
@@ -34183,7 +34031,6 @@ export declare const OrderKioskDto: z.ZodObject<{
34183
34031
  displayName?: string | null | undefined;
34184
34032
  _id: string;
34185
34033
  } | null | undefined;
34186
- userName?: string | null | undefined;
34187
34034
  freeCreditAsDiscount?: boolean | null | undefined;
34188
34035
  creditDiscountTransaction?: any;
34189
34036
  option: {
@@ -34202,10 +34049,6 @@ export declare const OrderKioskDto: z.ZodObject<{
34202
34049
  slot?: string | null | undefined;
34203
34050
  type: "QUEUE";
34204
34051
  queueId: string;
34205
- } | {
34206
- slot?: string | null | undefined;
34207
- type: "RESERVATION";
34208
- reservationId: string;
34209
34052
  } | {
34210
34053
  seqNumber?: string | null | undefined;
34211
34054
  slot: string;
@@ -34622,6 +34465,7 @@ export declare const OrderKioskDto: z.ZodObject<{
34622
34465
  reason?: string | null | undefined;
34623
34466
  priority?: number | null | undefined;
34624
34467
  items?: string[] | null | undefined;
34468
+ autoApplied?: boolean | null | undefined;
34625
34469
  adjustmentRule?: {
34626
34470
  type: "CAPPED_AT";
34627
34471
  } | null | undefined;
@@ -34638,7 +34482,6 @@ export declare const OrderKioskDto: z.ZodObject<{
34638
34482
  toGet?: string[] | null | undefined;
34639
34483
  maximumReached?: boolean | null | undefined;
34640
34484
  returnId?: string | null | undefined;
34641
- autoApplied?: boolean | null | undefined;
34642
34485
  name: string;
34643
34486
  options: {
34644
34487
  excludeIds?: string[] | null | undefined;
@@ -34662,6 +34505,8 @@ export declare const OrderKioskDto: z.ZodObject<{
34662
34505
  maxQuantity?: number | null | undefined;
34663
34506
  target: "ITEM";
34664
34507
  strategy: {
34508
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
34509
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
34665
34510
  withAddons?: string[] | null | undefined;
34666
34511
  type: "SIMPLE";
34667
34512
  } | {
@@ -34702,6 +34547,8 @@ export declare const OrderKioskDto: z.ZodObject<{
34702
34547
  target: "PAYMENT";
34703
34548
  };
34704
34549
  success: boolean;
34550
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
34551
+ referenceId: string;
34705
34552
  adjustment: {
34706
34553
  inclusive?: boolean | null | undefined;
34707
34554
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -34710,8 +34557,6 @@ export declare const OrderKioskDto: z.ZodObject<{
34710
34557
  precision: number;
34711
34558
  };
34712
34559
  };
34713
- referenceId: string;
34714
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
34715
34560
  })[];
34716
34561
  }, {
34717
34562
  payment?: {
@@ -34930,6 +34775,7 @@ export declare const OrderKioskDto: z.ZodObject<{
34930
34775
  } | null | undefined;
34931
34776
  bill?: any;
34932
34777
  userId?: string | null | undefined;
34778
+ userName?: string | null | undefined;
34933
34779
  pf_user?: {
34934
34780
  email?: string | null | undefined;
34935
34781
  photoURL?: string | null | undefined;
@@ -34944,7 +34790,6 @@ export declare const OrderKioskDto: z.ZodObject<{
34944
34790
  displayName?: string | null | undefined;
34945
34791
  _id: string;
34946
34792
  } | null | undefined;
34947
- userName?: string | null | undefined;
34948
34793
  freeCreditAsDiscount?: boolean | null | undefined;
34949
34794
  creditDiscountTransaction?: any;
34950
34795
  effects?: ({
@@ -34953,6 +34798,7 @@ export declare const OrderKioskDto: z.ZodObject<{
34953
34798
  reason?: string | null | undefined;
34954
34799
  priority?: number | null | undefined;
34955
34800
  items?: string[] | null | undefined;
34801
+ autoApplied?: boolean | null | undefined;
34956
34802
  adjustmentRule?: {
34957
34803
  type: "CAPPED_AT";
34958
34804
  } | null | undefined;
@@ -34969,7 +34815,6 @@ export declare const OrderKioskDto: z.ZodObject<{
34969
34815
  toGet?: string[] | null | undefined;
34970
34816
  maximumReached?: boolean | null | undefined;
34971
34817
  returnId?: string | null | undefined;
34972
- autoApplied?: boolean | null | undefined;
34973
34818
  name: string;
34974
34819
  options: {
34975
34820
  excludeIds?: string[] | null | undefined;
@@ -34993,6 +34838,8 @@ export declare const OrderKioskDto: z.ZodObject<{
34993
34838
  maxQuantity?: number | null | undefined;
34994
34839
  target: "ITEM";
34995
34840
  strategy: {
34841
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
34842
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
34996
34843
  withAddons?: string[] | null | undefined;
34997
34844
  type: "SIMPLE";
34998
34845
  } | {
@@ -35033,6 +34880,8 @@ export declare const OrderKioskDto: z.ZodObject<{
35033
34880
  target: "PAYMENT";
35034
34881
  };
35035
34882
  success: boolean;
34883
+ from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
34884
+ referenceId: string;
35036
34885
  adjustment: {
35037
34886
  inclusive?: boolean | null | undefined;
35038
34887
  type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
@@ -35041,8 +34890,6 @@ export declare const OrderKioskDto: z.ZodObject<{
35041
34890
  precision: number;
35042
34891
  };
35043
34892
  };
35044
- referenceId: string;
35045
- from: "COUNTER" | "PROMOTION" | "VOUCHER" | "MEMBERSHIP" | "FREE_CREDIT";
35046
34893
  })[] | undefined;
35047
34894
  option: {
35048
34895
  remark?: string | null | undefined;
@@ -35060,10 +34907,6 @@ export declare const OrderKioskDto: z.ZodObject<{
35060
34907
  slot?: string | null | undefined;
35061
34908
  type: "QUEUE";
35062
34909
  queueId: string;
35063
- } | {
35064
- slot?: string | null | undefined;
35065
- type: "RESERVATION";
35066
- reservationId: string;
35067
34910
  } | {
35068
34911
  seqNumber?: string | null | undefined;
35069
34912
  slot: string;
@@ -39567,17 +39410,7 @@ export declare const OrderPOSGetDto: z.ZodObject<{
39567
39410
  warehouseQuota: number;
39568
39411
  menuVersion: string;
39569
39412
  }>>>;
39570
- features: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
39571
- stock: string;
39572
- discovery: string;
39573
- pickup: string;
39574
- delivery: string;
39575
- foodpanda: string;
39576
- deliveryIntegration: string;
39577
- kds: string;
39578
- ods: string;
39579
- queue: string;
39580
- }>, "many">>>;
39413
+ features: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
39581
39414
  expiredAt: z.ZodEffects<z.ZodString, string, string>;
39582
39415
  machineOtp: z.ZodNullable<z.ZodOptional<z.ZodString>>;
39583
39416
  machineOtpExpiredAt: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
@@ -48685,7 +48518,7 @@ export declare const OrderCustomerV1Dto: z.ZodObject<{
48685
48518
  }>;
48686
48519
  }>>>;
48687
48520
  sub: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
48688
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
48521
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
48689
48522
  }, {
48690
48523
  type: z.ZodLiteral<"QR">;
48691
48524
  session: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -48699,7 +48532,7 @@ export declare const OrderCustomerV1Dto: z.ZodObject<{
48699
48532
  slot: string;
48700
48533
  type: "QR";
48701
48534
  }> | z.ZodObject<z.extendShape<{
48702
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
48535
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
48703
48536
  }, {
48704
48537
  type: z.ZodLiteral<"QUEUE">;
48705
48538
  queueId: z.ZodString;
@@ -48713,21 +48546,7 @@ export declare const OrderCustomerV1Dto: z.ZodObject<{
48713
48546
  type: "QUEUE";
48714
48547
  queueId: string;
48715
48548
  }> | z.ZodObject<z.extendShape<{
48716
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
48717
- }, {
48718
- type: z.ZodLiteral<"RESERVATION">;
48719
- reservationId: z.ZodString;
48720
- slot: z.ZodNullable<z.ZodOptional<z.ZodString>>;
48721
- }>, "strip", z.ZodTypeAny, {
48722
- slot?: string | null | undefined;
48723
- type: "RESERVATION";
48724
- reservationId: string;
48725
- }, {
48726
- slot?: string | null | undefined;
48727
- type: "RESERVATION";
48728
- reservationId: string;
48729
- }> | z.ZodObject<z.extendShape<{
48730
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
48549
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
48731
48550
  }, {
48732
48551
  type: z.ZodLiteral<"TAKEAWAY">;
48733
48552
  slot: z.ZodString;
@@ -48757,10 +48576,6 @@ export declare const OrderCustomerV1Dto: z.ZodObject<{
48757
48576
  slot?: string | null | undefined;
48758
48577
  type: "QUEUE";
48759
48578
  queueId: string;
48760
- } | {
48761
- slot?: string | null | undefined;
48762
- type: "RESERVATION";
48763
- reservationId: string;
48764
48579
  } | {
48765
48580
  seqNumber?: string | null | undefined;
48766
48581
  slot: string;
@@ -48783,10 +48598,6 @@ export declare const OrderCustomerV1Dto: z.ZodObject<{
48783
48598
  slot?: string | null | undefined;
48784
48599
  type: "QUEUE";
48785
48600
  queueId: string;
48786
- } | {
48787
- slot?: string | null | undefined;
48788
- type: "RESERVATION";
48789
- reservationId: string;
48790
48601
  } | {
48791
48602
  seqNumber?: string | null | undefined;
48792
48603
  slot: string;
@@ -50125,8 +49936,8 @@ export declare const OrderCustomerV1Dto: z.ZodObject<{
50125
49936
  rejectReason?: string | null | undefined;
50126
49937
  bill?: any;
50127
49938
  userId?: string | null | undefined;
50128
- pf_user?: any;
50129
49939
  userName?: string | null | undefined;
49940
+ pf_user?: any;
50130
49941
  option: {
50131
49942
  remark?: string | null | undefined;
50132
49943
  pax?: number | null | undefined;
@@ -50143,10 +49954,6 @@ export declare const OrderCustomerV1Dto: z.ZodObject<{
50143
49954
  slot?: string | null | undefined;
50144
49955
  type: "QUEUE";
50145
49956
  queueId: string;
50146
- } | {
50147
- slot?: string | null | undefined;
50148
- type: "RESERVATION";
50149
- reservationId: string;
50150
49957
  } | {
50151
49958
  seqNumber?: string | null | undefined;
50152
49959
  slot: string;
@@ -50567,8 +50374,8 @@ export declare const OrderCustomerV1Dto: z.ZodObject<{
50567
50374
  rejectReason?: string | null | undefined;
50568
50375
  bill?: any;
50569
50376
  userId?: string | null | undefined;
50570
- pf_user?: any;
50571
50377
  userName?: string | null | undefined;
50378
+ pf_user?: any;
50572
50379
  option: {
50573
50380
  remark?: string | null | undefined;
50574
50381
  pax?: number | null | undefined;
@@ -50585,10 +50392,6 @@ export declare const OrderCustomerV1Dto: z.ZodObject<{
50585
50392
  slot?: string | null | undefined;
50586
50393
  type: "QUEUE";
50587
50394
  queueId: string;
50588
- } | {
50589
- slot?: string | null | undefined;
50590
- type: "RESERVATION";
50591
- reservationId: string;
50592
50395
  } | {
50593
50396
  seqNumber?: string | null | undefined;
50594
50397
  slot: string;
@@ -51045,7 +50848,7 @@ export declare const OrderPortalDto: z.ZodObject<{
51045
50848
  }>;
51046
50849
  }>>>;
51047
50850
  sub: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
51048
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
50851
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
51049
50852
  }, {
51050
50853
  type: z.ZodLiteral<"QR">;
51051
50854
  session: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -51059,7 +50862,7 @@ export declare const OrderPortalDto: z.ZodObject<{
51059
50862
  slot: string;
51060
50863
  type: "QR";
51061
50864
  }> | z.ZodObject<z.extendShape<{
51062
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
50865
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
51063
50866
  }, {
51064
50867
  type: z.ZodLiteral<"QUEUE">;
51065
50868
  queueId: z.ZodString;
@@ -51073,21 +50876,7 @@ export declare const OrderPortalDto: z.ZodObject<{
51073
50876
  type: "QUEUE";
51074
50877
  queueId: string;
51075
50878
  }> | z.ZodObject<z.extendShape<{
51076
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
51077
- }, {
51078
- type: z.ZodLiteral<"RESERVATION">;
51079
- reservationId: z.ZodString;
51080
- slot: z.ZodNullable<z.ZodOptional<z.ZodString>>;
51081
- }>, "strip", z.ZodTypeAny, {
51082
- slot?: string | null | undefined;
51083
- type: "RESERVATION";
51084
- reservationId: string;
51085
- }, {
51086
- slot?: string | null | undefined;
51087
- type: "RESERVATION";
51088
- reservationId: string;
51089
- }> | z.ZodObject<z.extendShape<{
51090
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
50879
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
51091
50880
  }, {
51092
50881
  type: z.ZodLiteral<"TAKEAWAY">;
51093
50882
  slot: z.ZodString;
@@ -51117,10 +50906,6 @@ export declare const OrderPortalDto: z.ZodObject<{
51117
50906
  slot?: string | null | undefined;
51118
50907
  type: "QUEUE";
51119
50908
  queueId: string;
51120
- } | {
51121
- slot?: string | null | undefined;
51122
- type: "RESERVATION";
51123
- reservationId: string;
51124
50909
  } | {
51125
50910
  seqNumber?: string | null | undefined;
51126
50911
  slot: string;
@@ -51143,10 +50928,6 @@ export declare const OrderPortalDto: z.ZodObject<{
51143
50928
  slot?: string | null | undefined;
51144
50929
  type: "QUEUE";
51145
50930
  queueId: string;
51146
- } | {
51147
- slot?: string | null | undefined;
51148
- type: "RESERVATION";
51149
- reservationId: string;
51150
50931
  } | {
51151
50932
  seqNumber?: string | null | undefined;
51152
50933
  slot: string;
@@ -53855,10 +53636,6 @@ export declare const OrderPortalDto: z.ZodObject<{
53855
53636
  slot?: string | null | undefined;
53856
53637
  type: "QUEUE";
53857
53638
  queueId: string;
53858
- } | {
53859
- slot?: string | null | undefined;
53860
- type: "RESERVATION";
53861
- reservationId: string;
53862
53639
  } | {
53863
53640
  seqNumber?: string | null | undefined;
53864
53641
  slot: string;
@@ -54080,7 +53857,6 @@ export declare const OrderPortalDto: z.ZodObject<{
54080
53857
  };
54081
53858
  username: string | null;
54082
53859
  orderAt: Date;
54083
- userId: string | null;
54084
53860
  draft: {
54085
53861
  id?: string | null | undefined;
54086
53862
  remark?: string | null | undefined;
@@ -54274,6 +54050,7 @@ export declare const OrderPortalDto: z.ZodObject<{
54274
54050
  })[];
54275
54051
  adjustments: Record<string, any>;
54276
54052
  }[];
54053
+ userId: string | null;
54277
54054
  effects: any[];
54278
54055
  business: {
54279
54056
  name: string;
@@ -54371,10 +54148,6 @@ export declare const OrderPortalDto: z.ZodObject<{
54371
54148
  slot?: string | null | undefined;
54372
54149
  type: "QUEUE";
54373
54150
  queueId: string;
54374
- } | {
54375
- slot?: string | null | undefined;
54376
- type: "RESERVATION";
54377
- reservationId: string;
54378
54151
  } | {
54379
54152
  seqNumber?: string | null | undefined;
54380
54153
  slot: string;
@@ -54888,7 +54661,7 @@ export declare const FdtoOrderQuery: z.ZodObject<{
54888
54661
  excludeDeliveryStatus: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["CREATING", "NEW", "IN_DELIVER", "PICKING_UP", "IN_RETURN", "CANCELED", "RETURNED", "COMPLETE", "FAILED", "REFUSED"]>, "many">>>;
54889
54662
  ascending: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
54890
54663
  slot: z.ZodNullable<z.ZodOptional<z.ZodString>>;
54891
- subType: z.ZodNullable<z.ZodOptional<z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>>>;
54664
+ subType: z.ZodNullable<z.ZodOptional<z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>>>;
54892
54665
  billIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
54893
54666
  }, "strip", z.ZodTypeAny, {
54894
54667
  slot?: string | null | undefined;
@@ -54907,7 +54680,7 @@ export declare const FdtoOrderQuery: z.ZodObject<{
54907
54680
  deliveryStatus?: ("CREATING" | "NEW" | "IN_DELIVER" | "PICKING_UP" | "IN_RETURN" | "CANCELED" | "RETURNED" | "COMPLETE" | "FAILED" | "REFUSED")[] | null | undefined;
54908
54681
  excludeDeliveryStatus?: ("CREATING" | "NEW" | "IN_DELIVER" | "PICKING_UP" | "IN_RETURN" | "CANCELED" | "RETURNED" | "COMPLETE" | "FAILED" | "REFUSED")[] | null | undefined;
54909
54682
  ascending?: number | null | undefined;
54910
- subType?: "QR" | "QUEUE" | "RESERVATION" | "TAKEAWAY" | "KIOSK" | "COUNTER" | null | undefined;
54683
+ subType?: "QR" | "QUEUE" | "TAKEAWAY" | "KIOSK" | "COUNTER" | null | undefined;
54911
54684
  billIds?: string[] | null | undefined;
54912
54685
  }, {
54913
54686
  slot?: string | null | undefined;
@@ -54926,7 +54699,7 @@ export declare const FdtoOrderQuery: z.ZodObject<{
54926
54699
  deliveryStatus?: ("CREATING" | "NEW" | "IN_DELIVER" | "PICKING_UP" | "IN_RETURN" | "CANCELED" | "RETURNED" | "COMPLETE" | "FAILED" | "REFUSED")[] | null | undefined;
54927
54700
  excludeDeliveryStatus?: ("CREATING" | "NEW" | "IN_DELIVER" | "PICKING_UP" | "IN_RETURN" | "CANCELED" | "RETURNED" | "COMPLETE" | "FAILED" | "REFUSED")[] | null | undefined;
54928
54701
  ascending?: number | null | undefined;
54929
- subType?: "QR" | "QUEUE" | "RESERVATION" | "TAKEAWAY" | "KIOSK" | "COUNTER" | null | undefined;
54702
+ subType?: "QR" | "QUEUE" | "TAKEAWAY" | "KIOSK" | "COUNTER" | null | undefined;
54930
54703
  billIds?: string[] | null | undefined;
54931
54704
  }>;
54932
54705
  export declare const FdtoOrderUpdate: z.ZodObject<{
@@ -55282,15 +55055,39 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
55282
55055
  ignoreMinPrice: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
55283
55056
  afterTaxLevel: z.ZodNumber;
55284
55057
  remark: z.ZodNullable<z.ZodOptional<z.ZodString>>;
55058
+ targetScope: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ITEM", "SUB_ITEM"]>>>;
55059
+ calculationBase: z.ZodNullable<z.ZodOptional<z.ZodEnum<["SUB_ITEM", "BASE_ITEM"]>>>;
55060
+ calculationOrder: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
55061
+ subItemAllocations: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
55062
+ path: z.ZodArray<z.ZodNumber, "many">;
55063
+ selection: z.ZodString;
55064
+ unitIndexes: z.ZodArray<z.ZodNumber, "many">;
55065
+ }, "strip", z.ZodTypeAny, {
55066
+ path: number[];
55067
+ selection: string;
55068
+ unitIndexes: number[];
55069
+ }, {
55070
+ path: number[];
55071
+ selection: string;
55072
+ unitIndexes: number[];
55073
+ }>, "many">>>;
55285
55074
  }, "strip", z.ZodTypeAny, {
55286
55075
  reason?: string | null | undefined;
55076
+ referenceId?: string | null | undefined;
55287
55077
  remark?: string | null | undefined;
55288
55078
  excludeAddonPrice?: boolean | null | undefined;
55289
- referenceId?: string | null | undefined;
55290
55079
  adjustmentRule?: {
55291
55080
  type: "CAPPED_AT";
55292
55081
  } | null | undefined;
55293
55082
  ignoreMinPrice?: boolean | null | undefined;
55083
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
55084
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
55085
+ calculationOrder?: number | null | undefined;
55086
+ subItemAllocations?: {
55087
+ path: number[];
55088
+ selection: string;
55089
+ unitIndexes: number[];
55090
+ }[] | null | undefined;
55294
55091
  total: {
55295
55092
  currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
55296
55093
  amount: number;
@@ -55316,13 +55113,21 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
55316
55113
  afterTaxLevel: number;
55317
55114
  }, {
55318
55115
  reason?: string | null | undefined;
55116
+ referenceId?: string | null | undefined;
55319
55117
  remark?: string | null | undefined;
55320
55118
  excludeAddonPrice?: boolean | null | undefined;
55321
- referenceId?: string | null | undefined;
55322
55119
  adjustmentRule?: {
55323
55120
  type: "CAPPED_AT";
55324
55121
  } | null | undefined;
55325
55122
  ignoreMinPrice?: boolean | null | undefined;
55123
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
55124
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
55125
+ calculationOrder?: number | null | undefined;
55126
+ subItemAllocations?: {
55127
+ path: number[];
55128
+ selection: string;
55129
+ unitIndexes: number[];
55130
+ }[] | null | undefined;
55326
55131
  total: {
55327
55132
  currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
55328
55133
  amount: number;
@@ -55555,13 +55360,21 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
55555
55360
  subItems: import("./order.do").FdoOrderSubItem[];
55556
55361
  adjustments: Record<string, {
55557
55362
  reason?: string | null | undefined;
55363
+ referenceId?: string | null | undefined;
55558
55364
  remark?: string | null | undefined;
55559
55365
  excludeAddonPrice?: boolean | null | undefined;
55560
- referenceId?: string | null | undefined;
55561
55366
  adjustmentRule?: {
55562
55367
  type: "CAPPED_AT";
55563
55368
  } | null | undefined;
55564
55369
  ignoreMinPrice?: boolean | null | undefined;
55370
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
55371
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
55372
+ calculationOrder?: number | null | undefined;
55373
+ subItemAllocations?: {
55374
+ path: number[];
55375
+ selection: string;
55376
+ unitIndexes: number[];
55377
+ }[] | null | undefined;
55565
55378
  total: {
55566
55379
  currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
55567
55380
  amount: number;
@@ -55692,13 +55505,21 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
55692
55505
  subItems: import("./order.do").FdoOrderSubItem[];
55693
55506
  adjustments: Record<string, {
55694
55507
  reason?: string | null | undefined;
55508
+ referenceId?: string | null | undefined;
55695
55509
  remark?: string | null | undefined;
55696
55510
  excludeAddonPrice?: boolean | null | undefined;
55697
- referenceId?: string | null | undefined;
55698
55511
  adjustmentRule?: {
55699
55512
  type: "CAPPED_AT";
55700
55513
  } | null | undefined;
55701
55514
  ignoreMinPrice?: boolean | null | undefined;
55515
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
55516
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
55517
+ calculationOrder?: number | null | undefined;
55518
+ subItemAllocations?: {
55519
+ path: number[];
55520
+ selection: string;
55521
+ unitIndexes: number[];
55522
+ }[] | null | undefined;
55702
55523
  total: {
55703
55524
  currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
55704
55525
  amount: number;
@@ -55748,7 +55569,7 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
55748
55569
  }>;
55749
55570
  }>>>;
55750
55571
  sub: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
55751
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
55572
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
55752
55573
  }, {
55753
55574
  type: z.ZodLiteral<"QR">;
55754
55575
  session: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -55762,7 +55583,7 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
55762
55583
  slot: string;
55763
55584
  type: "QR";
55764
55585
  }> | z.ZodObject<z.extendShape<{
55765
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
55586
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
55766
55587
  }, {
55767
55588
  type: z.ZodLiteral<"QUEUE">;
55768
55589
  queueId: z.ZodEffects<z.ZodString, string, string>;
@@ -55776,81 +55597,7 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
55776
55597
  type: "QUEUE";
55777
55598
  queueId: string;
55778
55599
  }> | z.ZodObject<z.extendShape<{
55779
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
55780
- }, {
55781
- type: z.ZodLiteral<"RESERVATION">;
55782
- reservationId: z.ZodEffects<z.ZodString, string, string>;
55783
- pf_booking: z.ZodOptional<z.ZodLazy<z.ZodObject<z.extendShape<{
55784
- _id: z.ZodString;
55785
- type: z.ZodEnum<["QUEUE", "RESERVATION"]>;
55786
- restaurantId: z.ZodString;
55787
- userId: z.ZodOptional<z.ZodString>;
55788
- seqNumber: z.ZodOptional<z.ZodString>;
55789
- pax: z.ZodNumber;
55790
- rejectReason: z.ZodOptional<z.ZodString>;
55791
- pf_restaurant: z.ZodOptional<z.ZodAny>;
55792
- pf_user: z.ZodOptional<z.ZodAny>;
55793
- }, {
55794
- type: z.ZodLiteral<"RESERVATION">;
55795
- reserveAt: z.ZodString;
55796
- }>, "strip", z.ZodTypeAny, {
55797
- rejectReason?: string | undefined;
55798
- pf_restaurant?: any;
55799
- seqNumber?: string | undefined;
55800
- userId?: string | undefined;
55801
- pf_user?: any;
55802
- type: "RESERVATION";
55803
- restaurantId: string;
55804
- _id: string;
55805
- pax: number;
55806
- reserveAt: string;
55807
- }, {
55808
- rejectReason?: string | undefined;
55809
- pf_restaurant?: any;
55810
- seqNumber?: string | undefined;
55811
- userId?: string | undefined;
55812
- pf_user?: any;
55813
- type: "RESERVATION";
55814
- restaurantId: string;
55815
- _id: string;
55816
- pax: number;
55817
- reserveAt: string;
55818
- }>>>;
55819
- slot: z.ZodNullable<z.ZodOptional<z.ZodString>>;
55820
- }>, "strip", z.ZodTypeAny, {
55821
- slot?: string | null | undefined;
55822
- pf_booking?: {
55823
- rejectReason?: string | undefined;
55824
- pf_restaurant?: any;
55825
- seqNumber?: string | undefined;
55826
- userId?: string | undefined;
55827
- pf_user?: any;
55828
- type: "RESERVATION";
55829
- restaurantId: string;
55830
- _id: string;
55831
- pax: number;
55832
- reserveAt: string;
55833
- } | undefined;
55834
- type: "RESERVATION";
55835
- reservationId: string;
55836
- }, {
55837
- slot?: string | null | undefined;
55838
- pf_booking?: {
55839
- rejectReason?: string | undefined;
55840
- pf_restaurant?: any;
55841
- seqNumber?: string | undefined;
55842
- userId?: string | undefined;
55843
- pf_user?: any;
55844
- type: "RESERVATION";
55845
- restaurantId: string;
55846
- _id: string;
55847
- pax: number;
55848
- reserveAt: string;
55849
- } | undefined;
55850
- type: "RESERVATION";
55851
- reservationId: string;
55852
- }> | z.ZodObject<z.extendShape<{
55853
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
55600
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
55854
55601
  }, {
55855
55602
  type: z.ZodLiteral<"TAKEAWAY">;
55856
55603
  slot: z.ZodString;
@@ -55880,22 +55627,6 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
55880
55627
  slot?: string | null | undefined;
55881
55628
  type: "QUEUE";
55882
55629
  queueId: string;
55883
- } | {
55884
- slot?: string | null | undefined;
55885
- pf_booking?: {
55886
- rejectReason?: string | undefined;
55887
- pf_restaurant?: any;
55888
- seqNumber?: string | undefined;
55889
- userId?: string | undefined;
55890
- pf_user?: any;
55891
- type: "RESERVATION";
55892
- restaurantId: string;
55893
- _id: string;
55894
- pax: number;
55895
- reserveAt: string;
55896
- } | undefined;
55897
- type: "RESERVATION";
55898
- reservationId: string;
55899
55630
  } | {
55900
55631
  seqNumber?: string | null | undefined;
55901
55632
  slot: string;
@@ -55918,22 +55649,6 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
55918
55649
  slot?: string | null | undefined;
55919
55650
  type: "QUEUE";
55920
55651
  queueId: string;
55921
- } | {
55922
- slot?: string | null | undefined;
55923
- pf_booking?: {
55924
- rejectReason?: string | undefined;
55925
- pf_restaurant?: any;
55926
- seqNumber?: string | undefined;
55927
- userId?: string | undefined;
55928
- pf_user?: any;
55929
- type: "RESERVATION";
55930
- restaurantId: string;
55931
- _id: string;
55932
- pax: number;
55933
- reserveAt: string;
55934
- } | undefined;
55935
- type: "RESERVATION";
55936
- reservationId: string;
55937
55652
  } | {
55938
55653
  seqNumber?: string | null | undefined;
55939
55654
  slot: string;
@@ -58658,26 +58373,26 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
58658
58373
  amount: z.ZodNumber;
58659
58374
  expiredAt: z.ZodEffects<z.ZodString, string, string>;
58660
58375
  }, "strip", z.ZodTypeAny, {
58661
- _id: string;
58662
58376
  amount: number;
58377
+ _id: string;
58663
58378
  expiredAt: string;
58664
58379
  }, {
58665
- _id: string;
58666
58380
  amount: number;
58381
+ _id: string;
58667
58382
  expiredAt: string;
58668
58383
  }>, "many">;
58669
58384
  }, "strip", z.ZodTypeAny, {
58670
58385
  normal: number;
58671
58386
  free: {
58672
- _id: string;
58673
58387
  amount: number;
58388
+ _id: string;
58674
58389
  expiredAt: string;
58675
58390
  }[];
58676
58391
  }, {
58677
58392
  normal: number;
58678
58393
  free: {
58679
- _id: string;
58680
58394
  amount: number;
58395
+ _id: string;
58681
58396
  expiredAt: string;
58682
58397
  }[];
58683
58398
  }>;
@@ -58798,8 +58513,8 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
58798
58513
  creditBalance: {
58799
58514
  normal: number;
58800
58515
  free: {
58801
- _id: string;
58802
58516
  amount: number;
58517
+ _id: string;
58803
58518
  expiredAt: string;
58804
58519
  }[];
58805
58520
  };
@@ -58912,8 +58627,8 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
58912
58627
  creditBalance: {
58913
58628
  normal: number;
58914
58629
  free: {
58915
- _id: string;
58916
58630
  amount: number;
58631
+ _id: string;
58917
58632
  expiredAt: string;
58918
58633
  }[];
58919
58634
  };
@@ -58933,26 +58648,26 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
58933
58648
  amount: z.ZodNumber;
58934
58649
  expiredAt: z.ZodEffects<z.ZodString, string, string>;
58935
58650
  }, "strip", z.ZodTypeAny, {
58936
- _id: string;
58937
58651
  amount: number;
58652
+ _id: string;
58938
58653
  expiredAt: string;
58939
58654
  }, {
58940
- _id: string;
58941
58655
  amount: number;
58656
+ _id: string;
58942
58657
  expiredAt: string;
58943
58658
  }>, "many">;
58944
58659
  }, "strip", z.ZodTypeAny, {
58945
58660
  normal: number;
58946
58661
  free: {
58947
- _id: string;
58948
58662
  amount: number;
58663
+ _id: string;
58949
58664
  expiredAt: string;
58950
58665
  }[];
58951
58666
  }, {
58952
58667
  normal: number;
58953
58668
  free: {
58954
- _id: string;
58955
58669
  amount: number;
58670
+ _id: string;
58956
58671
  expiredAt: string;
58957
58672
  }[];
58958
58673
  }>;
@@ -58963,26 +58678,26 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
58963
58678
  amount: z.ZodNumber;
58964
58679
  expiredAt: z.ZodEffects<z.ZodString, string, string>;
58965
58680
  }, "strip", z.ZodTypeAny, {
58966
- _id: string;
58967
58681
  amount: number;
58682
+ _id: string;
58968
58683
  expiredAt: string;
58969
58684
  }, {
58970
- _id: string;
58971
58685
  amount: number;
58686
+ _id: string;
58972
58687
  expiredAt: string;
58973
58688
  }>, "many">;
58974
58689
  }, "strip", z.ZodTypeAny, {
58975
58690
  normal: number;
58976
58691
  free: {
58977
- _id: string;
58978
58692
  amount: number;
58693
+ _id: string;
58979
58694
  expiredAt: string;
58980
58695
  }[];
58981
58696
  }, {
58982
58697
  normal: number;
58983
58698
  free: {
58984
- _id: string;
58985
58699
  amount: number;
58700
+ _id: string;
58986
58701
  expiredAt: string;
58987
58702
  }[];
58988
58703
  }>;
@@ -58992,12 +58707,12 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
58992
58707
  amount: z.ZodNumber;
58993
58708
  expiredAt: z.ZodEffects<z.ZodString, string, string>;
58994
58709
  }, "strip", z.ZodTypeAny, {
58995
- _id: string;
58996
58710
  amount: number;
58711
+ _id: string;
58997
58712
  expiredAt: string;
58998
58713
  }, {
58999
- _id: string;
59000
58714
  amount: number;
58715
+ _id: string;
59001
58716
  expiredAt: string;
59002
58717
  }>, "many">;
59003
58718
  createdAt: z.ZodEffects<z.ZodString, string, string>;
@@ -59487,17 +59202,7 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
59487
59202
  warehouseQuota: number;
59488
59203
  menuVersion: string;
59489
59204
  }>>>;
59490
- features: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
59491
- stock: string;
59492
- discovery: string;
59493
- pickup: string;
59494
- delivery: string;
59495
- foodpanda: string;
59496
- deliveryIntegration: string;
59497
- kds: string;
59498
- ods: string;
59499
- queue: string;
59500
- }>, "many">>>;
59205
+ features: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
59501
59206
  expiredAt: z.ZodEffects<z.ZodString, string, string>;
59502
59207
  machineOtp: z.ZodNullable<z.ZodOptional<z.ZodString>>;
59503
59208
  machineOtpExpiredAt: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
@@ -62156,8 +61861,8 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
62156
61861
  creditBalance: {
62157
61862
  normal: number;
62158
61863
  free: {
62159
- _id: string;
62160
61864
  amount: number;
61865
+ _id: string;
62161
61866
  expiredAt: string;
62162
61867
  }[];
62163
61868
  };
@@ -62173,28 +61878,28 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
62173
61878
  from: {
62174
61879
  normal: number;
62175
61880
  free: {
62176
- _id: string;
62177
61881
  amount: number;
61882
+ _id: string;
62178
61883
  expiredAt: string;
62179
61884
  }[];
62180
61885
  };
62181
61886
  to: {
62182
61887
  normal: number;
62183
61888
  free: {
62184
- _id: string;
62185
61889
  amount: number;
61890
+ _id: string;
62186
61891
  expiredAt: string;
62187
61892
  }[];
62188
61893
  };
61894
+ member: string;
62189
61895
  createdAt: string;
62190
61896
  free: {
62191
- _id: string;
62192
61897
  amount: number;
61898
+ _id: string;
62193
61899
  expiredAt: string;
62194
61900
  }[];
62195
61901
  ref: string;
62196
61902
  business: string;
62197
- member: string;
62198
61903
  refunded: boolean;
62199
61904
  }, {
62200
61905
  remark?: string | null | undefined;
@@ -62729,8 +62434,8 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
62729
62434
  creditBalance: {
62730
62435
  normal: number;
62731
62436
  free: {
62732
- _id: string;
62733
62437
  amount: number;
62438
+ _id: string;
62734
62439
  expiredAt: string;
62735
62440
  }[];
62736
62441
  };
@@ -62746,28 +62451,28 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
62746
62451
  from: {
62747
62452
  normal: number;
62748
62453
  free: {
62749
- _id: string;
62750
62454
  amount: number;
62455
+ _id: string;
62751
62456
  expiredAt: string;
62752
62457
  }[];
62753
62458
  };
62754
62459
  to: {
62755
62460
  normal: number;
62756
62461
  free: {
62757
- _id: string;
62758
62462
  amount: number;
62463
+ _id: string;
62759
62464
  expiredAt: string;
62760
62465
  }[];
62761
62466
  };
62467
+ member: string;
62762
62468
  createdAt: string;
62763
62469
  free: {
62764
- _id: string;
62765
62470
  amount: number;
62471
+ _id: string;
62766
62472
  expiredAt: string;
62767
62473
  }[];
62768
62474
  ref: string;
62769
62475
  business: string;
62770
- member: string;
62771
62476
  refunded: boolean;
62772
62477
  }>, "many">>>;
62773
62478
  }, "pf_transactions" | "pf_credits">, "strip", z.ZodTypeAny, {
@@ -62861,22 +62566,6 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
62861
62566
  slot?: string | null | undefined;
62862
62567
  type: "QUEUE";
62863
62568
  queueId: string;
62864
- } | {
62865
- slot?: string | null | undefined;
62866
- pf_booking?: {
62867
- rejectReason?: string | undefined;
62868
- pf_restaurant?: any;
62869
- seqNumber?: string | undefined;
62870
- userId?: string | undefined;
62871
- pf_user?: any;
62872
- type: "RESERVATION";
62873
- restaurantId: string;
62874
- _id: string;
62875
- pax: number;
62876
- reserveAt: string;
62877
- } | undefined;
62878
- type: "RESERVATION";
62879
- reservationId: string;
62880
62569
  } | {
62881
62570
  seqNumber?: string | null | undefined;
62882
62571
  slot: string;
@@ -63192,13 +62881,21 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
63192
62881
  subItems: import("./order.do").FdoOrderSubItem[];
63193
62882
  adjustments: Record<string, {
63194
62883
  reason?: string | null | undefined;
62884
+ referenceId?: string | null | undefined;
63195
62885
  remark?: string | null | undefined;
63196
62886
  excludeAddonPrice?: boolean | null | undefined;
63197
- referenceId?: string | null | undefined;
63198
62887
  adjustmentRule?: {
63199
62888
  type: "CAPPED_AT";
63200
62889
  } | null | undefined;
63201
62890
  ignoreMinPrice?: boolean | null | undefined;
62891
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
62892
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
62893
+ calculationOrder?: number | null | undefined;
62894
+ subItemAllocations?: {
62895
+ path: number[];
62896
+ selection: string;
62897
+ unitIndexes: number[];
62898
+ }[] | null | undefined;
63202
62899
  total: {
63203
62900
  currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
63204
62901
  amount: number;
@@ -63267,22 +62964,6 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
63267
62964
  slot?: string | null | undefined;
63268
62965
  type: "QUEUE";
63269
62966
  queueId: string;
63270
- } | {
63271
- slot?: string | null | undefined;
63272
- pf_booking?: {
63273
- rejectReason?: string | undefined;
63274
- pf_restaurant?: any;
63275
- seqNumber?: string | undefined;
63276
- userId?: string | undefined;
63277
- pf_user?: any;
63278
- type: "RESERVATION";
63279
- restaurantId: string;
63280
- _id: string;
63281
- pax: number;
63282
- reserveAt: string;
63283
- } | undefined;
63284
- type: "RESERVATION";
63285
- reservationId: string;
63286
62967
  } | {
63287
62968
  seqNumber?: string | null | undefined;
63288
62969
  slot: string;
@@ -63597,13 +63278,21 @@ export declare const FdtoOrderUpdate: z.ZodObject<{
63597
63278
  subItems: import("./order.do").FdoOrderSubItem[];
63598
63279
  adjustments: Record<string, {
63599
63280
  reason?: string | null | undefined;
63281
+ referenceId?: string | null | undefined;
63600
63282
  remark?: string | null | undefined;
63601
63283
  excludeAddonPrice?: boolean | null | undefined;
63602
- referenceId?: string | null | undefined;
63603
63284
  adjustmentRule?: {
63604
63285
  type: "CAPPED_AT";
63605
63286
  } | null | undefined;
63606
63287
  ignoreMinPrice?: boolean | null | undefined;
63288
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
63289
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
63290
+ calculationOrder?: number | null | undefined;
63291
+ subItemAllocations?: {
63292
+ path: number[];
63293
+ selection: string;
63294
+ unitIndexes: number[];
63295
+ }[] | null | undefined;
63607
63296
  total: {
63608
63297
  currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
63609
63298
  amount: number;
@@ -64086,15 +63775,39 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
64086
63775
  ignoreMinPrice: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
64087
63776
  afterTaxLevel: z.ZodNumber;
64088
63777
  remark: z.ZodNullable<z.ZodOptional<z.ZodString>>;
63778
+ targetScope: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ITEM", "SUB_ITEM"]>>>;
63779
+ calculationBase: z.ZodNullable<z.ZodOptional<z.ZodEnum<["SUB_ITEM", "BASE_ITEM"]>>>;
63780
+ calculationOrder: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
63781
+ subItemAllocations: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
63782
+ path: z.ZodArray<z.ZodNumber, "many">;
63783
+ selection: z.ZodString;
63784
+ unitIndexes: z.ZodArray<z.ZodNumber, "many">;
63785
+ }, "strip", z.ZodTypeAny, {
63786
+ path: number[];
63787
+ selection: string;
63788
+ unitIndexes: number[];
63789
+ }, {
63790
+ path: number[];
63791
+ selection: string;
63792
+ unitIndexes: number[];
63793
+ }>, "many">>>;
64089
63794
  }, "strip", z.ZodTypeAny, {
64090
63795
  reason?: string | null | undefined;
63796
+ referenceId?: string | null | undefined;
64091
63797
  remark?: string | null | undefined;
64092
63798
  excludeAddonPrice?: boolean | null | undefined;
64093
- referenceId?: string | null | undefined;
64094
63799
  adjustmentRule?: {
64095
63800
  type: "CAPPED_AT";
64096
63801
  } | null | undefined;
64097
63802
  ignoreMinPrice?: boolean | null | undefined;
63803
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
63804
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
63805
+ calculationOrder?: number | null | undefined;
63806
+ subItemAllocations?: {
63807
+ path: number[];
63808
+ selection: string;
63809
+ unitIndexes: number[];
63810
+ }[] | null | undefined;
64098
63811
  total: {
64099
63812
  currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
64100
63813
  amount: number;
@@ -64120,13 +63833,21 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
64120
63833
  afterTaxLevel: number;
64121
63834
  }, {
64122
63835
  reason?: string | null | undefined;
63836
+ referenceId?: string | null | undefined;
64123
63837
  remark?: string | null | undefined;
64124
63838
  excludeAddonPrice?: boolean | null | undefined;
64125
- referenceId?: string | null | undefined;
64126
63839
  adjustmentRule?: {
64127
63840
  type: "CAPPED_AT";
64128
63841
  } | null | undefined;
64129
63842
  ignoreMinPrice?: boolean | null | undefined;
63843
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
63844
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
63845
+ calculationOrder?: number | null | undefined;
63846
+ subItemAllocations?: {
63847
+ path: number[];
63848
+ selection: string;
63849
+ unitIndexes: number[];
63850
+ }[] | null | undefined;
64130
63851
  total: {
64131
63852
  currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
64132
63853
  amount: number;
@@ -64359,13 +64080,21 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
64359
64080
  subItems: import("./order.do").FdoOrderSubItem[];
64360
64081
  adjustments: Record<string, {
64361
64082
  reason?: string | null | undefined;
64083
+ referenceId?: string | null | undefined;
64362
64084
  remark?: string | null | undefined;
64363
64085
  excludeAddonPrice?: boolean | null | undefined;
64364
- referenceId?: string | null | undefined;
64365
64086
  adjustmentRule?: {
64366
64087
  type: "CAPPED_AT";
64367
64088
  } | null | undefined;
64368
64089
  ignoreMinPrice?: boolean | null | undefined;
64090
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
64091
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
64092
+ calculationOrder?: number | null | undefined;
64093
+ subItemAllocations?: {
64094
+ path: number[];
64095
+ selection: string;
64096
+ unitIndexes: number[];
64097
+ }[] | null | undefined;
64369
64098
  total: {
64370
64099
  currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
64371
64100
  amount: number;
@@ -64496,13 +64225,21 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
64496
64225
  subItems: import("./order.do").FdoOrderSubItem[];
64497
64226
  adjustments: Record<string, {
64498
64227
  reason?: string | null | undefined;
64228
+ referenceId?: string | null | undefined;
64499
64229
  remark?: string | null | undefined;
64500
64230
  excludeAddonPrice?: boolean | null | undefined;
64501
- referenceId?: string | null | undefined;
64502
64231
  adjustmentRule?: {
64503
64232
  type: "CAPPED_AT";
64504
64233
  } | null | undefined;
64505
64234
  ignoreMinPrice?: boolean | null | undefined;
64235
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
64236
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
64237
+ calculationOrder?: number | null | undefined;
64238
+ subItemAllocations?: {
64239
+ path: number[];
64240
+ selection: string;
64241
+ unitIndexes: number[];
64242
+ }[] | null | undefined;
64506
64243
  total: {
64507
64244
  currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
64508
64245
  amount: number;
@@ -64552,7 +64289,7 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
64552
64289
  }>;
64553
64290
  }>>>;
64554
64291
  sub: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
64555
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
64292
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
64556
64293
  }, {
64557
64294
  type: z.ZodLiteral<"QR">;
64558
64295
  session: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -64566,7 +64303,7 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
64566
64303
  slot: string;
64567
64304
  type: "QR";
64568
64305
  }> | z.ZodObject<z.extendShape<{
64569
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
64306
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
64570
64307
  }, {
64571
64308
  type: z.ZodLiteral<"QUEUE">;
64572
64309
  queueId: z.ZodEffects<z.ZodString, string, string>;
@@ -64580,81 +64317,7 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
64580
64317
  type: "QUEUE";
64581
64318
  queueId: string;
64582
64319
  }> | z.ZodObject<z.extendShape<{
64583
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
64584
- }, {
64585
- type: z.ZodLiteral<"RESERVATION">;
64586
- reservationId: z.ZodEffects<z.ZodString, string, string>;
64587
- pf_booking: z.ZodOptional<z.ZodLazy<z.ZodObject<z.extendShape<{
64588
- _id: z.ZodString;
64589
- type: z.ZodEnum<["QUEUE", "RESERVATION"]>;
64590
- restaurantId: z.ZodString;
64591
- userId: z.ZodOptional<z.ZodString>;
64592
- seqNumber: z.ZodOptional<z.ZodString>;
64593
- pax: z.ZodNumber;
64594
- rejectReason: z.ZodOptional<z.ZodString>;
64595
- pf_restaurant: z.ZodOptional<z.ZodAny>;
64596
- pf_user: z.ZodOptional<z.ZodAny>;
64597
- }, {
64598
- type: z.ZodLiteral<"RESERVATION">;
64599
- reserveAt: z.ZodString;
64600
- }>, "strip", z.ZodTypeAny, {
64601
- rejectReason?: string | undefined;
64602
- pf_restaurant?: any;
64603
- seqNumber?: string | undefined;
64604
- userId?: string | undefined;
64605
- pf_user?: any;
64606
- type: "RESERVATION";
64607
- restaurantId: string;
64608
- _id: string;
64609
- pax: number;
64610
- reserveAt: string;
64611
- }, {
64612
- rejectReason?: string | undefined;
64613
- pf_restaurant?: any;
64614
- seqNumber?: string | undefined;
64615
- userId?: string | undefined;
64616
- pf_user?: any;
64617
- type: "RESERVATION";
64618
- restaurantId: string;
64619
- _id: string;
64620
- pax: number;
64621
- reserveAt: string;
64622
- }>>>;
64623
- slot: z.ZodNullable<z.ZodOptional<z.ZodString>>;
64624
- }>, "strip", z.ZodTypeAny, {
64625
- slot?: string | null | undefined;
64626
- pf_booking?: {
64627
- rejectReason?: string | undefined;
64628
- pf_restaurant?: any;
64629
- seqNumber?: string | undefined;
64630
- userId?: string | undefined;
64631
- pf_user?: any;
64632
- type: "RESERVATION";
64633
- restaurantId: string;
64634
- _id: string;
64635
- pax: number;
64636
- reserveAt: string;
64637
- } | undefined;
64638
- type: "RESERVATION";
64639
- reservationId: string;
64640
- }, {
64641
- slot?: string | null | undefined;
64642
- pf_booking?: {
64643
- rejectReason?: string | undefined;
64644
- pf_restaurant?: any;
64645
- seqNumber?: string | undefined;
64646
- userId?: string | undefined;
64647
- pf_user?: any;
64648
- type: "RESERVATION";
64649
- restaurantId: string;
64650
- _id: string;
64651
- pax: number;
64652
- reserveAt: string;
64653
- } | undefined;
64654
- type: "RESERVATION";
64655
- reservationId: string;
64656
- }> | z.ZodObject<z.extendShape<{
64657
- type: z.ZodEnum<["QR", "QUEUE", "RESERVATION", "TAKEAWAY", "KIOSK", "COUNTER"]>;
64320
+ type: z.ZodEnum<["QR", "QUEUE", "TAKEAWAY", "KIOSK", "COUNTER"]>;
64658
64321
  }, {
64659
64322
  type: z.ZodLiteral<"TAKEAWAY">;
64660
64323
  slot: z.ZodString;
@@ -64684,22 +64347,6 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
64684
64347
  slot?: string | null | undefined;
64685
64348
  type: "QUEUE";
64686
64349
  queueId: string;
64687
- } | {
64688
- slot?: string | null | undefined;
64689
- pf_booking?: {
64690
- rejectReason?: string | undefined;
64691
- pf_restaurant?: any;
64692
- seqNumber?: string | undefined;
64693
- userId?: string | undefined;
64694
- pf_user?: any;
64695
- type: "RESERVATION";
64696
- restaurantId: string;
64697
- _id: string;
64698
- pax: number;
64699
- reserveAt: string;
64700
- } | undefined;
64701
- type: "RESERVATION";
64702
- reservationId: string;
64703
64350
  } | {
64704
64351
  seqNumber?: string | null | undefined;
64705
64352
  slot: string;
@@ -64722,22 +64369,6 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
64722
64369
  slot?: string | null | undefined;
64723
64370
  type: "QUEUE";
64724
64371
  queueId: string;
64725
- } | {
64726
- slot?: string | null | undefined;
64727
- pf_booking?: {
64728
- rejectReason?: string | undefined;
64729
- pf_restaurant?: any;
64730
- seqNumber?: string | undefined;
64731
- userId?: string | undefined;
64732
- pf_user?: any;
64733
- type: "RESERVATION";
64734
- restaurantId: string;
64735
- _id: string;
64736
- pax: number;
64737
- reserveAt: string;
64738
- } | undefined;
64739
- type: "RESERVATION";
64740
- reservationId: string;
64741
64372
  } | {
64742
64373
  seqNumber?: string | null | undefined;
64743
64374
  slot: string;
@@ -67462,26 +67093,26 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
67462
67093
  amount: z.ZodNumber;
67463
67094
  expiredAt: z.ZodEffects<z.ZodString, string, string>;
67464
67095
  }, "strip", z.ZodTypeAny, {
67465
- _id: string;
67466
67096
  amount: number;
67097
+ _id: string;
67467
67098
  expiredAt: string;
67468
67099
  }, {
67469
- _id: string;
67470
67100
  amount: number;
67101
+ _id: string;
67471
67102
  expiredAt: string;
67472
67103
  }>, "many">;
67473
67104
  }, "strip", z.ZodTypeAny, {
67474
67105
  normal: number;
67475
67106
  free: {
67476
- _id: string;
67477
67107
  amount: number;
67108
+ _id: string;
67478
67109
  expiredAt: string;
67479
67110
  }[];
67480
67111
  }, {
67481
67112
  normal: number;
67482
67113
  free: {
67483
- _id: string;
67484
67114
  amount: number;
67115
+ _id: string;
67485
67116
  expiredAt: string;
67486
67117
  }[];
67487
67118
  }>;
@@ -67602,8 +67233,8 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
67602
67233
  creditBalance: {
67603
67234
  normal: number;
67604
67235
  free: {
67605
- _id: string;
67606
67236
  amount: number;
67237
+ _id: string;
67607
67238
  expiredAt: string;
67608
67239
  }[];
67609
67240
  };
@@ -67716,8 +67347,8 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
67716
67347
  creditBalance: {
67717
67348
  normal: number;
67718
67349
  free: {
67719
- _id: string;
67720
67350
  amount: number;
67351
+ _id: string;
67721
67352
  expiredAt: string;
67722
67353
  }[];
67723
67354
  };
@@ -67737,26 +67368,26 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
67737
67368
  amount: z.ZodNumber;
67738
67369
  expiredAt: z.ZodEffects<z.ZodString, string, string>;
67739
67370
  }, "strip", z.ZodTypeAny, {
67740
- _id: string;
67741
67371
  amount: number;
67372
+ _id: string;
67742
67373
  expiredAt: string;
67743
67374
  }, {
67744
- _id: string;
67745
67375
  amount: number;
67376
+ _id: string;
67746
67377
  expiredAt: string;
67747
67378
  }>, "many">;
67748
67379
  }, "strip", z.ZodTypeAny, {
67749
67380
  normal: number;
67750
67381
  free: {
67751
- _id: string;
67752
67382
  amount: number;
67383
+ _id: string;
67753
67384
  expiredAt: string;
67754
67385
  }[];
67755
67386
  }, {
67756
67387
  normal: number;
67757
67388
  free: {
67758
- _id: string;
67759
67389
  amount: number;
67390
+ _id: string;
67760
67391
  expiredAt: string;
67761
67392
  }[];
67762
67393
  }>;
@@ -67767,26 +67398,26 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
67767
67398
  amount: z.ZodNumber;
67768
67399
  expiredAt: z.ZodEffects<z.ZodString, string, string>;
67769
67400
  }, "strip", z.ZodTypeAny, {
67770
- _id: string;
67771
67401
  amount: number;
67402
+ _id: string;
67772
67403
  expiredAt: string;
67773
67404
  }, {
67774
- _id: string;
67775
67405
  amount: number;
67406
+ _id: string;
67776
67407
  expiredAt: string;
67777
67408
  }>, "many">;
67778
67409
  }, "strip", z.ZodTypeAny, {
67779
67410
  normal: number;
67780
67411
  free: {
67781
- _id: string;
67782
67412
  amount: number;
67413
+ _id: string;
67783
67414
  expiredAt: string;
67784
67415
  }[];
67785
67416
  }, {
67786
67417
  normal: number;
67787
67418
  free: {
67788
- _id: string;
67789
67419
  amount: number;
67420
+ _id: string;
67790
67421
  expiredAt: string;
67791
67422
  }[];
67792
67423
  }>;
@@ -67796,12 +67427,12 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
67796
67427
  amount: z.ZodNumber;
67797
67428
  expiredAt: z.ZodEffects<z.ZodString, string, string>;
67798
67429
  }, "strip", z.ZodTypeAny, {
67799
- _id: string;
67800
67430
  amount: number;
67431
+ _id: string;
67801
67432
  expiredAt: string;
67802
67433
  }, {
67803
- _id: string;
67804
67434
  amount: number;
67435
+ _id: string;
67805
67436
  expiredAt: string;
67806
67437
  }>, "many">;
67807
67438
  createdAt: z.ZodEffects<z.ZodString, string, string>;
@@ -68291,17 +67922,7 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
68291
67922
  warehouseQuota: number;
68292
67923
  menuVersion: string;
68293
67924
  }>>>;
68294
- features: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
68295
- stock: string;
68296
- discovery: string;
68297
- pickup: string;
68298
- delivery: string;
68299
- foodpanda: string;
68300
- deliveryIntegration: string;
68301
- kds: string;
68302
- ods: string;
68303
- queue: string;
68304
- }>, "many">>>;
67925
+ features: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
68305
67926
  expiredAt: z.ZodEffects<z.ZodString, string, string>;
68306
67927
  machineOtp: z.ZodNullable<z.ZodOptional<z.ZodString>>;
68307
67928
  machineOtpExpiredAt: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
@@ -70960,8 +70581,8 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
70960
70581
  creditBalance: {
70961
70582
  normal: number;
70962
70583
  free: {
70963
- _id: string;
70964
70584
  amount: number;
70585
+ _id: string;
70965
70586
  expiredAt: string;
70966
70587
  }[];
70967
70588
  };
@@ -70977,28 +70598,28 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
70977
70598
  from: {
70978
70599
  normal: number;
70979
70600
  free: {
70980
- _id: string;
70981
70601
  amount: number;
70602
+ _id: string;
70982
70603
  expiredAt: string;
70983
70604
  }[];
70984
70605
  };
70985
70606
  to: {
70986
70607
  normal: number;
70987
70608
  free: {
70988
- _id: string;
70989
70609
  amount: number;
70610
+ _id: string;
70990
70611
  expiredAt: string;
70991
70612
  }[];
70992
70613
  };
70614
+ member: string;
70993
70615
  createdAt: string;
70994
70616
  free: {
70995
- _id: string;
70996
70617
  amount: number;
70618
+ _id: string;
70997
70619
  expiredAt: string;
70998
70620
  }[];
70999
70621
  ref: string;
71000
70622
  business: string;
71001
- member: string;
71002
70623
  refunded: boolean;
71003
70624
  }, {
71004
70625
  remark?: string | null | undefined;
@@ -71533,8 +71154,8 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
71533
71154
  creditBalance: {
71534
71155
  normal: number;
71535
71156
  free: {
71536
- _id: string;
71537
71157
  amount: number;
71158
+ _id: string;
71538
71159
  expiredAt: string;
71539
71160
  }[];
71540
71161
  };
@@ -71550,28 +71171,28 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
71550
71171
  from: {
71551
71172
  normal: number;
71552
71173
  free: {
71553
- _id: string;
71554
71174
  amount: number;
71175
+ _id: string;
71555
71176
  expiredAt: string;
71556
71177
  }[];
71557
71178
  };
71558
71179
  to: {
71559
71180
  normal: number;
71560
71181
  free: {
71561
- _id: string;
71562
71182
  amount: number;
71183
+ _id: string;
71563
71184
  expiredAt: string;
71564
71185
  }[];
71565
71186
  };
71187
+ member: string;
71566
71188
  createdAt: string;
71567
71189
  free: {
71568
- _id: string;
71569
71190
  amount: number;
71191
+ _id: string;
71570
71192
  expiredAt: string;
71571
71193
  }[];
71572
71194
  ref: string;
71573
71195
  business: string;
71574
- member: string;
71575
71196
  refunded: boolean;
71576
71197
  }>, "many">>>;
71577
71198
  }, "pf_transactions" | "pf_credits">, "strip", z.ZodTypeAny, {
@@ -71665,22 +71286,6 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
71665
71286
  slot?: string | null | undefined;
71666
71287
  type: "QUEUE";
71667
71288
  queueId: string;
71668
- } | {
71669
- slot?: string | null | undefined;
71670
- pf_booking?: {
71671
- rejectReason?: string | undefined;
71672
- pf_restaurant?: any;
71673
- seqNumber?: string | undefined;
71674
- userId?: string | undefined;
71675
- pf_user?: any;
71676
- type: "RESERVATION";
71677
- restaurantId: string;
71678
- _id: string;
71679
- pax: number;
71680
- reserveAt: string;
71681
- } | undefined;
71682
- type: "RESERVATION";
71683
- reservationId: string;
71684
71289
  } | {
71685
71290
  seqNumber?: string | null | undefined;
71686
71291
  slot: string;
@@ -71997,13 +71602,21 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
71997
71602
  subItems: import("./order.do").FdoOrderSubItem[];
71998
71603
  adjustments: Record<string, {
71999
71604
  reason?: string | null | undefined;
71605
+ referenceId?: string | null | undefined;
72000
71606
  remark?: string | null | undefined;
72001
71607
  excludeAddonPrice?: boolean | null | undefined;
72002
- referenceId?: string | null | undefined;
72003
71608
  adjustmentRule?: {
72004
71609
  type: "CAPPED_AT";
72005
71610
  } | null | undefined;
72006
71611
  ignoreMinPrice?: boolean | null | undefined;
71612
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
71613
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
71614
+ calculationOrder?: number | null | undefined;
71615
+ subItemAllocations?: {
71616
+ path: number[];
71617
+ selection: string;
71618
+ unitIndexes: number[];
71619
+ }[] | null | undefined;
72007
71620
  total: {
72008
71621
  currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
72009
71622
  amount: number;
@@ -72094,22 +71707,6 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
72094
71707
  slot?: string | null | undefined;
72095
71708
  type: "QUEUE";
72096
71709
  queueId: string;
72097
- } | {
72098
- slot?: string | null | undefined;
72099
- pf_booking?: {
72100
- rejectReason?: string | undefined;
72101
- pf_restaurant?: any;
72102
- seqNumber?: string | undefined;
72103
- userId?: string | undefined;
72104
- pf_user?: any;
72105
- type: "RESERVATION";
72106
- restaurantId: string;
72107
- _id: string;
72108
- pax: number;
72109
- reserveAt: string;
72110
- } | undefined;
72111
- type: "RESERVATION";
72112
- reservationId: string;
72113
71710
  } | {
72114
71711
  seqNumber?: string | null | undefined;
72115
71712
  slot: string;
@@ -72425,13 +72022,21 @@ export declare const FdtoOrderCreate: z.ZodObject<z.extendShape<{
72425
72022
  subItems: import("./order.do").FdoOrderSubItem[];
72426
72023
  adjustments: Record<string, {
72427
72024
  reason?: string | null | undefined;
72025
+ referenceId?: string | null | undefined;
72428
72026
  remark?: string | null | undefined;
72429
72027
  excludeAddonPrice?: boolean | null | undefined;
72430
- referenceId?: string | null | undefined;
72431
72028
  adjustmentRule?: {
72432
72029
  type: "CAPPED_AT";
72433
72030
  } | null | undefined;
72434
72031
  ignoreMinPrice?: boolean | null | undefined;
72032
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
72033
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
72034
+ calculationOrder?: number | null | undefined;
72035
+ subItemAllocations?: {
72036
+ path: number[];
72037
+ selection: string;
72038
+ unitIndexes: number[];
72039
+ }[] | null | undefined;
72435
72040
  total: {
72436
72041
  currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
72437
72042
  amount: number;
@@ -73006,26 +72611,26 @@ declare const FdtoBillCalculateOption: z.ZodObject<{
73006
72611
  amount: z.ZodNumber;
73007
72612
  expiredAt: z.ZodEffects<z.ZodString, string, string>;
73008
72613
  }, "strip", z.ZodTypeAny, {
73009
- _id: string;
73010
72614
  amount: number;
72615
+ _id: string;
73011
72616
  expiredAt: string;
73012
72617
  }, {
73013
- _id: string;
73014
72618
  amount: number;
72619
+ _id: string;
73015
72620
  expiredAt: string;
73016
72621
  }>, "many">;
73017
72622
  }, "strip", z.ZodTypeAny, {
73018
72623
  normal: number;
73019
72624
  free: {
73020
- _id: string;
73021
72625
  amount: number;
72626
+ _id: string;
73022
72627
  expiredAt: string;
73023
72628
  }[];
73024
72629
  }, {
73025
72630
  normal: number;
73026
72631
  free: {
73027
- _id: string;
73028
72632
  amount: number;
72633
+ _id: string;
73029
72634
  expiredAt: string;
73030
72635
  }[];
73031
72636
  }>;
@@ -73148,8 +72753,8 @@ declare const FdtoBillCalculateOption: z.ZodObject<{
73148
72753
  creditBalance: {
73149
72754
  normal: number;
73150
72755
  free: {
73151
- _id: string;
73152
72756
  amount: number;
72757
+ _id: string;
73153
72758
  expiredAt: string;
73154
72759
  }[];
73155
72760
  };
@@ -73262,8 +72867,8 @@ declare const FdtoBillCalculateOption: z.ZodObject<{
73262
72867
  creditBalance: {
73263
72868
  normal: number;
73264
72869
  free: {
73265
- _id: string;
73266
72870
  amount: number;
72871
+ _id: string;
73267
72872
  expiredAt: string;
73268
72873
  }[];
73269
72874
  };
@@ -74397,8 +74002,8 @@ declare const FdtoBillCalculateOption: z.ZodObject<{
74397
74002
  creditBalance: {
74398
74003
  normal: number;
74399
74004
  free: {
74400
- _id: string;
74401
74005
  amount: number;
74006
+ _id: string;
74402
74007
  expiredAt: string;
74403
74008
  }[];
74404
74009
  };
@@ -74654,8 +74259,8 @@ declare const FdtoBillCalculateOption: z.ZodObject<{
74654
74259
  creditBalance: {
74655
74260
  normal: number;
74656
74261
  free: {
74657
- _id: string;
74658
74262
  amount: number;
74263
+ _id: string;
74659
74264
  expiredAt: string;
74660
74265
  }[];
74661
74266
  };
@@ -74927,10 +74532,16 @@ declare const FdtoCustomerEffectToOrderEffect: z.ZodObject<{
74927
74532
  }, {
74928
74533
  type: z.ZodLiteral<"SIMPLE">;
74929
74534
  withAddons: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
74535
+ targetScope: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ITEM", "SUB_ITEM"]>>>;
74536
+ calculationBase: z.ZodNullable<z.ZodOptional<z.ZodEnum<["SUB_ITEM", "BASE_ITEM"]>>>;
74930
74537
  }>, "strip", z.ZodTypeAny, {
74538
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
74539
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
74931
74540
  withAddons?: string[] | null | undefined;
74932
74541
  type: "SIMPLE";
74933
74542
  }, {
74543
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
74544
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
74934
74545
  withAddons?: string[] | null | undefined;
74935
74546
  type: "SIMPLE";
74936
74547
  }> | z.ZodObject<z.extendShape<{
@@ -75040,6 +74651,8 @@ declare const FdtoCustomerEffectToOrderEffect: z.ZodObject<{
75040
74651
  maxQuantity?: number | null | undefined;
75041
74652
  target: "ITEM";
75042
74653
  strategy: {
74654
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
74655
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
75043
74656
  withAddons?: string[] | null | undefined;
75044
74657
  type: "SIMPLE";
75045
74658
  } | {
@@ -75081,6 +74694,8 @@ declare const FdtoCustomerEffectToOrderEffect: z.ZodObject<{
75081
74694
  maxQuantity?: number | null | undefined;
75082
74695
  target: "ITEM";
75083
74696
  strategy: {
74697
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
74698
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
75084
74699
  withAddons?: string[] | null | undefined;
75085
74700
  type: "SIMPLE";
75086
74701
  } | {
@@ -75184,6 +74799,8 @@ declare const FdtoCustomerEffectToOrderEffect: z.ZodObject<{
75184
74799
  maxQuantity?: number | null | undefined;
75185
74800
  target: "ITEM";
75186
74801
  strategy: {
74802
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
74803
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
75187
74804
  withAddons?: string[] | null | undefined;
75188
74805
  type: "SIMPLE";
75189
74806
  } | {
@@ -75263,6 +74880,8 @@ declare const FdtoCustomerEffectToOrderEffect: z.ZodObject<{
75263
74880
  maxQuantity?: number | null | undefined;
75264
74881
  target: "ITEM";
75265
74882
  strategy: {
74883
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
74884
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
75266
74885
  withAddons?: string[] | null | undefined;
75267
74886
  type: "SIMPLE";
75268
74887
  } | {
@@ -75353,6 +74972,8 @@ declare const FdtoCustomerEffectToOrderEffect: z.ZodObject<{
75353
74972
  maxQuantity?: number | null | undefined;
75354
74973
  target: "ITEM";
75355
74974
  strategy: {
74975
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
74976
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
75356
74977
  withAddons?: string[] | null | undefined;
75357
74978
  type: "SIMPLE";
75358
74979
  } | {
@@ -75440,6 +75061,8 @@ declare const FdtoCustomerEffectToOrderEffect: z.ZodObject<{
75440
75061
  maxQuantity?: number | null | undefined;
75441
75062
  target: "ITEM";
75442
75063
  strategy: {
75064
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
75065
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
75443
75066
  withAddons?: string[] | null | undefined;
75444
75067
  type: "SIMPLE";
75445
75068
  } | {
@@ -75546,6 +75169,8 @@ declare const FdtoCustomerEffectToOrderEffect: z.ZodObject<{
75546
75169
  maxQuantity?: number | null | undefined;
75547
75170
  target: "ITEM";
75548
75171
  strategy: {
75172
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
75173
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
75549
75174
  withAddons?: string[] | null | undefined;
75550
75175
  type: "SIMPLE";
75551
75176
  } | {
@@ -75641,6 +75266,8 @@ declare const FdtoCustomerEffectToOrderEffect: z.ZodObject<{
75641
75266
  maxQuantity?: number | null | undefined;
75642
75267
  target: "ITEM";
75643
75268
  strategy: {
75269
+ targetScope?: "ITEM" | "SUB_ITEM" | null | undefined;
75270
+ calculationBase?: "SUB_ITEM" | "BASE_ITEM" | null | undefined;
75644
75271
  withAddons?: string[] | null | undefined;
75645
75272
  type: "SIMPLE";
75646
75273
  } | {
@@ -75768,7 +75395,6 @@ type FdtoPopulateOrderRequestSchema = {
75768
75395
  user?: FdoUser | undefined;
75769
75396
  credits: FdoCreditTransaction[];
75770
75397
  bill: FdoBill;
75771
- booking?: BookingReservationDto | undefined;
75772
75398
  };
75773
75399
  export type FdtoPopulateOrderRequest = FdtoPopulateOrderRequestSchema & {
75774
75400
  transactions: PaymentTransaction[];