@ventrata/octo-types 0.0.2 → 0.0.3

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.
Files changed (70) hide show
  1. package/dist/index.d.ts +22 -2
  2. package/dist/models/{Octo_AvailabilityCalendar.d.ts → AvailabilityCalendar.d.ts} +37 -7
  3. package/dist/models/AvailabilityCalendarOffers.d.ts +19 -0
  4. package/dist/models/AvailabilityCalendarPricing.d.ts +12 -0
  5. package/dist/models/AvailabilityUpdate.d.ts +25 -0
  6. package/dist/models/BookingUpdate.d.ts +19 -0
  7. package/dist/models/CreateWebhookBody.d.ts +35 -0
  8. package/dist/models/CreateWebhookRequest.d.ts +4 -0
  9. package/dist/models/CreateWebhookRequestHeaders_octoCapabilities.d.ts +4 -0
  10. package/dist/models/Diff.d.ts +18 -0
  11. package/dist/models/ListWebhooksRequest.d.ts +1 -0
  12. package/dist/models/ListWebhooksRequestHeaders_octoCapabilities.d.ts +4 -0
  13. package/dist/models/OptionRestrictions.d.ts +1 -1
  14. package/dist/models/PricingUnit.d.ts +2 -0
  15. package/dist/models/Webhook.d.ts +1 -1
  16. package/dist/schemas/Availability.d.ts +5 -0
  17. package/dist/schemas/AvailabilityCalendar.d.ts +726 -0
  18. package/dist/schemas/AvailabilityCalendarOffers.d.ts +171 -0
  19. package/dist/schemas/AvailabilityCalendarPricing.d.ts +491 -0
  20. package/dist/schemas/AvailabilityPricing.d.ts +5 -0
  21. package/dist/schemas/AvailabilityUpdate.d.ts +1768 -0
  22. package/dist/schemas/BookingConfirmationBody.d.ts +4 -4
  23. package/dist/schemas/BookingConfirmationRequest.d.ts +6 -6
  24. package/dist/schemas/BookingExtras.d.ts +8 -8
  25. package/dist/schemas/BookingOffers.d.ts +10 -10
  26. package/dist/schemas/BookingReservationBody.d.ts +4 -4
  27. package/dist/schemas/BookingReservationRequest.d.ts +6 -6
  28. package/dist/schemas/BookingUpdate.d.ts +575 -0
  29. package/dist/schemas/BookingUpdateBody.d.ts +4 -4
  30. package/dist/schemas/BookingUpdateRequest.d.ts +6 -6
  31. package/dist/schemas/Brand.d.ts +4 -4
  32. package/dist/schemas/BrandContact.d.ts +2 -2
  33. package/dist/schemas/CreateWaitlistRequest.d.ts +2 -2
  34. package/dist/schemas/CreateWebhookBody.d.ts +23 -0
  35. package/dist/schemas/CreateWebhookRequest.d.ts +43 -0
  36. package/dist/schemas/CreateWebhookRequestHeaders_octoCapabilities.d.ts +2 -0
  37. package/dist/schemas/Destination.d.ts +4 -4
  38. package/dist/schemas/DestinationContact.d.ts +2 -2
  39. package/dist/schemas/Diff.d.ts +17 -0
  40. package/dist/schemas/Extra.d.ts +4 -4
  41. package/dist/schemas/ExtraItem.d.ts +6 -6
  42. package/dist/schemas/ExtraRestrictions.d.ts +2 -2
  43. package/dist/schemas/GetBookingsRequest.d.ts +2 -2
  44. package/dist/schemas/Gift.d.ts +2 -2
  45. package/dist/schemas/ListWebhooksRequest.d.ts +2 -0
  46. package/dist/schemas/ListWebhooksRequestHeaders_octoCapabilities.d.ts +2 -0
  47. package/dist/schemas/Octo_AvailabilityCalendar.d.ts +12 -12
  48. package/dist/schemas/Octo_GetBookingsRequest.d.ts +2 -2
  49. package/dist/schemas/Octo_Media.d.ts +2 -2
  50. package/dist/schemas/OfferCombination.d.ts +8 -8
  51. package/dist/schemas/OfferComparison.d.ts +8 -8
  52. package/dist/schemas/OptionExtras.d.ts +6 -6
  53. package/dist/schemas/OptionRestrictions.d.ts +3 -3
  54. package/dist/schemas/Order.d.ts +10 -10
  55. package/dist/schemas/OrderOffers.d.ts +10 -10
  56. package/dist/schemas/PartnersListConnection.d.ts +20 -20
  57. package/dist/schemas/PricingUnit.d.ts +3 -0
  58. package/dist/schemas/ProductContent.d.ts +14 -14
  59. package/dist/schemas/Supplier.d.ts +14 -14
  60. package/dist/schemas/SupplierContact.d.ts +2 -2
  61. package/dist/schemas/SupplierContent.d.ts +6 -6
  62. package/dist/schemas/Unit.d.ts +6 -6
  63. package/dist/schemas/UnitExtras.d.ts +6 -6
  64. package/dist/schemas/UnitItem.d.ts +14 -14
  65. package/dist/schemas/UnitItemIdentifier.d.ts +2 -2
  66. package/dist/schemas/Waitlist.d.ts +2 -2
  67. package/dist/schemas/Webhook.d.ts +3 -3
  68. package/dist/schemas/WhoIAm.d.ts +32 -32
  69. package/package.json +2 -2
  70. package/dist/models/Octo_OpeningHours.d.ts +0 -13
