@qite/tide-client 1.0.89 → 1.0.91
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 +4 -10
- package/build/index.js.map +1 -1
- package/build/types/offer/booking-v2/request/bookable-dates-request.d.ts +4 -0
- package/build/types/offer/booking-v2/request/index.d.ts +1 -0
- package/build/types/offer/booking-v2/response/booking-travel-agent.d.ts +1 -0
- package/build/utils/booking-v2-client.d.ts +2 -2
- package/package.json +1 -1
- package/src/types/offer/booking-v2/request/bookable-dates-request.ts +4 -0
- package/src/types/offer/booking-v2/request/index.ts +1 -0
- package/src/types/offer/booking-v2/response/booking-travel-agent.ts +1 -0
- package/src/utils/booking-v2-client.ts +5 -4
|
@@ -2,6 +2,7 @@ import { PackageSearchRequest, TideClientConfig } from "..";
|
|
|
2
2
|
import {
|
|
3
3
|
AvailablePackage,
|
|
4
4
|
BookableDates,
|
|
5
|
+
BookableDatesRequest,
|
|
5
6
|
BookingPackage,
|
|
6
7
|
BookingPackageBookRequest,
|
|
7
8
|
BookingPackageDetailsRequest,
|
|
@@ -68,7 +69,6 @@ export declare const searchFlightPool: (
|
|
|
68
69
|
) => Promise<BookingPackageFlightPool>;
|
|
69
70
|
export declare const bookableDates: (
|
|
70
71
|
config: TideClientConfig,
|
|
71
|
-
|
|
72
|
-
allotmentTourCode: string,
|
|
72
|
+
request: BookableDatesRequest,
|
|
73
73
|
signal?: AbortSignal | undefined
|
|
74
74
|
) => Promise<BookableDates>;
|
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@ import { PackageSearchRequest, TideClientConfig } from "..";
|
|
|
3
3
|
import {
|
|
4
4
|
AvailablePackage,
|
|
5
5
|
BookableDates,
|
|
6
|
+
BookableDatesRequest,
|
|
6
7
|
BookingPackage,
|
|
7
8
|
BookingPackageBookRequest,
|
|
8
9
|
BookingPackageDetailsRequest,
|
|
@@ -151,12 +152,12 @@ export const searchFlightPool = (
|
|
|
151
152
|
|
|
152
153
|
export const bookableDates = (
|
|
153
154
|
config: TideClientConfig,
|
|
154
|
-
|
|
155
|
-
allotmentTourCode: string,
|
|
155
|
+
request: BookableDatesRequest,
|
|
156
156
|
signal?: AbortSignal
|
|
157
157
|
): Promise<BookableDates> => {
|
|
158
|
-
const url = `${config.host}${ENDPOINT_BOOKABLE_DATES}
|
|
158
|
+
const url = `${config.host}${ENDPOINT_BOOKABLE_DATES}`;
|
|
159
159
|
const apiKey = config.apiKey;
|
|
160
|
+
const body = JSON.stringify(request);
|
|
160
161
|
|
|
161
|
-
return
|
|
162
|
+
return post(url, apiKey, body, signal, true);
|
|
162
163
|
};
|