order3000 1.12.0 → 1.13.1

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/schemas.mjs CHANGED
@@ -9,6 +9,13 @@ const abandonBasketResponseSchema = z.object({
9
9
  abandonedCount: z.int().min(0).max(9007199254740991)
10
10
  });
11
11
 
12
+ const activePaymentStatusSchema = z.enum([
13
+ "authorized",
14
+ "captured",
15
+ "cash_pending",
16
+ "cash_received"
17
+ ]);
18
+
12
19
  const actorTypeSchema = z.enum(["human", "robot"]);
13
20
 
14
21
  const adBiddingStrategySchema = z.enum([
@@ -308,6 +315,8 @@ const autoExtendFulfillmentIfExpiredResponseSchema = z.object({
308
315
  waitingCount: z.int().min(0).max(9007199254740991)
309
316
  });
310
317
 
318
+ const bankAccountStatusSchema = z.enum(["active", "inactive", "closed"]);
319
+
311
320
  const basketStatusSchema = z.enum(["active", "abandoned", "converted"]);
312
321
 
313
322
  const beverageCategorySchema = z.enum([
@@ -323,10 +332,23 @@ const beverageCategorySchema = z.enum([
323
332
  "water"
324
333
  ]);
325
334
 
335
+ const billingIntervalSchema = z.enum(["month", "year"]);
336
+
326
337
  const billingModeSchema = z.enum(["single_anchor", "split"]);
327
338
 
328
339
  const bookingChannelSchema = z.enum(["reservation", "order"]);
329
340
 
341
+ const bookletSectionInputSchema = z.object({
342
+ publicationAccessor: z.string().min(1),
343
+ pageStart: z.optional(z.int().min(1).max(9007199254740991)),
344
+ pageEnd: z.optional(z.int().min(1).max(9007199254740991))
345
+ });
346
+
347
+ const campaignControlReasonSchema = z.enum([
348
+ "quota_exhausted",
349
+ "campaign_removed"
350
+ ]);
351
+
330
352
  const cancelSubscriptionRequestSchema = z.object({
331
353
  subscriberId: z.string().min(1)
332
354
  });
@@ -355,6 +377,21 @@ const cancellationReasonSchema = z.enum([
355
377
  "restaurant_request"
356
378
  ]);
357
379
 
380
+ const composeMenuPublicationBookletRequestSchema = z.object({
381
+ venueAccessor: z.string().min(1),
382
+ bookletAccessor: z.optional(z.string().min(1)),
383
+ get sections() {
384
+ return z.array(bookletSectionInputSchema).min(1).optional();
385
+ },
386
+ locale: z.optional(z.string().min(2).max(5))
387
+ });
388
+
389
+ const composeMenuPublicationBookletResponseSchema = z.object({
390
+ fileName: z.string(),
391
+ pages: z.int().min(1).max(9007199254740991),
392
+ pdfBase64: z.string()
393
+ });
394
+
358
395
  const confirmOrderRequestSchema = z.object({
359
396
  venueAccessor: z.string().min(1),
360
397
  orderId: z.string().min(1),
@@ -371,9 +408,18 @@ const confirmOrderResponseSchema = z.object({
371
408
  guestId: z.optional(z.string())
372
409
  });
373
410
 
411
+ const contactEmailTypeSchema = z.enum(["primary", "billing"]);
412
+
413
+ const contactEmailVerificationStatusSchema = z.enum([
414
+ "pending",
415
+ "verified",
416
+ "completed",
417
+ "superseded"
418
+ ]);
419
+
374
420
  const contactPreferenceSchema = z.enum(["email", "phone", "sms", "none"]);
375
421
 
376
- const countryCodeSchema = z.enum([
422
+ const countrySchema = z.enum([
377
423
  "AD",
378
424
  "AE",
379
425
  "AF",
@@ -905,6 +951,74 @@ const createEventResponseSchema = z.object({
905
951
  updatedAt: z.nullable(z.any())
906
952
  }).describe("Successfully created event");
907
953
 
954
+ const createMenuPublicationRequestSchema = z.object({
955
+ venueAccessor: z.string().min(1),
956
+ menuAccessor: z.string().min(1),
957
+ name: z.optional(z.string().min(1))
958
+ });
959
+
960
+ const publicationPaletteSchema = z.enum(["primary", "secondary"]);
961
+
962
+ const publicationPaperSizeSchema = z.enum([
963
+ "a4",
964
+ "a5",
965
+ "letter",
966
+ "legal"
967
+ ]);
968
+
969
+ const publicationSourceTypeSchema = z.enum([
970
+ "menu",
971
+ "dish",
972
+ "beverage",
973
+ "event",
974
+ "venue"
975
+ ]);
976
+
977
+ const publicationTypeSchema = z.enum([
978
+ "menu",
979
+ "flyer",
980
+ "wine_list",
981
+ "about",
982
+ "cover",
983
+ "booklet",
984
+ "custom"
985
+ ]);
986
+
987
+ const createMenuPublicationResponseSchema = z.object({
988
+ id: z.string(),
989
+ venueId: z.string(),
990
+ accessor: z.string(),
991
+ name: z.string(),
992
+ get type() {
993
+ return publicationTypeSchema;
994
+ },
995
+ get paperSize() {
996
+ return publicationPaperSizeSchema;
997
+ },
998
+ get palette() {
999
+ return publicationPaletteSchema;
1000
+ },
1001
+ designDoc: z.union([
1002
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
1003
+ z.array(z.any()),
1004
+ z.object({}).catchall(z.any())
1005
+ ]),
1006
+ renderedAssetId: z.nullable(z.string()),
1007
+ frameId: z.nullable(z.string()),
1008
+ ruleIconAssetId: z.nullable(z.string()),
1009
+ templateId: z.nullable(z.string()),
1010
+ get sourceType() {
1011
+ return publicationSourceTypeSchema;
1012
+ },
1013
+ sourceId: z.nullable(z.string()),
1014
+ isActive: z.boolean(),
1015
+ sortIndex: z.nullable(z.string().max(255)),
1016
+ createdAt: z.nullable(z.any()),
1017
+ createdBy: z.nullable(z.string()),
1018
+ updatedAt: z.nullable(z.any()),
1019
+ updatedBy: z.nullable(z.string())
1020
+ });
1021
+
908
1022
  const createPaymentIntentRequestSchema = z.object({
909
1023
  venueAccessor: z.string().min(1),
910
1024
  basketId: z.string().min(1),
@@ -1231,6 +1345,12 @@ const depositwareStatusSchema = z.enum([
1231
1345
  "retired"
1232
1346
  ]);
1233
1347
 
1348
+ const directionSchema = z.enum(["left", "right", "up", "down"]);
1349
+
1350
+ const directionXSchema = z.enum(["left", "right"]);
1351
+
1352
+ const directionYSchema = z.enum(["up", "down"]);
1353
+
1234
1354
  const editAdRequestSchema = z.object({
1235
1355
  venueAccessor: z.string().min(1),
1236
1356
  id: z.string().min(1),
@@ -1437,6 +1557,11 @@ const editBeverageRequestSchema = z.object({
1437
1557
  z.array(z.any()),
1438
1558
  z.object({}).catchall(z.any())
1439
1559
  ]).nullish(),
1560
+ subtitle: z.union([
1561
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
1562
+ z.array(z.any()),
1563
+ z.object({}).catchall(z.any())
1564
+ ]).nullish(),
1440
1565
  description: z.union([
1441
1566
  z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
1442
1567
  z.array(z.any()),
@@ -1495,6 +1620,13 @@ const editBeverageResponseSchema = z.object({
1495
1620
  z.object({}).catchall(z.any())
1496
1621
  ])
1497
1622
  ),
1623
+ subtitle: z.nullable(
1624
+ z.union([
1625
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
1626
+ z.array(z.any()),
1627
+ z.object({}).catchall(z.any())
1628
+ ])
1629
+ ),
1498
1630
  description: z.nullable(
1499
1631
  z.union([
1500
1632
  z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
@@ -1549,6 +1681,7 @@ const editDishRequestSchema = z.object({
1549
1681
  name: z.object({}).catchall(z.string().min(1)),
1550
1682
  shortName: z.object({}).catchall(z.string()).nullish(),
1551
1683
  kitchenName: z.object({}).catchall(z.string()).nullish(),
1684
+ subtitle: z.object({}).catchall(z.string()).nullish(),
1552
1685
  description: z.object({}).catchall(z.string()).nullish(),
1553
1686
  longDescription: z.object({}).catchall(z.string()).nullish(),
1554
1687
  suggestedPrice: z.number().nullish(),
@@ -1586,6 +1719,13 @@ const editDishResponseSchema = z.object({
1586
1719
  z.object({}).catchall(z.any())
1587
1720
  ])
1588
1721
  ),
1722
+ subtitle: z.nullable(
1723
+ z.union([
1724
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
1725
+ z.array(z.any()),
1726
+ z.object({}).catchall(z.any())
1727
+ ])
1728
+ ),
1589
1729
  description: z.nullable(
1590
1730
  z.union([
1591
1731
  z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
@@ -2013,6 +2153,8 @@ const entityOwnerTypeSchema = z.enum([
2013
2153
  "ritual"
2014
2154
  ]);
2015
2155
 
2156
+ const enumCenterLeftRightSchema = z.enum(["center", "left", "right"]);
2157
+
2016
2158
  const enumFalseSchema = z.enum(["false"]);
2017
2159
 
2018
2160
  const enumTrueSchema = z.enum(["true"]);
@@ -2558,6 +2700,13 @@ const fetchBeverageResponseSchema = z.object({
2558
2700
  z.object({}).catchall(z.any())
2559
2701
  ])
2560
2702
  ),
2703
+ subtitle: z.nullable(
2704
+ z.union([
2705
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
2706
+ z.array(z.any()),
2707
+ z.object({}).catchall(z.any())
2708
+ ])
2709
+ ),
2561
2710
  description: z.nullable(
2562
2711
  z.union([
2563
2712
  z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
@@ -2632,6 +2781,13 @@ const fetchDishResponseSchema = z.object({
2632
2781
  z.object({}).catchall(z.any())
2633
2782
  ])
2634
2783
  ),
2784
+ subtitle: z.nullable(
2785
+ z.union([
2786
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
2787
+ z.array(z.any()),
2788
+ z.object({}).catchall(z.any())
2789
+ ])
2790
+ ),
2635
2791
  description: z.nullable(
2636
2792
  z.union([
2637
2793
  z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
@@ -3080,7 +3236,8 @@ const menuItemTypeSchema = z.enum(["dish", "beverage"]);
3080
3236
 
3081
3237
  const fetchMenuResponseSchema = z.object({
3082
3238
  id: z.string(),
3083
- name: z.object({}).catchall(z.string()),
3239
+ title: z.object({}).catchall(z.string()),
3240
+ subtitle: z.nullable(z.object({}).catchall(z.string())),
3084
3241
  accessor: z.string(),
3085
3242
  metadata: z.nullable(
3086
3243
  z.object({
@@ -3217,6 +3374,21 @@ const fetchMenuResponseSchema = z.object({
3217
3374
  publicUrl: z.string()
3218
3375
  })
3219
3376
  )
3377
+ ),
3378
+ additives: z.optional(
3379
+ z.array(
3380
+ z.object({
3381
+ id: z.string(),
3382
+ eNumber: z.string(),
3383
+ technicalName: z.object({}).catchall(z.string()),
3384
+ isAllergen: z.nullable(z.boolean()),
3385
+ requiresWarning: z.nullable(z.boolean()),
3386
+ warningMessage: z.nullable(
3387
+ z.object({}).catchall(z.string())
3388
+ ),
3389
+ regulation: z.nullable(z.string())
3390
+ })
3391
+ )
3220
3392
  )
3221
3393
  })
3222
3394
  ),
@@ -3269,6 +3441,21 @@ const fetchMenuResponseSchema = z.object({
3269
3441
  publicUrl: z.string()
3270
3442
  })
3271
3443
  )
3444
+ ),
3445
+ additives: z.optional(
3446
+ z.array(
3447
+ z.object({
3448
+ id: z.string(),
3449
+ eNumber: z.string(),
3450
+ technicalName: z.object({}).catchall(z.string()),
3451
+ isAllergen: z.nullable(z.boolean()),
3452
+ requiresWarning: z.nullable(z.boolean()),
3453
+ warningMessage: z.nullable(
3454
+ z.object({}).catchall(z.string())
3455
+ ),
3456
+ regulation: z.nullable(z.string())
3457
+ })
3458
+ )
3272
3459
  )
3273
3460
  })
3274
3461
  )
@@ -3500,6 +3687,8 @@ const fetchSlotAvailabilityResponseSchema = z.array(
3500
3687
  })
3501
3688
  );
3502
3689
 
3690
+ const teamOrderThresholdConstraintSchema = z.enum(["quantity", "amount"]);
3691
+
3503
3692
  const fetchTeamOrderResponseSchema = z.object({
3504
3693
  teamOrder: z.object({
3505
3694
  id: z.string(),
@@ -3578,12 +3767,9 @@ const fetchTeamOrderResponseSchema = z.object({
3578
3767
  get method() {
3579
3768
  return paymentMethodSchema;
3580
3769
  },
3581
- status: z.enum([
3582
- "authorized",
3583
- "captured",
3584
- "cash_pending",
3585
- "cash_received"
3586
- ]),
3770
+ get status() {
3771
+ return activePaymentStatusSchema;
3772
+ },
3587
3773
  createdAt: z.iso.datetime(),
3588
3774
  cardLast4: z.nullable(z.string().min(4).max(4))
3589
3775
  })
@@ -3606,7 +3792,9 @@ const fetchTeamOrderResponseSchema = z.object({
3606
3792
  }),
3607
3793
  thresholdCheck: z.object({
3608
3794
  meets: z.boolean(),
3609
- failedConstraints: z.array(z.enum(["quantity", "amount"])),
3795
+ get failedConstraints() {
3796
+ return z.array(teamOrderThresholdConstraintSchema);
3797
+ },
3610
3798
  requiredQuantity: z.nullable(
3611
3799
  z.int().min(-9007199254740991).max(9007199254740991)
3612
3800
  ),
@@ -3619,6 +3807,10 @@ const fetchTeamOrderResponseSchema = z.object({
3619
3807
  isLead: z.boolean()
3620
3808
  });
3621
3809
 
3810
+ const fontRoleSchema = z.enum(["system", "accent"]);
3811
+
3812
+ const fontStyleSchema = z.enum(["normal", "italic"]);
3813
+
3622
3814
  const gbpMediaCategorySchema = z.enum([
3623
3815
  "cover",
3624
3816
  "logo",
@@ -3802,6 +3994,14 @@ const getWebsitePagesResponseSchema = z.array(
3802
3994
 
3803
3995
  const googleAdsAssetFamilySchema = z.enum(["sitelinks", "callouts"]);
3804
3996
 
3997
+ const guestTierSchema = z.enum([
3998
+ "blacklisted",
3999
+ "atRisk",
4000
+ "loyal",
4001
+ "newGuest",
4002
+ "regular"
4003
+ ]);
4004
+
3805
4005
  const integrationNotificationTypeSchema = z.enum([
3806
4006
  "order_created",
3807
4007
  "order_cancelled",
@@ -3858,6 +4058,8 @@ const joinTeamOrderResponseSchema = z.object({
3858
4058
 
3859
4059
  const jurisdictionSchema = z.enum(["DE", "CH", "FR", "IT"]);
3860
4060
 
4061
+ const keywordDefaultScopeSchema = z.enum(["venueType", "cuisine"]);
4062
+
3861
4063
  const keywordPolaritySchema = z.enum(["positive", "negative"]);
3862
4064
 
3863
4065
  const localeSchema = z.enum([
@@ -4119,6 +4321,7 @@ const makeReservationResponseSchema = z.object({
4119
4321
  guestId: z.nullable(
4120
4322
  z.uuid().describe("Link to customer profile if exists")
4121
4323
  ),
4324
+ partyId: z.nullable(z.string()),
4122
4325
  guestFirstName: z.string().describe("First name of the customer"),
4123
4326
  guestLastName: z.string().describe("Last name of the customer"),
4124
4327
  guestEmail: z.nullable(z.string().describe("Customer email address")),
@@ -4188,6 +4391,42 @@ const mentionFieldFormatterSchema = z.enum([
4188
4391
 
4189
4392
  const mentionTypeSchema = z.enum(["link", "value"]);
4190
4393
 
4394
+ const menuItemMarkerSchema = z.enum([
4395
+ "vegan",
4396
+ "vegetarian",
4397
+ "allergens",
4398
+ "spicy"
4399
+ ]);
4400
+
4401
+ const metaCallToActionSchema = z.enum([
4402
+ "LEARN_MORE",
4403
+ "BOOK_TRAVEL",
4404
+ "ORDER_NOW",
4405
+ "GET_OFFER",
4406
+ "CONTACT_US",
4407
+ "SIGN_UP"
4408
+ ]);
4409
+
4410
+ const metaChannelSchema = z.enum(["facebook", "instagram"]);
4411
+
4412
+ const metaInsightsDatePresetSchema = z.enum([
4413
+ "last_7d",
4414
+ "last_30d",
4415
+ "maximum"
4416
+ ]);
4417
+
4418
+ const metaIntegrationStatusSchema = z.enum([
4419
+ "invited",
4420
+ "linked",
4421
+ "active"
4422
+ ]);
4423
+
4424
+ const metaServingTargetStatusSchema = z.enum(["ACTIVE", "PAUSED"]);
4425
+
4426
+ const orientationSchema = z.enum(["vertical", "horizontal"]);
4427
+
4428
+ const partyTypeSchema = z.enum(["natural_person", "legal_entity"]);
4429
+
4191
4430
  const patchArticleFeatureImageBodySchema = z.object({
4192
4431
  caption: z.optional(z.object({}).catchall(z.any())),
4193
4432
  alt: z.optional(z.object({}).catchall(z.any()))
@@ -4244,6 +4483,85 @@ const placeOrderResponseSchema = z.object({
4244
4483
 
4245
4484
  const platformRoleSchema = z.enum(["platform_maintainer"]);
4246
4485
 
4486
+ const positionCenterSchema = z.enum(["center"]);
4487
+
4488
+ const positionCornerSchema = z.enum([
4489
+ "top-left",
4490
+ "top-right",
4491
+ "bottom-left",
4492
+ "bottom-right"
4493
+ ]);
4494
+
4495
+ const positionEdgeSchema = z.enum(["start", "end"]);
4496
+
4497
+ const positionSchema = z.enum([
4498
+ "left",
4499
+ "right",
4500
+ "top",
4501
+ "bottom",
4502
+ "top-left",
4503
+ "top-right",
4504
+ "bottom-left",
4505
+ "bottom-right",
4506
+ "center"
4507
+ ]);
4508
+
4509
+ const positionYSchema = z.enum(["top", "bottom"]);
4510
+
4511
+ const publicationEventTypeSchema = z.enum(["download", "scan"]);
4512
+
4513
+ const publicationFrameStyleSchema = z.enum(["solid", "icon"]);
4514
+
4515
+ const publicationGroupBySchema = z.enum([
4516
+ "weekday",
4517
+ "calendar_week",
4518
+ "none"
4519
+ ]);
4520
+
4521
+ const publicationGroupFlowSchema = z.enum(["stacked", "page_break"]);
4522
+
4523
+ const publicationPricePositionSchema = z.enum(["right", "bottom"]);
4524
+
4525
+ const publicationQrPlacementSchema = z.enum([
4526
+ "topLeft",
4527
+ "topRight",
4528
+ "bottomLeft",
4529
+ "bottomRight"
4530
+ ]);
4531
+
4532
+ const publicationQrTargetSchema = z.enum(["online_menu", "custom"]);
4533
+
4534
+ const publicationRulePositionSchema = z.enum([
4535
+ "below_title",
4536
+ "below_subtitle",
4537
+ "below_description"
4538
+ ]);
4539
+
4540
+ const publicationRuleStyleSchema = z.enum([
4541
+ "solid",
4542
+ "dashed",
4543
+ "dotted",
4544
+ "double",
4545
+ "wavy",
4546
+ "diamond",
4547
+ "flourish",
4548
+ "asterisks",
4549
+ "fade",
4550
+ "dot_ornament",
4551
+ "icon"
4552
+ ]);
4553
+
4554
+ const publicationSectionTypeSchema = z.enum(["cover", "body", "back"]);
4555
+
4556
+ const publicationTextAlignSchema = z.enum([
4557
+ "left",
4558
+ "center",
4559
+ "right",
4560
+ "justify"
4561
+ ]);
4562
+
4563
+ const publicationWeekScopeSchema = z.enum(["current", "all", "range"]);
4564
+
4247
4565
  const reduceDeltaPaymentIntentRequestSchema = z.object({
4248
4566
  venueAccessor: z.string().min(1),
4249
4567
  basketId: z.string().min(1),
@@ -4276,6 +4594,29 @@ const removeFromBasketResponseSchema = z.object({
4276
4594
  }
4277
4595
  });
4278
4596
 
4597
+ const renderMenuPublicationPdfRequestSchema = z.object({
4598
+ venueAccessor: z.string().min(1),
4599
+ publicationAccessor: z.string().min(1),
4600
+ locale: z.optional(z.string().min(2).max(5))
4601
+ });
4602
+
4603
+ const renderMenuPublicationPdfResponseSchema = z.object({
4604
+ fileName: z.string(),
4605
+ pages: z.int().min(1).max(9007199254740991),
4606
+ pdfBase64: z.string()
4607
+ });
4608
+
4609
+ const requestContactEmailChangeOutcomeSchema = z.enum([
4610
+ "requested",
4611
+ "unchanged"
4612
+ ]);
4613
+
4614
+ const reservationDeclineReasonSchema = z.enum([
4615
+ "fully_booked",
4616
+ "closed",
4617
+ "other"
4618
+ ]);
4619
+
4279
4620
  const reservationMessageStatusSchema = z.enum(["draft", "sent"]);
4280
4621
 
4281
4622
  const reservationModeSchema = z.enum(["passive", "auto_steer"]);
@@ -4349,6 +4690,18 @@ const saveAdWebsitePagesResponseSchema = z.object({
4349
4690
 
4350
4691
  const scanTokenEntityTypeSchema = z.enum(["order", "depositware"]);
4351
4692
 
4693
+ const scheduleOverrideModeSchema = z.enum(["closed", "deviating"]);
4694
+
4695
+ const servedMarketAreaTypeSchema = z.enum([
4696
+ "pin",
4697
+ "postcode",
4698
+ "city",
4699
+ "region",
4700
+ "country"
4701
+ ]);
4702
+
4703
+ const servedMarketScopeSchema = z.enum(["include", "exclude"]);
4704
+
4352
4705
  const setAdBudgetRequestSchema = z.object({
4353
4706
  venueAccessor: z.string().min(1),
4354
4707
  adId: z.string().min(1),
@@ -4532,6 +4885,217 @@ const setFulfillmentAtTeamOrderResponseSchema = z.object({
4532
4885
  deadlineAt: z.nullable(z.iso.datetime())
4533
4886
  });
4534
4887
 
4888
+ const setMenuPublicationBlocksRequestSchema = z.object({
4889
+ venueAccessor: z.string().min(1),
4890
+ publicationAccessor: z.string().min(1),
4891
+ showTitle: z.optional(z.boolean()),
4892
+ title: z.optional(z.object({}).catchall(z.string())),
4893
+ showSubtitle: z.optional(z.boolean()),
4894
+ subtitle: z.optional(z.object({}).catchall(z.string())),
4895
+ get subtitleFontRole() {
4896
+ return fontRoleSchema.optional();
4897
+ },
4898
+ subtitleFontFace: z.optional(
4899
+ z.string().regex(/^[1-9]\d{2}:(normal|italic)$/)
4900
+ ),
4901
+ subtitleSize: z.optional(z.int().min(8).max(20)),
4902
+ subtitleColor: z.union([
4903
+ z.object({
4904
+ palette: z.string().min(1),
4905
+ shade: z.string().min(1)
4906
+ }),
4907
+ z.object({
4908
+ custom: z.string()
4909
+ })
4910
+ ]).nullish(),
4911
+ showDescription: z.optional(z.boolean()),
4912
+ description: z.optional(z.object({}).catchall(z.string())),
4913
+ get titleFontRole() {
4914
+ return fontRoleSchema.optional();
4915
+ },
4916
+ titleFontFace: z.optional(z.string().regex(/^[1-9]\d{2}:(normal|italic)$/)),
4917
+ titleSize: z.optional(z.number().min(16).max(48)),
4918
+ get descriptionFontRole() {
4919
+ return fontRoleSchema.optional();
4920
+ },
4921
+ descriptionFontFace: z.optional(
4922
+ z.string().regex(/^[1-9]\d{2}:(normal|italic)$/)
4923
+ ),
4924
+ descriptionSize: z.optional(z.number().min(8).max(16)),
4925
+ descriptionColor: z.union([
4926
+ z.object({
4927
+ palette: z.string().min(1),
4928
+ shade: z.string().min(1)
4929
+ }),
4930
+ z.object({
4931
+ custom: z.string()
4932
+ })
4933
+ ]).nullish(),
4934
+ paddingX: z.optional(z.number().min(0)),
4935
+ paddingY: z.optional(z.number().min(0)),
4936
+ bleed: z.optional(z.boolean()),
4937
+ pageNumbers: z.optional(z.boolean()),
4938
+ get groupBy() {
4939
+ return publicationGroupBySchema.optional();
4940
+ },
4941
+ get groupFlow() {
4942
+ return publicationGroupFlowSchema.optional();
4943
+ },
4944
+ get weekScope() {
4945
+ return publicationWeekScopeSchema.optional();
4946
+ },
4947
+ weekRangeStart: z.optional(z.number().min(1).max(53)),
4948
+ weekRangeEnd: z.optional(z.number().min(1).max(53)),
4949
+ weekdaySubgrouping: z.optional(z.boolean()),
4950
+ showPrice: z.optional(z.boolean()),
4951
+ priceDecimals: z.optional(z.int().min(0).max(2)),
4952
+ get priceFontRole() {
4953
+ return fontRoleSchema.optional();
4954
+ },
4955
+ priceFontFace: z.optional(z.string().regex(/^[1-9]\d{2}:(normal|italic)$/)),
4956
+ priceShowCurrency: z.optional(z.boolean()),
4957
+ get pricePosition() {
4958
+ return publicationPricePositionSchema.optional();
4959
+ },
4960
+ chipOutlined: z.optional(z.boolean()),
4961
+ chipModest: z.optional(z.boolean()),
4962
+ veganChipColor: z.union([
4963
+ z.object({
4964
+ palette: z.string().min(1),
4965
+ shade: z.string().min(1)
4966
+ }),
4967
+ z.object({
4968
+ custom: z.string()
4969
+ })
4970
+ ]).nullish(),
4971
+ vegetarianChipColor: z.union([
4972
+ z.object({
4973
+ palette: z.string().min(1),
4974
+ shade: z.string().min(1)
4975
+ }),
4976
+ z.object({
4977
+ custom: z.string()
4978
+ })
4979
+ ]).nullish(),
4980
+ spicinessChipColor: z.union([
4981
+ z.object({
4982
+ palette: z.string().min(1),
4983
+ shade: z.string().min(1)
4984
+ }),
4985
+ z.object({
4986
+ custom: z.string()
4987
+ })
4988
+ ]).nullish(),
4989
+ allergensChipColor: z.union([
4990
+ z.object({
4991
+ palette: z.string().min(1),
4992
+ shade: z.string().min(1)
4993
+ }),
4994
+ z.object({
4995
+ custom: z.string()
4996
+ })
4997
+ ]).nullish(),
4998
+ get paperSize() {
4999
+ return publicationPaperSizeSchema.optional();
5000
+ },
5001
+ get palette() {
5002
+ return publicationPaletteSchema.optional();
5003
+ },
5004
+ showFrame: z.optional(z.boolean()),
5005
+ get frameStyle() {
5006
+ return publicationFrameStyleSchema.optional();
5007
+ },
5008
+ frameColor: z.union([
5009
+ z.object({
5010
+ palette: z.string().min(1),
5011
+ shade: z.string().min(1)
5012
+ }),
5013
+ z.object({
5014
+ custom: z.string()
5015
+ })
5016
+ ]).nullish(),
5017
+ frameWidth: z.optional(z.number().min(1).max(12)),
5018
+ frameInset: z.optional(z.number().min(2).max(16)),
5019
+ frameId: z.optional(z.string()),
5020
+ frameName: z.optional(z.string().max(255)),
5021
+ frameIcons: z.optional(
5022
+ z.array(
5023
+ z.object({
5024
+ assetId: z.string(),
5025
+ rotation: z.int().min(0).max(359)
5026
+ })
5027
+ )
5028
+ ),
5029
+ get titleAlign() {
5030
+ return enumCenterLeftRightSchema.optional();
5031
+ },
5032
+ get subtitleAlign() {
5033
+ return enumCenterLeftRightSchema.optional();
5034
+ },
5035
+ get descriptionAlign() {
5036
+ return publicationTextAlignSchema.optional();
5037
+ },
5038
+ showRule: z.optional(z.boolean()),
5039
+ get rulePosition() {
5040
+ return publicationRulePositionSchema.optional();
5041
+ },
5042
+ get ruleStyle() {
5043
+ return publicationRuleStyleSchema.optional();
5044
+ },
5045
+ ruleColor: z.union([
5046
+ z.object({
5047
+ palette: z.string().min(1),
5048
+ shade: z.string().min(1)
5049
+ }),
5050
+ z.object({
5051
+ custom: z.string()
5052
+ })
5053
+ ]).nullish(),
5054
+ ruleIconAssetId: z.optional(z.string()),
5055
+ showQr: z.optional(z.boolean()),
5056
+ get qrTarget() {
5057
+ return publicationQrTargetSchema.optional();
5058
+ },
5059
+ qrCustomUrl: z.optional(z.string()),
5060
+ get qrPlacement() {
5061
+ return publicationQrPlacementSchema.optional();
5062
+ },
5063
+ qrSize: z.optional(z.int().min(15).max(40)),
5064
+ itemTitleSize: z.optional(z.int().min(8).max(16)),
5065
+ itemSubtitleSize: z.optional(z.int().min(7).max(12)),
5066
+ itemSubtitleColor: z.union([
5067
+ z.object({
5068
+ palette: z.string().min(1),
5069
+ shade: z.string().min(1)
5070
+ }),
5071
+ z.object({
5072
+ custom: z.string()
5073
+ })
5074
+ ]).nullish(),
5075
+ itemDescriptionSize: z.optional(z.int().min(8).max(14)),
5076
+ itemDescriptionColor: z.union([
5077
+ z.object({
5078
+ palette: z.string().min(1),
5079
+ shade: z.string().min(1)
5080
+ }),
5081
+ z.object({
5082
+ custom: z.string()
5083
+ })
5084
+ ]).nullish(),
5085
+ showItemTitles: z.optional(z.boolean()),
5086
+ showItemSubtitles: z.optional(z.boolean()),
5087
+ showItemDescriptions: z.optional(z.boolean()),
5088
+ showVegan: z.optional(z.boolean()),
5089
+ showVegetarian: z.optional(z.boolean()),
5090
+ showSpiciness: z.optional(z.boolean()),
5091
+ showAllergens: z.optional(z.boolean())
5092
+ });
5093
+
5094
+ const setMenuPublicationBlocksResponseSchema = z.object({
5095
+ id: z.string(),
5096
+ accessor: z.string()
5097
+ });
5098
+
4535
5099
  const setOrderLeadSettledRequestSchema = z.object({
4536
5100
  publicId: z.string().min(1),
4537
5101
  sessionId: z.string().min(1),
@@ -4764,11 +5328,22 @@ const uploadAssetResponseSchema = z.object({
4764
5328
  publicUrl: z.nullable(z.string())
4765
5329
  });
4766
5330
 
5331
+ const variantSchema = z.enum([
5332
+ "dark",
5333
+ "light",
5334
+ "success",
5335
+ "warning",
5336
+ "danger",
5337
+ "primary",
5338
+ "secondary"
5339
+ ]);
5340
+
4767
5341
  const venueAssetTypeSchema = z.enum([
4768
5342
  "logomark",
4769
5343
  "wordmark",
4770
5344
  "combinationmark_horizontal",
4771
- "combinationmark_vertical"
5345
+ "combinationmark_vertical",
5346
+ "icon"
4772
5347
  ]);
4773
5348
 
4774
5349
  const venueChargeTypeSchema = z.enum(["base", "addon"]);
@@ -4789,9 +5364,17 @@ const venueTypeSchema = z.enum([
4789
5364
 
4790
5365
  const venueUserStatusSchema = z.enum(["pending", "confirmed", "revoked"]);
4791
5366
 
5367
+ const wizardKeySchema = z.enum([
5368
+ "ads-venue-explainer-v1",
5369
+ "ads-menu-explainer-v1",
5370
+ "ads-dish-explainer-v1",
5371
+ "ads-beverage-explainer-v1"
5372
+ ]);
5373
+
4792
5374
  const schemas = {
4793
5375
  AbandonBasketRequest: abandonBasketRequestSchema,
4794
5376
  AbandonBasketResponse: abandonBasketResponseSchema,
5377
+ ActivePaymentStatus: activePaymentStatusSchema,
4795
5378
  ActorType: actorTypeSchema,
4796
5379
  AdBiddingStrategy: adBiddingStrategySchema,
4797
5380
  AdChannel: adChannelSchema,
@@ -4813,20 +5396,28 @@ const schemas = {
4813
5396
  AssetWithPublicUrl: assetWithPublicUrlSchema,
4814
5397
  AutoExtendFulfillmentIfExpiredRequest: autoExtendFulfillmentIfExpiredRequestSchema,
4815
5398
  AutoExtendFulfillmentIfExpiredResponse: autoExtendFulfillmentIfExpiredResponseSchema,
5399
+ BankAccountStatus: bankAccountStatusSchema,
4816
5400
  BasketStatus: basketStatusSchema,
4817
5401
  BasketTotals: basketTotalsSchema,
4818
5402
  BeverageCategory: beverageCategorySchema,
5403
+ BillingInterval: billingIntervalSchema,
4819
5404
  BillingMode: billingModeSchema,
4820
5405
  BookingChannel: bookingChannelSchema,
5406
+ BookletSectionInput: bookletSectionInputSchema,
5407
+ CampaignControlReason: campaignControlReasonSchema,
4821
5408
  CancelSubscriptionRequest: cancelSubscriptionRequestSchema,
4822
5409
  CancelSubscriptionResponse: cancelSubscriptionResponseSchema,
4823
5410
  CancelTeamOrderRequest: cancelTeamOrderRequestSchema,
4824
5411
  CancelTeamOrderResponse: cancelTeamOrderResponseSchema,
4825
5412
  CancellationReason: cancellationReasonSchema,
5413
+ ComposeMenuPublicationBookletRequest: composeMenuPublicationBookletRequestSchema,
5414
+ ComposeMenuPublicationBookletResponse: composeMenuPublicationBookletResponseSchema,
4826
5415
  ConfirmOrderRequest: confirmOrderRequestSchema,
4827
5416
  ConfirmOrderResponse: confirmOrderResponseSchema,
5417
+ ContactEmailType: contactEmailTypeSchema,
5418
+ ContactEmailVerificationStatus: contactEmailVerificationStatusSchema,
4828
5419
  ContactPreference: contactPreferenceSchema,
4829
- CountryCode: countryCodeSchema,
5420
+ Country: countrySchema,
4830
5421
  CreateAdRequest: createAdRequestSchema,
4831
5422
  CreateAdResponse: createAdResponseSchema,
4832
5423
  CreateCalloutRequest: createCalloutRequestSchema,
@@ -4835,6 +5426,8 @@ const schemas = {
4835
5426
  CreateDeltaPaymentIntentResponse: createDeltaPaymentIntentResponseSchema,
4836
5427
  CreateEventRequest: createEventRequestSchema,
4837
5428
  CreateEventResponse: createEventResponseSchema,
5429
+ CreateMenuPublicationRequest: createMenuPublicationRequestSchema,
5430
+ CreateMenuPublicationResponse: createMenuPublicationResponseSchema,
4838
5431
  CreatePaymentIntentRequest: createPaymentIntentRequestSchema,
4839
5432
  CreatePaymentIntentResponse: createPaymentIntentResponseSchema,
4840
5433
  CreateTeamOrderRequest: createTeamOrderRequestSchema,
@@ -4851,6 +5444,9 @@ const schemas = {
4851
5444
  DeliveryAddress: deliveryAddressSchema,
4852
5445
  DepositTransactionType: depositTransactionTypeSchema,
4853
5446
  DepositwareStatus: depositwareStatusSchema,
5447
+ Direction: directionSchema,
5448
+ DirectionX: directionXSchema,
5449
+ DirectionY: directionYSchema,
4854
5450
  EditAdRequest: editAdRequestSchema,
4855
5451
  EditAdResponse: editAdResponseSchema,
4856
5452
  EditArticleRequest: editArticleRequestSchema,
@@ -4864,6 +5460,7 @@ const schemas = {
4864
5460
  EditMetaAdRequest: editMetaAdRequestSchema,
4865
5461
  EditMetaAdResponse: editMetaAdResponseSchema,
4866
5462
  EntityOwnerType: entityOwnerTypeSchema,
5463
+ EnumCenterLeftRight: enumCenterLeftRightSchema,
4867
5464
  EnumFalse: enumFalseSchema,
4868
5465
  EnumTrue: enumTrueSchema,
4869
5466
  EventAssetSource: eventAssetSourceSchema,
@@ -4892,6 +5489,8 @@ const schemas = {
4892
5489
  FetchRitualResponse: fetchRitualResponseSchema,
4893
5490
  FetchSlotAvailabilityResponse: fetchSlotAvailabilityResponseSchema,
4894
5491
  FetchTeamOrderResponse: fetchTeamOrderResponseSchema,
5492
+ FontRole: fontRoleSchema,
5493
+ FontStyle: fontStyleSchema,
4895
5494
  FulfillmentType: fulfillmentTypeSchema,
4896
5495
  GbpMediaCategory: gbpMediaCategorySchema,
4897
5496
  GbpSyncStatus: gbpSyncStatusSchema,
@@ -4905,6 +5504,7 @@ const schemas = {
4905
5504
  GetVenueResponse: getVenueResponseSchema,
4906
5505
  GetWebsitePagesResponse: getWebsitePagesResponseSchema,
4907
5506
  GoogleAdsAssetFamily: googleAdsAssetFamilySchema,
5507
+ GuestTier: guestTierSchema,
4908
5508
  IntegrationNotificationType: integrationNotificationTypeSchema,
4909
5509
  IntegrationType: integrationTypeSchema,
4910
5510
  InventoryAssetStatus: inventoryAssetStatusSchema,
@@ -4913,6 +5513,7 @@ const schemas = {
4913
5513
  JoinTeamOrderRequest: joinTeamOrderRequestSchema,
4914
5514
  JoinTeamOrderResponse: joinTeamOrderResponseSchema,
4915
5515
  Jurisdiction: jurisdictionSchema,
5516
+ KeywordDefaultScope: keywordDefaultScopeSchema,
4916
5517
  KeywordPolarity: keywordPolaritySchema,
4917
5518
  Locale: localeSchema,
4918
5519
  MakeReservationRequest: makeReservationRequestSchema,
@@ -4920,11 +5521,19 @@ const schemas = {
4920
5521
  MentionEntityType: mentionEntityTypeSchema,
4921
5522
  MentionFieldFormatter: mentionFieldFormatterSchema,
4922
5523
  MentionType: mentionTypeSchema,
5524
+ MenuItemMarker: menuItemMarkerSchema,
4923
5525
  MenuItemType: menuItemTypeSchema,
5526
+ MetaCallToAction: metaCallToActionSchema,
5527
+ MetaChannel: metaChannelSchema,
5528
+ MetaInsightsDatePreset: metaInsightsDatePresetSchema,
5529
+ MetaIntegrationStatus: metaIntegrationStatusSchema,
5530
+ MetaServingTargetStatus: metaServingTargetStatusSchema,
4924
5531
  OccupancyReason: occupancyReasonSchema,
4925
5532
  OgImage: ogImageSchema,
4926
5533
  OrderStatus: orderStatusSchema,
5534
+ Orientation: orientationSchema,
4927
5535
  ParticipantStatus: participantStatusSchema,
5536
+ PartyType: partyTypeSchema,
4928
5537
  PatchArticleFeatureImageBody: patchArticleFeatureImageBodySchema,
4929
5538
  PaxBand: paxBandSchema,
4930
5539
  PaymentMethod: paymentMethodSchema,
@@ -4933,10 +5542,35 @@ const schemas = {
4933
5542
  PlaceOrderRequest: placeOrderRequestSchema,
4934
5543
  PlaceOrderResponse: placeOrderResponseSchema,
4935
5544
  PlatformRole: platformRoleSchema,
5545
+ PositionCenter: positionCenterSchema,
5546
+ PositionCorner: positionCornerSchema,
5547
+ PositionEdge: positionEdgeSchema,
5548
+ Position: positionSchema,
5549
+ PositionY: positionYSchema,
4936
5550
  PromotionBenefitType: promotionBenefitTypeSchema,
5551
+ PublicationEventType: publicationEventTypeSchema,
5552
+ PublicationFrameStyle: publicationFrameStyleSchema,
5553
+ PublicationGroupBy: publicationGroupBySchema,
5554
+ PublicationGroupFlow: publicationGroupFlowSchema,
5555
+ PublicationPalette: publicationPaletteSchema,
5556
+ PublicationPaperSize: publicationPaperSizeSchema,
5557
+ PublicationPricePosition: publicationPricePositionSchema,
5558
+ PublicationQrPlacement: publicationQrPlacementSchema,
5559
+ PublicationQrTarget: publicationQrTargetSchema,
5560
+ PublicationRulePosition: publicationRulePositionSchema,
5561
+ PublicationRuleStyle: publicationRuleStyleSchema,
5562
+ PublicationSectionType: publicationSectionTypeSchema,
5563
+ PublicationSourceType: publicationSourceTypeSchema,
5564
+ PublicationTextAlign: publicationTextAlignSchema,
5565
+ PublicationType: publicationTypeSchema,
5566
+ PublicationWeekScope: publicationWeekScopeSchema,
4937
5567
  ReduceDeltaPaymentIntentRequest: reduceDeltaPaymentIntentRequestSchema,
4938
5568
  ReduceDeltaPaymentIntentResponse: reduceDeltaPaymentIntentResponseSchema,
4939
5569
  RemoveFromBasketResponse: removeFromBasketResponseSchema,
5570
+ RenderMenuPublicationPdfRequest: renderMenuPublicationPdfRequestSchema,
5571
+ RenderMenuPublicationPdfResponse: renderMenuPublicationPdfResponseSchema,
5572
+ RequestContactEmailChangeOutcome: requestContactEmailChangeOutcomeSchema,
5573
+ ReservationDeclineReason: reservationDeclineReasonSchema,
4940
5574
  ReservationMessageStatus: reservationMessageStatusSchema,
4941
5575
  ReservationMode: reservationModeSchema,
4942
5576
  ReservationPromotionStatus: reservationPromotionStatusSchema,
@@ -4952,7 +5586,10 @@ const schemas = {
4952
5586
  SaveAdWebsitePagesRequest: saveAdWebsitePagesRequestSchema,
4953
5587
  SaveAdWebsitePagesResponse: saveAdWebsitePagesResponseSchema,
4954
5588
  ScanTokenEntityType: scanTokenEntityTypeSchema,
5589
+ ScheduleOverrideMode: scheduleOverrideModeSchema,
4955
5590
  Schedule: scheduleSchema,
5591
+ ServedMarketAreaType: servedMarketAreaTypeSchema,
5592
+ ServedMarketScope: servedMarketScopeSchema,
4956
5593
  SetAdBudgetRequest: setAdBudgetRequestSchema,
4957
5594
  SetAdBudgetResponse: setAdBudgetResponseSchema,
4958
5595
  SetArticleFeatureImageUploadBody: setArticleFeatureImageUploadBodySchema,
@@ -4964,6 +5601,8 @@ const schemas = {
4964
5601
  SetDiningTimeTeamOrderResponse: setDiningTimeTeamOrderResponseSchema,
4965
5602
  SetFulfillmentAtTeamOrderRequest: setFulfillmentAtTeamOrderRequestSchema,
4966
5603
  SetFulfillmentAtTeamOrderResponse: setFulfillmentAtTeamOrderResponseSchema,
5604
+ SetMenuPublicationBlocksRequest: setMenuPublicationBlocksRequestSchema,
5605
+ SetMenuPublicationBlocksResponse: setMenuPublicationBlocksResponseSchema,
4967
5606
  SetOrderLeadSettledRequest: setOrderLeadSettledRequestSchema,
4968
5607
  SetOrderLeadSettledResponse: setOrderLeadSettledResponseSchema,
4969
5608
  SlotMode: slotModeSchema,
@@ -4981,6 +5620,7 @@ const schemas = {
4981
5620
  SwitchFulfillmentTeamOrderResponse: switchFulfillmentTeamOrderResponseSchema,
4982
5621
  TeamOrderPaymentStatus: teamOrderPaymentStatusSchema,
4983
5622
  TeamOrderStatus: teamOrderStatusSchema,
5623
+ TeamOrderThresholdConstraint: teamOrderThresholdConstraintSchema,
4984
5624
  Unit: unitSchema,
4985
5625
  UpdateCalloutRequest: updateCalloutRequestSchema,
4986
5626
  UpdateCalloutResponse: updateCalloutResponseSchema,
@@ -4989,12 +5629,14 @@ const schemas = {
4989
5629
  UpdateWebsitePageRequest: updateWebsitePageRequestSchema,
4990
5630
  UpdateWebsitePageResponse: updateWebsitePageResponseSchema,
4991
5631
  UploadAssetResponse: uploadAssetResponseSchema,
5632
+ Variant: variantSchema,
4992
5633
  VenueAssetType: venueAssetTypeSchema,
4993
5634
  VenueChargeType: venueChargeTypeSchema,
4994
5635
  VenueEmailSenderStatus: venueEmailSenderStatusSchema,
4995
5636
  VenueType: venueTypeSchema,
4996
5637
  VenueUserStatus: venueUserStatusSchema,
4997
- WebsitePageOwnerType: websitePageOwnerTypeSchema
5638
+ WebsitePageOwnerType: websitePageOwnerTypeSchema,
5639
+ WizardKey: wizardKeySchema
4998
5640
  };
4999
5641
 
5000
5642
  export { schemas };