@qite/tide-client 2.0.21-preview.0 → 2.0.21-preview.10

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.
@@ -23,4 +23,8 @@ export interface BookingPackageBookRequest {
23
23
  pax: BookingPackagePax[];
24
24
  nonTravelPax: BookingPackagePax[];
25
25
  notifications: BookingProductNotification[];
26
+ subFormSubmissions?: {
27
+ entryLineGuid: string;
28
+ data: object;
29
+ }[];
26
30
  }
@@ -21,8 +21,9 @@ export interface BookingPackageDetailsRequest {
21
21
  expectedPrice?: number | null;
22
22
  routeId?: string;
23
23
  vendorConfigurationId?: number | null;
24
- searchConfigurationId?: number | null;
24
+ searchConfigurationId: number;
25
25
  hotel?: SelectedHotel;
26
26
  outwardFlight?: SelectedFlight;
27
27
  returnFlight?: SelectedFlight;
28
+ flights?: SelectedFlight[];
28
29
  }
@@ -5,6 +5,7 @@ export interface BookingPackageSearchRequest {
5
5
  rooms: BookingPackageRequestRoom[];
6
6
  serviceType?: number;
7
7
  searchType?: number;
8
+ searchConfigurationId: number;
8
9
  destination?: BookingPackageDestination;
9
10
  productIds?: number[];
10
11
  productCodes?: string[];
@@ -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
+ }
@@ -12,4 +12,5 @@ export interface BookingPriceDetails {
12
12
  total?: number;
13
13
  commission?: number;
14
14
  deposit?: number;
15
+ currencyCode?: string;
15
16
  }
