order3000 1.12.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 +63 -0
- package/dist/client.d.cts +39 -2
- package/dist/client.d.mts +39 -2
- package/dist/client.mjs +63 -0
- package/dist/{index-bbg7Ev_r.d.cts → index-CJebGltI.d.cts} +300 -3
- package/dist/{index-bbg7Ev_r.d.mts → index-CJebGltI.d.mts} +300 -3
- package/dist/menu.d.cts +1 -1
- package/dist/menu.d.mts +1 -1
- package/dist/schemas.cjs +464 -2
- package/dist/schemas.d.cts +417 -1
- package/dist/schemas.d.mts +417 -1
- package/dist/schemas.mjs +464 -2
- package/package.json +3 -3
package/dist/schemas.cjs
CHANGED
|
@@ -329,6 +329,12 @@ const billingModeSchema = v4.z.enum(["single_anchor", "split"]);
|
|
|
329
329
|
|
|
330
330
|
const bookingChannelSchema = v4.z.enum(["reservation", "order"]);
|
|
331
331
|
|
|
332
|
+
const bookletSectionInputSchema = v4.z.object({
|
|
333
|
+
publicationAccessor: v4.z.string().min(1),
|
|
334
|
+
pageStart: v4.z.optional(v4.z.int().min(1).max(9007199254740991)),
|
|
335
|
+
pageEnd: v4.z.optional(v4.z.int().min(1).max(9007199254740991))
|
|
336
|
+
});
|
|
337
|
+
|
|
332
338
|
const cancelSubscriptionRequestSchema = v4.z.object({
|
|
333
339
|
subscriberId: v4.z.string().min(1)
|
|
334
340
|
});
|
|
@@ -357,6 +363,21 @@ const cancellationReasonSchema = v4.z.enum([
|
|
|
357
363
|
"restaurant_request"
|
|
358
364
|
]);
|
|
359
365
|
|
|
366
|
+
const composeMenuPublicationBookletRequestSchema = v4.z.object({
|
|
367
|
+
venueAccessor: v4.z.string().min(1),
|
|
368
|
+
bookletAccessor: v4.z.optional(v4.z.string().min(1)),
|
|
369
|
+
get sections() {
|
|
370
|
+
return v4.z.array(bookletSectionInputSchema).min(1).optional();
|
|
371
|
+
},
|
|
372
|
+
locale: v4.z.optional(v4.z.string().min(2).max(5))
|
|
373
|
+
});
|
|
374
|
+
|
|
375
|
+
const composeMenuPublicationBookletResponseSchema = v4.z.object({
|
|
376
|
+
fileName: v4.z.string(),
|
|
377
|
+
pages: v4.z.int().min(1).max(9007199254740991),
|
|
378
|
+
pdfBase64: v4.z.string()
|
|
379
|
+
});
|
|
380
|
+
|
|
360
381
|
const confirmOrderRequestSchema = v4.z.object({
|
|
361
382
|
venueAccessor: v4.z.string().min(1),
|
|
362
383
|
orderId: v4.z.string().min(1),
|
|
@@ -907,6 +928,72 @@ const createEventResponseSchema = v4.z.object({
|
|
|
907
928
|
updatedAt: v4.z.nullable(v4.z.any())
|
|
908
929
|
}).describe("Successfully created event");
|
|
909
930
|
|
|
931
|
+
const createMenuPublicationRequestSchema = v4.z.object({
|
|
932
|
+
venueAccessor: v4.z.string().min(1),
|
|
933
|
+
menuAccessor: v4.z.string().min(1),
|
|
934
|
+
name: v4.z.optional(v4.z.string().min(1))
|
|
935
|
+
});
|
|
936
|
+
|
|
937
|
+
const publicationPaletteSchema = v4.z.enum(["primary", "secondary"]);
|
|
938
|
+
|
|
939
|
+
const publicationPaperSizeSchema = v4.z.enum([
|
|
940
|
+
"a4",
|
|
941
|
+
"a5",
|
|
942
|
+
"letter",
|
|
943
|
+
"legal"
|
|
944
|
+
]);
|
|
945
|
+
|
|
946
|
+
const publicationSourceTypeSchema = v4.z.enum([
|
|
947
|
+
"menu",
|
|
948
|
+
"dish",
|
|
949
|
+
"beverage",
|
|
950
|
+
"event",
|
|
951
|
+
"venue"
|
|
952
|
+
]);
|
|
953
|
+
|
|
954
|
+
const publicationTypeSchema = v4.z.enum([
|
|
955
|
+
"menu",
|
|
956
|
+
"flyer",
|
|
957
|
+
"wine_list",
|
|
958
|
+
"about",
|
|
959
|
+
"cover",
|
|
960
|
+
"booklet",
|
|
961
|
+
"custom"
|
|
962
|
+
]);
|
|
963
|
+
|
|
964
|
+
const createMenuPublicationResponseSchema = v4.z.object({
|
|
965
|
+
id: v4.z.string(),
|
|
966
|
+
venueId: v4.z.string(),
|
|
967
|
+
accessor: v4.z.string(),
|
|
968
|
+
name: v4.z.string(),
|
|
969
|
+
get type() {
|
|
970
|
+
return publicationTypeSchema;
|
|
971
|
+
},
|
|
972
|
+
get paperSize() {
|
|
973
|
+
return publicationPaperSizeSchema;
|
|
974
|
+
},
|
|
975
|
+
get palette() {
|
|
976
|
+
return publicationPaletteSchema;
|
|
977
|
+
},
|
|
978
|
+
designDoc: v4.z.union([
|
|
979
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
980
|
+
v4.z.array(v4.z.any()),
|
|
981
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
982
|
+
]),
|
|
983
|
+
renderedAssetId: v4.z.nullable(v4.z.string()),
|
|
984
|
+
templateId: v4.z.nullable(v4.z.string()),
|
|
985
|
+
get sourceType() {
|
|
986
|
+
return publicationSourceTypeSchema;
|
|
987
|
+
},
|
|
988
|
+
sourceId: v4.z.nullable(v4.z.string()),
|
|
989
|
+
isActive: v4.z.boolean(),
|
|
990
|
+
sortIndex: v4.z.nullable(v4.z.string().max(255)),
|
|
991
|
+
createdAt: v4.z.nullable(v4.z.any()),
|
|
992
|
+
createdBy: v4.z.nullable(v4.z.string()),
|
|
993
|
+
updatedAt: v4.z.nullable(v4.z.any()),
|
|
994
|
+
updatedBy: v4.z.nullable(v4.z.string())
|
|
995
|
+
});
|
|
996
|
+
|
|
910
997
|
const createPaymentIntentRequestSchema = v4.z.object({
|
|
911
998
|
venueAccessor: v4.z.string().min(1),
|
|
912
999
|
basketId: v4.z.string().min(1),
|
|
@@ -1439,6 +1526,11 @@ const editBeverageRequestSchema = v4.z.object({
|
|
|
1439
1526
|
v4.z.array(v4.z.any()),
|
|
1440
1527
|
v4.z.object({}).catchall(v4.z.any())
|
|
1441
1528
|
]).nullish(),
|
|
1529
|
+
subtitle: v4.z.union([
|
|
1530
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1531
|
+
v4.z.array(v4.z.any()),
|
|
1532
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1533
|
+
]).nullish(),
|
|
1442
1534
|
description: v4.z.union([
|
|
1443
1535
|
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1444
1536
|
v4.z.array(v4.z.any()),
|
|
@@ -1497,6 +1589,13 @@ const editBeverageResponseSchema = v4.z.object({
|
|
|
1497
1589
|
v4.z.object({}).catchall(v4.z.any())
|
|
1498
1590
|
])
|
|
1499
1591
|
),
|
|
1592
|
+
subtitle: v4.z.nullable(
|
|
1593
|
+
v4.z.union([
|
|
1594
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1595
|
+
v4.z.array(v4.z.any()),
|
|
1596
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1597
|
+
])
|
|
1598
|
+
),
|
|
1500
1599
|
description: v4.z.nullable(
|
|
1501
1600
|
v4.z.union([
|
|
1502
1601
|
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
@@ -1551,6 +1650,7 @@ const editDishRequestSchema = v4.z.object({
|
|
|
1551
1650
|
name: v4.z.object({}).catchall(v4.z.string().min(1)),
|
|
1552
1651
|
shortName: v4.z.object({}).catchall(v4.z.string()).nullish(),
|
|
1553
1652
|
kitchenName: v4.z.object({}).catchall(v4.z.string()).nullish(),
|
|
1653
|
+
subtitle: v4.z.object({}).catchall(v4.z.string()).nullish(),
|
|
1554
1654
|
description: v4.z.object({}).catchall(v4.z.string()).nullish(),
|
|
1555
1655
|
longDescription: v4.z.object({}).catchall(v4.z.string()).nullish(),
|
|
1556
1656
|
suggestedPrice: v4.z.number().nullish(),
|
|
@@ -1588,6 +1688,13 @@ const editDishResponseSchema = v4.z.object({
|
|
|
1588
1688
|
v4.z.object({}).catchall(v4.z.any())
|
|
1589
1689
|
])
|
|
1590
1690
|
),
|
|
1691
|
+
subtitle: v4.z.nullable(
|
|
1692
|
+
v4.z.union([
|
|
1693
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
1694
|
+
v4.z.array(v4.z.any()),
|
|
1695
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
1696
|
+
])
|
|
1697
|
+
),
|
|
1591
1698
|
description: v4.z.nullable(
|
|
1592
1699
|
v4.z.union([
|
|
1593
1700
|
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
@@ -2015,6 +2122,8 @@ const entityOwnerTypeSchema = v4.z.enum([
|
|
|
2015
2122
|
"ritual"
|
|
2016
2123
|
]);
|
|
2017
2124
|
|
|
2125
|
+
const enumCenterLeftRightSchema = v4.z.enum(["center", "left", "right"]);
|
|
2126
|
+
|
|
2018
2127
|
const enumFalseSchema = v4.z.enum(["false"]);
|
|
2019
2128
|
|
|
2020
2129
|
const enumTrueSchema = v4.z.enum(["true"]);
|
|
@@ -2560,6 +2669,13 @@ const fetchBeverageResponseSchema = v4.z.object({
|
|
|
2560
2669
|
v4.z.object({}).catchall(v4.z.any())
|
|
2561
2670
|
])
|
|
2562
2671
|
),
|
|
2672
|
+
subtitle: v4.z.nullable(
|
|
2673
|
+
v4.z.union([
|
|
2674
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
2675
|
+
v4.z.array(v4.z.any()),
|
|
2676
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
2677
|
+
])
|
|
2678
|
+
),
|
|
2563
2679
|
description: v4.z.nullable(
|
|
2564
2680
|
v4.z.union([
|
|
2565
2681
|
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
@@ -2634,6 +2750,13 @@ const fetchDishResponseSchema = v4.z.object({
|
|
|
2634
2750
|
v4.z.object({}).catchall(v4.z.any())
|
|
2635
2751
|
])
|
|
2636
2752
|
),
|
|
2753
|
+
subtitle: v4.z.nullable(
|
|
2754
|
+
v4.z.union([
|
|
2755
|
+
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
2756
|
+
v4.z.array(v4.z.any()),
|
|
2757
|
+
v4.z.object({}).catchall(v4.z.any())
|
|
2758
|
+
])
|
|
2759
|
+
),
|
|
2637
2760
|
description: v4.z.nullable(
|
|
2638
2761
|
v4.z.union([
|
|
2639
2762
|
v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
|
|
@@ -3082,7 +3205,8 @@ const menuItemTypeSchema = v4.z.enum(["dish", "beverage"]);
|
|
|
3082
3205
|
|
|
3083
3206
|
const fetchMenuResponseSchema = v4.z.object({
|
|
3084
3207
|
id: v4.z.string(),
|
|
3085
|
-
|
|
3208
|
+
title: v4.z.object({}).catchall(v4.z.string()),
|
|
3209
|
+
subtitle: v4.z.nullable(v4.z.object({}).catchall(v4.z.string())),
|
|
3086
3210
|
accessor: v4.z.string(),
|
|
3087
3211
|
metadata: v4.z.nullable(
|
|
3088
3212
|
v4.z.object({
|
|
@@ -3219,6 +3343,21 @@ const fetchMenuResponseSchema = v4.z.object({
|
|
|
3219
3343
|
publicUrl: v4.z.string()
|
|
3220
3344
|
})
|
|
3221
3345
|
)
|
|
3346
|
+
),
|
|
3347
|
+
additives: v4.z.optional(
|
|
3348
|
+
v4.z.array(
|
|
3349
|
+
v4.z.object({
|
|
3350
|
+
id: v4.z.string(),
|
|
3351
|
+
eNumber: v4.z.string(),
|
|
3352
|
+
technicalName: v4.z.object({}).catchall(v4.z.string()),
|
|
3353
|
+
isAllergen: v4.z.nullable(v4.z.boolean()),
|
|
3354
|
+
requiresWarning: v4.z.nullable(v4.z.boolean()),
|
|
3355
|
+
warningMessage: v4.z.nullable(
|
|
3356
|
+
v4.z.object({}).catchall(v4.z.string())
|
|
3357
|
+
),
|
|
3358
|
+
regulation: v4.z.nullable(v4.z.string())
|
|
3359
|
+
})
|
|
3360
|
+
)
|
|
3222
3361
|
)
|
|
3223
3362
|
})
|
|
3224
3363
|
),
|
|
@@ -3271,6 +3410,21 @@ const fetchMenuResponseSchema = v4.z.object({
|
|
|
3271
3410
|
publicUrl: v4.z.string()
|
|
3272
3411
|
})
|
|
3273
3412
|
)
|
|
3413
|
+
),
|
|
3414
|
+
additives: v4.z.optional(
|
|
3415
|
+
v4.z.array(
|
|
3416
|
+
v4.z.object({
|
|
3417
|
+
id: v4.z.string(),
|
|
3418
|
+
eNumber: v4.z.string(),
|
|
3419
|
+
technicalName: v4.z.object({}).catchall(v4.z.string()),
|
|
3420
|
+
isAllergen: v4.z.nullable(v4.z.boolean()),
|
|
3421
|
+
requiresWarning: v4.z.nullable(v4.z.boolean()),
|
|
3422
|
+
warningMessage: v4.z.nullable(
|
|
3423
|
+
v4.z.object({}).catchall(v4.z.string())
|
|
3424
|
+
),
|
|
3425
|
+
regulation: v4.z.nullable(v4.z.string())
|
|
3426
|
+
})
|
|
3427
|
+
)
|
|
3274
3428
|
)
|
|
3275
3429
|
})
|
|
3276
3430
|
)
|
|
@@ -3621,6 +3775,10 @@ const fetchTeamOrderResponseSchema = v4.z.object({
|
|
|
3621
3775
|
isLead: v4.z.boolean()
|
|
3622
3776
|
});
|
|
3623
3777
|
|
|
3778
|
+
const fontRoleSchema = v4.z.enum(["system", "accent"]);
|
|
3779
|
+
|
|
3780
|
+
const fontStyleSchema = v4.z.enum(["normal", "italic"]);
|
|
3781
|
+
|
|
3624
3782
|
const gbpMediaCategorySchema = v4.z.enum([
|
|
3625
3783
|
"cover",
|
|
3626
3784
|
"logo",
|
|
@@ -4190,6 +4348,13 @@ const mentionFieldFormatterSchema = v4.z.enum([
|
|
|
4190
4348
|
|
|
4191
4349
|
const mentionTypeSchema = v4.z.enum(["link", "value"]);
|
|
4192
4350
|
|
|
4351
|
+
const menuItemMarkerSchema = v4.z.enum([
|
|
4352
|
+
"vegan",
|
|
4353
|
+
"vegetarian",
|
|
4354
|
+
"allergens",
|
|
4355
|
+
"spicy"
|
|
4356
|
+
]);
|
|
4357
|
+
|
|
4193
4358
|
const patchArticleFeatureImageBodySchema = v4.z.object({
|
|
4194
4359
|
caption: v4.z.optional(v4.z.object({}).catchall(v4.z.any())),
|
|
4195
4360
|
alt: v4.z.optional(v4.z.object({}).catchall(v4.z.any()))
|
|
@@ -4246,6 +4411,60 @@ const placeOrderResponseSchema = v4.z.object({
|
|
|
4246
4411
|
|
|
4247
4412
|
const platformRoleSchema = v4.z.enum(["platform_maintainer"]);
|
|
4248
4413
|
|
|
4414
|
+
const publicationEventTypeSchema = v4.z.enum(["download", "scan"]);
|
|
4415
|
+
|
|
4416
|
+
const publicationFrameStyleSchema = v4.z.enum(["solid", "motif"]);
|
|
4417
|
+
|
|
4418
|
+
const publicationGroupBySchema = v4.z.enum([
|
|
4419
|
+
"weekday",
|
|
4420
|
+
"calendar_week",
|
|
4421
|
+
"none"
|
|
4422
|
+
]);
|
|
4423
|
+
|
|
4424
|
+
const publicationGroupFlowSchema = v4.z.enum(["stacked", "page_break"]);
|
|
4425
|
+
|
|
4426
|
+
const publicationPricePositionSchema = v4.z.enum(["right", "bottom"]);
|
|
4427
|
+
|
|
4428
|
+
const publicationQrPlacementSchema = v4.z.enum([
|
|
4429
|
+
"topLeft",
|
|
4430
|
+
"topRight",
|
|
4431
|
+
"bottomLeft",
|
|
4432
|
+
"bottomRight"
|
|
4433
|
+
]);
|
|
4434
|
+
|
|
4435
|
+
const publicationQrTargetSchema = v4.z.enum(["online_menu", "custom"]);
|
|
4436
|
+
|
|
4437
|
+
const publicationRulePositionSchema = v4.z.enum([
|
|
4438
|
+
"below_title",
|
|
4439
|
+
"below_subtitle",
|
|
4440
|
+
"below_description"
|
|
4441
|
+
]);
|
|
4442
|
+
|
|
4443
|
+
const publicationRuleStyleSchema = v4.z.enum([
|
|
4444
|
+
"solid",
|
|
4445
|
+
"dashed",
|
|
4446
|
+
"dotted",
|
|
4447
|
+
"double",
|
|
4448
|
+
"wavy",
|
|
4449
|
+
"diamond",
|
|
4450
|
+
"flourish",
|
|
4451
|
+
"asterisks",
|
|
4452
|
+
"fade",
|
|
4453
|
+
"dot_ornament",
|
|
4454
|
+
"custom"
|
|
4455
|
+
]);
|
|
4456
|
+
|
|
4457
|
+
const publicationSectionTypeSchema = v4.z.enum(["cover", "body", "back"]);
|
|
4458
|
+
|
|
4459
|
+
const publicationTextAlignSchema = v4.z.enum([
|
|
4460
|
+
"left",
|
|
4461
|
+
"center",
|
|
4462
|
+
"right",
|
|
4463
|
+
"justify"
|
|
4464
|
+
]);
|
|
4465
|
+
|
|
4466
|
+
const publicationWeekScopeSchema = v4.z.enum(["current", "all", "range"]);
|
|
4467
|
+
|
|
4249
4468
|
const reduceDeltaPaymentIntentRequestSchema = v4.z.object({
|
|
4250
4469
|
venueAccessor: v4.z.string().min(1),
|
|
4251
4470
|
basketId: v4.z.string().min(1),
|
|
@@ -4278,6 +4497,18 @@ const removeFromBasketResponseSchema = v4.z.object({
|
|
|
4278
4497
|
}
|
|
4279
4498
|
});
|
|
4280
4499
|
|
|
4500
|
+
const renderMenuPublicationPdfRequestSchema = v4.z.object({
|
|
4501
|
+
venueAccessor: v4.z.string().min(1),
|
|
4502
|
+
publicationAccessor: v4.z.string().min(1),
|
|
4503
|
+
locale: v4.z.optional(v4.z.string().min(2).max(5))
|
|
4504
|
+
});
|
|
4505
|
+
|
|
4506
|
+
const renderMenuPublicationPdfResponseSchema = v4.z.object({
|
|
4507
|
+
fileName: v4.z.string(),
|
|
4508
|
+
pages: v4.z.int().min(1).max(9007199254740991),
|
|
4509
|
+
pdfBase64: v4.z.string()
|
|
4510
|
+
});
|
|
4511
|
+
|
|
4281
4512
|
const reservationMessageStatusSchema = v4.z.enum(["draft", "sent"]);
|
|
4282
4513
|
|
|
4283
4514
|
const reservationModeSchema = v4.z.enum(["passive", "auto_steer"]);
|
|
@@ -4534,6 +4765,206 @@ const setFulfillmentAtTeamOrderResponseSchema = v4.z.object({
|
|
|
4534
4765
|
deadlineAt: v4.z.nullable(v4.z.iso.datetime())
|
|
4535
4766
|
});
|
|
4536
4767
|
|
|
4768
|
+
const setMenuPublicationBlocksRequestSchema = v4.z.object({
|
|
4769
|
+
venueAccessor: v4.z.string().min(1),
|
|
4770
|
+
publicationAccessor: v4.z.string().min(1),
|
|
4771
|
+
showTitle: v4.z.optional(v4.z.boolean()),
|
|
4772
|
+
title: v4.z.optional(v4.z.object({}).catchall(v4.z.string())),
|
|
4773
|
+
showSubtitle: v4.z.optional(v4.z.boolean()),
|
|
4774
|
+
subtitle: v4.z.optional(v4.z.object({}).catchall(v4.z.string())),
|
|
4775
|
+
get subtitleFontRole() {
|
|
4776
|
+
return fontRoleSchema.optional();
|
|
4777
|
+
},
|
|
4778
|
+
subtitleFontFace: v4.z.optional(
|
|
4779
|
+
v4.z.string().regex(/^[1-9]\d{2}:(normal|italic)$/)
|
|
4780
|
+
),
|
|
4781
|
+
subtitleSize: v4.z.optional(v4.z.int().min(8).max(20)),
|
|
4782
|
+
subtitleColor: v4.z.union([
|
|
4783
|
+
v4.z.object({
|
|
4784
|
+
palette: v4.z.string().min(1),
|
|
4785
|
+
shade: v4.z.string().min(1)
|
|
4786
|
+
}),
|
|
4787
|
+
v4.z.object({
|
|
4788
|
+
custom: v4.z.string()
|
|
4789
|
+
})
|
|
4790
|
+
]).nullish(),
|
|
4791
|
+
showDescription: v4.z.optional(v4.z.boolean()),
|
|
4792
|
+
description: v4.z.optional(v4.z.object({}).catchall(v4.z.string())),
|
|
4793
|
+
get titleFontRole() {
|
|
4794
|
+
return fontRoleSchema.optional();
|
|
4795
|
+
},
|
|
4796
|
+
titleFontFace: v4.z.optional(v4.z.string().regex(/^[1-9]\d{2}:(normal|italic)$/)),
|
|
4797
|
+
titleSize: v4.z.optional(v4.z.number().min(16).max(48)),
|
|
4798
|
+
get descriptionFontRole() {
|
|
4799
|
+
return fontRoleSchema.optional();
|
|
4800
|
+
},
|
|
4801
|
+
descriptionFontFace: v4.z.optional(
|
|
4802
|
+
v4.z.string().regex(/^[1-9]\d{2}:(normal|italic)$/)
|
|
4803
|
+
),
|
|
4804
|
+
descriptionSize: v4.z.optional(v4.z.number().min(8).max(16)),
|
|
4805
|
+
descriptionColor: v4.z.union([
|
|
4806
|
+
v4.z.object({
|
|
4807
|
+
palette: v4.z.string().min(1),
|
|
4808
|
+
shade: v4.z.string().min(1)
|
|
4809
|
+
}),
|
|
4810
|
+
v4.z.object({
|
|
4811
|
+
custom: v4.z.string()
|
|
4812
|
+
})
|
|
4813
|
+
]).nullish(),
|
|
4814
|
+
paddingX: v4.z.optional(v4.z.number().min(0)),
|
|
4815
|
+
paddingY: v4.z.optional(v4.z.number().min(0)),
|
|
4816
|
+
bleed: v4.z.optional(v4.z.boolean()),
|
|
4817
|
+
pageNumbers: v4.z.optional(v4.z.boolean()),
|
|
4818
|
+
get groupBy() {
|
|
4819
|
+
return publicationGroupBySchema.optional();
|
|
4820
|
+
},
|
|
4821
|
+
get groupFlow() {
|
|
4822
|
+
return publicationGroupFlowSchema.optional();
|
|
4823
|
+
},
|
|
4824
|
+
get weekScope() {
|
|
4825
|
+
return publicationWeekScopeSchema.optional();
|
|
4826
|
+
},
|
|
4827
|
+
weekRangeStart: v4.z.optional(v4.z.number().min(1).max(53)),
|
|
4828
|
+
weekRangeEnd: v4.z.optional(v4.z.number().min(1).max(53)),
|
|
4829
|
+
weekdaySubgrouping: v4.z.optional(v4.z.boolean()),
|
|
4830
|
+
showPrice: v4.z.optional(v4.z.boolean()),
|
|
4831
|
+
priceDecimals: v4.z.optional(v4.z.int().min(0).max(2)),
|
|
4832
|
+
get priceFontRole() {
|
|
4833
|
+
return fontRoleSchema.optional();
|
|
4834
|
+
},
|
|
4835
|
+
priceFontFace: v4.z.optional(v4.z.string().regex(/^[1-9]\d{2}:(normal|italic)$/)),
|
|
4836
|
+
priceShowCurrency: v4.z.optional(v4.z.boolean()),
|
|
4837
|
+
get pricePosition() {
|
|
4838
|
+
return publicationPricePositionSchema.optional();
|
|
4839
|
+
},
|
|
4840
|
+
chipOutlined: v4.z.optional(v4.z.boolean()),
|
|
4841
|
+
chipModest: v4.z.optional(v4.z.boolean()),
|
|
4842
|
+
veganChipColor: v4.z.union([
|
|
4843
|
+
v4.z.object({
|
|
4844
|
+
palette: v4.z.string().min(1),
|
|
4845
|
+
shade: v4.z.string().min(1)
|
|
4846
|
+
}),
|
|
4847
|
+
v4.z.object({
|
|
4848
|
+
custom: v4.z.string()
|
|
4849
|
+
})
|
|
4850
|
+
]).nullish(),
|
|
4851
|
+
vegetarianChipColor: v4.z.union([
|
|
4852
|
+
v4.z.object({
|
|
4853
|
+
palette: v4.z.string().min(1),
|
|
4854
|
+
shade: v4.z.string().min(1)
|
|
4855
|
+
}),
|
|
4856
|
+
v4.z.object({
|
|
4857
|
+
custom: v4.z.string()
|
|
4858
|
+
})
|
|
4859
|
+
]).nullish(),
|
|
4860
|
+
spicinessChipColor: v4.z.union([
|
|
4861
|
+
v4.z.object({
|
|
4862
|
+
palette: v4.z.string().min(1),
|
|
4863
|
+
shade: v4.z.string().min(1)
|
|
4864
|
+
}),
|
|
4865
|
+
v4.z.object({
|
|
4866
|
+
custom: v4.z.string()
|
|
4867
|
+
})
|
|
4868
|
+
]).nullish(),
|
|
4869
|
+
allergensChipColor: v4.z.union([
|
|
4870
|
+
v4.z.object({
|
|
4871
|
+
palette: v4.z.string().min(1),
|
|
4872
|
+
shade: v4.z.string().min(1)
|
|
4873
|
+
}),
|
|
4874
|
+
v4.z.object({
|
|
4875
|
+
custom: v4.z.string()
|
|
4876
|
+
})
|
|
4877
|
+
]).nullish(),
|
|
4878
|
+
get paperSize() {
|
|
4879
|
+
return publicationPaperSizeSchema.optional();
|
|
4880
|
+
},
|
|
4881
|
+
get palette() {
|
|
4882
|
+
return publicationPaletteSchema.optional();
|
|
4883
|
+
},
|
|
4884
|
+
showFrame: v4.z.optional(v4.z.boolean()),
|
|
4885
|
+
get frameStyle() {
|
|
4886
|
+
return publicationFrameStyleSchema.optional();
|
|
4887
|
+
},
|
|
4888
|
+
frameColor: v4.z.union([
|
|
4889
|
+
v4.z.object({
|
|
4890
|
+
palette: v4.z.string().min(1),
|
|
4891
|
+
shade: v4.z.string().min(1)
|
|
4892
|
+
}),
|
|
4893
|
+
v4.z.object({
|
|
4894
|
+
custom: v4.z.string()
|
|
4895
|
+
})
|
|
4896
|
+
]).nullish(),
|
|
4897
|
+
frameWidth: v4.z.optional(v4.z.number().min(1).max(12)),
|
|
4898
|
+
frameInset: v4.z.optional(v4.z.number().min(2).max(16)),
|
|
4899
|
+
get titleAlign() {
|
|
4900
|
+
return enumCenterLeftRightSchema.optional();
|
|
4901
|
+
},
|
|
4902
|
+
get subtitleAlign() {
|
|
4903
|
+
return enumCenterLeftRightSchema.optional();
|
|
4904
|
+
},
|
|
4905
|
+
get descriptionAlign() {
|
|
4906
|
+
return publicationTextAlignSchema.optional();
|
|
4907
|
+
},
|
|
4908
|
+
showRule: v4.z.optional(v4.z.boolean()),
|
|
4909
|
+
get rulePosition() {
|
|
4910
|
+
return publicationRulePositionSchema.optional();
|
|
4911
|
+
},
|
|
4912
|
+
get ruleStyle() {
|
|
4913
|
+
return publicationRuleStyleSchema.optional();
|
|
4914
|
+
},
|
|
4915
|
+
ruleColor: v4.z.union([
|
|
4916
|
+
v4.z.object({
|
|
4917
|
+
palette: v4.z.string().min(1),
|
|
4918
|
+
shade: v4.z.string().min(1)
|
|
4919
|
+
}),
|
|
4920
|
+
v4.z.object({
|
|
4921
|
+
custom: v4.z.string()
|
|
4922
|
+
})
|
|
4923
|
+
]).nullish(),
|
|
4924
|
+
showQr: v4.z.optional(v4.z.boolean()),
|
|
4925
|
+
get qrTarget() {
|
|
4926
|
+
return publicationQrTargetSchema.optional();
|
|
4927
|
+
},
|
|
4928
|
+
qrCustomUrl: v4.z.optional(v4.z.string()),
|
|
4929
|
+
get qrPlacement() {
|
|
4930
|
+
return publicationQrPlacementSchema.optional();
|
|
4931
|
+
},
|
|
4932
|
+
qrSize: v4.z.optional(v4.z.int().min(15).max(40)),
|
|
4933
|
+
itemTitleSize: v4.z.optional(v4.z.int().min(8).max(16)),
|
|
4934
|
+
itemSubtitleSize: v4.z.optional(v4.z.int().min(7).max(12)),
|
|
4935
|
+
itemSubtitleColor: v4.z.union([
|
|
4936
|
+
v4.z.object({
|
|
4937
|
+
palette: v4.z.string().min(1),
|
|
4938
|
+
shade: v4.z.string().min(1)
|
|
4939
|
+
}),
|
|
4940
|
+
v4.z.object({
|
|
4941
|
+
custom: v4.z.string()
|
|
4942
|
+
})
|
|
4943
|
+
]).nullish(),
|
|
4944
|
+
itemDescriptionSize: v4.z.optional(v4.z.int().min(8).max(14)),
|
|
4945
|
+
itemDescriptionColor: v4.z.union([
|
|
4946
|
+
v4.z.object({
|
|
4947
|
+
palette: v4.z.string().min(1),
|
|
4948
|
+
shade: v4.z.string().min(1)
|
|
4949
|
+
}),
|
|
4950
|
+
v4.z.object({
|
|
4951
|
+
custom: v4.z.string()
|
|
4952
|
+
})
|
|
4953
|
+
]).nullish(),
|
|
4954
|
+
showItemTitles: v4.z.optional(v4.z.boolean()),
|
|
4955
|
+
showItemSubtitles: v4.z.optional(v4.z.boolean()),
|
|
4956
|
+
showItemDescriptions: v4.z.optional(v4.z.boolean()),
|
|
4957
|
+
showVegan: v4.z.optional(v4.z.boolean()),
|
|
4958
|
+
showVegetarian: v4.z.optional(v4.z.boolean()),
|
|
4959
|
+
showSpiciness: v4.z.optional(v4.z.boolean()),
|
|
4960
|
+
showAllergens: v4.z.optional(v4.z.boolean())
|
|
4961
|
+
});
|
|
4962
|
+
|
|
4963
|
+
const setMenuPublicationBlocksResponseSchema = v4.z.object({
|
|
4964
|
+
id: v4.z.string(),
|
|
4965
|
+
accessor: v4.z.string()
|
|
4966
|
+
});
|
|
4967
|
+
|
|
4537
4968
|
const setOrderLeadSettledRequestSchema = v4.z.object({
|
|
4538
4969
|
publicId: v4.z.string().min(1),
|
|
4539
4970
|
sessionId: v4.z.string().min(1),
|
|
@@ -4770,7 +5201,9 @@ const venueAssetTypeSchema = v4.z.enum([
|
|
|
4770
5201
|
"logomark",
|
|
4771
5202
|
"wordmark",
|
|
4772
5203
|
"combinationmark_horizontal",
|
|
4773
|
-
"combinationmark_vertical"
|
|
5204
|
+
"combinationmark_vertical",
|
|
5205
|
+
"motif",
|
|
5206
|
+
"divider"
|
|
4774
5207
|
]);
|
|
4775
5208
|
|
|
4776
5209
|
const venueChargeTypeSchema = v4.z.enum(["base", "addon"]);
|
|
@@ -4820,11 +5253,14 @@ const schemas = {
|
|
|
4820
5253
|
BeverageCategory: beverageCategorySchema,
|
|
4821
5254
|
BillingMode: billingModeSchema,
|
|
4822
5255
|
BookingChannel: bookingChannelSchema,
|
|
5256
|
+
BookletSectionInput: bookletSectionInputSchema,
|
|
4823
5257
|
CancelSubscriptionRequest: cancelSubscriptionRequestSchema,
|
|
4824
5258
|
CancelSubscriptionResponse: cancelSubscriptionResponseSchema,
|
|
4825
5259
|
CancelTeamOrderRequest: cancelTeamOrderRequestSchema,
|
|
4826
5260
|
CancelTeamOrderResponse: cancelTeamOrderResponseSchema,
|
|
4827
5261
|
CancellationReason: cancellationReasonSchema,
|
|
5262
|
+
ComposeMenuPublicationBookletRequest: composeMenuPublicationBookletRequestSchema,
|
|
5263
|
+
ComposeMenuPublicationBookletResponse: composeMenuPublicationBookletResponseSchema,
|
|
4828
5264
|
ConfirmOrderRequest: confirmOrderRequestSchema,
|
|
4829
5265
|
ConfirmOrderResponse: confirmOrderResponseSchema,
|
|
4830
5266
|
ContactPreference: contactPreferenceSchema,
|
|
@@ -4837,6 +5273,8 @@ const schemas = {
|
|
|
4837
5273
|
CreateDeltaPaymentIntentResponse: createDeltaPaymentIntentResponseSchema,
|
|
4838
5274
|
CreateEventRequest: createEventRequestSchema,
|
|
4839
5275
|
CreateEventResponse: createEventResponseSchema,
|
|
5276
|
+
CreateMenuPublicationRequest: createMenuPublicationRequestSchema,
|
|
5277
|
+
CreateMenuPublicationResponse: createMenuPublicationResponseSchema,
|
|
4840
5278
|
CreatePaymentIntentRequest: createPaymentIntentRequestSchema,
|
|
4841
5279
|
CreatePaymentIntentResponse: createPaymentIntentResponseSchema,
|
|
4842
5280
|
CreateTeamOrderRequest: createTeamOrderRequestSchema,
|
|
@@ -4866,6 +5304,7 @@ const schemas = {
|
|
|
4866
5304
|
EditMetaAdRequest: editMetaAdRequestSchema,
|
|
4867
5305
|
EditMetaAdResponse: editMetaAdResponseSchema,
|
|
4868
5306
|
EntityOwnerType: entityOwnerTypeSchema,
|
|
5307
|
+
EnumCenterLeftRight: enumCenterLeftRightSchema,
|
|
4869
5308
|
EnumFalse: enumFalseSchema,
|
|
4870
5309
|
EnumTrue: enumTrueSchema,
|
|
4871
5310
|
EventAssetSource: eventAssetSourceSchema,
|
|
@@ -4894,6 +5333,8 @@ const schemas = {
|
|
|
4894
5333
|
FetchRitualResponse: fetchRitualResponseSchema,
|
|
4895
5334
|
FetchSlotAvailabilityResponse: fetchSlotAvailabilityResponseSchema,
|
|
4896
5335
|
FetchTeamOrderResponse: fetchTeamOrderResponseSchema,
|
|
5336
|
+
FontRole: fontRoleSchema,
|
|
5337
|
+
FontStyle: fontStyleSchema,
|
|
4897
5338
|
FulfillmentType: deliveryAddressSchema.fulfillmentTypeSchema,
|
|
4898
5339
|
GbpMediaCategory: gbpMediaCategorySchema,
|
|
4899
5340
|
GbpSyncStatus: gbpSyncStatusSchema,
|
|
@@ -4922,6 +5363,7 @@ const schemas = {
|
|
|
4922
5363
|
MentionEntityType: mentionEntityTypeSchema,
|
|
4923
5364
|
MentionFieldFormatter: mentionFieldFormatterSchema,
|
|
4924
5365
|
MentionType: mentionTypeSchema,
|
|
5366
|
+
MenuItemMarker: menuItemMarkerSchema,
|
|
4925
5367
|
MenuItemType: menuItemTypeSchema,
|
|
4926
5368
|
OccupancyReason: occupancyReasonSchema,
|
|
4927
5369
|
OgImage: ogImageSchema,
|
|
@@ -4936,9 +5378,27 @@ const schemas = {
|
|
|
4936
5378
|
PlaceOrderResponse: placeOrderResponseSchema,
|
|
4937
5379
|
PlatformRole: platformRoleSchema,
|
|
4938
5380
|
PromotionBenefitType: promotionBenefitTypeSchema,
|
|
5381
|
+
PublicationEventType: publicationEventTypeSchema,
|
|
5382
|
+
PublicationFrameStyle: publicationFrameStyleSchema,
|
|
5383
|
+
PublicationGroupBy: publicationGroupBySchema,
|
|
5384
|
+
PublicationGroupFlow: publicationGroupFlowSchema,
|
|
5385
|
+
PublicationPalette: publicationPaletteSchema,
|
|
5386
|
+
PublicationPaperSize: publicationPaperSizeSchema,
|
|
5387
|
+
PublicationPricePosition: publicationPricePositionSchema,
|
|
5388
|
+
PublicationQrPlacement: publicationQrPlacementSchema,
|
|
5389
|
+
PublicationQrTarget: publicationQrTargetSchema,
|
|
5390
|
+
PublicationRulePosition: publicationRulePositionSchema,
|
|
5391
|
+
PublicationRuleStyle: publicationRuleStyleSchema,
|
|
5392
|
+
PublicationSectionType: publicationSectionTypeSchema,
|
|
5393
|
+
PublicationSourceType: publicationSourceTypeSchema,
|
|
5394
|
+
PublicationTextAlign: publicationTextAlignSchema,
|
|
5395
|
+
PublicationType: publicationTypeSchema,
|
|
5396
|
+
PublicationWeekScope: publicationWeekScopeSchema,
|
|
4939
5397
|
ReduceDeltaPaymentIntentRequest: reduceDeltaPaymentIntentRequestSchema,
|
|
4940
5398
|
ReduceDeltaPaymentIntentResponse: reduceDeltaPaymentIntentResponseSchema,
|
|
4941
5399
|
RemoveFromBasketResponse: removeFromBasketResponseSchema,
|
|
5400
|
+
RenderMenuPublicationPdfRequest: renderMenuPublicationPdfRequestSchema,
|
|
5401
|
+
RenderMenuPublicationPdfResponse: renderMenuPublicationPdfResponseSchema,
|
|
4942
5402
|
ReservationMessageStatus: reservationMessageStatusSchema,
|
|
4943
5403
|
ReservationMode: reservationModeSchema,
|
|
4944
5404
|
ReservationPromotionStatus: reservationPromotionStatusSchema,
|
|
@@ -4966,6 +5426,8 @@ const schemas = {
|
|
|
4966
5426
|
SetDiningTimeTeamOrderResponse: setDiningTimeTeamOrderResponseSchema,
|
|
4967
5427
|
SetFulfillmentAtTeamOrderRequest: setFulfillmentAtTeamOrderRequestSchema,
|
|
4968
5428
|
SetFulfillmentAtTeamOrderResponse: setFulfillmentAtTeamOrderResponseSchema,
|
|
5429
|
+
SetMenuPublicationBlocksRequest: setMenuPublicationBlocksRequestSchema,
|
|
5430
|
+
SetMenuPublicationBlocksResponse: setMenuPublicationBlocksResponseSchema,
|
|
4969
5431
|
SetOrderLeadSettledRequest: setOrderLeadSettledRequestSchema,
|
|
4970
5432
|
SetOrderLeadSettledResponse: setOrderLeadSettledResponseSchema,
|
|
4971
5433
|
SlotMode: slotModeSchema,
|