@qite/tide-client 1.0.19 → 1.0.22
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/build/index.d.ts +49 -10
- package/build/index.js +541 -437
- package/build/index.js.map +1 -1
- package/build/types/aapi/accommodation-occupancy.d.ts +9 -9
- package/build/types/aapi/accommodation-with-available-places.d.ts +14 -14
- package/build/types/aapi/accommodation.d.ts +7 -7
- package/build/types/aapi/additional-services.d.ts +6 -6
- package/build/types/aapi/alternative-flight-data.d.ts +10 -10
- package/build/types/aapi/alternative-flight-leg.d.ts +18 -18
- package/build/types/aapi/alternative-flight.d.ts +12 -12
- package/build/types/aapi/availability-request.d.ts +12 -12
- package/build/types/aapi/availability.d.ts +5 -5
- package/build/types/aapi/available-products-request.d.ts +32 -32
- package/build/types/aapi/duration.d.ts +4 -4
- package/build/types/aapi/flight-leg.d.ts +18 -18
- package/build/types/aapi/flight.d.ts +23 -23
- package/build/types/aapi/hotel.d.ts +35 -35
- package/build/types/aapi/index.d.ts +22 -22
- package/build/types/aapi/mollie-payment-request.d.ts +6 -6
- package/build/types/aapi/mollie-payment.d.ts +3 -3
- package/build/types/aapi/option-pax.d.ts +4 -4
- package/build/types/aapi/option.d.ts +28 -21
- package/build/types/aapi/pax.d.ts +4 -4
- package/build/types/aapi/price-detail.d.ts +8 -8
- package/build/types/aapi/regime.d.ts +5 -5
- package/build/types/aapi/traveler-grouping.d.ts +5 -5
- package/build/types/enums/allotment-type.d.ts +5 -5
- package/build/types/enums/availability-search-type.d.ts +4 -4
- package/build/types/enums/dossier-type.d.ts +6 -6
- package/build/types/enums/entry-line-flag.d.ts +6 -6
- package/build/types/enums/entry-line-status.d.ts +19 -19
- package/build/types/enums/entry-status.d.ts +8 -8
- package/build/types/enums/export-status.d.ts +5 -5
- package/build/types/enums/gender.d.ts +5 -5
- package/build/types/enums/index.d.ts +15 -15
- package/build/types/enums/meta-data-type.d.ts +10 -10
- package/build/types/enums/payment-type.d.ts +6 -6
- package/build/types/enums/price-chart-type.d.ts +4 -4
- package/build/types/enums/requirement-type.d.ts +5 -5
- package/build/types/enums/room-type.d.ts +8 -8
- package/build/types/enums/sale-type.d.ts +4 -4
- package/build/types/enums/service-type.d.ts +26 -26
- package/build/types/index.d.ts +26 -4
- package/build/types/offer/additional-services.d.ts +6 -6
- package/build/types/offer/address.d.ts +11 -11
- package/build/types/offer/alternative-flight-data.d.ts +10 -10
- package/build/types/offer/alternative-flight-leg.d.ts +18 -18
- package/build/types/offer/alternative-flight.d.ts +14 -14
- package/build/types/offer/available-package-accommodation.d.ts +7 -7
- package/build/types/offer/available-package-flight.d.ts +9 -9
- package/build/types/offer/available-package-option.d.ts +17 -12
- package/build/types/offer/available-package-pax-price.d.ts +6 -6
- package/build/types/offer/available-package-regime.d.ts +4 -4
- package/build/types/offer/available-package.d.ts +7 -7
- package/build/types/offer/base-price.d.ts +6 -6
- package/build/types/offer/base-prices-from-date-request.d.ts +12 -12
- package/build/types/offer/base-prices-request.d.ts +12 -12
- package/build/types/offer/book-request.d.ts +36 -36
- package/build/types/offer/booking-response.d.ts +4 -4
- package/build/types/offer/booking-v2/index.d.ts +3 -3
- package/build/types/offer/booking-v2/request/booking-package-address.d.ts +13 -13
- package/build/types/offer/booking-v2/request/booking-package-book-request.d.ts +12 -13
- package/build/types/offer/booking-v2/request/booking-package-details-request.d.ts +12 -12
- package/build/types/offer/booking-v2/request/booking-package-request.d.ts +5 -5
- package/build/types/offer/booking-v2/request/booking-package-search-request.d.ts +20 -20
- package/build/types/offer/booking-v2/request/index.d.ts +5 -5
- package/build/types/offer/booking-v2/response/booking-package-allotment-info.d.ts +13 -13
- package/build/types/offer/booking-v2/response/booking-package-dossier.d.ts +5 -5
- package/build/types/offer/booking-v2/response/booking-package-item.d.ts +12 -12
- package/build/types/offer/booking-v2/response/booking-price-detail.d.ts +13 -13
- package/build/types/offer/booking-v2/response/booking-price-details.d.ts +6 -6
- package/build/types/offer/booking-v2/response/booking-price-per-pax.d.ts +4 -4
- package/build/types/offer/booking-v2/response/changed-line.d.ts +4 -4
- package/build/types/offer/booking-v2/response/index.d.ts +7 -7
- package/build/types/offer/booking-v2/shared/booking-option-group.d.ts +5 -5
- package/build/types/offer/booking-v2/shared/booking-option-pax.d.ts +7 -7
- package/build/types/offer/booking-v2/shared/booking-option-unit.d.ts +6 -6
- package/build/types/offer/booking-v2/shared/booking-package-flight.d.ts +11 -11
- package/build/types/offer/booking-v2/shared/booking-package-hotel-option.d.ts +7 -7
- package/build/types/offer/booking-v2/shared/booking-package-hotel-room.d.ts +5 -5
- package/build/types/offer/booking-v2/shared/booking-package-hotel.d.ts +10 -10
- package/build/types/offer/booking-v2/shared/booking-package-line.d.ts +7 -7
- package/build/types/offer/booking-v2/shared/booking-package-pax.d.ts +16 -16
- package/build/types/offer/booking-v2/shared/booking-package-request-room.d.ts +5 -5
- package/build/types/offer/booking-v2/shared/booking-package-room-option.d.ts +9 -7
- package/build/types/offer/booking-v2/shared/booking-package-room.d.ts +5 -5
- package/build/types/offer/booking-v2/shared/booking-package.d.ts +29 -29
- package/build/types/offer/booking-v2/shared/index.d.ts +17 -17
- package/build/types/offer/booking-v2/shared/per-booking-package-option.d.ts +9 -9
- package/build/types/offer/booking-v2/shared/per-package-option.d.ts +9 -8
- package/build/types/offer/booking-v2/shared/per-pax-package-option.d.ts +5 -5
- package/build/types/offer/booking-v2/shared/per-unit-package-option.d.ts +7 -7
- package/build/types/offer/cached-package-search-result.d.ts +5 -5
- package/build/types/offer/confirmed-dossier-check.d.ts +6 -6
- package/build/types/offer/crm-contact-request.d.ts +36 -28
- package/build/types/offer/customer-request.d.ts +5 -5
- package/build/types/offer/dossier-default-product.d.ts +14 -14
- package/build/types/offer/entry-check-response.d.ts +8 -8
- package/build/types/offer/entry-line-meta-data.d.ts +5 -5
- package/build/types/offer/entry-line-pax.d.ts +8 -8
- package/build/types/offer/entry-line.d.ts +73 -67
- package/build/types/offer/entry-price-line.d.ts +40 -40
- package/build/types/offer/entry-room2.d.ts +5 -5
- package/build/types/offer/entry.d.ts +59 -49
- package/build/types/offer/flight-meta-data-line.d.ts +16 -16
- package/build/types/offer/flight-meta-data.d.ts +10 -10
- package/build/types/offer/flight-pool.d.ts +5 -5
- package/build/types/offer/index.d.ts +65 -65
- package/build/types/offer/language.d.ts +5 -5
- package/build/types/offer/multiroom-book-request.d.ts +10 -10
- package/build/types/offer/note.d.ts +16 -16
- package/build/types/offer/other-product.d.ts +13 -13
- package/build/types/offer/package-book-request-room.d.ts +5 -5
- package/build/types/offer/package-book-request.d.ts +12 -12
- package/build/types/offer/package-flight.d.ts +13 -13
- package/build/types/offer/package-flights.d.ts +5 -5
- package/build/types/offer/package-option.d.ts +22 -22
- package/build/types/offer/package-price-details-request-room.d.ts +4 -4
- package/build/types/offer/package-price-details-request.d.ts +8 -8
- package/build/types/offer/package-room-option.d.ts +10 -10
- package/build/types/offer/package-room.d.ts +7 -7
- package/build/types/offer/package-search-destination.d.ts +9 -9
- package/build/types/offer/package-search-request-date.d.ts +4 -4
- package/build/types/offer/package-search-request-room.d.ts +5 -5
- package/build/types/offer/package-search-request.d.ts +22 -18
- package/build/types/offer/package-search-result.d.ts +12 -12
- package/build/types/offer/package-sub-option.d.ts +6 -6
- package/build/types/offer/pax.d.ts +29 -29
- package/build/types/offer/payment.d.ts +20 -20
- package/build/types/offer/person-country-preference.d.ts +7 -7
- package/build/types/offer/person-location-preference.d.ts +7 -7
- package/build/types/offer/person-oord-preference.d.ts +7 -7
- package/build/types/offer/person-period-date-range-preference.d.ts +6 -6
- package/build/types/offer/person-period-preference.d.ts +7 -7
- package/build/types/offer/person-region-preference.d.ts +7 -7
- package/build/types/offer/person-tour-group-preference.d.ts +7 -7
- package/build/types/offer/price-detail.d.ts +18 -18
- package/build/types/offer/price-per-pax.d.ts +6 -6
- package/build/types/offer/product-notification-result.d.ts +9 -9
- package/build/types/offer/web-contact-form-request.d.ts +13 -13
- package/build/types/offer/web-contact-has-tag-request.d.ts +4 -4
- package/build/types/tide-client-config.d.ts +4 -4
- package/build/utils/api.d.ts +6 -1
- package/build/utils/booking-client.d.ts +169 -102
- package/build/utils/booking-v2-client.d.ts +37 -7
- package/build/utils/common-client.d.ts +6 -1
- package/build/utils/json.d.ts +2 -2
- package/build/utils/mollie-client.d.ts +15 -7
- package/build/utils/web-client.d.ts +14 -10
- package/build/utils/web-contact-client.d.ts +23 -11
- package/package.json +54 -54
- package/src/index.ts +65 -65
- package/src/types/offer/booking-v2/index.ts +3 -3
- package/src/types/offer/booking-v2/request/booking-package-address.ts +13 -13
- package/src/types/offer/booking-v2/request/booking-package-book-request.ts +14 -14
- package/src/types/offer/booking-v2/request/booking-package-details-request.ts +13 -13
- package/src/types/offer/booking-v2/request/booking-package-request.ts +5 -5
- package/src/types/offer/booking-v2/request/booking-package-search-request.ts +23 -23
- package/src/types/offer/booking-v2/request/index.ts +5 -5
- package/src/types/offer/booking-v2/response/booking-package-allotment-info.ts +13 -13
- package/src/types/offer/booking-v2/response/booking-package-dossier.ts +5 -5
- package/src/types/offer/booking-v2/response/booking-package-item.ts +14 -14
- package/src/types/offer/booking-v2/response/booking-price-detail.ts +15 -15
- package/src/types/offer/booking-v2/response/booking-price-details.ts +7 -7
- package/src/types/offer/booking-v2/response/booking-price-per-pax.ts +4 -4
- package/src/types/offer/booking-v2/response/changed-line.ts +4 -4
- package/src/types/offer/booking-v2/response/index.ts +7 -7
- package/src/types/offer/booking-v2/shared/booking-option-group.ts +5 -5
- package/src/types/offer/booking-v2/shared/booking-option-pax.ts +8 -8
- package/src/types/offer/booking-v2/shared/booking-option-unit.ts +7 -7
- package/src/types/offer/booking-v2/shared/booking-package-flight.ts +11 -11
- package/src/types/offer/booking-v2/shared/booking-package-hotel-option.ts +7 -7
- package/src/types/offer/booking-v2/shared/booking-package-hotel-room.ts +6 -6
- package/src/types/offer/booking-v2/shared/booking-package-hotel.ts +13 -13
- package/src/types/offer/booking-v2/shared/booking-package-line.ts +7 -7
- package/src/types/offer/booking-v2/shared/booking-package-pax.ts +18 -18
- package/src/types/offer/booking-v2/shared/booking-package-request-room.ts +6 -6
- package/src/types/offer/booking-v2/shared/booking-package-room-option.ts +9 -7
- package/src/types/offer/booking-v2/shared/booking-package-room.ts +6 -6
- package/src/types/offer/booking-v2/shared/booking-package.ts +36 -36
- package/src/types/offer/booking-v2/shared/index.ts +17 -17
- package/src/types/offer/booking-v2/shared/per-booking-package-option.ts +10 -10
- package/src/types/offer/booking-v2/shared/per-package-option.ts +10 -9
- package/src/types/offer/booking-v2/shared/per-pax-package-option.ts +6 -6
- package/src/types/offer/booking-v2/shared/per-unit-package-option.ts +8 -8
- package/src/types/offer/index.ts +65 -65
- package/src/utils/booking-v2-client.ts +81 -81
|
@@ -1,102 +1,169 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
*
|
|
19
|
-
* @param
|
|
20
|
-
* @
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
*
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* api/web/booking/
|
|
41
|
-
*
|
|
42
|
-
* @param
|
|
43
|
-
* @
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* @param
|
|
67
|
-
* @
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
* @param
|
|
91
|
-
* @
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
|
|
102
|
-
|
|
1
|
+
import {
|
|
2
|
+
Availability,
|
|
3
|
+
AvailableProductsRequest,
|
|
4
|
+
BasePrice,
|
|
5
|
+
BasePricesFromDateRequest,
|
|
6
|
+
BasePricesRequest,
|
|
7
|
+
BookingResponse,
|
|
8
|
+
CachedPackageSearchResult,
|
|
9
|
+
Entry,
|
|
10
|
+
MultiroomBookRequest,
|
|
11
|
+
PackageBookRequest,
|
|
12
|
+
PackagePriceDetailsRequest,
|
|
13
|
+
PackageSearchRequest,
|
|
14
|
+
PriceDetail,
|
|
15
|
+
TideClientConfig,
|
|
16
|
+
} from "../types";
|
|
17
|
+
/**
|
|
18
|
+
* api/web/booking/available-products
|
|
19
|
+
* @param config
|
|
20
|
+
* @param request
|
|
21
|
+
* @returns Availabilities (options) for the specified request.
|
|
22
|
+
*/
|
|
23
|
+
export declare const getAvailableProducts: (
|
|
24
|
+
config: TideClientConfig,
|
|
25
|
+
request: AvailableProductsRequest,
|
|
26
|
+
signal?: AbortSignal | undefined
|
|
27
|
+
) => Promise<Availability[]>;
|
|
28
|
+
/**
|
|
29
|
+
* api/web/booking/package-search
|
|
30
|
+
* @param config
|
|
31
|
+
* @param request
|
|
32
|
+
* @returns Travel options (excursions etc) for a specified product, accommodation and regime.
|
|
33
|
+
*/
|
|
34
|
+
export declare const searchPackages: (
|
|
35
|
+
config: TideClientConfig,
|
|
36
|
+
request: PackageSearchRequest,
|
|
37
|
+
signal?: AbortSignal | undefined
|
|
38
|
+
) => Promise<CachedPackageSearchResult[]>;
|
|
39
|
+
/**
|
|
40
|
+
* api/web/booking/package-price-details
|
|
41
|
+
* @param config
|
|
42
|
+
* @param request
|
|
43
|
+
* @returns A price breakdown for a specified Package (= product and selected options).
|
|
44
|
+
*/
|
|
45
|
+
export declare const getPackagePriceDetails: (
|
|
46
|
+
config: TideClientConfig,
|
|
47
|
+
request: PackagePriceDetailsRequest,
|
|
48
|
+
signal?: AbortSignal | undefined
|
|
49
|
+
) => Promise<PriceDetail[]>;
|
|
50
|
+
/**
|
|
51
|
+
* api/web/booking/offer-entry
|
|
52
|
+
* Creates an Tide Offer, based on the request.
|
|
53
|
+
* @param config
|
|
54
|
+
* @param request
|
|
55
|
+
* @returns The (full) created offer Entry.
|
|
56
|
+
*/
|
|
57
|
+
export declare const createOffer: (
|
|
58
|
+
config: TideClientConfig,
|
|
59
|
+
request: MultiroomBookRequest,
|
|
60
|
+
signal?: AbortSignal | undefined
|
|
61
|
+
) => Promise<Entry>;
|
|
62
|
+
/**
|
|
63
|
+
* api/web/booking/offer-entry
|
|
64
|
+
* Creates a Tide Offer, based on the request.
|
|
65
|
+
* @param config
|
|
66
|
+
* @param request
|
|
67
|
+
* @returns The (short) created offer Entry.
|
|
68
|
+
*/
|
|
69
|
+
export declare const createOfferWithShortResponse: (
|
|
70
|
+
config: TideClientConfig,
|
|
71
|
+
request: MultiroomBookRequest,
|
|
72
|
+
signal?: AbortSignal | undefined
|
|
73
|
+
) => Promise<BookingResponse>;
|
|
74
|
+
/**
|
|
75
|
+
* api/web/booking/entry-multiroom
|
|
76
|
+
* Creates a Tide Booking, based on the request.
|
|
77
|
+
* @param config
|
|
78
|
+
* @param request
|
|
79
|
+
* @returns The (full) created booking Entry.
|
|
80
|
+
*/
|
|
81
|
+
export declare const createEntry: (
|
|
82
|
+
config: TideClientConfig,
|
|
83
|
+
request: MultiroomBookRequest,
|
|
84
|
+
signal?: AbortSignal | undefined
|
|
85
|
+
) => Promise<Entry>;
|
|
86
|
+
/**
|
|
87
|
+
* api/web/booking/entry-multiroom
|
|
88
|
+
* Creates a Tide Booking, based on the request.
|
|
89
|
+
* @param config
|
|
90
|
+
* @param request
|
|
91
|
+
* @returns The (short) created booking Entry.
|
|
92
|
+
*/
|
|
93
|
+
export declare const createEntryWithShortResponse: (
|
|
94
|
+
config: TideClientConfig,
|
|
95
|
+
request: MultiroomBookRequest,
|
|
96
|
+
signal?: AbortSignal | undefined
|
|
97
|
+
) => Promise<BookingResponse>;
|
|
98
|
+
/**
|
|
99
|
+
* api/web/booking/package-offer-entry
|
|
100
|
+
* Creates a Tide Offer, based on the request.
|
|
101
|
+
* @param config
|
|
102
|
+
* @param request
|
|
103
|
+
* @returns The (full) created offer Entry.
|
|
104
|
+
*/
|
|
105
|
+
export declare const createPackageOffer: (
|
|
106
|
+
config: TideClientConfig,
|
|
107
|
+
request: PackageBookRequest,
|
|
108
|
+
signal?: AbortSignal | undefined
|
|
109
|
+
) => Promise<Entry>;
|
|
110
|
+
/**
|
|
111
|
+
* api/web/booking/package-offer-entry
|
|
112
|
+
* Creates a Tide Offer, based on the request.
|
|
113
|
+
* @param config
|
|
114
|
+
* @param request
|
|
115
|
+
* @returns The (short) created offer Entry.
|
|
116
|
+
*/
|
|
117
|
+
export declare const createPackageOfferWithShortResponse: (
|
|
118
|
+
config: TideClientConfig,
|
|
119
|
+
request: PackageBookRequest,
|
|
120
|
+
signal?: AbortSignal | undefined
|
|
121
|
+
) => Promise<BookingResponse>;
|
|
122
|
+
/**
|
|
123
|
+
* api/web/booking/package-entry
|
|
124
|
+
* Create a Tide Booking, based on the request.
|
|
125
|
+
* @param config
|
|
126
|
+
* @param request
|
|
127
|
+
* @returns The (full) created booking Entry.
|
|
128
|
+
*/
|
|
129
|
+
export declare const createPackageEntry: (
|
|
130
|
+
config: TideClientConfig,
|
|
131
|
+
request: PackageBookRequest,
|
|
132
|
+
signal?: AbortSignal | undefined
|
|
133
|
+
) => Promise<Entry>;
|
|
134
|
+
/**
|
|
135
|
+
* api/web/booking/package-entry
|
|
136
|
+
* Create a Tide Booking, based on the request.
|
|
137
|
+
* @param config
|
|
138
|
+
* @param request
|
|
139
|
+
* @returns The (short) created booking Entry.
|
|
140
|
+
*/
|
|
141
|
+
export declare const createPackageEntryWithShortResponse: (
|
|
142
|
+
config: TideClientConfig,
|
|
143
|
+
request: PackageBookRequest,
|
|
144
|
+
signal?: AbortSignal | undefined
|
|
145
|
+
) => Promise<BookingResponse>;
|
|
146
|
+
/**
|
|
147
|
+
* api/web/booking/base-prices
|
|
148
|
+
* Get base prices of a specific product and accommodation in a defined period.
|
|
149
|
+
* @param config
|
|
150
|
+
* @param request
|
|
151
|
+
* @returns The base prices of a specific product and accommodation during the defined period.
|
|
152
|
+
*/
|
|
153
|
+
export declare const getBasePrices: (
|
|
154
|
+
config: TideClientConfig,
|
|
155
|
+
request: BasePricesRequest,
|
|
156
|
+
signal?: AbortSignal | undefined
|
|
157
|
+
) => Promise<BasePrice[]>;
|
|
158
|
+
/**
|
|
159
|
+
* api/web/booking/base-prices-from-date
|
|
160
|
+
* Get base prices of a specific product and accommodation starting from a specific date.
|
|
161
|
+
* @param config
|
|
162
|
+
* @param request
|
|
163
|
+
* @returns The base prices of a specific product and accommodationg starting from a specific date.
|
|
164
|
+
*/
|
|
165
|
+
export declare const getBasePricesFromDate: (
|
|
166
|
+
config: TideClientConfig,
|
|
167
|
+
request: BasePricesFromDateRequest,
|
|
168
|
+
signal?: AbortSignal | undefined
|
|
169
|
+
) => Promise<BasePrice[]>;
|
|
@@ -1,7 +1,37 @@
|
|
|
1
|
-
import { PackageSearchRequest, TideClientConfig } from "..";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { PackageSearchRequest, TideClientConfig } from "..";
|
|
2
|
+
import {
|
|
3
|
+
AvailablePackage,
|
|
4
|
+
BookingPackage,
|
|
5
|
+
BookingPackageBookRequest,
|
|
6
|
+
BookingPackageDetailsRequest,
|
|
7
|
+
BookingPackageDossier,
|
|
8
|
+
BookingPackageItem,
|
|
9
|
+
BookingPackageRequest,
|
|
10
|
+
BookingPackageSearchRequest,
|
|
11
|
+
BookingPriceDetails,
|
|
12
|
+
} from "../types";
|
|
13
|
+
export declare const readPackageSearchList: (
|
|
14
|
+
config: TideClientConfig,
|
|
15
|
+
request: PackageSearchRequest,
|
|
16
|
+
signal?: AbortSignal | undefined
|
|
17
|
+
) => Promise<AvailablePackage[]>;
|
|
18
|
+
export declare const search: (
|
|
19
|
+
config: TideClientConfig,
|
|
20
|
+
request: BookingPackageRequest<BookingPackageSearchRequest>,
|
|
21
|
+
signal?: AbortSignal | undefined
|
|
22
|
+
) => Promise<BookingPackageItem[]>;
|
|
23
|
+
export declare const details: (
|
|
24
|
+
config: TideClientConfig,
|
|
25
|
+
request: BookingPackageRequest<BookingPackageDetailsRequest>,
|
|
26
|
+
signal?: AbortSignal | undefined
|
|
27
|
+
) => Promise<BookingPackage>;
|
|
28
|
+
export declare const priceDetails: (
|
|
29
|
+
config: TideClientConfig,
|
|
30
|
+
request: BookingPackageRequest<BookingPackageBookRequest>,
|
|
31
|
+
signal?: AbortSignal | undefined
|
|
32
|
+
) => Promise<BookingPriceDetails>;
|
|
33
|
+
export declare const book: (
|
|
34
|
+
config: TideClientConfig,
|
|
35
|
+
request: BookingPackageRequest<BookingPackageBookRequest>,
|
|
36
|
+
signal?: AbortSignal | undefined
|
|
37
|
+
) => Promise<BookingPackageDossier>;
|
package/build/utils/json.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const reviver: (_: any, value: any) => any;
|
|
2
|
-
export declare const replacer: (_: any, value: any) => any;
|
|
1
|
+
export declare const reviver: (_: any, value: any) => any;
|
|
2
|
+
export declare const replacer: (_: any, value: any) => any;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import {
|
|
2
|
+
MolliePayment,
|
|
3
|
+
MolliePaymentRequest,
|
|
4
|
+
TideClientConfig,
|
|
5
|
+
} from "../types";
|
|
6
|
+
/**
|
|
7
|
+
* api/mollie/create-payment
|
|
8
|
+
* @param request
|
|
9
|
+
* @returns mollie payment url
|
|
10
|
+
*/
|
|
11
|
+
export declare const getMolliePayment: (
|
|
12
|
+
config: TideClientConfig,
|
|
13
|
+
request: MolliePaymentRequest,
|
|
14
|
+
signal?: AbortSignal | undefined
|
|
15
|
+
) => Promise<MolliePayment>;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { CrmContactRequest, TideClientConfig } from "../types";
|
|
2
|
-
/**
|
|
3
|
-
* api/web/crmcontact
|
|
4
|
-
* Creates a CRM contact.
|
|
5
|
-
* @param config
|
|
6
|
-
* @param request
|
|
7
|
-
* @param signal
|
|
8
|
-
* @returns OK if succeeded.
|
|
9
|
-
*/
|
|
10
|
-
export declare const createCrmContact: (
|
|
1
|
+
import { CrmContactRequest, TideClientConfig } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* api/web/crmcontact
|
|
4
|
+
* Creates a CRM contact.
|
|
5
|
+
* @param config
|
|
6
|
+
* @param request
|
|
7
|
+
* @param signal
|
|
8
|
+
* @returns OK if succeeded.
|
|
9
|
+
*/
|
|
10
|
+
export declare const createCrmContact: (
|
|
11
|
+
config: TideClientConfig,
|
|
12
|
+
request: CrmContactRequest,
|
|
13
|
+
signal?: AbortSignal | undefined
|
|
14
|
+
) => Promise<Response>;
|
|
@@ -1,11 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import {
|
|
2
|
+
TideClientConfig,
|
|
3
|
+
WebContactFormRequest,
|
|
4
|
+
WebContactHasTagRequest,
|
|
5
|
+
} from "../types";
|
|
6
|
+
/**
|
|
7
|
+
* api/web/contact/contact-form
|
|
8
|
+
* Processes a contact form.
|
|
9
|
+
* @param config
|
|
10
|
+
* @param request
|
|
11
|
+
* @param signal
|
|
12
|
+
* @returns OK if succeeded.
|
|
13
|
+
*/
|
|
14
|
+
export declare const contactForm: (
|
|
15
|
+
config: TideClientConfig,
|
|
16
|
+
request: WebContactFormRequest,
|
|
17
|
+
signal?: AbortSignal | undefined
|
|
18
|
+
) => Promise<Response>;
|
|
19
|
+
export declare const contactHasTag: (
|
|
20
|
+
config: TideClientConfig,
|
|
21
|
+
request: WebContactHasTagRequest,
|
|
22
|
+
signal?: AbortSignal | undefined
|
|
23
|
+
) => Promise<Response>;
|
package/package.json
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@qite/tide-client",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Frontend client for Tide",
|
|
5
|
-
"main": "build/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "rollup -c",
|
|
8
|
-
"tsc": "tsc --noEmit",
|
|
9
|
-
"format": "prettier --write .",
|
|
10
|
-
"test": "jest"
|
|
11
|
-
},
|
|
12
|
-
"repository": {
|
|
13
|
-
"type": "git",
|
|
14
|
-
"url": "git+ssh://git@bitbucket.org/qitegeneral/tide-client.git"
|
|
15
|
-
},
|
|
16
|
-
"keywords": [
|
|
17
|
-
"tide",
|
|
18
|
-
"client"
|
|
19
|
-
],
|
|
20
|
-
"author": "Kristof Colpaert <kristof.colpaert@qite.be>",
|
|
21
|
-
"license": "OBSD",
|
|
22
|
-
"homepage": "https://bitbucket.org/qitegeneral/tide-client#readme",
|
|
23
|
-
"devDependencies": {
|
|
24
|
-
"@rollup/plugin-commonjs": "^19.0.0",
|
|
25
|
-
"@rollup/plugin-node-resolve": "^13.0.0",
|
|
26
|
-
"@types/jest": "^26.0.23",
|
|
27
|
-
"dotenv": "^9.0.2",
|
|
28
|
-
"jest": "^26.6.3",
|
|
29
|
-
"jest-fetch-mock": "^3.0.3",
|
|
30
|
-
"prettier": "^2.3.0",
|
|
31
|
-
"rollup": "^2.48.0",
|
|
32
|
-
"rollup-plugin-typescript2": "^0.30.0",
|
|
33
|
-
"ts-jest": "^26.5.6",
|
|
34
|
-
"tslib": "^2.2.0",
|
|
35
|
-
"typescript": "^4.2.4"
|
|
36
|
-
},
|
|
37
|
-
"jest": {
|
|
38
|
-
"moduleFileExtensions": [
|
|
39
|
-
"ts",
|
|
40
|
-
"js"
|
|
41
|
-
],
|
|
42
|
-
"transform": {
|
|
43
|
-
"^.+\\.ts$": "ts-jest"
|
|
44
|
-
},
|
|
45
|
-
"globals": {
|
|
46
|
-
"ts-jest": {
|
|
47
|
-
"tsconfig": "tsconfig.json"
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
"testMatch": [
|
|
51
|
-
"**/tests/**/*.test.ts"
|
|
52
|
-
]
|
|
53
|
-
}
|
|
54
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@qite/tide-client",
|
|
3
|
+
"version": "1.0.22",
|
|
4
|
+
"description": "Frontend client for Tide",
|
|
5
|
+
"main": "build/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "rollup -c",
|
|
8
|
+
"tsc": "tsc --noEmit",
|
|
9
|
+
"format": "prettier --write .",
|
|
10
|
+
"test": "jest"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+ssh://git@bitbucket.org/qitegeneral/tide-client.git"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"tide",
|
|
18
|
+
"client"
|
|
19
|
+
],
|
|
20
|
+
"author": "Kristof Colpaert <kristof.colpaert@qite.be>",
|
|
21
|
+
"license": "OBSD",
|
|
22
|
+
"homepage": "https://bitbucket.org/qitegeneral/tide-client#readme",
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@rollup/plugin-commonjs": "^19.0.0",
|
|
25
|
+
"@rollup/plugin-node-resolve": "^13.0.0",
|
|
26
|
+
"@types/jest": "^26.0.23",
|
|
27
|
+
"dotenv": "^9.0.2",
|
|
28
|
+
"jest": "^26.6.3",
|
|
29
|
+
"jest-fetch-mock": "^3.0.3",
|
|
30
|
+
"prettier": "^2.3.0",
|
|
31
|
+
"rollup": "^2.48.0",
|
|
32
|
+
"rollup-plugin-typescript2": "^0.30.0",
|
|
33
|
+
"ts-jest": "^26.5.6",
|
|
34
|
+
"tslib": "^2.2.0",
|
|
35
|
+
"typescript": "^4.2.4"
|
|
36
|
+
},
|
|
37
|
+
"jest": {
|
|
38
|
+
"moduleFileExtensions": [
|
|
39
|
+
"ts",
|
|
40
|
+
"js"
|
|
41
|
+
],
|
|
42
|
+
"transform": {
|
|
43
|
+
"^.+\\.ts$": "ts-jest"
|
|
44
|
+
},
|
|
45
|
+
"globals": {
|
|
46
|
+
"ts-jest": {
|
|
47
|
+
"tsconfig": "tsconfig.json"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"testMatch": [
|
|
51
|
+
"**/tests/**/*.test.ts"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
// Config
|
|
2
|
-
|
|
3
|
-
export { TideClientConfig } from "./types";
|
|
4
|
-
|
|
5
|
-
// Enums
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
AllotmentType,
|
|
9
|
-
AvailabilitySearchType,
|
|
10
|
-
Gender,
|
|
11
|
-
MetaDataType,
|
|
12
|
-
RequirementType,
|
|
13
|
-
ServiceType,
|
|
14
|
-
} from "./types";
|
|
15
|
-
|
|
16
|
-
// Request types
|
|
17
|
-
|
|
18
|
-
export {
|
|
19
|
-
Address,
|
|
20
|
-
AvailableProductsRequest,
|
|
21
|
-
BasePricesRequest,
|
|
22
|
-
BasePricesFromDateRequest,
|
|
23
|
-
CrmContactRequest,
|
|
24
|
-
MolliePaymentRequest,
|
|
25
|
-
MultiroomBookRequest,
|
|
26
|
-
OtherProduct,
|
|
27
|
-
PackageBookRequestRoom,
|
|
28
|
-
PackageBookRequest,
|
|
29
|
-
PackagePriceDetailsRequestRoom,
|
|
30
|
-
PackagePriceDetailsRequest,
|
|
31
|
-
PackageSearchDestination,
|
|
32
|
-
PackageSearchRequestDate,
|
|
33
|
-
PackageSearchRequestRoom,
|
|
34
|
-
PackageSearchRequest,
|
|
35
|
-
Pax,
|
|
36
|
-
TravelerGrouping,
|
|
37
|
-
WebContactFormRequest,
|
|
38
|
-
WebContactHasTagRequest,
|
|
39
|
-
} from "./types";
|
|
40
|
-
|
|
41
|
-
// Responses
|
|
42
|
-
|
|
43
|
-
export {
|
|
44
|
-
Availability,
|
|
45
|
-
AvailablePackage,
|
|
46
|
-
BasePrice,
|
|
47
|
-
BookingResponse,
|
|
48
|
-
CachedPackageSearchResult,
|
|
49
|
-
Entry,
|
|
50
|
-
MolliePayment,
|
|
51
|
-
PackageOption,
|
|
52
|
-
PackageRoom,
|
|
53
|
-
PriceDetail,
|
|
54
|
-
} from "./types";
|
|
55
|
-
|
|
56
|
-
// Tide Types
|
|
57
|
-
export { FlightMetaData } from "./types";
|
|
58
|
-
|
|
59
|
-
// Calls
|
|
60
|
-
|
|
61
|
-
export * from "./utils/booking-client";
|
|
62
|
-
export * from "./utils/booking-v2-client";
|
|
63
|
-
export * from "./utils/mollie-client";
|
|
64
|
-
export * from "./utils/web-client";
|
|
65
|
-
export * from "./utils/web-contact-client";
|
|
1
|
+
// Config
|
|
2
|
+
|
|
3
|
+
export { TideClientConfig } from "./types";
|
|
4
|
+
|
|
5
|
+
// Enums
|
|
6
|
+
|
|
7
|
+
export {
|
|
8
|
+
AllotmentType,
|
|
9
|
+
AvailabilitySearchType,
|
|
10
|
+
Gender,
|
|
11
|
+
MetaDataType,
|
|
12
|
+
RequirementType,
|
|
13
|
+
ServiceType,
|
|
14
|
+
} from "./types";
|
|
15
|
+
|
|
16
|
+
// Request types
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
Address,
|
|
20
|
+
AvailableProductsRequest,
|
|
21
|
+
BasePricesRequest,
|
|
22
|
+
BasePricesFromDateRequest,
|
|
23
|
+
CrmContactRequest,
|
|
24
|
+
MolliePaymentRequest,
|
|
25
|
+
MultiroomBookRequest,
|
|
26
|
+
OtherProduct,
|
|
27
|
+
PackageBookRequestRoom,
|
|
28
|
+
PackageBookRequest,
|
|
29
|
+
PackagePriceDetailsRequestRoom,
|
|
30
|
+
PackagePriceDetailsRequest,
|
|
31
|
+
PackageSearchDestination,
|
|
32
|
+
PackageSearchRequestDate,
|
|
33
|
+
PackageSearchRequestRoom,
|
|
34
|
+
PackageSearchRequest,
|
|
35
|
+
Pax,
|
|
36
|
+
TravelerGrouping,
|
|
37
|
+
WebContactFormRequest,
|
|
38
|
+
WebContactHasTagRequest,
|
|
39
|
+
} from "./types";
|
|
40
|
+
|
|
41
|
+
// Responses
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
Availability,
|
|
45
|
+
AvailablePackage,
|
|
46
|
+
BasePrice,
|
|
47
|
+
BookingResponse,
|
|
48
|
+
CachedPackageSearchResult,
|
|
49
|
+
Entry,
|
|
50
|
+
MolliePayment,
|
|
51
|
+
PackageOption,
|
|
52
|
+
PackageRoom,
|
|
53
|
+
PriceDetail,
|
|
54
|
+
} from "./types";
|
|
55
|
+
|
|
56
|
+
// Tide Types
|
|
57
|
+
export { FlightMetaData } from "./types";
|
|
58
|
+
|
|
59
|
+
// Calls
|
|
60
|
+
|
|
61
|
+
export * from "./utils/booking-client";
|
|
62
|
+
export * from "./utils/booking-v2-client";
|
|
63
|
+
export * from "./utils/mollie-client";
|
|
64
|
+
export * from "./utils/web-client";
|
|
65
|
+
export * from "./utils/web-contact-client";
|