@feedmepos/mf-order-setting 0.0.79 → 0.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DisplaySystemView-BKTYE0GI.js → DisplaySystemView-B4Ja1kBe.js} +2 -2
- package/dist/{KioskDevicesView-B3AWg9QR.js → KioskDevicesView-jYkKGyRX.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-s79NGSsG.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-Wicz8r3Q.js} +4 -4
- package/dist/{KioskSettingView-D8-2hQT9.js → KioskSettingView-CDO8VdiK.js} +4 -4
- package/dist/{KioskView-CrbUYY75.js → KioskView-Dex_N5wi.js} +6 -6
- package/dist/{OrderSettingsView-BPv13A7B.js → OrderSettingsView-D4YqwLji.js} +9728 -9551
- package/dist/{app-rzXWOYA2.js → app-DxJcADSR.js} +296 -236
- package/dist/app.js +1 -1
- package/dist/{firebase-storage-BTc4aPcq.js → firebase-storage-GDIc9Lze.js} +1 -1
- package/dist/frontend/mf-order/src/app.d.ts +60 -0
- package/dist/frontend/mf-order/src/main.d.ts +60 -0
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +27 -0
- package/dist/frontend/mf-order/src/views/order-settings/queue/code-setting-band.d.ts +19 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-BQLc4wu7.js → index-BOw_SLS3.js} +1 -1
- package/dist/{index-DMgNRp_k.js → index-BP2ZDwqX.js} +2 -2
- package/dist/{index-1TKkR2Bs.js → index-CTRKXPzk.js} +3 -3
- package/dist/{index-BoJCd-Jk.js → index-Dl-iHqtg.js} +1 -1
- package/dist/{order.dto-Ck2nw6IY.js → order.dto-BkJSHx_a.js} +197 -170
- package/dist/package/entity/order-setting/order-setting.do.d.ts +79 -0
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +158 -0
- package/dist/package/entity/order-setting/queue/queue.do.d.ts +158 -0
- package/dist/package/entity/order-setting/queue/queue.dto.d.ts +62 -0
- package/dist/package/entity/queue/queue.dto.d.ts +62 -0
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +158 -0
- package/package.json +1 -1
- package/src/locales/en-US.json +15 -0
- package/src/locales/ja-JP.json +15 -0
- package/src/locales/th-TH.json +16 -1
- package/src/locales/zh-CN.json +16 -1
- package/src/views/order-settings/queue/QueueSetting.vue +294 -2
- package/src/views/order-settings/queue/code-setting-band.spec.ts +69 -0
- package/src/views/order-settings/queue/code-setting-band.ts +27 -0
- package/src/views/order-settings/queue/queue-wait-estimate-dto.spec.ts +131 -0
- package/vite.config.ts +1 -1
|
@@ -913,12 +913,39 @@ export declare const FdoOrderSettings: z.ZodObject<{
|
|
|
913
913
|
queueSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
914
914
|
enableOrder: z.ZodBoolean;
|
|
915
915
|
autoCalledLimit: z.ZodNumber;
|
|
916
|
+
showWaitEstimate: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
916
917
|
duration: z.ZodNumber;
|
|
917
918
|
codeSettings: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
919
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
918
920
|
start: z.ZodNumber;
|
|
919
921
|
end: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
920
922
|
current: z.ZodNumber;
|
|
921
923
|
prefix: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
924
|
+
waitEstimate: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
925
|
+
paxUpTo: z.ZodNullable<z.ZodNumber>;
|
|
926
|
+
bands: z.ZodArray<z.ZodObject<{
|
|
927
|
+
upTo: z.ZodNullable<z.ZodNumber>;
|
|
928
|
+
minutes: z.ZodNumber;
|
|
929
|
+
}, "strip", z.ZodTypeAny, {
|
|
930
|
+
upTo: number | null;
|
|
931
|
+
minutes: number;
|
|
932
|
+
}, {
|
|
933
|
+
upTo: number | null;
|
|
934
|
+
minutes: number;
|
|
935
|
+
}>, "many">;
|
|
936
|
+
}, "strip", z.ZodTypeAny, {
|
|
937
|
+
paxUpTo: number | null;
|
|
938
|
+
bands: {
|
|
939
|
+
upTo: number | null;
|
|
940
|
+
minutes: number;
|
|
941
|
+
}[];
|
|
942
|
+
}, {
|
|
943
|
+
paxUpTo: number | null;
|
|
944
|
+
bands: {
|
|
945
|
+
upTo: number | null;
|
|
946
|
+
minutes: number;
|
|
947
|
+
}[];
|
|
948
|
+
}>, "many">>>;
|
|
922
949
|
pax: z.ZodObject<{
|
|
923
950
|
min: z.ZodNumber;
|
|
924
951
|
max: z.ZodNumber;
|
|
@@ -930,8 +957,16 @@ export declare const FdoOrderSettings: z.ZodObject<{
|
|
|
930
957
|
max: number;
|
|
931
958
|
}>;
|
|
932
959
|
}, "strip", z.ZodTypeAny, {
|
|
960
|
+
id?: string | null | undefined;
|
|
933
961
|
end?: number | null | undefined;
|
|
934
962
|
prefix?: string | null | undefined;
|
|
963
|
+
waitEstimate?: {
|
|
964
|
+
paxUpTo: number | null;
|
|
965
|
+
bands: {
|
|
966
|
+
upTo: number | null;
|
|
967
|
+
minutes: number;
|
|
968
|
+
}[];
|
|
969
|
+
}[] | null | undefined;
|
|
935
970
|
start: number;
|
|
936
971
|
current: number;
|
|
937
972
|
pax: {
|
|
@@ -939,8 +974,16 @@ export declare const FdoOrderSettings: z.ZodObject<{
|
|
|
939
974
|
max: number;
|
|
940
975
|
};
|
|
941
976
|
}, {
|
|
977
|
+
id?: string | null | undefined;
|
|
942
978
|
end?: number | null | undefined;
|
|
943
979
|
prefix?: string | null | undefined;
|
|
980
|
+
waitEstimate?: {
|
|
981
|
+
paxUpTo: number | null;
|
|
982
|
+
bands: {
|
|
983
|
+
upTo: number | null;
|
|
984
|
+
minutes: number;
|
|
985
|
+
}[];
|
|
986
|
+
}[] | null | undefined;
|
|
944
987
|
start: number;
|
|
945
988
|
current: number;
|
|
946
989
|
pax: {
|
|
@@ -954,9 +997,18 @@ export declare const FdoOrderSettings: z.ZodObject<{
|
|
|
954
997
|
autoSendKitchen: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
955
998
|
enableQueueToTabletTransfer: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
956
999
|
}, "strip", z.ZodTypeAny, {
|
|
1000
|
+
showWaitEstimate?: boolean | null | undefined;
|
|
957
1001
|
codeSettings?: {
|
|
1002
|
+
id?: string | null | undefined;
|
|
958
1003
|
end?: number | null | undefined;
|
|
959
1004
|
prefix?: string | null | undefined;
|
|
1005
|
+
waitEstimate?: {
|
|
1006
|
+
paxUpTo: number | null;
|
|
1007
|
+
bands: {
|
|
1008
|
+
upTo: number | null;
|
|
1009
|
+
minutes: number;
|
|
1010
|
+
}[];
|
|
1011
|
+
}[] | null | undefined;
|
|
960
1012
|
start: number;
|
|
961
1013
|
current: number;
|
|
962
1014
|
pax: {
|
|
@@ -973,9 +1025,18 @@ export declare const FdoOrderSettings: z.ZodObject<{
|
|
|
973
1025
|
enableOrder: boolean;
|
|
974
1026
|
autoCalledLimit: number;
|
|
975
1027
|
}, {
|
|
1028
|
+
showWaitEstimate?: boolean | null | undefined;
|
|
976
1029
|
codeSettings?: {
|
|
1030
|
+
id?: string | null | undefined;
|
|
977
1031
|
end?: number | null | undefined;
|
|
978
1032
|
prefix?: string | null | undefined;
|
|
1033
|
+
waitEstimate?: {
|
|
1034
|
+
paxUpTo: number | null;
|
|
1035
|
+
bands: {
|
|
1036
|
+
upTo: number | null;
|
|
1037
|
+
minutes: number;
|
|
1038
|
+
}[];
|
|
1039
|
+
}[] | null | undefined;
|
|
979
1040
|
start: number;
|
|
980
1041
|
current: number;
|
|
981
1042
|
pax: {
|
|
@@ -1144,9 +1205,18 @@ export declare const FdoOrderSettings: z.ZodObject<{
|
|
|
1144
1205
|
dynamicQrSessionSource: z.ZodNullable<z.ZodOptional<z.ZodEnum<["remote", "couchdb"]>>>;
|
|
1145
1206
|
}, "strip", z.ZodTypeAny, {
|
|
1146
1207
|
queueSettings?: {
|
|
1208
|
+
showWaitEstimate?: boolean | null | undefined;
|
|
1147
1209
|
codeSettings?: {
|
|
1210
|
+
id?: string | null | undefined;
|
|
1148
1211
|
end?: number | null | undefined;
|
|
1149
1212
|
prefix?: string | null | undefined;
|
|
1213
|
+
waitEstimate?: {
|
|
1214
|
+
paxUpTo: number | null;
|
|
1215
|
+
bands: {
|
|
1216
|
+
upTo: number | null;
|
|
1217
|
+
minutes: number;
|
|
1218
|
+
}[];
|
|
1219
|
+
}[] | null | undefined;
|
|
1150
1220
|
start: number;
|
|
1151
1221
|
current: number;
|
|
1152
1222
|
pax: {
|
|
@@ -1362,9 +1432,18 @@ export declare const FdoOrderSettings: z.ZodObject<{
|
|
|
1362
1432
|
_id: string;
|
|
1363
1433
|
}, {
|
|
1364
1434
|
queueSettings?: {
|
|
1435
|
+
showWaitEstimate?: boolean | null | undefined;
|
|
1365
1436
|
codeSettings?: {
|
|
1437
|
+
id?: string | null | undefined;
|
|
1366
1438
|
end?: number | null | undefined;
|
|
1367
1439
|
prefix?: string | null | undefined;
|
|
1440
|
+
waitEstimate?: {
|
|
1441
|
+
paxUpTo: number | null;
|
|
1442
|
+
bands: {
|
|
1443
|
+
upTo: number | null;
|
|
1444
|
+
minutes: number;
|
|
1445
|
+
}[];
|
|
1446
|
+
}[] | null | undefined;
|
|
1368
1447
|
start: number;
|
|
1369
1448
|
current: number;
|
|
1370
1449
|
pax: {
|
|
@@ -694,11 +694,38 @@ export declare const OrderSettingsDto: z.ZodObject<{
|
|
|
694
694
|
enableOrder: z.ZodBoolean;
|
|
695
695
|
autoCalledLimit: z.ZodNumber;
|
|
696
696
|
duration: z.ZodDefault<z.ZodNumber>;
|
|
697
|
+
showWaitEstimate: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
697
698
|
codeSettings: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
699
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
698
700
|
start: z.ZodNumber;
|
|
699
701
|
end: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
700
702
|
current: z.ZodNumber;
|
|
701
703
|
prefix: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
704
|
+
waitEstimate: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
705
|
+
paxUpTo: z.ZodNullable<z.ZodNumber>;
|
|
706
|
+
bands: z.ZodArray<z.ZodObject<{
|
|
707
|
+
upTo: z.ZodNullable<z.ZodNumber>;
|
|
708
|
+
minutes: z.ZodNumber;
|
|
709
|
+
}, "strip", z.ZodTypeAny, {
|
|
710
|
+
upTo: number | null;
|
|
711
|
+
minutes: number;
|
|
712
|
+
}, {
|
|
713
|
+
upTo: number | null;
|
|
714
|
+
minutes: number;
|
|
715
|
+
}>, "many">;
|
|
716
|
+
}, "strip", z.ZodTypeAny, {
|
|
717
|
+
paxUpTo: number | null;
|
|
718
|
+
bands: {
|
|
719
|
+
upTo: number | null;
|
|
720
|
+
minutes: number;
|
|
721
|
+
}[];
|
|
722
|
+
}, {
|
|
723
|
+
paxUpTo: number | null;
|
|
724
|
+
bands: {
|
|
725
|
+
upTo: number | null;
|
|
726
|
+
minutes: number;
|
|
727
|
+
}[];
|
|
728
|
+
}>, "many">>>;
|
|
702
729
|
pax: z.ZodObject<{
|
|
703
730
|
min: z.ZodNumber;
|
|
704
731
|
max: z.ZodNumber;
|
|
@@ -710,8 +737,16 @@ export declare const OrderSettingsDto: z.ZodObject<{
|
|
|
710
737
|
max: number;
|
|
711
738
|
}>;
|
|
712
739
|
}, "strip", z.ZodTypeAny, {
|
|
740
|
+
id?: string | null | undefined;
|
|
713
741
|
end?: number | null | undefined;
|
|
714
742
|
prefix?: string | null | undefined;
|
|
743
|
+
waitEstimate?: {
|
|
744
|
+
paxUpTo: number | null;
|
|
745
|
+
bands: {
|
|
746
|
+
upTo: number | null;
|
|
747
|
+
minutes: number;
|
|
748
|
+
}[];
|
|
749
|
+
}[] | null | undefined;
|
|
715
750
|
start: number;
|
|
716
751
|
current: number;
|
|
717
752
|
pax: {
|
|
@@ -719,8 +754,16 @@ export declare const OrderSettingsDto: z.ZodObject<{
|
|
|
719
754
|
max: number;
|
|
720
755
|
};
|
|
721
756
|
}, {
|
|
757
|
+
id?: string | null | undefined;
|
|
722
758
|
end?: number | null | undefined;
|
|
723
759
|
prefix?: string | null | undefined;
|
|
760
|
+
waitEstimate?: {
|
|
761
|
+
paxUpTo: number | null;
|
|
762
|
+
bands: {
|
|
763
|
+
upTo: number | null;
|
|
764
|
+
minutes: number;
|
|
765
|
+
}[];
|
|
766
|
+
}[] | null | undefined;
|
|
724
767
|
start: number;
|
|
725
768
|
current: number;
|
|
726
769
|
pax: {
|
|
@@ -734,9 +777,18 @@ export declare const OrderSettingsDto: z.ZodObject<{
|
|
|
734
777
|
autoSendKitchen: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
735
778
|
enableQueueToTabletTransfer: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
736
779
|
}, "strip", z.ZodTypeAny, {
|
|
780
|
+
showWaitEstimate?: boolean | null | undefined;
|
|
737
781
|
codeSettings?: {
|
|
782
|
+
id?: string | null | undefined;
|
|
738
783
|
end?: number | null | undefined;
|
|
739
784
|
prefix?: string | null | undefined;
|
|
785
|
+
waitEstimate?: {
|
|
786
|
+
paxUpTo: number | null;
|
|
787
|
+
bands: {
|
|
788
|
+
upTo: number | null;
|
|
789
|
+
minutes: number;
|
|
790
|
+
}[];
|
|
791
|
+
}[] | null | undefined;
|
|
740
792
|
start: number;
|
|
741
793
|
current: number;
|
|
742
794
|
pax: {
|
|
@@ -754,9 +806,18 @@ export declare const OrderSettingsDto: z.ZodObject<{
|
|
|
754
806
|
autoCalledLimit: number;
|
|
755
807
|
}, {
|
|
756
808
|
duration?: number | undefined;
|
|
809
|
+
showWaitEstimate?: boolean | null | undefined;
|
|
757
810
|
codeSettings?: {
|
|
811
|
+
id?: string | null | undefined;
|
|
758
812
|
end?: number | null | undefined;
|
|
759
813
|
prefix?: string | null | undefined;
|
|
814
|
+
waitEstimate?: {
|
|
815
|
+
paxUpTo: number | null;
|
|
816
|
+
bands: {
|
|
817
|
+
upTo: number | null;
|
|
818
|
+
minutes: number;
|
|
819
|
+
}[];
|
|
820
|
+
}[] | null | undefined;
|
|
760
821
|
start: number;
|
|
761
822
|
current: number;
|
|
762
823
|
pax: {
|
|
@@ -1097,9 +1158,18 @@ export declare const OrderSettingsDto: z.ZodObject<{
|
|
|
1097
1158
|
dynamicQrSessionSource: z.ZodNullable<z.ZodOptional<z.ZodEnum<["remote", "couchdb"]>>>;
|
|
1098
1159
|
}, "strip", z.ZodTypeAny, {
|
|
1099
1160
|
queueSettings?: {
|
|
1161
|
+
showWaitEstimate?: boolean | null | undefined;
|
|
1100
1162
|
codeSettings?: {
|
|
1163
|
+
id?: string | null | undefined;
|
|
1101
1164
|
end?: number | null | undefined;
|
|
1102
1165
|
prefix?: string | null | undefined;
|
|
1166
|
+
waitEstimate?: {
|
|
1167
|
+
paxUpTo: number | null;
|
|
1168
|
+
bands: {
|
|
1169
|
+
upTo: number | null;
|
|
1170
|
+
minutes: number;
|
|
1171
|
+
}[];
|
|
1172
|
+
}[] | null | undefined;
|
|
1103
1173
|
start: number;
|
|
1104
1174
|
current: number;
|
|
1105
1175
|
pax: {
|
|
@@ -1312,9 +1382,18 @@ export declare const OrderSettingsDto: z.ZodObject<{
|
|
|
1312
1382
|
}, {
|
|
1313
1383
|
queueSettings?: {
|
|
1314
1384
|
duration?: number | undefined;
|
|
1385
|
+
showWaitEstimate?: boolean | null | undefined;
|
|
1315
1386
|
codeSettings?: {
|
|
1387
|
+
id?: string | null | undefined;
|
|
1316
1388
|
end?: number | null | undefined;
|
|
1317
1389
|
prefix?: string | null | undefined;
|
|
1390
|
+
waitEstimate?: {
|
|
1391
|
+
paxUpTo: number | null;
|
|
1392
|
+
bands: {
|
|
1393
|
+
upTo: number | null;
|
|
1394
|
+
minutes: number;
|
|
1395
|
+
}[];
|
|
1396
|
+
}[] | null | undefined;
|
|
1318
1397
|
start: number;
|
|
1319
1398
|
current: number;
|
|
1320
1399
|
pax: {
|
|
@@ -2220,11 +2299,38 @@ export declare const OrderSettingUpdateDto: z.ZodObject<Omit<{
|
|
|
2220
2299
|
enableOrder: z.ZodBoolean;
|
|
2221
2300
|
autoCalledLimit: z.ZodNumber;
|
|
2222
2301
|
duration: z.ZodDefault<z.ZodNumber>;
|
|
2302
|
+
showWaitEstimate: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
2223
2303
|
codeSettings: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2304
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2224
2305
|
start: z.ZodNumber;
|
|
2225
2306
|
end: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
2226
2307
|
current: z.ZodNumber;
|
|
2227
2308
|
prefix: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2309
|
+
waitEstimate: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2310
|
+
paxUpTo: z.ZodNullable<z.ZodNumber>;
|
|
2311
|
+
bands: z.ZodArray<z.ZodObject<{
|
|
2312
|
+
upTo: z.ZodNullable<z.ZodNumber>;
|
|
2313
|
+
minutes: z.ZodNumber;
|
|
2314
|
+
}, "strip", z.ZodTypeAny, {
|
|
2315
|
+
upTo: number | null;
|
|
2316
|
+
minutes: number;
|
|
2317
|
+
}, {
|
|
2318
|
+
upTo: number | null;
|
|
2319
|
+
minutes: number;
|
|
2320
|
+
}>, "many">;
|
|
2321
|
+
}, "strip", z.ZodTypeAny, {
|
|
2322
|
+
paxUpTo: number | null;
|
|
2323
|
+
bands: {
|
|
2324
|
+
upTo: number | null;
|
|
2325
|
+
minutes: number;
|
|
2326
|
+
}[];
|
|
2327
|
+
}, {
|
|
2328
|
+
paxUpTo: number | null;
|
|
2329
|
+
bands: {
|
|
2330
|
+
upTo: number | null;
|
|
2331
|
+
minutes: number;
|
|
2332
|
+
}[];
|
|
2333
|
+
}>, "many">>>;
|
|
2228
2334
|
pax: z.ZodObject<{
|
|
2229
2335
|
min: z.ZodNumber;
|
|
2230
2336
|
max: z.ZodNumber;
|
|
@@ -2236,8 +2342,16 @@ export declare const OrderSettingUpdateDto: z.ZodObject<Omit<{
|
|
|
2236
2342
|
max: number;
|
|
2237
2343
|
}>;
|
|
2238
2344
|
}, "strip", z.ZodTypeAny, {
|
|
2345
|
+
id?: string | null | undefined;
|
|
2239
2346
|
end?: number | null | undefined;
|
|
2240
2347
|
prefix?: string | null | undefined;
|
|
2348
|
+
waitEstimate?: {
|
|
2349
|
+
paxUpTo: number | null;
|
|
2350
|
+
bands: {
|
|
2351
|
+
upTo: number | null;
|
|
2352
|
+
minutes: number;
|
|
2353
|
+
}[];
|
|
2354
|
+
}[] | null | undefined;
|
|
2241
2355
|
start: number;
|
|
2242
2356
|
current: number;
|
|
2243
2357
|
pax: {
|
|
@@ -2245,8 +2359,16 @@ export declare const OrderSettingUpdateDto: z.ZodObject<Omit<{
|
|
|
2245
2359
|
max: number;
|
|
2246
2360
|
};
|
|
2247
2361
|
}, {
|
|
2362
|
+
id?: string | null | undefined;
|
|
2248
2363
|
end?: number | null | undefined;
|
|
2249
2364
|
prefix?: string | null | undefined;
|
|
2365
|
+
waitEstimate?: {
|
|
2366
|
+
paxUpTo: number | null;
|
|
2367
|
+
bands: {
|
|
2368
|
+
upTo: number | null;
|
|
2369
|
+
minutes: number;
|
|
2370
|
+
}[];
|
|
2371
|
+
}[] | null | undefined;
|
|
2250
2372
|
start: number;
|
|
2251
2373
|
current: number;
|
|
2252
2374
|
pax: {
|
|
@@ -2260,9 +2382,18 @@ export declare const OrderSettingUpdateDto: z.ZodObject<Omit<{
|
|
|
2260
2382
|
autoSendKitchen: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
2261
2383
|
enableQueueToTabletTransfer: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
2262
2384
|
}, "strip", z.ZodTypeAny, {
|
|
2385
|
+
showWaitEstimate?: boolean | null | undefined;
|
|
2263
2386
|
codeSettings?: {
|
|
2387
|
+
id?: string | null | undefined;
|
|
2264
2388
|
end?: number | null | undefined;
|
|
2265
2389
|
prefix?: string | null | undefined;
|
|
2390
|
+
waitEstimate?: {
|
|
2391
|
+
paxUpTo: number | null;
|
|
2392
|
+
bands: {
|
|
2393
|
+
upTo: number | null;
|
|
2394
|
+
minutes: number;
|
|
2395
|
+
}[];
|
|
2396
|
+
}[] | null | undefined;
|
|
2266
2397
|
start: number;
|
|
2267
2398
|
current: number;
|
|
2268
2399
|
pax: {
|
|
@@ -2280,9 +2411,18 @@ export declare const OrderSettingUpdateDto: z.ZodObject<Omit<{
|
|
|
2280
2411
|
autoCalledLimit: number;
|
|
2281
2412
|
}, {
|
|
2282
2413
|
duration?: number | undefined;
|
|
2414
|
+
showWaitEstimate?: boolean | null | undefined;
|
|
2283
2415
|
codeSettings?: {
|
|
2416
|
+
id?: string | null | undefined;
|
|
2284
2417
|
end?: number | null | undefined;
|
|
2285
2418
|
prefix?: string | null | undefined;
|
|
2419
|
+
waitEstimate?: {
|
|
2420
|
+
paxUpTo: number | null;
|
|
2421
|
+
bands: {
|
|
2422
|
+
upTo: number | null;
|
|
2423
|
+
minutes: number;
|
|
2424
|
+
}[];
|
|
2425
|
+
}[] | null | undefined;
|
|
2286
2426
|
start: number;
|
|
2287
2427
|
current: number;
|
|
2288
2428
|
pax: {
|
|
@@ -2623,9 +2763,18 @@ export declare const OrderSettingUpdateDto: z.ZodObject<Omit<{
|
|
|
2623
2763
|
dynamicQrSessionSource: z.ZodNullable<z.ZodOptional<z.ZodEnum<["remote", "couchdb"]>>>;
|
|
2624
2764
|
}, "_id">, "strip", z.ZodTypeAny, {
|
|
2625
2765
|
queueSettings?: {
|
|
2766
|
+
showWaitEstimate?: boolean | null | undefined;
|
|
2626
2767
|
codeSettings?: {
|
|
2768
|
+
id?: string | null | undefined;
|
|
2627
2769
|
end?: number | null | undefined;
|
|
2628
2770
|
prefix?: string | null | undefined;
|
|
2771
|
+
waitEstimate?: {
|
|
2772
|
+
paxUpTo: number | null;
|
|
2773
|
+
bands: {
|
|
2774
|
+
upTo: number | null;
|
|
2775
|
+
minutes: number;
|
|
2776
|
+
}[];
|
|
2777
|
+
}[] | null | undefined;
|
|
2629
2778
|
start: number;
|
|
2630
2779
|
current: number;
|
|
2631
2780
|
pax: {
|
|
@@ -2837,9 +2986,18 @@ export declare const OrderSettingUpdateDto: z.ZodObject<Omit<{
|
|
|
2837
2986
|
}, {
|
|
2838
2987
|
queueSettings?: {
|
|
2839
2988
|
duration?: number | undefined;
|
|
2989
|
+
showWaitEstimate?: boolean | null | undefined;
|
|
2840
2990
|
codeSettings?: {
|
|
2991
|
+
id?: string | null | undefined;
|
|
2841
2992
|
end?: number | null | undefined;
|
|
2842
2993
|
prefix?: string | null | undefined;
|
|
2994
|
+
waitEstimate?: {
|
|
2995
|
+
paxUpTo: number | null;
|
|
2996
|
+
bands: {
|
|
2997
|
+
upTo: number | null;
|
|
2998
|
+
minutes: number;
|
|
2999
|
+
}[];
|
|
3000
|
+
}[] | null | undefined;
|
|
2843
3001
|
start: number;
|
|
2844
3002
|
current: number;
|
|
2845
3003
|
pax: {
|
|
@@ -1,9 +1,76 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* One row of the wait estimate for a segment: a pax sub-band within the
|
|
4
|
+
* segment's own pax range, with an estimate per "queues ahead" band.
|
|
5
|
+
*
|
|
6
|
+
* Bounds are upper-bound-only and ascending; the terminal `null` means "up to
|
|
7
|
+
* this segment's pax.max" for `paxUpTo`, and "no upper limit" for a band.
|
|
8
|
+
*/
|
|
9
|
+
export declare const FdoOrderQueueWaitEstimateRow: z.ZodObject<{
|
|
10
|
+
paxUpTo: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
bands: z.ZodArray<z.ZodObject<{
|
|
12
|
+
upTo: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
minutes: z.ZodNumber;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
upTo: number | null;
|
|
16
|
+
minutes: number;
|
|
17
|
+
}, {
|
|
18
|
+
upTo: number | null;
|
|
19
|
+
minutes: number;
|
|
20
|
+
}>, "many">;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
paxUpTo: number | null;
|
|
23
|
+
bands: {
|
|
24
|
+
upTo: number | null;
|
|
25
|
+
minutes: number;
|
|
26
|
+
}[];
|
|
27
|
+
}, {
|
|
28
|
+
paxUpTo: number | null;
|
|
29
|
+
bands: {
|
|
30
|
+
upTo: number | null;
|
|
31
|
+
minutes: number;
|
|
32
|
+
}[];
|
|
33
|
+
}>;
|
|
34
|
+
export type FdoOrderQueueWaitEstimateRow = z.infer<typeof FdoOrderQueueWaitEstimateRow>;
|
|
2
35
|
export declare const FdoOrderQueueSettingCode: z.ZodObject<{
|
|
36
|
+
/**
|
|
37
|
+
* Stable identifier, assigned on first write. Optional because every
|
|
38
|
+
* document predating this field lacks one, and nothing reads it for code
|
|
39
|
+
* allocation — it exists so a settings save can match incoming segments to
|
|
40
|
+
* stored ones and preserve their `waitEstimate`. Index is unusable (reorder,
|
|
41
|
+
* insert, delete) and prefix is not unique.
|
|
42
|
+
*/
|
|
43
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3
44
|
start: z.ZodNumber;
|
|
4
45
|
end: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
5
46
|
current: z.ZodNumber;
|
|
6
47
|
prefix: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
48
|
+
/** Pax sub-rows for this segment. Absent = no estimate for these parties. */
|
|
49
|
+
waitEstimate: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
50
|
+
paxUpTo: z.ZodNullable<z.ZodNumber>;
|
|
51
|
+
bands: z.ZodArray<z.ZodObject<{
|
|
52
|
+
upTo: z.ZodNullable<z.ZodNumber>;
|
|
53
|
+
minutes: z.ZodNumber;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
upTo: number | null;
|
|
56
|
+
minutes: number;
|
|
57
|
+
}, {
|
|
58
|
+
upTo: number | null;
|
|
59
|
+
minutes: number;
|
|
60
|
+
}>, "many">;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
paxUpTo: number | null;
|
|
63
|
+
bands: {
|
|
64
|
+
upTo: number | null;
|
|
65
|
+
minutes: number;
|
|
66
|
+
}[];
|
|
67
|
+
}, {
|
|
68
|
+
paxUpTo: number | null;
|
|
69
|
+
bands: {
|
|
70
|
+
upTo: number | null;
|
|
71
|
+
minutes: number;
|
|
72
|
+
}[];
|
|
73
|
+
}>, "many">>>;
|
|
7
74
|
/**
|
|
8
75
|
* To allow customization to different prefix and running number based on pax size
|
|
9
76
|
*/
|
|
@@ -18,8 +85,16 @@ export declare const FdoOrderQueueSettingCode: z.ZodObject<{
|
|
|
18
85
|
max: number;
|
|
19
86
|
}>;
|
|
20
87
|
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
id?: string | null | undefined;
|
|
21
89
|
end?: number | null | undefined;
|
|
22
90
|
prefix?: string | null | undefined;
|
|
91
|
+
waitEstimate?: {
|
|
92
|
+
paxUpTo: number | null;
|
|
93
|
+
bands: {
|
|
94
|
+
upTo: number | null;
|
|
95
|
+
minutes: number;
|
|
96
|
+
}[];
|
|
97
|
+
}[] | null | undefined;
|
|
23
98
|
start: number;
|
|
24
99
|
current: number;
|
|
25
100
|
pax: {
|
|
@@ -27,8 +102,16 @@ export declare const FdoOrderQueueSettingCode: z.ZodObject<{
|
|
|
27
102
|
max: number;
|
|
28
103
|
};
|
|
29
104
|
}, {
|
|
105
|
+
id?: string | null | undefined;
|
|
30
106
|
end?: number | null | undefined;
|
|
31
107
|
prefix?: string | null | undefined;
|
|
108
|
+
waitEstimate?: {
|
|
109
|
+
paxUpTo: number | null;
|
|
110
|
+
bands: {
|
|
111
|
+
upTo: number | null;
|
|
112
|
+
minutes: number;
|
|
113
|
+
}[];
|
|
114
|
+
}[] | null | undefined;
|
|
32
115
|
start: number;
|
|
33
116
|
current: number;
|
|
34
117
|
pax: {
|
|
@@ -45,6 +128,13 @@ export declare const FdoOrderQueueSettings: z.ZodObject<{
|
|
|
45
128
|
* Use case: Hotpot shop always want first 5 queue to be in called status to wait in front of shop
|
|
46
129
|
*/
|
|
47
130
|
autoCalledLimit: z.ZodNumber;
|
|
131
|
+
/**
|
|
132
|
+
* Master switch for showing the wait estimate to customers. Off by default:
|
|
133
|
+
* with no configuration there is no defensible number to show, and the bug
|
|
134
|
+
* this replaces was exactly a fabricated constant. Bands live per segment
|
|
135
|
+
* (`codeSettings[].waitEstimate`); this governs whether any of them display.
|
|
136
|
+
*/
|
|
137
|
+
showWaitEstimate: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
48
138
|
/**
|
|
49
139
|
* This field not using in the code
|
|
50
140
|
*/
|
|
@@ -53,10 +143,44 @@ export declare const FdoOrderQueueSettings: z.ZodObject<{
|
|
|
53
143
|
* To allow customization to different prefix and running number based on pax size
|
|
54
144
|
*/
|
|
55
145
|
codeSettings: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
146
|
+
/**
|
|
147
|
+
* Stable identifier, assigned on first write. Optional because every
|
|
148
|
+
* document predating this field lacks one, and nothing reads it for code
|
|
149
|
+
* allocation — it exists so a settings save can match incoming segments to
|
|
150
|
+
* stored ones and preserve their `waitEstimate`. Index is unusable (reorder,
|
|
151
|
+
* insert, delete) and prefix is not unique.
|
|
152
|
+
*/
|
|
153
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
56
154
|
start: z.ZodNumber;
|
|
57
155
|
end: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
58
156
|
current: z.ZodNumber;
|
|
59
157
|
prefix: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
158
|
+
/** Pax sub-rows for this segment. Absent = no estimate for these parties. */
|
|
159
|
+
waitEstimate: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
160
|
+
paxUpTo: z.ZodNullable<z.ZodNumber>;
|
|
161
|
+
bands: z.ZodArray<z.ZodObject<{
|
|
162
|
+
upTo: z.ZodNullable<z.ZodNumber>;
|
|
163
|
+
minutes: z.ZodNumber;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
upTo: number | null;
|
|
166
|
+
minutes: number;
|
|
167
|
+
}, {
|
|
168
|
+
upTo: number | null;
|
|
169
|
+
minutes: number;
|
|
170
|
+
}>, "many">;
|
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
paxUpTo: number | null;
|
|
173
|
+
bands: {
|
|
174
|
+
upTo: number | null;
|
|
175
|
+
minutes: number;
|
|
176
|
+
}[];
|
|
177
|
+
}, {
|
|
178
|
+
paxUpTo: number | null;
|
|
179
|
+
bands: {
|
|
180
|
+
upTo: number | null;
|
|
181
|
+
minutes: number;
|
|
182
|
+
}[];
|
|
183
|
+
}>, "many">>>;
|
|
60
184
|
/**
|
|
61
185
|
* To allow customization to different prefix and running number based on pax size
|
|
62
186
|
*/
|
|
@@ -71,8 +195,16 @@ export declare const FdoOrderQueueSettings: z.ZodObject<{
|
|
|
71
195
|
max: number;
|
|
72
196
|
}>;
|
|
73
197
|
}, "strip", z.ZodTypeAny, {
|
|
198
|
+
id?: string | null | undefined;
|
|
74
199
|
end?: number | null | undefined;
|
|
75
200
|
prefix?: string | null | undefined;
|
|
201
|
+
waitEstimate?: {
|
|
202
|
+
paxUpTo: number | null;
|
|
203
|
+
bands: {
|
|
204
|
+
upTo: number | null;
|
|
205
|
+
minutes: number;
|
|
206
|
+
}[];
|
|
207
|
+
}[] | null | undefined;
|
|
76
208
|
start: number;
|
|
77
209
|
current: number;
|
|
78
210
|
pax: {
|
|
@@ -80,8 +212,16 @@ export declare const FdoOrderQueueSettings: z.ZodObject<{
|
|
|
80
212
|
max: number;
|
|
81
213
|
};
|
|
82
214
|
}, {
|
|
215
|
+
id?: string | null | undefined;
|
|
83
216
|
end?: number | null | undefined;
|
|
84
217
|
prefix?: string | null | undefined;
|
|
218
|
+
waitEstimate?: {
|
|
219
|
+
paxUpTo: number | null;
|
|
220
|
+
bands: {
|
|
221
|
+
upTo: number | null;
|
|
222
|
+
minutes: number;
|
|
223
|
+
}[];
|
|
224
|
+
}[] | null | undefined;
|
|
85
225
|
start: number;
|
|
86
226
|
current: number;
|
|
87
227
|
pax: {
|
|
@@ -104,9 +244,18 @@ export declare const FdoOrderQueueSettings: z.ZodObject<{
|
|
|
104
244
|
*/
|
|
105
245
|
enableQueueToTabletTransfer: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
106
246
|
}, "strip", z.ZodTypeAny, {
|
|
247
|
+
showWaitEstimate?: boolean | null | undefined;
|
|
107
248
|
codeSettings?: {
|
|
249
|
+
id?: string | null | undefined;
|
|
108
250
|
end?: number | null | undefined;
|
|
109
251
|
prefix?: string | null | undefined;
|
|
252
|
+
waitEstimate?: {
|
|
253
|
+
paxUpTo: number | null;
|
|
254
|
+
bands: {
|
|
255
|
+
upTo: number | null;
|
|
256
|
+
minutes: number;
|
|
257
|
+
}[];
|
|
258
|
+
}[] | null | undefined;
|
|
110
259
|
start: number;
|
|
111
260
|
current: number;
|
|
112
261
|
pax: {
|
|
@@ -123,9 +272,18 @@ export declare const FdoOrderQueueSettings: z.ZodObject<{
|
|
|
123
272
|
enableOrder: boolean;
|
|
124
273
|
autoCalledLimit: number;
|
|
125
274
|
}, {
|
|
275
|
+
showWaitEstimate?: boolean | null | undefined;
|
|
126
276
|
codeSettings?: {
|
|
277
|
+
id?: string | null | undefined;
|
|
127
278
|
end?: number | null | undefined;
|
|
128
279
|
prefix?: string | null | undefined;
|
|
280
|
+
waitEstimate?: {
|
|
281
|
+
paxUpTo: number | null;
|
|
282
|
+
bands: {
|
|
283
|
+
upTo: number | null;
|
|
284
|
+
minutes: number;
|
|
285
|
+
}[];
|
|
286
|
+
}[] | null | undefined;
|
|
129
287
|
start: number;
|
|
130
288
|
current: number;
|
|
131
289
|
pax: {
|