@qite/tide-client 1.1.98 → 1.1.100

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.
@@ -0,0 +1,8 @@
1
+ import { TideElasticProduct } from "./tide-elastic-product";
2
+ export interface ElasticResultHit {
3
+ _index: string;
4
+ _type: string;
5
+ _id: string;
6
+ _score: number;
7
+ _source: TideElasticProduct;
8
+ }
@@ -0,0 +1,17 @@
1
+ import { ElasticResultHit } from "./elastic-result-hit";
2
+ export interface ElasticResult {
3
+ took: number;
4
+ timed_out: boolean;
5
+ _shards: {
6
+ total: number;
7
+ successful: number;
8
+ skipped: number;
9
+ failed: number;
10
+ };
11
+ hits: {
12
+ total: number;
13
+ max_score: number;
14
+ hits: ElasticResultHit[];
15
+ };
16
+ aggregations: any;
17
+ }
@@ -20,6 +20,10 @@ export * from "./booking-travel-agent";
20
20
  export * from "./booking-validity-line";
21
21
  export * from "./booking-voucher-result";
22
22
  export * from "./changed-line";
23
+ export * from "./elastic-result";
24
+ export * from "./elastic-result-hit";
25
+ export * from "./tide-elastic-product";
26
+ export * from "./tide-elastic-tag";
23
27
  export * from "./tide-response";
24
28
  export * from "./tour-codes-response";
25
29
  export * from "./transport-dates-response";
@@ -0,0 +1,59 @@
1
+ import { TideElasticTag } from "./tide-elastic-tag";
2
+ export interface TideElasticProduct {
3
+ catalogueIds: number[];
4
+ officeIds: number[];
5
+ productCode: string;
6
+ accommodationCode: string;
7
+ regimeCode: string;
8
+ isOnRequest: boolean;
9
+ serviceType: number;
10
+ tags: TideElasticTag[];
11
+ serviceTypes: number[];
12
+ fromDate: string;
13
+ fromDateTicks: number;
14
+ stayFromDate: string;
15
+ stayFromDateTicks: number;
16
+ stayToDate: string;
17
+ stayToDateTicks: number;
18
+ toDate: string;
19
+ toDateTicks: number;
20
+ duration: number;
21
+ durationPriority: number;
22
+ latitude?: number;
23
+ longitude?: number;
24
+ countryId: number;
25
+ regionId?: number;
26
+ oordId?: number;
27
+ locationId?: number;
28
+ price: number;
29
+ originalPrice: number;
30
+ flightPrice: number;
31
+ averagePricePerPerson: number;
32
+ averageOriginalPricePerPerson: number;
33
+ averageFlightPricePerPerson: number;
34
+ adultCount: number;
35
+ childCount: number;
36
+ infantCount: number;
37
+ transportOrder?: number;
38
+ outwardDepartureAirportCode: string;
39
+ outwardArrivalAirportCode: string;
40
+ outwardAirlineCode: string;
41
+ returnDepartureAirportCode: string;
42
+ returnArrivalAirportCode: string;
43
+ returnAirlineCode: string;
44
+ travelClass: string;
45
+ name: Record<string, string>;
46
+ accommodation: Record<string, string>;
47
+ regime: Record<string, string>;
48
+ outwardDepartureAirport: Record<string, string>;
49
+ outwardArrivalAirport: Record<string, string>;
50
+ outwardAirline: Record<string, string>;
51
+ returnDepartureAirport: Record<string, string>;
52
+ returnArrivalAirport: Record<string, string>;
53
+ returnAirline: Record<string, string>;
54
+ country: Record<string, string>;
55
+ region: Record<string, string>;
56
+ oord: Record<string, string>;
57
+ location: Record<string, string>;
58
+ extraData: Record<string, any>;
59
+ }
@@ -0,0 +1,4 @@
1
+ export interface TideElasticTag {
2
+ id: number;
3
+ name: Record<string, string>;
4
+ }
@@ -23,6 +23,7 @@ import {
23
23
  BookingPriceDetails,
24
24
  BookingTravelAgent,
25
25
  BookingVoucherResult,
26
+ ElasticResult,
26
27
  EntryStatus,
27
28
  PricesRequest,
28
29
  TideResponse,
@@ -61,6 +62,11 @@ export declare const searchWithErrorMapping: (
61
62
  request: BookingPackageRequest<BookingPackageSearchRequest>,
62
63
  signal?: AbortSignal | undefined
63
64
  ) => Promise<TideResponse<BookingPackageItem[]>>;
65
+ export declare const searchElastic: (
66
+ config: TideClientConfig,
67
+ request: string,
68
+ signal?: AbortSignal | undefined
69
+ ) => Promise<ElasticResult>;
64
70
  export declare const details: (
65
71
  config: TideClientConfig,
66
72
  request: BookingPackageRequest<BookingPackageDetailsRequest>,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qite/tide-client",
3
- "version": "1.1.98",
3
+ "version": "1.1.100",
4
4
  "description": "Frontend client for Tide",
5
5
  "main": "build/index.js",
6
6
  "scripts": {