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.cjs
CHANGED
|
@@ -13,6 +13,11 @@ const abandonBasketResponseSchema = v4.z.object({
|
|
|
13
13
|
|
|
14
14
|
const actorTypeSchema = v4.z.enum(["human", "robot"]);
|
|
15
15
|
|
|
16
|
+
const adBiddingStrategySchema = v4.z.enum([
|
|
17
|
+
"MAXIMIZE_CONVERSIONS",
|
|
18
|
+
"MAXIMIZE_CLICKS"
|
|
19
|
+
]);
|
|
20
|
+
|
|
16
21
|
const adChannelSchema = v4.z.enum(["google", "facebook", "instagram"]);
|
|
17
22
|
|
|
18
23
|
const adOwnerTypeSchema = v4.z.enum([
|
|
@@ -243,6 +248,52 @@ const articleMentionCountsSchema = v4.z.object({
|
|
|
243
248
|
|
|
244
249
|
const articleStatusSchema = v4.z.enum(["draft", "published"]);
|
|
245
250
|
|
|
251
|
+
const assetWithPublicUrlSchema = v4.z.object({
|
|
252
|
+
id: v4.z.string(),
|
|
253
|
+
get type() {
|
|
254
|
+
return assetTypeSchema;
|
|
255
|
+
},
|
|
256
|
+
tags: v4.z.nullable(v4.z.array(v4.z.string())),
|
|
257
|
+
bucket: v4.z.string(),
|
|
258
|
+
storagePath: v4.z.string(),
|
|
259
|
+
filename: v4.z.string(),
|
|
260
|
+
contentType: v4.z.string(),
|
|
261
|
+
sizeBytes: v4.z.int().min(-2147483648).max(2147483647),
|
|
262
|
+
caption: v4.z.union([
|
|
263
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
264
|
+
v4.z.array(v4.z.any()),
|
|
265
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
266
|
+
]),
|
|
267
|
+
alt: v4.z.union([
|
|
268
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
269
|
+
v4.z.array(v4.z.any()),
|
|
270
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
271
|
+
]),
|
|
272
|
+
metadata: v4.z.nullable(
|
|
273
|
+
v4.z.union([
|
|
274
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
275
|
+
v4.z.array(v4.z.any()),
|
|
276
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
277
|
+
])
|
|
278
|
+
),
|
|
279
|
+
cropArea: v4.z.nullable(
|
|
280
|
+
v4.z.union([
|
|
281
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
282
|
+
v4.z.array(v4.z.any()),
|
|
283
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
284
|
+
])
|
|
285
|
+
),
|
|
286
|
+
isActive: v4.z.boolean(),
|
|
287
|
+
sortIndex: v4.z.nullable(v4.z.string().max(255)),
|
|
288
|
+
createdAt: v4.z.nullable(v4.z.any()),
|
|
289
|
+
updatedAt: v4.z.nullable(v4.z.any()),
|
|
290
|
+
createdBy: v4.z.nullable(v4.z.string()),
|
|
291
|
+
updatedBy: v4.z.nullable(v4.z.string()),
|
|
292
|
+
venueId: v4.z.nullable(v4.z.string()),
|
|
293
|
+
contentHash: v4.z.nullable(v4.z.string()),
|
|
294
|
+
publicUrl: v4.z.nullable(v4.z.string())
|
|
295
|
+
});
|
|
296
|
+
|
|
246
297
|
const autoExtendFulfillmentIfExpiredRequestSchema = v4.z.object({
|
|
247
298
|
publicId: v4.z.string().min(1),
|
|
248
299
|
sessionId: v4.z.string().min(1),
|
|
@@ -276,6 +327,8 @@ const beverageCategorySchema = v4.z.enum([
|
|
|
276
327
|
|
|
277
328
|
const billingModeSchema = v4.z.enum(["single_anchor", "split"]);
|
|
278
329
|
|
|
330
|
+
const bookingChannelSchema = v4.z.enum(["reservation", "order"]);
|
|
331
|
+
|
|
279
332
|
const cancelSubscriptionRequestSchema = v4.z.object({
|
|
280
333
|
subscriberId: v4.z.string().min(1)
|
|
281
334
|
});
|
|
@@ -665,6 +718,17 @@ const createAdResponseSchema = v4.z.object({
|
|
|
665
718
|
v4.z.array(v4.z.any()),
|
|
666
719
|
v4.z.object({}).catchall(v4.z.any())
|
|
667
720
|
]),
|
|
721
|
+
manageCallScheduleSelf: v4.z.boolean(),
|
|
722
|
+
callScheduleRitualAccessors: v4.z.union([
|
|
723
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
724
|
+
v4.z.array(v4.z.any()),
|
|
725
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
726
|
+
]),
|
|
727
|
+
phone: v4.z.nullable(v4.z.string()),
|
|
728
|
+
manageBiddingStrategySelf: v4.z.boolean(),
|
|
729
|
+
get biddingStrategy() {
|
|
730
|
+
return adBiddingStrategySchema;
|
|
731
|
+
},
|
|
668
732
|
publishedContentHash: v4.z.nullable(v4.z.string()),
|
|
669
733
|
publishedAt: v4.z.nullable(v4.z.any()),
|
|
670
734
|
pushedKeywords: v4.z.nullable(
|
|
@@ -1034,6 +1098,17 @@ const deleteAdResponseSchema = v4.z.object({
|
|
|
1034
1098
|
v4.z.array(v4.z.any()),
|
|
1035
1099
|
v4.z.object({}).catchall(v4.z.any())
|
|
1036
1100
|
]),
|
|
1101
|
+
manageCallScheduleSelf: v4.z.boolean(),
|
|
1102
|
+
callScheduleRitualAccessors: v4.z.union([
|
|
1103
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1104
|
+
v4.z.array(v4.z.any()),
|
|
1105
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1106
|
+
]),
|
|
1107
|
+
phone: v4.z.nullable(v4.z.string()),
|
|
1108
|
+
manageBiddingStrategySelf: v4.z.boolean(),
|
|
1109
|
+
get biddingStrategy() {
|
|
1110
|
+
return adBiddingStrategySchema;
|
|
1111
|
+
},
|
|
1037
1112
|
publishedContentHash: v4.z.nullable(v4.z.string()),
|
|
1038
1113
|
publishedAt: v4.z.nullable(v4.z.any()),
|
|
1039
1114
|
pushedKeywords: v4.z.nullable(
|
|
@@ -1255,6 +1330,17 @@ const editAdResponseSchema = v4.z.object({
|
|
|
1255
1330
|
v4.z.array(v4.z.any()),
|
|
1256
1331
|
v4.z.object({}).catchall(v4.z.any())
|
|
1257
1332
|
]),
|
|
1333
|
+
manageCallScheduleSelf: v4.z.boolean(),
|
|
1334
|
+
callScheduleRitualAccessors: v4.z.union([
|
|
1335
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1336
|
+
v4.z.array(v4.z.any()),
|
|
1337
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1338
|
+
]),
|
|
1339
|
+
phone: v4.z.nullable(v4.z.string()),
|
|
1340
|
+
manageBiddingStrategySelf: v4.z.boolean(),
|
|
1341
|
+
get biddingStrategy() {
|
|
1342
|
+
return adBiddingStrategySchema;
|
|
1343
|
+
},
|
|
1258
1344
|
publishedContentHash: v4.z.nullable(v4.z.string()),
|
|
1259
1345
|
publishedAt: v4.z.nullable(v4.z.any()),
|
|
1260
1346
|
pushedKeywords: v4.z.nullable(
|
|
@@ -1332,6 +1418,207 @@ const editArticleResponseSchema = v4.z.object({
|
|
|
1332
1418
|
"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`."
|
|
1333
1419
|
);
|
|
1334
1420
|
|
|
1421
|
+
const editBeverageRequestSchema = v4.z.object({
|
|
1422
|
+
id: v4.z.string(),
|
|
1423
|
+
venueId: v4.z.optional(v4.z.string()),
|
|
1424
|
+
accessor: v4.z.optional(v4.z.string()),
|
|
1425
|
+
name: v4.z.optional(
|
|
1426
|
+
v4.z.union([
|
|
1427
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1428
|
+
v4.z.array(v4.z.any()),
|
|
1429
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1430
|
+
])
|
|
1431
|
+
),
|
|
1432
|
+
shortName: v4.z.union([
|
|
1433
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1434
|
+
v4.z.array(v4.z.any()),
|
|
1435
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1436
|
+
]).nullish(),
|
|
1437
|
+
kitchenName: v4.z.union([
|
|
1438
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1439
|
+
v4.z.array(v4.z.any()),
|
|
1440
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1441
|
+
]).nullish(),
|
|
1442
|
+
description: v4.z.union([
|
|
1443
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1444
|
+
v4.z.array(v4.z.any()),
|
|
1445
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1446
|
+
]).nullish(),
|
|
1447
|
+
longDescription: v4.z.union([
|
|
1448
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1449
|
+
v4.z.array(v4.z.any()),
|
|
1450
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1451
|
+
]).nullish(),
|
|
1452
|
+
isAlcoholic: v4.z.optional(v4.z.boolean()),
|
|
1453
|
+
alcoholPercentage: v4.z.string().nullish(),
|
|
1454
|
+
volumes: v4.z.union([
|
|
1455
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1456
|
+
v4.z.array(v4.z.any()),
|
|
1457
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1458
|
+
]).nullish(),
|
|
1459
|
+
get category() {
|
|
1460
|
+
return beverageCategorySchema.optional();
|
|
1461
|
+
},
|
|
1462
|
+
categoryAttributes: v4.z.union([
|
|
1463
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1464
|
+
v4.z.array(v4.z.any()),
|
|
1465
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1466
|
+
]).nullish(),
|
|
1467
|
+
servingRecommendations: v4.z.union([
|
|
1468
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1469
|
+
v4.z.array(v4.z.any()),
|
|
1470
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1471
|
+
]).nullish(),
|
|
1472
|
+
isActive: v4.z.optional(v4.z.boolean()),
|
|
1473
|
+
sortIndex: v4.z.string().max(255).nullish(),
|
|
1474
|
+
venueAccessor: v4.z.string().min(1)
|
|
1475
|
+
});
|
|
1476
|
+
|
|
1477
|
+
const editBeverageResponseSchema = v4.z.object({
|
|
1478
|
+
id: v4.z.string(),
|
|
1479
|
+
venueId: v4.z.string(),
|
|
1480
|
+
accessor: v4.z.string(),
|
|
1481
|
+
name: v4.z.union([
|
|
1482
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1483
|
+
v4.z.array(v4.z.any()),
|
|
1484
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1485
|
+
]),
|
|
1486
|
+
shortName: v4.z.nullable(
|
|
1487
|
+
v4.z.union([
|
|
1488
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1489
|
+
v4.z.array(v4.z.any()),
|
|
1490
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1491
|
+
])
|
|
1492
|
+
),
|
|
1493
|
+
kitchenName: v4.z.nullable(
|
|
1494
|
+
v4.z.union([
|
|
1495
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1496
|
+
v4.z.array(v4.z.any()),
|
|
1497
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1498
|
+
])
|
|
1499
|
+
),
|
|
1500
|
+
description: v4.z.nullable(
|
|
1501
|
+
v4.z.union([
|
|
1502
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1503
|
+
v4.z.array(v4.z.any()),
|
|
1504
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1505
|
+
])
|
|
1506
|
+
),
|
|
1507
|
+
longDescription: v4.z.nullable(
|
|
1508
|
+
v4.z.union([
|
|
1509
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1510
|
+
v4.z.array(v4.z.any()),
|
|
1511
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1512
|
+
])
|
|
1513
|
+
),
|
|
1514
|
+
isAlcoholic: v4.z.boolean(),
|
|
1515
|
+
alcoholPercentage: v4.z.nullable(v4.z.string()),
|
|
1516
|
+
volumes: v4.z.nullable(
|
|
1517
|
+
v4.z.union([
|
|
1518
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1519
|
+
v4.z.array(v4.z.any()),
|
|
1520
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1521
|
+
])
|
|
1522
|
+
),
|
|
1523
|
+
get category() {
|
|
1524
|
+
return beverageCategorySchema;
|
|
1525
|
+
},
|
|
1526
|
+
categoryAttributes: v4.z.nullable(
|
|
1527
|
+
v4.z.union([
|
|
1528
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1529
|
+
v4.z.array(v4.z.any()),
|
|
1530
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1531
|
+
])
|
|
1532
|
+
),
|
|
1533
|
+
servingRecommendations: v4.z.nullable(
|
|
1534
|
+
v4.z.union([
|
|
1535
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1536
|
+
v4.z.array(v4.z.any()),
|
|
1537
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1538
|
+
])
|
|
1539
|
+
),
|
|
1540
|
+
isActive: v4.z.boolean(),
|
|
1541
|
+
sortIndex: v4.z.nullable(v4.z.string().max(255)),
|
|
1542
|
+
updatedAt: v4.z.nullable(v4.z.any()),
|
|
1543
|
+
updatedBy: v4.z.nullable(v4.z.string()),
|
|
1544
|
+
createdAt: v4.z.nullable(v4.z.any()),
|
|
1545
|
+
createdBy: v4.z.nullable(v4.z.string())
|
|
1546
|
+
});
|
|
1547
|
+
|
|
1548
|
+
const editDishRequestSchema = v4.z.object({
|
|
1549
|
+
venueAccessor: v4.z.string().min(1),
|
|
1550
|
+
id: v4.z.string(),
|
|
1551
|
+
name: v4.z.object({}).catchall(v4.z.string().min(1)),
|
|
1552
|
+
shortName: v4.z.object({}).catchall(v4.z.string()).nullish(),
|
|
1553
|
+
kitchenName: v4.z.object({}).catchall(v4.z.string()).nullish(),
|
|
1554
|
+
description: v4.z.object({}).catchall(v4.z.string()).nullish(),
|
|
1555
|
+
longDescription: v4.z.object({}).catchall(v4.z.string()).nullish(),
|
|
1556
|
+
suggestedPrice: v4.z.number().nullish(),
|
|
1557
|
+
get currency() {
|
|
1558
|
+
return currencySchema;
|
|
1559
|
+
},
|
|
1560
|
+
isVegan: v4.z.boolean().default(false),
|
|
1561
|
+
isVegetarian: v4.z.boolean().default(false),
|
|
1562
|
+
isGlutenFree: v4.z.boolean().default(false),
|
|
1563
|
+
isDairyFree: v4.z.boolean().default(false),
|
|
1564
|
+
spiciness: v4.z.int().min(0).max(9007199254740991).default(0),
|
|
1565
|
+
isActive: v4.z.boolean().default(true)
|
|
1566
|
+
});
|
|
1567
|
+
|
|
1568
|
+
const editDishResponseSchema = v4.z.object({
|
|
1569
|
+
id: v4.z.string(),
|
|
1570
|
+
venueId: v4.z.string(),
|
|
1571
|
+
accessor: v4.z.string(),
|
|
1572
|
+
name: v4.z.union([
|
|
1573
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1574
|
+
v4.z.array(v4.z.any()),
|
|
1575
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1576
|
+
]),
|
|
1577
|
+
shortName: v4.z.nullable(
|
|
1578
|
+
v4.z.union([
|
|
1579
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1580
|
+
v4.z.array(v4.z.any()),
|
|
1581
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1582
|
+
])
|
|
1583
|
+
),
|
|
1584
|
+
kitchenName: v4.z.nullable(
|
|
1585
|
+
v4.z.union([
|
|
1586
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1587
|
+
v4.z.array(v4.z.any()),
|
|
1588
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1589
|
+
])
|
|
1590
|
+
),
|
|
1591
|
+
description: v4.z.nullable(
|
|
1592
|
+
v4.z.union([
|
|
1593
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1594
|
+
v4.z.array(v4.z.any()),
|
|
1595
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1596
|
+
])
|
|
1597
|
+
),
|
|
1598
|
+
longDescription: v4.z.nullable(
|
|
1599
|
+
v4.z.union([
|
|
1600
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1601
|
+
v4.z.array(v4.z.any()),
|
|
1602
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1603
|
+
])
|
|
1604
|
+
),
|
|
1605
|
+
isVegan: v4.z.nullable(v4.z.boolean()),
|
|
1606
|
+
isVegetarian: v4.z.nullable(v4.z.boolean()),
|
|
1607
|
+
isGlutenFree: v4.z.nullable(v4.z.boolean()),
|
|
1608
|
+
isDairyFree: v4.z.nullable(v4.z.boolean()),
|
|
1609
|
+
spiciness: v4.z.nullable(v4.z.int().min(-2147483648).max(2147483647)),
|
|
1610
|
+
suggestedPrice: v4.z.nullable(v4.z.int().min(-2147483648).max(2147483647)),
|
|
1611
|
+
get currency() {
|
|
1612
|
+
return currencySchema;
|
|
1613
|
+
},
|
|
1614
|
+
isActive: v4.z.boolean(),
|
|
1615
|
+
sortIndex: v4.z.nullable(v4.z.string().max(255)),
|
|
1616
|
+
updatedAt: v4.z.nullable(v4.z.any()),
|
|
1617
|
+
updatedBy: v4.z.nullable(v4.z.string()),
|
|
1618
|
+
createdAt: v4.z.nullable(v4.z.any()),
|
|
1619
|
+
createdBy: v4.z.nullable(v4.z.string())
|
|
1620
|
+
});
|
|
1621
|
+
|
|
1335
1622
|
const editEventRequestSchema = v4.z.object({
|
|
1336
1623
|
accessor: v4.z.string().nullish(),
|
|
1337
1624
|
name: v4.z.optional(
|
|
@@ -1434,6 +1721,9 @@ const scheduleSchema = v4.z.object({
|
|
|
1434
1721
|
id: v4.z.string(),
|
|
1435
1722
|
startTime: v4.z.string(),
|
|
1436
1723
|
endTime: v4.z.nullable(v4.z.string()),
|
|
1724
|
+
get channel() {
|
|
1725
|
+
return bookingChannelSchema;
|
|
1726
|
+
},
|
|
1437
1727
|
isActive: v4.z.nullable(v4.z.boolean()),
|
|
1438
1728
|
isSchedulable: v4.z.nullable(v4.z.boolean()),
|
|
1439
1729
|
maxBookings: v4.z.nullable(v4.z.int().min(-2147483648).max(2147483647)),
|
|
@@ -1481,6 +1771,9 @@ const scheduleSchema = v4.z.object({
|
|
|
1481
1771
|
id: v4.z.string(),
|
|
1482
1772
|
startTime: v4.z.string(),
|
|
1483
1773
|
endTime: v4.z.nullable(v4.z.string()),
|
|
1774
|
+
get channel() {
|
|
1775
|
+
return bookingChannelSchema;
|
|
1776
|
+
},
|
|
1484
1777
|
isActive: v4.z.nullable(v4.z.boolean()),
|
|
1485
1778
|
isSchedulable: v4.z.nullable(v4.z.boolean()),
|
|
1486
1779
|
maxBookings: v4.z.nullable(v4.z.int().min(-2147483648).max(2147483647)),
|
|
@@ -1501,6 +1794,32 @@ const scheduleSchema = v4.z.object({
|
|
|
1501
1794
|
)
|
|
1502
1795
|
})
|
|
1503
1796
|
)
|
|
1797
|
+
),
|
|
1798
|
+
scheduleSlotPolicies: v4.z.optional(
|
|
1799
|
+
v4.z.array(
|
|
1800
|
+
v4.z.object({
|
|
1801
|
+
id: v4.z.string(),
|
|
1802
|
+
scheduleId: v4.z.string(),
|
|
1803
|
+
get channel() {
|
|
1804
|
+
return bookingChannelSchema;
|
|
1805
|
+
},
|
|
1806
|
+
get slotMode() {
|
|
1807
|
+
return slotModeSchema;
|
|
1808
|
+
},
|
|
1809
|
+
intervalDuration: v4.z.nullable(v4.z.int().min(-2147483648).max(2147483647)),
|
|
1810
|
+
duration: v4.z.nullable(v4.z.int().min(-2147483648).max(2147483647)),
|
|
1811
|
+
bookingOpensAtDays: v4.z.nullable(
|
|
1812
|
+
v4.z.int().min(-2147483648).max(2147483647)
|
|
1813
|
+
),
|
|
1814
|
+
bookingClosesAtOffset: v4.z.nullable(
|
|
1815
|
+
v4.z.int().min(-2147483648).max(2147483647)
|
|
1816
|
+
),
|
|
1817
|
+
updatedAt: v4.z.nullable(v4.z.any()),
|
|
1818
|
+
updatedBy: v4.z.nullable(v4.z.string()),
|
|
1819
|
+
createdAt: v4.z.nullable(v4.z.any()),
|
|
1820
|
+
createdBy: v4.z.nullable(v4.z.string())
|
|
1821
|
+
})
|
|
1822
|
+
)
|
|
1504
1823
|
)
|
|
1505
1824
|
});
|
|
1506
1825
|
|
|
@@ -1659,6 +1978,17 @@ const editMetaAdResponseSchema = v4.z.object({
|
|
|
1659
1978
|
v4.z.array(v4.z.any()),
|
|
1660
1979
|
v4.z.object({}).catchall(v4.z.any())
|
|
1661
1980
|
]),
|
|
1981
|
+
manageCallScheduleSelf: v4.z.boolean(),
|
|
1982
|
+
callScheduleRitualAccessors: v4.z.union([
|
|
1983
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1984
|
+
v4.z.array(v4.z.any()),
|
|
1985
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1986
|
+
]),
|
|
1987
|
+
phone: v4.z.nullable(v4.z.string()),
|
|
1988
|
+
manageBiddingStrategySelf: v4.z.boolean(),
|
|
1989
|
+
get biddingStrategy() {
|
|
1990
|
+
return adBiddingStrategySchema;
|
|
1991
|
+
},
|
|
1662
1992
|
publishedContentHash: v4.z.nullable(v4.z.string()),
|
|
1663
1993
|
publishedAt: v4.z.nullable(v4.z.any()),
|
|
1664
1994
|
pushedKeywords: v4.z.nullable(
|
|
@@ -1808,6 +2138,17 @@ const fetchAdResponseSchema = v4.z.object({
|
|
|
1808
2138
|
v4.z.array(v4.z.any()),
|
|
1809
2139
|
v4.z.object({}).catchall(v4.z.any())
|
|
1810
2140
|
]),
|
|
2141
|
+
manageCallScheduleSelf: v4.z.boolean(),
|
|
2142
|
+
callScheduleRitualAccessors: v4.z.union([
|
|
2143
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
2144
|
+
v4.z.array(v4.z.any()),
|
|
2145
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
2146
|
+
]),
|
|
2147
|
+
phone: v4.z.nullable(v4.z.string()),
|
|
2148
|
+
manageBiddingStrategySelf: v4.z.boolean(),
|
|
2149
|
+
get biddingStrategy() {
|
|
2150
|
+
return adBiddingStrategySchema;
|
|
2151
|
+
},
|
|
1811
2152
|
publishedContentHash: v4.z.nullable(v4.z.string()),
|
|
1812
2153
|
publishedAt: v4.z.nullable(v4.z.any()),
|
|
1813
2154
|
pushedKeywords: v4.z.nullable(
|
|
@@ -1905,6 +2246,17 @@ const fetchAdsResponseSchema = v4.z.array(
|
|
|
1905
2246
|
v4.z.array(v4.z.any()),
|
|
1906
2247
|
v4.z.object({}).catchall(v4.z.any())
|
|
1907
2248
|
]),
|
|
2249
|
+
manageCallScheduleSelf: v4.z.boolean(),
|
|
2250
|
+
callScheduleRitualAccessors: v4.z.union([
|
|
2251
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
2252
|
+
v4.z.array(v4.z.any()),
|
|
2253
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
2254
|
+
]),
|
|
2255
|
+
phone: v4.z.nullable(v4.z.string()),
|
|
2256
|
+
manageBiddingStrategySelf: v4.z.boolean(),
|
|
2257
|
+
get biddingStrategy() {
|
|
2258
|
+
return adBiddingStrategySchema;
|
|
2259
|
+
},
|
|
1908
2260
|
publishedContentHash: v4.z.nullable(v4.z.string()),
|
|
1909
2261
|
publishedAt: v4.z.nullable(v4.z.any()),
|
|
1910
2262
|
pushedKeywords: v4.z.nullable(
|
|
@@ -2185,6 +2537,137 @@ const fetchBasketResponseSchema = v4.z.object({
|
|
|
2185
2537
|
updatedAt: v4.z.nullable(v4.z.string())
|
|
2186
2538
|
});
|
|
2187
2539
|
|
|
2540
|
+
const fetchBeverageResponseSchema = v4.z.object({
|
|
2541
|
+
id: v4.z.string(),
|
|
2542
|
+
venueId: v4.z.string(),
|
|
2543
|
+
accessor: v4.z.string(),
|
|
2544
|
+
name: v4.z.union([
|
|
2545
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
2546
|
+
v4.z.array(v4.z.any()),
|
|
2547
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
2548
|
+
]),
|
|
2549
|
+
shortName: v4.z.nullable(
|
|
2550
|
+
v4.z.union([
|
|
2551
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
2552
|
+
v4.z.array(v4.z.any()),
|
|
2553
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
2554
|
+
])
|
|
2555
|
+
),
|
|
2556
|
+
kitchenName: v4.z.nullable(
|
|
2557
|
+
v4.z.union([
|
|
2558
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
2559
|
+
v4.z.array(v4.z.any()),
|
|
2560
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
2561
|
+
])
|
|
2562
|
+
),
|
|
2563
|
+
description: v4.z.nullable(
|
|
2564
|
+
v4.z.union([
|
|
2565
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
2566
|
+
v4.z.array(v4.z.any()),
|
|
2567
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
2568
|
+
])
|
|
2569
|
+
),
|
|
2570
|
+
longDescription: v4.z.nullable(
|
|
2571
|
+
v4.z.union([
|
|
2572
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
2573
|
+
v4.z.array(v4.z.any()),
|
|
2574
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
2575
|
+
])
|
|
2576
|
+
),
|
|
2577
|
+
isAlcoholic: v4.z.boolean(),
|
|
2578
|
+
alcoholPercentage: v4.z.nullable(v4.z.string()),
|
|
2579
|
+
volumes: v4.z.nullable(
|
|
2580
|
+
v4.z.union([
|
|
2581
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
2582
|
+
v4.z.array(v4.z.any()),
|
|
2583
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
2584
|
+
])
|
|
2585
|
+
),
|
|
2586
|
+
get category() {
|
|
2587
|
+
return beverageCategorySchema;
|
|
2588
|
+
},
|
|
2589
|
+
categoryAttributes: v4.z.nullable(
|
|
2590
|
+
v4.z.union([
|
|
2591
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
2592
|
+
v4.z.array(v4.z.any()),
|
|
2593
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
2594
|
+
])
|
|
2595
|
+
),
|
|
2596
|
+
servingRecommendations: v4.z.nullable(
|
|
2597
|
+
v4.z.union([
|
|
2598
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
2599
|
+
v4.z.array(v4.z.any()),
|
|
2600
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
2601
|
+
])
|
|
2602
|
+
),
|
|
2603
|
+
isActive: v4.z.boolean(),
|
|
2604
|
+
sortIndex: v4.z.nullable(v4.z.string().max(255)),
|
|
2605
|
+
updatedAt: v4.z.nullable(v4.z.any()),
|
|
2606
|
+
updatedBy: v4.z.nullable(v4.z.string()),
|
|
2607
|
+
createdAt: v4.z.nullable(v4.z.any()),
|
|
2608
|
+
createdBy: v4.z.nullable(v4.z.string()),
|
|
2609
|
+
get assets() {
|
|
2610
|
+
return v4.z.array(assetWithPublicUrlSchema);
|
|
2611
|
+
}
|
|
2612
|
+
});
|
|
2613
|
+
|
|
2614
|
+
const fetchDishResponseSchema = v4.z.object({
|
|
2615
|
+
id: v4.z.string(),
|
|
2616
|
+
venueId: v4.z.string(),
|
|
2617
|
+
accessor: v4.z.string(),
|
|
2618
|
+
name: v4.z.union([
|
|
2619
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
2620
|
+
v4.z.array(v4.z.any()),
|
|
2621
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
2622
|
+
]),
|
|
2623
|
+
shortName: v4.z.nullable(
|
|
2624
|
+
v4.z.union([
|
|
2625
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
2626
|
+
v4.z.array(v4.z.any()),
|
|
2627
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
2628
|
+
])
|
|
2629
|
+
),
|
|
2630
|
+
kitchenName: v4.z.nullable(
|
|
2631
|
+
v4.z.union([
|
|
2632
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
2633
|
+
v4.z.array(v4.z.any()),
|
|
2634
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
2635
|
+
])
|
|
2636
|
+
),
|
|
2637
|
+
description: v4.z.nullable(
|
|
2638
|
+
v4.z.union([
|
|
2639
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
2640
|
+
v4.z.array(v4.z.any()),
|
|
2641
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
2642
|
+
])
|
|
2643
|
+
),
|
|
2644
|
+
longDescription: v4.z.nullable(
|
|
2645
|
+
v4.z.union([
|
|
2646
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
2647
|
+
v4.z.array(v4.z.any()),
|
|
2648
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
2649
|
+
])
|
|
2650
|
+
),
|
|
2651
|
+
isVegan: v4.z.nullable(v4.z.boolean()),
|
|
2652
|
+
isVegetarian: v4.z.nullable(v4.z.boolean()),
|
|
2653
|
+
isGlutenFree: v4.z.nullable(v4.z.boolean()),
|
|
2654
|
+
isDairyFree: v4.z.nullable(v4.z.boolean()),
|
|
2655
|
+
spiciness: v4.z.nullable(v4.z.int().min(-2147483648).max(2147483647)),
|
|
2656
|
+
suggestedPrice: v4.z.nullable(v4.z.int().min(-2147483648).max(2147483647)),
|
|
2657
|
+
get currency() {
|
|
2658
|
+
return currencySchema;
|
|
2659
|
+
},
|
|
2660
|
+
isActive: v4.z.boolean(),
|
|
2661
|
+
sortIndex: v4.z.nullable(v4.z.string().max(255)),
|
|
2662
|
+
updatedAt: v4.z.nullable(v4.z.any()),
|
|
2663
|
+
updatedBy: v4.z.nullable(v4.z.string()),
|
|
2664
|
+
createdAt: v4.z.nullable(v4.z.any()),
|
|
2665
|
+
createdBy: v4.z.nullable(v4.z.string()),
|
|
2666
|
+
get assets() {
|
|
2667
|
+
return v4.z.array(assetWithPublicUrlSchema);
|
|
2668
|
+
}
|
|
2669
|
+
});
|
|
2670
|
+
|
|
2188
2671
|
const fetchEventResponseSchema = v4.z.object({
|
|
2189
2672
|
id: v4.z.string(),
|
|
2190
2673
|
venueId: v4.z.string(),
|
|
@@ -2657,6 +3140,7 @@ const fetchMenuResponseSchema = v4.z.object({
|
|
|
2657
3140
|
height: v4.z.number()
|
|
2658
3141
|
})
|
|
2659
3142
|
),
|
|
3143
|
+
contentHash: v4.z.nullable(v4.z.string()),
|
|
2660
3144
|
publicUrl: v4.z.string()
|
|
2661
3145
|
})
|
|
2662
3146
|
),
|
|
@@ -2675,6 +3159,12 @@ const fetchMenuResponseSchema = v4.z.object({
|
|
|
2675
3159
|
isActive: v4.z.boolean(),
|
|
2676
3160
|
isFeatured: v4.z.boolean(),
|
|
2677
3161
|
sortIndex: v4.z.nullable(v4.z.string()),
|
|
3162
|
+
get availableDays() {
|
|
3163
|
+
return v4.z.array(dayOfWeekSchema).nullable();
|
|
3164
|
+
},
|
|
3165
|
+
availableWeeks: v4.z.nullable(
|
|
3166
|
+
v4.z.array(v4.z.int().min(-9007199254740991).max(9007199254740991))
|
|
3167
|
+
),
|
|
2678
3168
|
dish: v4.z.nullable(
|
|
2679
3169
|
v4.z.object({
|
|
2680
3170
|
id: v4.z.string(),
|
|
@@ -2725,6 +3215,7 @@ const fetchMenuResponseSchema = v4.z.object({
|
|
|
2725
3215
|
height: v4.z.number()
|
|
2726
3216
|
})
|
|
2727
3217
|
),
|
|
3218
|
+
contentHash: v4.z.nullable(v4.z.string()),
|
|
2728
3219
|
publicUrl: v4.z.string()
|
|
2729
3220
|
})
|
|
2730
3221
|
)
|
|
@@ -2776,6 +3267,7 @@ const fetchMenuResponseSchema = v4.z.object({
|
|
|
2776
3267
|
height: v4.z.number()
|
|
2777
3268
|
})
|
|
2778
3269
|
),
|
|
3270
|
+
contentHash: v4.z.nullable(v4.z.string()),
|
|
2779
3271
|
publicUrl: v4.z.string()
|
|
2780
3272
|
})
|
|
2781
3273
|
)
|
|
@@ -2989,7 +3481,13 @@ const fetchRitualResponseSchema = v4.z.object({
|
|
|
2989
3481
|
}
|
|
2990
3482
|
});
|
|
2991
3483
|
|
|
2992
|
-
const occupancyReasonSchema = v4.z.enum([
|
|
3484
|
+
const occupancyReasonSchema = v4.z.enum([
|
|
3485
|
+
"ok",
|
|
3486
|
+
"tables",
|
|
3487
|
+
"personnel",
|
|
3488
|
+
"window",
|
|
3489
|
+
"slot_capacity"
|
|
3490
|
+
]);
|
|
2993
3491
|
|
|
2994
3492
|
const fetchSlotAvailabilityResponseSchema = v4.z.array(
|
|
2995
3493
|
v4.z.object({
|
|
@@ -3304,6 +3802,8 @@ const getWebsitePagesResponseSchema = v4.z.array(
|
|
|
3304
3802
|
})
|
|
3305
3803
|
);
|
|
3306
3804
|
|
|
3805
|
+
const googleAdsAssetFamilySchema = v4.z.enum(["sitelinks", "callouts"]);
|
|
3806
|
+
|
|
3307
3807
|
const integrationNotificationTypeSchema = v4.z.enum([
|
|
3308
3808
|
"order_created",
|
|
3309
3809
|
"order_cancelled",
|
|
@@ -3937,6 +4437,17 @@ const setAdBudgetResponseSchema = v4.z.object({
|
|
|
3937
4437
|
v4.z.array(v4.z.any()),
|
|
3938
4438
|
v4.z.object({}).catchall(v4.z.any())
|
|
3939
4439
|
]),
|
|
4440
|
+
manageCallScheduleSelf: v4.z.boolean(),
|
|
4441
|
+
callScheduleRitualAccessors: v4.z.union([
|
|
4442
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
4443
|
+
v4.z.array(v4.z.any()),
|
|
4444
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
4445
|
+
]),
|
|
4446
|
+
phone: v4.z.nullable(v4.z.string()),
|
|
4447
|
+
manageBiddingStrategySelf: v4.z.boolean(),
|
|
4448
|
+
get biddingStrategy() {
|
|
4449
|
+
return adBiddingStrategySchema;
|
|
4450
|
+
},
|
|
3940
4451
|
publishedContentHash: v4.z.nullable(v4.z.string()),
|
|
3941
4452
|
publishedAt: v4.z.nullable(v4.z.any()),
|
|
3942
4453
|
pushedKeywords: v4.z.nullable(
|
|
@@ -4284,6 +4795,7 @@ const schemas = {
|
|
|
4284
4795
|
AbandonBasketRequest: abandonBasketRequestSchema,
|
|
4285
4796
|
AbandonBasketResponse: abandonBasketResponseSchema,
|
|
4286
4797
|
ActorType: actorTypeSchema,
|
|
4798
|
+
AdBiddingStrategy: adBiddingStrategySchema,
|
|
4287
4799
|
AdChannel: adChannelSchema,
|
|
4288
4800
|
AdOwnerType: adOwnerTypeSchema,
|
|
4289
4801
|
AdStatus: adStatusSchema,
|
|
@@ -4300,12 +4812,14 @@ const schemas = {
|
|
|
4300
4812
|
ArticleMentionCounts: articleMentionCountsSchema,
|
|
4301
4813
|
ArticleStatus: articleStatusSchema,
|
|
4302
4814
|
AssetType: assetTypeSchema,
|
|
4815
|
+
AssetWithPublicUrl: assetWithPublicUrlSchema,
|
|
4303
4816
|
AutoExtendFulfillmentIfExpiredRequest: autoExtendFulfillmentIfExpiredRequestSchema,
|
|
4304
4817
|
AutoExtendFulfillmentIfExpiredResponse: autoExtendFulfillmentIfExpiredResponseSchema,
|
|
4305
4818
|
BasketStatus: basketStatusSchema,
|
|
4306
4819
|
BasketTotals: basketTotalsSchema,
|
|
4307
4820
|
BeverageCategory: beverageCategorySchema,
|
|
4308
4821
|
BillingMode: billingModeSchema,
|
|
4822
|
+
BookingChannel: bookingChannelSchema,
|
|
4309
4823
|
CancelSubscriptionRequest: cancelSubscriptionRequestSchema,
|
|
4310
4824
|
CancelSubscriptionResponse: cancelSubscriptionResponseSchema,
|
|
4311
4825
|
CancelTeamOrderRequest: cancelTeamOrderRequestSchema,
|
|
@@ -4343,6 +4857,10 @@ const schemas = {
|
|
|
4343
4857
|
EditAdResponse: editAdResponseSchema,
|
|
4344
4858
|
EditArticleRequest: editArticleRequestSchema,
|
|
4345
4859
|
EditArticleResponse: editArticleResponseSchema,
|
|
4860
|
+
EditBeverageRequest: editBeverageRequestSchema,
|
|
4861
|
+
EditBeverageResponse: editBeverageResponseSchema,
|
|
4862
|
+
EditDishRequest: editDishRequestSchema,
|
|
4863
|
+
EditDishResponse: editDishResponseSchema,
|
|
4346
4864
|
EditEventRequest: editEventRequestSchema,
|
|
4347
4865
|
EditEventResponse: editEventResponseSchema,
|
|
4348
4866
|
EditMetaAdRequest: editMetaAdRequestSchema,
|
|
@@ -4365,6 +4883,8 @@ const schemas = {
|
|
|
4365
4883
|
FetchArticlesResponse: fetchArticlesResponseSchema,
|
|
4366
4884
|
FetchAssetsByTagResponse: fetchAssetsByTagResponseSchema,
|
|
4367
4885
|
FetchBasketResponse: fetchBasketResponseSchema,
|
|
4886
|
+
FetchBeverageResponse: fetchBeverageResponseSchema,
|
|
4887
|
+
FetchDishResponse: fetchDishResponseSchema,
|
|
4368
4888
|
FetchEventResponse: fetchEventResponseSchema,
|
|
4369
4889
|
FetchEventsResponse: fetchEventsResponseSchema,
|
|
4370
4890
|
FetchLatestOrderResponse: fetchLatestOrderResponseSchema,
|
|
@@ -4386,6 +4906,7 @@ const schemas = {
|
|
|
4386
4906
|
GetSubscriptionResponse: getSubscriptionResponseSchema,
|
|
4387
4907
|
GetVenueResponse: getVenueResponseSchema,
|
|
4388
4908
|
GetWebsitePagesResponse: getWebsitePagesResponseSchema,
|
|
4909
|
+
GoogleAdsAssetFamily: googleAdsAssetFamilySchema,
|
|
4389
4910
|
IntegrationNotificationType: integrationNotificationTypeSchema,
|
|
4390
4911
|
IntegrationType: integrationTypeSchema,
|
|
4391
4912
|
InventoryAssetStatus: inventoryAssetStatusSchema,
|