@findhotel/sapi 1.7.10 → 1.8.1-beta.0

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.
@@ -9,6 +9,7 @@ export interface AppConfig {
9
9
  offersPoll: string;
10
10
  roomsOffers: string;
11
11
  addressSuggests: string;
12
+ freeTextSuggests: string;
12
13
  availability: string;
13
14
  };
14
15
  };
@@ -22,6 +22,7 @@ interface OffersParameters {
22
22
  metadata?: Record<string, string>;
23
23
  filters?: FilterParameters;
24
24
  offersSort?: string;
25
+ optimizeRooms?: boolean;
25
26
  }
26
27
  interface Callbacks {
27
28
  onStart?: (parameters: GetOffersParameters) => void;
@@ -64,6 +64,7 @@ export interface OptionalSearchParameters {
64
64
  checkOut?: string;
65
65
  rooms?: string;
66
66
  optimizeRooms?: boolean;
67
+ optimizeAnchorRooms?: boolean;
67
68
  dayDistance?: number;
68
69
  nights?: number;
69
70
  sortField?: string;
@@ -294,6 +295,10 @@ export declare type Anchor = HotelAnchor | PlaceAnchor;
294
295
  export declare type PlaceTypeName = 'property' | 'country' | 'city' | 'airport' | 'station' | 'area' | 'address';
295
296
  export declare type SuggestType = 'hotel' | 'place' | 'address';
296
297
  export interface Suggestion {
298
+ filters?: Record<string, [{
299
+ id: number;
300
+ value: string;
301
+ }]>;
297
302
  highlightValue: string;
298
303
  objectID: string;
299
304
  objectType: SuggestType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@findhotel/sapi",
3
- "version": "1.7.10",
3
+ "version": "1.8.1-beta.0",
4
4
  "description": "FindHotel Search API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/types/packages/core/src",