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.mjs CHANGED
@@ -9,6 +9,19 @@ const abandonBasketResponseSchema = z.object({
9
9
  abandonedCount: z.int().min(0).max(9007199254740991)
10
10
  });
11
11
 
12
+ const accessGrantInitiatorSchema = z.enum(["grantor", "grantee"]);
13
+
14
+ const accessGrantResourceTypeSchema = z.enum(["business-card"]);
15
+
16
+ const accessGrantStatusSchema = z.enum([
17
+ "pending",
18
+ "accepted",
19
+ "declined",
20
+ "expired",
21
+ "withdrawn",
22
+ "revoked"
23
+ ]);
24
+
12
25
  const activePaymentStatusSchema = z.enum([
13
26
  "authorized",
14
27
  "captured",
@@ -540,13 +553,13 @@ const createAdResponseSchema = z.object({
540
553
  const createCalloutRequestSchema = z.object({
541
554
  venueAccessor: z.string().min(1),
542
555
  id: z.optional(z.string().min(1)),
543
- label: z.object({}).catchall(z.string().max(25))
556
+ name: z.object({}).catchall(z.string().max(25))
544
557
  });
545
558
 
546
559
  const createCalloutResponseSchema = z.object({
547
560
  id: z.string(),
548
561
  venueId: z.string(),
549
- label: z.union([
562
+ name: z.union([
550
563
  z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
551
564
  z.array(z.any()),
552
565
  z.object({}).catchall(z.any())
@@ -590,6 +603,8 @@ const createDeltaPaymentIntentResponseSchema = z.object({
590
603
  ])
591
604
  });
592
605
 
606
+ const enumEmptySchema = z.enum([""]);
607
+
593
608
  const slotModeSchema = z.enum(["interval", "duration"]);
594
609
 
595
610
  const createEventRequestSchema = z.object({
@@ -634,9 +649,11 @@ const createEventRequestSchema = z.object({
634
649
  validTo: z.string().regex(/^\d{4}-\d{2}-\d{2}$/).nullish(),
635
650
  timeRanges: z.array(
636
651
  z.object({
637
- startTime: z.string().regex(/^\d{2}:\d{2}$/),
638
- endTime: z.string().regex(/^\d{2}:\d{2}$/),
639
- lastSeatingTime: z.string().regex(/^\d{2}:\d{2}$/).nullish()
652
+ startTime: z.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/),
653
+ endTime: z.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/),
654
+ get lastSeatingTime() {
655
+ return z.union([enumEmptySchema]).nullish();
656
+ }
640
657
  })
641
658
  ).min(1),
642
659
  get slotMode() {
@@ -842,7 +859,7 @@ const createWebsitePageRequestSchema = z.object({
842
859
  return websitePageOwnerTypeSchema.optional();
843
860
  },
844
861
  ownerId: z.string().min(1).nullish(),
845
- label: z.object({}).catchall(z.string()).nullish(),
862
+ name: z.object({}).catchall(z.string()).nullish(),
846
863
  target: z.string().min(1)
847
864
  });
848
865
 
@@ -853,7 +870,7 @@ const createWebsitePageResponseSchema = z.object({
853
870
  return websitePageOwnerTypeSchema;
854
871
  },
855
872
  ownerId: z.nullable(z.string()),
856
- label: z.nullable(
873
+ name: z.nullable(
857
874
  z.union([
858
875
  z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
859
876
  z.array(z.any()),
@@ -993,7 +1010,7 @@ const deleteAssetResponseSchema = z.object({
993
1010
  const deleteCalloutResponseSchema = z.object({
994
1011
  id: z.string(),
995
1012
  venueId: z.string(),
996
- label: z.union([
1013
+ name: z.union([
997
1014
  z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
998
1015
  z.array(z.any()),
999
1016
  z.object({}).catchall(z.any())
@@ -1061,7 +1078,7 @@ const deleteWebsitePageResponseSchema = z.object({
1061
1078
  return websitePageOwnerTypeSchema;
1062
1079
  },
1063
1080
  ownerId: z.nullable(z.string()),
1064
- label: z.nullable(
1081
+ name: z.nullable(
1065
1082
  z.union([
1066
1083
  z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
1067
1084
  z.array(z.any()),
@@ -1099,6 +1116,28 @@ const directionXSchema = z.enum(["left", "right"]);
1099
1116
 
1100
1117
  const directionYSchema = z.enum(["up", "down"]);
1101
1118
 
1119
+ const documentIdentifierPositionSchema = z.enum([
1120
+ "footer_left",
1121
+ "footer_split",
1122
+ "side_right",
1123
+ "badge_top_right"
1124
+ ]);
1125
+
1126
+ const documentPageNumberNumeralSchema = z.enum(["arabic", "roman"]);
1127
+
1128
+ const documentPageNumberPositionSchema = z.enum([
1129
+ "bottom_left",
1130
+ "bottom_center",
1131
+ "bottom_right"
1132
+ ]);
1133
+
1134
+ const documentTypographySchema = z.enum([
1135
+ "serif",
1136
+ "sans",
1137
+ "brand_system",
1138
+ "brand_accent"
1139
+ ]);
1140
+
1102
1141
  const editAdRequestSchema = z.object({
1103
1142
  venueAccessor: z.string().min(1),
1104
1143
  id: z.string().min(1),
@@ -1549,9 +1588,11 @@ const editEventRequestSchema = z.object({
1549
1588
  validTo: z.string().regex(/^\d{4}-\d{2}-\d{2}$/).nullish(),
1550
1589
  timeRanges: z.array(
1551
1590
  z.object({
1552
- startTime: z.string().regex(/^\d{2}:\d{2}$/),
1553
- endTime: z.string().regex(/^\d{2}:\d{2}$/),
1554
- lastSeatingTime: z.string().regex(/^\d{2}:\d{2}$/).nullish()
1591
+ startTime: z.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/),
1592
+ endTime: z.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/),
1593
+ get lastSeatingTime() {
1594
+ return z.union([enumEmptySchema]).nullish();
1595
+ }
1555
1596
  })
1556
1597
  ).min(1),
1557
1598
  get slotMode() {
@@ -1596,8 +1637,9 @@ const scheduleSchema = z.object({
1596
1637
  scheduleTimeSlots: z.optional(
1597
1638
  z.array(
1598
1639
  z.object({
1599
- scheduleId: z.nullable(z.string()),
1600
- timeSlotId: z.nullable(z.string()),
1640
+ id: z.string(),
1641
+ scheduleId: z.string(),
1642
+ timeSlotId: z.string(),
1601
1643
  get dayOfWeek() {
1602
1644
  return dayOfWeekSchema;
1603
1645
  },
@@ -3629,7 +3671,7 @@ const getCalloutsResponseSchema = z.array(
3629
3671
  z.object({
3630
3672
  id: z.string(),
3631
3673
  venueId: z.string(),
3632
- label: z.union([
3674
+ name: z.union([
3633
3675
  z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
3634
3676
  z.array(z.any()),
3635
3677
  z.object({}).catchall(z.any())
@@ -3726,7 +3768,7 @@ const getWebsitePagesResponseSchema = z.array(
3726
3768
  return websitePageOwnerTypeSchema;
3727
3769
  },
3728
3770
  ownerId: z.nullable(z.string()),
3729
- label: z.nullable(
3771
+ name: z.nullable(
3730
3772
  z.union([
3731
3773
  z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
3732
3774
  z.array(z.any()),
@@ -3789,16 +3831,6 @@ const invitationScenarioSchema = z.enum([
3789
3831
  "former_employee"
3790
3832
  ]);
3791
3833
 
3792
- const invitationStatusSchema = z.enum([
3793
- "pending",
3794
- "accepted",
3795
- "rejected",
3796
- "expired",
3797
- "revoked"
3798
- ]);
3799
-
3800
- const invitationTypeSchema = z.enum(["venue_user", "party_connection"]);
3801
-
3802
3834
  const joinTeamOrderRequestSchema = z.object({
3803
3835
  publicId: z.string().min(1),
3804
3836
  sessionId: z.string().min(1),
@@ -3828,6 +3860,18 @@ const keywordDefaultScopeSchema = z.enum(["venueType", "cuisine"]);
3828
3860
 
3829
3861
  const keywordPolaritySchema = z.enum(["positive", "negative"]);
3830
3862
 
3863
+ const letterheadLogoPositionSchema = z.enum([
3864
+ "top_left",
3865
+ "top_center",
3866
+ "top_right"
3867
+ ]);
3868
+
3869
+ const letterheadWindowFormSchema = z.enum([
3870
+ "din_5008_form_a",
3871
+ "din_5008_form_b",
3872
+ "sn_010130"
3873
+ ]);
3874
+
3831
3875
  const localeSchema = z.enum([
3832
3876
  "aa",
3833
3877
  "ab",
@@ -4184,7 +4228,7 @@ const messageThreadStatusSchema = z.enum([
4184
4228
  "closed"
4185
4229
  ]);
4186
4230
 
4187
- const messageThreadSubjectTypeSchema = z.enum(["party"]);
4231
+ const messageThreadSubjectTypeSchema = z.enum(["party", "access_grant"]);
4188
4232
 
4189
4233
  const metaCallToActionSchema = z.enum([
4190
4234
  "LEARN_MORE",
@@ -4215,7 +4259,11 @@ const orientationSchema = z.enum(["vertical", "horizontal"]);
4215
4259
 
4216
4260
  const partyGenderSchema = z.enum(["male", "female", "neutral"]);
4217
4261
 
4218
- const partyTypeSchema = z.enum(["natural_person", "legal_entity"]);
4262
+ const partyTypeSchema = z.enum([
4263
+ "natural_person",
4264
+ "legal_entity",
4265
+ "sole_prop"
4266
+ ]);
4219
4267
 
4220
4268
  const patchArticleFeatureImageBodySchema = z.object({
4221
4269
  caption: z.optional(z.object({}).catchall(z.any())),
@@ -4235,6 +4283,21 @@ const pendingSuperadminTransferStatusSchema = z.enum([
4235
4283
  ]);
4236
4284
 
4237
4285
  const permissionSchema = z.enum([
4286
+ "access-grant:view",
4287
+ "access-grant:offer",
4288
+ "access-grant:respond",
4289
+ "access-grant:revoke",
4290
+ "access-grant:revise",
4291
+ "ads:view",
4292
+ "ads:manage",
4293
+ "area-bookings:view",
4294
+ "area-bookings:manage",
4295
+ "areas:view",
4296
+ "areas:manage",
4297
+ "articles:view",
4298
+ "articles:manage",
4299
+ "assets:view",
4300
+ "assets:manage",
4238
4301
  "area-booking-requests:create",
4239
4302
  "bank-accounts:manage",
4240
4303
  "bank-accounts:view",
@@ -4255,6 +4318,8 @@ const permissionSchema = z.enum([
4255
4318
  "dishes:delete",
4256
4319
  "dishes:read",
4257
4320
  "dishes:update",
4321
+ "events:view",
4322
+ "events:manage",
4258
4323
  "features:create",
4259
4324
  "features:delete",
4260
4325
  "features:update",
@@ -4264,6 +4329,9 @@ const permissionSchema = z.enum([
4264
4329
  "iam:human",
4265
4330
  "iam:robot",
4266
4331
  "inbox:view",
4332
+ "inventory:view",
4333
+ "inventory:manage",
4334
+ "inventory:circulate",
4267
4335
  "kitchen:mark-preparing",
4268
4336
  "kitchen:mark-ready",
4269
4337
  "kitchen:view",
@@ -4290,6 +4358,11 @@ const permissionSchema = z.enum([
4290
4358
  "platform:view",
4291
4359
  "users:delete",
4292
4360
  "platform-mention-fields:manage",
4361
+ "promotions:view",
4362
+ "promotions:manage",
4363
+ "reservations:view",
4364
+ "reservations:create",
4365
+ "reservations:manage",
4293
4366
  "reports:analytics",
4294
4367
  "reports:orders",
4295
4368
  "roles:assign",
@@ -4299,6 +4372,7 @@ const permissionSchema = z.enum([
4299
4372
  "roles:view",
4300
4373
  "rolodex:manage",
4301
4374
  "rolodex:view",
4375
+ "business-card:read",
4302
4376
  "subscriptions:create",
4303
4377
  "subscriptions:delete",
4304
4378
  "subscriptions:update",
@@ -4311,6 +4385,7 @@ const permissionSchema = z.enum([
4311
4385
  "venue:manage-gbp",
4312
4386
  "venue:manage-payments",
4313
4387
  "venue:update",
4388
+ "venue:transfer",
4314
4389
  "venue:view"
4315
4390
  ]);
4316
4391
 
@@ -4476,6 +4551,14 @@ const renderMenuPublicationPdfResponseSchema = z.object({
4476
4551
  pdfBase64: z.string()
4477
4552
  });
4478
4553
 
4554
+ const representativeCapacitySchema = z.enum([
4555
+ "managing_director",
4556
+ "board_member",
4557
+ "authorized_signatory",
4558
+ "partner",
4559
+ "liquidator"
4560
+ ]);
4561
+
4479
4562
  const requestContactEmailChangeOutcomeSchema = z.enum([
4480
4563
  "requested",
4481
4564
  "unchanged"
@@ -4507,6 +4590,8 @@ const roleSchema = z.enum([
4507
4590
  "rider"
4508
4591
  ]);
4509
4592
 
4593
+ const roleTypeSchema = z.enum(["curated", "authored"]);
4594
+
4510
4595
  const saveAdCalloutsRequestSchema = z.object({
4511
4596
  venueAccessor: z.string().min(1),
4512
4597
  adId: z.string().min(1),
@@ -5091,13 +5176,13 @@ const teamOrderPaymentStatusSchema = z.enum([
5091
5176
  const updateCalloutRequestSchema = z.object({
5092
5177
  venueAccessor: z.string().min(1),
5093
5178
  id: z.string().min(1),
5094
- label: z.object({}).catchall(z.string().max(25))
5179
+ name: z.object({}).catchall(z.string().max(25))
5095
5180
  });
5096
5181
 
5097
5182
  const updateCalloutResponseSchema = z.object({
5098
5183
  id: z.string(),
5099
5184
  venueId: z.string(),
5100
- label: z.union([
5185
+ name: z.union([
5101
5186
  z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
5102
5187
  z.array(z.any()),
5103
5188
  z.object({}).catchall(z.any())
@@ -5124,7 +5209,7 @@ const updateDeliveryAddressTeamOrderResponseSchema = z.object({
5124
5209
  const updateWebsitePageRequestSchema = z.object({
5125
5210
  venueAccessor: z.string().min(1),
5126
5211
  id: z.string().min(1),
5127
- label: z.object({}).catchall(z.string()).nullish(),
5212
+ name: z.object({}).catchall(z.string()).nullish(),
5128
5213
  target: z.string().min(1)
5129
5214
  });
5130
5215
 
@@ -5135,7 +5220,7 @@ const updateWebsitePageResponseSchema = z.object({
5135
5220
  return websitePageOwnerTypeSchema;
5136
5221
  },
5137
5222
  ownerId: z.nullable(z.string()),
5138
- label: z.nullable(
5223
+ name: z.nullable(
5139
5224
  z.union([
5140
5225
  z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
5141
5226
  z.array(z.any()),
@@ -5238,12 +5323,17 @@ const wizardKeySchema = z.enum([
5238
5323
  "ads-venue-explainer-v1",
5239
5324
  "ads-menu-explainer-v1",
5240
5325
  "ads-dish-explainer-v1",
5241
- "ads-beverage-explainer-v1"
5326
+ "ads-beverage-explainer-v1",
5327
+ "settings-bank-accounts-v1",
5328
+ "settings-brand-icons-v1"
5242
5329
  ]);
5243
5330
 
5244
5331
  const schemas = {
5245
5332
  AbandonBasketRequest: abandonBasketRequestSchema,
5246
5333
  AbandonBasketResponse: abandonBasketResponseSchema,
5334
+ AccessGrantInitiator: accessGrantInitiatorSchema,
5335
+ AccessGrantResourceType: accessGrantResourceTypeSchema,
5336
+ AccessGrantStatus: accessGrantStatusSchema,
5247
5337
  ActivePaymentStatus: activePaymentStatusSchema,
5248
5338
  ActorType: actorTypeSchema,
5249
5339
  AdBiddingStrategy: adBiddingStrategySchema,
@@ -5317,6 +5407,10 @@ const schemas = {
5317
5407
  Direction: directionSchema,
5318
5408
  DirectionX: directionXSchema,
5319
5409
  DirectionY: directionYSchema,
5410
+ DocumentIdentifierPosition: documentIdentifierPositionSchema,
5411
+ DocumentPageNumberNumeral: documentPageNumberNumeralSchema,
5412
+ DocumentPageNumberPosition: documentPageNumberPositionSchema,
5413
+ DocumentTypography: documentTypographySchema,
5320
5414
  EditAdRequest: editAdRequestSchema,
5321
5415
  EditAdResponse: editAdResponseSchema,
5322
5416
  EditArticleRequest: editArticleRequestSchema,
@@ -5331,6 +5425,7 @@ const schemas = {
5331
5425
  EditMetaAdResponse: editMetaAdResponseSchema,
5332
5426
  EntityOwnerType: entityOwnerTypeSchema,
5333
5427
  EnumCenterLeftRight: enumCenterLeftRightSchema,
5428
+ EnumEmpty: enumEmptySchema,
5334
5429
  EnumFalse: enumFalseSchema,
5335
5430
  EnumTrue: enumTrueSchema,
5336
5431
  EventAssetSource: eventAssetSourceSchema,
@@ -5381,14 +5476,14 @@ const schemas = {
5381
5476
  InventoryAssetStatus: inventoryAssetStatusSchema,
5382
5477
  InventoryCategory: inventoryCategorySchema,
5383
5478
  InvitationScenario: invitationScenarioSchema,
5384
- InvitationStatus: invitationStatusSchema,
5385
- InvitationType: invitationTypeSchema,
5386
5479
  JoinTeamOrderRequest: joinTeamOrderRequestSchema,
5387
5480
  JoinTeamOrderResponse: joinTeamOrderResponseSchema,
5388
5481
  Jurisdiction: jurisdictionSchema,
5389
5482
  JurisdictionType: jurisdictionTypeSchema,
5390
5483
  KeywordDefaultScope: keywordDefaultScopeSchema,
5391
5484
  KeywordPolarity: keywordPolaritySchema,
5485
+ LetterheadLogoPosition: letterheadLogoPositionSchema,
5486
+ LetterheadWindowForm: letterheadWindowFormSchema,
5392
5487
  Locale: localeSchema,
5393
5488
  MakeReservationRequest: makeReservationRequestSchema,
5394
5489
  MakeReservationResponse: makeReservationResponseSchema,
@@ -5450,6 +5545,7 @@ const schemas = {
5450
5545
  RemoveFromBasketResponse: removeFromBasketResponseSchema,
5451
5546
  RenderMenuPublicationPdfRequest: renderMenuPublicationPdfRequestSchema,
5452
5547
  RenderMenuPublicationPdfResponse: renderMenuPublicationPdfResponseSchema,
5548
+ RepresentativeCapacity: representativeCapacitySchema,
5453
5549
  RequestContactEmailChangeOutcome: requestContactEmailChangeOutcomeSchema,
5454
5550
  ReservationDeclineReason: reservationDeclineReasonSchema,
5455
5551
  ReservationMessageStatus: reservationMessageStatusSchema,
@@ -5458,6 +5554,7 @@ const schemas = {
5458
5554
  ReservationStatus: reservationStatusSchema,
5459
5555
  RitualType: ritualTypeSchema,
5460
5556
  Role: roleSchema,
5557
+ RoleType: roleTypeSchema,
5461
5558
  SaveAdCalloutsRequest: saveAdCalloutsRequestSchema,
5462
5559
  SaveAdCalloutsResponse: saveAdCalloutsResponseSchema,
5463
5560
  SaveAdKeywordsRequest: saveAdKeywordsRequestSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "order3000",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "order3000 node.js sdk",
5
5
  "main": "./dist/client.cjs",
6
6
  "module": "./dist/client.mjs",
@@ -52,7 +52,7 @@
52
52
  "@supabase/supabase-js": "^2.49.8",
53
53
  "react-type-animation": "^3.2.0",
54
54
  "zod": "^4.2.1",
55
- "@kolaveri/money": "1.2.0"
55
+ "@kolaveri/money": "1.3.1"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@kubb/cli": "4.37.5",
@@ -67,9 +67,9 @@
67
67
  "prettier": "^3.7.4",
68
68
  "tsx": "^4.19.2",
69
69
  "typescript": "^5.9.3",
70
- "@kolaveri/eslint-config": "1.15.1",
71
- "@kolaveri/prettier-config": "1.0.6",
72
- "@kolaveri/tsconfig": "1.0.1"
70
+ "@kolaveri/eslint-config": "1.17.0",
71
+ "@kolaveri/tsconfig": "1.0.1",
72
+ "@kolaveri/prettier-config": "1.0.6"
73
73
  },
74
74
  "files": [
75
75
  "dist"