order3000 1.11.0 → 1.12.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 +31 -4
- package/dist/client.d.cts +21 -6
- package/dist/client.d.mts +21 -6
- package/dist/client.mjs +31 -4
- package/dist/{index-CQHgJH4m.d.cts → index-bbg7Ev_r.d.cts} +243 -33
- package/dist/{index-CQHgJH4m.d.mts → index-bbg7Ev_r.d.mts} +243 -33
- package/dist/menu.d.cts +1 -1
- package/dist/menu.d.mts +1 -1
- package/dist/schemas.cjs +394 -48
- package/dist/schemas.d.cts +306 -1
- package/dist/schemas.d.mts +306 -1
- package/dist/schemas.mjs +394 -48
- package/package.json +1 -1
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,8 @@ 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
|
+
|
|
277
330
|
const cancelSubscriptionRequestSchema = z.object({
|
|
278
331
|
subscriberId: z.string().min(1)
|
|
279
332
|
});
|
|
@@ -663,6 +716,17 @@ const createAdResponseSchema = z.object({
|
|
|
663
716
|
z.array(z.any()),
|
|
664
717
|
z.object({}).catchall(z.any())
|
|
665
718
|
]),
|
|
719
|
+
manageCallScheduleSelf: z.boolean(),
|
|
720
|
+
callScheduleRitualAccessors: z.union([
|
|
721
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
722
|
+
z.array(z.any()),
|
|
723
|
+
z.object({}).catchall(z.any())
|
|
724
|
+
]),
|
|
725
|
+
phone: z.nullable(z.string()),
|
|
726
|
+
manageBiddingStrategySelf: z.boolean(),
|
|
727
|
+
get biddingStrategy() {
|
|
728
|
+
return adBiddingStrategySchema;
|
|
729
|
+
},
|
|
666
730
|
publishedContentHash: z.nullable(z.string()),
|
|
667
731
|
publishedAt: z.nullable(z.any()),
|
|
668
732
|
pushedKeywords: z.nullable(
|
|
@@ -1032,6 +1096,17 @@ const deleteAdResponseSchema = z.object({
|
|
|
1032
1096
|
z.array(z.any()),
|
|
1033
1097
|
z.object({}).catchall(z.any())
|
|
1034
1098
|
]),
|
|
1099
|
+
manageCallScheduleSelf: z.boolean(),
|
|
1100
|
+
callScheduleRitualAccessors: z.union([
|
|
1101
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1102
|
+
z.array(z.any()),
|
|
1103
|
+
z.object({}).catchall(z.any())
|
|
1104
|
+
]),
|
|
1105
|
+
phone: z.nullable(z.string()),
|
|
1106
|
+
manageBiddingStrategySelf: z.boolean(),
|
|
1107
|
+
get biddingStrategy() {
|
|
1108
|
+
return adBiddingStrategySchema;
|
|
1109
|
+
},
|
|
1035
1110
|
publishedContentHash: z.nullable(z.string()),
|
|
1036
1111
|
publishedAt: z.nullable(z.any()),
|
|
1037
1112
|
pushedKeywords: z.nullable(
|
|
@@ -1253,6 +1328,17 @@ const editAdResponseSchema = z.object({
|
|
|
1253
1328
|
z.array(z.any()),
|
|
1254
1329
|
z.object({}).catchall(z.any())
|
|
1255
1330
|
]),
|
|
1331
|
+
manageCallScheduleSelf: z.boolean(),
|
|
1332
|
+
callScheduleRitualAccessors: z.union([
|
|
1333
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1334
|
+
z.array(z.any()),
|
|
1335
|
+
z.object({}).catchall(z.any())
|
|
1336
|
+
]),
|
|
1337
|
+
phone: z.nullable(z.string()),
|
|
1338
|
+
manageBiddingStrategySelf: z.boolean(),
|
|
1339
|
+
get biddingStrategy() {
|
|
1340
|
+
return adBiddingStrategySchema;
|
|
1341
|
+
},
|
|
1256
1342
|
publishedContentHash: z.nullable(z.string()),
|
|
1257
1343
|
publishedAt: z.nullable(z.any()),
|
|
1258
1344
|
pushedKeywords: z.nullable(
|
|
@@ -1330,11 +1416,139 @@ const editArticleResponseSchema = z.object({
|
|
|
1330
1416
|
"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
1417
|
);
|
|
1332
1418
|
|
|
1419
|
+
const editBeverageRequestSchema = z.object({
|
|
1420
|
+
id: z.string(),
|
|
1421
|
+
venueId: z.optional(z.string()),
|
|
1422
|
+
accessor: z.optional(z.string()),
|
|
1423
|
+
name: z.optional(
|
|
1424
|
+
z.union([
|
|
1425
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1426
|
+
z.array(z.any()),
|
|
1427
|
+
z.object({}).catchall(z.any())
|
|
1428
|
+
])
|
|
1429
|
+
),
|
|
1430
|
+
shortName: z.union([
|
|
1431
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1432
|
+
z.array(z.any()),
|
|
1433
|
+
z.object({}).catchall(z.any())
|
|
1434
|
+
]).nullish(),
|
|
1435
|
+
kitchenName: z.union([
|
|
1436
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1437
|
+
z.array(z.any()),
|
|
1438
|
+
z.object({}).catchall(z.any())
|
|
1439
|
+
]).nullish(),
|
|
1440
|
+
description: z.union([
|
|
1441
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1442
|
+
z.array(z.any()),
|
|
1443
|
+
z.object({}).catchall(z.any())
|
|
1444
|
+
]).nullish(),
|
|
1445
|
+
longDescription: z.union([
|
|
1446
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1447
|
+
z.array(z.any()),
|
|
1448
|
+
z.object({}).catchall(z.any())
|
|
1449
|
+
]).nullish(),
|
|
1450
|
+
isAlcoholic: z.optional(z.boolean()),
|
|
1451
|
+
alcoholPercentage: z.string().nullish(),
|
|
1452
|
+
volumes: z.union([
|
|
1453
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1454
|
+
z.array(z.any()),
|
|
1455
|
+
z.object({}).catchall(z.any())
|
|
1456
|
+
]).nullish(),
|
|
1457
|
+
get category() {
|
|
1458
|
+
return beverageCategorySchema.optional();
|
|
1459
|
+
},
|
|
1460
|
+
categoryAttributes: z.union([
|
|
1461
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1462
|
+
z.array(z.any()),
|
|
1463
|
+
z.object({}).catchall(z.any())
|
|
1464
|
+
]).nullish(),
|
|
1465
|
+
servingRecommendations: z.union([
|
|
1466
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1467
|
+
z.array(z.any()),
|
|
1468
|
+
z.object({}).catchall(z.any())
|
|
1469
|
+
]).nullish(),
|
|
1470
|
+
isActive: z.optional(z.boolean()),
|
|
1471
|
+
sortIndex: z.string().max(255).nullish(),
|
|
1472
|
+
venueAccessor: z.string().min(1)
|
|
1473
|
+
});
|
|
1474
|
+
|
|
1475
|
+
const editBeverageResponseSchema = z.object({
|
|
1476
|
+
id: z.string(),
|
|
1477
|
+
venueId: z.string(),
|
|
1478
|
+
accessor: z.string(),
|
|
1479
|
+
name: z.union([
|
|
1480
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1481
|
+
z.array(z.any()),
|
|
1482
|
+
z.object({}).catchall(z.any())
|
|
1483
|
+
]),
|
|
1484
|
+
shortName: z.nullable(
|
|
1485
|
+
z.union([
|
|
1486
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1487
|
+
z.array(z.any()),
|
|
1488
|
+
z.object({}).catchall(z.any())
|
|
1489
|
+
])
|
|
1490
|
+
),
|
|
1491
|
+
kitchenName: z.nullable(
|
|
1492
|
+
z.union([
|
|
1493
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1494
|
+
z.array(z.any()),
|
|
1495
|
+
z.object({}).catchall(z.any())
|
|
1496
|
+
])
|
|
1497
|
+
),
|
|
1498
|
+
description: z.nullable(
|
|
1499
|
+
z.union([
|
|
1500
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1501
|
+
z.array(z.any()),
|
|
1502
|
+
z.object({}).catchall(z.any())
|
|
1503
|
+
])
|
|
1504
|
+
),
|
|
1505
|
+
longDescription: z.nullable(
|
|
1506
|
+
z.union([
|
|
1507
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1508
|
+
z.array(z.any()),
|
|
1509
|
+
z.object({}).catchall(z.any())
|
|
1510
|
+
])
|
|
1511
|
+
),
|
|
1512
|
+
isAlcoholic: z.boolean(),
|
|
1513
|
+
alcoholPercentage: z.nullable(z.string()),
|
|
1514
|
+
volumes: z.nullable(
|
|
1515
|
+
z.union([
|
|
1516
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1517
|
+
z.array(z.any()),
|
|
1518
|
+
z.object({}).catchall(z.any())
|
|
1519
|
+
])
|
|
1520
|
+
),
|
|
1521
|
+
get category() {
|
|
1522
|
+
return beverageCategorySchema;
|
|
1523
|
+
},
|
|
1524
|
+
categoryAttributes: z.nullable(
|
|
1525
|
+
z.union([
|
|
1526
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1527
|
+
z.array(z.any()),
|
|
1528
|
+
z.object({}).catchall(z.any())
|
|
1529
|
+
])
|
|
1530
|
+
),
|
|
1531
|
+
servingRecommendations: z.nullable(
|
|
1532
|
+
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
|
+
])
|
|
1537
|
+
),
|
|
1538
|
+
isActive: z.boolean(),
|
|
1539
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
1540
|
+
updatedAt: z.nullable(z.any()),
|
|
1541
|
+
updatedBy: z.nullable(z.string()),
|
|
1542
|
+
createdAt: z.nullable(z.any()),
|
|
1543
|
+
createdBy: z.nullable(z.string())
|
|
1544
|
+
});
|
|
1545
|
+
|
|
1333
1546
|
const editDishRequestSchema = z.object({
|
|
1334
1547
|
venueAccessor: z.string().min(1),
|
|
1335
1548
|
id: z.string(),
|
|
1336
1549
|
name: z.object({}).catchall(z.string().min(1)),
|
|
1337
1550
|
shortName: z.object({}).catchall(z.string()).nullish(),
|
|
1551
|
+
kitchenName: z.object({}).catchall(z.string()).nullish(),
|
|
1338
1552
|
description: z.object({}).catchall(z.string()).nullish(),
|
|
1339
1553
|
longDescription: z.object({}).catchall(z.string()).nullish(),
|
|
1340
1554
|
suggestedPrice: z.number().nullish(),
|
|
@@ -1365,6 +1579,13 @@ const editDishResponseSchema = z.object({
|
|
|
1365
1579
|
z.object({}).catchall(z.any())
|
|
1366
1580
|
])
|
|
1367
1581
|
),
|
|
1582
|
+
kitchenName: z.nullable(
|
|
1583
|
+
z.union([
|
|
1584
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1585
|
+
z.array(z.any()),
|
|
1586
|
+
z.object({}).catchall(z.any())
|
|
1587
|
+
])
|
|
1588
|
+
),
|
|
1368
1589
|
description: z.nullable(
|
|
1369
1590
|
z.union([
|
|
1370
1591
|
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
@@ -1498,6 +1719,9 @@ const scheduleSchema = z.object({
|
|
|
1498
1719
|
id: z.string(),
|
|
1499
1720
|
startTime: z.string(),
|
|
1500
1721
|
endTime: z.nullable(z.string()),
|
|
1722
|
+
get channel() {
|
|
1723
|
+
return bookingChannelSchema;
|
|
1724
|
+
},
|
|
1501
1725
|
isActive: z.nullable(z.boolean()),
|
|
1502
1726
|
isSchedulable: z.nullable(z.boolean()),
|
|
1503
1727
|
maxBookings: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
@@ -1545,6 +1769,9 @@ const scheduleSchema = z.object({
|
|
|
1545
1769
|
id: z.string(),
|
|
1546
1770
|
startTime: z.string(),
|
|
1547
1771
|
endTime: z.nullable(z.string()),
|
|
1772
|
+
get channel() {
|
|
1773
|
+
return bookingChannelSchema;
|
|
1774
|
+
},
|
|
1548
1775
|
isActive: z.nullable(z.boolean()),
|
|
1549
1776
|
isSchedulable: z.nullable(z.boolean()),
|
|
1550
1777
|
maxBookings: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
@@ -1565,6 +1792,32 @@ const scheduleSchema = z.object({
|
|
|
1565
1792
|
)
|
|
1566
1793
|
})
|
|
1567
1794
|
)
|
|
1795
|
+
),
|
|
1796
|
+
scheduleSlotPolicies: z.optional(
|
|
1797
|
+
z.array(
|
|
1798
|
+
z.object({
|
|
1799
|
+
id: z.string(),
|
|
1800
|
+
scheduleId: z.string(),
|
|
1801
|
+
get channel() {
|
|
1802
|
+
return bookingChannelSchema;
|
|
1803
|
+
},
|
|
1804
|
+
get slotMode() {
|
|
1805
|
+
return slotModeSchema;
|
|
1806
|
+
},
|
|
1807
|
+
intervalDuration: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1808
|
+
duration: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1809
|
+
bookingOpensAtDays: z.nullable(
|
|
1810
|
+
z.int().min(-2147483648).max(2147483647)
|
|
1811
|
+
),
|
|
1812
|
+
bookingClosesAtOffset: z.nullable(
|
|
1813
|
+
z.int().min(-2147483648).max(2147483647)
|
|
1814
|
+
),
|
|
1815
|
+
updatedAt: z.nullable(z.any()),
|
|
1816
|
+
updatedBy: z.nullable(z.string()),
|
|
1817
|
+
createdAt: z.nullable(z.any()),
|
|
1818
|
+
createdBy: z.nullable(z.string())
|
|
1819
|
+
})
|
|
1820
|
+
)
|
|
1568
1821
|
)
|
|
1569
1822
|
});
|
|
1570
1823
|
|
|
@@ -1723,6 +1976,17 @@ const editMetaAdResponseSchema = z.object({
|
|
|
1723
1976
|
z.array(z.any()),
|
|
1724
1977
|
z.object({}).catchall(z.any())
|
|
1725
1978
|
]),
|
|
1979
|
+
manageCallScheduleSelf: z.boolean(),
|
|
1980
|
+
callScheduleRitualAccessors: z.union([
|
|
1981
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1982
|
+
z.array(z.any()),
|
|
1983
|
+
z.object({}).catchall(z.any())
|
|
1984
|
+
]),
|
|
1985
|
+
phone: z.nullable(z.string()),
|
|
1986
|
+
manageBiddingStrategySelf: z.boolean(),
|
|
1987
|
+
get biddingStrategy() {
|
|
1988
|
+
return adBiddingStrategySchema;
|
|
1989
|
+
},
|
|
1726
1990
|
publishedContentHash: z.nullable(z.string()),
|
|
1727
1991
|
publishedAt: z.nullable(z.any()),
|
|
1728
1992
|
pushedKeywords: z.nullable(
|
|
@@ -1872,6 +2136,17 @@ const fetchAdResponseSchema = z.object({
|
|
|
1872
2136
|
z.array(z.any()),
|
|
1873
2137
|
z.object({}).catchall(z.any())
|
|
1874
2138
|
]),
|
|
2139
|
+
manageCallScheduleSelf: z.boolean(),
|
|
2140
|
+
callScheduleRitualAccessors: z.union([
|
|
2141
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2142
|
+
z.array(z.any()),
|
|
2143
|
+
z.object({}).catchall(z.any())
|
|
2144
|
+
]),
|
|
2145
|
+
phone: z.nullable(z.string()),
|
|
2146
|
+
manageBiddingStrategySelf: z.boolean(),
|
|
2147
|
+
get biddingStrategy() {
|
|
2148
|
+
return adBiddingStrategySchema;
|
|
2149
|
+
},
|
|
1875
2150
|
publishedContentHash: z.nullable(z.string()),
|
|
1876
2151
|
publishedAt: z.nullable(z.any()),
|
|
1877
2152
|
pushedKeywords: z.nullable(
|
|
@@ -1969,6 +2244,17 @@ const fetchAdsResponseSchema = z.array(
|
|
|
1969
2244
|
z.array(z.any()),
|
|
1970
2245
|
z.object({}).catchall(z.any())
|
|
1971
2246
|
]),
|
|
2247
|
+
manageCallScheduleSelf: z.boolean(),
|
|
2248
|
+
callScheduleRitualAccessors: z.union([
|
|
2249
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2250
|
+
z.array(z.any()),
|
|
2251
|
+
z.object({}).catchall(z.any())
|
|
2252
|
+
]),
|
|
2253
|
+
phone: z.nullable(z.string()),
|
|
2254
|
+
manageBiddingStrategySelf: z.boolean(),
|
|
2255
|
+
get biddingStrategy() {
|
|
2256
|
+
return adBiddingStrategySchema;
|
|
2257
|
+
},
|
|
1972
2258
|
publishedContentHash: z.nullable(z.string()),
|
|
1973
2259
|
publishedAt: z.nullable(z.any()),
|
|
1974
2260
|
pushedKeywords: z.nullable(
|
|
@@ -2249,6 +2535,80 @@ const fetchBasketResponseSchema = z.object({
|
|
|
2249
2535
|
updatedAt: z.nullable(z.string())
|
|
2250
2536
|
});
|
|
2251
2537
|
|
|
2538
|
+
const fetchBeverageResponseSchema = z.object({
|
|
2539
|
+
id: z.string(),
|
|
2540
|
+
venueId: z.string(),
|
|
2541
|
+
accessor: z.string(),
|
|
2542
|
+
name: z.union([
|
|
2543
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2544
|
+
z.array(z.any()),
|
|
2545
|
+
z.object({}).catchall(z.any())
|
|
2546
|
+
]),
|
|
2547
|
+
shortName: z.nullable(
|
|
2548
|
+
z.union([
|
|
2549
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2550
|
+
z.array(z.any()),
|
|
2551
|
+
z.object({}).catchall(z.any())
|
|
2552
|
+
])
|
|
2553
|
+
),
|
|
2554
|
+
kitchenName: z.nullable(
|
|
2555
|
+
z.union([
|
|
2556
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2557
|
+
z.array(z.any()),
|
|
2558
|
+
z.object({}).catchall(z.any())
|
|
2559
|
+
])
|
|
2560
|
+
),
|
|
2561
|
+
description: z.nullable(
|
|
2562
|
+
z.union([
|
|
2563
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2564
|
+
z.array(z.any()),
|
|
2565
|
+
z.object({}).catchall(z.any())
|
|
2566
|
+
])
|
|
2567
|
+
),
|
|
2568
|
+
longDescription: z.nullable(
|
|
2569
|
+
z.union([
|
|
2570
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2571
|
+
z.array(z.any()),
|
|
2572
|
+
z.object({}).catchall(z.any())
|
|
2573
|
+
])
|
|
2574
|
+
),
|
|
2575
|
+
isAlcoholic: z.boolean(),
|
|
2576
|
+
alcoholPercentage: z.nullable(z.string()),
|
|
2577
|
+
volumes: z.nullable(
|
|
2578
|
+
z.union([
|
|
2579
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2580
|
+
z.array(z.any()),
|
|
2581
|
+
z.object({}).catchall(z.any())
|
|
2582
|
+
])
|
|
2583
|
+
),
|
|
2584
|
+
get category() {
|
|
2585
|
+
return beverageCategorySchema;
|
|
2586
|
+
},
|
|
2587
|
+
categoryAttributes: z.nullable(
|
|
2588
|
+
z.union([
|
|
2589
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2590
|
+
z.array(z.any()),
|
|
2591
|
+
z.object({}).catchall(z.any())
|
|
2592
|
+
])
|
|
2593
|
+
),
|
|
2594
|
+
servingRecommendations: z.nullable(
|
|
2595
|
+
z.union([
|
|
2596
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2597
|
+
z.array(z.any()),
|
|
2598
|
+
z.object({}).catchall(z.any())
|
|
2599
|
+
])
|
|
2600
|
+
),
|
|
2601
|
+
isActive: z.boolean(),
|
|
2602
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
2603
|
+
updatedAt: z.nullable(z.any()),
|
|
2604
|
+
updatedBy: z.nullable(z.string()),
|
|
2605
|
+
createdAt: z.nullable(z.any()),
|
|
2606
|
+
createdBy: z.nullable(z.string()),
|
|
2607
|
+
get assets() {
|
|
2608
|
+
return z.array(assetWithPublicUrlSchema);
|
|
2609
|
+
}
|
|
2610
|
+
});
|
|
2611
|
+
|
|
2252
2612
|
const fetchDishResponseSchema = z.object({
|
|
2253
2613
|
id: z.string(),
|
|
2254
2614
|
venueId: z.string(),
|
|
@@ -2265,6 +2625,13 @@ const fetchDishResponseSchema = z.object({
|
|
|
2265
2625
|
z.object({}).catchall(z.any())
|
|
2266
2626
|
])
|
|
2267
2627
|
),
|
|
2628
|
+
kitchenName: z.nullable(
|
|
2629
|
+
z.union([
|
|
2630
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2631
|
+
z.array(z.any()),
|
|
2632
|
+
z.object({}).catchall(z.any())
|
|
2633
|
+
])
|
|
2634
|
+
),
|
|
2268
2635
|
description: z.nullable(
|
|
2269
2636
|
z.union([
|
|
2270
2637
|
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
@@ -2294,53 +2661,9 @@ const fetchDishResponseSchema = z.object({
|
|
|
2294
2661
|
updatedBy: z.nullable(z.string()),
|
|
2295
2662
|
createdAt: z.nullable(z.any()),
|
|
2296
2663
|
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
|
-
)
|
|
2664
|
+
get assets() {
|
|
2665
|
+
return z.array(assetWithPublicUrlSchema);
|
|
2666
|
+
}
|
|
2344
2667
|
});
|
|
2345
2668
|
|
|
2346
2669
|
const fetchEventResponseSchema = z.object({
|
|
@@ -3156,7 +3479,13 @@ const fetchRitualResponseSchema = z.object({
|
|
|
3156
3479
|
}
|
|
3157
3480
|
});
|
|
3158
3481
|
|
|
3159
|
-
const occupancyReasonSchema = z.enum([
|
|
3482
|
+
const occupancyReasonSchema = z.enum([
|
|
3483
|
+
"ok",
|
|
3484
|
+
"tables",
|
|
3485
|
+
"personnel",
|
|
3486
|
+
"window",
|
|
3487
|
+
"slot_capacity"
|
|
3488
|
+
]);
|
|
3160
3489
|
|
|
3161
3490
|
const fetchSlotAvailabilityResponseSchema = z.array(
|
|
3162
3491
|
z.object({
|
|
@@ -4106,6 +4435,17 @@ const setAdBudgetResponseSchema = z.object({
|
|
|
4106
4435
|
z.array(z.any()),
|
|
4107
4436
|
z.object({}).catchall(z.any())
|
|
4108
4437
|
]),
|
|
4438
|
+
manageCallScheduleSelf: z.boolean(),
|
|
4439
|
+
callScheduleRitualAccessors: z.union([
|
|
4440
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
4441
|
+
z.array(z.any()),
|
|
4442
|
+
z.object({}).catchall(z.any())
|
|
4443
|
+
]),
|
|
4444
|
+
phone: z.nullable(z.string()),
|
|
4445
|
+
manageBiddingStrategySelf: z.boolean(),
|
|
4446
|
+
get biddingStrategy() {
|
|
4447
|
+
return adBiddingStrategySchema;
|
|
4448
|
+
},
|
|
4109
4449
|
publishedContentHash: z.nullable(z.string()),
|
|
4110
4450
|
publishedAt: z.nullable(z.any()),
|
|
4111
4451
|
pushedKeywords: z.nullable(
|
|
@@ -4453,6 +4793,7 @@ const schemas = {
|
|
|
4453
4793
|
AbandonBasketRequest: abandonBasketRequestSchema,
|
|
4454
4794
|
AbandonBasketResponse: abandonBasketResponseSchema,
|
|
4455
4795
|
ActorType: actorTypeSchema,
|
|
4796
|
+
AdBiddingStrategy: adBiddingStrategySchema,
|
|
4456
4797
|
AdChannel: adChannelSchema,
|
|
4457
4798
|
AdOwnerType: adOwnerTypeSchema,
|
|
4458
4799
|
AdStatus: adStatusSchema,
|
|
@@ -4469,12 +4810,14 @@ const schemas = {
|
|
|
4469
4810
|
ArticleMentionCounts: articleMentionCountsSchema,
|
|
4470
4811
|
ArticleStatus: articleStatusSchema,
|
|
4471
4812
|
AssetType: assetTypeSchema,
|
|
4813
|
+
AssetWithPublicUrl: assetWithPublicUrlSchema,
|
|
4472
4814
|
AutoExtendFulfillmentIfExpiredRequest: autoExtendFulfillmentIfExpiredRequestSchema,
|
|
4473
4815
|
AutoExtendFulfillmentIfExpiredResponse: autoExtendFulfillmentIfExpiredResponseSchema,
|
|
4474
4816
|
BasketStatus: basketStatusSchema,
|
|
4475
4817
|
BasketTotals: basketTotalsSchema,
|
|
4476
4818
|
BeverageCategory: beverageCategorySchema,
|
|
4477
4819
|
BillingMode: billingModeSchema,
|
|
4820
|
+
BookingChannel: bookingChannelSchema,
|
|
4478
4821
|
CancelSubscriptionRequest: cancelSubscriptionRequestSchema,
|
|
4479
4822
|
CancelSubscriptionResponse: cancelSubscriptionResponseSchema,
|
|
4480
4823
|
CancelTeamOrderRequest: cancelTeamOrderRequestSchema,
|
|
@@ -4512,6 +4855,8 @@ const schemas = {
|
|
|
4512
4855
|
EditAdResponse: editAdResponseSchema,
|
|
4513
4856
|
EditArticleRequest: editArticleRequestSchema,
|
|
4514
4857
|
EditArticleResponse: editArticleResponseSchema,
|
|
4858
|
+
EditBeverageRequest: editBeverageRequestSchema,
|
|
4859
|
+
EditBeverageResponse: editBeverageResponseSchema,
|
|
4515
4860
|
EditDishRequest: editDishRequestSchema,
|
|
4516
4861
|
EditDishResponse: editDishResponseSchema,
|
|
4517
4862
|
EditEventRequest: editEventRequestSchema,
|
|
@@ -4536,6 +4881,7 @@ const schemas = {
|
|
|
4536
4881
|
FetchArticlesResponse: fetchArticlesResponseSchema,
|
|
4537
4882
|
FetchAssetsByTagResponse: fetchAssetsByTagResponseSchema,
|
|
4538
4883
|
FetchBasketResponse: fetchBasketResponseSchema,
|
|
4884
|
+
FetchBeverageResponse: fetchBeverageResponseSchema,
|
|
4539
4885
|
FetchDishResponse: fetchDishResponseSchema,
|
|
4540
4886
|
FetchEventResponse: fetchEventResponseSchema,
|
|
4541
4887
|
FetchEventsResponse: fetchEventsResponseSchema,
|