@qite/tide-client 1.0.79 → 1.0.81

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.
@@ -21,4 +21,5 @@ export interface BookingPackageSearchRequest {
21
21
  includeClosedAllotments?: boolean;
22
22
  includeFullyBookedAllotments?: boolean;
23
23
  onlyCachedResults?: boolean;
24
+ includeAllAllotments?: boolean;
24
25
  }
@@ -1,5 +1,6 @@
1
1
  export interface BookingPackageRoomOption {
2
2
  entryLineGuid: string;
3
+ allotmentId?: number;
3
4
  productCode: string;
4
5
  accommodationCode: string;
5
6
  externalAccommodationCode: string;
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@qite/tide-client",
3
- "version": "1.0.79",
3
+ "version": "1.0.81",
4
4
  "description": "Frontend client for Tide",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -24,4 +24,5 @@ export interface BookingPackageSearchRequest {
24
24
  includeClosedAllotments?: boolean;
25
25
  includeFullyBookedAllotments?: boolean;
26
26
  onlyCachedResults?: boolean;
27
+ includeAllAllotments?: boolean;
27
28
  }
@@ -1,5 +1,6 @@
1
1
  export interface BookingPackageRoomOption {
2
2
  entryLineGuid: string;
3
+ allotmentId?: number;
3
4
  productCode: string;
4
5
  accommodationCode: string;
5
6
  externalAccommodationCode: string;
@@ -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
+ };