@qite/tide-client 1.0.12 → 1.0.15
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.d.ts +10 -46
- package/build/index.js +442 -504
- package/build/index.js.map +1 -1
- package/build/types/aapi/accommodation-occupancy.d.ts +9 -9
- package/build/types/aapi/accommodation-with-available-places.d.ts +14 -14
- package/build/types/aapi/accommodation.d.ts +7 -7
- package/build/types/aapi/additional-services.d.ts +6 -6
- package/build/types/aapi/alternative-flight-data.d.ts +10 -10
- package/build/types/aapi/alternative-flight-leg.d.ts +18 -18
- package/build/types/aapi/alternative-flight.d.ts +12 -12
- package/build/types/aapi/availability-request.d.ts +12 -12
- package/build/types/aapi/availability.d.ts +5 -5
- package/build/types/aapi/available-products-request.d.ts +32 -32
- package/build/types/aapi/duration.d.ts +4 -4
- package/build/types/aapi/flight-leg.d.ts +18 -18
- package/build/types/aapi/flight.d.ts +23 -23
- package/build/types/aapi/hotel.d.ts +35 -35
- package/build/types/aapi/index.d.ts +22 -22
- package/build/types/aapi/mollie-payment-request.d.ts +6 -6
- package/build/types/aapi/mollie-payment.d.ts +3 -3
- package/build/types/aapi/option-pax.d.ts +4 -4
- package/build/types/aapi/option.d.ts +21 -28
- package/build/types/aapi/pax.d.ts +4 -4
- package/build/types/aapi/price-detail.d.ts +8 -8
- package/build/types/aapi/regime.d.ts +5 -5
- package/build/types/aapi/traveler-grouping.d.ts +5 -5
- package/build/types/enums/allotment-type.d.ts +5 -5
- package/build/types/enums/availability-search-type.d.ts +4 -4
- package/build/types/enums/dossier-type.d.ts +6 -6
- package/build/types/enums/entry-line-flag.d.ts +6 -6
- package/build/types/enums/entry-line-status.d.ts +19 -19
- package/build/types/enums/entry-status.d.ts +8 -8
- package/build/types/enums/export-status.d.ts +5 -5
- package/build/types/enums/gender.d.ts +5 -5
- package/build/types/enums/index.d.ts +15 -15
- package/build/types/enums/meta-data-type.d.ts +10 -10
- package/build/types/enums/payment-type.d.ts +6 -6
- package/build/types/enums/price-chart-type.d.ts +4 -4
- package/build/types/enums/requirement-type.d.ts +5 -5
- package/build/types/enums/room-type.d.ts +8 -8
- package/build/types/enums/sale-type.d.ts +4 -4
- package/build/types/enums/service-type.d.ts +26 -26
- package/build/types/index.d.ts +4 -26
- package/build/types/offer/additional-services.d.ts +6 -6
- package/build/types/offer/address.d.ts +11 -11
- package/build/types/offer/alternative-flight-data.d.ts +10 -10
- package/build/types/offer/alternative-flight-leg.d.ts +18 -18
- package/build/types/offer/alternative-flight.d.ts +14 -14
- package/build/types/offer/available-package-accommodation.d.ts +7 -0
- package/build/types/offer/available-package-flight.d.ts +9 -0
- package/build/types/offer/available-package-option.d.ts +12 -0
- package/build/types/offer/available-package-pax-price.d.ts +6 -0
- package/build/types/offer/available-package-regime.d.ts +4 -0
- package/build/types/offer/available-package.d.ts +7 -0
- package/build/types/offer/base-price.d.ts +6 -6
- package/build/types/offer/base-prices-from-date-request.d.ts +12 -12
- package/build/types/offer/base-prices-request.d.ts +12 -12
- package/build/types/offer/book-request.d.ts +36 -36
- package/build/types/offer/booking-response.d.ts +4 -4
- package/build/types/offer/booking-v2/index.d.ts +3 -0
- package/build/types/offer/booking-v2/request/booking-package-address.d.ts +13 -0
- package/build/types/offer/booking-v2/request/booking-package-book-request.d.ts +12 -0
- package/build/types/offer/booking-v2/request/booking-package-details-request.d.ts +11 -0
- package/build/types/offer/booking-v2/request/booking-package-request.d.ts +6 -0
- package/build/types/offer/booking-v2/request/booking-package-search-request.d.ts +19 -0
- package/build/types/offer/booking-v2/request/index.d.ts +5 -0
- package/build/types/offer/booking-v2/response/booking-package-allotment-info.d.ts +13 -0
- package/build/types/offer/booking-v2/response/booking-package-dossier.d.ts +5 -0
- package/build/types/offer/booking-v2/response/booking-package-item.d.ts +11 -0
- package/build/types/offer/booking-v2/response/booking-price-detail.d.ts +13 -0
- package/build/types/offer/booking-v2/response/booking-price-details.d.ts +6 -0
- package/build/types/offer/booking-v2/response/booking-price-per-pax.d.ts +4 -0
- package/build/types/offer/booking-v2/response/changed-line.d.ts +4 -0
- package/build/types/offer/booking-v2/response/index.d.ts +7 -0
- package/build/types/offer/booking-v2/shared/booking-option-group.d.ts +5 -0
- package/build/types/offer/booking-v2/shared/booking-option-pax.d.ts +7 -0
- package/build/types/offer/booking-v2/shared/booking-option-unit.d.ts +6 -0
- package/build/types/offer/booking-v2/shared/booking-package-flight.d.ts +11 -0
- package/build/types/offer/booking-v2/shared/booking-package-hotel-option.d.ts +7 -0
- package/build/types/offer/booking-v2/shared/booking-package-hotel-room.d.ts +5 -0
- package/build/types/offer/booking-v2/shared/booking-package-hotel.d.ts +10 -0
- package/build/types/offer/booking-v2/shared/booking-package-line.d.ts +7 -0
- package/build/types/offer/booking-v2/shared/booking-package-pax.d.ts +16 -0
- package/build/types/offer/booking-v2/shared/booking-package-request-room.d.ts +5 -0
- package/build/types/offer/booking-v2/shared/booking-package-room-option.d.ts +7 -0
- package/build/types/offer/booking-v2/shared/booking-package-room.d.ts +5 -0
- package/build/types/offer/booking-v2/shared/booking-package.d.ts +27 -0
- package/build/types/offer/booking-v2/shared/index.d.ts +17 -0
- package/build/types/offer/booking-v2/shared/per-booking-package-option.d.ts +9 -0
- package/build/types/offer/booking-v2/shared/per-package-option.d.ts +8 -0
- package/build/types/offer/booking-v2/shared/per-pax-package-option.d.ts +5 -0
- package/build/types/offer/booking-v2/shared/per-unit-package-option.d.ts +7 -0
- package/build/types/offer/cached-package-search-result.d.ts +5 -5
- package/build/types/offer/confirmed-dossier-check.d.ts +6 -6
- package/build/types/offer/crm-contact-request.d.ts +28 -36
- package/build/types/offer/customer-request.d.ts +5 -5
- package/build/types/offer/dossier-default-product.d.ts +14 -14
- package/build/types/offer/entry-check-response.d.ts +8 -8
- package/build/types/offer/entry-line-meta-data.d.ts +5 -5
- package/build/types/offer/entry-line-pax.d.ts +8 -8
- package/build/types/offer/entry-line.d.ts +67 -73
- package/build/types/offer/entry-price-line.d.ts +40 -40
- package/build/types/offer/entry-room2.d.ts +5 -5
- package/build/types/offer/entry.d.ts +49 -59
- package/build/types/offer/flight-meta-data-line.d.ts +16 -0
- package/build/types/offer/flight-meta-data.d.ts +10 -0
- package/build/types/offer/flight-pool.d.ts +5 -5
- package/build/types/offer/index.d.ts +65 -56
- package/build/types/offer/language.d.ts +5 -5
- package/build/types/offer/multiroom-book-request.d.ts +10 -10
- package/build/types/offer/note.d.ts +16 -16
- package/build/types/offer/other-product.d.ts +13 -13
- package/build/types/offer/package-book-request-room.d.ts +5 -5
- package/build/types/offer/package-book-request.d.ts +12 -12
- package/build/types/offer/package-flight.d.ts +13 -13
- package/build/types/offer/package-flights.d.ts +5 -5
- package/build/types/offer/package-option.d.ts +22 -22
- package/build/types/offer/package-price-details-request-room.d.ts +4 -4
- package/build/types/offer/package-price-details-request.d.ts +8 -8
- package/build/types/offer/package-room-option.d.ts +10 -10
- package/build/types/offer/package-room.d.ts +7 -7
- package/build/types/offer/package-search-destination.d.ts +9 -9
- package/build/types/offer/package-search-request-date.d.ts +4 -4
- package/build/types/offer/package-search-request-room.d.ts +5 -5
- package/build/types/offer/package-search-request.d.ts +18 -22
- package/build/types/offer/package-search-result.d.ts +12 -12
- package/build/types/offer/package-sub-option.d.ts +6 -6
- package/build/types/offer/pax.d.ts +29 -29
- package/build/types/offer/payment.d.ts +20 -20
- package/build/types/offer/person-country-preference.d.ts +7 -7
- package/build/types/offer/person-location-preference.d.ts +7 -7
- package/build/types/offer/person-oord-preference.d.ts +7 -7
- package/build/types/offer/person-period-date-range-preference.d.ts +6 -6
- package/build/types/offer/person-period-preference.d.ts +7 -7
- package/build/types/offer/person-region-preference.d.ts +7 -7
- package/build/types/offer/person-tour-group-preference.d.ts +7 -7
- package/build/types/offer/price-detail.d.ts +18 -18
- package/build/types/offer/price-per-pax.d.ts +6 -6
- package/build/types/offer/product-notification-result.d.ts +9 -9
- package/build/types/offer/web-contact-form-request.d.ts +13 -13
- package/build/types/offer/web-contact-has-tag-request.d.ts +4 -4
- package/build/types/tide-client-config.d.ts +4 -4
- package/build/utils/api.d.ts +1 -6
- package/build/utils/booking-client.d.ts +102 -169
- package/build/utils/booking-v2-client.d.ts +7 -0
- package/build/utils/common-client.d.ts +1 -6
- package/build/utils/json.d.ts +2 -2
- package/build/utils/mollie-client.d.ts +7 -15
- package/build/utils/web-client.d.ts +10 -14
- package/build/utils/web-contact-client.d.ts +11 -23
- package/package.json +54 -54
- package/src/index.ts +5 -0
- package/src/types/offer/available-package-accommodation.ts +8 -0
- package/src/types/offer/available-package-flight.ts +10 -0
- package/src/types/offer/available-package-option.ts +18 -0
- package/src/types/offer/available-package-pax-price.ts +6 -0
- package/src/types/offer/available-package-regime.ts +4 -0
- package/src/types/offer/available-package.ts +8 -0
- package/src/types/offer/booking-v2/index.ts +3 -0
- package/src/types/offer/booking-v2/request/booking-package-address.ts +13 -0
- package/src/types/offer/booking-v2/request/booking-package-book-request.ts +14 -0
- package/src/types/offer/booking-v2/request/booking-package-details-request.ts +12 -0
- package/src/types/offer/booking-v2/request/booking-package-request.ts +6 -0
- package/src/types/offer/booking-v2/request/booking-package-search-request.ts +22 -0
- package/src/types/offer/booking-v2/request/index.ts +5 -0
- package/src/types/offer/booking-v2/response/booking-package-allotment-info.ts +13 -0
- package/src/types/offer/booking-v2/response/booking-package-dossier.ts +5 -0
- package/src/types/offer/booking-v2/response/booking-package-item.ts +13 -0
- package/src/types/offer/booking-v2/response/booking-price-detail.ts +15 -0
- package/src/types/offer/booking-v2/response/booking-price-details.ts +7 -0
- package/src/types/offer/booking-v2/response/booking-price-per-pax.ts +4 -0
- package/src/types/offer/booking-v2/response/changed-line.ts +4 -0
- package/src/types/offer/booking-v2/response/index.ts +7 -0
- package/src/types/offer/booking-v2/shared/booking-option-group.ts +5 -0
- package/src/types/offer/booking-v2/shared/booking-option-pax.ts +8 -0
- package/src/types/offer/booking-v2/shared/booking-option-unit.ts +7 -0
- package/src/types/offer/booking-v2/shared/booking-package-flight.ts +11 -0
- package/src/types/offer/booking-v2/shared/booking-package-hotel-option.ts +7 -0
- package/src/types/offer/booking-v2/shared/booking-package-hotel-room.ts +6 -0
- package/src/types/offer/booking-v2/shared/booking-package-hotel.ts +13 -0
- package/src/types/offer/booking-v2/shared/booking-package-line.ts +7 -0
- package/src/types/offer/booking-v2/shared/booking-package-pax.ts +18 -0
- package/src/types/offer/booking-v2/shared/booking-package-request-room.ts +6 -0
- package/src/types/offer/booking-v2/shared/booking-package-room-option.ts +7 -0
- package/src/types/offer/booking-v2/shared/booking-package-room.ts +6 -0
- package/src/types/offer/booking-v2/shared/booking-package.ts +33 -0
- package/src/types/offer/booking-v2/shared/index.ts +17 -0
- package/src/types/offer/booking-v2/shared/per-booking-package-option.ts +10 -0
- package/src/types/offer/booking-v2/shared/per-package-option.ts +9 -0
- package/src/types/offer/booking-v2/shared/per-pax-package-option.ts +6 -0
- package/src/types/offer/booking-v2/shared/per-unit-package-option.ts +8 -0
- package/src/types/offer/flight-meta-data-line.ts +16 -0
- package/src/types/offer/flight-meta-data.ts +11 -0
- package/src/types/offer/index.ts +9 -0
- package/src/utils/booking-v2-client.ts +81 -0
package/package.json
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
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
|
-
"dotenv": "^9.0.2",
|
|
28
|
-
"jest": "^26.6.3",
|
|
29
|
-
"jest-fetch-mock": "^3.0.3",
|
|
30
|
-
"prettier": "^2.3.0",
|
|
31
|
-
"rollup": "^2.48.0",
|
|
32
|
-
"rollup-plugin-typescript2": "^0.30.0",
|
|
33
|
-
"ts-jest": "^26.5.6",
|
|
34
|
-
"tslib": "^2.2.0",
|
|
35
|
-
"typescript": "^4.2.4"
|
|
36
|
-
},
|
|
37
|
-
"jest": {
|
|
38
|
-
"moduleFileExtensions": [
|
|
39
|
-
"ts",
|
|
40
|
-
"js"
|
|
41
|
-
],
|
|
42
|
-
"transform": {
|
|
43
|
-
"^.+\\.ts$": "ts-jest"
|
|
44
|
-
},
|
|
45
|
-
"globals": {
|
|
46
|
-
"ts-jest": {
|
|
47
|
-
"tsconfig": "tsconfig.json"
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
"testMatch": [
|
|
51
|
-
"**/tests/**/*.test.ts"
|
|
52
|
-
]
|
|
53
|
-
}
|
|
54
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@qite/tide-client",
|
|
3
|
+
"version": "1.0.15",
|
|
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
|
+
"dotenv": "^9.0.2",
|
|
28
|
+
"jest": "^26.6.3",
|
|
29
|
+
"jest-fetch-mock": "^3.0.3",
|
|
30
|
+
"prettier": "^2.3.0",
|
|
31
|
+
"rollup": "^2.48.0",
|
|
32
|
+
"rollup-plugin-typescript2": "^0.30.0",
|
|
33
|
+
"ts-jest": "^26.5.6",
|
|
34
|
+
"tslib": "^2.2.0",
|
|
35
|
+
"typescript": "^4.2.4"
|
|
36
|
+
},
|
|
37
|
+
"jest": {
|
|
38
|
+
"moduleFileExtensions": [
|
|
39
|
+
"ts",
|
|
40
|
+
"js"
|
|
41
|
+
],
|
|
42
|
+
"transform": {
|
|
43
|
+
"^.+\\.ts$": "ts-jest"
|
|
44
|
+
},
|
|
45
|
+
"globals": {
|
|
46
|
+
"ts-jest": {
|
|
47
|
+
"tsconfig": "tsconfig.json"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"testMatch": [
|
|
51
|
+
"**/tests/**/*.test.ts"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -42,6 +42,7 @@ export {
|
|
|
42
42
|
|
|
43
43
|
export {
|
|
44
44
|
Availability,
|
|
45
|
+
AvailablePackage,
|
|
45
46
|
BasePrice,
|
|
46
47
|
BookingResponse,
|
|
47
48
|
CachedPackageSearchResult,
|
|
@@ -52,9 +53,13 @@ export {
|
|
|
52
53
|
PriceDetail,
|
|
53
54
|
} from "./types";
|
|
54
55
|
|
|
56
|
+
// Tide Types
|
|
57
|
+
export { FlightMetaData } from "./types";
|
|
58
|
+
|
|
55
59
|
// Calls
|
|
56
60
|
|
|
57
61
|
export * from "./utils/booking-client";
|
|
62
|
+
export * from "./utils/booking-v2-client";
|
|
58
63
|
export * from "./utils/mollie-client";
|
|
59
64
|
export * from "./utils/web-client";
|
|
60
65
|
export * from "./utils/web-contact-client";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AvailablePackageAccommodation,
|
|
3
|
+
AvailablePackageFlight,
|
|
4
|
+
AvailablePackagePaxPrice,
|
|
5
|
+
AvailablePackageRegime,
|
|
6
|
+
} from ".";
|
|
7
|
+
|
|
8
|
+
export interface AvailablePackageOption {
|
|
9
|
+
accommodations: AvailablePackageAccommodation[];
|
|
10
|
+
regime: AvailablePackageRegime;
|
|
11
|
+
from: Date;
|
|
12
|
+
to: Date;
|
|
13
|
+
outwardFlight: AvailablePackageFlight;
|
|
14
|
+
returnFlight: AvailablePackageFlight;
|
|
15
|
+
price: number;
|
|
16
|
+
pricePerPax: AvailablePackagePaxPrice[];
|
|
17
|
+
averagePricePerPax: number;
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BookingPackage } from "../shared";
|
|
2
|
+
import { BookingPackagePax } from "../shared/booking-package-pax";
|
|
3
|
+
import { BookingPackageAddress } from "./booking-package-address";
|
|
4
|
+
|
|
5
|
+
export interface BookingPackageBookRequest {
|
|
6
|
+
saleType?: number;
|
|
7
|
+
status: number;
|
|
8
|
+
customStatusId: number;
|
|
9
|
+
package: BookingPackage;
|
|
10
|
+
|
|
11
|
+
adddress: BookingPackageAddress;
|
|
12
|
+
pax: BookingPackagePax[];
|
|
13
|
+
nonTravelPax: BookingPackagePax[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BookingPackageRequestRoom } from "../shared/booking-package-request-room";
|
|
2
|
+
|
|
3
|
+
export interface BookingPackageDetailsRequest {
|
|
4
|
+
rooms: BookingPackageRequestRoom[];
|
|
5
|
+
searchType: number;
|
|
6
|
+
productCode: string;
|
|
7
|
+
allotmentName: string;
|
|
8
|
+
tourCode: string;
|
|
9
|
+
fromDate: Date;
|
|
10
|
+
toDate: Date;
|
|
11
|
+
includeFlights: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BookingPackageRequestRoom } from "../shared/booking-package-request-room";
|
|
2
|
+
|
|
3
|
+
export interface BookingPackageSearchRequest {
|
|
4
|
+
rooms: BookingPackageRequestRoom[];
|
|
5
|
+
serviceType?: number;
|
|
6
|
+
searchType?: number;
|
|
7
|
+
productIds: number[];
|
|
8
|
+
productCodes: string[];
|
|
9
|
+
fromDate: Date;
|
|
10
|
+
toDate: Date;
|
|
11
|
+
productTagIds: number[];
|
|
12
|
+
includeFlights: boolean;
|
|
13
|
+
|
|
14
|
+
minPrice?: number;
|
|
15
|
+
maxPrice?: number;
|
|
16
|
+
|
|
17
|
+
allotmentName: string;
|
|
18
|
+
tourCode: string;
|
|
19
|
+
allotmentTagIds: number[];
|
|
20
|
+
includeClosedAllotments: boolean;
|
|
21
|
+
includeFullyBookedAllotments: boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface BookingPackageAllotmentInfo {
|
|
2
|
+
name: string;
|
|
3
|
+
tourCode: string;
|
|
4
|
+
startTime: string;
|
|
5
|
+
endTime: string;
|
|
6
|
+
totalPlaces: number;
|
|
7
|
+
bookedPlaces: number;
|
|
8
|
+
inOptionPlaces: number;
|
|
9
|
+
status: number;
|
|
10
|
+
customStatusId?: number;
|
|
11
|
+
tagIds: number[];
|
|
12
|
+
allotmentIds: number[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BookingPackageAllotmentInfo } from "./booking-package-allotment-info";
|
|
2
|
+
|
|
3
|
+
export interface BookingPackageItem {
|
|
4
|
+
code: string;
|
|
5
|
+
name: string;
|
|
6
|
+
price: number;
|
|
7
|
+
type: number;
|
|
8
|
+
fromDate: Date;
|
|
9
|
+
toDate: Date;
|
|
10
|
+
tagIds: number[];
|
|
11
|
+
|
|
12
|
+
allotment: BookingPackageAllotmentInfo;
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BookingPricePerPax } from "./booking-price-per-pax";
|
|
2
|
+
|
|
3
|
+
export interface BookingPriceDetail {
|
|
4
|
+
productName: string;
|
|
5
|
+
priceDescription: string;
|
|
6
|
+
price: number;
|
|
7
|
+
amount: number;
|
|
8
|
+
total: number;
|
|
9
|
+
pricePerPax: BookingPricePerPax[];
|
|
10
|
+
|
|
11
|
+
isInpackage: boolean;
|
|
12
|
+
isSeparate: boolean;
|
|
13
|
+
showPrice: boolean;
|
|
14
|
+
requirementType?: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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 "./changed-line";
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface BookingPackagePax {
|
|
2
|
+
id: number;
|
|
3
|
+
age?: number;
|
|
4
|
+
guid: string;
|
|
5
|
+
dateOfBirth?: Date;
|
|
6
|
+
firstName: string;
|
|
7
|
+
lastName: string;
|
|
8
|
+
|
|
9
|
+
salutationId?: number;
|
|
10
|
+
preferredLanguageId?: number;
|
|
11
|
+
gender?: number;
|
|
12
|
+
isMainBooker: boolean;
|
|
13
|
+
initials: string;
|
|
14
|
+
|
|
15
|
+
email: string;
|
|
16
|
+
phone: string;
|
|
17
|
+
mobilePhone: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { BookingOptionGroup } from "./booking-option-group";
|
|
2
|
+
import { BookingOptionPax } from "./booking-option-pax";
|
|
3
|
+
import { BookingOptionUnit } from "./booking-option-unit";
|
|
4
|
+
import { BookingPackageFlight } from "./booking-package-flight";
|
|
5
|
+
import { BookingPackageHotel } from "./booking-package-hotel";
|
|
6
|
+
import { BookingPackageRequestRoom } from "./booking-package-request-room";
|
|
7
|
+
import { BookingPackageRoom } from "./booking-package-room";
|
|
8
|
+
import { PerBookingPackageOption } from "./per-booking-package-option";
|
|
9
|
+
|
|
10
|
+
export interface BookingPackage {
|
|
11
|
+
catalogueId: number;
|
|
12
|
+
code: string;
|
|
13
|
+
name: string;
|
|
14
|
+
price: number;
|
|
15
|
+
serviceType: number;
|
|
16
|
+
|
|
17
|
+
requestRooms: BookingPackageRequestRoom[];
|
|
18
|
+
|
|
19
|
+
fromDate: Date;
|
|
20
|
+
toDate: Date;
|
|
21
|
+
|
|
22
|
+
outwardFlights: BookingPackageFlight;
|
|
23
|
+
returnFlights: BookingPackageFlight;
|
|
24
|
+
hotels: BookingPackageHotel[];
|
|
25
|
+
|
|
26
|
+
allotmentTourCode: string;
|
|
27
|
+
allotmentName: string;
|
|
28
|
+
|
|
29
|
+
rooms: BookingPackageRoom[];
|
|
30
|
+
groups: BookingOptionGroup<PerBookingPackageOption>;
|
|
31
|
+
optionUnits: BookingOptionUnit[];
|
|
32
|
+
optionPax: BookingOptionPax[];
|
|
33
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from "./booking-option-group";
|
|
2
|
+
export * from "./booking-option-pax";
|
|
3
|
+
export * from "./booking-option-unit";
|
|
4
|
+
export * from "./booking-package-flight";
|
|
5
|
+
export * from "./booking-package-hotel-option";
|
|
6
|
+
export * from "./booking-package-hotel-room";
|
|
7
|
+
export * from "./booking-package-hotel";
|
|
8
|
+
export * from "./booking-package-line";
|
|
9
|
+
export * from "./booking-package-pax";
|
|
10
|
+
export * from "./booking-package-request-room";
|
|
11
|
+
export * from "./booking-package-room-option";
|
|
12
|
+
export * from "./booking-package-room";
|
|
13
|
+
export * from "./booking-package";
|
|
14
|
+
export * from "./per-booking-package-option";
|
|
15
|
+
export * from "./per-package-option";
|
|
16
|
+
export * from "./per-pax-package-option";
|
|
17
|
+
export * from "./per-unit-package-option";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BookingOptionGroup } from "./booking-option-group";
|
|
2
|
+
import { BookingOptionPax } from "./booking-option-pax";
|
|
3
|
+
import { BookingOptionUnit } from "./booking-option-unit";
|
|
4
|
+
import { PerPackageOption } from "./per-package-option";
|
|
5
|
+
|
|
6
|
+
export interface PerBookingPackageOption extends PerPackageOption {
|
|
7
|
+
groups: BookingOptionGroup<PerBookingPackageOption>;
|
|
8
|
+
units: BookingOptionUnit[];
|
|
9
|
+
pax: BookingOptionPax[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BookingOptionGroup } from "./booking-option-group";
|
|
2
|
+
import { BookingOptionPax } from "./booking-option-pax";
|
|
3
|
+
import { PerPackageOption } from "./per-package-option";
|
|
4
|
+
|
|
5
|
+
export interface PerUnitPackageOption extends PerPackageOption {
|
|
6
|
+
groups: BookingOptionGroup<PerUnitPackageOption>[];
|
|
7
|
+
pax: BookingOptionPax[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface FlightMetaDataLine {
|
|
2
|
+
airline: string;
|
|
3
|
+
operatingAirlineCode: string;
|
|
4
|
+
operatingAirlineDescription: string;
|
|
5
|
+
number: string;
|
|
6
|
+
departureDate: Date;
|
|
7
|
+
departureAirport: string;
|
|
8
|
+
departureAirportDescription: string;
|
|
9
|
+
departureTime: string;
|
|
10
|
+
arrivalDate: Date;
|
|
11
|
+
arrivalAirport: string;
|
|
12
|
+
arrivalAirportDescription: string;
|
|
13
|
+
arrivalTime: string;
|
|
14
|
+
flightClass: string;
|
|
15
|
+
travelClass: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AdditionalServices, FlightMetaDataLine } from ".";
|
|
2
|
+
|
|
3
|
+
export interface FlightMetaData {
|
|
4
|
+
flightLines: FlightMetaDataLine[];
|
|
5
|
+
pnr: string;
|
|
6
|
+
orderId: string;
|
|
7
|
+
additionalServices: AdditionalServices;
|
|
8
|
+
isLowCost: boolean;
|
|
9
|
+
luggageIncluded: boolean;
|
|
10
|
+
validatingAirlines: string;
|
|
11
|
+
}
|
package/src/types/offer/index.ts
CHANGED
|
@@ -3,6 +3,12 @@ export * from "./address";
|
|
|
3
3
|
export * from "./alternative-flight-data";
|
|
4
4
|
export * from "./alternative-flight-leg";
|
|
5
5
|
export * from "./alternative-flight";
|
|
6
|
+
export * from "./available-package-accommodation";
|
|
7
|
+
export * from "./available-package-flight";
|
|
8
|
+
export * from "./available-package-option";
|
|
9
|
+
export * from "./available-package-pax-price";
|
|
10
|
+
export * from "./available-package-regime";
|
|
11
|
+
export * from "./available-package";
|
|
6
12
|
export * from "./base-price";
|
|
7
13
|
export * from "./base-prices-from-date-request";
|
|
8
14
|
export * from "./base-prices-request";
|
|
@@ -20,6 +26,8 @@ export * from "./entry-line";
|
|
|
20
26
|
export * from "./entry-price-line";
|
|
21
27
|
export * from "./entry-room2";
|
|
22
28
|
export * from "./entry";
|
|
29
|
+
export * from "./flight-meta-data-line";
|
|
30
|
+
export * from "./flight-meta-data";
|
|
23
31
|
export * from "./flight-pool";
|
|
24
32
|
export * from "./language";
|
|
25
33
|
export * from "./multiroom-book-request";
|
|
@@ -54,3 +62,4 @@ export * from "./price-per-pax";
|
|
|
54
62
|
export * from "./product-notification-result";
|
|
55
63
|
export * from "./web-contact-form-request";
|
|
56
64
|
export * from "./web-contact-has-tag-request";
|
|
65
|
+
export * from "./booking-v2";
|