package/dist/index.d.ts CHANGED
@@ -2,8 +2,11 @@ export { AdjustmentDiscount } from './models/AdjustmentDiscount';
2
2
  export { AdjustmentPer } from './models/AdjustmentPer';
3
3
  export type { Agent } from './models/Agent';
4
4
  export type { Availability } from './models/Availability';
5
+ export type { AvailabilityCalendar } from './models/AvailabilityCalendar';
5
6
  export type { AvailabilityCalendarBody } from './models/AvailabilityCalendarBody';
6
7
  export type { AvailabilityCalendarErrorResponse } from './models/AvailabilityCalendarErrorResponse';
8
+ export type { AvailabilityCalendarOffers } from './models/AvailabilityCalendarOffers';
9
+ export type { AvailabilityCalendarPricing } from './models/AvailabilityCalendarPricing';
7
10
  export type { AvailabilityCalendarRequest } from './models/AvailabilityCalendarRequest';
8
11
  export type { AvailabilityCheckBody } from './models/AvailabilityCheckBody';
9
12
  export type { AvailabilityCheckErrorResponse } from './models/AvailabilityCheckErrorResponse';
@@ -15,6 +18,7 @@ export type { AvailabilityPricing } from './models/AvailabilityPricing';
15
18
  export { AvailabilityStatus } from './models/AvailabilityStatus';
16
19
  export { AvailabilityType } from './models/AvailabilityType';
17
20
  export type { AvailabilityUnit } from './models/AvailabilityUnit';
21
+ export type { AvailabilityUpdate } from './models/AvailabilityUpdate';
18
22
  export type { Booking } from './models/Booking';
19
23
  export type { BookingAdjustment } from './models/BookingAdjustment';
20
24
  export type { BookingAdjustments } from './models/BookingAdjustments';
@@ -42,6 +46,7 @@ export type { BookingReservationErrorResponse } from './models/BookingReservatio
42
46
  export type { BookingReservationRequest } from './models/BookingReservationRequest';
43
47
  export type { BookingResources } from './models/BookingResources';
44
48
  export { BookingStatus } from './models/BookingStatus';
49
+ export type { BookingUpdate } from './models/BookingUpdate';
45
50
  export type { BookingUpdateBody } from './models/BookingUpdateBody';
46
51
  export type { BookingUpdateRequest } from './models/BookingUpdateRequest';
47
52
  export type { Brand } from './models/Brand';
