order3000 1.10.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 +112 -4
- package/dist/client.d.cts +61 -3500
- package/dist/client.d.mts +61 -3500
- package/dist/client.mjs +112 -4
- package/dist/index-bbg7Ev_r.d.cts +3858 -0
- package/dist/index-bbg7Ev_r.d.mts +3858 -0
- package/dist/menu.cjs +35 -0
- package/dist/menu.d.cts +51 -0
- package/dist/menu.d.mts +51 -0
- package/dist/menu.mjs +30 -0
- package/dist/schemas.cjs +522 -1
- package/dist/schemas.d.cts +419 -1
- package/dist/schemas.d.mts +419 -1
- package/dist/schemas.mjs +522 -1
- package/package.json +13 -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,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,6 +1416,207 @@ 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
|
+
|
|
1546
|
+
const editDishRequestSchema = z.object({
|
|
1547
|
+
venueAccessor: z.string().min(1),
|
|
1548
|
+
id: z.string(),
|
|
1549
|
+
name: z.object({}).catchall(z.string().min(1)),
|
|
1550
|
+
shortName: z.object({}).catchall(z.string()).nullish(),
|
|
1551
|
+
kitchenName: z.object({}).catchall(z.string()).nullish(),
|
|
1552
|
+
description: z.object({}).catchall(z.string()).nullish(),
|
|
1553
|
+
longDescription: z.object({}).catchall(z.string()).nullish(),
|
|
1554
|
+
suggestedPrice: z.number().nullish(),
|
|
1555
|
+
get currency() {
|
|
1556
|
+
return currencySchema;
|
|
1557
|
+
},
|
|
1558
|
+
isVegan: z.boolean().default(false),
|
|
1559
|
+
isVegetarian: z.boolean().default(false),
|
|
1560
|
+
isGlutenFree: z.boolean().default(false),
|
|
1561
|
+
isDairyFree: z.boolean().default(false),
|
|
1562
|
+
spiciness: z.int().min(0).max(9007199254740991).default(0),
|
|
1563
|
+
isActive: z.boolean().default(true)
|
|
1564
|
+
});
|
|
1565
|
+
|
|
1566
|
+
const editDishResponseSchema = z.object({
|
|
1567
|
+
id: z.string(),
|
|
1568
|
+
venueId: z.string(),
|
|
1569
|
+
accessor: z.string(),
|
|
1570
|
+
name: z.union([
|
|
1571
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1572
|
+
z.array(z.any()),
|
|
1573
|
+
z.object({}).catchall(z.any())
|
|
1574
|
+
]),
|
|
1575
|
+
shortName: z.nullable(
|
|
1576
|
+
z.union([
|
|
1577
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1578
|
+
z.array(z.any()),
|
|
1579
|
+
z.object({}).catchall(z.any())
|
|
1580
|
+
])
|
|
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
|
+
),
|
|
1589
|
+
description: z.nullable(
|
|
1590
|
+
z.union([
|
|
1591
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1592
|
+
z.array(z.any()),
|
|
1593
|
+
z.object({}).catchall(z.any())
|
|
1594
|
+
])
|
|
1595
|
+
),
|
|
1596
|
+
longDescription: z.nullable(
|
|
1597
|
+
z.union([
|
|
1598
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1599
|
+
z.array(z.any()),
|
|
1600
|
+
z.object({}).catchall(z.any())
|
|
1601
|
+
])
|
|
1602
|
+
),
|
|
1603
|
+
isVegan: z.nullable(z.boolean()),
|
|
1604
|
+
isVegetarian: z.nullable(z.boolean()),
|
|
1605
|
+
isGlutenFree: z.nullable(z.boolean()),
|
|
1606
|
+
isDairyFree: z.nullable(z.boolean()),
|
|
1607
|
+
spiciness: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1608
|
+
suggestedPrice: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1609
|
+
get currency() {
|
|
1610
|
+
return currencySchema;
|
|
1611
|
+
},
|
|
1612
|
+
isActive: z.boolean(),
|
|
1613
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
1614
|
+
updatedAt: z.nullable(z.any()),
|
|
1615
|
+
updatedBy: z.nullable(z.string()),
|
|
1616
|
+
createdAt: z.nullable(z.any()),
|
|
1617
|
+
createdBy: z.nullable(z.string())
|
|
1618
|
+
});
|
|
1619
|
+
|
|
1333
1620
|
const editEventRequestSchema = z.object({
|
|
1334
1621
|
accessor: z.string().nullish(),
|
|
1335
1622
|
name: z.optional(
|
|
@@ -1432,6 +1719,9 @@ const scheduleSchema = z.object({
|
|
|
1432
1719
|
id: z.string(),
|
|
1433
1720
|
startTime: z.string(),
|
|
1434
1721
|
endTime: z.nullable(z.string()),
|
|
1722
|
+
get channel() {
|
|
1723
|
+
return bookingChannelSchema;
|
|
1724
|
+
},
|
|
1435
1725
|
isActive: z.nullable(z.boolean()),
|
|
1436
1726
|
isSchedulable: z.nullable(z.boolean()),
|
|
1437
1727
|
maxBookings: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
@@ -1479,6 +1769,9 @@ const scheduleSchema = z.object({
|
|
|
1479
1769
|
id: z.string(),
|
|
1480
1770
|
startTime: z.string(),
|
|
1481
1771
|
endTime: z.nullable(z.string()),
|
|
1772
|
+
get channel() {
|
|
1773
|
+
return bookingChannelSchema;
|
|
1774
|
+
},
|
|
1482
1775
|
isActive: z.nullable(z.boolean()),
|
|
1483
1776
|
isSchedulable: z.nullable(z.boolean()),
|
|
1484
1777
|
maxBookings: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
@@ -1499,6 +1792,32 @@ const scheduleSchema = z.object({
|
|
|
1499
1792
|
)
|
|
1500
1793
|
})
|
|
1501
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
|
+
)
|
|
1502
1821
|
)
|
|
1503
1822
|
});
|
|
1504
1823
|
|
|
@@ -1657,6 +1976,17 @@ const editMetaAdResponseSchema = z.object({
|
|
|
1657
1976
|
z.array(z.any()),
|
|
1658
1977
|
z.object({}).catchall(z.any())
|
|
1659
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
|
+
},
|
|
1660
1990
|
publishedContentHash: z.nullable(z.string()),
|
|
1661
1991
|
publishedAt: z.nullable(z.any()),
|
|
1662
1992
|
pushedKeywords: z.nullable(
|
|
@@ -1806,6 +2136,17 @@ const fetchAdResponseSchema = z.object({
|
|
|
1806
2136
|
z.array(z.any()),
|
|
1807
2137
|
z.object({}).catchall(z.any())
|
|
1808
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
|
+
},
|
|
1809
2150
|
publishedContentHash: z.nullable(z.string()),
|
|
1810
2151
|
publishedAt: z.nullable(z.any()),
|
|
1811
2152
|
pushedKeywords: z.nullable(
|
|
@@ -1903,6 +2244,17 @@ const fetchAdsResponseSchema = z.array(
|
|
|
1903
2244
|
z.array(z.any()),
|
|
1904
2245
|
z.object({}).catchall(z.any())
|
|
1905
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
|
+
},
|
|
1906
2258
|
publishedContentHash: z.nullable(z.string()),
|
|
1907
2259
|
publishedAt: z.nullable(z.any()),
|
|
1908
2260
|
pushedKeywords: z.nullable(
|
|
@@ -2183,6 +2535,137 @@ const fetchBasketResponseSchema = z.object({
|
|
|
2183
2535
|
updatedAt: z.nullable(z.string())
|
|
2184
2536
|
});
|
|
2185
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
|
+
|
|
2612
|
+
const fetchDishResponseSchema = z.object({
|
|
2613
|
+
id: z.string(),
|
|
2614
|
+
venueId: z.string(),
|
|
2615
|
+
accessor: z.string(),
|
|
2616
|
+
name: z.union([
|
|
2617
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2618
|
+
z.array(z.any()),
|
|
2619
|
+
z.object({}).catchall(z.any())
|
|
2620
|
+
]),
|
|
2621
|
+
shortName: z.nullable(
|
|
2622
|
+
z.union([
|
|
2623
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2624
|
+
z.array(z.any()),
|
|
2625
|
+
z.object({}).catchall(z.any())
|
|
2626
|
+
])
|
|
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
|
+
),
|
|
2635
|
+
description: z.nullable(
|
|
2636
|
+
z.union([
|
|
2637
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2638
|
+
z.array(z.any()),
|
|
2639
|
+
z.object({}).catchall(z.any())
|
|
2640
|
+
])
|
|
2641
|
+
),
|
|
2642
|
+
longDescription: z.nullable(
|
|
2643
|
+
z.union([
|
|
2644
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2645
|
+
z.array(z.any()),
|
|
2646
|
+
z.object({}).catchall(z.any())
|
|
2647
|
+
])
|
|
2648
|
+
),
|
|
2649
|
+
isVegan: z.nullable(z.boolean()),
|
|
2650
|
+
isVegetarian: z.nullable(z.boolean()),
|
|
2651
|
+
isGlutenFree: z.nullable(z.boolean()),
|
|
2652
|
+
isDairyFree: z.nullable(z.boolean()),
|
|
2653
|
+
spiciness: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
2654
|
+
suggestedPrice: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
2655
|
+
get currency() {
|
|
2656
|
+
return currencySchema;
|
|
2657
|
+
},
|
|
2658
|
+
isActive: z.boolean(),
|
|
2659
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
2660
|
+
updatedAt: z.nullable(z.any()),
|
|
2661
|
+
updatedBy: z.nullable(z.string()),
|
|
2662
|
+
createdAt: z.nullable(z.any()),
|
|
2663
|
+
createdBy: z.nullable(z.string()),
|
|
2664
|
+
get assets() {
|
|
2665
|
+
return z.array(assetWithPublicUrlSchema);
|
|
2666
|
+
}
|
|
2667
|
+
});
|
|
2668
|
+
|
|
2186
2669
|
const fetchEventResponseSchema = z.object({
|
|
2187
2670
|
id: z.string(),
|
|
2188
2671
|
venueId: z.string(),
|
|
@@ -2655,6 +3138,7 @@ const fetchMenuResponseSchema = z.object({
|
|
|
2655
3138
|
height: z.number()
|
|
2656
3139
|
})
|
|
2657
3140
|
),
|
|
3141
|
+
contentHash: z.nullable(z.string()),
|
|
2658
3142
|
publicUrl: z.string()
|
|
2659
3143
|
})
|
|
2660
3144
|
),
|
|
@@ -2673,6 +3157,12 @@ const fetchMenuResponseSchema = z.object({
|
|
|
2673
3157
|
isActive: z.boolean(),
|
|
2674
3158
|
isFeatured: z.boolean(),
|
|
2675
3159
|
sortIndex: z.nullable(z.string()),
|
|
3160
|
+
get availableDays() {
|
|
3161
|
+
return z.array(dayOfWeekSchema).nullable();
|
|
3162
|
+
},
|
|
3163
|
+
availableWeeks: z.nullable(
|
|
3164
|
+
z.array(z.int().min(-9007199254740991).max(9007199254740991))
|
|
3165
|
+
),
|
|
2676
3166
|
dish: z.nullable(
|
|
2677
3167
|
z.object({
|
|
2678
3168
|
id: z.string(),
|
|
@@ -2723,6 +3213,7 @@ const fetchMenuResponseSchema = z.object({
|
|
|
2723
3213
|
height: z.number()
|
|
2724
3214
|
})
|
|
2725
3215
|
),
|
|
3216
|
+
contentHash: z.nullable(z.string()),
|
|
2726
3217
|
publicUrl: z.string()
|
|
2727
3218
|
})
|
|
2728
3219
|
)
|
|
@@ -2774,6 +3265,7 @@ const fetchMenuResponseSchema = z.object({
|
|
|
2774
3265
|
height: z.number()
|
|
2775
3266
|
})
|
|
2776
3267
|
),
|
|
3268
|
+
contentHash: z.nullable(z.string()),
|
|
2777
3269
|
publicUrl: z.string()
|
|
2778
3270
|
})
|
|
2779
3271
|
)
|
|
@@ -2987,7 +3479,13 @@ const fetchRitualResponseSchema = z.object({
|
|
|
2987
3479
|
}
|
|
2988
3480
|
});
|
|
2989
3481
|
|
|
2990
|
-
const occupancyReasonSchema = z.enum([
|
|
3482
|
+
const occupancyReasonSchema = z.enum([
|
|
3483
|
+
"ok",
|
|
3484
|
+
"tables",
|
|
3485
|
+
"personnel",
|
|
3486
|
+
"window",
|
|
3487
|
+
"slot_capacity"
|
|
3488
|
+
]);
|
|
2991
3489
|
|
|
2992
3490
|
const fetchSlotAvailabilityResponseSchema = z.array(
|
|
2993
3491
|
z.object({
|
|
@@ -3302,6 +3800,8 @@ const getWebsitePagesResponseSchema = z.array(
|
|
|
3302
3800
|
})
|
|
3303
3801
|
);
|
|
3304
3802
|
|
|
3803
|
+
const googleAdsAssetFamilySchema = z.enum(["sitelinks", "callouts"]);
|
|
3804
|
+
|
|
3305
3805
|
const integrationNotificationTypeSchema = z.enum([
|
|
3306
3806
|
"order_created",
|
|
3307
3807
|
"order_cancelled",
|
|
@@ -3935,6 +4435,17 @@ const setAdBudgetResponseSchema = z.object({
|
|
|
3935
4435
|
z.array(z.any()),
|
|
3936
4436
|
z.object({}).catchall(z.any())
|
|
3937
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
|
+
},
|
|
3938
4449
|
publishedContentHash: z.nullable(z.string()),
|
|
3939
4450
|
publishedAt: z.nullable(z.any()),
|
|
3940
4451
|
pushedKeywords: z.nullable(
|
|
@@ -4282,6 +4793,7 @@ const schemas = {
|
|
|
4282
4793
|
AbandonBasketRequest: abandonBasketRequestSchema,
|
|
4283
4794
|
AbandonBasketResponse: abandonBasketResponseSchema,
|
|
4284
4795
|
ActorType: actorTypeSchema,
|
|
4796
|
+
AdBiddingStrategy: adBiddingStrategySchema,
|
|
4285
4797
|
AdChannel: adChannelSchema,
|
|
4286
4798
|
AdOwnerType: adOwnerTypeSchema,
|
|
4287
4799
|
AdStatus: adStatusSchema,
|
|
@@ -4298,12 +4810,14 @@ const schemas = {
|
|
|
4298
4810
|
ArticleMentionCounts: articleMentionCountsSchema,
|
|
4299
4811
|
ArticleStatus: articleStatusSchema,
|
|
4300
4812
|
AssetType: assetTypeSchema,
|
|
4813
|
+
AssetWithPublicUrl: assetWithPublicUrlSchema,
|
|
4301
4814
|
AutoExtendFulfillmentIfExpiredRequest: autoExtendFulfillmentIfExpiredRequestSchema,
|
|
4302
4815
|
AutoExtendFulfillmentIfExpiredResponse: autoExtendFulfillmentIfExpiredResponseSchema,
|
|
4303
4816
|
BasketStatus: basketStatusSchema,
|
|
4304
4817
|
BasketTotals: basketTotalsSchema,
|
|
4305
4818
|
BeverageCategory: beverageCategorySchema,
|
|
4306
4819
|
BillingMode: billingModeSchema,
|
|
4820
|
+
BookingChannel: bookingChannelSchema,
|
|
4307
4821
|
CancelSubscriptionRequest: cancelSubscriptionRequestSchema,
|
|
4308
4822
|
CancelSubscriptionResponse: cancelSubscriptionResponseSchema,
|
|
4309
4823
|
CancelTeamOrderRequest: cancelTeamOrderRequestSchema,
|
|
@@ -4341,6 +4855,10 @@ const schemas = {
|
|
|
4341
4855
|
EditAdResponse: editAdResponseSchema,
|
|
4342
4856
|
EditArticleRequest: editArticleRequestSchema,
|
|
4343
4857
|
EditArticleResponse: editArticleResponseSchema,
|
|
4858
|
+
EditBeverageRequest: editBeverageRequestSchema,
|
|
4859
|
+
EditBeverageResponse: editBeverageResponseSchema,
|
|
4860
|
+
EditDishRequest: editDishRequestSchema,
|
|
4861
|
+
EditDishResponse: editDishResponseSchema,
|
|
4344
4862
|
EditEventRequest: editEventRequestSchema,
|
|
4345
4863
|
EditEventResponse: editEventResponseSchema,
|
|
4346
4864
|
EditMetaAdRequest: editMetaAdRequestSchema,
|
|
@@ -4363,6 +4881,8 @@ const schemas = {
|
|
|
4363
4881
|
FetchArticlesResponse: fetchArticlesResponseSchema,
|
|
4364
4882
|
FetchAssetsByTagResponse: fetchAssetsByTagResponseSchema,
|
|
4365
4883
|
FetchBasketResponse: fetchBasketResponseSchema,
|
|
4884
|
+
FetchBeverageResponse: fetchBeverageResponseSchema,
|
|
4885
|
+
FetchDishResponse: fetchDishResponseSchema,
|
|
4366
4886
|
FetchEventResponse: fetchEventResponseSchema,
|
|
4367
4887
|
FetchEventsResponse: fetchEventsResponseSchema,
|
|
4368
4888
|
FetchLatestOrderResponse: fetchLatestOrderResponseSchema,
|
|
@@ -4384,6 +4904,7 @@ const schemas = {
|
|
|
4384
4904
|
GetSubscriptionResponse: getSubscriptionResponseSchema,
|
|
4385
4905
|
GetVenueResponse: getVenueResponseSchema,
|
|
4386
4906
|
GetWebsitePagesResponse: getWebsitePagesResponseSchema,
|
|
4907
|
+
GoogleAdsAssetFamily: googleAdsAssetFamilySchema,
|
|
4387
4908
|
IntegrationNotificationType: integrationNotificationTypeSchema,
|
|
4388
4909
|
IntegrationType: integrationTypeSchema,
|
|
4389
4910
|
InventoryAssetStatus: inventoryAssetStatusSchema,
|