order3000 2.0.1 → 2.1.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/schemas.cjs CHANGED
@@ -11,6 +11,19 @@ const abandonBasketResponseSchema = v4.z.object({
11
11
  abandonedCount: v4.z.int().min(0).max(9007199254740991)
12
12
  });
13
13
 
14
+ const accessGrantInitiatorSchema = v4.z.enum(["grantor", "grantee"]);
15
+
16
+ const accessGrantResourceTypeSchema = v4.z.enum(["business-card"]);
17
+
18
+ const accessGrantStatusSchema = v4.z.enum([
19
+ "pending",
20
+ "accepted",
21
+ "declined",
22
+ "expired",
23
+ "withdrawn",
24
+ "revoked"
25
+ ]);
26
+
14
27
  const activePaymentStatusSchema = v4.z.enum([
15
28
  "authorized",
16
29
  "captured",
@@ -542,13 +555,13 @@ const createAdResponseSchema = v4.z.object({
542
555
  const createCalloutRequestSchema = v4.z.object({
543
556
  venueAccessor: v4.z.string().min(1),
544
557
  id: v4.z.optional(v4.z.string().min(1)),
545
- label: v4.z.object({}).catchall(v4.z.string().max(25))
558
+ name: v4.z.object({}).catchall(v4.z.string().max(25))
546
559
  });
547
560
 
548
561
  const createCalloutResponseSchema = v4.z.object({
549
562
  id: v4.z.string(),
550
563
  venueId: v4.z.string(),
551
- label: v4.z.union([
564
+ name: v4.z.union([
552
565
  v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
553
566
  v4.z.array(v4.z.any()),
554
567
  v4.z.object({}).catchall(v4.z.any())
@@ -592,6 +605,8 @@ const createDeltaPaymentIntentResponseSchema = v4.z.object({
592
605
  ])
593
606
  });
594
607
 
608
+ const enumEmptySchema = v4.z.enum([""]);
609
+
595
610
  const slotModeSchema = v4.z.enum(["interval", "duration"]);
596
611
 
597
612
  const createEventRequestSchema = v4.z.object({
@@ -636,9 +651,11 @@ const createEventRequestSchema = v4.z.object({
636
651
  validTo: v4.z.string().regex(/^\d{4}-\d{2}-\d{2}$/).nullish(),
637
652
  timeRanges: v4.z.array(
638
653
  v4.z.object({
639
- startTime: v4.z.string().regex(/^\d{2}:\d{2}$/),
640
- endTime: v4.z.string().regex(/^\d{2}:\d{2}$/),
641
- lastSeatingTime: v4.z.string().regex(/^\d{2}:\d{2}$/).nullish()
654
+ startTime: v4.z.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/),
655
+ endTime: v4.z.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/),
656
+ get lastSeatingTime() {
657
+ return v4.z.union([enumEmptySchema]).nullish();
658
+ }
642
659
  })
643
660
  ).min(1),
644
661
  get slotMode() {
@@ -844,7 +861,7 @@ const createWebsitePageRequestSchema = v4.z.object({
844
861
  return websitePageOwnerTypeSchema.optional();
845
862
  },
846
863
  ownerId: v4.z.string().min(1).nullish(),
847
- label: v4.z.object({}).catchall(v4.z.string()).nullish(),
864
+ name: v4.z.object({}).catchall(v4.z.string()).nullish(),
848
865
  target: v4.z.string().min(1)
849
866
  });
850
867
 
@@ -855,7 +872,7 @@ const createWebsitePageResponseSchema = v4.z.object({
855
872
  return websitePageOwnerTypeSchema;
856
873
  },
857
874
  ownerId: v4.z.nullable(v4.z.string()),
858
- label: v4.z.nullable(
875
+ name: v4.z.nullable(
859
876
  v4.z.union([
860
877
  v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
861
878
  v4.z.array(v4.z.any()),
@@ -995,7 +1012,7 @@ const deleteAssetResponseSchema = v4.z.object({
995
1012
  const deleteCalloutResponseSchema = v4.z.object({
996
1013
  id: v4.z.string(),
997
1014
  venueId: v4.z.string(),
998
- label: v4.z.union([
1015
+ name: v4.z.union([
999
1016
  v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
1000
1017
  v4.z.array(v4.z.any()),
1001
1018
  v4.z.object({}).catchall(v4.z.any())
@@ -1063,7 +1080,7 @@ const deleteWebsitePageResponseSchema = v4.z.object({
1063
1080
  return websitePageOwnerTypeSchema;
1064
1081
  },
1065
1082
  ownerId: v4.z.nullable(v4.z.string()),
1066
- label: v4.z.nullable(
1083
+ name: v4.z.nullable(
1067
1084
  v4.z.union([
1068
1085
  v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
1069
1086
  v4.z.array(v4.z.any()),
@@ -1101,6 +1118,28 @@ const directionXSchema = v4.z.enum(["left", "right"]);
1101
1118
 
1102
1119
  const directionYSchema = v4.z.enum(["up", "down"]);
1103
1120
 
1121
+ const documentIdentifierPositionSchema = v4.z.enum([
1122
+ "footer_left",
1123
+ "footer_split",
1124
+ "side_right",
1125
+ "badge_top_right"
1126
+ ]);
1127
+
1128
+ const documentPageNumberNumeralSchema = v4.z.enum(["arabic", "roman"]);
1129
+
1130
+ const documentPageNumberPositionSchema = v4.z.enum([
1131
+ "bottom_left",
1132
+ "bottom_center",
1133
+ "bottom_right"
1134
+ ]);
1135
+
1136
+ const documentTypographySchema = v4.z.enum([
1137
+ "serif",
1138
+ "sans",
1139
+ "brand_system",
1140
+ "brand_accent"
1141
+ ]);
1142
+
1104
1143
  const editAdRequestSchema = v4.z.object({
1105
1144
  venueAccessor: v4.z.string().min(1),
1106
1145
  id: v4.z.string().min(1),
@@ -1551,9 +1590,11 @@ const editEventRequestSchema = v4.z.object({
1551
1590
  validTo: v4.z.string().regex(/^\d{4}-\d{2}-\d{2}$/).nullish(),
1552
1591
  timeRanges: v4.z.array(
1553
1592
  v4.z.object({
1554
- startTime: v4.z.string().regex(/^\d{2}:\d{2}$/),
1555
- endTime: v4.z.string().regex(/^\d{2}:\d{2}$/),
1556
- lastSeatingTime: v4.z.string().regex(/^\d{2}:\d{2}$/).nullish()
1593
+ startTime: v4.z.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/),
1594
+ endTime: v4.z.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/),
1595
+ get lastSeatingTime() {
1596
+ return v4.z.union([enumEmptySchema]).nullish();
1597
+ }
1557
1598
  })
1558
1599
  ).min(1),
1559
1600
  get slotMode() {
@@ -1598,8 +1639,9 @@ const scheduleSchema = v4.z.object({
1598
1639
  scheduleTimeSlots: v4.z.optional(
1599
1640
  v4.z.array(
1600
1641
  v4.z.object({
1601
- scheduleId: v4.z.nullable(v4.z.string()),
1602
- timeSlotId: v4.z.nullable(v4.z.string()),
1642
+ id: v4.z.string(),
1643
+ scheduleId: v4.z.string(),
1644
+ timeSlotId: v4.z.string(),
1603
1645
  get dayOfWeek() {
1604
1646
  return dayOfWeekSchema;
1605
1647
  },
@@ -3631,7 +3673,7 @@ const getCalloutsResponseSchema = v4.z.array(
3631
3673
  v4.z.object({
3632
3674
  id: v4.z.string(),
3633
3675
  venueId: v4.z.string(),
3634
- label: v4.z.union([
3676
+ name: v4.z.union([
3635
3677
  v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
3636
3678
  v4.z.array(v4.z.any()),
3637
3679
  v4.z.object({}).catchall(v4.z.any())
@@ -3728,7 +3770,7 @@ const getWebsitePagesResponseSchema = v4.z.array(
3728
3770
  return websitePageOwnerTypeSchema;
3729
3771
  },
3730
3772
  ownerId: v4.z.nullable(v4.z.string()),
3731
- label: v4.z.nullable(
3773
+ name: v4.z.nullable(
3732
3774
  v4.z.union([
3733
3775
  v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
3734
3776
  v4.z.array(v4.z.any()),
@@ -3791,16 +3833,6 @@ const invitationScenarioSchema = v4.z.enum([
3791
3833
  "former_employee"
3792
3834
  ]);
3793
3835
 
3794
- const invitationStatusSchema = v4.z.enum([
3795
- "pending",
3796
- "accepted",
3797
- "rejected",
3798
- "expired",
3799
- "revoked"
3800
- ]);
3801
-
3802
- const invitationTypeSchema = v4.z.enum(["venue_user", "party_connection"]);
3803
-
3804
3836
  const joinTeamOrderRequestSchema = v4.z.object({
3805
3837
  publicId: v4.z.string().min(1),
3806
3838
  sessionId: v4.z.string().min(1),
@@ -3830,6 +3862,18 @@ const keywordDefaultScopeSchema = v4.z.enum(["venueType", "cuisine"]);
3830
3862
 
3831
3863
  const keywordPolaritySchema = v4.z.enum(["positive", "negative"]);
3832
3864
 
3865
+ const letterheadLogoPositionSchema = v4.z.enum([
3866
+ "top_left",
3867
+ "top_center",
3868
+ "top_right"
3869
+ ]);
3870
+
3871
+ const letterheadWindowFormSchema = v4.z.enum([
3872
+ "din_5008_form_a",
3873
+ "din_5008_form_b",
3874
+ "sn_010130"
3875
+ ]);
3876
+
3833
3877
  const localeSchema = v4.z.enum([
3834
3878
  "aa",
3835
3879
  "ab",
@@ -4186,7 +4230,7 @@ const messageThreadStatusSchema = v4.z.enum([
4186
4230
  "closed"
4187
4231
  ]);
4188
4232
 
4189
- const messageThreadSubjectTypeSchema = v4.z.enum(["party"]);
4233
+ const messageThreadSubjectTypeSchema = v4.z.enum(["party", "access_grant"]);
4190
4234
 
4191
4235
  const metaCallToActionSchema = v4.z.enum([
4192
4236
  "LEARN_MORE",
@@ -4217,7 +4261,11 @@ const orientationSchema = v4.z.enum(["vertical", "horizontal"]);
4217
4261
 
4218
4262
  const partyGenderSchema = v4.z.enum(["male", "female", "neutral"]);
4219
4263
 
4220
- const partyTypeSchema = v4.z.enum(["natural_person", "legal_entity"]);
4264
+ const partyTypeSchema = v4.z.enum([
4265
+ "natural_person",
4266
+ "legal_entity",
4267
+ "sole_prop"
4268
+ ]);
4221
4269
 
4222
4270
  const patchArticleFeatureImageBodySchema = v4.z.object({
4223
4271
  caption: v4.z.optional(v4.z.object({}).catchall(v4.z.any())),
@@ -4237,6 +4285,21 @@ const pendingSuperadminTransferStatusSchema = v4.z.enum([
4237
4285
  ]);
4238
4286
 
4239
4287
  const permissionSchema = v4.z.enum([
4288
+ "access-grant:view",
4289
+ "access-grant:offer",
4290
+ "access-grant:respond",
4291
+ "access-grant:revoke",
4292
+ "access-grant:revise",
4293
+ "ads:view",
4294
+ "ads:manage",
4295
+ "area-bookings:view",
4296
+ "area-bookings:manage",
4297
+ "areas:view",
4298
+ "areas:manage",
4299
+ "articles:view",
4300
+ "articles:manage",
4301
+ "assets:view",
4302
+ "assets:manage",
4240
4303
  "area-booking-requests:create",
4241
4304
  "bank-accounts:manage",
4242
4305
  "bank-accounts:view",
@@ -4257,6 +4320,8 @@ const permissionSchema = v4.z.enum([
4257
4320
  "dishes:delete",
4258
4321
  "dishes:read",
4259
4322
  "dishes:update",
4323
+ "events:view",
4324
+ "events:manage",
4260
4325
  "features:create",
4261
4326
  "features:delete",
4262
4327
  "features:update",
@@ -4266,6 +4331,9 @@ const permissionSchema = v4.z.enum([
4266
4331
  "iam:human",
4267
4332
  "iam:robot",
4268
4333
  "inbox:view",
4334
+ "inventory:view",
4335
+ "inventory:manage",
4336
+ "inventory:circulate",
4269
4337
  "kitchen:mark-preparing",
4270
4338
  "kitchen:mark-ready",
4271
4339
  "kitchen:view",
@@ -4292,6 +4360,11 @@ const permissionSchema = v4.z.enum([
4292
4360
  "platform:view",
4293
4361
  "users:delete",
4294
4362
  "platform-mention-fields:manage",
4363
+ "promotions:view",
4364
+ "promotions:manage",
4365
+ "reservations:view",
4366
+ "reservations:create",
4367
+ "reservations:manage",
4295
4368
  "reports:analytics",
4296
4369
  "reports:orders",
4297
4370
  "roles:assign",
@@ -4301,6 +4374,7 @@ const permissionSchema = v4.z.enum([
4301
4374
  "roles:view",
4302
4375
  "rolodex:manage",
4303
4376
  "rolodex:view",
4377
+ "business-card:read",
4304
4378
  "subscriptions:create",
4305
4379
  "subscriptions:delete",
4306
4380
  "subscriptions:update",
@@ -4313,6 +4387,7 @@ const permissionSchema = v4.z.enum([
4313
4387
  "venue:manage-gbp",
4314
4388
  "venue:manage-payments",
4315
4389
  "venue:update",
4390
+ "venue:transfer",
4316
4391
  "venue:view"
4317
4392
  ]);
4318
4393
 
@@ -4478,6 +4553,14 @@ const renderMenuPublicationPdfResponseSchema = v4.z.object({
4478
4553
  pdfBase64: v4.z.string()
4479
4554
  });
4480
4555
 
4556
+ const representativeCapacitySchema = v4.z.enum([
4557
+ "managing_director",
4558
+ "board_member",
4559
+ "authorized_signatory",
4560
+ "partner",
4561
+ "liquidator"
4562
+ ]);
4563
+
4481
4564
  const requestContactEmailChangeOutcomeSchema = v4.z.enum([
4482
4565
  "requested",
4483
4566
  "unchanged"
@@ -4509,6 +4592,8 @@ const roleSchema = v4.z.enum([
4509
4592
  "rider"
4510
4593
  ]);
4511
4594
 
4595
+ const roleTypeSchema = v4.z.enum(["curated", "authored"]);
4596
+
4512
4597
  const saveAdCalloutsRequestSchema = v4.z.object({
4513
4598
  venueAccessor: v4.z.string().min(1),
4514
4599
  adId: v4.z.string().min(1),
@@ -5093,13 +5178,13 @@ const teamOrderPaymentStatusSchema = v4.z.enum([
5093
5178
  const updateCalloutRequestSchema = v4.z.object({
5094
5179
  venueAccessor: v4.z.string().min(1),
5095
5180
  id: v4.z.string().min(1),
5096
- label: v4.z.object({}).catchall(v4.z.string().max(25))
5181
+ name: v4.z.object({}).catchall(v4.z.string().max(25))
5097
5182
  });
5098
5183
 
5099
5184
  const updateCalloutResponseSchema = v4.z.object({
5100
5185
  id: v4.z.string(),
5101
5186
  venueId: v4.z.string(),
5102
- label: v4.z.union([
5187
+ name: v4.z.union([
5103
5188
  v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
5104
5189
  v4.z.array(v4.z.any()),
5105
5190
  v4.z.object({}).catchall(v4.z.any())
@@ -5126,7 +5211,7 @@ const updateDeliveryAddressTeamOrderResponseSchema = v4.z.object({
5126
5211
  const updateWebsitePageRequestSchema = v4.z.object({
5127
5212
  venueAccessor: v4.z.string().min(1),
5128
5213
  id: v4.z.string().min(1),
5129
- label: v4.z.object({}).catchall(v4.z.string()).nullish(),
5214
+ name: v4.z.object({}).catchall(v4.z.string()).nullish(),
5130
5215
  target: v4.z.string().min(1)
5131
5216
  });
5132
5217
 
@@ -5137,7 +5222,7 @@ const updateWebsitePageResponseSchema = v4.z.object({
5137
5222
  return websitePageOwnerTypeSchema;
5138
5223
  },
5139
5224
  ownerId: v4.z.nullable(v4.z.string()),
5140
- label: v4.z.nullable(
5225
+ name: v4.z.nullable(
5141
5226
  v4.z.union([
5142
5227
  v4.z.union([v4.z.boolean(), v4.z.string(), v4.z.number(), v4.z.enum([])]),
5143
5228
  v4.z.array(v4.z.any()),
@@ -5240,12 +5325,17 @@ const wizardKeySchema = v4.z.enum([
5240
5325
  "ads-venue-explainer-v1",
5241
5326
  "ads-menu-explainer-v1",
5242
5327
  "ads-dish-explainer-v1",
5243
- "ads-beverage-explainer-v1"
5328
+ "ads-beverage-explainer-v1",
5329
+ "settings-bank-accounts-v1",
5330
+ "settings-brand-icons-v1"
5244
5331
  ]);
5245
5332
 
5246
5333
  const schemas = {
5247
5334
  AbandonBasketRequest: abandonBasketRequestSchema,
5248
5335
  AbandonBasketResponse: abandonBasketResponseSchema,
5336
+ AccessGrantInitiator: accessGrantInitiatorSchema,
5337
+ AccessGrantResourceType: accessGrantResourceTypeSchema,
5338
+ AccessGrantStatus: accessGrantStatusSchema,
5249
5339
  ActivePaymentStatus: activePaymentStatusSchema,
5250
5340
  ActorType: actorTypeSchema,
5251
5341
  AdBiddingStrategy: adBiddingStrategySchema,
@@ -5319,6 +5409,10 @@ const schemas = {
5319
5409
  Direction: directionSchema,
5320
5410
  DirectionX: directionXSchema,
5321
5411
  DirectionY: directionYSchema,
5412
+ DocumentIdentifierPosition: documentIdentifierPositionSchema,
5413
+ DocumentPageNumberNumeral: documentPageNumberNumeralSchema,
5414
+ DocumentPageNumberPosition: documentPageNumberPositionSchema,
5415
+ DocumentTypography: documentTypographySchema,
5322
5416
  EditAdRequest: editAdRequestSchema,
5323
5417
  EditAdResponse: editAdResponseSchema,
5324
5418
  EditArticleRequest: editArticleRequestSchema,
@@ -5333,6 +5427,7 @@ const schemas = {
5333
5427
  EditMetaAdResponse: editMetaAdResponseSchema,
5334
5428
  EntityOwnerType: entityOwnerTypeSchema,
5335
5429
  EnumCenterLeftRight: enumCenterLeftRightSchema,
5430
+ EnumEmpty: enumEmptySchema,
5336
5431
  EnumFalse: enumFalseSchema,
5337
5432
  EnumTrue: enumTrueSchema,
5338
5433
  EventAssetSource: eventAssetSourceSchema,
@@ -5383,14 +5478,14 @@ const schemas = {
5383
5478
  InventoryAssetStatus: inventoryAssetStatusSchema,
5384
5479
  InventoryCategory: inventoryCategorySchema,
5385
5480
  InvitationScenario: invitationScenarioSchema,
5386
- InvitationStatus: invitationStatusSchema,
5387
- InvitationType: invitationTypeSchema,
5388
5481
  JoinTeamOrderRequest: joinTeamOrderRequestSchema,
5389
5482
  JoinTeamOrderResponse: joinTeamOrderResponseSchema,
5390
5483
  Jurisdiction: jurisdictionSchema,
5391
5484
  JurisdictionType: jurisdictionTypeSchema,
5392
5485
  KeywordDefaultScope: keywordDefaultScopeSchema,
5393
5486
  KeywordPolarity: keywordPolaritySchema,
5487
+ LetterheadLogoPosition: letterheadLogoPositionSchema,
5488
+ LetterheadWindowForm: letterheadWindowFormSchema,
5394
5489
  Locale: localeSchema,
5395
5490
  MakeReservationRequest: makeReservationRequestSchema,
5396
5491
  MakeReservationResponse: makeReservationResponseSchema,
@@ -5452,6 +5547,7 @@ const schemas = {
5452
5547
  RemoveFromBasketResponse: removeFromBasketResponseSchema,
5453
5548
  RenderMenuPublicationPdfRequest: renderMenuPublicationPdfRequestSchema,
5454
5549
  RenderMenuPublicationPdfResponse: renderMenuPublicationPdfResponseSchema,
5550
+ RepresentativeCapacity: representativeCapacitySchema,
5455
5551
  RequestContactEmailChangeOutcome: requestContactEmailChangeOutcomeSchema,
5456
5552
  ReservationDeclineReason: reservationDeclineReasonSchema,
5457
5553
  ReservationMessageStatus: reservationMessageStatusSchema,
@@ -5460,6 +5556,7 @@ const schemas = {
5460
5556
  ReservationStatus: reservationStatusSchema,
5461
5557
  RitualType: ritualTypeSchema,
5462
5558
  Role: roleSchema,
5559
+ RoleType: roleTypeSchema,
5463
5560
  SaveAdCalloutsRequest: saveAdCalloutsRequestSchema,
5464
5561
  SaveAdCalloutsResponse: saveAdCalloutsResponseSchema,
5465
5562
  SaveAdKeywordsRequest: saveAdKeywordsRequestSchema,