@@ -51,6 +56,9 @@ export { Capability } from './models/Capability';
51
56
  export type { Category } from './models/Category';
52
57
  export { ContactField } from './models/ContactField';
53
58
  export type { CreateWaitlistRequest } from './models/CreateWaitlistRequest';
59
+ export type { CreateWebhookBody } from './models/CreateWebhookBody';
60
+ export type { CreateWebhookRequest } from './models/CreateWebhookRequest';
61
+ export type { CreateWebhookRequestHeaders_octoCapabilities } from './models/CreateWebhookRequestHeaders_octoCapabilities';
54
62
  export type { CustomerContact } from './models/CustomerContact';
55
63
  export type { DefaultableID } from './models/DefaultableID';
56
64
  export { DeliveryFormat } from './models/DeliveryFormat';
@@ -58,6 +66,7 @@ export { DeliveryMethod } from './models/DeliveryMethod';
58
66
  export type { DeliveryOption } from './models/DeliveryOption';
59
67
  export type { Destination } from './models/Destination';
60
68
  export type { DestinationContact } from './models/DestinationContact';
69
+ export type { Diff } from './models/Diff';
61
70
  export { DurationUnit } from './models/DurationUnit';
62
71
  export type { ExtendReservationBody } from './models/ExtendReservationBody';
63
72
  export type { ExtendReservationErrorResponse } from './models/ExtendReservationErrorResponse';
@@ -94,12 +103,13 @@ export type { ItineraryItem } from './models/ItineraryItem';
94
103
  export { ItineraryItemType } from './models/ItineraryItemType';
95
104
  export type { Label } from './models/Label';
96
105
  export type { ListOrdersRequest } from './models/ListOrdersRequest';
106
+ export type { ListWebhooksRequest } from './models/ListWebhooksRequest';
107
+ export type { ListWebhooksRequestHeaders_octoCapabilities } from './models/ListWebhooksRequestHeaders_octoCapabilities';
97
108
  export type { Mapping } from './models/Mapping';
98
109
  export { MediaRel } from './models/MediaRel';
99
110
  export { MediaType } from './models/MediaType';
100
111
  export { NetDiscount } from './models/NetDiscount';
101
112
  export type { Notice } from './models/Notice';
102
- export type { Octo_AvailabilityCalendar } from './models/Octo_AvailabilityCalendar';
103
113
  export type { Octo_AvailabilityCalendarErrorResponse } from './models/Octo_AvailabilityCalendarErrorResponse';
104
114
  export type { Octo_AvailabilityCheckErrorResponse } from './models/Octo_AvailabilityCheckErrorResponse';
105
115
  export type { Octo_BaseError } from './models/Octo_BaseError';
@@ -138,7 +148,6 @@ export type { Octo_GetProductRequest_id } from './models/Octo_GetProductRequest_
138
148
  export type { Octo_GetProductsRequest } from './models/Octo_GetProductsRequest';
139
149
  export type { Octo_GetSupplierRequest } from './models/Octo_GetSupplierRequest';
140
150
  export type { Octo_Media } from './models/Octo_Media';
141
- export type { Octo_OpeningHours } from './models/Octo_OpeningHours';
142
151
  export type { Octo_Pricing } from './models/Octo_Pricing';
143
152
  export type { Octo_PricingUnit } from './models/Octo_PricingUnit';
144
153
  export type { Octo_RequestHeaders } from './models/Octo_RequestHeaders';
@@ -374,6 +383,8 @@ export { netDiscountSchema } from './schemas/NetDiscount';
374
383
  export { mediaTypeSchema } from './schemas/MediaType';
375
384
  export { mediaRelSchema } from './schemas/MediaRel';
376
385
  export { mappingSchema } from './schemas/Mapping';
386
+ export { listWebhooksRequestHeaders_octoCapabilitiesSchema } from './schemas/ListWebhooksRequestHeaders_octoCapabilities';
387
+ export { listWebhooksRequestSchema } from './schemas/ListWebhooksRequest';
377
388
  export { listOrdersRequestSchema } from './schemas/ListOrdersRequest';
