@qite/tide-client 1.0.29 → 1.0.33
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.
- package/build/index.js +5681 -1
- package/build/index.js.map +1 -1
- package/build/types/offer/booking-v2/request/booking-package-destination.d.ts +9 -9
- package/build/types/offer/booking-v2/request/booking-package-search-request.d.ts +22 -22
- package/build/types/offer/booking-v2/request/index.d.ts +6 -6
- package/build/types/offer/booking-v2/response/booking-package-item.d.ts +1 -0
- package/build/types/offer/booking-v2/shared/booking-package-flight.d.ts +2 -0
- package/build/types/offer/booking-v2/shared/booking-package-hotel.d.ts +17 -17
- package/build/types/offer/booking-v2/shared/booking-package-line.d.ts +2 -0
- package/package.json +56 -54
- package/src/types/offer/booking-v2/request/booking-package-destination.ts +9 -9
- package/src/types/offer/booking-v2/request/booking-package-search-request.ts +25 -25
- package/src/types/offer/booking-v2/request/index.ts +6 -6
- package/src/types/offer/booking-v2/response/booking-package-item.ts +1 -0
- package/src/types/offer/booking-v2/shared/booking-package-flight.ts +3 -0
- package/src/types/offer/booking-v2/shared/booking-package-hotel.ts +22 -22
- package/src/types/offer/booking-v2/shared/booking-package-line.ts +2 -0
- package/src/utils/json.ts +4 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface BookingPackageDestination {
|
|
2
|
-
id: number;
|
|
3
|
-
code: string;
|
|
4
|
-
name: string;
|
|
5
|
-
isCountry: boolean;
|
|
6
|
-
isRegion: boolean;
|
|
7
|
-
isOord: boolean;
|
|
8
|
-
isLocation: boolean;
|
|
9
|
-
}
|
|
1
|
+
export interface BookingPackageDestination {
|
|
2
|
+
id: number;
|
|
3
|
+
code: string;
|
|
4
|
+
name: string;
|
|
5
|
+
isCountry: boolean;
|
|
6
|
+
isRegion: boolean;
|
|
7
|
+
isOord: boolean;
|
|
8
|
+
isLocation: boolean;
|
|
9
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { BookingPackageRequestRoom } from "../shared/booking-package-request-room";
|
|
2
|
-
import { BookingPackageDestination } from "./booking-package-destination";
|
|
3
|
-
export interface BookingPackageSearchRequest {
|
|
4
|
-
catalogueIds: number[];
|
|
5
|
-
rooms: BookingPackageRequestRoom[];
|
|
6
|
-
serviceType?: number;
|
|
7
|
-
searchType?: number;
|
|
8
|
-
destination: BookingPackageDestination;
|
|
9
|
-
productIds: number[];
|
|
10
|
-
productCodes: string[];
|
|
11
|
-
fromDate: Date;
|
|
12
|
-
toDate: Date;
|
|
13
|
-
productTagIds: number[];
|
|
14
|
-
includeFlights: boolean;
|
|
15
|
-
minPrice?: number;
|
|
16
|
-
maxPrice?: number;
|
|
17
|
-
allotmentName: string;
|
|
18
|
-
tourCode: string;
|
|
19
|
-
allotmentTagIds: number[];
|
|
20
|
-
includeClosedAllotments: boolean;
|
|
21
|
-
includeFullyBookedAllotments: boolean;
|
|
22
|
-
}
|
|
1
|
+
import { BookingPackageRequestRoom } from "../shared/booking-package-request-room";
|
|
2
|
+
import { BookingPackageDestination } from "./booking-package-destination";
|
|
3
|
+
export interface BookingPackageSearchRequest {
|
|
4
|
+
catalogueIds: number[];
|
|
5
|
+
rooms: BookingPackageRequestRoom[];
|
|
6
|
+
serviceType?: number;
|
|
7
|
+
searchType?: number;
|
|
8
|
+
destination: BookingPackageDestination;
|
|
9
|
+
productIds: number[];
|
|
10
|
+
productCodes: string[];
|
|
11
|
+
fromDate: Date;
|
|
12
|
+
toDate: Date;
|
|
13
|
+
productTagIds: number[];
|
|
14
|
+
includeFlights: boolean;
|
|
15
|
+
minPrice?: number;
|
|
16
|
+
maxPrice?: number;
|
|
17
|
+
allotmentName: string;
|
|
18
|
+
tourCode: string;
|
|
19
|
+
allotmentTagIds: number[];
|
|
20
|
+
includeClosedAllotments: boolean;
|
|
21
|
+
includeFullyBookedAllotments: boolean;
|
|
22
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
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";
|
|
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";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FlightMetaData } from "../../flight-meta-data";
|
|
1
2
|
export interface BookingPackageFlight {
|
|
2
3
|
code: string;
|
|
3
4
|
tag: string;
|
|
@@ -8,4 +9,5 @@ export interface BookingPackageFlight {
|
|
|
8
9
|
isSelected: boolean;
|
|
9
10
|
externalGuid?: string;
|
|
10
11
|
entryLineGuid: string;
|
|
12
|
+
flightMetaData: FlightMetaData;
|
|
11
13
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { BookingPackageHotelRoom } from "./booking-package-hotel-room";
|
|
2
|
-
export interface BookingPackageHotel {
|
|
3
|
-
name: string;
|
|
4
|
-
isSelected: boolean;
|
|
5
|
-
cheapestPrice: number;
|
|
6
|
-
latitude: number;
|
|
7
|
-
longitude: number;
|
|
8
|
-
rooms: BookingPackageHotelRoom[];
|
|
9
|
-
combinations: string[][];
|
|
10
|
-
stars: string;
|
|
11
|
-
rating: string;
|
|
12
|
-
description: string;
|
|
13
|
-
imageUrl: string;
|
|
14
|
-
facilities: string;
|
|
15
|
-
travelDurationToVenue: string;
|
|
16
|
-
travelDurationToCenter: string;
|
|
17
|
-
}
|
|
1
|
+
import { BookingPackageHotelRoom } from "./booking-package-hotel-room";
|
|
2
|
+
export interface BookingPackageHotel {
|
|
3
|
+
name: string;
|
|
4
|
+
isSelected: boolean;
|
|
5
|
+
cheapestPrice: number;
|
|
6
|
+
latitude: number;
|
|
7
|
+
longitude: number;
|
|
8
|
+
rooms: BookingPackageHotelRoom[];
|
|
9
|
+
combinations: string[][];
|
|
10
|
+
stars: string;
|
|
11
|
+
rating: string;
|
|
12
|
+
description: string;
|
|
13
|
+
imageUrl: string;
|
|
14
|
+
facilities: string;
|
|
15
|
+
travelDurationToVenue: string;
|
|
16
|
+
travelDurationToCenter: string;
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,54 +1,56 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@qite/tide-client",
|
|
3
|
-
"version": "1.0.
|
|
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
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"jest
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@qite/tide-client",
|
|
3
|
+
"version": "1.0.33",
|
|
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,9 +1,9 @@
|
|
|
1
|
-
export interface BookingPackageDestination {
|
|
2
|
-
id: number;
|
|
3
|
-
code: string;
|
|
4
|
-
name: string;
|
|
5
|
-
isCountry: boolean;
|
|
6
|
-
isRegion: boolean;
|
|
7
|
-
isOord: boolean;
|
|
8
|
-
isLocation: boolean;
|
|
9
|
-
}
|
|
1
|
+
export interface BookingPackageDestination {
|
|
2
|
+
id: number;
|
|
3
|
+
code: string;
|
|
4
|
+
name: string;
|
|
5
|
+
isCountry: boolean;
|
|
6
|
+
isRegion: boolean;
|
|
7
|
+
isOord: boolean;
|
|
8
|
+
isLocation: boolean;
|
|
9
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { BookingPackageRequestRoom } from "../shared/booking-package-request-room";
|
|
2
|
-
import { BookingPackageDestination } from "./booking-package-destination";
|
|
3
|
-
|
|
4
|
-
export interface BookingPackageSearchRequest {
|
|
5
|
-
catalogueIds: number[];
|
|
6
|
-
rooms: BookingPackageRequestRoom[];
|
|
7
|
-
serviceType?: number;
|
|
8
|
-
searchType?: number;
|
|
9
|
-
destination: BookingPackageDestination;
|
|
10
|
-
productIds: number[];
|
|
11
|
-
productCodes: string[];
|
|
12
|
-
fromDate: Date;
|
|
13
|
-
toDate: Date;
|
|
14
|
-
productTagIds: number[];
|
|
15
|
-
includeFlights: boolean;
|
|
16
|
-
|
|
17
|
-
minPrice?: number;
|
|
18
|
-
maxPrice?: number;
|
|
19
|
-
|
|
20
|
-
allotmentName: string;
|
|
21
|
-
tourCode: string;
|
|
22
|
-
allotmentTagIds: number[];
|
|
23
|
-
includeClosedAllotments: boolean;
|
|
24
|
-
includeFullyBookedAllotments: boolean;
|
|
25
|
-
}
|
|
1
|
+
import { BookingPackageRequestRoom } from "../shared/booking-package-request-room";
|
|
2
|
+
import { BookingPackageDestination } from "./booking-package-destination";
|
|
3
|
+
|
|
4
|
+
export interface BookingPackageSearchRequest {
|
|
5
|
+
catalogueIds: number[];
|
|
6
|
+
rooms: BookingPackageRequestRoom[];
|
|
7
|
+
serviceType?: number;
|
|
8
|
+
searchType?: number;
|
|
9
|
+
destination: BookingPackageDestination;
|
|
10
|
+
productIds: number[];
|
|
11
|
+
productCodes: string[];
|
|
12
|
+
fromDate: Date;
|
|
13
|
+
toDate: Date;
|
|
14
|
+
productTagIds: number[];
|
|
15
|
+
includeFlights: boolean;
|
|
16
|
+
|
|
17
|
+
minPrice?: number;
|
|
18
|
+
maxPrice?: number;
|
|
19
|
+
|
|
20
|
+
allotmentName: string;
|
|
21
|
+
tourCode: string;
|
|
22
|
+
allotmentTagIds: number[];
|
|
23
|
+
includeClosedAllotments: boolean;
|
|
24
|
+
includeFullyBookedAllotments: boolean;
|
|
25
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
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";
|
|
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";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { FlightMetaData } from "../../flight-meta-data";
|
|
2
|
+
|
|
1
3
|
export interface BookingPackageFlight {
|
|
2
4
|
code: string;
|
|
3
5
|
tag: string;
|
|
@@ -8,4 +10,5 @@ export interface BookingPackageFlight {
|
|
|
8
10
|
isSelected: boolean;
|
|
9
11
|
externalGuid?: string;
|
|
10
12
|
entryLineGuid: string;
|
|
13
|
+
flightMetaData: FlightMetaData;
|
|
11
14
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { BookingPackageHotelRoom } from "./booking-package-hotel-room";
|
|
2
|
-
|
|
3
|
-
export interface BookingPackageHotel {
|
|
4
|
-
name: string;
|
|
5
|
-
isSelected: boolean;
|
|
6
|
-
cheapestPrice: number;
|
|
7
|
-
|
|
8
|
-
latitude: number;
|
|
9
|
-
longitude: number;
|
|
10
|
-
|
|
11
|
-
rooms: BookingPackageHotelRoom[];
|
|
12
|
-
combinations: string[][];
|
|
13
|
-
|
|
14
|
-
stars: string;
|
|
15
|
-
rating: string;
|
|
16
|
-
description: string;
|
|
17
|
-
imageUrl: string;
|
|
18
|
-
facilities: string;
|
|
19
|
-
|
|
20
|
-
travelDurationToVenue: string;
|
|
21
|
-
travelDurationToCenter: string;
|
|
22
|
-
}
|
|
1
|
+
import { BookingPackageHotelRoom } from "./booking-package-hotel-room";
|
|
2
|
+
|
|
3
|
+
export interface BookingPackageHotel {
|
|
4
|
+
name: string;
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
cheapestPrice: number;
|
|
7
|
+
|
|
8
|
+
latitude: number;
|
|
9
|
+
longitude: number;
|
|
10
|
+
|
|
11
|
+
rooms: BookingPackageHotelRoom[];
|
|
12
|
+
combinations: string[][];
|
|
13
|
+
|
|
14
|
+
stars: string;
|
|
15
|
+
rating: string;
|
|
16
|
+
description: string;
|
|
17
|
+
imageUrl: string;
|
|
18
|
+
facilities: string;
|
|
19
|
+
|
|
20
|
+
travelDurationToVenue: string;
|
|
21
|
+
travelDurationToCenter: string;
|
|
22
|
+
}
|
package/src/utils/json.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import moment from "moment";
|
|
2
|
+
|
|
1
3
|
export const reviver = (_: any, value: any) => {
|
|
4
|
+
const formats = [moment.ISO_8601, "MM/DD/YYYY"];
|
|
2
5
|
if (typeof value === "string") {
|
|
3
|
-
if (
|
|
6
|
+
if (moment(value, formats, true).isValid()) {
|
|
4
7
|
return new Date(value);
|
|
5
8
|
}
|
|
6
9
|
}
|