@qite/tide-client 1.1.144 → 1.1.146

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.
@@ -1,4 +1,6 @@
1
- export declare const AvailabilitySearchType: {
2
- default: number;
3
- allotment: number;
4
- };
1
+ export declare enum AvailabilitySearchType {
2
+ default = 0,
3
+ allotment = 1,
4
+ fixedDuration = 2,
5
+ flight = 3,
6
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum DateAmountType {
2
+ days = 0,
3
+ months = 1,
4
+ }
@@ -20,3 +20,5 @@ export * from "./sale-type";
20
20
  export * from "./service-type";
21
21
  export * from "./unit-of-measure";
22
22
  export * from "./vendor-type";
23
+ export * from "./date-amount-type";
24
+ export * from "./portal-qsm-type";
@@ -0,0 +1,13 @@
1
+ export declare enum PortalQsmType {
2
+ Multidestination = 0,
3
+ Accommodation = 1,
4
+ AccommodationAndFlight = 2,
5
+ Flight = 3,
6
+ RoundTrip = 4,
7
+ GroupTour = 5,
8
+ Package = 6,
9
+ Ticket = 7,
10
+ Car = 8,
11
+ Transfer = 9,
12
+ Cruise = 10,
13
+ }
@@ -15,3 +15,4 @@ export * from "./locations-request";
15
15
  export * from "./tide-location";
16
16
  export * from "./portal";
17
17
  export * from "./airport";
18
+ export * from "./website-configuration";
@@ -0,0 +1,32 @@
1
+ import { AvailabilitySearchType } from "../enums";
2
+ import { DateAmountType } from "../enums/date-amount-type";
3
+ import { PortalQsmType } from "../enums/portal-qsm-type";
4
+ export interface WebsiteConfiguration {
5
+ styleSheetIds: number[];
6
+ searchConfigurations: WebsiteConfigurationSearchConfiguration[];
7
+ languageCodes: string[];
8
+ countryImageTemplateFieldName: string;
9
+ regionImageTemplateFieldName: string;
10
+ oordImageTemplateFieldName: string;
11
+ locationImageTemplateFieldName: string;
12
+ }
13
+ export interface WebsiteConfigurationSearchConfiguration {
14
+ id: number;
15
+ name: string;
16
+ icon: string;
17
+ defaultSearchType: AvailabilitySearchType;
18
+ serviceTypes: number[];
19
+ defaultCatalogueId?: number;
20
+ defaultDuration?: number;
21
+ fromDateAmount: number;
22
+ fromDateAmountType: DateAmountType;
23
+ toDateAmount: number;
24
+ toDateAmountType: DateAmountType;
25
+ enableManualPackaging: boolean;
26
+ allowFlights: boolean;
27
+ allowAccommodations: boolean;
28
+ allowCarRentals: boolean;
29
+ allowTransfers: boolean;
30
+ allowExcursions: boolean;
31
+ qsmType: PortalQsmType;
32
+ }
@@ -6,6 +6,7 @@ import {
6
6
  LocationsRequest,
7
7
  TideClientConfig,
8
8
  TideLocation,
9
+ WebsiteConfiguration,
9
10
  } from "../types";
10
11
  /**
11
12
  * api/web/crmcontact
@@ -63,3 +64,8 @@ export declare const getLocations: (
63
64
  request: LocationsRequest,
64
65
  signal?: AbortSignal | undefined
65
66
  ) => Promise<TideLocation[]>;
67
+ export declare const getWebsiteConfiguration: (
68
+ config: TideClientConfig,
69
+ id: number,
70
+ signal?: AbortSignal | undefined
71
+ ) => Promise<WebsiteConfiguration>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qite/tide-client",
3
- "version": "1.1.144",
3
+ "version": "1.1.146",
4
4
  "description": "Frontend client for Tide",
5
5
  "main": "build/index.js",
6
6
  "scripts": {