@feedmepos/mf-order-setting 0.0.77 → 0.0.78
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.
- package/dist/{KioskDevicesView-Dgs5_UoK.js → KioskDevicesView-Db2DyKc2.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-B4DXPgAV.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-Do-EH0Hn.js} +3 -3
- package/dist/{KioskSettingView-BUcPNVTc.js → KioskSettingView-D1JaAjmx.js} +3 -3
- package/dist/KioskView-B0jhv4Zp.js +464 -0
- package/dist/OrderSettingsView-BPNN4jOB.js +35883 -0
- package/dist/{app-BIvt4NBq.js → app-DpdLDlVr.js} +1993 -1954
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-B58_jBg3.js → dayjs.min-Cs3D4xiZ.js} +1 -1
- package/dist/frontend/mf-order/src/app.d.ts +16 -0
- package/dist/frontend/mf-order/src/helpers/map.d.ts +12 -1
- package/dist/frontend/mf-order/src/main.d.ts +16 -0
- package/dist/frontend/mf-order/src/stores/menu/menu.d.ts +28 -0
- package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +9 -0
- package/dist/frontend/mf-order/src/views/order-settings/delivery/delivery.d.ts +5 -0
- package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue.d.ts +6 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-CLS-FSH-.js → index-BZL2Hpkn.js} +2 -2
- package/dist/{index-CahsmFL1.js → index-DXkcRRAu.js} +1 -1
- package/dist/lineman-settings.dto-CtRqCjzQ.js +74920 -0
- package/dist/package/entity/booking/booking.do.d.ts +125 -0
- package/dist/package/entity/delivery/delivery.dto.d.ts +25 -0
- package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +87 -0
- package/dist/package/entity/member/member.dto.d.ts +38 -0
- package/dist/package/entity/order/order.do.d.ts +90 -0
- package/dist/package/entity/order/order.dto.d.ts +198 -0
- package/dist/package/entity/order-platform/external/menu/external-master-menu.do.d.ts +316 -48
- package/dist/package/entity/order-platform/external/menu/external-menu.do.d.ts +1131 -209
- package/dist/package/entity/order-platform/external/menu/external-menu.dto.d.ts +3 -3
- package/dist/package/entity/order-platform/external/menu/external-menu.enum.d.ts +10 -1
- package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +80 -36
- package/dist/package/entity/order-platform/external/order/external-order.dto.d.ts +190 -83
- package/dist/package/entity/order-platform/external/order/external-order.enum.d.ts +2 -2
- package/dist/package/entity/order-platform/external/setting/external-setting.do.d.ts +18 -0
- package/dist/package/entity/order-platform/external/setting/external-setting.dto.d.ts +13 -0
- package/dist/package/entity/order-platform/foodpanda/foodpanda-order.dto.d.ts +25 -0
- package/dist/package/entity/order-platform/grabfood/grabfood-order.do.d.ts +25 -0
- package/dist/package/entity/order-platform/order-platform.dto.d.ts +2 -0
- package/dist/package/entity/order-platform/shopeefood/shopeefood-order.do.d.ts +25 -0
- package/dist/style.css +1 -1
- package/package.json +7 -9
- package/src/helpers/map.ts +24 -0
- package/src/locales/en-US.json +4 -0
- package/src/locales/ja-JP.json +4 -0
- package/src/locales/th-TH.json +4 -0
- package/src/locales/zh-CN.json +4 -0
- package/src/views/kiosk/KioskView.vue +51 -7
- package/src/views/order-settings/OrderSettingsView.vue +2 -2
- package/src/views/order-settings/delivery/DeliverySetting.vue +18 -1
- package/src/views/order-settings/delivery/delivery.ts +37 -0
- package/src/views/order-settings/delivery/inhouse/DeliveryOrder.vue +24 -8
- package/src/views/order-settings/delivery/inhouse/ZoneDialog.vue +14 -2
- package/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue +136 -27
- package/dist/KioskView-DelVMMj4.js +0 -430
- package/dist/OrderSettingsView-DE2U7vqW.js +0 -60930
- package/dist/lineman-settings.dto-DBDThIb0.js +0 -62793
|
@@ -109,7 +109,7 @@ export declare const FdtoExternalOrderCreate: z.ZodObject<Omit<{
|
|
|
109
109
|
}>>>;
|
|
110
110
|
pickup: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
111
111
|
pickupAt: z.ZodString;
|
|
112
|
-
pickupPoint: z.ZodObject<{
|
|
112
|
+
pickupPoint: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
113
113
|
name: z.ZodString;
|
|
114
114
|
address: z.ZodString;
|
|
115
115
|
coordinates: z.ZodArray<z.ZodNumber, "many">;
|
|
@@ -121,26 +121,26 @@ export declare const FdtoExternalOrderCreate: z.ZodObject<Omit<{
|
|
|
121
121
|
name: string;
|
|
122
122
|
address: string;
|
|
123
123
|
coordinates: number[];
|
|
124
|
-
}
|
|
124
|
+
}>>>;
|
|
125
125
|
contactNumber: z.ZodString;
|
|
126
126
|
customerName: z.ZodString;
|
|
127
127
|
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
|
|
129
|
-
pickupAt: string;
|
|
130
|
-
pickupPoint: {
|
|
128
|
+
pickupPoint?: {
|
|
131
129
|
name: string;
|
|
132
130
|
address: string;
|
|
133
131
|
coordinates: number[];
|
|
134
|
-
};
|
|
135
|
-
customerName: string;
|
|
136
|
-
}, {
|
|
132
|
+
} | null | undefined;
|
|
137
133
|
contactNumber: string;
|
|
138
134
|
pickupAt: string;
|
|
139
|
-
|
|
135
|
+
customerName: string;
|
|
136
|
+
}, {
|
|
137
|
+
pickupPoint?: {
|
|
140
138
|
name: string;
|
|
141
139
|
address: string;
|
|
142
140
|
coordinates: number[];
|
|
143
|
-
};
|
|
141
|
+
} | null | undefined;
|
|
142
|
+
contactNumber: string;
|
|
143
|
+
pickupAt: string;
|
|
144
144
|
customerName: string;
|
|
145
145
|
}>>>;
|
|
146
146
|
dineIn: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -148,13 +148,31 @@ export declare const FdtoExternalOrderCreate: z.ZodObject<Omit<{
|
|
|
148
148
|
customerName: z.ZodString;
|
|
149
149
|
pax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
150
150
|
tableNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
151
|
+
customer: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
152
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
153
|
+
phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
154
|
+
}, "strip", z.ZodTypeAny, {
|
|
155
|
+
name?: string | null | undefined;
|
|
156
|
+
phone?: string | null | undefined;
|
|
157
|
+
}, {
|
|
158
|
+
name?: string | null | undefined;
|
|
159
|
+
phone?: string | null | undefined;
|
|
160
|
+
}>>>;
|
|
151
161
|
}, "strip", z.ZodTypeAny, {
|
|
152
162
|
pax?: number | null | undefined;
|
|
163
|
+
customer?: {
|
|
164
|
+
name?: string | null | undefined;
|
|
165
|
+
phone?: string | null | undefined;
|
|
166
|
+
} | null | undefined;
|
|
153
167
|
tableNumber?: string | null | undefined;
|
|
154
168
|
contactNumber: string;
|
|
155
169
|
customerName: string;
|
|
156
170
|
}, {
|
|
157
171
|
pax?: number | null | undefined;
|
|
172
|
+
customer?: {
|
|
173
|
+
name?: string | null | undefined;
|
|
174
|
+
phone?: string | null | undefined;
|
|
175
|
+
} | null | undefined;
|
|
158
176
|
tableNumber?: string | null | undefined;
|
|
159
177
|
contactNumber: string;
|
|
160
178
|
customerName: string;
|
|
@@ -519,25 +537,25 @@ export declare const FdtoExternalOrderCreate: z.ZodObject<Omit<{
|
|
|
519
537
|
}>;
|
|
520
538
|
eInvoiceUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
521
539
|
orderStatus: z.ZodObject<{
|
|
522
|
-
status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED"]>;
|
|
540
|
+
status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "FAILED"]>;
|
|
523
541
|
reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
524
542
|
}, "strip", z.ZodTypeAny, {
|
|
525
543
|
reason?: string | null | undefined;
|
|
526
|
-
status: "ACCEPTED" | "PENDING" | "REJECTED";
|
|
544
|
+
status: "FAILED" | "ACCEPTED" | "PENDING" | "REJECTED";
|
|
527
545
|
}, {
|
|
528
546
|
reason?: string | null | undefined;
|
|
529
|
-
status: "ACCEPTED" | "PENDING" | "REJECTED";
|
|
547
|
+
status: "FAILED" | "ACCEPTED" | "PENDING" | "REJECTED";
|
|
530
548
|
}>;
|
|
531
549
|
billId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
532
550
|
}, "_id" | "orderStatus" | "billId" | "eInvoiceUrl">, "strip", z.ZodTypeAny, {
|
|
533
551
|
pickup?: {
|
|
534
|
-
|
|
535
|
-
pickupAt: string;
|
|
536
|
-
pickupPoint: {
|
|
552
|
+
pickupPoint?: {
|
|
537
553
|
name: string;
|
|
538
554
|
address: string;
|
|
539
555
|
coordinates: number[];
|
|
540
|
-
};
|
|
556
|
+
} | null | undefined;
|
|
557
|
+
contactNumber: string;
|
|
558
|
+
pickupAt: string;
|
|
541
559
|
customerName: string;
|
|
542
560
|
} | null | undefined;
|
|
543
561
|
remark?: string | null | undefined;
|
|
@@ -565,6 +583,10 @@ export declare const FdtoExternalOrderCreate: z.ZodObject<Omit<{
|
|
|
565
583
|
} | null | undefined;
|
|
566
584
|
dineIn?: {
|
|
567
585
|
pax?: number | null | undefined;
|
|
586
|
+
customer?: {
|
|
587
|
+
name?: string | null | undefined;
|
|
588
|
+
phone?: string | null | undefined;
|
|
589
|
+
} | null | undefined;
|
|
568
590
|
tableNumber?: string | null | undefined;
|
|
569
591
|
contactNumber: string;
|
|
570
592
|
customerName: string;
|
|
@@ -662,13 +684,13 @@ export declare const FdtoExternalOrderCreate: z.ZodObject<Omit<{
|
|
|
662
684
|
};
|
|
663
685
|
}, {
|
|
664
686
|
pickup?: {
|
|
665
|
-
|
|
666
|
-
pickupAt: string;
|
|
667
|
-
pickupPoint: {
|
|
687
|
+
pickupPoint?: {
|
|
668
688
|
name: string;
|
|
669
689
|
address: string;
|
|
670
690
|
coordinates: number[];
|
|
671
|
-
};
|
|
691
|
+
} | null | undefined;
|
|
692
|
+
contactNumber: string;
|
|
693
|
+
pickupAt: string;
|
|
672
694
|
customerName: string;
|
|
673
695
|
} | null | undefined;
|
|
674
696
|
remark?: string | null | undefined;
|
|
@@ -696,6 +718,10 @@ export declare const FdtoExternalOrderCreate: z.ZodObject<Omit<{
|
|
|
696
718
|
} | null | undefined;
|
|
697
719
|
dineIn?: {
|
|
698
720
|
pax?: number | null | undefined;
|
|
721
|
+
customer?: {
|
|
722
|
+
name?: string | null | undefined;
|
|
723
|
+
phone?: string | null | undefined;
|
|
724
|
+
} | null | undefined;
|
|
699
725
|
tableNumber?: string | null | undefined;
|
|
700
726
|
contactNumber: string;
|
|
701
727
|
customerName: string;
|
|
@@ -902,7 +928,7 @@ export declare const FdtoExternalOrderUpdate: z.ZodObject<{
|
|
|
902
928
|
}>>;
|
|
903
929
|
pickup: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
904
930
|
pickupAt: z.ZodString;
|
|
905
|
-
pickupPoint: z.ZodObject<{
|
|
931
|
+
pickupPoint: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
906
932
|
name: z.ZodString;
|
|
907
933
|
address: z.ZodString;
|
|
908
934
|
coordinates: z.ZodArray<z.ZodNumber, "many">;
|
|
@@ -914,26 +940,26 @@ export declare const FdtoExternalOrderUpdate: z.ZodObject<{
|
|
|
914
940
|
name: string;
|
|
915
941
|
address: string;
|
|
916
942
|
coordinates: number[];
|
|
917
|
-
}
|
|
943
|
+
}>>>;
|
|
918
944
|
contactNumber: z.ZodString;
|
|
919
945
|
customerName: z.ZodString;
|
|
920
946
|
}, "strip", z.ZodTypeAny, {
|
|
921
|
-
|
|
922
|
-
pickupAt: string;
|
|
923
|
-
pickupPoint: {
|
|
947
|
+
pickupPoint?: {
|
|
924
948
|
name: string;
|
|
925
949
|
address: string;
|
|
926
950
|
coordinates: number[];
|
|
927
|
-
};
|
|
928
|
-
customerName: string;
|
|
929
|
-
}, {
|
|
951
|
+
} | null | undefined;
|
|
930
952
|
contactNumber: string;
|
|
931
953
|
pickupAt: string;
|
|
932
|
-
|
|
954
|
+
customerName: string;
|
|
955
|
+
}, {
|
|
956
|
+
pickupPoint?: {
|
|
933
957
|
name: string;
|
|
934
958
|
address: string;
|
|
935
959
|
coordinates: number[];
|
|
936
|
-
};
|
|
960
|
+
} | null | undefined;
|
|
961
|
+
contactNumber: string;
|
|
962
|
+
pickupAt: string;
|
|
937
963
|
customerName: string;
|
|
938
964
|
}>>>>;
|
|
939
965
|
orderId: z.ZodOptional<z.ZodString>;
|
|
@@ -1214,13 +1240,31 @@ export declare const FdtoExternalOrderUpdate: z.ZodObject<{
|
|
|
1214
1240
|
customerName: z.ZodString;
|
|
1215
1241
|
pax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1216
1242
|
tableNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1243
|
+
customer: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1244
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1245
|
+
phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1246
|
+
}, "strip", z.ZodTypeAny, {
|
|
1247
|
+
name?: string | null | undefined;
|
|
1248
|
+
phone?: string | null | undefined;
|
|
1249
|
+
}, {
|
|
1250
|
+
name?: string | null | undefined;
|
|
1251
|
+
phone?: string | null | undefined;
|
|
1252
|
+
}>>>;
|
|
1217
1253
|
}, "strip", z.ZodTypeAny, {
|
|
1218
1254
|
pax?: number | null | undefined;
|
|
1255
|
+
customer?: {
|
|
1256
|
+
name?: string | null | undefined;
|
|
1257
|
+
phone?: string | null | undefined;
|
|
1258
|
+
} | null | undefined;
|
|
1219
1259
|
tableNumber?: string | null | undefined;
|
|
1220
1260
|
contactNumber: string;
|
|
1221
1261
|
customerName: string;
|
|
1222
1262
|
}, {
|
|
1223
1263
|
pax?: number | null | undefined;
|
|
1264
|
+
customer?: {
|
|
1265
|
+
name?: string | null | undefined;
|
|
1266
|
+
phone?: string | null | undefined;
|
|
1267
|
+
} | null | undefined;
|
|
1224
1268
|
tableNumber?: string | null | undefined;
|
|
1225
1269
|
contactNumber: string;
|
|
1226
1270
|
customerName: string;
|
|
@@ -1344,13 +1388,13 @@ export declare const FdtoExternalOrderUpdate: z.ZodObject<{
|
|
|
1344
1388
|
};
|
|
1345
1389
|
} | undefined;
|
|
1346
1390
|
pickup?: {
|
|
1347
|
-
|
|
1348
|
-
pickupAt: string;
|
|
1349
|
-
pickupPoint: {
|
|
1391
|
+
pickupPoint?: {
|
|
1350
1392
|
name: string;
|
|
1351
1393
|
address: string;
|
|
1352
1394
|
coordinates: number[];
|
|
1353
|
-
};
|
|
1395
|
+
} | null | undefined;
|
|
1396
|
+
contactNumber: string;
|
|
1397
|
+
pickupAt: string;
|
|
1354
1398
|
customerName: string;
|
|
1355
1399
|
} | null | undefined;
|
|
1356
1400
|
orderId?: string | undefined;
|
|
@@ -1415,6 +1459,10 @@ export declare const FdtoExternalOrderUpdate: z.ZodObject<{
|
|
|
1415
1459
|
} | null | undefined;
|
|
1416
1460
|
dineIn?: {
|
|
1417
1461
|
pax?: number | null | undefined;
|
|
1462
|
+
customer?: {
|
|
1463
|
+
name?: string | null | undefined;
|
|
1464
|
+
phone?: string | null | undefined;
|
|
1465
|
+
} | null | undefined;
|
|
1418
1466
|
tableNumber?: string | null | undefined;
|
|
1419
1467
|
contactNumber: string;
|
|
1420
1468
|
customerName: string;
|
|
@@ -1475,13 +1523,13 @@ export declare const FdtoExternalOrderUpdate: z.ZodObject<{
|
|
|
1475
1523
|
};
|
|
1476
1524
|
} | undefined;
|
|
1477
1525
|
pickup?: {
|
|
1478
|
-
|
|
1479
|
-
pickupAt: string;
|
|
1480
|
-
pickupPoint: {
|
|
1526
|
+
pickupPoint?: {
|
|
1481
1527
|
name: string;
|
|
1482
1528
|
address: string;
|
|
1483
1529
|
coordinates: number[];
|
|
1484
|
-
};
|
|
1530
|
+
} | null | undefined;
|
|
1531
|
+
contactNumber: string;
|
|
1532
|
+
pickupAt: string;
|
|
1485
1533
|
customerName: string;
|
|
1486
1534
|
} | null | undefined;
|
|
1487
1535
|
orderId?: string | undefined;
|
|
@@ -1546,6 +1594,10 @@ export declare const FdtoExternalOrderUpdate: z.ZodObject<{
|
|
|
1546
1594
|
} | null | undefined;
|
|
1547
1595
|
dineIn?: {
|
|
1548
1596
|
pax?: number | null | undefined;
|
|
1597
|
+
customer?: {
|
|
1598
|
+
name?: string | null | undefined;
|
|
1599
|
+
phone?: string | null | undefined;
|
|
1600
|
+
} | null | undefined;
|
|
1549
1601
|
tableNumber?: string | null | undefined;
|
|
1550
1602
|
contactNumber: string;
|
|
1551
1603
|
customerName: string;
|
|
@@ -1609,13 +1661,13 @@ export declare const FdtoExternalOrderUpdate: z.ZodObject<{
|
|
|
1609
1661
|
};
|
|
1610
1662
|
} | undefined;
|
|
1611
1663
|
pickup?: {
|
|
1612
|
-
|
|
1613
|
-
pickupAt: string;
|
|
1614
|
-
pickupPoint: {
|
|
1664
|
+
pickupPoint?: {
|
|
1615
1665
|
name: string;
|
|
1616
1666
|
address: string;
|
|
1617
1667
|
coordinates: number[];
|
|
1618
|
-
};
|
|
1668
|
+
} | null | undefined;
|
|
1669
|
+
contactNumber: string;
|
|
1670
|
+
pickupAt: string;
|
|
1619
1671
|
customerName: string;
|
|
1620
1672
|
} | null | undefined;
|
|
1621
1673
|
orderId?: string | undefined;
|
|
@@ -1680,6 +1732,10 @@ export declare const FdtoExternalOrderUpdate: z.ZodObject<{
|
|
|
1680
1732
|
} | null | undefined;
|
|
1681
1733
|
dineIn?: {
|
|
1682
1734
|
pax?: number | null | undefined;
|
|
1735
|
+
customer?: {
|
|
1736
|
+
name?: string | null | undefined;
|
|
1737
|
+
phone?: string | null | undefined;
|
|
1738
|
+
} | null | undefined;
|
|
1683
1739
|
tableNumber?: string | null | undefined;
|
|
1684
1740
|
contactNumber: string;
|
|
1685
1741
|
customerName: string;
|
|
@@ -1743,13 +1799,13 @@ export declare const FdtoExternalOrderUpdate: z.ZodObject<{
|
|
|
1743
1799
|
};
|
|
1744
1800
|
} | undefined;
|
|
1745
1801
|
pickup?: {
|
|
1746
|
-
|
|
1747
|
-
pickupAt: string;
|
|
1748
|
-
pickupPoint: {
|
|
1802
|
+
pickupPoint?: {
|
|
1749
1803
|
name: string;
|
|
1750
1804
|
address: string;
|
|
1751
1805
|
coordinates: number[];
|
|
1752
|
-
};
|
|
1806
|
+
} | null | undefined;
|
|
1807
|
+
contactNumber: string;
|
|
1808
|
+
pickupAt: string;
|
|
1753
1809
|
customerName: string;
|
|
1754
1810
|
} | null | undefined;
|
|
1755
1811
|
orderId?: string | undefined;
|
|
@@ -1814,6 +1870,10 @@ export declare const FdtoExternalOrderUpdate: z.ZodObject<{
|
|
|
1814
1870
|
} | null | undefined;
|
|
1815
1871
|
dineIn?: {
|
|
1816
1872
|
pax?: number | null | undefined;
|
|
1873
|
+
customer?: {
|
|
1874
|
+
name?: string | null | undefined;
|
|
1875
|
+
phone?: string | null | undefined;
|
|
1876
|
+
} | null | undefined;
|
|
1817
1877
|
tableNumber?: string | null | undefined;
|
|
1818
1878
|
contactNumber: string;
|
|
1819
1879
|
customerName: string;
|
|
@@ -1898,18 +1958,31 @@ export declare const FdtoExternalOrderRefund: z.ZodObject<{
|
|
|
1898
1958
|
precision: number;
|
|
1899
1959
|
};
|
|
1900
1960
|
}>;
|
|
1961
|
+
/**
|
|
1962
|
+
* Outbound `PUT /api/feedme/order/state` payload — the shape ZUS and HakShan use. Unused in code
|
|
1963
|
+
* today: each partner SDK builds its body inline.
|
|
1964
|
+
*
|
|
1965
|
+
* `billId` is included because all three partners send it; an earlier version omitted it.
|
|
1966
|
+
*
|
|
1967
|
+
* NOTE the per-partner deviation: US Pizza (IPS) validates on **`orderID`** with a capital D and
|
|
1968
|
+
* 400s on `orderId`. That is theirs alone, so it is NOT reflected here — do not rename this field
|
|
1969
|
+
* to match them, or the generic shape stops describing the two partners that actually use it.
|
|
1970
|
+
*/
|
|
1901
1971
|
export declare const FdtoUpdateOrderStatus: z.ZodObject<{
|
|
1902
1972
|
restaurantId: z.ZodString;
|
|
1903
1973
|
orderId: z.ZodString;
|
|
1904
|
-
state: z.ZodEnum<["READY", "COLLECTED"]>;
|
|
1974
|
+
state: z.ZodEnum<["READY", "COLLECTED", "REJECTED", "CANCELLED", "COMPLETED", "FAILED"]>;
|
|
1975
|
+
billId: z.ZodString;
|
|
1905
1976
|
}, "strip", z.ZodTypeAny, {
|
|
1906
1977
|
orderId: string;
|
|
1907
1978
|
restaurantId: string;
|
|
1908
|
-
state: "READY" | "COLLECTED";
|
|
1979
|
+
state: "FAILED" | "COMPLETED" | "CANCELLED" | "READY" | "REJECTED" | "COLLECTED";
|
|
1980
|
+
billId: string;
|
|
1909
1981
|
}, {
|
|
1910
1982
|
orderId: string;
|
|
1911
1983
|
restaurantId: string;
|
|
1912
|
-
state: "READY" | "COLLECTED";
|
|
1984
|
+
state: "FAILED" | "COMPLETED" | "CANCELLED" | "READY" | "REJECTED" | "COLLECTED";
|
|
1985
|
+
billId: string;
|
|
1913
1986
|
}>;
|
|
1914
1987
|
export declare const FdtoExternalOrderGetRes: z.ZodObject<{
|
|
1915
1988
|
orders: z.ZodArray<z.ZodObject<{
|
|
@@ -2022,7 +2095,7 @@ export declare const FdtoExternalOrderGetRes: z.ZodObject<{
|
|
|
2022
2095
|
}>>>;
|
|
2023
2096
|
pickup: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
2024
2097
|
pickupAt: z.ZodString;
|
|
2025
|
-
pickupPoint: z.ZodObject<{
|
|
2098
|
+
pickupPoint: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
2026
2099
|
name: z.ZodString;
|
|
2027
2100
|
address: z.ZodString;
|
|
2028
2101
|
coordinates: z.ZodArray<z.ZodNumber, "many">;
|
|
@@ -2034,26 +2107,26 @@ export declare const FdtoExternalOrderGetRes: z.ZodObject<{
|
|
|
2034
2107
|
name: string;
|
|
2035
2108
|
address: string;
|
|
2036
2109
|
coordinates: number[];
|
|
2037
|
-
}
|
|
2110
|
+
}>>>;
|
|
2038
2111
|
contactNumber: z.ZodString;
|
|
2039
2112
|
customerName: z.ZodString;
|
|
2040
2113
|
}, "strip", z.ZodTypeAny, {
|
|
2041
|
-
|
|
2042
|
-
pickupAt: string;
|
|
2043
|
-
pickupPoint: {
|
|
2114
|
+
pickupPoint?: {
|
|
2044
2115
|
name: string;
|
|
2045
2116
|
address: string;
|
|
2046
2117
|
coordinates: number[];
|
|
2047
|
-
};
|
|
2048
|
-
customerName: string;
|
|
2049
|
-
}, {
|
|
2118
|
+
} | null | undefined;
|
|
2050
2119
|
contactNumber: string;
|
|
2051
2120
|
pickupAt: string;
|
|
2052
|
-
|
|
2121
|
+
customerName: string;
|
|
2122
|
+
}, {
|
|
2123
|
+
pickupPoint?: {
|
|
2053
2124
|
name: string;
|
|
2054
2125
|
address: string;
|
|
2055
2126
|
coordinates: number[];
|
|
2056
|
-
};
|
|
2127
|
+
} | null | undefined;
|
|
2128
|
+
contactNumber: string;
|
|
2129
|
+
pickupAt: string;
|
|
2057
2130
|
customerName: string;
|
|
2058
2131
|
}>>>;
|
|
2059
2132
|
dineIn: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -2061,13 +2134,31 @@ export declare const FdtoExternalOrderGetRes: z.ZodObject<{
|
|
|
2061
2134
|
customerName: z.ZodString;
|
|
2062
2135
|
pax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
2063
2136
|
tableNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2137
|
+
customer: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
2138
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2139
|
+
phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2140
|
+
}, "strip", z.ZodTypeAny, {
|
|
2141
|
+
name?: string | null | undefined;
|
|
2142
|
+
phone?: string | null | undefined;
|
|
2143
|
+
}, {
|
|
2144
|
+
name?: string | null | undefined;
|
|
2145
|
+
phone?: string | null | undefined;
|
|
2146
|
+
}>>>;
|
|
2064
2147
|
}, "strip", z.ZodTypeAny, {
|
|
2065
2148
|
pax?: number | null | undefined;
|
|
2149
|
+
customer?: {
|
|
2150
|
+
name?: string | null | undefined;
|
|
2151
|
+
phone?: string | null | undefined;
|
|
2152
|
+
} | null | undefined;
|
|
2066
2153
|
tableNumber?: string | null | undefined;
|
|
2067
2154
|
contactNumber: string;
|
|
2068
2155
|
customerName: string;
|
|
2069
2156
|
}, {
|
|
2070
2157
|
pax?: number | null | undefined;
|
|
2158
|
+
customer?: {
|
|
2159
|
+
name?: string | null | undefined;
|
|
2160
|
+
phone?: string | null | undefined;
|
|
2161
|
+
} | null | undefined;
|
|
2071
2162
|
tableNumber?: string | null | undefined;
|
|
2072
2163
|
contactNumber: string;
|
|
2073
2164
|
customerName: string;
|
|
@@ -2432,25 +2523,25 @@ export declare const FdtoExternalOrderGetRes: z.ZodObject<{
|
|
|
2432
2523
|
}>;
|
|
2433
2524
|
eInvoiceUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2434
2525
|
orderStatus: z.ZodObject<{
|
|
2435
|
-
status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED"]>;
|
|
2526
|
+
status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "FAILED"]>;
|
|
2436
2527
|
reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2437
2528
|
}, "strip", z.ZodTypeAny, {
|
|
2438
2529
|
reason?: string | null | undefined;
|
|
2439
|
-
status: "ACCEPTED" | "PENDING" | "REJECTED";
|
|
2530
|
+
status: "FAILED" | "ACCEPTED" | "PENDING" | "REJECTED";
|
|
2440
2531
|
}, {
|
|
2441
2532
|
reason?: string | null | undefined;
|
|
2442
|
-
status: "ACCEPTED" | "PENDING" | "REJECTED";
|
|
2533
|
+
status: "FAILED" | "ACCEPTED" | "PENDING" | "REJECTED";
|
|
2443
2534
|
}>;
|
|
2444
2535
|
billId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2445
2536
|
}, "strip", z.ZodTypeAny, {
|
|
2446
2537
|
pickup?: {
|
|
2447
|
-
|
|
2448
|
-
pickupAt: string;
|
|
2449
|
-
pickupPoint: {
|
|
2538
|
+
pickupPoint?: {
|
|
2450
2539
|
name: string;
|
|
2451
2540
|
address: string;
|
|
2452
2541
|
coordinates: number[];
|
|
2453
|
-
};
|
|
2542
|
+
} | null | undefined;
|
|
2543
|
+
contactNumber: string;
|
|
2544
|
+
pickupAt: string;
|
|
2454
2545
|
customerName: string;
|
|
2455
2546
|
} | null | undefined;
|
|
2456
2547
|
remark?: string | null | undefined;
|
|
@@ -2478,6 +2569,10 @@ export declare const FdtoExternalOrderGetRes: z.ZodObject<{
|
|
|
2478
2569
|
} | null | undefined;
|
|
2479
2570
|
dineIn?: {
|
|
2480
2571
|
pax?: number | null | undefined;
|
|
2572
|
+
customer?: {
|
|
2573
|
+
name?: string | null | undefined;
|
|
2574
|
+
phone?: string | null | undefined;
|
|
2575
|
+
} | null | undefined;
|
|
2481
2576
|
tableNumber?: string | null | undefined;
|
|
2482
2577
|
contactNumber: string;
|
|
2483
2578
|
customerName: string;
|
|
@@ -2516,7 +2611,7 @@ export declare const FdtoExternalOrderGetRes: z.ZodObject<{
|
|
|
2516
2611
|
orderId: string;
|
|
2517
2612
|
orderStatus: {
|
|
2518
2613
|
reason?: string | null | undefined;
|
|
2519
|
-
status: "ACCEPTED" | "PENDING" | "REJECTED";
|
|
2614
|
+
status: "FAILED" | "ACCEPTED" | "PENDING" | "REJECTED";
|
|
2520
2615
|
};
|
|
2521
2616
|
restaurantId: string;
|
|
2522
2617
|
items: {
|
|
@@ -2582,13 +2677,13 @@ export declare const FdtoExternalOrderGetRes: z.ZodObject<{
|
|
|
2582
2677
|
};
|
|
2583
2678
|
}, {
|
|
2584
2679
|
pickup?: {
|
|
2585
|
-
|
|
2586
|
-
pickupAt: string;
|
|
2587
|
-
pickupPoint: {
|
|
2680
|
+
pickupPoint?: {
|
|
2588
2681
|
name: string;
|
|
2589
2682
|
address: string;
|
|
2590
2683
|
coordinates: number[];
|
|
2591
|
-
};
|
|
2684
|
+
} | null | undefined;
|
|
2685
|
+
contactNumber: string;
|
|
2686
|
+
pickupAt: string;
|
|
2592
2687
|
customerName: string;
|
|
2593
2688
|
} | null | undefined;
|
|
2594
2689
|
remark?: string | null | undefined;
|
|
@@ -2616,6 +2711,10 @@ export declare const FdtoExternalOrderGetRes: z.ZodObject<{
|
|
|
2616
2711
|
} | null | undefined;
|
|
2617
2712
|
dineIn?: {
|
|
2618
2713
|
pax?: number | null | undefined;
|
|
2714
|
+
customer?: {
|
|
2715
|
+
name?: string | null | undefined;
|
|
2716
|
+
phone?: string | null | undefined;
|
|
2717
|
+
} | null | undefined;
|
|
2619
2718
|
tableNumber?: string | null | undefined;
|
|
2620
2719
|
contactNumber: string;
|
|
2621
2720
|
customerName: string;
|
|
@@ -2654,7 +2753,7 @@ export declare const FdtoExternalOrderGetRes: z.ZodObject<{
|
|
|
2654
2753
|
orderId: string;
|
|
2655
2754
|
orderStatus: {
|
|
2656
2755
|
reason?: string | null | undefined;
|
|
2657
|
-
status: "ACCEPTED" | "PENDING" | "REJECTED";
|
|
2756
|
+
status: "FAILED" | "ACCEPTED" | "PENDING" | "REJECTED";
|
|
2658
2757
|
};
|
|
2659
2758
|
restaurantId: string;
|
|
2660
2759
|
items: {
|
|
@@ -2723,13 +2822,13 @@ export declare const FdtoExternalOrderGetRes: z.ZodObject<{
|
|
|
2723
2822
|
}, "strip", z.ZodTypeAny, {
|
|
2724
2823
|
orders: {
|
|
2725
2824
|
pickup?: {
|
|
2726
|
-
|
|
2727
|
-
pickupAt: string;
|
|
2728
|
-
pickupPoint: {
|
|
2825
|
+
pickupPoint?: {
|
|
2729
2826
|
name: string;
|
|
2730
2827
|
address: string;
|
|
2731
2828
|
coordinates: number[];
|
|
2732
|
-
};
|
|
2829
|
+
} | null | undefined;
|
|
2830
|
+
contactNumber: string;
|
|
2831
|
+
pickupAt: string;
|
|
2733
2832
|
customerName: string;
|
|
2734
2833
|
} | null | undefined;
|
|
2735
2834
|
remark?: string | null | undefined;
|
|
@@ -2757,6 +2856,10 @@ export declare const FdtoExternalOrderGetRes: z.ZodObject<{
|
|
|
2757
2856
|
} | null | undefined;
|
|
2758
2857
|
dineIn?: {
|
|
2759
2858
|
pax?: number | null | undefined;
|
|
2859
|
+
customer?: {
|
|
2860
|
+
name?: string | null | undefined;
|
|
2861
|
+
phone?: string | null | undefined;
|
|
2862
|
+
} | null | undefined;
|
|
2760
2863
|
tableNumber?: string | null | undefined;
|
|
2761
2864
|
contactNumber: string;
|
|
2762
2865
|
customerName: string;
|
|
@@ -2795,7 +2898,7 @@ export declare const FdtoExternalOrderGetRes: z.ZodObject<{
|
|
|
2795
2898
|
orderId: string;
|
|
2796
2899
|
orderStatus: {
|
|
2797
2900
|
reason?: string | null | undefined;
|
|
2798
|
-
status: "ACCEPTED" | "PENDING" | "REJECTED";
|
|
2901
|
+
status: "FAILED" | "ACCEPTED" | "PENDING" | "REJECTED";
|
|
2799
2902
|
};
|
|
2800
2903
|
restaurantId: string;
|
|
2801
2904
|
items: {
|
|
@@ -2864,13 +2967,13 @@ export declare const FdtoExternalOrderGetRes: z.ZodObject<{
|
|
|
2864
2967
|
}, {
|
|
2865
2968
|
orders: {
|
|
2866
2969
|
pickup?: {
|
|
2867
|
-
|
|
2868
|
-
pickupAt: string;
|
|
2869
|
-
pickupPoint: {
|
|
2970
|
+
pickupPoint?: {
|
|
2870
2971
|
name: string;
|
|
2871
2972
|
address: string;
|
|
2872
2973
|
coordinates: number[];
|
|
2873
|
-
};
|
|
2974
|
+
} | null | undefined;
|
|
2975
|
+
contactNumber: string;
|
|
2976
|
+
pickupAt: string;
|
|
2874
2977
|
customerName: string;
|
|
2875
2978
|
} | null | undefined;
|
|
2876
2979
|
remark?: string | null | undefined;
|
|
@@ -2898,6 +3001,10 @@ export declare const FdtoExternalOrderGetRes: z.ZodObject<{
|
|
|
2898
3001
|
} | null | undefined;
|
|
2899
3002
|
dineIn?: {
|
|
2900
3003
|
pax?: number | null | undefined;
|
|
3004
|
+
customer?: {
|
|
3005
|
+
name?: string | null | undefined;
|
|
3006
|
+
phone?: string | null | undefined;
|
|
3007
|
+
} | null | undefined;
|
|
2901
3008
|
tableNumber?: string | null | undefined;
|
|
2902
3009
|
contactNumber: string;
|
|
2903
3010
|
customerName: string;
|
|
@@ -2936,7 +3043,7 @@ export declare const FdtoExternalOrderGetRes: z.ZodObject<{
|
|
|
2936
3043
|
orderId: string;
|
|
2937
3044
|
orderStatus: {
|
|
2938
3045
|
reason?: string | null | undefined;
|
|
2939
|
-
status: "ACCEPTED" | "PENDING" | "REJECTED";
|
|
3046
|
+
status: "FAILED" | "ACCEPTED" | "PENDING" | "REJECTED";
|
|
2940
3047
|
};
|
|
2941
3048
|
restaurantId: string;
|
|
2942
3049
|
items: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const F_EXTERNAL_PAYMENT_TYPE: z.ZodEnum<["ePayment", "Cash"]>;
|
|
3
3
|
export declare const F_EXTERNAL_ORDER_PLATFORM: z.ZodEnum<["ZUS_COFFEE", "HAKSHAN", "US_PIZZA"]>;
|
|
4
|
-
export declare const F_EXTERNAL_ORDER_STATE: z.ZodEnum<["READY", "COLLECTED"]>;
|
|
5
|
-
export declare const F_EXTERNAL_ORDER_STATUS: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED"]>;
|
|
4
|
+
export declare const F_EXTERNAL_ORDER_STATE: z.ZodEnum<["READY", "COLLECTED", "REJECTED", "CANCELLED", "COMPLETED", "FAILED"]>;
|
|
5
|
+
export declare const F_EXTERNAL_ORDER_STATUS: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "FAILED"]>;
|
|
6
6
|
export type F_EXTERNAL_ORDER_PLATFORM = z.infer<typeof F_EXTERNAL_ORDER_PLATFORM>;
|
|
7
7
|
export type F_EXTERNAL_PAYMENT_TYPE = z.infer<typeof F_EXTERNAL_PAYMENT_TYPE>;
|
|
8
8
|
export type F_EXTERNAL_ORDER_STATUS = z.infer<typeof F_EXTERNAL_ORDER_STATUS>;
|
|
@@ -74,6 +74,11 @@ export declare const FdoExternalSetting: z.ZodObject<{
|
|
|
74
74
|
autoSend: boolean;
|
|
75
75
|
}>;
|
|
76
76
|
platform: z.ZodEnum<["DELIVEROO", "FOOD_PANDA", "GRAB_FOOD", "SHOPEE_FOOD", "FEEDME", "IN_HOUSE", "ZUS", "TNG", "HAKSHAN", "US_PIZZA", "GO_FOOD"]>;
|
|
77
|
+
/**
|
|
78
|
+
* Outer object presence selects an order type for menu publication. A nullish outer block
|
|
79
|
+
* leaves it unchecked. Delivery and pickup may select Main with a nullish catalog id only
|
|
80
|
+
* on platforms that support Main; ZUS and HAKSHAN require a real catalog id.
|
|
81
|
+
*/
|
|
77
82
|
delivery: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
78
83
|
catalogId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
79
84
|
deliveryFeeTax: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -111,6 +116,13 @@ export declare const FdoExternalSetting: z.ZodObject<{
|
|
|
111
116
|
}, {
|
|
112
117
|
catalogId?: string | null | undefined;
|
|
113
118
|
}>>>;
|
|
119
|
+
dineIn: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
120
|
+
catalogId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
121
|
+
}, "strip", z.ZodTypeAny, {
|
|
122
|
+
catalogId?: string | null | undefined;
|
|
123
|
+
}, {
|
|
124
|
+
catalogId?: string | null | undefined;
|
|
125
|
+
}>>>;
|
|
114
126
|
updatedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
115
127
|
lastSynchronize: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
116
128
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -125,6 +137,9 @@ export declare const FdoExternalSetting: z.ZodObject<{
|
|
|
125
137
|
systemCode: string;
|
|
126
138
|
} | null | undefined;
|
|
127
139
|
} | null | undefined;
|
|
140
|
+
dineIn?: {
|
|
141
|
+
catalogId?: string | null | undefined;
|
|
142
|
+
} | null | undefined;
|
|
128
143
|
updatedAt?: string | null | undefined;
|
|
129
144
|
lastSynchronize?: string | null | undefined;
|
|
130
145
|
_id: string;
|
|
@@ -151,6 +166,9 @@ export declare const FdoExternalSetting: z.ZodObject<{
|
|
|
151
166
|
systemCode: string;
|
|
152
167
|
} | null | undefined;
|
|
153
168
|
} | null | undefined;
|
|
169
|
+
dineIn?: {
|
|
170
|
+
catalogId?: string | null | undefined;
|
|
171
|
+
} | null | undefined;
|
|
154
172
|
updatedAt?: string | null | undefined;
|
|
155
173
|
lastSynchronize?: string | null | undefined;
|
|
156
174
|
_id: string;
|