order3000 1.3.0 → 1.5.0
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/client.cjs +17 -0
- package/dist/client.d.cts +154 -32
- package/dist/client.d.mts +154 -32
- package/dist/client.mjs +17 -0
- package/dist/schemas.cjs +208 -30
- package/dist/schemas.d.cts +94 -31
- package/dist/schemas.d.mts +94 -31
- package/dist/schemas.mjs +208 -30
- package/package.json +2 -2
package/dist/schemas.cjs
CHANGED
|
@@ -276,7 +276,7 @@ const cancelTeamOrderResponseSchema = v4.z.object({
|
|
|
276
276
|
});
|
|
277
277
|
|
|
278
278
|
const cancellationReasonSchema = v4.z.enum([
|
|
279
|
-
"
|
|
279
|
+
"guest_request",
|
|
280
280
|
"restaurant_request"
|
|
281
281
|
]);
|
|
282
282
|
|
|
@@ -293,7 +293,7 @@ const confirmOrderResponseSchema = v4.z.object({
|
|
|
293
293
|
quickReferenceNumber: v4.z.nullable(
|
|
294
294
|
v4.z.int().min(-9007199254740991).max(9007199254740991)
|
|
295
295
|
),
|
|
296
|
-
|
|
296
|
+
guestId: v4.z.optional(v4.z.string())
|
|
297
297
|
});
|
|
298
298
|
|
|
299
299
|
const contactPreferenceSchema = v4.z.enum(["email", "phone", "sms", "none"]);
|
|
@@ -574,11 +574,41 @@ const createAdResponseSchema = v4.z.object({
|
|
|
574
574
|
get status() {
|
|
575
575
|
return adStatusSchema;
|
|
576
576
|
},
|
|
577
|
+
campaignId: v4.z.nullable(v4.z.string()),
|
|
577
578
|
content: v4.z.union([
|
|
578
579
|
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
579
580
|
v4.z.array(v4.z.any()),
|
|
580
581
|
v4.z.object({}).catchall(v4.z.any())
|
|
581
582
|
]),
|
|
583
|
+
keywords: v4.z.union([
|
|
584
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
585
|
+
v4.z.array(v4.z.any()),
|
|
586
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
587
|
+
]),
|
|
588
|
+
negativeKeywords: v4.z.union([
|
|
589
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
590
|
+
v4.z.array(v4.z.any()),
|
|
591
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
592
|
+
]),
|
|
593
|
+
disabledVenueKeywords: v4.z.union([
|
|
594
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
595
|
+
v4.z.array(v4.z.any()),
|
|
596
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
597
|
+
]),
|
|
598
|
+
dismissedKeywords: v4.z.union([
|
|
599
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
600
|
+
v4.z.array(v4.z.any()),
|
|
601
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
602
|
+
]),
|
|
603
|
+
publishedContentHash: v4.z.nullable(v4.z.string()),
|
|
604
|
+
publishedAt: v4.z.nullable(v4.z.any()),
|
|
605
|
+
pushedKeywords: v4.z.nullable(
|
|
606
|
+
v4.z.union([
|
|
607
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
608
|
+
v4.z.array(v4.z.any()),
|
|
609
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
610
|
+
])
|
|
611
|
+
),
|
|
582
612
|
createdBy: v4.z.nullable(v4.z.string()),
|
|
583
613
|
updatedBy: v4.z.nullable(v4.z.string()),
|
|
584
614
|
createdAt: v4.z.nullable(v4.z.any()),
|
|
@@ -714,8 +744,8 @@ const createPaymentIntentRequestSchema = v4.z.object({
|
|
|
714
744
|
return deliveryAddressSchema.fulfillmentTypeSchema;
|
|
715
745
|
},
|
|
716
746
|
fulfillmentAt: v4.z.iso.datetime().nullish(),
|
|
717
|
-
|
|
718
|
-
|
|
747
|
+
guestFirstName: v4.z.optional(v4.z.string()),
|
|
748
|
+
guestLastName: v4.z.optional(v4.z.string()),
|
|
719
749
|
teamOrderPublicId: v4.z.optional(v4.z.string()),
|
|
720
750
|
declaredReturns: v4.z.optional(
|
|
721
751
|
v4.z.array(
|
|
@@ -784,11 +814,41 @@ const deleteAdResponseSchema = v4.z.object({
|
|
|
784
814
|
get status() {
|
|
785
815
|
return adStatusSchema;
|
|
786
816
|
},
|
|
817
|
+
campaignId: v4.z.nullable(v4.z.string()),
|
|
787
818
|
content: v4.z.union([
|
|
788
819
|
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
789
820
|
v4.z.array(v4.z.any()),
|
|
790
821
|
v4.z.object({}).catchall(v4.z.any())
|
|
791
822
|
]),
|
|
823
|
+
keywords: v4.z.union([
|
|
824
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
825
|
+
v4.z.array(v4.z.any()),
|
|
826
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
827
|
+
]),
|
|
828
|
+
negativeKeywords: v4.z.union([
|
|
829
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
830
|
+
v4.z.array(v4.z.any()),
|
|
831
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
832
|
+
]),
|
|
833
|
+
disabledVenueKeywords: v4.z.union([
|
|
834
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
835
|
+
v4.z.array(v4.z.any()),
|
|
836
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
837
|
+
]),
|
|
838
|
+
dismissedKeywords: v4.z.union([
|
|
839
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
840
|
+
v4.z.array(v4.z.any()),
|
|
841
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
842
|
+
]),
|
|
843
|
+
publishedContentHash: v4.z.nullable(v4.z.string()),
|
|
844
|
+
publishedAt: v4.z.nullable(v4.z.any()),
|
|
845
|
+
pushedKeywords: v4.z.nullable(
|
|
846
|
+
v4.z.union([
|
|
847
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
848
|
+
v4.z.array(v4.z.any()),
|
|
849
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
850
|
+
])
|
|
851
|
+
),
|
|
792
852
|
createdBy: v4.z.nullable(v4.z.string()),
|
|
793
853
|
updatedBy: v4.z.nullable(v4.z.string()),
|
|
794
854
|
createdAt: v4.z.nullable(v4.z.any()),
|
|
@@ -882,11 +942,41 @@ const editAdResponseSchema = v4.z.object({
|
|
|
882
942
|
get status() {
|
|
883
943
|
return adStatusSchema;
|
|
884
944
|
},
|
|
945
|
+
campaignId: v4.z.nullable(v4.z.string()),
|
|
885
946
|
content: v4.z.union([
|
|
886
947
|
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
887
948
|
v4.z.array(v4.z.any()),
|
|
888
949
|
v4.z.object({}).catchall(v4.z.any())
|
|
889
950
|
]),
|
|
951
|
+
keywords: v4.z.union([
|
|
952
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
953
|
+
v4.z.array(v4.z.any()),
|
|
954
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
955
|
+
]),
|
|
956
|
+
negativeKeywords: v4.z.union([
|
|
957
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
958
|
+
v4.z.array(v4.z.any()),
|
|
959
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
960
|
+
]),
|
|
961
|
+
disabledVenueKeywords: v4.z.union([
|
|
962
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
963
|
+
v4.z.array(v4.z.any()),
|
|
964
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
965
|
+
]),
|
|
966
|
+
dismissedKeywords: v4.z.union([
|
|
967
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
968
|
+
v4.z.array(v4.z.any()),
|
|
969
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
970
|
+
]),
|
|
971
|
+
publishedContentHash: v4.z.nullable(v4.z.string()),
|
|
972
|
+
publishedAt: v4.z.nullable(v4.z.any()),
|
|
973
|
+
pushedKeywords: v4.z.nullable(
|
|
974
|
+
v4.z.union([
|
|
975
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
976
|
+
v4.z.array(v4.z.any()),
|
|
977
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
978
|
+
])
|
|
979
|
+
),
|
|
890
980
|
createdBy: v4.z.nullable(v4.z.string()),
|
|
891
981
|
updatedBy: v4.z.nullable(v4.z.string()),
|
|
892
982
|
createdAt: v4.z.nullable(v4.z.any()),
|
|
@@ -1133,7 +1223,7 @@ const featureCategorySchema = v4.z.enum([
|
|
|
1133
1223
|
"auth",
|
|
1134
1224
|
"billing",
|
|
1135
1225
|
"core",
|
|
1136
|
-
"
|
|
1226
|
+
"guests",
|
|
1137
1227
|
"events",
|
|
1138
1228
|
"inventory",
|
|
1139
1229
|
"menus",
|
|
@@ -1164,11 +1254,41 @@ const fetchAdResponseSchema = v4.z.object({
|
|
|
1164
1254
|
get status() {
|
|
1165
1255
|
return adStatusSchema;
|
|
1166
1256
|
},
|
|
1257
|
+
campaignId: v4.z.nullable(v4.z.string()),
|
|
1167
1258
|
content: v4.z.union([
|
|
1168
1259
|
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1169
1260
|
v4.z.array(v4.z.any()),
|
|
1170
1261
|
v4.z.object({}).catchall(v4.z.any())
|
|
1171
1262
|
]),
|
|
1263
|
+
keywords: v4.z.union([
|
|
1264
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1265
|
+
v4.z.array(v4.z.any()),
|
|
1266
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1267
|
+
]),
|
|
1268
|
+
negativeKeywords: v4.z.union([
|
|
1269
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1270
|
+
v4.z.array(v4.z.any()),
|
|
1271
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1272
|
+
]),
|
|
1273
|
+
disabledVenueKeywords: v4.z.union([
|
|
1274
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1275
|
+
v4.z.array(v4.z.any()),
|
|
1276
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1277
|
+
]),
|
|
1278
|
+
dismissedKeywords: v4.z.union([
|
|
1279
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1280
|
+
v4.z.array(v4.z.any()),
|
|
1281
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1282
|
+
]),
|
|
1283
|
+
publishedContentHash: v4.z.nullable(v4.z.string()),
|
|
1284
|
+
publishedAt: v4.z.nullable(v4.z.any()),
|
|
1285
|
+
pushedKeywords: v4.z.nullable(
|
|
1286
|
+
v4.z.union([
|
|
1287
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1288
|
+
v4.z.array(v4.z.any()),
|
|
1289
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1290
|
+
])
|
|
1291
|
+
),
|
|
1172
1292
|
createdBy: v4.z.nullable(v4.z.string()),
|
|
1173
1293
|
updatedBy: v4.z.nullable(v4.z.string()),
|
|
1174
1294
|
createdAt: v4.z.nullable(v4.z.any()),
|
|
@@ -1189,11 +1309,41 @@ const fetchAdsResponseSchema = v4.z.array(
|
|
|
1189
1309
|
get status() {
|
|
1190
1310
|
return adStatusSchema;
|
|
1191
1311
|
},
|
|
1312
|
+
campaignId: v4.z.nullable(v4.z.string()),
|
|
1192
1313
|
content: v4.z.union([
|
|
1193
1314
|
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1194
1315
|
v4.z.array(v4.z.any()),
|
|
1195
1316
|
v4.z.object({}).catchall(v4.z.any())
|
|
1196
1317
|
]),
|
|
1318
|
+
keywords: v4.z.union([
|
|
1319
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1320
|
+
v4.z.array(v4.z.any()),
|
|
1321
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1322
|
+
]),
|
|
1323
|
+
negativeKeywords: v4.z.union([
|
|
1324
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1325
|
+
v4.z.array(v4.z.any()),
|
|
1326
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1327
|
+
]),
|
|
1328
|
+
disabledVenueKeywords: v4.z.union([
|
|
1329
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1330
|
+
v4.z.array(v4.z.any()),
|
|
1331
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1332
|
+
]),
|
|
1333
|
+
dismissedKeywords: v4.z.union([
|
|
1334
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1335
|
+
v4.z.array(v4.z.any()),
|
|
1336
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1337
|
+
]),
|
|
1338
|
+
publishedContentHash: v4.z.nullable(v4.z.string()),
|
|
1339
|
+
publishedAt: v4.z.nullable(v4.z.any()),
|
|
1340
|
+
pushedKeywords: v4.z.nullable(
|
|
1341
|
+
v4.z.union([
|
|
1342
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1343
|
+
v4.z.array(v4.z.any()),
|
|
1344
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1345
|
+
])
|
|
1346
|
+
),
|
|
1197
1347
|
createdBy: v4.z.nullable(v4.z.string()),
|
|
1198
1348
|
updatedBy: v4.z.nullable(v4.z.string()),
|
|
1199
1349
|
createdAt: v4.z.nullable(v4.z.any()),
|
|
@@ -1212,8 +1362,8 @@ const fetchAreaBookingsResponseSchema = v4.z.array(
|
|
|
1212
1362
|
get status() {
|
|
1213
1363
|
return areaBookingStatusSchema;
|
|
1214
1364
|
},
|
|
1215
|
-
|
|
1216
|
-
|
|
1365
|
+
guestFirstName: v4.z.optional(v4.z.string()),
|
|
1366
|
+
guestLastName: v4.z.optional(v4.z.string()),
|
|
1217
1367
|
totalPrice: v4.z.optional(
|
|
1218
1368
|
v4.z.int().min(-9007199254740991).max(9007199254740991)
|
|
1219
1369
|
),
|
|
@@ -2141,7 +2291,7 @@ const fetchTeamOrderResponseSchema = v4.z.object({
|
|
|
2141
2291
|
}),
|
|
2142
2292
|
participants: v4.z.array(
|
|
2143
2293
|
v4.z.object({
|
|
2144
|
-
|
|
2294
|
+
guestId: v4.z.string(),
|
|
2145
2295
|
basketId: v4.z.nullable(v4.z.string()),
|
|
2146
2296
|
orderId: v4.z.nullable(v4.z.string()),
|
|
2147
2297
|
participantNumber: v4.z.nullable(v4.z.int().max(9007199254740991).gt(0)),
|
|
@@ -2386,7 +2536,7 @@ const joinTeamOrderRequestSchema = v4.z.object({
|
|
|
2386
2536
|
const joinTeamOrderResponseSchema = v4.z.object({
|
|
2387
2537
|
teamOrderId: v4.z.uuid(),
|
|
2388
2538
|
basketId: v4.z.string(),
|
|
2389
|
-
|
|
2539
|
+
guestId: v4.z.string(),
|
|
2390
2540
|
get status() {
|
|
2391
2541
|
return deliveryAddressSchema.teamOrderStatusSchema;
|
|
2392
2542
|
},
|
|
@@ -2594,11 +2744,11 @@ const makeReservationRequestSchema = v4.z.object({
|
|
|
2594
2744
|
duration: v4.z.int().min(30).max(300).describe(
|
|
2595
2745
|
"Reservation duration in minutes. Defaults to 120 minutes if not specified. Range: 30-300 minutes."
|
|
2596
2746
|
).nullish(),
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2747
|
+
guestId: v4.z.uuid().describe("UUID of existing customer profile if available").nullish(),
|
|
2748
|
+
guestFirstName: v4.z.string().min(1).max(50).describe("First name of the customer making the reservation"),
|
|
2749
|
+
guestLastName: v4.z.string().min(1).max(50).describe("Last name of the customer making the reservation"),
|
|
2750
|
+
guestEmail: v4.z.email().describe("Email address for reservation confirmations and updates").nullish(),
|
|
2751
|
+
guestPhone: v4.z.string().min(1).describe(
|
|
2602
2752
|
"Phone number for reservation confirmations and updates. Include country code for international numbers."
|
|
2603
2753
|
).nullish(),
|
|
2604
2754
|
get contactPreference() {
|
|
@@ -2645,13 +2795,13 @@ const makeReservationResponseSchema = v4.z.object({
|
|
|
2645
2795
|
duration: v4.z.nullable(
|
|
2646
2796
|
v4.z.int().min(-9007199254740991).max(9007199254740991).describe("Reservation duration in minutes")
|
|
2647
2797
|
),
|
|
2648
|
-
|
|
2798
|
+
guestId: v4.z.nullable(
|
|
2649
2799
|
v4.z.uuid().describe("Link to customer profile if exists")
|
|
2650
2800
|
),
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2801
|
+
guestFirstName: v4.z.string().describe("First name of the customer"),
|
|
2802
|
+
guestLastName: v4.z.string().describe("Last name of the customer"),
|
|
2803
|
+
guestEmail: v4.z.nullable(v4.z.string().describe("Customer email address")),
|
|
2804
|
+
guestPhone: v4.z.nullable(v4.z.string().describe("Customer phone number")),
|
|
2655
2805
|
get contactPreference() {
|
|
2656
2806
|
return contactPreferenceSchema;
|
|
2657
2807
|
},
|
|
@@ -2742,9 +2892,9 @@ const placeOrderRequestSchema = v4.z.object({
|
|
|
2742
2892
|
return deliveryAddressSchema.fulfillmentTypeSchema;
|
|
2743
2893
|
},
|
|
2744
2894
|
fulfillmentAt: v4.z.iso.datetime().nullish(),
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2895
|
+
guestFirstName: v4.z.optional(v4.z.string()),
|
|
2896
|
+
guestLastName: v4.z.optional(v4.z.string()),
|
|
2897
|
+
guestEmail: v4.z.optional(v4.z.string()),
|
|
2748
2898
|
declaredReturns: v4.z.optional(
|
|
2749
2899
|
v4.z.array(
|
|
2750
2900
|
v4.z.object({
|
|
@@ -2800,12 +2950,29 @@ const removeFromBasketResponseSchema = v4.z.object({
|
|
|
2800
2950
|
}
|
|
2801
2951
|
});
|
|
2802
2952
|
|
|
2953
|
+
const reservationMessageStatusSchema = v4.z.enum(["draft", "sent"]);
|
|
2954
|
+
|
|
2803
2955
|
const reservationPromotionStatusSchema = v4.z.enum([
|
|
2804
2956
|
"applied",
|
|
2805
2957
|
"redeemed",
|
|
2806
2958
|
"expired"
|
|
2807
2959
|
]);
|
|
2808
2960
|
|
|
2961
|
+
const saveAdKeywordsRequestSchema = v4.z.object({
|
|
2962
|
+
venueAccessor: v4.z.string().min(1),
|
|
2963
|
+
adId: v4.z.string().min(1),
|
|
2964
|
+
keywords: v4.z.array(v4.z.string().min(1)),
|
|
2965
|
+
dismissedKeywords: v4.z.array(v4.z.string().min(1)),
|
|
2966
|
+
disabledVenueKeywords: v4.z.array(v4.z.string().min(1))
|
|
2967
|
+
});
|
|
2968
|
+
|
|
2969
|
+
const saveAdKeywordsResponseSchema = v4.z.object({
|
|
2970
|
+
success: v4.z.boolean(),
|
|
2971
|
+
keywords: v4.z.array(v4.z.string()),
|
|
2972
|
+
dismissedKeywords: v4.z.array(v4.z.string()),
|
|
2973
|
+
disabledVenueKeywords: v4.z.array(v4.z.string())
|
|
2974
|
+
});
|
|
2975
|
+
|
|
2809
2976
|
const scanTokenEntityTypeSchema = v4.z.enum(["order", "depositware"]);
|
|
2810
2977
|
|
|
2811
2978
|
const setArticleFeatureImageUploadBodySchema = v4.z.object({
|
|
@@ -2897,10 +3064,10 @@ const submitAreaBookingPayloadSchema = v4.z.object({
|
|
|
2897
3064
|
requestedStartTime: v4.z.optional(v4.z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/)),
|
|
2898
3065
|
requestedEndTime: v4.z.optional(v4.z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/)),
|
|
2899
3066
|
partySize: v4.z.int().max(9007199254740991).gt(0),
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
3067
|
+
guestFirstName: v4.z.string().min(1),
|
|
3068
|
+
guestLastName: v4.z.string().min(1),
|
|
3069
|
+
guestEmail: v4.z.email(),
|
|
3070
|
+
guestPhone: v4.z.optional(v4.z.string()),
|
|
2904
3071
|
message: v4.z.optional(v4.z.string()),
|
|
2905
3072
|
get source() {
|
|
2906
3073
|
return areaBookingRequestSourceSchema.optional();
|
|
@@ -2915,10 +3082,10 @@ const submitAreaBookingRequestResponseSchema = v4.z.object({
|
|
|
2915
3082
|
requestedStartTime: v4.z.nullable(v4.z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/)),
|
|
2916
3083
|
requestedEndTime: v4.z.nullable(v4.z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/)),
|
|
2917
3084
|
partySize: v4.z.int().min(-9007199254740991).max(9007199254740991),
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
3085
|
+
guestFirstName: v4.z.string(),
|
|
3086
|
+
guestLastName: v4.z.string(),
|
|
3087
|
+
guestEmail: v4.z.string(),
|
|
3088
|
+
guestPhone: v4.z.nullable(v4.z.string()),
|
|
2922
3089
|
message: v4.z.nullable(v4.z.string()),
|
|
2923
3090
|
get source() {
|
|
2924
3091
|
return areaBookingRequestSourceSchema;
|
|
@@ -3069,6 +3236,13 @@ const venueAssetTypeSchema = v4.z.enum([
|
|
|
3069
3236
|
|
|
3070
3237
|
const venueChargeKindSchema = v4.z.enum(["base", "addon"]);
|
|
3071
3238
|
|
|
3239
|
+
const venueEmailSenderStatusSchema = v4.z.enum([
|
|
3240
|
+
"pending",
|
|
3241
|
+
"verified",
|
|
3242
|
+
"failed",
|
|
3243
|
+
"temporary_failure"
|
|
3244
|
+
]);
|
|
3245
|
+
|
|
3072
3246
|
const venueTypeSchema = v4.z.enum([
|
|
3073
3247
|
"restaurant",
|
|
3074
3248
|
"fine_dining_restaurant",
|
|
@@ -3196,9 +3370,12 @@ const schemas = {
|
|
|
3196
3370
|
ReduceDeltaPaymentIntentRequest: reduceDeltaPaymentIntentRequestSchema,
|
|
3197
3371
|
ReduceDeltaPaymentIntentResponse: reduceDeltaPaymentIntentResponseSchema,
|
|
3198
3372
|
RemoveFromBasketResponse: removeFromBasketResponseSchema,
|
|
3373
|
+
ReservationMessageStatus: reservationMessageStatusSchema,
|
|
3199
3374
|
ReservationPromotionStatus: reservationPromotionStatusSchema,
|
|
3200
3375
|
ReservationStatus: reservationStatusSchema,
|
|
3201
3376
|
RitualType: ritualTypeSchema,
|
|
3377
|
+
SaveAdKeywordsRequest: saveAdKeywordsRequestSchema,
|
|
3378
|
+
SaveAdKeywordsResponse: saveAdKeywordsResponseSchema,
|
|
3202
3379
|
ScanTokenEntityType: scanTokenEntityTypeSchema,
|
|
3203
3380
|
SetArticleFeatureImageUploadBody: setArticleFeatureImageUploadBodySchema,
|
|
3204
3381
|
SetBasketDeclaredReturnsRequest: setBasketDeclaredReturnsRequestSchema,
|
|
@@ -3232,6 +3409,7 @@ const schemas = {
|
|
|
3232
3409
|
UploadAssetResponse: uploadAssetResponseSchema,
|
|
3233
3410
|
VenueAssetType: venueAssetTypeSchema,
|
|
3234
3411
|
VenueChargeKind: venueChargeKindSchema,
|
|
3412
|
+
VenueEmailSenderStatus: venueEmailSenderStatusSchema,
|
|
3235
3413
|
VenueType: venueTypeSchema,
|
|
3236
3414
|
VenueUserStatus: venueUserStatusSchema
|
|
3237
3415
|
};
|