@qite/tide-client 1.1.157 → 1.1.159
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 +16 -1
- package/build/index.js.map +1 -1
- package/build/types/booking-v2/response/index.d.ts +2 -0
- package/build/types/booking-v2/response/packaging/packaging-accommodation-response.d.ts +2 -23
- package/build/types/booking-v2/response/packaging/packaging-base-response.d.ts +25 -0
- package/build/types/booking-v2/response/packaging/packaging-flight-response.d.ts +18 -0
- package/build/types/booking-v2/shared/index.d.ts +1 -0
- package/build/types/booking-v2/shared/itinerary.d.ts +37 -0
- package/build/utils/packaging-client.d.ts +13 -0
- package/package.json +1 -1
|
@@ -29,6 +29,8 @@ export * from "./tour-codes-response";
|
|
|
29
29
|
export * from "./transport-dates-response";
|
|
30
30
|
export * from "./booking-package-entryline-flight-meta-data";
|
|
31
31
|
export * from "./flight-lines-by-allotment";
|
|
32
|
+
export * from "./packaging/packaging-base-response";
|
|
32
33
|
export * from "./packaging/packaging-accommodation-response";
|
|
34
|
+
export * from "./packaging/packaging-flight-response";
|
|
33
35
|
export * from "./packaging/packaging-entry";
|
|
34
36
|
export * from "./packaging/packaging-transaction";
|
|
@@ -1,26 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
name: string;
|
|
4
|
-
serviceType: number;
|
|
5
|
-
vendorType?: number | null;
|
|
6
|
-
vendorId?: number | null;
|
|
7
|
-
countryId?: number | null;
|
|
8
|
-
countryName: string;
|
|
9
|
-
regionId?: number | null;
|
|
10
|
-
regionName: string;
|
|
11
|
-
oordId?: number | null;
|
|
12
|
-
oordName: string;
|
|
13
|
-
locationId?: number | null;
|
|
14
|
-
locationName: string;
|
|
15
|
-
latitude?: number | null;
|
|
16
|
-
longitude?: number | null;
|
|
17
|
-
price: number;
|
|
18
|
-
averagePricePerPerson: number;
|
|
19
|
-
originalPrice: number;
|
|
20
|
-
originalAveragePricePerPerson: number;
|
|
21
|
-
currencyCode: string;
|
|
22
|
-
fromDate: string;
|
|
23
|
-
toDate: string;
|
|
1
|
+
import { PackagingBaseResponse } from "./packaging-base-response";
|
|
2
|
+
export interface PackagingAccommodationResponse extends PackagingBaseResponse {
|
|
24
3
|
rooms: PackageMainRoom[];
|
|
25
4
|
contents: string;
|
|
26
5
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface PackagingBaseResponse {
|
|
2
|
+
code: string;
|
|
3
|
+
name: string;
|
|
4
|
+
serviceType: number;
|
|
5
|
+
vendorType?: number | null;
|
|
6
|
+
vendorId?: number | null;
|
|
7
|
+
vendorConfigurationId?: number | null;
|
|
8
|
+
countryId?: number | null;
|
|
9
|
+
countryName: string;
|
|
10
|
+
regionId?: number | null;
|
|
11
|
+
regionName: string;
|
|
12
|
+
oordId?: number | null;
|
|
13
|
+
oordName: string;
|
|
14
|
+
locationId?: number | null;
|
|
15
|
+
locationName: string;
|
|
16
|
+
latitude?: number | null;
|
|
17
|
+
longitude?: number | null;
|
|
18
|
+
price: number;
|
|
19
|
+
averagePricePerPerson: number;
|
|
20
|
+
originalPrice: number;
|
|
21
|
+
originalAveragePricePerPerson: number;
|
|
22
|
+
currencyCode: string;
|
|
23
|
+
fromDate: string;
|
|
24
|
+
toDate: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FlightSearchResponseFlight,
|
|
3
|
+
FlightSearchResponsePax,
|
|
4
|
+
} from "../../../hubs";
|
|
5
|
+
import { PackagingBaseResponse } from "./packaging-base-response";
|
|
6
|
+
export interface PackagingFlightResponse extends PackagingBaseResponse {
|
|
7
|
+
flightRouteId: string;
|
|
8
|
+
travelClass?: number | null;
|
|
9
|
+
airlineCode: string;
|
|
10
|
+
airlineName: string;
|
|
11
|
+
isLuggageIncluded: boolean;
|
|
12
|
+
luggageInfo: string;
|
|
13
|
+
outward: FlightSearchResponseFlight;
|
|
14
|
+
return: FlightSearchResponseFlight;
|
|
15
|
+
source: number;
|
|
16
|
+
provider: string;
|
|
17
|
+
paxes: FlightSearchResponsePax[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface ClientPortalItinerary {
|
|
2
|
+
title: string;
|
|
3
|
+
styleSheetBody: string;
|
|
4
|
+
nodes: ClientPortalItineraryNode[];
|
|
5
|
+
defaultItems: ClientPortalItineraryItem[];
|
|
6
|
+
}
|
|
7
|
+
export interface ClientPortalItineraryNode {
|
|
8
|
+
title: string;
|
|
9
|
+
startDay: number;
|
|
10
|
+
endDay: number;
|
|
11
|
+
startDate: Date | null;
|
|
12
|
+
endDate: Date | null;
|
|
13
|
+
items: ClientPortalItineraryItem[];
|
|
14
|
+
}
|
|
15
|
+
export interface ClientPortalItineraryItem {
|
|
16
|
+
title: string;
|
|
17
|
+
icon: string;
|
|
18
|
+
contents: string;
|
|
19
|
+
templateName: string;
|
|
20
|
+
latitude: number | null;
|
|
21
|
+
longitude: number | null;
|
|
22
|
+
images: ClientPortalItineraryImage[];
|
|
23
|
+
fields: ClientPortalItineraryField[];
|
|
24
|
+
productDuration?: number;
|
|
25
|
+
isVirtual?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface ClientPortalItineraryField {
|
|
28
|
+
fieldName: string;
|
|
29
|
+
groupName: string;
|
|
30
|
+
value: string;
|
|
31
|
+
}
|
|
32
|
+
export interface ClientPortalItineraryImage {
|
|
33
|
+
url: string;
|
|
34
|
+
name: string;
|
|
35
|
+
title: string;
|
|
36
|
+
altText: string | null;
|
|
37
|
+
}
|
|
@@ -5,6 +5,9 @@ import {
|
|
|
5
5
|
PackagingAccommodationResponse,
|
|
6
6
|
PackagingEntry,
|
|
7
7
|
BookingPriceDetails,
|
|
8
|
+
ClientPortalItinerary,
|
|
9
|
+
FlightSearchRequest,
|
|
10
|
+
PackagingFlightResponse,
|
|
8
11
|
} from "../types";
|
|
9
12
|
export declare const startTransaction: (
|
|
10
13
|
config: TideClientConfig,
|
|
@@ -15,6 +18,11 @@ export declare const searchPackagingAccommodations: (
|
|
|
15
18
|
request: PackagingAccommodationRequest,
|
|
16
19
|
signal?: AbortSignal | undefined
|
|
17
20
|
) => Promise<PackagingAccommodationResponse[]>;
|
|
21
|
+
export declare const searchPackagingFlights: (
|
|
22
|
+
config: TideClientConfig,
|
|
23
|
+
request: FlightSearchRequest,
|
|
24
|
+
signal?: AbortSignal | undefined
|
|
25
|
+
) => Promise<PackagingFlightResponse[]>;
|
|
18
26
|
export declare const getEntry: (
|
|
19
27
|
config: TideClientConfig,
|
|
20
28
|
magicLinkCode: string,
|
|
@@ -25,3 +33,8 @@ export declare const getPriceDetails: (
|
|
|
25
33
|
request: PackagingEntry,
|
|
26
34
|
signal?: AbortSignal | undefined
|
|
27
35
|
) => Promise<BookingPriceDetails>;
|
|
36
|
+
export declare const getItinerary: (
|
|
37
|
+
config: TideClientConfig,
|
|
38
|
+
request: PackagingEntry,
|
|
39
|
+
signal?: AbortSignal | undefined
|
|
40
|
+
) => Promise<ClientPortalItinerary>;
|