@ventrata/octo-types 0.0.2 → 0.0.4
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/index.d.ts +28 -2
- package/dist/models/{Octo_AvailabilityCalendar.d.ts → AvailabilityCalendar.d.ts} +37 -7
- package/dist/models/AvailabilityCalendarOffers.d.ts +19 -0
- package/dist/models/AvailabilityCalendarPricing.d.ts +12 -0
- package/dist/models/AvailabilityUpdate.d.ts +25 -0
- package/dist/models/BookingUpdate.d.ts +19 -0
- package/dist/models/CreateWebhookBody.d.ts +35 -0
- package/dist/models/CreateWebhookRequest.d.ts +4 -0
- package/dist/models/CreateWebhookRequestHeaders_octoCapabilities.d.ts +4 -0
- package/dist/models/DeleteWebhookPathParams.d.ts +6 -0
- package/dist/models/DeleteWebhookRequestHeaders_octoCapabilities.d.ts +4 -0
- package/dist/models/DeleteWebhookRequest_id.d.ts +4 -0
- package/dist/models/Diff.d.ts +18 -0
- package/dist/models/ListWebhooksRequest.d.ts +1 -0
- package/dist/models/ListWebhooksRequestHeaders_octoCapabilities.d.ts +4 -0
- package/dist/models/OptionRestrictions.d.ts +1 -1
- package/dist/models/PricingUnit.d.ts +2 -0
- package/dist/models/Webhook.d.ts +1 -1
- package/dist/schemas/Availability.d.ts +5 -0
- package/dist/schemas/AvailabilityCalendar.d.ts +726 -0
- package/dist/schemas/AvailabilityCalendarOffers.d.ts +171 -0
- package/dist/schemas/AvailabilityCalendarPricing.d.ts +491 -0
- package/dist/schemas/AvailabilityPricing.d.ts +5 -0
- package/dist/schemas/AvailabilityUpdate.d.ts +1768 -0
- package/dist/schemas/BookingConfirmationBody.d.ts +4 -4
- package/dist/schemas/BookingConfirmationRequest.d.ts +6 -6
- package/dist/schemas/BookingExtras.d.ts +8 -8
- package/dist/schemas/BookingOffers.d.ts +10 -10
- package/dist/schemas/BookingReservationBody.d.ts +4 -4
- package/dist/schemas/BookingReservationRequest.d.ts +6 -6
- package/dist/schemas/BookingUpdate.d.ts +575 -0
- package/dist/schemas/BookingUpdateBody.d.ts +4 -4
- package/dist/schemas/BookingUpdateRequest.d.ts +6 -6
- package/dist/schemas/Brand.d.ts +4 -4
- package/dist/schemas/BrandContact.d.ts +2 -2
- package/dist/schemas/CreateWaitlistRequest.d.ts +2 -2
- package/dist/schemas/CreateWebhookBody.d.ts +23 -0
- package/dist/schemas/CreateWebhookRequest.d.ts +43 -0
- package/dist/schemas/CreateWebhookRequestHeaders_octoCapabilities.d.ts +2 -0
- package/dist/schemas/DeleteWebhookPathParams.d.ts +8 -0
- package/dist/schemas/DeleteWebhookRequestHeaders_octoCapabilities.d.ts +2 -0
- package/dist/schemas/DeleteWebhookRequest_id.d.ts +2 -0
- package/dist/schemas/Destination.d.ts +4 -4
- package/dist/schemas/DestinationContact.d.ts +2 -2
- package/dist/schemas/Diff.d.ts +17 -0
- package/dist/schemas/Extra.d.ts +4 -4
- package/dist/schemas/ExtraItem.d.ts +6 -6
- package/dist/schemas/ExtraRestrictions.d.ts +2 -2
- package/dist/schemas/GetBookingsRequest.d.ts +2 -2
- package/dist/schemas/Gift.d.ts +2 -2
- package/dist/schemas/ListWebhooksRequest.d.ts +2 -0
- package/dist/schemas/ListWebhooksRequestHeaders_octoCapabilities.d.ts +2 -0
- package/dist/schemas/Octo_AvailabilityCalendar.d.ts +12 -12
- package/dist/schemas/Octo_GetBookingsRequest.d.ts +2 -2
- package/dist/schemas/Octo_Media.d.ts +2 -2
- package/dist/schemas/OfferCombination.d.ts +8 -8
- package/dist/schemas/OfferComparison.d.ts +8 -8
- package/dist/schemas/OptionExtras.d.ts +6 -6
- package/dist/schemas/OptionRestrictions.d.ts +3 -3
- package/dist/schemas/Order.d.ts +10 -10
- package/dist/schemas/OrderOffers.d.ts +10 -10
- package/dist/schemas/PartnersListConnection.d.ts +20 -20
- package/dist/schemas/PricingUnit.d.ts +3 -0
- package/dist/schemas/ProductContent.d.ts +14 -14
- package/dist/schemas/Supplier.d.ts +14 -14
- package/dist/schemas/SupplierContact.d.ts +2 -2
- package/dist/schemas/SupplierContent.d.ts +6 -6
- package/dist/schemas/Unit.d.ts +6 -6
- package/dist/schemas/UnitExtras.d.ts +6 -6
- package/dist/schemas/UnitItem.d.ts +14 -14
- package/dist/schemas/UnitItemIdentifier.d.ts +2 -2
- package/dist/schemas/Waitlist.d.ts +2 -2
- package/dist/schemas/Webhook.d.ts +3 -3
- package/dist/schemas/WhoIAm.d.ts +32 -32
- package/package.json +2 -2
- 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,13 +56,20 @@ 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';
|
|
64
|
+
export type { DeleteWebhookPathParams } from './models/DeleteWebhookPathParams';
|
|
65
|
+
export type { DeleteWebhookRequest_id } from './models/DeleteWebhookRequest_id';
|
|
66
|
+
export type { DeleteWebhookRequestHeaders_octoCapabilities } from './models/DeleteWebhookRequestHeaders_octoCapabilities';
|
|
56
67
|
export { DeliveryFormat } from './models/DeliveryFormat';
|
|
57
68
|
export { DeliveryMethod } from './models/DeliveryMethod';
|
|
58
69
|
export type { DeliveryOption } from './models/DeliveryOption';
|
|
59
70
|
export type { Destination } from './models/Destination';
|
|
60
71
|
export type { DestinationContact } from './models/DestinationContact';
|
|
72
|
+
export type { Diff } from './models/Diff';
|
|
61
73
|
export { DurationUnit } from './models/DurationUnit';
|
|
62
74
|
export type { ExtendReservationBody } from './models/ExtendReservationBody';
|
|
63
75
|
export type { ExtendReservationErrorResponse } from './models/ExtendReservationErrorResponse';
|
|
@@ -94,12 +106,13 @@ export type { ItineraryItem } from './models/ItineraryItem';
|
|
|
94
106
|
export { ItineraryItemType } from './models/ItineraryItemType';
|
|
95
107
|
export type { Label } from './models/Label';
|
|
96
108
|
export type { ListOrdersRequest } from './models/ListOrdersRequest';
|
|
109
|
+
export type { ListWebhooksRequest } from './models/ListWebhooksRequest';
|
|
110
|
+
export type { ListWebhooksRequestHeaders_octoCapabilities } from './models/ListWebhooksRequestHeaders_octoCapabilities';
|
|
97
111
|
export type { Mapping } from './models/Mapping';
|
|
98
112
|
export { MediaRel } from './models/MediaRel';
|
|
99
113
|
export { MediaType } from './models/MediaType';
|
|
100
114
|
export { NetDiscount } from './models/NetDiscount';
|
|
101
115
|
export type { Notice } from './models/Notice';
|
|
102
|
-
export type { Octo_AvailabilityCalendar } from './models/Octo_AvailabilityCalendar';
|
|
103
116
|
export type { Octo_AvailabilityCalendarErrorResponse } from './models/Octo_AvailabilityCalendarErrorResponse';
|
|
104
117
|
export type { Octo_AvailabilityCheckErrorResponse } from './models/Octo_AvailabilityCheckErrorResponse';
|
|
105
118
|
export type { Octo_BaseError } from './models/Octo_BaseError';
|
|
@@ -138,7 +151,6 @@ export type { Octo_GetProductRequest_id } from './models/Octo_GetProductRequest_
|
|
|
138
151
|
export type { Octo_GetProductsRequest } from './models/Octo_GetProductsRequest';
|
|
139
152
|
export type { Octo_GetSupplierRequest } from './models/Octo_GetSupplierRequest';
|
|
140
153
|
export type { Octo_Media } from './models/Octo_Media';
|
|
141
|
-
export type { Octo_OpeningHours } from './models/Octo_OpeningHours';
|
|
142
154
|
export type { Octo_Pricing } from './models/Octo_Pricing';
|
|
143
155
|
export type { Octo_PricingUnit } from './models/Octo_PricingUnit';
|
|
144
156
|
export type { Octo_RequestHeaders } from './models/Octo_RequestHeaders';
|
|
@@ -374,6 +386,8 @@ export { netDiscountSchema } from './schemas/NetDiscount';
|
|
|
374
386
|
export { mediaTypeSchema } from './schemas/MediaType';
|
|
375
387
|
export { mediaRelSchema } from './schemas/MediaRel';
|
|
376
388
|
export { mappingSchema } from './schemas/Mapping';
|
|
389
|
+
export { listWebhooksRequestHeaders_octoCapabilitiesSchema } from './schemas/ListWebhooksRequestHeaders_octoCapabilities';
|
|
390
|
+
export { listWebhooksRequestSchema } from './schemas/ListWebhooksRequest';
|
|
377
391
|
export { listOrdersRequestSchema } from './schemas/ListOrdersRequest';
|
|
378
392
|
export { labelSchema } from './schemas/Label';
|
|
379
393
|
export { itineraryItemTypeSchema } from './schemas/ItineraryItemType';
|
|
@@ -411,13 +425,20 @@ export { extendReservationRequestSchema } from './schemas/ExtendReservationReque
|
|
|
411
425
|
export { extendReservationErrorResponseSchema } from './schemas/ExtendReservationErrorResponse';
|
|
412
426
|
export { extendReservationBodySchema } from './schemas/ExtendReservationBody';
|
|
413
427
|
export { durationUnitSchema } from './schemas/DurationUnit';
|
|
428
|
+
export { diffSchema } from './schemas/Diff';
|
|
414
429
|
export { destinationContactSchema } from './schemas/DestinationContact';
|
|
415
430
|
export { destinationSchema } from './schemas/Destination';
|
|
416
431
|
export { deliveryOptionSchema } from './schemas/DeliveryOption';
|
|
417
432
|
export { deliveryMethodSchema } from './schemas/DeliveryMethod';
|
|
418
433
|
export { deliveryFormatSchema } from './schemas/DeliveryFormat';
|
|
434
|
+
export { deleteWebhookRequest_idSchema } from './schemas/DeleteWebhookRequest_id';
|
|
435
|
+
export { deleteWebhookRequestHeaders_octoCapabilitiesSchema } from './schemas/DeleteWebhookRequestHeaders_octoCapabilities';
|
|
436
|
+
export { deleteWebhookPathParamsSchema } from './schemas/DeleteWebhookPathParams';
|
|
419
437
|
export { defaultableIDSchema } from './schemas/DefaultableID';
|
|
420
438
|
export { customerContactSchema } from './schemas/CustomerContact';
|
|
439
|
+
export { createWebhookRequestHeaders_octoCapabilitiesSchema } from './schemas/CreateWebhookRequestHeaders_octoCapabilities';
|
|
440
|
+
export { createWebhookRequestSchema } from './schemas/CreateWebhookRequest';
|
|
441
|
+
export { createWebhookBodySchema } from './schemas/CreateWebhookBody';
|
|
421
442
|
export { createWaitlistRequestSchema } from './schemas/CreateWaitlistRequest';
|
|
422
443
|
export { contactFieldSchema } from './schemas/ContactField';
|
|
423
444
|
export { categorySchema } from './schemas/Category';
|
|
@@ -427,6 +448,7 @@ export { brandContactSchema } from './schemas/BrandContact';
|
|
|
427
448
|
export { brandSchema } from './schemas/Brand';
|
|
428
449
|
export { bookingUpdateRequestSchema } from './schemas/BookingUpdateRequest';
|
|
429
450
|
export { bookingUpdateBodySchema } from './schemas/BookingUpdateBody';
|
|
451
|
+
export { bookingUpdateSchema } from './schemas/BookingUpdate';
|
|
430
452
|
export { bookingStatusSchema } from './schemas/BookingStatus';
|
|
431
453
|
export { bookingResourcesSchema } from './schemas/BookingResources';
|
|
432
454
|
export { bookingReservationRequestSchema } from './schemas/BookingReservationRequest';
|
|
@@ -454,6 +476,7 @@ export { bookingCancellationBodySchema } from './schemas/BookingCancellationBody
|
|
|
454
476
|
export { bookingCancellationSchema } from './schemas/BookingCancellation';
|
|
455
477
|
export { bookingAdjustmentsSchema } from './schemas/BookingAdjustments';
|
|
456
478
|
export { bookingAdjustmentSchema } from './schemas/BookingAdjustment';
|
|
479
|
+
export { availabilityUpdateSchema } from './schemas/AvailabilityUpdate';
|
|
457
480
|
export { availabilityUnitSchema } from './schemas/AvailabilityUnit';
|
|
458
481
|
export { availabilityTypeSchema } from './schemas/AvailabilityType';
|
|
459
482
|
export { availabilityStatusSchema } from './schemas/AvailabilityStatus';
|
|
@@ -465,8 +488,11 @@ export { availabilityCheckRequestSchema } from './schemas/AvailabilityCheckReque
|
|
|
465
488
|
export { availabilityCheckErrorResponseSchema } from './schemas/AvailabilityCheckErrorResponse';
|
|
466
489
|
export { availabilityCheckBodySchema } from './schemas/AvailabilityCheckBody';
|
|
467
490
|
export { availabilityCalendarRequestSchema } from './schemas/AvailabilityCalendarRequest';
|
|
491
|
+
export { availabilityCalendarPricingSchema } from './schemas/AvailabilityCalendarPricing';
|
|
492
|
+
export { availabilityCalendarOffersSchema } from './schemas/AvailabilityCalendarOffers';
|
|
468
493
|
export { availabilityCalendarErrorResponseSchema } from './schemas/AvailabilityCalendarErrorResponse';
|
|
469
494
|
export { availabilityCalendarBodySchema } from './schemas/AvailabilityCalendarBody';
|
|
495
|
+
export { availabilityCalendarSchema } from './schemas/AvailabilityCalendar';
|
|
470
496
|
export { availabilitySchema } from './schemas/Availability';
|
|
471
497
|
export { agentSchema } from './schemas/Agent';
|
|
472
498
|
export { adjustmentPerSchema } from './schemas/AdjustmentPer';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { AvailabilityStatus } from './AvailabilityStatus';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
|
|
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<
|
|
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<
|
|
54
|
+
unitPricingFrom?: Array<PricingUnit>;
|
|
41
55
|
/**
|
|
42
56
|
* Is on the object when Pricing capability is requested.
|
|
43
57
|
*/
|
|
44
|
-
pricingFrom?: Array<
|
|
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,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>;
|
|
@@ -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
|
|
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
|
};
|
package/dist/models/Webhook.d.ts
CHANGED
|
@@ -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;
|