@qite/tide-client 2.0.26 → 2.1.0-preview.1
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 +1 -0
- package/build/index.js +115 -93
- package/build/index.js.map +1 -1
- package/build/types/booking-v2/request/booking-package-book-request.d.ts +1 -0
- package/build/types/booking-v2/request/booking-package-details-request.d.ts +1 -0
- package/build/types/booking-v2/request/packaging/packaging-request-base.d.ts +1 -0
- package/build/types/booking-v2/request/packaging/packaging-traject-request.d.ts +1 -0
- package/build/types/booking-v2/request/packaging/packaging-transfer-request.d.ts +2 -0
- package/build/types/booking-v2/response/packaging/packaging-base-response.d.ts +1 -0
- package/build/types/booking-v2/response/packaging/packaging-entry.d.ts +9 -0
- package/build/types/booking-v2/response/packaging/packaging-traject-item.d.ts +1 -0
- package/build/types/booking-v2/response/packaging/packaging-traject-response.d.ts +4 -0
- package/build/types/booking-v2/shared/booking-package-pax.d.ts +5 -1
- package/build/types/hubs/search/flight-search-request.d.ts +8 -3
- package/build/types/hubs/search/flight-search-response.d.ts +3 -0
- package/build/types/web/index.d.ts +1 -0
- package/build/types/web/web-form.d.ts +2 -0
- package/build/types/web/web-redirect.d.ts +17 -0
- package/build/types/web/website-configuration.d.ts +39 -0
- package/build/utils/packaging-client.d.ts +4 -0
- package/build/utils/web-redirect-client.d.ts +10 -0
- package/package.json +1 -1
|
@@ -11,6 +11,8 @@ export interface PackagingTransferRequest {
|
|
|
11
11
|
pickUp: PackagingTrajectCoordinate;
|
|
12
12
|
dropOff: PackagingTrajectCoordinate;
|
|
13
13
|
dropOffGeography?: PackagingTransferGeography | null;
|
|
14
|
+
/** The connecting node's own transport product (PackagingTrajectNode.productId): tried before any transfer API. */
|
|
15
|
+
productId?: number | null;
|
|
14
16
|
travellers: PackagingTraveller[];
|
|
15
17
|
}
|
|
16
18
|
export interface PackagingTransferGeography {
|
|
@@ -15,10 +15,13 @@ export interface PackagingEntry {
|
|
|
15
15
|
lines: PackagingEntryLine[];
|
|
16
16
|
trajectId?: number | null;
|
|
17
17
|
trajectStartDate?: string | null;
|
|
18
|
+
trajectStyle?: string | null;
|
|
18
19
|
/** Optional traject stops the traveller took off the trip; book leaves them off the dossier's route. */
|
|
19
20
|
removedTrajectNodeIds?: number[] | null;
|
|
20
21
|
routeNodes?: PackagingTrajectNode[] | null;
|
|
21
22
|
route?: PackagingEntryRoute | null;
|
|
23
|
+
/** Connecting nodes of a booked dossier's route whose transport the traveller changed; save updates the route and leaves hops that need no line (walking, cycling) without one. */
|
|
24
|
+
routeNodeChanges?: PackagingRouteNodeChange[] | null;
|
|
22
25
|
address: PackagingEntryAddress;
|
|
23
26
|
status: EntryStatus;
|
|
24
27
|
customStatusId?: number;
|
|
@@ -26,6 +29,11 @@ export interface PackagingEntry {
|
|
|
26
29
|
returnPaymentUrl?: boolean;
|
|
27
30
|
remarks?: string;
|
|
28
31
|
}
|
|
32
|
+
export interface PackagingRouteNodeChange {
|
|
33
|
+
nodeId: number;
|
|
34
|
+
transportType: number;
|
|
35
|
+
serviceType: number;
|
|
36
|
+
}
|
|
29
37
|
/**
|
|
30
38
|
* Tide: `PackagingEntryPax : BookingPackagePax`. `isMainBooker` is a non-nullable bool in C#, so a
|
|
31
39
|
* pax read from an entry always carries it (it is optional on a pax you send in a book request).
|
|
@@ -56,6 +64,7 @@ export interface PackagingEntryLine {
|
|
|
56
64
|
externalVendorId?: number | null;
|
|
57
65
|
groupKey: string;
|
|
58
66
|
isActive: boolean;
|
|
67
|
+
requirementType?: number | null;
|
|
59
68
|
country?: IdName | null;
|
|
60
69
|
region?: IdName | null;
|
|
61
70
|
oord?: IdName | null;
|
|
@@ -21,6 +21,7 @@ export interface PackagingTrajectInfo {
|
|
|
21
21
|
endDate: string;
|
|
22
22
|
durationInDays: number;
|
|
23
23
|
includeGroupHotelAlternatives: boolean;
|
|
24
|
+
style?: string | null;
|
|
24
25
|
days: PackagingTrajectDay[];
|
|
25
26
|
}
|
|
26
27
|
export interface PackagingTrajectDay {
|
|
@@ -63,6 +64,9 @@ export interface PackagingTrajectNode {
|
|
|
63
64
|
/** A connecting node's first and last route point, between which its transfer is searched. */
|
|
64
65
|
pickUp?: PackagingTrajectCoordinate | null;
|
|
65
66
|
dropOff?: PackagingTrajectCoordinate | null;
|
|
67
|
+
/** The Tide transport product linked to a connecting node: asked for first (PackagingTransferRequest.productId), before the transfer search. */
|
|
68
|
+
productId?: number | null;
|
|
69
|
+
productName?: string | null;
|
|
66
70
|
from: string;
|
|
67
71
|
to: string;
|
|
68
72
|
}
|
|
@@ -31,7 +31,11 @@ export interface BookingPackagePax {
|
|
|
31
31
|
passportIssueDate?: string;
|
|
32
32
|
passportIssuedLocation?: string;
|
|
33
33
|
passportExpiryDate?: string;
|
|
34
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* Per-traveller address. When absent, Tide falls back to the booking's shared address.
|
|
36
|
+
* On the main booker, this is the booking's canonical address — the top-level
|
|
37
|
+
* `address`/`travellerAddressName` request fields are ignored for them, so don't set both.
|
|
38
|
+
*/
|
|
35
39
|
address?: BookingPackageAddress;
|
|
36
40
|
customFields: BookingPackageCustomField[];
|
|
37
41
|
}
|
|
@@ -6,11 +6,12 @@ export interface FlightSearchRequest {
|
|
|
6
6
|
catalogueId: number;
|
|
7
7
|
agentId?: number | null;
|
|
8
8
|
language: string;
|
|
9
|
-
departureAirportCode
|
|
10
|
-
arrivalAirportCode
|
|
9
|
+
departureAirportCode?: string | null;
|
|
10
|
+
arrivalAirportCode?: string | null;
|
|
11
11
|
returnAirportCode?: string | null;
|
|
12
|
-
outward
|
|
12
|
+
outward?: FlightSearchRequestSpecification | null;
|
|
13
13
|
return?: FlightSearchRequestSpecification | null;
|
|
14
|
+
legs?: FlightSearchRequestLeg[] | null;
|
|
14
15
|
travelClass?: number | null;
|
|
15
16
|
maxStops?: number | null;
|
|
16
17
|
luggageIncluded?: boolean | null;
|
|
@@ -30,3 +31,7 @@ export interface FlightSearchRequestSpecification {
|
|
|
30
31
|
flightNumbers?: string[] | null;
|
|
31
32
|
airlines?: string[] | null;
|
|
32
33
|
}
|
|
34
|
+
export interface FlightSearchRequestLeg extends FlightSearchRequestSpecification {
|
|
35
|
+
departureAirportCode: string;
|
|
36
|
+
arrivalAirportCode: string;
|
|
37
|
+
}
|
|
@@ -16,8 +16,11 @@ export interface FlightSearchResponseItem {
|
|
|
16
16
|
airlineName: string;
|
|
17
17
|
isLuggageIncluded: boolean;
|
|
18
18
|
luggageInfo: string;
|
|
19
|
+
/** @deprecated Search with legs and read itineraries; null for a search with legs or a MultiCity trip. */
|
|
19
20
|
outward: FlightSearchResponseFlight;
|
|
21
|
+
/** @deprecated Search with legs and read itineraries; null for a search with legs or a MultiCity trip. */
|
|
20
22
|
return: FlightSearchResponseFlight;
|
|
23
|
+
itineraries?: FlightSearchResponseFlight[];
|
|
21
24
|
source: number;
|
|
22
25
|
preset?: FlightSearchResponsePreset;
|
|
23
26
|
paxes: FlightSearchResponsePax[];
|
|
@@ -43,10 +43,12 @@ export interface WebFormSubmitRequest {
|
|
|
43
43
|
data: object;
|
|
44
44
|
captchaToken: string | null;
|
|
45
45
|
}
|
|
46
|
+
export declare type RepeatSource = "field" | "pax" | "unit";
|
|
46
47
|
export interface VisibilityConfiguration {
|
|
47
48
|
field: string | null;
|
|
48
49
|
notEmpty: boolean;
|
|
49
50
|
isRepeating: boolean;
|
|
51
|
+
repeatSource?: RepeatSource;
|
|
50
52
|
inFirstRepitition: boolean;
|
|
51
53
|
askFirst: boolean;
|
|
52
54
|
values: {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Mirrors `Qite.Offer.DataContracts.Web.WebRedirectSet`. */
|
|
2
|
+
export interface WebRedirectSet {
|
|
3
|
+
code: string;
|
|
4
|
+
/** In apply order (exact, then exclude/prefix by longest key): the first match wins and an exclude means no redirect. */
|
|
5
|
+
redirects: WebRedirect[];
|
|
6
|
+
}
|
|
7
|
+
export declare type WebRedirectType = "exact" | "prefix" | "exclude";
|
|
8
|
+
export interface WebRedirect {
|
|
9
|
+
type: WebRedirectType;
|
|
10
|
+
/** As entered. */
|
|
11
|
+
source: string;
|
|
12
|
+
/** Lower-case, decoded, leading slash, no trailing slash: compare a request path normalised the same way. */
|
|
13
|
+
sourceKey: string;
|
|
14
|
+
/** Null for an exclude. */
|
|
15
|
+
target: string | null;
|
|
16
|
+
isPermanent: boolean;
|
|
17
|
+
}
|
|
@@ -5,14 +5,53 @@ export interface WebsiteConfiguration {
|
|
|
5
5
|
styleSheetIds: number[];
|
|
6
6
|
searchConfigurations: WebsiteConfigurationSearchConfiguration[];
|
|
7
7
|
languageCodes: string[];
|
|
8
|
+
defaultLanguageCode: string | null;
|
|
9
|
+
officeId: number | null;
|
|
10
|
+
catalogueId: number | null;
|
|
11
|
+
agentPortalId: number | null;
|
|
12
|
+
dateFormat: string | null;
|
|
13
|
+
generatePaymentUrl: boolean;
|
|
8
14
|
countryImageTemplateFieldName: string;
|
|
9
15
|
regionImageTemplateFieldName: string;
|
|
10
16
|
oordImageTemplateFieldName: string;
|
|
11
17
|
locationImageTemplateFieldName: string;
|
|
18
|
+
countryTemplateName: string | null;
|
|
19
|
+
regionTemplateName: string | null;
|
|
20
|
+
oordTemplateName: string | null;
|
|
21
|
+
locationTemplateName: string | null;
|
|
22
|
+
hotel: WebsiteConfigurationHotelTemplate | null;
|
|
23
|
+
roundtrip: WebsiteConfigurationTripTemplate | null;
|
|
24
|
+
groupTour: WebsiteConfigurationTripTemplate | null;
|
|
12
25
|
showApiItems: boolean;
|
|
13
26
|
hideShowMoreResults: boolean;
|
|
14
27
|
loadDayActivitiesOnDemand: boolean;
|
|
15
28
|
showNonPreferredHotels: boolean;
|
|
29
|
+
allowBookedEntryChanges: boolean;
|
|
30
|
+
allowMultiCity: boolean;
|
|
31
|
+
allowTrajectBuilder: boolean;
|
|
32
|
+
allowFullItinerary: boolean;
|
|
33
|
+
googleMapsApiKey: string | null;
|
|
34
|
+
}
|
|
35
|
+
export interface WebsiteConfigurationHotelTemplate {
|
|
36
|
+
templateName: string;
|
|
37
|
+
titleFieldName: string | null;
|
|
38
|
+
titlePrefixFieldName: string | null;
|
|
39
|
+
slugFieldName: string | null;
|
|
40
|
+
productFieldName: string | null;
|
|
41
|
+
starsFieldName: string | null;
|
|
42
|
+
themesFieldName: string | null;
|
|
43
|
+
introductionTitleFieldName: string | null;
|
|
44
|
+
introductionFieldName: string | null;
|
|
45
|
+
thumbnailImageFieldName: string | null;
|
|
46
|
+
headerImageFieldName: string | null;
|
|
47
|
+
}
|
|
48
|
+
export interface WebsiteConfigurationTripTemplate {
|
|
49
|
+
templateName: string;
|
|
50
|
+
titleFieldName: string | null;
|
|
51
|
+
introductionFieldName: string | null;
|
|
52
|
+
slugFieldName: string | null;
|
|
53
|
+
productFieldName: string | null;
|
|
54
|
+
headerImageFieldName: string | null;
|
|
16
55
|
}
|
|
17
56
|
export interface WebsiteConfigurationSearchConfiguration {
|
|
18
57
|
id: number;
|
|
@@ -3,6 +3,10 @@ import { PackagingTransaction, PackagingAccommodationRequest, PackagingAccommoda
|
|
|
3
3
|
import { PackagingRequestBase } from "../types/booking-v2/request/packaging/packaging-request-base";
|
|
4
4
|
export declare const startTransaction: (config: TideClientConfig, signal?: AbortSignal | undefined) => Promise<PackagingTransaction>;
|
|
5
5
|
export declare const searchPackagingAccommodations: (config: TideClientConfig, request: PackagingAccommodationRequest, signal?: AbortSignal | undefined) => Promise<PackagingAccommodationResponse[]>;
|
|
6
|
+
/**
|
|
7
|
+
* Hotel+flight packaging only reads the legacy fields (departureAirportCode, arrivalAirportCode,
|
|
8
|
+
* outward, return): `legs` is ignored, so a legs-only request finds nothing here.
|
|
9
|
+
*/
|
|
6
10
|
export declare const searchPackagingFlights: (config: TideClientConfig, request: FlightSearchRequest, signal?: AbortSignal | undefined) => Promise<PackagingFlightResponse[]>;
|
|
7
11
|
export declare const searchPackagingExcursions: (config: TideClientConfig, request: PackagingAccommodationRequest, signal?: AbortSignal | undefined) => Promise<PackagingAccommodationResponse[]>;
|
|
8
12
|
export declare const searchPackagingTransfers: (config: TideClientConfig, request: PackagingTransferRequest, signal?: AbortSignal | undefined) => Promise<PackagingAccommodationResponse[]>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TideClientConfig, WebRedirectSet } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* api/web/redirect/{code}
|
|
4
|
+
* Gets the redirect set with this code (case-insensitive), redirects in apply order.
|
|
5
|
+
* @param config
|
|
6
|
+
* @param code The set's code in Tide (Content management > Redirects).
|
|
7
|
+
* @param signal
|
|
8
|
+
* @returns OK if succeeded; rejects when no set has this code (404).
|
|
9
|
+
*/
|
|
10
|
+
export declare const getRedirects: (config: TideClientConfig, code: string, signal?: AbortSignal | undefined) => Promise<WebRedirectSet>;
|