378
389
  export { labelSchema } from './schemas/Label';
379
390
  export { itineraryItemTypeSchema } from './schemas/ItineraryItemType';
@@ -411,6 +422,7 @@ export { extendReservationRequestSchema } from './schemas/ExtendReservationReque
411
422
  export { extendReservationErrorResponseSchema } from './schemas/ExtendReservationErrorResponse';
412
423
  export { extendReservationBodySchema } from './schemas/ExtendReservationBody';
413
424
  export { durationUnitSchema } from './schemas/DurationUnit';
425
+ export { diffSchema } from './schemas/Diff';
414
426
  export { destinationContactSchema } from './schemas/DestinationContact';
415
427
  export { destinationSchema } from './schemas/Destination';
416
428
  export { deliveryOptionSchema } from './schemas/DeliveryOption';
@@ -418,6 +430,9 @@ export { deliveryMethodSchema } from './schemas/DeliveryMethod';
418
430
  export { deliveryFormatSchema } from './schemas/DeliveryFormat';
419
431
  export { defaultableIDSchema } from './schemas/DefaultableID';
420
432
  export { customerContactSchema } from './schemas/CustomerContact';
433
+ export { createWebhookRequestHeaders_octoCapabilitiesSchema } from './schemas/CreateWebhookRequestHeaders_octoCapabilities';
434
+ export { createWebhookRequestSchema } from './schemas/CreateWebhookRequest';
435
+ export { createWebhookBodySchema } from './schemas/CreateWebhookBody';
421
436
  export { createWaitlistRequestSchema } from './schemas/CreateWaitlistRequest';
422
437
  export { contactFieldSchema } from './schemas/ContactField';
423
438
  export { categorySchema } from './schemas/Category';
@@ -427,6 +442,7 @@ export { brandContactSchema } from './schemas/BrandContact';
427
442
  export { brandSchema } from './schemas/Brand';
428
443
  export { bookingUpdateRequestSchema } from './schemas/BookingUpdateRequest';
429
444
  export { bookingUpdateBodySchema } from './schemas/BookingUpdateBody';
445
+ export { bookingUpdateSchema } from './schemas/BookingUpdate';
430
446
  export { bookingStatusSchema } from './schemas/BookingStatus';
431
447
  export { bookingResourcesSchema } from './schemas/BookingResources';
432
448
  export { bookingReservationRequestSchema } from './schemas/BookingReservationRequest';
@@ -454,6 +470,7 @@ export { bookingCancellationBodySchema } from './schemas/BookingCancellationBody
454
470
  export { bookingCancellationSchema } from './schemas/BookingCancellation';
455
471
  export { bookingAdjustmentsSchema } from './schemas/BookingAdjustments';
456
472
  export { bookingAdjustmentSchema } from './schemas/BookingAdjustment';
473
+ export { availabilityUpdateSchema } from './schemas/AvailabilityUpdate';
457
474
  export { availabilityUnitSchema } from './schemas/AvailabilityUnit';
458
475
  export { availabilityTypeSchema } from './schemas/AvailabilityType';
459
476
  export { availabilityStatusSchema } from './schemas/AvailabilityStatus';
@@ -465,8 +482,11 @@ export { availabilityCheckRequestSchema } from './schemas/AvailabilityCheckReque
465
482
  export { availabilityCheckErrorResponseSchema } from './schemas/AvailabilityCheckErrorResponse';
466
483
  export { availabilityCheckBodySchema } from './schemas/AvailabilityCheckBody';
467
484
  export { availabilityCalendarRequestSchema } from './schemas/AvailabilityCalendarRequest';
485
+ export { availabilityCalendarPricingSchema } from './schemas/AvailabilityCalendarPricing';
486
+ export { availabilityCalendarOffersSchema } from './schemas/AvailabilityCalendarOffers';
468
487
  export { availabilityCalendarErrorResponseSchema } from './schemas/AvailabilityCalendarErrorResponse';
