@qite/tide-client 1.0.73 → 1.0.74

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.
@@ -1,19 +1,19 @@
1
- import { BookingPackageRequestRoom } from "../shared/booking-package-request-room";
2
- import { SelectedFlight } from "./selected-flight";
3
- export interface BookingPackageDetailsRequest {
4
- catalogueId?: number;
5
- rooms: BookingPackageRequestRoom[];
6
- searchType: number;
7
- productCode: string;
8
- allotmentName?: string;
9
- tourCode?: string;
10
- fromDate: string;
11
- toDate: string;
12
- preNights?: number;
13
- postNights?: number;
14
- includeFlights?: boolean;
15
- checkExternalAvailability?: boolean;
16
- hotelCode?: string;
17
- outwardFlight?: SelectedFlight;
18
- returnFlight?: SelectedFlight;
19
- }
1
+ import { BookingPackageRequestRoom } from "../shared/booking-package-request-room";
2
+ import { SelectedFlight } from "./selected-flight";
3
+ export interface BookingPackageDetailsRequest {
4
+ catalogueId?: number;
5
+ rooms: BookingPackageRequestRoom[];
6
+ searchType: number;
7
+ productCode: string;
8
+ allotmentName?: string;
9
+ tourCode?: string;
10
+ fromDate: string;
11
+ toDate: string;
12
+ preNights?: number;
13
+ postNights?: number;
14
+ includeFlights?: boolean;
15
+ checkExternalAvailability?: boolean;
16
+ hotelCode?: string;
17
+ outwardFlight?: SelectedFlight;
18
+ returnFlight?: SelectedFlight;
19
+ }
@@ -1,7 +1,7 @@
1
- export * from "./booking-package-address";
2
- export * from "./booking-package-book-request";
3
- export * from "./booking-package-destination";
4
- export * from "./booking-package-details-request";
5
- export * from "./booking-package-request";
6
- export * from "./booking-package-search-request";
7
- export * from "./selected-flight";
1
+ export * from "./booking-package-address";
2
+ export * from "./booking-package-book-request";
3
+ export * from "./booking-package-destination";
4
+ export * from "./booking-package-details-request";
5
+ export * from "./booking-package-request";
6
+ export * from "./booking-package-search-request";
7
+ export * from "./selected-flight";
@@ -1,4 +1,4 @@
1
- export interface SelectedFlight {
2
- flightCode: string;
3
- flightNumbers: string[];
4
- }
1
+ export interface SelectedFlight {
2
+ flightCode: string;
3
+ flightNumbers: string[];
4
+ }
@@ -1,5 +1,5 @@
1
- import { BookingPackageFlight } from "../shared";
2
- export interface BookingPackageFlightPool {
3
- outwardFlights: BookingPackageFlight[];
4
- returnFlights: BookingPackageFlight[];
5
- }
1
+ import { BookingPackageFlight } from "../shared";
2
+ export interface BookingPackageFlightPool {
3
+ outwardFlights: BookingPackageFlight[];
4
+ returnFlights: BookingPackageFlight[];
5
+ }
@@ -1,4 +1,4 @@
1
- import { BookingPackageHotel } from "../shared";
2
- export interface BookingPackageHotelPool {
3
- hotels: BookingPackageHotel[];
4
- }
1
+ import { BookingPackageHotel } from "../shared";
2
+ export interface BookingPackageHotelPool {
3
+ hotels: BookingPackageHotel[];
4
+ }
@@ -1,10 +1,10 @@
1
- export * from "./booking-package-allotment-info";
2
- export * from "./booking-package-dossier";
3
- export * from "./booking-package-item";
4
- export * from "./booking-price-detail";
5
- export * from "./booking-price-details";
6
- export * from "./booking-price-per-pax";
7
- export * from "./booking-travel-agent";
8
- export * from "./changed-line";
9
- export * from "./booking-package-flight-pool";
10
- export * from "./booking-package-hotel-pool";
1
+ export * from "./booking-package-allotment-info";
2
+ export * from "./booking-package-dossier";
3
+ export * from "./booking-package-item";
4
+ export * from "./booking-price-detail";
5
+ export * from "./booking-price-details";
6
+ export * from "./booking-price-per-pax";
7
+ export * from "./booking-travel-agent";
8
+ export * from "./changed-line";
9
+ export * from "./booking-package-flight-pool";
10
+ export * from "./booking-package-hotel-pool";
@@ -1,54 +1,54 @@
1
- import { PackageSearchRequest, TideClientConfig } from "..";
2
- import {
3
- AvailablePackage,
4
- BookingPackage,
5
- BookingPackageBookRequest,
6
- BookingPackageDetailsRequest,
7
- BookingPackageDossier,
8
- BookingPackageFlightPool,
9
- BookingPackageHotelPool,
10
- BookingPackageItem,
11
- BookingPackageRequest,
12
- BookingPackageSearchRequest,
13
- BookingPriceDetails,
14
- BookingTravelAgent,
15
- } from "../types";
16
- export declare const readPackageSearchList: (
17
- config: TideClientConfig,
18
- request: PackageSearchRequest,
19
- signal?: AbortSignal | undefined
20
- ) => Promise<AvailablePackage[]>;
21
- export declare const search: (
22
- config: TideClientConfig,
23
- request: BookingPackageRequest<BookingPackageSearchRequest>,
24
- signal?: AbortSignal | undefined
25
- ) => Promise<BookingPackageItem[]>;
26
- export declare const details: (
27
- config: TideClientConfig,
28
- request: BookingPackageRequest<BookingPackageDetailsRequest>,
29
- signal?: AbortSignal | undefined
30
- ) => Promise<BookingPackage>;
31
- export declare const alternateHotels: (
32
- config: TideClientConfig,
33
- transactionId: string,
34
- signal?: AbortSignal | undefined
35
- ) => Promise<BookingPackageHotelPool>;
36
- export declare const alternateFlights: (
37
- config: TideClientConfig,
38
- transactionId: string,
39
- signal?: AbortSignal | undefined
40
- ) => Promise<BookingPackageFlightPool>;
41
- export declare const priceDetails: (
42
- config: TideClientConfig,
43
- request: BookingPackageRequest<BookingPackageBookRequest>,
44
- signal?: AbortSignal | undefined
45
- ) => Promise<BookingPriceDetails>;
46
- export declare const book: (
47
- config: TideClientConfig,
48
- request: BookingPackageRequest<BookingPackageBookRequest>,
49
- signal?: AbortSignal | undefined
50
- ) => Promise<BookingPackageDossier>;
51
- export declare const agents: (
52
- config: TideClientConfig,
53
- signal?: AbortSignal | undefined
54
- ) => Promise<BookingTravelAgent[]>;
1
+ import { PackageSearchRequest, TideClientConfig } from "..";
2
+ import {
3
+ AvailablePackage,
4
+ BookingPackage,
5
+ BookingPackageBookRequest,
6
+ BookingPackageDetailsRequest,
7
+ BookingPackageDossier,
8
+ BookingPackageFlightPool,
9
+ BookingPackageHotelPool,
10
+ BookingPackageItem,
11
+ BookingPackageRequest,
12
+ BookingPackageSearchRequest,
13
+ BookingPriceDetails,
14
+ BookingTravelAgent,
15
+ } from "../types";
16
+ export declare const readPackageSearchList: (
17
+ config: TideClientConfig,
18
+ request: PackageSearchRequest,
19
+ signal?: AbortSignal | undefined
20
+ ) => Promise<AvailablePackage[]>;
21
+ export declare const search: (
22
+ config: TideClientConfig,
23
+ request: BookingPackageRequest<BookingPackageSearchRequest>,
24
+ signal?: AbortSignal | undefined
25
+ ) => Promise<BookingPackageItem[]>;
26
+ export declare const details: (
27
+ config: TideClientConfig,
28
+ request: BookingPackageRequest<BookingPackageDetailsRequest>,
29
+ signal?: AbortSignal | undefined
30
+ ) => Promise<BookingPackage>;
31
+ export declare const alternateHotels: (
32
+ config: TideClientConfig,
33
+ transactionId: string,
34
+ signal?: AbortSignal | undefined
35
+ ) => Promise<BookingPackageHotelPool>;
36
+ export declare const alternateFlights: (
37
+ config: TideClientConfig,
38
+ transactionId: string,
39
+ signal?: AbortSignal | undefined
40
+ ) => Promise<BookingPackageFlightPool>;
41
+ export declare const priceDetails: (
42
+ config: TideClientConfig,
43
+ request: BookingPackageRequest<BookingPackageBookRequest>,
44
+ signal?: AbortSignal | undefined
45
+ ) => Promise<BookingPriceDetails>;
46
+ export declare const book: (
47
+ config: TideClientConfig,
48
+ request: BookingPackageRequest<BookingPackageBookRequest>,
49
+ signal?: AbortSignal | undefined
50
+ ) => Promise<BookingPackageDossier>;
51
+ export declare const agents: (
52
+ config: TideClientConfig,
53
+ signal?: AbortSignal | undefined
54
+ ) => Promise<BookingTravelAgent[]>;
package/package.json CHANGED
@@ -1,56 +1,56 @@
1
- {
2
- "name": "@qite/tide-client",
3
- "version": "1.0.73",
4
- "description": "Frontend client for Tide",
5
- "main": "build/index.js",
6
- "scripts": {
7
- "build": "rollup -c",
8
- "tsc": "tsc --noEmit",
9
- "format": "prettier --write .",
10
- "test": "jest"
11
- },
12
- "repository": {
13
- "type": "git",
14
- "url": "git+ssh://git@bitbucket.org/qitegeneral/tide-client.git"
15
- },
16
- "keywords": [
17
- "tide",
18
- "client"
19
- ],
20
- "author": "Kristof Colpaert <kristof.colpaert@qite.be>",
21
- "license": "OBSD",
22
- "homepage": "https://bitbucket.org/qitegeneral/tide-client#readme",
23
- "devDependencies": {
24
- "@rollup/plugin-commonjs": "^19.0.0",
25
- "@rollup/plugin-node-resolve": "^13.0.0",
26
- "@types/jest": "^26.0.23",
27
- "@types/moment": "^2.13.0",
28
- "dotenv": "^9.0.2",
29
- "jest": "^26.6.3",
30
- "jest-fetch-mock": "^3.0.3",
31
- "momentjs": "^2.0.0",
32
- "prettier": "^2.3.0",
33
- "rollup": "^2.48.0",
34
- "rollup-plugin-typescript2": "^0.30.0",
35
- "ts-jest": "^26.5.6",
36
- "tslib": "^2.2.0",
37
- "typescript": "^4.2.4"
38
- },
39
- "jest": {
40
- "moduleFileExtensions": [
41
- "ts",
42
- "js"
43
- ],
44
- "transform": {
45
- "^.+\\.ts$": "ts-jest"
46
- },
47
- "globals": {
48
- "ts-jest": {
49
- "tsconfig": "tsconfig.json"
50
- }
51
- },
52
- "testMatch": [
53
- "**/tests/**/*.test.ts"
54
- ]
55
- }
56
- }
1
+ {
2
+ "name": "@qite/tide-client",
3
+ "version": "1.0.74",
4
+ "description": "Frontend client for Tide",
5
+ "main": "build/index.js",
6
+ "scripts": {
7
+ "build": "rollup -c",
8
+ "tsc": "tsc --noEmit",
9
+ "format": "prettier --write .",
10
+ "test": "jest"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+ssh://git@bitbucket.org/qitegeneral/tide-client.git"
15
+ },
16
+ "keywords": [
17
+ "tide",
18
+ "client"
19
+ ],
20
+ "author": "Kristof Colpaert <kristof.colpaert@qite.be>",
21
+ "license": "OBSD",
22
+ "homepage": "https://bitbucket.org/qitegeneral/tide-client#readme",
23
+ "devDependencies": {
24
+ "@rollup/plugin-commonjs": "^19.0.0",
25
+ "@rollup/plugin-node-resolve": "^13.0.0",
26
+ "@types/jest": "^26.0.23",
27
+ "@types/moment": "^2.13.0",
28
+ "dotenv": "^9.0.2",
29
+ "jest": "^26.6.3",
30
+ "jest-fetch-mock": "^3.0.3",
31
+ "momentjs": "^2.0.0",
32
+ "prettier": "^2.3.0",
33
+ "rollup": "^2.48.0",
34
+ "rollup-plugin-typescript2": "^0.30.0",
35
+ "ts-jest": "^26.5.6",
36
+ "tslib": "^2.2.0",
37
+ "typescript": "^4.2.4"
38
+ },
39
+ "jest": {
40
+ "moduleFileExtensions": [
41
+ "ts",
42
+ "js"
43
+ ],
44
+ "transform": {
45
+ "^.+\\.ts$": "ts-jest"
46
+ },
47
+ "globals": {
48
+ "ts-jest": {
49
+ "tsconfig": "tsconfig.json"
50
+ }
51
+ },
52
+ "testMatch": [
53
+ "**/tests/**/*.test.ts"
54
+ ]
55
+ }
56
+ }
package/src/index.ts CHANGED
@@ -60,6 +60,7 @@ export { FlightMetaData } from "./types";
60
60
 
