@qite/tide-client 1.0.72 → 1.0.73

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.
Files changed (30) hide show
  1. package/build/index.js +6393 -6393
  2. package/build/types/offer/booking-v2/request/booking-package-details-request.d.ts +19 -19
  3. package/build/types/offer/booking-v2/request/index.d.ts +7 -7
  4. package/build/types/offer/booking-v2/request/selected-flight.d.ts +4 -4
  5. package/build/types/offer/booking-v2/response/booking-package-flight-pool.d.ts +5 -5
  6. package/build/types/offer/booking-v2/response/booking-package-hotel-pool.d.ts +4 -4
  7. package/build/types/offer/booking-v2/response/index.d.ts +10 -10
  8. package/build/types/offer/index.d.ts +5 -0
  9. package/build/types/offer/member-confirmation-request.d.ts +5 -0
  10. package/build/types/offer/member-forgot-password-request.d.ts +4 -0
  11. package/build/types/offer/member-info.d.ts +10 -0
  12. package/build/types/offer/member-login-request.d.ts +4 -0
  13. package/build/types/offer/member-reset-password-request.d.ts +4 -0
  14. package/build/utils/booking-v2-client.d.ts +54 -54
  15. package/build/utils/member-client.d.ts +32 -0
  16. package/package.json +56 -56
  17. package/src/types/offer/booking-v2/request/booking-package-details-request.ts +22 -22
  18. package/src/types/offer/booking-v2/request/index.ts +7 -7
  19. package/src/types/offer/booking-v2/request/selected-flight.ts +4 -4
  20. package/src/types/offer/booking-v2/response/booking-package-flight-pool.ts +6 -6
  21. package/src/types/offer/booking-v2/response/booking-package-hotel-pool.ts +5 -5
  22. package/src/types/offer/booking-v2/response/index.ts +10 -10
  23. package/src/types/offer/index.ts +5 -0
  24. package/src/types/offer/member-confirmation-request.ts +5 -0
  25. package/src/types/offer/member-forgot-password-request.ts +4 -0
  26. package/src/types/offer/member-info.ts +10 -0
  27. package/src/types/offer/member-login-request.ts +4 -0
  28. package/src/types/offer/member-reset-password-request.ts +4 -0
  29. package/src/utils/booking-v2-client.ts +120 -120
  30. package/src/utils/member-client.ts +75 -0
@@ -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";
@@ -30,6 +30,11 @@ export * from "./flight-meta-data-line";
30
30
  export * from "./flight-meta-data";
31
31
  export * from "./flight-pool";
32
32
  export * from "./language";
33
+ export * from "./member-confirmation-request";
34
+ export * from "./member-forgot-password-request";
35
+ export * from "./member-info";
36
+ export * from "./member-login-request";
37
+ export * from "./member-reset-password-request";
33
38
  export * from "./multiroom-book-request";
34
39
  export * from "./note";
35
40
  export * from "./other-product";
@@ -0,0 +1,5 @@
1
+ export interface MemberConfirmationRequest {
2
+ token: string;
3
+ password: string;
4
+ hasAgreed: boolean;
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface MemberForgotPasswordRequest {
2
+ email: string;
3
+ origin?: string;
4
+ }
@@ -0,0 +1,10 @@
1
+ export interface MemberInfo {
2
+ id: number;
3
+ companyId: number;
4
+ name?: string;
5
+ username?: string;
6
+ email?: string;
7
+ language?: string;
8
+ agentId?: number;
9
+ allowedPortals?: string[];
10
+ }
@@ -0,0 +1,4 @@
1
+ export interface MemberLoginRequest {
2
+ username: string;
3
+ password: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ export interface MemberResetPasswordRequest {
2
+ token: string;
3
+ password: string;
4
+ }
@@ -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[]>;
@@ -0,0 +1,32 @@
1
+ import { TideClientConfig } from "..";
2
+ import {
3
+ MemberConfirmationRequest,
4
+ MemberForgotPasswordRequest,
5
+ MemberInfo,
6
+ MemberLoginRequest,
7
+ MemberResetPasswordRequest,
8
+ } from "../types";
9
+ export declare const login: (
10
+ config: TideClientConfig,
11
+ request: MemberLoginRequest,
12
+ signal?: AbortSignal | undefined
13
+ ) => Promise<MemberInfo>;
14
+ export declare const logout: (
15
+ config: TideClientConfig,
16
+ signal?: AbortSignal | undefined
17
+ ) => Promise<Response>;
18
+ export declare const confirm: (
19
+ config: TideClientConfig,
20
+ request: MemberConfirmationRequest,
21
+ signal?: AbortSignal | undefined
22
+ ) => Promise<Response>;
23
+ export declare const forgotPassword: (
24
+ config: TideClientConfig,
25
+ request: MemberForgotPasswordRequest,
26
+ signal?: AbortSignal | undefined
27
+ ) => Promise<Response>;
28
+ export declare const resetPassword: (
29
+ config: TideClientConfig,
30
+ request: MemberResetPasswordRequest,
31
+ signal?: AbortSignal | undefined
32
+ ) => Promise<Response>;
package/package.json CHANGED
@@ -1,56 +1,56 @@
1
- {
2
- "name": "@qite/tide-client",
3
- "version": "1.0.72",
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.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,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";
@@ -30,6 +30,11 @@ export * from "./flight-meta-data-line";
30
30
  export * from "./flight-meta-data";
31
31
  export * from "./flight-pool";
32
32
  export * from "./language";
33
+ export * from "./member-confirmation-request";
34
+ export * from "./member-forgot-password-request";
35
+ export * from "./member-info";
36
+ export * from "./member-login-request";
37
+ export * from "./member-reset-password-request";
33
38
  export * from "./multiroom-book-request";
34
39
  export * from "./note";
35
40
  export * from "./other-product";
@@ -0,0 +1,5 @@
1
+ export interface MemberConfirmationRequest {
2
+ token: string;
3
+ password: string;
4
+ hasAgreed: boolean;
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface MemberForgotPasswordRequest {
2
+ email: string;
3
+ origin?: string;
4
+ }
@@ -0,0 +1,10 @@
1
+ export interface MemberInfo {
2
+ id: number;
3
+ companyId: number;
4
+ name?: string;
5
+ username?: string;
6
+ email?: string;
7
+ language?: string;
8
+ agentId?: number;
9
+ allowedPortals?: string[];
10
+ }
@@ -0,0 +1,4 @@
1
+ export interface MemberLoginRequest {
2
+ username: string;
3
+ password: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ export interface MemberResetPasswordRequest {
2
+ token: string;
3
+ password: string;
4
+ }