order3000 1.11.0 → 1.13.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 +94 -4
- package/dist/client.d.cts +58 -6
- package/dist/client.d.mts +58 -6
- package/dist/client.mjs +94 -4
- package/dist/{index-CQHgJH4m.d.cts → index-CJebGltI.d.cts} +542 -35
- package/dist/{index-CQHgJH4m.d.mts → index-CJebGltI.d.mts} +542 -35
- package/dist/menu.d.cts +1 -1
- package/dist/menu.d.mts +1 -1
- package/dist/schemas.cjs +858 -50
- package/dist/schemas.d.cts +723 -2
- package/dist/schemas.d.mts +723 -2
- package/dist/schemas.mjs +858 -50
- package/package.json +3 -3
package/dist/schemas.mjs
CHANGED
|
@@ -11,6 +11,11 @@ const abandonBasketResponseSchema = z.object({
|
|
|
11
11
|
|
|
12
12
|
const actorTypeSchema = z.enum(["human", "robot"]);
|
|
13
13
|
|
|
14
|
+
const adBiddingStrategySchema = z.enum([
|
|
15
|
+
"MAXIMIZE_CONVERSIONS",
|
|
16
|
+
"MAXIMIZE_CLICKS"
|
|
17
|
+
]);
|
|
18
|
+
|
|
14
19
|
const adChannelSchema = z.enum(["google", "facebook", "instagram"]);
|
|
15
20
|
|
|
16
21
|
const adOwnerTypeSchema = z.enum([
|
|
@@ -241,6 +246,52 @@ const articleMentionCountsSchema = z.object({
|
|
|
241
246
|
|
|
242
247
|
const articleStatusSchema = z.enum(["draft", "published"]);
|
|
243
248
|
|
|
249
|
+
const assetWithPublicUrlSchema = z.object({
|
|
250
|
+
id: z.string(),
|
|
251
|
+
get type() {
|
|
252
|
+
return assetTypeSchema;
|
|
253
|
+
},
|
|
254
|
+
tags: z.nullable(z.array(z.string())),
|
|
255
|
+
bucket: z.string(),
|
|
256
|
+
storagePath: z.string(),
|
|
257
|
+
filename: z.string(),
|
|
258
|
+
contentType: z.string(),
|
|
259
|
+
sizeBytes: z.int().min(-2147483648).max(2147483647),
|
|
260
|
+
caption: z.union([
|
|
261
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
262
|
+
z.array(z.any()),
|
|
263
|
+
z.object({}).catchall(z.any())
|
|
264
|
+
]),
|
|
265
|
+
alt: z.union([
|
|
266
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
267
|
+
z.array(z.any()),
|
|
268
|
+
z.object({}).catchall(z.any())
|
|
269
|
+
]),
|
|
270
|
+
metadata: z.nullable(
|
|
271
|
+
z.union([
|
|
272
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
273
|
+
z.array(z.any()),
|
|
274
|
+
z.object({}).catchall(z.any())
|
|
275
|
+
])
|
|
276
|
+
),
|
|
277
|
+
cropArea: z.nullable(
|
|
278
|
+
z.union([
|
|
279
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
280
|
+
z.array(z.any()),
|
|
281
|
+
z.object({}).catchall(z.any())
|
|
282
|
+
])
|
|
283
|
+
),
|
|
284
|
+
isActive: z.boolean(),
|
|
285
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
286
|
+
createdAt: z.nullable(z.any()),
|
|
287
|
+
updatedAt: z.nullable(z.any()),
|
|
288
|
+
createdBy: z.nullable(z.string()),
|
|
289
|
+
updatedBy: z.nullable(z.string()),
|
|
290
|
+
venueId: z.nullable(z.string()),
|
|
291
|
+
contentHash: z.nullable(z.string()),
|
|
292
|
+
publicUrl: z.nullable(z.string())
|
|
293
|
+
});
|
|
294
|
+
|
|
244
295
|
const autoExtendFulfillmentIfExpiredRequestSchema = z.object({
|
|
245
296
|
publicId: z.string().min(1),
|
|
246
297
|
sessionId: z.string().min(1),
|
|
@@ -274,6 +325,14 @@ const beverageCategorySchema = z.enum([
|
|
|
274
325
|
|
|
275
326
|
const billingModeSchema = z.enum(["single_anchor", "split"]);
|
|
276
327
|
|
|
328
|
+
const bookingChannelSchema = z.enum(["reservation", "order"]);
|
|
329
|
+
|
|
330
|
+
const bookletSectionInputSchema = z.object({
|
|
331
|
+
publicationAccessor: z.string().min(1),
|
|
332
|
+
pageStart: z.optional(z.int().min(1).max(9007199254740991)),
|
|
333
|
+
pageEnd: z.optional(z.int().min(1).max(9007199254740991))
|
|
334
|
+
});
|
|
335
|
+
|
|
277
336
|
const cancelSubscriptionRequestSchema = z.object({
|
|
278
337
|
subscriberId: z.string().min(1)
|
|
279
338
|
});
|
|
@@ -302,6 +361,21 @@ const cancellationReasonSchema = z.enum([
|
|
|
302
361
|
"restaurant_request"
|
|
303
362
|
]);
|
|
304
363
|
|
|
364
|
+
const composeMenuPublicationBookletRequestSchema = z.object({
|
|
365
|
+
venueAccessor: z.string().min(1),
|
|
366
|
+
bookletAccessor: z.optional(z.string().min(1)),
|
|
367
|
+
get sections() {
|
|
368
|
+
return z.array(bookletSectionInputSchema).min(1).optional();
|
|
369
|
+
},
|
|
370
|
+
locale: z.optional(z.string().min(2).max(5))
|
|
371
|
+
});
|
|
372
|
+
|
|
373
|
+
const composeMenuPublicationBookletResponseSchema = z.object({
|
|
374
|
+
fileName: z.string(),
|
|
375
|
+
pages: z.int().min(1).max(9007199254740991),
|
|
376
|
+
pdfBase64: z.string()
|
|
377
|
+
});
|
|
378
|
+
|
|
305
379
|
const confirmOrderRequestSchema = z.object({
|
|
306
380
|
venueAccessor: z.string().min(1),
|
|
307
381
|
orderId: z.string().min(1),
|
|
@@ -663,6 +737,17 @@ const createAdResponseSchema = z.object({
|
|
|
663
737
|
z.array(z.any()),
|
|
664
738
|
z.object({}).catchall(z.any())
|
|
665
739
|
]),
|
|
740
|
+
manageCallScheduleSelf: z.boolean(),
|
|
741
|
+
callScheduleRitualAccessors: z.union([
|
|
742
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
743
|
+
z.array(z.any()),
|
|
744
|
+
z.object({}).catchall(z.any())
|
|
745
|
+
]),
|
|
746
|
+
phone: z.nullable(z.string()),
|
|
747
|
+
manageBiddingStrategySelf: z.boolean(),
|
|
748
|
+
get biddingStrategy() {
|
|
749
|
+
return adBiddingStrategySchema;
|
|
750
|
+
},
|
|
666
751
|
publishedContentHash: z.nullable(z.string()),
|
|
667
752
|
publishedAt: z.nullable(z.any()),
|
|
668
753
|
pushedKeywords: z.nullable(
|
|
@@ -841,6 +926,72 @@ const createEventResponseSchema = z.object({
|
|
|
841
926
|
updatedAt: z.nullable(z.any())
|
|
842
927
|
}).describe("Successfully created event");
|
|
843
928
|
|
|
929
|
+
const createMenuPublicationRequestSchema = z.object({
|
|
930
|
+
venueAccessor: z.string().min(1),
|
|
931
|
+
menuAccessor: z.string().min(1),
|
|
932
|
+
name: z.optional(z.string().min(1))
|
|
933
|
+
});
|
|
934
|
+
|
|
935
|
+
const publicationPaletteSchema = z.enum(["primary", "secondary"]);
|
|
936
|
+
|
|
937
|
+
const publicationPaperSizeSchema = z.enum([
|
|
938
|
+
"a4",
|
|
939
|
+
"a5",
|
|
940
|
+
"letter",
|
|
941
|
+
"legal"
|
|
942
|
+
]);
|
|
943
|
+
|
|
944
|
+
const publicationSourceTypeSchema = z.enum([
|
|
945
|
+
"menu",
|
|
946
|
+
"dish",
|
|
947
|
+
"beverage",
|
|
948
|
+
"event",
|
|
949
|
+
"venue"
|
|
950
|
+
]);
|
|
951
|
+
|
|
952
|
+
const publicationTypeSchema = z.enum([
|
|
953
|
+
"menu",
|
|
954
|
+
"flyer",
|
|
955
|
+
"wine_list",
|
|
956
|
+
"about",
|
|
957
|
+
"cover",
|
|
958
|
+
"booklet",
|
|
959
|
+
"custom"
|
|
960
|
+
]);
|
|
961
|
+
|
|
962
|
+
const createMenuPublicationResponseSchema = z.object({
|
|
963
|
+
id: z.string(),
|
|
964
|
+
venueId: z.string(),
|
|
965
|
+
accessor: z.string(),
|
|
966
|
+
name: z.string(),
|
|
967
|
+
get type() {
|
|
968
|
+
return publicationTypeSchema;
|
|
969
|
+
},
|
|
970
|
+
get paperSize() {
|
|
971
|
+
return publicationPaperSizeSchema;
|
|
972
|
+
},
|
|
973
|
+
get palette() {
|
|
974
|
+
return publicationPaletteSchema;
|
|
975
|
+
},
|
|
976
|
+
designDoc: z.union([
|
|
977
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
978
|
+
z.array(z.any()),
|
|
979
|
+
z.object({}).catchall(z.any())
|
|
980
|
+
]),
|
|
981
|
+
renderedAssetId: z.nullable(z.string()),
|
|
982
|
+
templateId: z.nullable(z.string()),
|
|
983
|
+
get sourceType() {
|
|
984
|
+
return publicationSourceTypeSchema;
|
|
985
|
+
},
|
|
986
|
+
sourceId: z.nullable(z.string()),
|
|
987
|
+
isActive: z.boolean(),
|
|
988
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
989
|
+
createdAt: z.nullable(z.any()),
|
|
990
|
+
createdBy: z.nullable(z.string()),
|
|
991
|
+
updatedAt: z.nullable(z.any()),
|
|
992
|
+
updatedBy: z.nullable(z.string())
|
|
993
|
+
});
|
|
994
|
+
|
|
844
995
|
const createPaymentIntentRequestSchema = z.object({
|
|
845
996
|
venueAccessor: z.string().min(1),
|
|
846
997
|
basketId: z.string().min(1),
|
|
@@ -1032,6 +1183,17 @@ const deleteAdResponseSchema = z.object({
|
|
|
1032
1183
|
z.array(z.any()),
|
|
1033
1184
|
z.object({}).catchall(z.any())
|
|
1034
1185
|
]),
|
|
1186
|
+
manageCallScheduleSelf: z.boolean(),
|
|
1187
|
+
callScheduleRitualAccessors: z.union([
|
|
1188
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1189
|
+
z.array(z.any()),
|
|
1190
|
+
z.object({}).catchall(z.any())
|
|
1191
|
+
]),
|
|
1192
|
+
phone: z.nullable(z.string()),
|
|
1193
|
+
manageBiddingStrategySelf: z.boolean(),
|
|
1194
|
+
get biddingStrategy() {
|
|
1195
|
+
return adBiddingStrategySchema;
|
|
1196
|
+
},
|
|
1035
1197
|
publishedContentHash: z.nullable(z.string()),
|
|
1036
1198
|
publishedAt: z.nullable(z.any()),
|
|
1037
1199
|
pushedKeywords: z.nullable(
|
|
@@ -1253,6 +1415,17 @@ const editAdResponseSchema = z.object({
|
|
|
1253
1415
|
z.array(z.any()),
|
|
1254
1416
|
z.object({}).catchall(z.any())
|
|
1255
1417
|
]),
|
|
1418
|
+
manageCallScheduleSelf: z.boolean(),
|
|
1419
|
+
callScheduleRitualAccessors: z.union([
|
|
1420
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1421
|
+
z.array(z.any()),
|
|
1422
|
+
z.object({}).catchall(z.any())
|
|
1423
|
+
]),
|
|
1424
|
+
phone: z.nullable(z.string()),
|
|
1425
|
+
manageBiddingStrategySelf: z.boolean(),
|
|
1426
|
+
get biddingStrategy() {
|
|
1427
|
+
return adBiddingStrategySchema;
|
|
1428
|
+
},
|
|
1256
1429
|
publishedContentHash: z.nullable(z.string()),
|
|
1257
1430
|
publishedAt: z.nullable(z.any()),
|
|
1258
1431
|
pushedKeywords: z.nullable(
|
|
@@ -1330,11 +1503,152 @@ const editArticleResponseSchema = z.object({
|
|
|
1330
1503
|
"A venue's article. `content` is a TipTap JSON document; treat it as opaque on the wire. `featureImage` is resolved per-locale with a fallback to the venue's primary locale. `ogImage` overrides the social-card image when set; `null` means it falls back to `featureImage`."
|
|
1331
1504
|
);
|
|
1332
1505
|
|
|
1506
|
+
const editBeverageRequestSchema = z.object({
|
|
1507
|
+
id: z.string(),
|
|
1508
|
+
venueId: z.optional(z.string()),
|
|
1509
|
+
accessor: z.optional(z.string()),
|
|
1510
|
+
name: z.optional(
|
|
1511
|
+
z.union([
|
|
1512
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1513
|
+
z.array(z.any()),
|
|
1514
|
+
z.object({}).catchall(z.any())
|
|
1515
|
+
])
|
|
1516
|
+
),
|
|
1517
|
+
shortName: z.union([
|
|
1518
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1519
|
+
z.array(z.any()),
|
|
1520
|
+
z.object({}).catchall(z.any())
|
|
1521
|
+
]).nullish(),
|
|
1522
|
+
kitchenName: z.union([
|
|
1523
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1524
|
+
z.array(z.any()),
|
|
1525
|
+
z.object({}).catchall(z.any())
|
|
1526
|
+
]).nullish(),
|
|
1527
|
+
subtitle: z.union([
|
|
1528
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1529
|
+
z.array(z.any()),
|
|
1530
|
+
z.object({}).catchall(z.any())
|
|
1531
|
+
]).nullish(),
|
|
1532
|
+
description: z.union([
|
|
1533
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1534
|
+
z.array(z.any()),
|
|
1535
|
+
z.object({}).catchall(z.any())
|
|
1536
|
+
]).nullish(),
|
|
1537
|
+
longDescription: z.union([
|
|
1538
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1539
|
+
z.array(z.any()),
|
|
1540
|
+
z.object({}).catchall(z.any())
|
|
1541
|
+
]).nullish(),
|
|
1542
|
+
isAlcoholic: z.optional(z.boolean()),
|
|
1543
|
+
alcoholPercentage: z.string().nullish(),
|
|
1544
|
+
volumes: z.union([
|
|
1545
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1546
|
+
z.array(z.any()),
|
|
1547
|
+
z.object({}).catchall(z.any())
|
|
1548
|
+
]).nullish(),
|
|
1549
|
+
get category() {
|
|
1550
|
+
return beverageCategorySchema.optional();
|
|
1551
|
+
},
|
|
1552
|
+
categoryAttributes: z.union([
|
|
1553
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1554
|
+
z.array(z.any()),
|
|
1555
|
+
z.object({}).catchall(z.any())
|
|
1556
|
+
]).nullish(),
|
|
1557
|
+
servingRecommendations: z.union([
|
|
1558
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1559
|
+
z.array(z.any()),
|
|
1560
|
+
z.object({}).catchall(z.any())
|
|
1561
|
+
]).nullish(),
|
|
1562
|
+
isActive: z.optional(z.boolean()),
|
|
1563
|
+
sortIndex: z.string().max(255).nullish(),
|
|
1564
|
+
venueAccessor: z.string().min(1)
|
|
1565
|
+
});
|
|
1566
|
+
|
|
1567
|
+
const editBeverageResponseSchema = z.object({
|
|
1568
|
+
id: z.string(),
|
|
1569
|
+
venueId: z.string(),
|
|
1570
|
+
accessor: z.string(),
|
|
1571
|
+
name: z.union([
|
|
1572
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1573
|
+
z.array(z.any()),
|
|
1574
|
+
z.object({}).catchall(z.any())
|
|
1575
|
+
]),
|
|
1576
|
+
shortName: z.nullable(
|
|
1577
|
+
z.union([
|
|
1578
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1579
|
+
z.array(z.any()),
|
|
1580
|
+
z.object({}).catchall(z.any())
|
|
1581
|
+
])
|
|
1582
|
+
),
|
|
1583
|
+
kitchenName: z.nullable(
|
|
1584
|
+
z.union([
|
|
1585
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1586
|
+
z.array(z.any()),
|
|
1587
|
+
z.object({}).catchall(z.any())
|
|
1588
|
+
])
|
|
1589
|
+
),
|
|
1590
|
+
subtitle: z.nullable(
|
|
1591
|
+
z.union([
|
|
1592
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1593
|
+
z.array(z.any()),
|
|
1594
|
+
z.object({}).catchall(z.any())
|
|
1595
|
+
])
|
|
1596
|
+
),
|
|
1597
|
+
description: z.nullable(
|
|
1598
|
+
z.union([
|
|
1599
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1600
|
+
z.array(z.any()),
|
|
1601
|
+
z.object({}).catchall(z.any())
|
|
1602
|
+
])
|
|
1603
|
+
),
|
|
1604
|
+
longDescription: z.nullable(
|
|
1605
|
+
z.union([
|
|
1606
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1607
|
+
z.array(z.any()),
|
|
1608
|
+
z.object({}).catchall(z.any())
|
|
1609
|
+
])
|
|
1610
|
+
),
|
|
1611
|
+
isAlcoholic: z.boolean(),
|
|
1612
|
+
alcoholPercentage: z.nullable(z.string()),
|
|
1613
|
+
volumes: z.nullable(
|
|
1614
|
+
z.union([
|
|
1615
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1616
|
+
z.array(z.any()),
|
|
1617
|
+
z.object({}).catchall(z.any())
|
|
1618
|
+
])
|
|
1619
|
+
),
|
|
1620
|
+
get category() {
|
|
1621
|
+
return beverageCategorySchema;
|
|
1622
|
+
},
|
|
1623
|
+
categoryAttributes: z.nullable(
|
|
1624
|
+
z.union([
|
|
1625
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1626
|
+
z.array(z.any()),
|
|
1627
|
+
z.object({}).catchall(z.any())
|
|
1628
|
+
])
|
|
1629
|
+
),
|
|
1630
|
+
servingRecommendations: z.nullable(
|
|
1631
|
+
z.union([
|
|
1632
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1633
|
+
z.array(z.any()),
|
|
1634
|
+
z.object({}).catchall(z.any())
|
|
1635
|
+
])
|
|
1636
|
+
),
|
|
1637
|
+
isActive: z.boolean(),
|
|
1638
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
1639
|
+
updatedAt: z.nullable(z.any()),
|
|
1640
|
+
updatedBy: z.nullable(z.string()),
|
|
1641
|
+
createdAt: z.nullable(z.any()),
|
|
1642
|
+
createdBy: z.nullable(z.string())
|
|
1643
|
+
});
|
|
1644
|
+
|
|
1333
1645
|
const editDishRequestSchema = z.object({
|
|
1334
1646
|
venueAccessor: z.string().min(1),
|
|
1335
1647
|
id: z.string(),
|
|
1336
1648
|
name: z.object({}).catchall(z.string().min(1)),
|
|
1337
1649
|
shortName: z.object({}).catchall(z.string()).nullish(),
|
|
1650
|
+
kitchenName: z.object({}).catchall(z.string()).nullish(),
|
|
1651
|
+
subtitle: z.object({}).catchall(z.string()).nullish(),
|
|
1338
1652
|
description: z.object({}).catchall(z.string()).nullish(),
|
|
1339
1653
|
longDescription: z.object({}).catchall(z.string()).nullish(),
|
|
1340
1654
|
suggestedPrice: z.number().nullish(),
|
|
@@ -1365,6 +1679,20 @@ const editDishResponseSchema = z.object({
|
|
|
1365
1679
|
z.object({}).catchall(z.any())
|
|
1366
1680
|
])
|
|
1367
1681
|
),
|
|
1682
|
+
kitchenName: z.nullable(
|
|
1683
|
+
z.union([
|
|
1684
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1685
|
+
z.array(z.any()),
|
|
1686
|
+
z.object({}).catchall(z.any())
|
|
1687
|
+
])
|
|
1688
|
+
),
|
|
1689
|
+
subtitle: z.nullable(
|
|
1690
|
+
z.union([
|
|
1691
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1692
|
+
z.array(z.any()),
|
|
1693
|
+
z.object({}).catchall(z.any())
|
|
1694
|
+
])
|
|
1695
|
+
),
|
|
1368
1696
|
description: z.nullable(
|
|
1369
1697
|
z.union([
|
|
1370
1698
|
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
@@ -1498,6 +1826,9 @@ const scheduleSchema = z.object({
|
|
|
1498
1826
|
id: z.string(),
|
|
1499
1827
|
startTime: z.string(),
|
|
1500
1828
|
endTime: z.nullable(z.string()),
|
|
1829
|
+
get channel() {
|
|
1830
|
+
return bookingChannelSchema;
|
|
1831
|
+
},
|
|
1501
1832
|
isActive: z.nullable(z.boolean()),
|
|
1502
1833
|
isSchedulable: z.nullable(z.boolean()),
|
|
1503
1834
|
maxBookings: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
@@ -1545,6 +1876,9 @@ const scheduleSchema = z.object({
|
|
|
1545
1876
|
id: z.string(),
|
|
1546
1877
|
startTime: z.string(),
|
|
1547
1878
|
endTime: z.nullable(z.string()),
|
|
1879
|
+
get channel() {
|
|
1880
|
+
return bookingChannelSchema;
|
|
1881
|
+
},
|
|
1548
1882
|
isActive: z.nullable(z.boolean()),
|
|
1549
1883
|
isSchedulable: z.nullable(z.boolean()),
|
|
1550
1884
|
maxBookings: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
@@ -1565,6 +1899,32 @@ const scheduleSchema = z.object({
|
|
|
1565
1899
|
)
|
|
1566
1900
|
})
|
|
1567
1901
|
)
|
|
1902
|
+
),
|
|
1903
|
+
scheduleSlotPolicies: z.optional(
|
|
1904
|
+
z.array(
|
|
1905
|
+
z.object({
|
|
1906
|
+
id: z.string(),
|
|
1907
|
+
scheduleId: z.string(),
|
|
1908
|
+
get channel() {
|
|
1909
|
+
return bookingChannelSchema;
|
|
1910
|
+
},
|
|
1911
|
+
get slotMode() {
|
|
1912
|
+
return slotModeSchema;
|
|
1913
|
+
},
|
|
1914
|
+
intervalDuration: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1915
|
+
duration: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1916
|
+
bookingOpensAtDays: z.nullable(
|
|
1917
|
+
z.int().min(-2147483648).max(2147483647)
|
|
1918
|
+
),
|
|
1919
|
+
bookingClosesAtOffset: z.nullable(
|
|
1920
|
+
z.int().min(-2147483648).max(2147483647)
|
|
1921
|
+
),
|
|
1922
|
+
updatedAt: z.nullable(z.any()),
|
|
1923
|
+
updatedBy: z.nullable(z.string()),
|
|
1924
|
+
createdAt: z.nullable(z.any()),
|
|
1925
|
+
createdBy: z.nullable(z.string())
|
|
1926
|
+
})
|
|
1927
|
+
)
|
|
1568
1928
|
)
|
|
1569
1929
|
});
|
|
1570
1930
|
|
|
@@ -1723,6 +2083,17 @@ const editMetaAdResponseSchema = z.object({
|
|
|
1723
2083
|
z.array(z.any()),
|
|
1724
2084
|
z.object({}).catchall(z.any())
|
|
1725
2085
|
]),
|
|
2086
|
+
manageCallScheduleSelf: z.boolean(),
|
|
2087
|
+
callScheduleRitualAccessors: z.union([
|
|
2088
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2089
|
+
z.array(z.any()),
|
|
2090
|
+
z.object({}).catchall(z.any())
|
|
2091
|
+
]),
|
|
2092
|
+
phone: z.nullable(z.string()),
|
|
2093
|
+
manageBiddingStrategySelf: z.boolean(),
|
|
2094
|
+
get biddingStrategy() {
|
|
2095
|
+
return adBiddingStrategySchema;
|
|
2096
|
+
},
|
|
1726
2097
|
publishedContentHash: z.nullable(z.string()),
|
|
1727
2098
|
publishedAt: z.nullable(z.any()),
|
|
1728
2099
|
pushedKeywords: z.nullable(
|
|
@@ -1749,6 +2120,8 @@ const entityOwnerTypeSchema = z.enum([
|
|
|
1749
2120
|
"ritual"
|
|
1750
2121
|
]);
|
|
1751
2122
|
|
|
2123
|
+
const enumCenterLeftRightSchema = z.enum(["center", "left", "right"]);
|
|
2124
|
+
|
|
1752
2125
|
const enumFalseSchema = z.enum(["false"]);
|
|
1753
2126
|
|
|
1754
2127
|
const enumTrueSchema = z.enum(["true"]);
|
|
@@ -1872,6 +2245,17 @@ const fetchAdResponseSchema = z.object({
|
|
|
1872
2245
|
z.array(z.any()),
|
|
1873
2246
|
z.object({}).catchall(z.any())
|
|
1874
2247
|
]),
|
|
2248
|
+
manageCallScheduleSelf: z.boolean(),
|
|
2249
|
+
callScheduleRitualAccessors: z.union([
|
|
2250
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2251
|
+
z.array(z.any()),
|
|
2252
|
+
z.object({}).catchall(z.any())
|
|
2253
|
+
]),
|
|
2254
|
+
phone: z.nullable(z.string()),
|
|
2255
|
+
manageBiddingStrategySelf: z.boolean(),
|
|
2256
|
+
get biddingStrategy() {
|
|
2257
|
+
return adBiddingStrategySchema;
|
|
2258
|
+
},
|
|
1875
2259
|
publishedContentHash: z.nullable(z.string()),
|
|
1876
2260
|
publishedAt: z.nullable(z.any()),
|
|
1877
2261
|
pushedKeywords: z.nullable(
|
|
@@ -1969,6 +2353,17 @@ const fetchAdsResponseSchema = z.array(
|
|
|
1969
2353
|
z.array(z.any()),
|
|
1970
2354
|
z.object({}).catchall(z.any())
|
|
1971
2355
|
]),
|
|
2356
|
+
manageCallScheduleSelf: z.boolean(),
|
|
2357
|
+
callScheduleRitualAccessors: z.union([
|
|
2358
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2359
|
+
z.array(z.any()),
|
|
2360
|
+
z.object({}).catchall(z.any())
|
|
2361
|
+
]),
|
|
2362
|
+
phone: z.nullable(z.string()),
|
|
2363
|
+
manageBiddingStrategySelf: z.boolean(),
|
|
2364
|
+
get biddingStrategy() {
|
|
2365
|
+
return adBiddingStrategySchema;
|
|
2366
|
+
},
|
|
1972
2367
|
publishedContentHash: z.nullable(z.string()),
|
|
1973
2368
|
publishedAt: z.nullable(z.any()),
|
|
1974
2369
|
pushedKeywords: z.nullable(
|
|
@@ -2249,6 +2644,87 @@ const fetchBasketResponseSchema = z.object({
|
|
|
2249
2644
|
updatedAt: z.nullable(z.string())
|
|
2250
2645
|
});
|
|
2251
2646
|
|
|
2647
|
+
const fetchBeverageResponseSchema = z.object({
|
|
2648
|
+
id: z.string(),
|
|
2649
|
+
venueId: z.string(),
|
|
2650
|
+
accessor: z.string(),
|
|
2651
|
+
name: z.union([
|
|
2652
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2653
|
+
z.array(z.any()),
|
|
2654
|
+
z.object({}).catchall(z.any())
|
|
2655
|
+
]),
|
|
2656
|
+
shortName: z.nullable(
|
|
2657
|
+
z.union([
|
|
2658
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2659
|
+
z.array(z.any()),
|
|
2660
|
+
z.object({}).catchall(z.any())
|
|
2661
|
+
])
|
|
2662
|
+
),
|
|
2663
|
+
kitchenName: z.nullable(
|
|
2664
|
+
z.union([
|
|
2665
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2666
|
+
z.array(z.any()),
|
|
2667
|
+
z.object({}).catchall(z.any())
|
|
2668
|
+
])
|
|
2669
|
+
),
|
|
2670
|
+
subtitle: z.nullable(
|
|
2671
|
+
z.union([
|
|
2672
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2673
|
+
z.array(z.any()),
|
|
2674
|
+
z.object({}).catchall(z.any())
|
|
2675
|
+
])
|
|
2676
|
+
),
|
|
2677
|
+
description: z.nullable(
|
|
2678
|
+
z.union([
|
|
2679
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2680
|
+
z.array(z.any()),
|
|
2681
|
+
z.object({}).catchall(z.any())
|
|
2682
|
+
])
|
|
2683
|
+
),
|
|
2684
|
+
longDescription: z.nullable(
|
|
2685
|
+
z.union([
|
|
2686
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2687
|
+
z.array(z.any()),
|
|
2688
|
+
z.object({}).catchall(z.any())
|
|
2689
|
+
])
|
|
2690
|
+
),
|
|
2691
|
+
isAlcoholic: z.boolean(),
|
|
2692
|
+
alcoholPercentage: z.nullable(z.string()),
|
|
2693
|
+
volumes: z.nullable(
|
|
2694
|
+
z.union([
|
|
2695
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2696
|
+
z.array(z.any()),
|
|
2697
|
+
z.object({}).catchall(z.any())
|
|
2698
|
+
])
|
|
2699
|
+
),
|
|
2700
|
+
get category() {
|
|
2701
|
+
return beverageCategorySchema;
|
|
2702
|
+
},
|
|
2703
|
+
categoryAttributes: z.nullable(
|
|
2704
|
+
z.union([
|
|
2705
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2706
|
+
z.array(z.any()),
|
|
2707
|
+
z.object({}).catchall(z.any())
|
|
2708
|
+
])
|
|
2709
|
+
),
|
|
2710
|
+
servingRecommendations: z.nullable(
|
|
2711
|
+
z.union([
|
|
2712
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2713
|
+
z.array(z.any()),
|
|
2714
|
+
z.object({}).catchall(z.any())
|
|
2715
|
+
])
|
|
2716
|
+
),
|
|
2717
|
+
isActive: z.boolean(),
|
|
2718
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
2719
|
+
updatedAt: z.nullable(z.any()),
|
|
2720
|
+
updatedBy: z.nullable(z.string()),
|
|
2721
|
+
createdAt: z.nullable(z.any()),
|
|
2722
|
+
createdBy: z.nullable(z.string()),
|
|
2723
|
+
get assets() {
|
|
2724
|
+
return z.array(assetWithPublicUrlSchema);
|
|
2725
|
+
}
|
|
2726
|
+
});
|
|
2727
|
+
|
|
2252
2728
|
const fetchDishResponseSchema = z.object({
|
|
2253
2729
|
id: z.string(),
|
|
2254
2730
|
venueId: z.string(),
|
|
@@ -2265,6 +2741,20 @@ const fetchDishResponseSchema = z.object({
|
|
|
2265
2741
|
z.object({}).catchall(z.any())
|
|
2266
2742
|
])
|
|
2267
2743
|
),
|
|
2744
|
+
kitchenName: z.nullable(
|
|
2745
|
+
z.union([
|
|
2746
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2747
|
+
z.array(z.any()),
|
|
2748
|
+
z.object({}).catchall(z.any())
|
|
2749
|
+
])
|
|
2750
|
+
),
|
|
2751
|
+
subtitle: z.nullable(
|
|
2752
|
+
z.union([
|
|
2753
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2754
|
+
z.array(z.any()),
|
|
2755
|
+
z.object({}).catchall(z.any())
|
|
2756
|
+
])
|
|
2757
|
+
),
|
|
2268
2758
|
description: z.nullable(
|
|
2269
2759
|
z.union([
|
|
2270
2760
|
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
@@ -2294,53 +2784,9 @@ const fetchDishResponseSchema = z.object({
|
|
|
2294
2784
|
updatedBy: z.nullable(z.string()),
|
|
2295
2785
|
createdAt: z.nullable(z.any()),
|
|
2296
2786
|
createdBy: z.nullable(z.string()),
|
|
2297
|
-
assets
|
|
2298
|
-
z.
|
|
2299
|
-
|
|
2300
|
-
get type() {
|
|
2301
|
-
return assetTypeSchema;
|
|
2302
|
-
},
|
|
2303
|
-
tags: z.nullable(z.array(z.string())),
|
|
2304
|
-
bucket: z.string(),
|
|
2305
|
-
storagePath: z.string(),
|
|
2306
|
-
filename: z.string(),
|
|
2307
|
-
contentType: z.string(),
|
|
2308
|
-
sizeBytes: z.int().min(-2147483648).max(2147483647),
|
|
2309
|
-
caption: z.union([
|
|
2310
|
-
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2311
|
-
z.array(z.any()),
|
|
2312
|
-
z.object({}).catchall(z.any())
|
|
2313
|
-
]),
|
|
2314
|
-
alt: z.union([
|
|
2315
|
-
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2316
|
-
z.array(z.any()),
|
|
2317
|
-
z.object({}).catchall(z.any())
|
|
2318
|
-
]),
|
|
2319
|
-
metadata: z.nullable(
|
|
2320
|
-
z.union([
|
|
2321
|
-
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2322
|
-
z.array(z.any()),
|
|
2323
|
-
z.object({}).catchall(z.any())
|
|
2324
|
-
])
|
|
2325
|
-
),
|
|
2326
|
-
cropArea: z.nullable(
|
|
2327
|
-
z.union([
|
|
2328
|
-
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2329
|
-
z.array(z.any()),
|
|
2330
|
-
z.object({}).catchall(z.any())
|
|
2331
|
-
])
|
|
2332
|
-
),
|
|
2333
|
-
isActive: z.boolean(),
|
|
2334
|
-
sortIndex: z.nullable(z.string().max(255)),
|
|
2335
|
-
createdAt: z.nullable(z.any()),
|
|
2336
|
-
updatedAt: z.nullable(z.any()),
|
|
2337
|
-
createdBy: z.nullable(z.string()),
|
|
2338
|
-
updatedBy: z.nullable(z.string()),
|
|
2339
|
-
venueId: z.nullable(z.string()),
|
|
2340
|
-
contentHash: z.nullable(z.string()),
|
|
2341
|
-
publicUrl: z.nullable(z.string())
|
|
2342
|
-
})
|
|
2343
|
-
)
|
|
2787
|
+
get assets() {
|
|
2788
|
+
return z.array(assetWithPublicUrlSchema);
|
|
2789
|
+
}
|
|
2344
2790
|
});
|
|
2345
2791
|
|
|
2346
2792
|
const fetchEventResponseSchema = z.object({
|
|
@@ -2757,7 +3203,8 @@ const menuItemTypeSchema = z.enum(["dish", "beverage"]);
|
|
|
2757
3203
|
|
|
2758
3204
|
const fetchMenuResponseSchema = z.object({
|
|
2759
3205
|
id: z.string(),
|
|
2760
|
-
|
|
3206
|
+
title: z.object({}).catchall(z.string()),
|
|
3207
|
+
subtitle: z.nullable(z.object({}).catchall(z.string())),
|
|
2761
3208
|
accessor: z.string(),
|
|
2762
3209
|
metadata: z.nullable(
|
|
2763
3210
|
z.object({
|
|
@@ -2894,6 +3341,21 @@ const fetchMenuResponseSchema = z.object({
|
|
|
2894
3341
|
publicUrl: z.string()
|
|
2895
3342
|
})
|
|
2896
3343
|
)
|
|
3344
|
+
),
|
|
3345
|
+
additives: z.optional(
|
|
3346
|
+
z.array(
|
|
3347
|
+
z.object({
|
|
3348
|
+
id: z.string(),
|
|
3349
|
+
eNumber: z.string(),
|
|
3350
|
+
technicalName: z.object({}).catchall(z.string()),
|
|
3351
|
+
isAllergen: z.nullable(z.boolean()),
|
|
3352
|
+
requiresWarning: z.nullable(z.boolean()),
|
|
3353
|
+
warningMessage: z.nullable(
|
|
3354
|
+
z.object({}).catchall(z.string())
|
|
3355
|
+
),
|
|
3356
|
+
regulation: z.nullable(z.string())
|
|
3357
|
+
})
|
|
3358
|
+
)
|
|
2897
3359
|
)
|
|
2898
3360
|
})
|
|
2899
3361
|
),
|
|
@@ -2946,6 +3408,21 @@ const fetchMenuResponseSchema = z.object({
|
|
|
2946
3408
|
publicUrl: z.string()
|
|
2947
3409
|
})
|
|
2948
3410
|
)
|
|
3411
|
+
),
|
|
3412
|
+
additives: z.optional(
|
|
3413
|
+
z.array(
|
|
3414
|
+
z.object({
|
|
3415
|
+
id: z.string(),
|
|
3416
|
+
eNumber: z.string(),
|
|
3417
|
+
technicalName: z.object({}).catchall(z.string()),
|
|
3418
|
+
isAllergen: z.nullable(z.boolean()),
|
|
3419
|
+
requiresWarning: z.nullable(z.boolean()),
|
|
3420
|
+
warningMessage: z.nullable(
|
|
3421
|
+
z.object({}).catchall(z.string())
|
|
3422
|
+
),
|
|
3423
|
+
regulation: z.nullable(z.string())
|
|
3424
|
+
})
|
|
3425
|
+
)
|
|
2949
3426
|
)
|
|
2950
3427
|
})
|
|
2951
3428
|
)
|
|
@@ -3156,7 +3633,13 @@ const fetchRitualResponseSchema = z.object({
|
|
|
3156
3633
|
}
|
|
3157
3634
|
});
|
|
3158
3635
|
|
|
3159
|
-
const occupancyReasonSchema = z.enum([
|
|
3636
|
+
const occupancyReasonSchema = z.enum([
|
|
3637
|
+
"ok",
|
|
3638
|
+
"tables",
|
|
3639
|
+
"personnel",
|
|
3640
|
+
"window",
|
|
3641
|
+
"slot_capacity"
|
|
3642
|
+
]);
|
|
3160
3643
|
|
|
3161
3644
|
const fetchSlotAvailabilityResponseSchema = z.array(
|
|
3162
3645
|
z.object({
|
|
@@ -3290,6 +3773,10 @@ const fetchTeamOrderResponseSchema = z.object({
|
|
|
3290
3773
|
isLead: z.boolean()
|
|
3291
3774
|
});
|
|
3292
3775
|
|
|
3776
|
+
const fontRoleSchema = z.enum(["system", "accent"]);
|
|
3777
|
+
|
|
3778
|
+
const fontStyleSchema = z.enum(["normal", "italic"]);
|
|
3779
|
+
|
|
3293
3780
|
const gbpMediaCategorySchema = z.enum([
|
|
3294
3781
|
"cover",
|
|
3295
3782
|
"logo",
|
|
@@ -3859,6 +4346,13 @@ const mentionFieldFormatterSchema = z.enum([
|
|
|
3859
4346
|
|
|
3860
4347
|
const mentionTypeSchema = z.enum(["link", "value"]);
|
|
3861
4348
|
|
|
4349
|
+
const menuItemMarkerSchema = z.enum([
|
|
4350
|
+
"vegan",
|
|
4351
|
+
"vegetarian",
|
|
4352
|
+
"allergens",
|
|
4353
|
+
"spicy"
|
|
4354
|
+
]);
|
|
4355
|
+
|
|
3862
4356
|
const patchArticleFeatureImageBodySchema = z.object({
|
|
3863
4357
|
caption: z.optional(z.object({}).catchall(z.any())),
|
|
3864
4358
|
alt: z.optional(z.object({}).catchall(z.any()))
|
|
@@ -3915,6 +4409,60 @@ const placeOrderResponseSchema = z.object({
|
|
|
3915
4409
|
|
|
3916
4410
|
const platformRoleSchema = z.enum(["platform_maintainer"]);
|
|
3917
4411
|
|
|
4412
|
+
const publicationEventTypeSchema = z.enum(["download", "scan"]);
|
|
4413
|
+
|
|
4414
|
+
const publicationFrameStyleSchema = z.enum(["solid", "motif"]);
|
|
4415
|
+
|
|
4416
|
+
const publicationGroupBySchema = z.enum([
|
|
4417
|
+
"weekday",
|
|
4418
|
+
"calendar_week",
|
|
4419
|
+
"none"
|
|
4420
|
+
]);
|
|
4421
|
+
|
|
4422
|
+
const publicationGroupFlowSchema = z.enum(["stacked", "page_break"]);
|
|
4423
|
+
|
|
4424
|
+
const publicationPricePositionSchema = z.enum(["right", "bottom"]);
|
|
4425
|
+
|
|
4426
|
+
const publicationQrPlacementSchema = z.enum([
|
|
4427
|
+
"topLeft",
|
|
4428
|
+
"topRight",
|
|
4429
|
+
"bottomLeft",
|
|
4430
|
+
"bottomRight"
|
|
4431
|
+
]);
|
|
4432
|
+
|
|
4433
|
+
const publicationQrTargetSchema = z.enum(["online_menu", "custom"]);
|
|
4434
|
+
|
|
4435
|
+
const publicationRulePositionSchema = z.enum([
|
|
4436
|
+
"below_title",
|
|
4437
|
+
"below_subtitle",
|
|
4438
|
+
"below_description"
|
|
4439
|
+
]);
|
|
4440
|
+
|
|
4441
|
+
const publicationRuleStyleSchema = z.enum([
|
|
4442
|
+
"solid",
|
|
4443
|
+
"dashed",
|
|
4444
|
+
"dotted",
|
|
4445
|
+
"double",
|
|
4446
|
+
"wavy",
|
|
4447
|
+
"diamond",
|
|
4448
|
+
"flourish",
|
|
4449
|
+
"asterisks",
|
|
4450
|
+
"fade",
|
|
4451
|
+
"dot_ornament",
|
|
4452
|
+
"custom"
|
|
4453
|
+
]);
|
|
4454
|
+
|
|
4455
|
+
const publicationSectionTypeSchema = z.enum(["cover", "body", "back"]);
|
|
4456
|
+
|
|
4457
|
+
const publicationTextAlignSchema = z.enum([
|
|
4458
|
+
"left",
|
|
4459
|
+
"center",
|
|
4460
|
+
"right",
|
|
4461
|
+
"justify"
|
|
4462
|
+
]);
|
|
4463
|
+
|
|
4464
|
+
const publicationWeekScopeSchema = z.enum(["current", "all", "range"]);
|
|
4465
|
+
|
|
3918
4466
|
const reduceDeltaPaymentIntentRequestSchema = z.object({
|
|
3919
4467
|
venueAccessor: z.string().min(1),
|
|
3920
4468
|
basketId: z.string().min(1),
|
|
@@ -3947,6 +4495,18 @@ const removeFromBasketResponseSchema = z.object({
|
|
|
3947
4495
|
}
|
|
3948
4496
|
});
|
|
3949
4497
|
|
|
4498
|
+
const renderMenuPublicationPdfRequestSchema = z.object({
|
|
4499
|
+
venueAccessor: z.string().min(1),
|
|
4500
|
+
publicationAccessor: z.string().min(1),
|
|
4501
|
+
locale: z.optional(z.string().min(2).max(5))
|
|
4502
|
+
});
|
|
4503
|
+
|
|
4504
|
+
const renderMenuPublicationPdfResponseSchema = z.object({
|
|
4505
|
+
fileName: z.string(),
|
|
4506
|
+
pages: z.int().min(1).max(9007199254740991),
|
|
4507
|
+
pdfBase64: z.string()
|
|
4508
|
+
});
|
|
4509
|
+
|
|
3950
4510
|
const reservationMessageStatusSchema = z.enum(["draft", "sent"]);
|
|
3951
4511
|
|
|
3952
4512
|
const reservationModeSchema = z.enum(["passive", "auto_steer"]);
|
|
@@ -4106,6 +4666,17 @@ const setAdBudgetResponseSchema = z.object({
|
|
|
4106
4666
|
z.array(z.any()),
|
|
4107
4667
|
z.object({}).catchall(z.any())
|
|
4108
4668
|
]),
|
|
4669
|
+
manageCallScheduleSelf: z.boolean(),
|
|
4670
|
+
callScheduleRitualAccessors: z.union([
|
|
4671
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
4672
|
+
z.array(z.any()),
|
|
4673
|
+
z.object({}).catchall(z.any())
|
|
4674
|
+
]),
|
|
4675
|
+
phone: z.nullable(z.string()),
|
|
4676
|
+
manageBiddingStrategySelf: z.boolean(),
|
|
4677
|
+
get biddingStrategy() {
|
|
4678
|
+
return adBiddingStrategySchema;
|
|
4679
|
+
},
|
|
4109
4680
|
publishedContentHash: z.nullable(z.string()),
|
|
4110
4681
|
publishedAt: z.nullable(z.any()),
|
|
4111
4682
|
pushedKeywords: z.nullable(
|
|
@@ -4192,6 +4763,206 @@ const setFulfillmentAtTeamOrderResponseSchema = z.object({
|
|
|
4192
4763
|
deadlineAt: z.nullable(z.iso.datetime())
|
|
4193
4764
|
});
|
|
4194
4765
|
|
|
4766
|
+
const setMenuPublicationBlocksRequestSchema = z.object({
|
|
4767
|
+
venueAccessor: z.string().min(1),
|
|
4768
|
+
publicationAccessor: z.string().min(1),
|
|
4769
|
+
showTitle: z.optional(z.boolean()),
|
|
4770
|
+
title: z.optional(z.object({}).catchall(z.string())),
|
|
4771
|
+
showSubtitle: z.optional(z.boolean()),
|
|
4772
|
+
subtitle: z.optional(z.object({}).catchall(z.string())),
|
|
4773
|
+
get subtitleFontRole() {
|
|
4774
|
+
return fontRoleSchema.optional();
|
|
4775
|
+
},
|
|
4776
|
+
subtitleFontFace: z.optional(
|
|
4777
|
+
z.string().regex(/^[1-9]\d{2}:(normal|italic)$/)
|
|
4778
|
+
),
|
|
4779
|
+
subtitleSize: z.optional(z.int().min(8).max(20)),
|
|
4780
|
+
subtitleColor: z.union([
|
|
4781
|
+
z.object({
|
|
4782
|
+
palette: z.string().min(1),
|
|
4783
|
+
shade: z.string().min(1)
|
|
4784
|
+
}),
|
|
4785
|
+
z.object({
|
|
4786
|
+
custom: z.string()
|
|
4787
|
+
})
|
|
4788
|
+
]).nullish(),
|
|
4789
|
+
showDescription: z.optional(z.boolean()),
|
|
4790
|
+
description: z.optional(z.object({}).catchall(z.string())),
|
|
4791
|
+
get titleFontRole() {
|
|
4792
|
+
return fontRoleSchema.optional();
|
|
4793
|
+
},
|
|
4794
|
+
titleFontFace: z.optional(z.string().regex(/^[1-9]\d{2}:(normal|italic)$/)),
|
|
4795
|
+
titleSize: z.optional(z.number().min(16).max(48)),
|
|
4796
|
+
get descriptionFontRole() {
|
|
4797
|
+
return fontRoleSchema.optional();
|
|
4798
|
+
},
|
|
4799
|
+
descriptionFontFace: z.optional(
|
|
4800
|
+
z.string().regex(/^[1-9]\d{2}:(normal|italic)$/)
|
|
4801
|
+
),
|
|
4802
|
+
descriptionSize: z.optional(z.number().min(8).max(16)),
|
|
4803
|
+
descriptionColor: z.union([
|
|
4804
|
+
z.object({
|
|
4805
|
+
palette: z.string().min(1),
|
|
4806
|
+
shade: z.string().min(1)
|
|
4807
|
+
}),
|
|
4808
|
+
z.object({
|
|
4809
|
+
custom: z.string()
|
|
4810
|
+
})
|
|
4811
|
+
]).nullish(),
|
|
4812
|
+
paddingX: z.optional(z.number().min(0)),
|
|
4813
|
+
paddingY: z.optional(z.number().min(0)),
|
|
4814
|
+
bleed: z.optional(z.boolean()),
|
|
4815
|
+
pageNumbers: z.optional(z.boolean()),
|
|
4816
|
+
get groupBy() {
|
|
4817
|
+
return publicationGroupBySchema.optional();
|
|
4818
|
+
},
|
|
4819
|
+
get groupFlow() {
|
|
4820
|
+
return publicationGroupFlowSchema.optional();
|
|
4821
|
+
},
|
|
4822
|
+
get weekScope() {
|
|
4823
|
+
return publicationWeekScopeSchema.optional();
|
|
4824
|
+
},
|
|
4825
|
+
weekRangeStart: z.optional(z.number().min(1).max(53)),
|
|
4826
|
+
weekRangeEnd: z.optional(z.number().min(1).max(53)),
|
|
4827
|
+
weekdaySubgrouping: z.optional(z.boolean()),
|
|
4828
|
+
showPrice: z.optional(z.boolean()),
|
|
4829
|
+
priceDecimals: z.optional(z.int().min(0).max(2)),
|
|
4830
|
+
get priceFontRole() {
|
|
4831
|
+
return fontRoleSchema.optional();
|
|
4832
|
+
},
|
|
4833
|
+
priceFontFace: z.optional(z.string().regex(/^[1-9]\d{2}:(normal|italic)$/)),
|
|
4834
|
+
priceShowCurrency: z.optional(z.boolean()),
|
|
4835
|
+
get pricePosition() {
|
|
4836
|
+
return publicationPricePositionSchema.optional();
|
|
4837
|
+
},
|
|
4838
|
+
chipOutlined: z.optional(z.boolean()),
|
|
4839
|
+
chipModest: z.optional(z.boolean()),
|
|
4840
|
+
veganChipColor: z.union([
|
|
4841
|
+
z.object({
|
|
4842
|
+
palette: z.string().min(1),
|
|
4843
|
+
shade: z.string().min(1)
|
|
4844
|
+
}),
|
|
4845
|
+
z.object({
|
|
4846
|
+
custom: z.string()
|
|
4847
|
+
})
|
|
4848
|
+
]).nullish(),
|
|
4849
|
+
vegetarianChipColor: z.union([
|
|
4850
|
+
z.object({
|
|
4851
|
+
palette: z.string().min(1),
|
|
4852
|
+
shade: z.string().min(1)
|
|
4853
|
+
}),
|
|
4854
|
+
z.object({
|
|
4855
|
+
custom: z.string()
|
|
4856
|
+
})
|
|
4857
|
+
]).nullish(),
|
|
4858
|
+
spicinessChipColor: z.union([
|
|
4859
|
+
z.object({
|
|
4860
|
+
palette: z.string().min(1),
|
|
4861
|
+
shade: z.string().min(1)
|
|
4862
|
+
}),
|
|
4863
|
+
z.object({
|
|
4864
|
+
custom: z.string()
|
|
4865
|
+
})
|
|
4866
|
+
]).nullish(),
|
|
4867
|
+
allergensChipColor: z.union([
|
|
4868
|
+
z.object({
|
|
4869
|
+
palette: z.string().min(1),
|
|
4870
|
+
shade: z.string().min(1)
|
|
4871
|
+
}),
|
|
4872
|
+
z.object({
|
|
4873
|
+
custom: z.string()
|
|
4874
|
+
})
|
|
4875
|
+
]).nullish(),
|
|
4876
|
+
get paperSize() {
|
|
4877
|
+
return publicationPaperSizeSchema.optional();
|
|
4878
|
+
},
|
|
4879
|
+
get palette() {
|
|
4880
|
+
return publicationPaletteSchema.optional();
|
|
4881
|
+
},
|
|
4882
|
+
showFrame: z.optional(z.boolean()),
|
|
4883
|
+
get frameStyle() {
|
|
4884
|
+
return publicationFrameStyleSchema.optional();
|
|
4885
|
+
},
|
|
4886
|
+
frameColor: z.union([
|
|
4887
|
+
z.object({
|
|
4888
|
+
palette: z.string().min(1),
|
|
4889
|
+
shade: z.string().min(1)
|
|
4890
|
+
}),
|
|
4891
|
+
z.object({
|
|
4892
|
+
custom: z.string()
|
|
4893
|
+
})
|
|
4894
|
+
]).nullish(),
|
|
4895
|
+
frameWidth: z.optional(z.number().min(1).max(12)),
|
|
4896
|
+
frameInset: z.optional(z.number().min(2).max(16)),
|
|
4897
|
+
get titleAlign() {
|
|
4898
|
+
return enumCenterLeftRightSchema.optional();
|
|
4899
|
+
},
|
|
4900
|
+
get subtitleAlign() {
|
|
4901
|
+
return enumCenterLeftRightSchema.optional();
|
|
4902
|
+
},
|
|
4903
|
+
get descriptionAlign() {
|
|
4904
|
+
return publicationTextAlignSchema.optional();
|
|
4905
|
+
},
|
|
4906
|
+
showRule: z.optional(z.boolean()),
|
|
4907
|
+
get rulePosition() {
|
|
4908
|
+
return publicationRulePositionSchema.optional();
|
|
4909
|
+
},
|
|
4910
|
+
get ruleStyle() {
|
|
4911
|
+
return publicationRuleStyleSchema.optional();
|
|
4912
|
+
},
|
|
4913
|
+
ruleColor: z.union([
|
|
4914
|
+
z.object({
|
|
4915
|
+
palette: z.string().min(1),
|
|
4916
|
+
shade: z.string().min(1)
|
|
4917
|
+
}),
|
|
4918
|
+
z.object({
|
|
4919
|
+
custom: z.string()
|
|
4920
|
+
})
|
|
4921
|
+
]).nullish(),
|
|
4922
|
+
showQr: z.optional(z.boolean()),
|
|
4923
|
+
get qrTarget() {
|
|
4924
|
+
return publicationQrTargetSchema.optional();
|
|
4925
|
+
},
|
|
4926
|
+
qrCustomUrl: z.optional(z.string()),
|
|
4927
|
+
get qrPlacement() {
|
|
4928
|
+
return publicationQrPlacementSchema.optional();
|
|
4929
|
+
},
|
|
4930
|
+
qrSize: z.optional(z.int().min(15).max(40)),
|
|
4931
|
+
itemTitleSize: z.optional(z.int().min(8).max(16)),
|
|
4932
|
+
itemSubtitleSize: z.optional(z.int().min(7).max(12)),
|
|
4933
|
+
itemSubtitleColor: z.union([
|
|
4934
|
+
z.object({
|
|
4935
|
+
palette: z.string().min(1),
|
|
4936
|
+
shade: z.string().min(1)
|
|
4937
|
+
}),
|
|
4938
|
+
z.object({
|
|
4939
|
+
custom: z.string()
|
|
4940
|
+
})
|
|
4941
|
+
]).nullish(),
|
|
4942
|
+
itemDescriptionSize: z.optional(z.int().min(8).max(14)),
|
|
4943
|
+
itemDescriptionColor: z.union([
|
|
4944
|
+
z.object({
|
|
4945
|
+
palette: z.string().min(1),
|
|
4946
|
+
shade: z.string().min(1)
|
|
4947
|
+
}),
|
|
4948
|
+
z.object({
|
|
4949
|
+
custom: z.string()
|
|
4950
|
+
})
|
|
4951
|
+
]).nullish(),
|
|
4952
|
+
showItemTitles: z.optional(z.boolean()),
|
|
4953
|
+
showItemSubtitles: z.optional(z.boolean()),
|
|
4954
|
+
showItemDescriptions: z.optional(z.boolean()),
|
|
4955
|
+
showVegan: z.optional(z.boolean()),
|
|
4956
|
+
showVegetarian: z.optional(z.boolean()),
|
|
4957
|
+
showSpiciness: z.optional(z.boolean()),
|
|
4958
|
+
showAllergens: z.optional(z.boolean())
|
|
4959
|
+
});
|
|
4960
|
+
|
|
4961
|
+
const setMenuPublicationBlocksResponseSchema = z.object({
|
|
4962
|
+
id: z.string(),
|
|
4963
|
+
accessor: z.string()
|
|
4964
|
+
});
|
|
4965
|
+
|
|
4195
4966
|
const setOrderLeadSettledRequestSchema = z.object({
|
|
4196
4967
|
publicId: z.string().min(1),
|
|
4197
4968
|
sessionId: z.string().min(1),
|
|
@@ -4428,7 +5199,9 @@ const venueAssetTypeSchema = z.enum([
|
|
|
4428
5199
|
"logomark",
|
|
4429
5200
|
"wordmark",
|
|
4430
5201
|
"combinationmark_horizontal",
|
|
4431
|
-
"combinationmark_vertical"
|
|
5202
|
+
"combinationmark_vertical",
|
|
5203
|
+
"motif",
|
|
5204
|
+
"divider"
|
|
4432
5205
|
]);
|
|
4433
5206
|
|
|
4434
5207
|
const venueChargeTypeSchema = z.enum(["base", "addon"]);
|
|
@@ -4453,6 +5226,7 @@ const schemas = {
|
|
|
4453
5226
|
AbandonBasketRequest: abandonBasketRequestSchema,
|
|
4454
5227
|
AbandonBasketResponse: abandonBasketResponseSchema,
|
|
4455
5228
|
ActorType: actorTypeSchema,
|
|
5229
|
+
AdBiddingStrategy: adBiddingStrategySchema,
|
|
4456
5230
|
AdChannel: adChannelSchema,
|
|
4457
5231
|
AdOwnerType: adOwnerTypeSchema,
|
|
4458
5232
|
AdStatus: adStatusSchema,
|
|
@@ -4469,17 +5243,22 @@ const schemas = {
|
|
|
4469
5243
|
ArticleMentionCounts: articleMentionCountsSchema,
|
|
4470
5244
|
ArticleStatus: articleStatusSchema,
|
|
4471
5245
|
AssetType: assetTypeSchema,
|
|
5246
|
+
AssetWithPublicUrl: assetWithPublicUrlSchema,
|
|
4472
5247
|
AutoExtendFulfillmentIfExpiredRequest: autoExtendFulfillmentIfExpiredRequestSchema,
|
|
4473
5248
|
AutoExtendFulfillmentIfExpiredResponse: autoExtendFulfillmentIfExpiredResponseSchema,
|
|
4474
5249
|
BasketStatus: basketStatusSchema,
|
|
4475
5250
|
BasketTotals: basketTotalsSchema,
|
|
4476
5251
|
BeverageCategory: beverageCategorySchema,
|
|
4477
5252
|
BillingMode: billingModeSchema,
|
|
5253
|
+
BookingChannel: bookingChannelSchema,
|
|
5254
|
+
BookletSectionInput: bookletSectionInputSchema,
|
|
4478
5255
|
CancelSubscriptionRequest: cancelSubscriptionRequestSchema,
|
|
4479
5256
|
CancelSubscriptionResponse: cancelSubscriptionResponseSchema,
|
|
4480
5257
|
CancelTeamOrderRequest: cancelTeamOrderRequestSchema,
|
|
4481
5258
|
CancelTeamOrderResponse: cancelTeamOrderResponseSchema,
|
|
4482
5259
|
CancellationReason: cancellationReasonSchema,
|
|
5260
|
+
ComposeMenuPublicationBookletRequest: composeMenuPublicationBookletRequestSchema,
|
|
5261
|
+
ComposeMenuPublicationBookletResponse: composeMenuPublicationBookletResponseSchema,
|
|
4483
5262
|
ConfirmOrderRequest: confirmOrderRequestSchema,
|
|
4484
5263
|
ConfirmOrderResponse: confirmOrderResponseSchema,
|
|
4485
5264
|
ContactPreference: contactPreferenceSchema,
|
|
@@ -4492,6 +5271,8 @@ const schemas = {
|
|
|
4492
5271
|
CreateDeltaPaymentIntentResponse: createDeltaPaymentIntentResponseSchema,
|
|
4493
5272
|
CreateEventRequest: createEventRequestSchema,
|
|
4494
5273
|
CreateEventResponse: createEventResponseSchema,
|
|
5274
|
+
CreateMenuPublicationRequest: createMenuPublicationRequestSchema,
|
|
5275
|
+
CreateMenuPublicationResponse: createMenuPublicationResponseSchema,
|
|
4495
5276
|
CreatePaymentIntentRequest: createPaymentIntentRequestSchema,
|
|
4496
5277
|
CreatePaymentIntentResponse: createPaymentIntentResponseSchema,
|
|
4497
5278
|
CreateTeamOrderRequest: createTeamOrderRequestSchema,
|
|
@@ -4512,6 +5293,8 @@ const schemas = {
|
|
|
4512
5293
|
EditAdResponse: editAdResponseSchema,
|
|
4513
5294
|
EditArticleRequest: editArticleRequestSchema,
|
|
4514
5295
|
EditArticleResponse: editArticleResponseSchema,
|
|
5296
|
+
EditBeverageRequest: editBeverageRequestSchema,
|
|
5297
|
+
EditBeverageResponse: editBeverageResponseSchema,
|
|
4515
5298
|
EditDishRequest: editDishRequestSchema,
|
|
4516
5299
|
EditDishResponse: editDishResponseSchema,
|
|
4517
5300
|
EditEventRequest: editEventRequestSchema,
|
|
@@ -4519,6 +5302,7 @@ const schemas = {
|
|
|
4519
5302
|
EditMetaAdRequest: editMetaAdRequestSchema,
|
|
4520
5303
|
EditMetaAdResponse: editMetaAdResponseSchema,
|
|
4521
5304
|
EntityOwnerType: entityOwnerTypeSchema,
|
|
5305
|
+
EnumCenterLeftRight: enumCenterLeftRightSchema,
|
|
4522
5306
|
EnumFalse: enumFalseSchema,
|
|
4523
5307
|
EnumTrue: enumTrueSchema,
|
|
4524
5308
|
EventAssetSource: eventAssetSourceSchema,
|
|
@@ -4536,6 +5320,7 @@ const schemas = {
|
|
|
4536
5320
|
FetchArticlesResponse: fetchArticlesResponseSchema,
|
|
4537
5321
|
FetchAssetsByTagResponse: fetchAssetsByTagResponseSchema,
|
|
4538
5322
|
FetchBasketResponse: fetchBasketResponseSchema,
|
|
5323
|
+
FetchBeverageResponse: fetchBeverageResponseSchema,
|
|
4539
5324
|
FetchDishResponse: fetchDishResponseSchema,
|
|
4540
5325
|
FetchEventResponse: fetchEventResponseSchema,
|
|
4541
5326
|
FetchEventsResponse: fetchEventsResponseSchema,
|
|
@@ -4546,6 +5331,8 @@ const schemas = {
|
|
|
4546
5331
|
FetchRitualResponse: fetchRitualResponseSchema,
|
|
4547
5332
|
FetchSlotAvailabilityResponse: fetchSlotAvailabilityResponseSchema,
|
|
4548
5333
|
FetchTeamOrderResponse: fetchTeamOrderResponseSchema,
|
|
5334
|
+
FontRole: fontRoleSchema,
|
|
5335
|
+
FontStyle: fontStyleSchema,
|
|
4549
5336
|
FulfillmentType: fulfillmentTypeSchema,
|
|
4550
5337
|
GbpMediaCategory: gbpMediaCategorySchema,
|
|
4551
5338
|
GbpSyncStatus: gbpSyncStatusSchema,
|
|
@@ -4574,6 +5361,7 @@ const schemas = {
|
|
|
4574
5361
|
MentionEntityType: mentionEntityTypeSchema,
|
|
4575
5362
|
MentionFieldFormatter: mentionFieldFormatterSchema,
|
|
4576
5363
|
MentionType: mentionTypeSchema,
|
|
5364
|
+
MenuItemMarker: menuItemMarkerSchema,
|
|
4577
5365
|
MenuItemType: menuItemTypeSchema,
|
|
4578
5366
|
OccupancyReason: occupancyReasonSchema,
|
|
4579
5367
|
OgImage: ogImageSchema,
|
|
@@ -4588,9 +5376,27 @@ const schemas = {
|
|
|
4588
5376
|
PlaceOrderResponse: placeOrderResponseSchema,
|
|
4589
5377
|
PlatformRole: platformRoleSchema,
|
|
4590
5378
|
PromotionBenefitType: promotionBenefitTypeSchema,
|
|
5379
|
+
PublicationEventType: publicationEventTypeSchema,
|
|
5380
|
+
PublicationFrameStyle: publicationFrameStyleSchema,
|
|
5381
|
+
PublicationGroupBy: publicationGroupBySchema,
|
|
5382
|
+
PublicationGroupFlow: publicationGroupFlowSchema,
|
|
5383
|
+
PublicationPalette: publicationPaletteSchema,
|
|
5384
|
+
PublicationPaperSize: publicationPaperSizeSchema,
|
|
5385
|
+
PublicationPricePosition: publicationPricePositionSchema,
|
|
5386
|
+
PublicationQrPlacement: publicationQrPlacementSchema,
|
|
5387
|
+
PublicationQrTarget: publicationQrTargetSchema,
|
|
5388
|
+
PublicationRulePosition: publicationRulePositionSchema,
|
|
5389
|
+
PublicationRuleStyle: publicationRuleStyleSchema,
|
|
5390
|
+
PublicationSectionType: publicationSectionTypeSchema,
|
|
5391
|
+
PublicationSourceType: publicationSourceTypeSchema,
|
|
5392
|
+
PublicationTextAlign: publicationTextAlignSchema,
|
|
5393
|
+
PublicationType: publicationTypeSchema,
|
|
5394
|
+
PublicationWeekScope: publicationWeekScopeSchema,
|
|
4591
5395
|
ReduceDeltaPaymentIntentRequest: reduceDeltaPaymentIntentRequestSchema,
|
|
4592
5396
|
ReduceDeltaPaymentIntentResponse: reduceDeltaPaymentIntentResponseSchema,
|
|
4593
5397
|
RemoveFromBasketResponse: removeFromBasketResponseSchema,
|
|
5398
|
+
RenderMenuPublicationPdfRequest: renderMenuPublicationPdfRequestSchema,
|
|
5399
|
+
RenderMenuPublicationPdfResponse: renderMenuPublicationPdfResponseSchema,
|
|
4594
5400
|
ReservationMessageStatus: reservationMessageStatusSchema,
|
|
4595
5401
|
ReservationMode: reservationModeSchema,
|
|
4596
5402
|
ReservationPromotionStatus: reservationPromotionStatusSchema,
|
|
@@ -4618,6 +5424,8 @@ const schemas = {
|
|
|
4618
5424
|
SetDiningTimeTeamOrderResponse: setDiningTimeTeamOrderResponseSchema,
|
|
4619
5425
|
SetFulfillmentAtTeamOrderRequest: setFulfillmentAtTeamOrderRequestSchema,
|
|
4620
5426
|
SetFulfillmentAtTeamOrderResponse: setFulfillmentAtTeamOrderResponseSchema,
|
|
5427
|
+
SetMenuPublicationBlocksRequest: setMenuPublicationBlocksRequestSchema,
|
|
5428
|
+
SetMenuPublicationBlocksResponse: setMenuPublicationBlocksResponseSchema,
|
|
4621
5429
|
SetOrderLeadSettledRequest: setOrderLeadSettledRequestSchema,
|
|
4622
5430
|
SetOrderLeadSettledResponse: setOrderLeadSettledResponseSchema,
|
|
4623
5431
|
SlotMode: slotModeSchema,
|