@qite/tide-client 1.1.175 → 1.1.176

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.
Files changed (23) hide show
  1. package/build/index.js +7168 -7168
  2. package/build/index.js.map +1 -1
  3. package/build/types/booking-v2/request/booking-package-book-request.d.ts +26 -26
  4. package/build/types/booking-v2/request/booking-package-details-request.d.ts +28 -28
  5. package/build/types/booking-v2/request/index.d.ts +21 -21
  6. package/build/types/booking-v2/request/packaging/packaging-accommodation-request.d.ts +36 -36
  7. package/build/types/booking-v2/request/packaging/packaging-request-base.d.ts +7 -7
  8. package/build/types/booking-v2/response/booking-price-details.d.ts +15 -15
  9. package/build/types/booking-v2/response/index.d.ts +36 -36
  10. package/build/types/booking-v2/response/packaging/packaging-accommodation-response.d.ts +19 -19
  11. package/build/types/booking-v2/response/packaging/packaging-base-response.d.ts +25 -25
  12. package/build/types/booking-v2/response/packaging/packaging-entry.d.ts +103 -103
  13. package/build/types/booking-v2/response/packaging/packaging-flight-response.d.ts +20 -20
  14. package/build/types/booking-v2/response/packaging/packaging-transaction.d.ts +4 -4
  15. package/build/types/booking-v2/response/tide-elastic-product.d.ts +8 -0
  16. package/build/types/booking-v2/shared/index.d.ts +29 -29
  17. package/build/types/booking-v2/shared/itinerary.d.ts +41 -41
  18. package/build/types/hubs/search/flight-search-request.d.ts +32 -32
  19. package/build/types/web/index.d.ts +19 -19
  20. package/build/types/web/style-sheet.d.ts +7 -7
  21. package/build/utils/packaging-client.d.ts +52 -52
  22. package/build/utils/web-client.d.ts +77 -77
  23. package/package.json +64 -64
