@qite/tide-client 1.0.85 → 1.0.87
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.js +14 -0
- package/build/index.js.map +1 -1
- package/build/types/offer/booking-v2/request/booking-package-details-request.d.ts +1 -0
- package/build/types/offer/booking-v2/response/bookable-dates.d.ts +4 -0
- package/build/types/offer/booking-v2/response/booking-package-allotment-info.d.ts +1 -0
- package/build/types/offer/booking-v2/response/index.d.ts +1 -0
- package/build/utils/booking-v2-client.d.ts +7 -0
- package/package.json +1 -1
- package/src/types/offer/booking-v2/request/booking-package-details-request.ts +1 -0
- package/src/types/offer/booking-v2/response/bookable-dates.ts +4 -0
- package/src/types/offer/booking-v2/response/booking-package-allotment-info.ts +1 -0
- package/src/types/offer/booking-v2/response/index.ts +1 -0
- package/src/utils/booking-v2-client.ts +14 -0
|
@@ -14,6 +14,7 @@ export interface BookingPackageDetailsRequest {
|
|
|
14
14
|
postNights?: number;
|
|
15
15
|
includeFlights?: boolean;
|
|
16
16
|
checkExternalAvailability?: boolean;
|
|
17
|
+
cachedAllotmentPriceInfos?: number[];
|
|
17
18
|
hotel?: SelectedHotel;
|
|
18
19
|
outwardFlight?: SelectedFlight;
|
|
19
20
|
returnFlight?: SelectedFlight;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PackageSearchRequest, TideClientConfig } from "..";
|
|
2
2
|
import {
|
|
3
3
|
AvailablePackage,
|
|
4
|
+
BookableDates,
|
|
4
5
|
BookingPackage,
|
|
5
6
|
BookingPackageBookRequest,
|
|
6
7
|
BookingPackageDetailsRequest,
|
|
@@ -65,3 +66,9 @@ export declare const searchFlightPool: (
|
|
|
65
66
|
request: BookingPackageRequest<BookingPackageFlightPoolRequest>,
|
|
66
67
|
signal?: AbortSignal | undefined
|
|
67
68
|
) => Promise<BookingPackageFlightPool>;
|
|
69
|
+
export declare const bookableDates: (
|
|
70
|
+
config: TideClientConfig,
|
|
71
|
+
productCode: string,
|
|
72
|
+
allotmentTourCode: string,
|
|
73
|
+
signal?: AbortSignal | undefined
|
|
74
|
+
) => Promise<BookableDates>;
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import { PackageSearchRequest, TideClientConfig } from "..";
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
AvailablePackage,
|
|
5
|
+
BookableDates,
|
|
5
6
|
BookingPackage,
|
|
6
7
|
BookingPackageBookRequest,
|
|
7
8
|
BookingPackageDetailsRequest,
|
|
@@ -30,6 +31,7 @@ const ENDPOINT_BOOK = `${ENDPOINT}/book`;
|
|
|
30
31
|
const ENDPOINT_AGENTS = `${ENDPOINT}/agents`;
|
|
31
32
|
const ENDPOINT_AVAILABLE_ALLOTMENTS = `${ENDPOINT}/get-allotment-availability`;
|
|
32
33
|
const ENDPOINT_FLIGHT_POOL = `${ENDPOINT}/flight-pool`;
|
|
34
|
+
const ENDPOINT_BOOKABLE_DATES = `${ENDPOINT}/bookable-dates`;
|
|
33
35
|
|
|
34
36
|
export const readPackageSearchList = (
|
|
35
37
|
config: TideClientConfig,
|
|
@@ -146,3 +148,15 @@ export const searchFlightPool = (
|
|
|
146
148
|
|
|
147
149
|
return post(url, apiKey, body, signal, true);
|
|
148
150
|
};
|
|
151
|
+
|
|
152
|
+
export const bookableDates = (
|
|
153
|
+
config: TideClientConfig,
|
|
154
|
+
productCode: string,
|
|
155
|
+
allotmentTourCode: string,
|
|
156
|
+
signal?: AbortSignal
|
|
157
|
+
): Promise<BookableDates> => {
|
|
158
|
+
const url = `${config.host}${ENDPOINT_BOOKABLE_DATES}/${productCode}/${allotmentTourCode}`;
|
|
159
|
+
const apiKey = config.apiKey;
|
|
160
|
+
|
|
161
|
+
return get(url, apiKey, signal, true);
|
|
162
|
+
};
|