@@ -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;
@@ -12,6 +13,11 @@ export interface PackagingEntry {
12
13
  rooms: PackagingEntryRoom[];
13
14
  paxFields: BookingPackagePaxFieldConfig[];
14
15
  lines: PackagingEntryLine[];
16
+ trajectId?: number | null;
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;
15
21
  address: PackagingEntryAddress;
16
22
  status: EntryStatus;
17
23
  customStatusId?: number;
@@ -28,6 +34,7 @@ export interface PackagingEntryLine {
28
34
  guid: string;
29
35
  parentGuid?: string | null;
30
36
  order: number;
37
+ trajectNodeId?: number | null;
31
38
  from: string;
32
39
  to: string;
33
40
  moment: string;
@@ -40,6 +47,8 @@ export interface PackagingEntryLine {
40
47
  regimeCode?: string | null;
41
48
  vendor?: number | null;
42
49
  externalVendorId?: number | null;
50
+ groupKey: string;
51
+ isActive: boolean;
43
52
  country?: IdName | null;
44
53
  region?: IdName | null;
45
54
  oord?: IdName | null;
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  FlightSearchResponseFlight,
3
3
  FlightSearchResponsePax,
4
+ FlightSearchResponsePreset,
4
5
  } from "../../../hubs";
5
6
  import { PackagingBaseResponse } from "./packaging-base-response";
6
7
  export interface PackagingFlightResponse extends PackagingBaseResponse {
@@ -16,5 +17,6 @@ export interface PackagingFlightResponse extends PackagingBaseResponse {
16
17
  return: FlightSearchResponseFlight;
17
18
  source: number;
18
19
  provider: string;
20
+ preset?: FlightSearchResponsePreset;
19
21
  paxes: FlightSearchResponsePax[];
20
22
  }
@@ -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;
@@ -7,4 +7,5 @@ export interface BookingPackageHotelOption {
7
7
  price: number;
8
8
  isSelected: boolean;
9
9
  roomIndex: number;
10
+ quantity: number;
10
11
  }
@@ -1,3 +1,4 @@
1
+ import { TideWebForm } from "../../web/web-form";
1
2
  import { BookingPackageFlightMetaData } from "./booking-package-flight-meta-data";
2
3
  export interface BookingPackageLine {
3
4
  entryLineGuid: string;
@@ -14,4 +15,6 @@ export interface BookingPackageLine {
14
15
  quantity: number;
15
16
  allotmentTourCode?: string;
16
17
  flightProperties?: BookingPackageFlightMetaData;
18
+ subFormId?: number;
19
+ subForm?: TideWebForm;
17
20
  }
@@ -1,3 +1,4 @@
1
+ import { TideWebForm } from "../../web/web-form";
1
2
  import { RoomOptionPaxType } from "./room-option-pax-type";
2
3
  export interface BookingPackageRoomOption {
3
4
  entryLineGuid: string;
@@ -19,4 +20,6 @@ export interface BookingPackageRoomOption {
19
20
  isOnRequest: boolean;
20
21
  paxTypes: RoomOptionPaxType;
21
22
  remarks: string;
23
+ subFormId?: number;
24
+ subForm?: TideWebForm;
22
25
  }
@@ -21,6 +21,7 @@ export interface ClientPortalItineraryItem {
21
21
  contents: string;
22
22
  templateName: string;
23
23
  itemGuid: string;
24
+ lineGuid?: string | null;
24
25
  latitude: number | null;
25
26
  longitude: number | null;
26
27
  images: ClientPortalItineraryImage[];
@@ -6,11 +6,12 @@ export interface FlightSearchRequest {
6
6
  catalogueId: number;
7
7
  agentId?: number | null;
8
8
  language: string;
9
- departureAirportCode: string;
10
- arrivalAirportCode: string;
9
+ departureAirportCode?: string | null;
10
+ arrivalAirportCode?: string | null;
11
11
  returnAirportCode?: string | null;
12
- outward: FlightSearchRequestSpecification;
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,8 @@ export interface FlightSearchRequestSpecification {
30
31
  flightNumbers?: string[] | null;
31
32
  airlines?: string[] | null;
32
33
  }
34
+ export interface FlightSearchRequestLeg
35
+ extends FlightSearchRequestSpecification {
36
+ departureAirportCode: string;
37
+ arrivalAirportCode: string;
38
+ }
@@ -10,16 +10,26 @@ export interface FlightSearchResponseItem {
10
10
  vendorType: number | null;
11
11
  flightRouteId: string;
12
12
  price: number;
13
+ currencyCode: string | null;
13
14
  travelClass: number;
14
15
  airlineCode: string;
15
16
  airlineName: string;
16
17
  isLuggageIncluded: boolean;
17
18
  luggageInfo: string;
19
+ /** @deprecated Search with legs and read itineraries; null for a search with legs or a MultiCity trip. */
18
20
  outward: FlightSearchResponseFlight;
21
+ /** @deprecated Search with legs and read itineraries; null for a search with legs or a MultiCity trip. */
19
22
  return: FlightSearchResponseFlight;
23
+ itineraries?: FlightSearchResponseFlight[];
20
24
  source: number;
25
+ preset?: FlightSearchResponsePreset;
21
26
  paxes: FlightSearchResponsePax[];
22
27
  }
28
+ export interface FlightSearchResponsePreset {
29
+ id: string;
30
+ code: string;
31
+ label: string;
32
+ }
23
33
  export interface FlightSearchResponseFlight {
24
34
  code: string;
25
35
  fareType: number;
@@ -5,15 +5,49 @@ 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;
8
13
  countryImageTemplateFieldName: string;
9
14
  regionImageTemplateFieldName: string;
10
15
  oordImageTemplateFieldName: string;
11
16
  locationImageTemplateFieldName: string;
17
+ countryTemplateName: string | null;
18
+ regionTemplateName: string | null;
19
+ oordTemplateName: string | null;
20
+ locationTemplateName: string | null;
21
+ hotel: WebsiteConfigurationHotelTemplate | null;
22
+ roundtrip: WebsiteConfigurationTripTemplate | null;
23
+ groupTour: WebsiteConfigurationTripTemplate | null;
12
24
  showApiItems: boolean;
13
25
  hideShowMoreResults: boolean;
14
26
  loadDayActivitiesOnDemand: boolean;
15
27
  showNonPreferredHotels: boolean;
16
28
  allowBookedEntryChanges: boolean;
29
+ allowMultiCity: boolean;
30
+ }
31
+ export interface WebsiteConfigurationHotelTemplate {
32
+ templateName: string;
33
+ titleFieldName: string | null;
34
+ titlePrefixFieldName: string | null;
35
+ slugFieldName: string | null;
36
+ productFieldName: string | null;
37
+ starsFieldName: string | null;
38
+ themesFieldName: string | null;
39
+ introductionTitleFieldName: string | null;
40
+ introductionFieldName: string | null;
41
+ thumbnailImageFieldName: string | null;
42
+ headerImageFieldName: string | null;
43
+ }
44
+ export interface WebsiteConfigurationTripTemplate {
45
+ templateName: string;
46
+ titleFieldName: string | null;
47
+ introductionFieldName: string | null;
48
+ slugFieldName: string | null;
49
+ productFieldName: string | null;
50
+ headerImageFieldName: string | null;
17
51
  }
18
52
  export interface WebsiteConfigurationSearchConfiguration {
19
53
  id: number;
@@ -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: (
@@ -22,6 +23,10 @@ export declare const searchPackagingAccommodations: (
22
23
  request: PackagingAccommodationRequest,
23
24
  signal?: AbortSignal | undefined
24
25
  ) => Promise<PackagingAccommodationResponse[]>;
26
+ /**
27
+ * Hotel+flight packaging only reads the legacy fields (departureAirportCode, arrivalAirportCode,
28
+ * outward, return): `legs` is ignored, so a legs-only request finds nothing here.
29
+ */
25
30
  export declare const searchPackagingFlights: (
26
31
  config: TideClientConfig,
27
32
  request: FlightSearchRequest,
@@ -32,11 +37,21 @@ export declare const searchPackagingExcursions: (
32
37
  request: PackagingAccommodationRequest,
33
38
  signal?: AbortSignal | undefined
34
39
  ) => Promise<PackagingAccommodationResponse[]>;
40
+ export declare const searchPackagingTransfers: (
41
+ config: TideClientConfig,
42
+ request: PackagingTransferRequest,
43
+ signal?: AbortSignal | undefined
44
+ ) => Promise<PackagingAccommodationResponse[]>;
35
45
  export declare const getEntry: (
36
46
  config: TideClientConfig,
37
47
  magicLinkCode: string,
38
48
  signal?: AbortSignal | undefined
39
49
  ) => Promise<PackagingEntry>;
50
+ export declare const savePackagingEntry: (
51
+ config: TideClientConfig,
52
+ request: PackagingRequestBase<PackagingEntry>,
53
+ signal?: AbortSignal | undefined
54
+ ) => Promise<PackagingEntry>;
40
55
  export declare const getTrajectEntry: (
41
56
  config: TideClientConfig,
42
57
  request: PackagingTrajectRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qite/tide-client",
3
- "version": "2.0.21-preview.0",
3
+ "version": "2.0.21-preview.10",
4
4
  "description": "Frontend client for Tide",
5
5
  "main": "build/index.js",
6
6
  "scripts": {