order3000 1.13.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,6 +332,8 @@ 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"]);
@@ -333,6 +344,11 @@ const bookletSectionInputSchema = z.object({
333
344
  pageEnd: z.optional(z.int().min(1).max(9007199254740991))
334
345
  });
335
346
 
347
+ const campaignControlReasonSchema = z.enum([
348
+ "quota_exhausted",
349
+ "campaign_removed"
350
+ ]);
351
+
336
352
  const cancelSubscriptionRequestSchema = z.object({
337
353
  subscriberId: z.string().min(1)
338
354
  });
@@ -392,9 +408,18 @@ const confirmOrderResponseSchema = z.object({
392
408
  guestId: z.optional(z.string())
393
409
  });
394
410
 
411
+ const contactEmailTypeSchema = z.enum(["primary", "billing"]);
412
+
413
+ const contactEmailVerificationStatusSchema = z.enum([
414
+ "pending",
415
+ "verified",
416
+ "completed",
417
+ "superseded"
418
+ ]);
419
+
395
420
  const contactPreferenceSchema = z.enum(["email", "phone", "sms", "none"]);
396
421
 
397
- const countryCodeSchema = z.enum([
422
+ const countrySchema = z.enum([
398
423
  "AD",
399
424
  "AE",
400
425
  "AF",
@@ -979,6 +1004,8 @@ const createMenuPublicationResponseSchema = z.object({
979
1004
  z.object({}).catchall(z.any())
980
1005
  ]),
981
1006
  renderedAssetId: z.nullable(z.string()),
1007
+ frameId: z.nullable(z.string()),
1008
+ ruleIconAssetId: z.nullable(z.string()),
982
1009
  templateId: z.nullable(z.string()),
983
1010
  get sourceType() {
984
1011
  return publicationSourceTypeSchema;
@@ -1318,6 +1345,12 @@ const depositwareStatusSchema = z.enum([
1318
1345
  "retired"
1319
1346
  ]);
1320
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
+
1321
1354
  const editAdRequestSchema = z.object({
1322
1355
  venueAccessor: z.string().min(1),
1323
1356
  id: z.string().min(1),
@@ -3654,6 +3687,8 @@ const fetchSlotAvailabilityResponseSchema = z.array(
3654
3687
  })
3655
3688
  );
3656
3689
 
3690
+ const teamOrderThresholdConstraintSchema = z.enum(["quantity", "amount"]);
3691
+
3657
3692
  const fetchTeamOrderResponseSchema = z.object({
3658
3693
  teamOrder: z.object({
3659
3694
  id: z.string(),
@@ -3732,12 +3767,9 @@ const fetchTeamOrderResponseSchema = z.object({
3732
3767
  get method() {
3733
3768
  return paymentMethodSchema;
3734
3769
  },
3735
- status: z.enum([
3736
- "authorized",
3737
- "captured",
3738
- "cash_pending",
3739
- "cash_received"
3740
- ]),
3770
+ get status() {
3771
+ return activePaymentStatusSchema;
3772
+ },
3741
3773
  createdAt: z.iso.datetime(),
3742
3774
  cardLast4: z.nullable(z.string().min(4).max(4))
3743
3775
  })
@@ -3760,7 +3792,9 @@ const fetchTeamOrderResponseSchema = z.object({
3760
3792
  }),
3761
3793
  thresholdCheck: z.object({
3762
3794
  meets: z.boolean(),
3763
- failedConstraints: z.array(z.enum(["quantity", "amount"])),
3795
+ get failedConstraints() {
3796
+ return z.array(teamOrderThresholdConstraintSchema);
3797
+ },
3764
3798
  requiredQuantity: z.nullable(
3765
3799
  z.int().min(-9007199254740991).max(9007199254740991)
3766
3800
  ),
@@ -3960,6 +3994,14 @@ const getWebsitePagesResponseSchema = z.array(
3960
3994
 
3961
3995
  const googleAdsAssetFamilySchema = z.enum(["sitelinks", "callouts"]);
3962
3996
 
3997
+ const guestTierSchema = z.enum([
3998
+ "blacklisted",
3999
+ "atRisk",
4000
+ "loyal",
4001
+ "newGuest",
4002
+ "regular"
4003
+ ]);
4004
+
3963
4005
  const integrationNotificationTypeSchema = z.enum([
3964
4006
  "order_created",
3965
4007
  "order_cancelled",
@@ -4016,6 +4058,8 @@ const joinTeamOrderResponseSchema = z.object({
4016
4058
 
4017
4059
  const jurisdictionSchema = z.enum(["DE", "CH", "FR", "IT"]);
4018
4060
 
4061
+ const keywordDefaultScopeSchema = z.enum(["venueType", "cuisine"]);
4062
+
4019
4063
  const keywordPolaritySchema = z.enum(["positive", "negative"]);
4020
4064
 
4021
4065
  const localeSchema = z.enum([
@@ -4277,6 +4321,7 @@ const makeReservationResponseSchema = z.object({
4277
4321
  guestId: z.nullable(
4278
4322
  z.uuid().describe("Link to customer profile if exists")
4279
4323
  ),
4324
+ partyId: z.nullable(z.string()),
4280
4325
  guestFirstName: z.string().describe("First name of the customer"),
4281
4326
  guestLastName: z.string().describe("Last name of the customer"),
4282
4327
  guestEmail: z.nullable(z.string().describe("Customer email address")),
@@ -4353,6 +4398,35 @@ const menuItemMarkerSchema = z.enum([
4353
4398
  "spicy"
4354
4399
  ]);
4355
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
+
4356
4430
  const patchArticleFeatureImageBodySchema = z.object({
4357
4431
  caption: z.optional(z.object({}).catchall(z.any())),
4358
4432
  alt: z.optional(z.object({}).catchall(z.any()))
@@ -4409,9 +4483,34 @@ const placeOrderResponseSchema = z.object({
4409
4483
 
4410
4484
  const platformRoleSchema = z.enum(["platform_maintainer"]);
4411
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
+
4412
4511
  const publicationEventTypeSchema = z.enum(["download", "scan"]);
4413
4512
 
4414
- const publicationFrameStyleSchema = z.enum(["solid", "motif"]);
4513
+ const publicationFrameStyleSchema = z.enum(["solid", "icon"]);
4415
4514
 
4416
4515
  const publicationGroupBySchema = z.enum([
4417
4516
  "weekday",
@@ -4449,7 +4548,7 @@ const publicationRuleStyleSchema = z.enum([
4449
4548
  "asterisks",
4450
4549
  "fade",
4451
4550
  "dot_ornament",
4452
- "custom"
4551
+ "icon"
4453
4552
  ]);
4454
4553
 
4455
4554
  const publicationSectionTypeSchema = z.enum(["cover", "body", "back"]);
@@ -4507,6 +4606,17 @@ const renderMenuPublicationPdfResponseSchema = z.object({
4507
4606
  pdfBase64: z.string()
4508
4607
  });
4509
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
+
4510
4620
  const reservationMessageStatusSchema = z.enum(["draft", "sent"]);
4511
4621
 
4512
4622
  const reservationModeSchema = z.enum(["passive", "auto_steer"]);
@@ -4580,6 +4690,18 @@ const saveAdWebsitePagesResponseSchema = z.object({
4580
4690
 
4581
4691
  const scanTokenEntityTypeSchema = z.enum(["order", "depositware"]);
4582
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
+
4583
4705
  const setAdBudgetRequestSchema = z.object({
4584
4706
  venueAccessor: z.string().min(1),
4585
4707
  adId: z.string().min(1),
@@ -4894,6 +5016,16 @@ const setMenuPublicationBlocksRequestSchema = z.object({
4894
5016
  ]).nullish(),
4895
5017
  frameWidth: z.optional(z.number().min(1).max(12)),
4896
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
+ ),
4897
5029
  get titleAlign() {
4898
5030
  return enumCenterLeftRightSchema.optional();
4899
5031
  },
@@ -4919,6 +5051,7 @@ const setMenuPublicationBlocksRequestSchema = z.object({
4919
5051
  custom: z.string()
4920
5052
  })
4921
5053
  ]).nullish(),
5054
+ ruleIconAssetId: z.optional(z.string()),
4922
5055
  showQr: z.optional(z.boolean()),
4923
5056
  get qrTarget() {
4924
5057
  return publicationQrTargetSchema.optional();
@@ -5195,13 +5328,22 @@ const uploadAssetResponseSchema = z.object({
5195
5328
  publicUrl: z.nullable(z.string())
5196
5329
  });
5197
5330
 
5331
+ const variantSchema = z.enum([
5332
+ "dark",
5333
+ "light",
5334
+ "success",
5335
+ "warning",
5336
+ "danger",
5337
+ "primary",
5338
+ "secondary"
5339
+ ]);
5340
+
5198
5341
  const venueAssetTypeSchema = z.enum([
5199
5342
  "logomark",
5200
5343
  "wordmark",
5201
5344
  "combinationmark_horizontal",
5202
5345
  "combinationmark_vertical",
5203
- "motif",
5204
- "divider"
5346
+ "icon"
5205
5347
  ]);
5206
5348
 
5207
5349
  const venueChargeTypeSchema = z.enum(["base", "addon"]);
@@ -5222,9 +5364,17 @@ const venueTypeSchema = z.enum([
5222
5364
 
5223
5365
  const venueUserStatusSchema = z.enum(["pending", "confirmed", "revoked"]);
5224
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
+
5225
5374
  const schemas = {
5226
5375
  AbandonBasketRequest: abandonBasketRequestSchema,
5227
5376
  AbandonBasketResponse: abandonBasketResponseSchema,
5377
+ ActivePaymentStatus: activePaymentStatusSchema,
5228
5378
  ActorType: actorTypeSchema,
5229
5379
  AdBiddingStrategy: adBiddingStrategySchema,
5230
5380
  AdChannel: adChannelSchema,
@@ -5246,12 +5396,15 @@ const schemas = {
5246
5396
  AssetWithPublicUrl: assetWithPublicUrlSchema,
5247
5397
  AutoExtendFulfillmentIfExpiredRequest: autoExtendFulfillmentIfExpiredRequestSchema,
5248
5398
  AutoExtendFulfillmentIfExpiredResponse: autoExtendFulfillmentIfExpiredResponseSchema,
5399
+ BankAccountStatus: bankAccountStatusSchema,
5249
5400
  BasketStatus: basketStatusSchema,
5250
5401
  BasketTotals: basketTotalsSchema,
5251
5402
  BeverageCategory: beverageCategorySchema,
5403
+ BillingInterval: billingIntervalSchema,
5252
5404
  BillingMode: billingModeSchema,
5253
5405
  BookingChannel: bookingChannelSchema,
5254
5406
  BookletSectionInput: bookletSectionInputSchema,
5407
+ CampaignControlReason: campaignControlReasonSchema,
5255
5408
  CancelSubscriptionRequest: cancelSubscriptionRequestSchema,
5256
5409
  CancelSubscriptionResponse: cancelSubscriptionResponseSchema,
5257
5410
  CancelTeamOrderRequest: cancelTeamOrderRequestSchema,
@@ -5261,8 +5414,10 @@ const schemas = {
5261
5414
  ComposeMenuPublicationBookletResponse: composeMenuPublicationBookletResponseSchema,
5262
5415
  ConfirmOrderRequest: confirmOrderRequestSchema,
5263
5416
  ConfirmOrderResponse: confirmOrderResponseSchema,
5417
+ ContactEmailType: contactEmailTypeSchema,
5418
+ ContactEmailVerificationStatus: contactEmailVerificationStatusSchema,
5264
5419
  ContactPreference: contactPreferenceSchema,
5265
- CountryCode: countryCodeSchema,
5420
+ Country: countrySchema,
5266
5421
  CreateAdRequest: createAdRequestSchema,
5267
5422
  CreateAdResponse: createAdResponseSchema,
5268
5423
  CreateCalloutRequest: createCalloutRequestSchema,
@@ -5289,6 +5444,9 @@ const schemas = {
5289
5444
  DeliveryAddress: deliveryAddressSchema,
5290
5445
  DepositTransactionType: depositTransactionTypeSchema,
5291
5446
  DepositwareStatus: depositwareStatusSchema,
5447
+ Direction: directionSchema,
5448
+ DirectionX: directionXSchema,
5449
+ DirectionY: directionYSchema,
5292
5450
  EditAdRequest: editAdRequestSchema,
5293
5451
  EditAdResponse: editAdResponseSchema,
5294
5452
  EditArticleRequest: editArticleRequestSchema,
@@ -5346,6 +5504,7 @@ const schemas = {
5346
5504
  GetVenueResponse: getVenueResponseSchema,
5347
5505
  GetWebsitePagesResponse: getWebsitePagesResponseSchema,
5348
5506
  GoogleAdsAssetFamily: googleAdsAssetFamilySchema,
5507
+ GuestTier: guestTierSchema,
5349
5508
  IntegrationNotificationType: integrationNotificationTypeSchema,
5350
5509
  IntegrationType: integrationTypeSchema,
5351
5510
  InventoryAssetStatus: inventoryAssetStatusSchema,
@@ -5354,6 +5513,7 @@ const schemas = {
5354
5513
  JoinTeamOrderRequest: joinTeamOrderRequestSchema,
5355
5514
  JoinTeamOrderResponse: joinTeamOrderResponseSchema,
5356
5515
  Jurisdiction: jurisdictionSchema,
5516
+ KeywordDefaultScope: keywordDefaultScopeSchema,
5357
5517
  KeywordPolarity: keywordPolaritySchema,
5358
5518
  Locale: localeSchema,
5359
5519
  MakeReservationRequest: makeReservationRequestSchema,
@@ -5363,10 +5523,17 @@ const schemas = {
5363
5523
  MentionType: mentionTypeSchema,
5364
5524
  MenuItemMarker: menuItemMarkerSchema,
5365
5525
  MenuItemType: menuItemTypeSchema,
5526
+ MetaCallToAction: metaCallToActionSchema,
5527
+ MetaChannel: metaChannelSchema,
5528
+ MetaInsightsDatePreset: metaInsightsDatePresetSchema,
5529
+ MetaIntegrationStatus: metaIntegrationStatusSchema,
5530
+ MetaServingTargetStatus: metaServingTargetStatusSchema,
5366
5531
  OccupancyReason: occupancyReasonSchema,
5367
5532
  OgImage: ogImageSchema,
5368
5533
  OrderStatus: orderStatusSchema,
5534
+ Orientation: orientationSchema,
5369
5535
  ParticipantStatus: participantStatusSchema,
5536
+ PartyType: partyTypeSchema,
5370
5537
  PatchArticleFeatureImageBody: patchArticleFeatureImageBodySchema,
5371
5538
  PaxBand: paxBandSchema,
5372
5539
  PaymentMethod: paymentMethodSchema,
@@ -5375,6 +5542,11 @@ const schemas = {
5375
5542
  PlaceOrderRequest: placeOrderRequestSchema,
5376
5543
  PlaceOrderResponse: placeOrderResponseSchema,
5377
5544
  PlatformRole: platformRoleSchema,
5545
+ PositionCenter: positionCenterSchema,
5546
+ PositionCorner: positionCornerSchema,
5547
+ PositionEdge: positionEdgeSchema,
5548
+ Position: positionSchema,
5549
+ PositionY: positionYSchema,
5378
5550
  PromotionBenefitType: promotionBenefitTypeSchema,
5379
5551
  PublicationEventType: publicationEventTypeSchema,
5380
5552
  PublicationFrameStyle: publicationFrameStyleSchema,
@@ -5397,6 +5569,8 @@ const schemas = {
5397
5569
  RemoveFromBasketResponse: removeFromBasketResponseSchema,
5398
5570
  RenderMenuPublicationPdfRequest: renderMenuPublicationPdfRequestSchema,
5399
5571
  RenderMenuPublicationPdfResponse: renderMenuPublicationPdfResponseSchema,
5572
+ RequestContactEmailChangeOutcome: requestContactEmailChangeOutcomeSchema,
5573
+ ReservationDeclineReason: reservationDeclineReasonSchema,
5400
5574
  ReservationMessageStatus: reservationMessageStatusSchema,
5401
5575
  ReservationMode: reservationModeSchema,
5402
5576
  ReservationPromotionStatus: reservationPromotionStatusSchema,
@@ -5412,7 +5586,10 @@ const schemas = {
5412
5586
  SaveAdWebsitePagesRequest: saveAdWebsitePagesRequestSchema,
5413
5587
  SaveAdWebsitePagesResponse: saveAdWebsitePagesResponseSchema,
5414
5588
  ScanTokenEntityType: scanTokenEntityTypeSchema,
5589
+ ScheduleOverrideMode: scheduleOverrideModeSchema,
5415
5590
  Schedule: scheduleSchema,
5591
+ ServedMarketAreaType: servedMarketAreaTypeSchema,
5592
+ ServedMarketScope: servedMarketScopeSchema,
5416
5593
  SetAdBudgetRequest: setAdBudgetRequestSchema,
5417
5594
  SetAdBudgetResponse: setAdBudgetResponseSchema,
5418
5595
  SetArticleFeatureImageUploadBody: setArticleFeatureImageUploadBodySchema,
@@ -5443,6 +5620,7 @@ const schemas = {
5443
5620
  SwitchFulfillmentTeamOrderResponse: switchFulfillmentTeamOrderResponseSchema,
5444
5621
  TeamOrderPaymentStatus: teamOrderPaymentStatusSchema,
5445
5622
  TeamOrderStatus: teamOrderStatusSchema,
5623
+ TeamOrderThresholdConstraint: teamOrderThresholdConstraintSchema,
5446
5624
  Unit: unitSchema,
5447
5625
  UpdateCalloutRequest: updateCalloutRequestSchema,
5448
5626
  UpdateCalloutResponse: updateCalloutResponseSchema,
@@ -5451,12 +5629,14 @@ const schemas = {
5451
5629
  UpdateWebsitePageRequest: updateWebsitePageRequestSchema,
5452
5630
  UpdateWebsitePageResponse: updateWebsitePageResponseSchema,
5453
5631
  UploadAssetResponse: uploadAssetResponseSchema,
5632
+ Variant: variantSchema,
5454
5633
  VenueAssetType: venueAssetTypeSchema,
5455
5634
  VenueChargeType: venueChargeTypeSchema,
5456
5635
  VenueEmailSenderStatus: venueEmailSenderStatusSchema,
5457
5636
  VenueType: venueTypeSchema,
5458
5637
  VenueUserStatus: venueUserStatusSchema,
5459
- WebsitePageOwnerType: websitePageOwnerTypeSchema
5638
+ WebsitePageOwnerType: websitePageOwnerTypeSchema,
5639
+ WizardKey: wizardKeySchema
5460
5640
  };
5461
5641
 
5462
5642
  export { schemas };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "order3000",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "description": "order3000 node.js sdk",
5
5
  "main": "./dist/client.cjs",
6
6
  "module": "./dist/client.mjs",
@@ -67,8 +67,8 @@
67
67
  "prettier": "^3.7.4",
68
68
  "tsx": "^4.19.2",
69
69
  "typescript": "^5.9.3",
70
- "@kolaveri/eslint-config": "1.12.0",
71
70
  "@kolaveri/prettier-config": "1.0.6",
71
+ "@kolaveri/eslint-config": "1.14.0",
72
72
  "@kolaveri/tsconfig": "1.0.1"
73
73
  },
74
74
  "files": [