469
488
  export { availabilityCalendarBodySchema } from './schemas/AvailabilityCalendarBody';
489
+ export { availabilityCalendarSchema } from './schemas/AvailabilityCalendar';
470
490
  export { availabilitySchema } from './schemas/Availability';
471
491
  export { agentSchema } from './schemas/Agent';
472
492
  export { adjustmentPerSchema } from './schemas/AdjustmentPer';
@@ -1,8 +1,9 @@
1
1
  import type { AvailabilityStatus } from './AvailabilityStatus';
2
- import type { Octo_OpeningHours } from './Octo_OpeningHours';
3
- import type { Octo_Pricing } from './Octo_Pricing';
4
- import type { Octo_PricingUnit } from './Octo_PricingUnit';
5
- export type Octo_AvailabilityCalendar = {
2
+ import type { Offer } from './Offer';
3
+ import type { OpeningHours } from './OpeningHours';
4
+ import type { Pricing } from './Pricing';
5
+ import type { PricingUnit } from './PricingUnit';
6
+ export type AvailabilityCalendar = {
6
7
  /**
7
8
  * The specific date for querying availability on Availability Calendar endpoint. This field must follow the ISO 8601 date format (e.g., 2024-11-18). It ensures standardized representation of dates across different systems.
8
9
  */
@@ -33,13 +34,42 @@ export type Octo_AvailabilityCalendar = {
33
34
  /**
34
35
  * Defines the opening hours for this availability, even for start time-based availability. Supports multiple periods for breaks in the day.
35
36
  */
36
- openingHours: Array<Octo_OpeningHours>;
37
+ openingHours: Array<OpeningHours>;
38
+ limitCapacity: number | null;
39
+ totalCapacity: number | null;
40
+ limitPaxCount: number;
41
+ totalPaxCount: number;
42
+ paxCount: number;
43
+ /**
44
+ * The time by which the booking must be confirmed at
45
+ */
46
+ utcCutoffAt: string;
47
+ /**
48
+ * List of local start times for the availability.
49
+ */
50
+ availabilityLocalStartTimes: Array<string>;
37
51
  /**
38
52
  * Is on the object when Pricing capability is requested.
39
53
  */
40
- unitPricingFrom?: Array<Octo_PricingUnit>;
54
+ unitPricingFrom?: Array<PricingUnit>;
41
55
  /**
42
56
  * Is on the object when Pricing capability is requested.
43
57
  */
44
- pricingFrom?: Array<Octo_Pricing>;
58
+ pricingFrom?: Array<Pricing>;
59
+ /**
60
+ * Optional code used to apply a specific offer.
61
+ */
62
+ offerCode?: string | null;
63
+ /**
64
+ * Optional display title of the offer.
65
+ */
66
+ offerTitle?: string | null;
67
+ /**
68
+ * List of available offers for the availability.
69
+ */
70
+ offers?: Array<Offer>;
71
+ /**
72
+ * Best or selected offer for this availability.
73
+ */
74
+ offer?: Offer | null;
45
75
  };
@@ -0,0 +1,19 @@
1
+ import type { Offer } from './Offer';
2
+ export type AvailabilityCalendarOffers = {
3
+ /**
4
+ * Optional code used to apply a specific offer.
5
+ */
6
+ offerCode?: string | null;
7
+ /**
8
+ * Optional display title of the offer.
9
+ */
10
+ offerTitle?: string | null;
11
+ /**
12
+ * List of available offers for the availability.
13
+ */
14
+ offers?: Array<Offer>;
15
+ /**
16
+ * Best or selected offer for this availability.
17
+ */
18
+ offer?: Offer | null;
19
+ };
@@ -0,0 +1,12 @@
1
+ import type { Pricing } from './Pricing';
2
+ import type { PricingUnit } from './PricingUnit';
3
+ export type AvailabilityCalendarPricing = {
4
+ /**
5
+ * Is on the object when Pricing capability is requested.
6
+ */
7
+ unitPricingFrom?: Array<PricingUnit>;
8
+ /**
9
+ * Is on the object when Pricing capability is requested.
10
+ */
11
+ pricingFrom?: Array<Pricing>;
12
+ };
@@ -0,0 +1,25 @@
1
+ import type { Availability } from './Availability';
2
+ import type { Supplier } from './Supplier';
3
+ import type { Webhook } from './Webhook';
4
+ export type AvailabilityUpdate = {
5
+ /**
6
+ * Webhook metadata for this availability update.
7
+ */
8
+ webhook: Webhook;
9
+ /**
10
+ * The updated availability block.
11
+ */
12
+ availability: Availability;
13
+ /**
14
+ * ID of the product the availability belongs to.
15
+ */
16
+ productId: string;
17
+ /**
18
+ * ID of the option the availability belongs to.
19
+ */
20
+ optionId: string;
21
+ /**
22
+ * The supplier associated with the availability.
23
+ */
24
+ supplier: Supplier;
25
+ };
@@ -0,0 +1,19 @@
1
+ import type { Booking } from './Booking';
2
+ import type { Diff } from './Diff';
3
+ import type { Supplier } from './Supplier';
4
+ import type { Webhook } from './Webhook';
5
+ export type BookingUpdate = {
6
+ /**
7
+ * Webhook metadata for this update.
8
+ */
9
+ webhook: Webhook;
10
+ /**
11
+ * Current state of the booking.
12
+ */
13
+ booking: Booking;
14
+ /**
15
+ * List of changes between previous and current state.
16
+ */
17
+ diff: Array<Diff>;
18
+ supplier: Supplier;
19
+ };
@@ -0,0 +1,35 @@
1
+ import type { Capability } from './Capability';
2
+ import type { WebhookEvent } from './WebhookEvent';
3
+ export type CreateWebhookBody = {
4
+ /**
5
+ * A fully formed URL. If you want to include basic authentication credentials that is supported also. For example:
6
+ *
7
+ * https://user:pass@example.com/webook
8
+ * https://example.com/webhook
9
+ */
10
+ url: string;
11
+ /**
12
+ * The event that will trigger the webhook. Possible values are:
13
+ *
14
+ * booking_update triggered when an existing booking is confirmed, updated or cancelled.
15
+ *
16
+ * availability_update triggered when an availability changes.
17
+ */
18
+ event: WebhookEvent;
19
+ /**
20
+ * Whether the webhook should be retried if the HTTP endpoint doesn't return a success status (200 to 299), default is true.
21
+ */
22
+ retryOnError?: boolean;
23
+ /**
24
+ * Whether the webhook event should attempt to use the language configured by the guest when they booked. This makes sure the data in the webhook body is in the guest's language, default is true.
25
+ */
26
+ useContactLanguage?: boolean;
27
+ /**
28
+ * A object of headers to be used on each webhook request. This can be useful to keep your endpoint secure.
29
+ */
30
+ headers?: Record<string, string>;
31
+ /**
32
+ * A list of capabilities that will be activated before triggering the webhook which will affect the data included in the webhook body.
33
+ */
34
+ capabilities?: Array<Capability>;
35
+ };
@@ -0,0 +1,4 @@
1
+ import type { CreateWebhookBody } from './CreateWebhookBody';
2
+ export type CreateWebhookRequest = {
3
+ body: CreateWebhookBody;
4
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * A list of the Capabilities (their IDs) initialized with your request. ventrata/getyourguide capability is required
3
+ */
4
+ export type CreateWebhookRequestHeaders_octoCapabilities = string;
@@ -0,0 +1,18 @@
1
+ export type Diff = {
2
+ /**
3
+ * The operation type (e.g., replace, add, remove).
4
+ */
5
+ op: string;
6
+ /**
7
+ * The JSON path to the modified value.
8
+ */
9
+ path: string;
10
+ /**
11
+ * The original value before the change.
12
+ */
13
+ was: string;
14
+ /**
15
+ * The new value after the change.
16
+ */
17
+ value: string;
18
+ };
@@ -0,0 +1 @@
1
+ export type ListWebhooksRequest = Record<string, any>;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * A list of the Capabilities (their IDs) initialized with your request. ventrata/getyourguide capability is required
3
+ */
4
+ export type ListWebhooksRequestHeaders_octoCapabilities = string;
@@ -2,7 +2,7 @@ export type OptionRestrictions = {
2
2
  /**
3
3
  * The minimum number of units (tickets) that can be purchased in a single booking. A null value indicates no minimum.
4
4
  */
5
- minUnits: number | null;
5
+ minUnits: number;
6
6
  /**
7
7
  * The maximum number of units (tickets) that can be purchased in a single booking. A null value indicates no maximum.
8
8
  */
@@ -1,5 +1,6 @@
1
1
  import type { Pricing } from './Pricing';
2
2
  import type { Tax } from './Tax';
3
+ import type { UnitType } from './UnitType';
3
4
  export type PricingUnit = {
4
5
  /**
5
6
  * Represents the advertised marketing price, which must be equal to or higher than pricingFrom.retail. Typically used for strike-through pricing, it highlights the original or component-based value of the product when the retail price reflects a discount or bundled offer. For example, a package product combining multiple components (e.g., hotel + tour + meals) may have a total component value of $500 (original), while the bundled retail price is $400. In such cases, the original price is displayed to show savings.This field should only be shown when it is higher than pricingFrom.retail and must accurately reflect a valid reference price, ensuring transparency and trust.
@@ -29,5 +30,6 @@ export type PricingUnit = {
29
30
  * ID of the unit this pricing is related to
30
31
  */
31
32
  unitId: string;
33
+ unitType: UnitType;
32
34
  extraPricing?: Array<Pricing>;
33
35
  };
@@ -12,7 +12,7 @@ export type Webhook = {
12
12
  /**
13
13
  * Target URL where the webhook payload is sent.
14
14
  */
15
- url?: string;
15
+ url: string | null;
16
16
  /**
17
17
  * Whether to retry delivery if an error occurs.
18
18
  */
@@ -114,6 +114,7 @@ export declare const availabilitySchema: z.ZodObject<{
114
114
  shortDescription: string | null;
115
115
  }>, "many">;
116
116
  unitId: z.ZodString;
117
+ unitType: z.ZodNativeEnum<typeof import("..").UnitType>;
117
118
  extraPricing: z.ZodOptional<z.ZodArray<z.ZodObject<{
118
119
  original: z.ZodNumber;
119
120
  retail: z.ZodNumber;
@@ -248,6 +249,7 @@ export declare const availabilitySchema: z.ZodObject<{
248
249
  currency: string;
249
250
  currencyPrecision: number;
250
251
  unitId: string;
252
+ unitType: import("..").UnitType;
251
253
  extraPricing?: {
252
254
  retail: number;
253
255
  original: number;
@@ -288,6 +290,7 @@ export declare const availabilitySchema: z.ZodObject<{
288
290
  currency: string;
289
291
  currencyPrecision: number;
290
292
  unitId: string;
293
+ unitType: import("..").UnitType;
291
294
  extraPricing?: {
292
295
  retail: number;
293
296
  original: number;
@@ -634,6 +637,7 @@ export declare const availabilitySchema: z.ZodObject<{
634
637
  currency: string;
635
638
  currencyPrecision: number;
636
639
  unitId: string;
640
+ unitType: import("..").UnitType;
637
641
  extraPricing?: {
638
642
  retail: number;
639
643
  original: number;
@@ -792,6 +796,7 @@ export declare const availabilitySchema: z.ZodObject<{
792
796
  currency: string;
793
797
  currencyPrecision: number;
794
798
  unitId: string;
799
+ unitType: import("..").UnitType;
795
800
  extraPricing?: {
796
801
  retail: number;
797
802
  original: number;