@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.
@@ -0,0 +1,4 @@
1
+ export interface BookableDatesRequest {
2
+ productCode: string;
3
+ allotmentTourCode: string;
4
+ }
@@ -7,3 +7,4 @@ export * from "./booking-package-search-request";
7
7
  export * from "./selected-flight";
8
8
  export * from "./selected-hotel";
9
9
  export * from "./booking-package-flight-pool-request";
10
+ export * from "./bookable-dates-request";
@@ -3,4 +3,5 @@ export interface BookingTravelAgent {
3
3
  name: string;
4
4
  location: string;
5
5
  postalCode: string;
6
+ affiliateSlug: string;
6
7
  }
@@ -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
- productCode: string,
72
- allotmentTourCode: string,
72
+ request: BookableDatesRequest,
73
73
  signal?: AbortSignal | undefined
74
74
  ) => Promise<BookableDates>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qite/tide-client",
3
- "version": "1.0.89",
3
+ "version": "1.0.91",
4
4
  "description": "Frontend client for Tide",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -0,0 +1,4 @@
1
+ export interface BookableDatesRequest {
2
+ productCode: string;
3
+ allotmentTourCode: string;
4
+ }
@@ -7,3 +7,4 @@ export * from "./booking-package-search-request";
7
7
  export * from "./selected-flight";
8
8
  export * from "./selected-hotel";
9
9
  export * from "./booking-package-flight-pool-request";
10
+ export * from "./bookable-dates-request";
@@ -3,4 +3,5 @@ export interface BookingTravelAgent {
3
3
  name: string;
4
4
  location: string;
5
5
  postalCode: string;
6
+ affiliateSlug: string;
6
7
  }
@@ -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
- productCode: string,
155
- allotmentTourCode: string,
155
+ request: BookableDatesRequest,
156
156
  signal?: AbortSignal
157
157
  ): Promise<BookableDates> => {
158
- const url = `${config.host}${ENDPOINT_BOOKABLE_DATES}/${productCode}/${allotmentTourCode}`;
158
+ const url = `${config.host}${ENDPOINT_BOOKABLE_DATES}`;
159
159
  const apiKey = config.apiKey;
160
+ const body = JSON.stringify(request);
160
161
 
161
- return get(url, apiKey, signal, true);
162
+ return post(url, apiKey, body, signal, true);
162
163
  };