@qite/tide-client 2.0.10 → 2.0.11
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 +38 -22
- package/build/index.js.map +1 -1
- package/build/types/booking-v2/request/index.d.ts +1 -0
- package/build/types/booking-v2/request/packaging/packaging-traject-request.d.ts +13 -0
- package/build/types/booking-v2/response/index.d.ts +1 -0
- package/build/types/booking-v2/response/packaging/packaging-traject-response.d.ts +57 -0
- package/build/types/enums/index.d.ts +3 -2
- package/build/types/enums/traject-node-type.d.ts +6 -0
- package/build/utils/packaging-client.d.ts +7 -0
- package/package.json +1 -1
- package/build/types/booking-v2/request/price-list-request.d.ts +0 -3
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PackagingRoom } from "./packaging-accommodation-request";
|
|
2
|
+
export interface PackagingTrajectRequest {
|
|
3
|
+
trajectId: number;
|
|
4
|
+
/** Departure day. The traject's day 0 lands on this date; every later day follows on from it. */
|
|
5
|
+
fromDate: string;
|
|
6
|
+
rooms: PackagingRoom[];
|
|
7
|
+
language: string;
|
|
8
|
+
officeId: number;
|
|
9
|
+
catalogueId: number;
|
|
10
|
+
agentId?: number | null;
|
|
11
|
+
searchConfigurationId: number;
|
|
12
|
+
portalId?: number | null;
|
|
13
|
+
}
|
|
@@ -34,3 +34,4 @@ export * from "./packaging/packaging-accommodation-response";
|
|
|
34
34
|
export * from "./packaging/packaging-flight-response";
|
|
35
35
|
export * from "./packaging/packaging-entry";
|
|
36
36
|
export * from "./packaging/packaging-transaction";
|
|
37
|
+
export * from "./packaging/packaging-traject-response";
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { PackagingEntry } from "./packaging-entry";
|
|
2
|
+
/**
|
|
3
|
+
* A stored traject rendered for a given departure date and party.
|
|
4
|
+
*
|
|
5
|
+
* `entry` is an ordinary PackagingEntry — the same contract the magic-link flow returns — so
|
|
6
|
+
* price-details, itinerary and book all accept it unchanged. `nodes` carries the per-node detail
|
|
7
|
+
* an entry line has no room for (day grouping, images, preferred hotels, airports) and is joined
|
|
8
|
+
* to the entry on `lineGuid`. Nodes that are not bookable services (connecting markers, points of
|
|
9
|
+
* interest) appear in `nodes` with an empty `lineGuid` and have no matching entry line.
|
|
10
|
+
*/
|
|
11
|
+
export interface PackagingTrajectResponse {
|
|
12
|
+
entry: PackagingEntry;
|
|
13
|
+
traject: PackagingTrajectInfo;
|
|
14
|
+
nodes: PackagingTrajectNode[];
|
|
15
|
+
}
|
|
16
|
+
export interface PackagingTrajectInfo {
|
|
17
|
+
id: number;
|
|
18
|
+
name: string;
|
|
19
|
+
imageUrl?: string | null;
|
|
20
|
+
startDate: string;
|
|
21
|
+
endDate: string;
|
|
22
|
+
durationInDays: number;
|
|
23
|
+
includeGroupHotelAlternatives: boolean;
|
|
24
|
+
days: PackagingTrajectDay[];
|
|
25
|
+
}
|
|
26
|
+
export interface PackagingTrajectDay {
|
|
27
|
+
/** Zero-based, as stored on the traject: day 0 is the departure day. */
|
|
28
|
+
order: number;
|
|
29
|
+
name: string;
|
|
30
|
+
date: string;
|
|
31
|
+
}
|
|
32
|
+
export interface PackagingTrajectNode {
|
|
33
|
+
lineGuid: string;
|
|
34
|
+
nodeId: number;
|
|
35
|
+
dayOrder: number;
|
|
36
|
+
order: number;
|
|
37
|
+
name: string;
|
|
38
|
+
description?: string | null;
|
|
39
|
+
imageUrl?: string | null;
|
|
40
|
+
serviceType: number;
|
|
41
|
+
trajectNodeType: number;
|
|
42
|
+
requirementType: number;
|
|
43
|
+
contentSource: number;
|
|
44
|
+
vendor?: number | null;
|
|
45
|
+
externalVendorId?: number | null;
|
|
46
|
+
code?: string | null;
|
|
47
|
+
/** Try this hotel first; fall back to the cheapest available result when it has no availability. */
|
|
48
|
+
preferredAccommodationCode?: string | null;
|
|
49
|
+
preferredAccommodationName?: string | null;
|
|
50
|
+
alternativeAccommodationCodes: string[];
|
|
51
|
+
departureAirportCode?: string | null;
|
|
52
|
+
arrivalAirportCode?: string | null;
|
|
53
|
+
distanceInKm?: number | null;
|
|
54
|
+
moment?: string | null;
|
|
55
|
+
from: string;
|
|
56
|
+
to: string;
|
|
57
|
+
}
|
|
@@ -3,7 +3,6 @@ export * from "./allotment-status";
|
|
|
3
3
|
export * from "./allotment-type";
|
|
4
4
|
export * from "./availability-search-type";
|
|
5
5
|
export * from "./data-type";
|
|
6
|
-
export * from "./date-amount-type";
|
|
7
6
|
export * from "./dossier-type";
|
|
8
7
|
export * from "./entry-line-flag";
|
|
9
8
|
export * from "./entry-line-status";
|
|
@@ -17,7 +16,6 @@ export * from "./meta-data-item-property-type";
|
|
|
17
16
|
export * from "./meta-data-type";
|
|
18
17
|
export * from "./note-type";
|
|
19
18
|
export * from "./payment-type";
|
|
20
|
-
export * from "./portal-qsm-type";
|
|
21
19
|
export * from "./price-chart-type";
|
|
22
20
|
export * from "./print-action-group";
|
|
23
21
|
export * from "./requirement-type";
|
|
@@ -26,3 +24,6 @@ export * from "./sale-type";
|
|
|
26
24
|
export * from "./service-type";
|
|
27
25
|
export * from "./unit-of-measure";
|
|
28
26
|
export * from "./vendor-type";
|
|
27
|
+
export * from "./date-amount-type";
|
|
28
|
+
export * from "./portal-qsm-type";
|
|
29
|
+
export * from "./traject-node-type";
|
|
@@ -9,6 +9,8 @@ import {
|
|
|
9
9
|
FlightSearchRequest,
|
|
10
10
|
PackagingFlightResponse,
|
|
11
11
|
BookingPackageDossier,
|
|
12
|
+
PackagingTrajectRequest,
|
|
13
|
+
PackagingTrajectResponse,
|
|
12
14
|
} from "../types";
|
|
13
15
|
import { PackagingRequestBase } from "../types/booking-v2/request/packaging/packaging-request-base";
|
|
14
16
|
export declare const startTransaction: (
|
|
@@ -35,6 +37,11 @@ export declare const getEntry: (
|
|
|
35
37
|
magicLinkCode: string,
|
|
36
38
|
signal?: AbortSignal | undefined
|
|
37
39
|
) => Promise<PackagingEntry>;
|
|
40
|
+
export declare const getTrajectEntry: (
|
|
41
|
+
config: TideClientConfig,
|
|
42
|
+
request: PackagingTrajectRequest,
|
|
43
|
+
signal?: AbortSignal | undefined
|
|
44
|
+
) => Promise<PackagingTrajectResponse>;
|
|
38
45
|
export declare const getPriceDetails: (
|
|
39
46
|
config: TideClientConfig,
|
|
40
47
|
request: PackagingRequestBase<PackagingEntry>,
|
package/package.json
CHANGED