61
61
  export * from "./utils/booking-client";
62
62
  export * from "./utils/booking-v2-client";
63
+ export * from "./utils/member-client";
63
64
  export * from "./utils/mollie-client";
64
65
  export * from "./utils/web-client";
65
66
  export * from "./utils/web-contact-client";
@@ -1,22 +1,22 @@
1
- import { BookingPackageRequestRoom } from "../shared/booking-package-request-room";
2
- import { SelectedFlight } from "./selected-flight";
3
-
4
- export interface BookingPackageDetailsRequest {
5
- catalogueId?: number;
6
- rooms: BookingPackageRequestRoom[];
7
- searchType: number;
8
- productCode: string;
9
- allotmentName?: string;
10
- tourCode?: string;
11
- fromDate: string;
12
- toDate: string;
13
- preNights?: number;
14
- postNights?: number;
15
- includeFlights?: boolean;
16
- checkExternalAvailability?: boolean;
17
-
18
- // lazy loading
19
- hotelCode?: string;
20
- outwardFlight?: SelectedFlight;
21
- returnFlight?: SelectedFlight;
22
- }
1
+ import { BookingPackageRequestRoom } from "../shared/booking-package-request-room";
2
+ import { SelectedFlight } from "./selected-flight";
3
+
4
+ export interface BookingPackageDetailsRequest {
5
+ catalogueId?: number;
6
+ rooms: BookingPackageRequestRoom[];
7
+ searchType: number;
8
+ productCode: string;
9
+ allotmentName?: string;
10
+ tourCode?: string;
11
+ fromDate: string;
12
+ toDate: string;
13
+ preNights?: number;
14
+ postNights?: number;
15
+ includeFlights?: boolean;
16
+ checkExternalAvailability?: boolean;
17
+
18
+ // lazy loading
19
+ hotelCode?: string;
20
+ outwardFlight?: SelectedFlight;
21
+ returnFlight?: SelectedFlight;
22
+ }
@@ -1,7 +1,7 @@
1
- export * from "./booking-package-address";
2
- export * from "./booking-package-book-request";
3
- export * from "./booking-package-destination";
4
- export * from "./booking-package-details-request";
5
- export * from "./booking-package-request";
6
- export * from "./booking-package-search-request";
7
- export * from "./selected-flight";
1
+ export * from "./booking-package-address";
2
+ export * from "./booking-package-book-request";
3
+ export * from "./booking-package-destination";
4
+ export * from "./booking-package-details-request";
5
+ export * from "./booking-package-request";
6
+ export * from "./booking-package-search-request";
7
+ export * from "./selected-flight";
@@ -1,4 +1,4 @@
1
- export interface SelectedFlight {
2
- flightCode: string;
3
- flightNumbers: string[];
4
- }
1
+ export interface SelectedFlight {
2
+ flightCode: string;
3
+ flightNumbers: string[];
4
+ }
@@ -1,6 +1,6 @@
1
- import { BookingPackageFlight } from "../shared";
2
-
3
- export interface BookingPackageFlightPool {
4
- outwardFlights: BookingPackageFlight[];
5
- returnFlights: BookingPackageFlight[];
6
- }
1
+ import { BookingPackageFlight } from "../shared";
2
+
3
+ export interface BookingPackageFlightPool {
4
+ outwardFlights: BookingPackageFlight[];
5
+ returnFlights: BookingPackageFlight[];
6
+ }
@@ -1,5 +1,5 @@
1
- import { BookingPackageHotel } from "../shared";
2
-
3
- export interface BookingPackageHotelPool {
4
- hotels: BookingPackageHotel[];
5
- }
1
+ import { BookingPackageHotel } from "../shared";
2
+
3
+ export interface BookingPackageHotelPool {
4
+ hotels: BookingPackageHotel[];
5
+ }
@@ -1,10 +1,10 @@
1
- export * from "./booking-package-allotment-info";
2
- export * from "./booking-package-dossier";
3
- export * from "./booking-package-item";
4
- export * from "./booking-price-detail";
5
- export * from "./booking-price-details";
6
- export * from "./booking-price-per-pax";
7
- export * from "./booking-travel-agent";
8
- export * from "./changed-line";
9
- export * from "./booking-package-flight-pool";
10
- export * from "./booking-package-hotel-pool";
1
+ export * from "./booking-package-allotment-info";
2
+ export * from "./booking-package-dossier";
3
+ export * from "./booking-package-item";
4
+ export * from "./booking-price-detail";
5
+ export * from "./booking-price-details";
6
+ export * from "./booking-price-per-pax";
7
+ export * from "./booking-travel-agent";
8
+ export * from "./changed-line";
9
+ export * from "./booking-package-flight-pool";
10
+ export * from "./booking-package-hotel-pool";