@qite/tide-client 2.0.21-preview.3 → 2.0.21-preview.5
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 +8 -0
- 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-transfer-request.d.ts +14 -0
- package/build/types/booking-v2/response/packaging/packaging-entry.d.ts +4 -0
- package/build/types/booking-v2/response/packaging/packaging-traject-response.d.ts +8 -0
- package/build/utils/packaging-client.d.ts +6 -0
- package/package.json +1 -1
|
@@ -21,3 +21,4 @@ export * from "./flight-lines-request";
|
|
|
21
21
|
export * from "./packaging/packaging-accommodation-request";
|
|
22
22
|
export * from "./packaging/packaging-request-base";
|
|
23
23
|
export * from "./packaging/packaging-traject-request";
|
|
24
|
+
export * from "./packaging/packaging-transfer-request";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PackagingTrajectCoordinate } from "../../response/packaging/packaging-traject-response";
|
|
2
|
+
import { PackagingTraveller } from "./packaging-accommodation-request";
|
|
3
|
+
export interface PackagingTransferRequest {
|
|
4
|
+
transactionId: string;
|
|
5
|
+
officeId: number;
|
|
6
|
+
agentId?: number | null;
|
|
7
|
+
catalogueId: number;
|
|
8
|
+
searchConfigurationId: number;
|
|
9
|
+
language: string;
|
|
10
|
+
date: string;
|
|
11
|
+
pickUp: PackagingTrajectCoordinate;
|
|
12
|
+
dropOff: PackagingTrajectCoordinate;
|
|
13
|
+
travellers: PackagingTraveller[];
|
|
14
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EntryStatus } from "../../../enums";
|
|
2
2
|
import { BookingPackagePax, BookingPackagePaxFieldConfig } from "../../shared";
|
|
3
|
+
import { PackagingTrajectNode } from "./packaging-traject-response";
|
|
3
4
|
export interface PackagingEntry {
|
|
4
5
|
language?: string;
|
|
5
6
|
transactionId: string;
|
|
@@ -14,6 +15,9 @@ export interface PackagingEntry {
|
|
|
14
15
|
lines: PackagingEntryLine[];
|
|
15
16
|
trajectId?: number | null;
|
|
16
17
|
trajectStartDate?: string | null;
|
|
18
|
+
/** Optional traject stops the traveller took off the trip; book leaves them off the dossier's route. */
|
|
19
|
+
removedTrajectNodeIds?: number[] | null;
|
|
20
|
+
routeNodes?: PackagingTrajectNode[] | null;
|
|
17
21
|
address: PackagingEntryAddress;
|
|
18
22
|
status: EntryStatus;
|
|
19
23
|
customStatusId?: number;
|
|
@@ -56,9 +56,17 @@ export interface PackagingTrajectNode {
|
|
|
56
56
|
durationType: number;
|
|
57
57
|
transportType?: number | null;
|
|
58
58
|
moment?: string | null;
|
|
59
|
+
/** A connecting node's first and last route point, between which its transfer is searched. */
|
|
60
|
+
pickUp?: PackagingTrajectCoordinate | null;
|
|
61
|
+
dropOff?: PackagingTrajectCoordinate | null;
|
|
59
62
|
from: string;
|
|
60
63
|
to: string;
|
|
61
64
|
}
|
|
65
|
+
export interface PackagingTrajectCoordinate {
|
|
66
|
+
name?: string | null;
|
|
67
|
+
latitude: number;
|
|
68
|
+
longitude: number;
|
|
69
|
+
}
|
|
62
70
|
export interface PackagingTrajectAlternative {
|
|
63
71
|
code: string;
|
|
64
72
|
name: string;
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
BookingPackageDossier,
|
|
12
12
|
PackagingTrajectRequest,
|
|
13
13
|
PackagingTrajectResponse,
|
|
14
|
+
PackagingTransferRequest,
|
|
14
15
|
} from "../types";
|
|
15
16
|
import { PackagingRequestBase } from "../types/booking-v2/request/packaging/packaging-request-base";
|
|
16
17
|
export declare const startTransaction: (
|
|
@@ -32,6 +33,11 @@ export declare const searchPackagingExcursions: (
|
|
|
32
33
|
request: PackagingAccommodationRequest,
|
|
33
34
|
signal?: AbortSignal | undefined
|
|
34
35
|
) => Promise<PackagingAccommodationResponse[]>;
|
|
36
|
+
export declare const searchPackagingTransfers: (
|
|
37
|
+
config: TideClientConfig,
|
|
38
|
+
request: PackagingTransferRequest,
|
|
39
|
+
signal?: AbortSignal | undefined
|
|
40
|
+
) => Promise<PackagingAccommodationResponse[]>;
|
|
35
41
|
export declare const getEntry: (
|
|
36
42
|
config: TideClientConfig,
|
|
37
43
|
magicLinkCode: string,
|