@@ -1,20 +1,20 @@
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
- outwardGuid: string;
14
- outward: FlightSearchResponseFlight;
15
- returnGuid: string;
16
- return: FlightSearchResponseFlight;
17
- source: number;
18
- provider: string;
19
- paxes: FlightSearchResponsePax[];
20
- }
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
+ outwardGuid: string;
14
+ outward: FlightSearchResponseFlight;
15
+ returnGuid: string;
16
+ return: FlightSearchResponseFlight;
17
+ source: number;
18
+ provider: string;
19
+ paxes: FlightSearchResponsePax[];
20
+ }
@@ -1,4 +1,4 @@
1
- export interface PackagingTransaction {
2
- transactionId: string;
3
- transactionExpiration: string;
4
- }
1
+ export interface PackagingTransaction {
2
+ transactionId: string;
3
+ transactionExpiration: string;
4
+ }
@@ -21,6 +21,8 @@ export interface TideElasticProduct {
21
21
  durationPriority: number;
22
22
  latitude?: number;
23
23
  longitude?: number;
24
+ continentId: number;
25
+ continentName: string;
24
26
  countryId: number;
25
27
  regionId?: number;
26
28
  oordId?: number;
@@ -28,9 +30,14 @@ export interface TideElasticProduct {
28
30
  price: number;
29
31
  originalPrice: number;
30
32
  flightPrice: number;
33
+ travelBudget: number;
34
+ priceWithTravelBudget: number;
35
+ currencyCode: string;
31
36
  averagePricePerPerson: number;
32
37
  averageOriginalPricePerPerson: number;
33
38
  averageFlightPricePerPerson: number;
39
+ averageTravelBudgetPerPerson: number;
40
+ averagePriceWithTravelBudgetPerPerson: number;
34
41
  adultCount: number;
35
42
  childCount: number;
36
43
  infantCount: number;
@@ -51,6 +58,7 @@ export interface TideElasticProduct {
51
58
  returnDepartureAirport: Record<string, string>;
52
59
  returnArrivalAirport: Record<string, string>;
53
60
  returnAirline: Record<string, string>;
61
+ continent: Record<string, string>;
54
62
  country: Record<string, string>;
55
63
  region: Record<string, string>;
56
64
  oord: Record<string, string>;
@@ -1,29 +1,29 @@
1
- export * from "./airline-booking-package-option";
2
- export * from "./airport-booking-package-option";
3
- export * from "./booking-airline-group";
4
- export * from "./booking-airport-group";
5
- export * from "./booking-option-group";
6
- export * from "./booking-option-pax";
7
- export * from "./booking-option-unit";
8
- export * from "./booking-package";
9
- export * from "./booking-package-entry";
10
- export * from "./booking-package-availability";
11
- export * from "./booking-package-flight";
12
- export * from "./booking-package-flight-meta-data";
13
- export * from "./booking-package-flight-meta-data-line";
14
- export * from "./booking-package-hotel";
15
- export * from "./booking-package-hotel-option";
16
- export * from "./booking-package-hotel-room";
17
- export * from "./booking-package-line";
18
- export * from "./booking-package-option";
19
- export * from "./booking-package-pax";
20
- export * from "./booking-package-request-room";
21
- export * from "./booking-package-room";
22
- export * from "./booking-package-room-option";
23
- export * from "./booking-package-tag";
24
- export * from "./per-booking-package-option";
25
- export * from "./per-package-option";
26
- export * from "./per-pax-package-option";
27
- export * from "./per-unit-package-option";
28
- export * from "./room-option-pax-type";
29
- export * from "./itinerary";
1
+ export * from "./airline-booking-package-option";
2
+ export * from "./airport-booking-package-option";
3
+ export * from "./booking-airline-group";
4
+ export * from "./booking-airport-group";
5
+ export * from "./booking-option-group";
6
+ export * from "./booking-option-pax";
7
+ export * from "./booking-option-unit";
8
+ export * from "./booking-package";
9
+ export * from "./booking-package-entry";
10
+ export * from "./booking-package-availability";
11
+ export * from "./booking-package-flight";
12
+ export * from "./booking-package-flight-meta-data";
13
+ export * from "./booking-package-flight-meta-data-line";
14
+ export * from "./booking-package-hotel";
15
+ export * from "./booking-package-hotel-option";
16
+ export * from "./booking-package-hotel-room";
17
+ export * from "./booking-package-line";
18
+ export * from "./booking-package-option";
19
+ export * from "./booking-package-pax";
20
+ export * from "./booking-package-request-room";
21
+ export * from "./booking-package-room";
22
+ export * from "./booking-package-room-option";
23
+ export * from "./booking-package-tag";
24
+ export * from "./per-booking-package-option";
25
+ export * from "./per-package-option";
26
+ export * from "./per-pax-package-option";
27
+ export * from "./per-unit-package-option";
28
+ export * from "./room-option-pax-type";
29
+ export * from "./itinerary";
@@ -1,41 +1,41 @@
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
- productCode: string;
18
- accommodationCode: string;
19
- regimeCode: string;
20
- icon: string;
21
- contents: string;
22
- templateName: string;
23
- itemGuid: string;
24
- latitude: number | null;
25
- longitude: number | null;
26
- images: ClientPortalItineraryImage[];
27
- fields: ClientPortalItineraryField[];
28
- productDuration?: number;
29
- isVirtual?: boolean;
30
- }
31
- export interface ClientPortalItineraryField {
32
- fieldName: string;
33
- groupName: string;
34
- value: string;
35
- }
36
- export interface ClientPortalItineraryImage {
37
- url: string;
38
- name: string;
39
- title: string;
40
- altText: string | null;
41
- }
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
+ productCode: string;
18
+ accommodationCode: string;
19
+ regimeCode: string;
20
+ icon: string;
21
+ contents: string;
22
+ templateName: string;
23
+ itemGuid: string;
24
+ latitude: number | null;
25
+ longitude: number | null;
26
+ images: ClientPortalItineraryImage[];
27
+ fields: ClientPortalItineraryField[];
28
+ productDuration?: number;
29
+ isVirtual?: boolean;
30
+ }
31
+ export interface ClientPortalItineraryField {
32
+ fieldName: string;
33
+ groupName: string;
34
+ value: string;
35
+ }
36
+ export interface ClientPortalItineraryImage {
37
+ url: string;
38
+ name: string;
39
+ title: string;
40
+ altText: string | null;
41
+ }
@@ -1,32 +1,32 @@
1
- import { Pax } from "../../offer";
2
- import { DateStruct } from "../../shared";
3
- export interface FlightSearchRequest {
4
- transactionId?: string;
5
- officeId: number;
6
- catalogueId: number;
7
- agentId?: number | null;
8
- language: string;
9
- departureAirportCode: string;
10
- arrivalAirportCode: string;
11
- returnAirportCode?: string | null;
12
- outward: FlightSearchRequestSpecification;
13
- return: FlightSearchRequestSpecification;
14
- travelClass?: number | null;
15
- maxStops?: number | null;
16
- luggageIncluded?: boolean | null;
17
- pax: Pax[];
18
- flightProvider?: string | null;
19
- vendorConfigurationId?: number | null;
20
- routeId?: string | null;
21
- }
22
- export interface FlightSearchRequestSpecification {
23
- date: DateStruct;
24
- departureHourMin?: number | null;
25
- departureHourMax?: number | null;
26
- arrivalHourMin?: number | null;
27
- arrivalHourMax?: number | null;
28
- isDepartureDate?: boolean | null;
29
- flightCode?: string | null;
30
- flightNumbers?: string[] | null;
31
- airlines?: string[] | null;
32
- }
1
+ import { Pax } from "../../offer";
2
+ import { DateStruct } from "../../shared";
3
+ export interface FlightSearchRequest {
4
+ transactionId?: string;
5
+ officeId: number;
6
+ catalogueId: number;
7
+ agentId?: number | null;
8
+ language: string;
9
+ departureAirportCode: string;
10
+ arrivalAirportCode: string;
11
+ returnAirportCode?: string | null;
12
+ outward: FlightSearchRequestSpecification;
13
+ return: FlightSearchRequestSpecification;
14
+ travelClass?: number | null;
15
+ maxStops?: number | null;
16
+ luggageIncluded?: boolean | null;
17
+ pax: Pax[];
18
+ flightProvider?: string | null;
19
+ vendorConfigurationId?: number | null;
20
+ routeId?: string | null;
21
+ }
22
+ export interface FlightSearchRequestSpecification {
23
+ date: DateStruct;
24
+ departureHourMin?: number | null;
25
+ departureHourMax?: number | null;
26
+ arrivalHourMin?: number | null;
27
+ arrivalHourMax?: number | null;
28
+ isDepartureDate?: boolean | null;
29
+ flightCode?: string | null;
30
+ flightNumbers?: string[] | null;
31
+ airlines?: string[] | null;
32
+ }
@@ -1,19 +1,19 @@
1
- export * from "./affiliate";
2
- export * from "./agent-allotment-item";
3
- export * from "./agent-allotment";
4
- export * from "./agent-dossier-allotment-item";
5
- export * from "./agent-dossier-allotment";
6
- export * from "./agent-dossier-entry-line";
7
- export * from "./agent-dossier-flight-meta-data-line";
8
- export * from "./agent-dossier-flight-meta-data";
9
- export * from "./agent-dossier-item";
10
- export * from "./agent-dossier-traveler";
11
- export * from "./agent-dossier";
12
- export * from "./contact-form-request";
13
- export * from "./generate-booking-accommodation-request";
14
- export * from "./locations-request";
15
- export * from "./tide-location";
16
- export * from "./portal";
17
- export * from "./airport";
18
- export * from "./website-configuration";
19
- export * from "./style-sheet";
1
+ export * from "./affiliate";
2
+ export * from "./agent-allotment-item";
3
+ export * from "./agent-allotment";
4
+ export * from "./agent-dossier-allotment-item";
5
+ export * from "./agent-dossier-allotment";
6
+ export * from "./agent-dossier-entry-line";
7
+ export * from "./agent-dossier-flight-meta-data-line";
8
+ export * from "./agent-dossier-flight-meta-data";
9
+ export * from "./agent-dossier-item";
10
+ export * from "./agent-dossier-traveler";
11
+ export * from "./agent-dossier";
12
+ export * from "./contact-form-request";
13
+ export * from "./generate-booking-accommodation-request";
14
+ export * from "./locations-request";
15
+ export * from "./tide-location";
16
+ export * from "./portal";
17
+ export * from "./airport";
18
+ export * from "./website-configuration";
19
+ export * from "./style-sheet";
@@ -1,7 +1,7 @@
1
- export interface StyleSheet {
2
- id: number;
3
- folderId?: number;
4
- name: string;
5
- format: string;
6
- body: string;
7
- }
1
+ export interface StyleSheet {
2
+ id: number;
3
+ folderId?: number;
4
+ name: string;
5
+ format: string;
6
+ body: string;
7
+ }
@@ -1,52 +1,52 @@
1
- import { TideClientConfig } from "..";
2
- import {
3
- PackagingTransaction,
4
- PackagingAccommodationRequest,
5
- PackagingAccommodationResponse,
6
- PackagingEntry,
7
- BookingPriceDetails,
8
- ClientPortalItinerary,
9
- FlightSearchRequest,
10
- PackagingFlightResponse,
11
- BookingPackageDossier,
12
- } from "../types";
13
- import { PackagingRequestBase } from "../types/booking-v2/request/packaging/packaging-request-base";
14
- export declare const startTransaction: (
15
- config: TideClientConfig,
16
- signal?: AbortSignal | undefined
17
- ) => Promise<PackagingTransaction>;
18
- export declare const searchPackagingAccommodations: (
19
- config: TideClientConfig,
20
- request: PackagingAccommodationRequest,
21
- signal?: AbortSignal | undefined
22
- ) => Promise<PackagingAccommodationResponse[]>;
23
- export declare const searchPackagingFlights: (
24
- config: TideClientConfig,
25
- request: FlightSearchRequest,
26
- signal?: AbortSignal | undefined
27
- ) => Promise<PackagingFlightResponse[]>;
28
- export declare const searchPackagingExcursions: (
29
- config: TideClientConfig,
30
- request: PackagingAccommodationRequest,
31
- signal?: AbortSignal | undefined
32
- ) => Promise<PackagingAccommodationResponse[]>;
33
- export declare const getEntry: (
34
- config: TideClientConfig,
35
- magicLinkCode: string,
36
- signal?: AbortSignal | undefined
37
- ) => Promise<PackagingEntry>;
38
- export declare const getPriceDetails: (
39
- config: TideClientConfig,
40
- request: PackagingRequestBase<PackagingEntry>,
41
- signal?: AbortSignal | undefined
42
- ) => Promise<BookingPriceDetails>;
43
- export declare const getItinerary: (
44
- config: TideClientConfig,
45
- request: PackagingRequestBase<PackagingEntry>,
46
- signal?: AbortSignal | undefined
47
- ) => Promise<ClientPortalItinerary>;
48
- export declare const bookPackagingEntry: (
49
- config: TideClientConfig,
50
- request: PackagingRequestBase<PackagingEntry>,
51
- signal?: AbortSignal | undefined
52
- ) => Promise<BookingPackageDossier>;
1
+ import { TideClientConfig } from "..";
2
+ import {
3
+ PackagingTransaction,
4
+ PackagingAccommodationRequest,
5
+ PackagingAccommodationResponse,
6
+ PackagingEntry,
7
+ BookingPriceDetails,
8
+ ClientPortalItinerary,
9
+ FlightSearchRequest,
10
+ PackagingFlightResponse,
11
+ BookingPackageDossier,
12
+ } from "../types";
13
+ import { PackagingRequestBase } from "../types/booking-v2/request/packaging/packaging-request-base";
14
+ export declare const startTransaction: (
15
+ config: TideClientConfig,
16
+ signal?: AbortSignal | undefined
17
+ ) => Promise<PackagingTransaction>;
18
+ export declare const searchPackagingAccommodations: (
19
+ config: TideClientConfig,
20
+ request: PackagingAccommodationRequest,
21
+ signal?: AbortSignal | undefined
22
+ ) => Promise<PackagingAccommodationResponse[]>;
23
+ export declare const searchPackagingFlights: (
24
+ config: TideClientConfig,
25
+ request: FlightSearchRequest,
26
+ signal?: AbortSignal | undefined
27
+ ) => Promise<PackagingFlightResponse[]>;
28
+ export declare const searchPackagingExcursions: (
29
+ config: TideClientConfig,
30
+ request: PackagingAccommodationRequest,
31
+ signal?: AbortSignal | undefined
32
+ ) => Promise<PackagingAccommodationResponse[]>;
33
+ export declare const getEntry: (
34
+ config: TideClientConfig,
35
+ magicLinkCode: string,
36
+ signal?: AbortSignal | undefined
37
+ ) => Promise<PackagingEntry>;
38
+ export declare const getPriceDetails: (
39
+ config: TideClientConfig,
40
+ request: PackagingRequestBase<PackagingEntry>,
41
+ signal?: AbortSignal | undefined
42
+ ) => Promise<BookingPriceDetails>;
43
+ export declare const getItinerary: (
44
+ config: TideClientConfig,
45
+ request: PackagingRequestBase<PackagingEntry>,
46
+ signal?: AbortSignal | undefined
47
+ ) => Promise<ClientPortalItinerary>;
48
+ export declare const bookPackagingEntry: (
49
+ config: TideClientConfig,
50
+ request: PackagingRequestBase<PackagingEntry>,
51
+ signal?: AbortSignal | undefined
52
+ ) => Promise<BookingPackageDossier>;
@@ -1,77 +1,77 @@
1
- import {
2
- Affiliate,
3
- ContactFormRequest,
4
- CrmContactRequest,
5
- GenerateBookingAccommodationRequest,
6
- LocationsRequest,
7
- TideClientConfig,
8
- TideLocation,
9
- WebsiteConfiguration,
10
- StyleSheet,
11
- } from "../types";
12
- /**
13
- * api/web/crmcontact
14
- * Creates a CRM contact.
15
- * @param config
16
- * @param request
17
- * @param signal
18
- * @returns OK if succeeded.
19
- */
20
- export declare const createCrmContact: (
21
- config: TideClientConfig,
22
- request: CrmContactRequest,
23
- signal?: AbortSignal | undefined
24
- ) => Promise<Response>;
25
- /**
26
- * api/web/contactform
27
- * Sends a contact request mail
28
- * @param config
29
- * @param request
30
- * @param signal
31
- * @returns OK if succeeded.
32
- */
33
- export declare const ContactForm: (
34
- config: TideClientConfig,
35
- request: ContactFormRequest,
36
- signal?: AbortSignal | undefined
37
- ) => Promise<Response>;
38
- /**
39
- * api/web/affiliates
40
- * Gets all Affiliates
41
- * @param config
42
- * @param signal
43
- * @returns OK if succeeded.
44
- */
45
- export declare const getAffiliates: (
46
- config: TideClientConfig,
47
- signal?: AbortSignal | undefined
48
- ) => Promise<[Affiliate]>;
49
- export declare const getTranslationDictionary: (
50
- config: TideClientConfig,
51
- segmentKey: string,
52
- signal?: AbortSignal | undefined
53
- ) => Promise<{
54
- [key: string]: object;
55
- }>;
56
- export declare const generateBookingAccommodations: (
57
- config: TideClientConfig,
58
- request: GenerateBookingAccommodationRequest,
59
- signal?: AbortSignal | undefined
60
- ) => Promise<{
61
- [key: string]: string;
62
- }>;
63
- export declare const getLocations: (
64
- config: TideClientConfig,
65
- request: LocationsRequest,
66
- signal?: AbortSignal | undefined
67
- ) => Promise<TideLocation[]>;
68
- export declare const getWebsiteConfiguration: (
69
- config: TideClientConfig,
70
- id: number,
71
- signal?: AbortSignal | undefined
72
- ) => Promise<WebsiteConfiguration>;
73
- export declare const getStyleSheet: (
74
- config: TideClientConfig,
75
- id: number,
76
- signal?: AbortSignal | undefined
77
- ) => Promise<StyleSheet>;
1
+ import {
2
+ Affiliate,
3
+ ContactFormRequest,
4
+ CrmContactRequest,
5
+ GenerateBookingAccommodationRequest,
6
+ LocationsRequest,
7
+ TideClientConfig,
8
+ TideLocation,
9
+ WebsiteConfiguration,
10
+ StyleSheet,
11
+ } from "../types";
12
+ /**
13
+ * api/web/crmcontact
14
+ * Creates a CRM contact.
15
+ * @param config
16
+ * @param request
17
+ * @param signal
18
+ * @returns OK if succeeded.
19
+ */
20
+ export declare const createCrmContact: (
21
+ config: TideClientConfig,
22
+ request: CrmContactRequest,
23
+ signal?: AbortSignal | undefined
24
+ ) => Promise<Response>;
25
+ /**
26
+ * api/web/contactform
27
+ * Sends a contact request mail
28
+ * @param config
29
+ * @param request
30
+ * @param signal
31
+ * @returns OK if succeeded.
32
+ */
33
+ export declare const ContactForm: (
34
+ config: TideClientConfig,
35
+ request: ContactFormRequest,
36
+ signal?: AbortSignal | undefined
37
+ ) => Promise<Response>;
38
+ /**
39
+ * api/web/affiliates
40
+ * Gets all Affiliates
41
+ * @param config
42
+ * @param signal
43
+ * @returns OK if succeeded.
44
+ */
45
+ export declare const getAffiliates: (
46
+ config: TideClientConfig,
47
+ signal?: AbortSignal | undefined
48
+ ) => Promise<[Affiliate]>;
49
+ export declare const getTranslationDictionary: (
50
+ config: TideClientConfig,
51
+ segmentKey: string,
52
+ signal?: AbortSignal | undefined
53
+ ) => Promise<{
54
+ [key: string]: object;
55
+ }>;
56
+ export declare const generateBookingAccommodations: (
57
+ config: TideClientConfig,
58
+ request: GenerateBookingAccommodationRequest,
59
+ signal?: AbortSignal | undefined
60
+ ) => Promise<{
61
+ [key: string]: string;
62
+ }>;
63
+ export declare const getLocations: (
64
+ config: TideClientConfig,
65
+ request: LocationsRequest,
66
+ signal?: AbortSignal | undefined
67
+ ) => Promise<TideLocation[]>;
68
+ export declare const getWebsiteConfiguration: (
69
+ config: TideClientConfig,
70
+ id: number,
71
+ signal?: AbortSignal | undefined
72
+ ) => Promise<WebsiteConfiguration>;
73
+ export declare const getStyleSheet: (
74
+ config: TideClientConfig,
75
+ id: number,
76
+ signal?: AbortSignal | undefined
77
+ ) => Promise<StyleSheet>;