@qite/tide-client 1.0.80 → 1.0.82
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 +7 -0
- package/build/index.js.map +1 -1
- package/build/types/offer/booking-v2/request/booking-package-book-request.d.ts +0 -2
- package/build/types/offer/booking-v2/request/booking-package-search-request.d.ts +1 -0
- package/build/types/offer/booking-v2/response/booking-package-item.d.ts +1 -0
- package/build/types/offer/booking-v2/response/booking-product-notification.d.ts +0 -1
- package/build/types/offer/booking-v2/shared/booking-package-room-option.d.ts +1 -0
- package/build/utils/booking-v2-client.d.ts +6 -0
- package/package.json +1 -1
- package/src/types/offer/booking-v2/request/booking-package-book-request.ts +0 -2
- package/src/types/offer/booking-v2/request/booking-package-search-request.ts +1 -0
- package/src/types/offer/booking-v2/response/booking-package-item.ts +1 -0
- package/src/types/offer/booking-v2/response/booking-product-notification.ts +0 -1
- package/src/types/offer/booking-v2/shared/booking-package-room-option.ts +1 -0
- package/src/utils/booking-v2-client.ts +13 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { BookingProductNotification } from "../response";
|
|
2
1
|
import { BookingPackage } from "../shared";
|
|
3
2
|
import { BookingPackagePax } from "../shared/booking-package-pax";
|
|
4
3
|
import { BookingPackageAddress } from "./booking-package-address";
|
|
@@ -14,5 +13,4 @@ export interface BookingPackageBookRequest {
|
|
|
14
13
|
address?: BookingPackageAddress;
|
|
15
14
|
pax: BookingPackagePax[];
|
|
16
15
|
nonTravelPax: BookingPackagePax[];
|
|
17
|
-
notifications: BookingProductNotification[];
|
|
18
16
|
}
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
BookingTravelAgent,
|
|
15
15
|
TideResponse,
|
|
16
16
|
} from "../types";
|
|
17
|
+
import { BookingPackageAvailability } from "../types/offer/booking-v2/shared/booking-package-availability";
|
|
17
18
|
export declare const readPackageSearchList: (
|
|
18
19
|
config: TideClientConfig,
|
|
19
20
|
request: PackageSearchRequest,
|
|
@@ -53,3 +54,8 @@ export declare const agents: (
|
|
|
53
54
|
config: TideClientConfig,
|
|
54
55
|
signal?: AbortSignal | undefined
|
|
55
56
|
) => Promise<BookingTravelAgent[]>;
|
|
57
|
+
export declare const getAllotmentAvailability: (
|
|
58
|
+
config: TideClientConfig,
|
|
59
|
+
eventId: string,
|
|
60
|
+
signal?: AbortSignal | undefined
|
|
61
|
+
) => Promise<BookingPackageAvailability[]>;
|
package/package.json
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { BookingProductNotification } from "../response";
|
|
2
1
|
import { BookingPackage } from "../shared";
|
|
3
2
|
import { BookingPackagePax } from "../shared/booking-package-pax";
|
|
4
3
|
import { BookingPackageAddress } from "./booking-package-address";
|
|
@@ -16,5 +15,4 @@ export interface BookingPackageBookRequest {
|
|
|
16
15
|
address?: BookingPackageAddress;
|
|
17
16
|
pax: BookingPackagePax[];
|
|
18
17
|
nonTravelPax: BookingPackagePax[];
|
|
19
|
-
notifications: BookingProductNotification[];
|
|
20
18
|
}
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
BookingTravelAgent,
|
|
16
16
|
TideResponse,
|
|
17
17
|
} from "../types";
|
|
18
|
+
import { BookingPackageAvailability } from "../types/offer/booking-v2/shared/booking-package-availability";
|
|
18
19
|
import { get, post } from "./common-client";
|
|
19
20
|
|
|
20
21
|
const ENDPOINT = "/api/web/booking/v2";
|
|
@@ -26,6 +27,7 @@ const ENDPOINT_ALTERNATE_FLIGHTS = `/alternate-flights`;
|
|
|
26
27
|
const ENDPOINT_PRICE_DETAILS = `${ENDPOINT}/price-details`;
|
|
27
28
|
const ENDPOINT_BOOK = `${ENDPOINT}/book`;
|
|
28
29
|
const ENDPOINT_AGENTS = `${ENDPOINT}/agents`;
|
|
30
|
+
const ENDPOINT_AVAILABLE_ALLOTMENTS = `${ENDPOINT}/get-allotment-availability`;
|
|
29
31
|
|
|
30
32
|
export const readPackageSearchList = (
|
|
31
33
|
config: TideClientConfig,
|
|
@@ -119,3 +121,14 @@ export const agents = (
|
|
|
119
121
|
|
|
120
122
|
return get(url, apiKey, signal, true);
|
|
121
123
|
};
|
|
124
|
+
|
|
125
|
+
export const getAllotmentAvailability = (
|
|
126
|
+
config: TideClientConfig,
|
|
127
|
+
eventId: string,
|
|
128
|
+
signal?: AbortSignal
|
|
129
|
+
): Promise<BookingPackageAvailability[]> => {
|
|
130
|
+
const url = `${config.host}${ENDPOINT_AVAILABLE_ALLOTMENTS}/${eventId}`;
|
|
131
|
+
const apiKey = config.apiKey;
|
|
132
|
+
|
|
133
|
+
return get(url, apiKey, signal, true);
|
|
134
|
+
};
|