@qite/tide-client 1.0.57 → 1.0.60

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,7 @@
1
+ export interface BookingPackageAvailability {
2
+ code: string;
3
+ count: number;
4
+ fromDate: string;
5
+ toDate: string;
6
+ tourCode: string;
7
+ }
@@ -2,6 +2,7 @@ export interface BookingPackageRoomOption {
2
2
  entryLineGuid: string;
3
3
  productCode: string;
4
4
  accommodationCode: string;
5
+ externalAccommodationCode: string;
5
6
  accommodationName: string;
6
7
  regimeCode: string;
7
8
  regimeName: string;
@@ -9,4 +10,5 @@ export interface BookingPackageRoomOption {
9
10
  isSelected: boolean;
10
11
  from: string;
11
12
  to: string;
13
+ tourCode: string;
12
14
  }
@@ -1,6 +1,7 @@
1
1
  import { BookingOptionGroup } from "./booking-option-group";
2
2
  import { BookingOptionPax } from "./booking-option-pax";
3
3
  import { BookingOptionUnit } from "./booking-option-unit";
4
+ import { BookingPackageAvailability } from "./booking-package-availability";
4
5
  import { BookingPackageFlight } from "./booking-package-flight";
5
6
  import { BookingPackageHotel } from "./booking-package-hotel";
6
7
  import { BookingPackageRequestRoom } from "./booking-package-request-room";
@@ -31,6 +32,7 @@ export interface BookingPackage {
31
32
  allotmentName: string;
32
33
  customAllotmentStatus: string;
33
34
  allotmentTagIds: number[];
35
+ availabilities: BookingPackageAvailability[];
34
36
  rooms: BookingPackageRoom[];
35
37
  groups: BookingOptionGroup<PerBookingPackageOption>[];
36
38
  optionUnits: BookingOptionUnit[];
@@ -39,4 +39,4 @@ export declare const book: (
39
39
  export declare const agents: (
40
40
  config: TideClientConfig,
41
41
  signal?: AbortSignal | undefined
42
- ) => Promise<BookingTravelAgent>;
42
+ ) => Promise<BookingTravelAgent[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qite/tide-client",
3
- "version": "1.0.57",
3
+ "version": "1.0.60",
4
4
  "description": "Frontend client for Tide",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -0,0 +1,7 @@
1
+ export interface BookingPackageAvailability {
2
+ code: string;
3
+ count: number;
4
+ fromDate: string;
5
+ toDate: string;
6
+ tourCode: string;
7
+ }
@@ -2,6 +2,7 @@ export interface BookingPackageRoomOption {
2
2
  entryLineGuid: string;
3
3
  productCode: string;
4
4
  accommodationCode: string;
5
+ externalAccommodationCode: string;
5
6
  accommodationName: string;
6
7
  regimeCode: string;
7
8
  regimeName: string;
@@ -9,4 +10,5 @@ export interface BookingPackageRoomOption {
9
10
  isSelected: boolean;
10
11
  from: string;
11
12
  to: string;
13
+ tourCode: string;
12
14
  }
@@ -1,6 +1,7 @@
1
1
  import { BookingOptionGroup } from "./booking-option-group";
2
2
  import { BookingOptionPax } from "./booking-option-pax";
3
3
  import { BookingOptionUnit } from "./booking-option-unit";
4
+ import { BookingPackageAvailability } from "./booking-package-availability";
4
5
  import { BookingPackageFlight } from "./booking-package-flight";
5
6
  import { BookingPackageHotel } from "./booking-package-hotel";
6
7
  import { BookingPackageRequestRoom } from "./booking-package-request-room";
@@ -38,6 +39,7 @@ export interface BookingPackage {
38
39
  customAllotmentStatus: string;
39
40
  allotmentTagIds: number[];
40
41
 
42
+ availabilities: BookingPackageAvailability[];
41
43
  rooms: BookingPackageRoom[];
42
44
  groups: BookingOptionGroup<PerBookingPackageOption>[];
43
45
  optionUnits: BookingOptionUnit[];
@@ -85,7 +85,7 @@ export const book = (
85
85
  export const agents = (
86
86
  config: TideClientConfig,
87
87
  signal?: AbortSignal
88
- ): Promise<BookingTravelAgent> => {
88
+ ): Promise<BookingTravelAgent[]> => {
89
89
  const url = `${config.host}${ENDPOINT_AGENTS}`;
90
90
  const apiKey = config.apiKey;
91
91