@odynn/awayz-hotels 0.1.9 → 0.1.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.
@@ -15,7 +15,7 @@ export interface IHotelDetails {
15
15
  amount: number;
16
16
  };
17
17
  cashBookingOffers?: ICashBookingOffers;
18
- chainRating?: number;
18
+ chainRating: number;
19
19
  city: string;
20
20
  cityCode: string;
21
21
  coordinates: ICoordinates;
@@ -55,8 +55,8 @@ export interface IHotelDetails {
55
55
  pointsAsCash: IPointsAsCash;
56
56
  imagesS3?: string[];
57
57
  colour?: string;
58
- distance?: number;
59
- pointsCalculated?: number;
58
+ distance: number;
59
+ pointsCalculated: number;
60
60
  multiNight?: number[];
61
61
  priority?: boolean;
62
62
  awardCategory?: string;
@@ -111,7 +111,7 @@ export interface ICashBookingOffers {
111
111
  };
112
112
  matchedScore: number;
113
113
  keyCollection: any;
114
- cheapestRateTotalAmount: number | string;
114
+ cheapestRateTotalAmount: number;
115
115
  cheapestRateCurrency: string;
116
116
  chain: {
117
117
  name: string;
@@ -3,7 +3,7 @@ import { ISearchByCoordsParams, ISearchByHotelIdParams } from './useHotelSearch.
3
3
  * Awayz Hook to handle all hotel search logic
4
4
  */
5
5
  export declare const useHotelSearch: () => {
6
- results: import('../../components/HotelResult/HotelResult.types').IHotelDetails[];
6
+ results: import('../../main').IHotelDetails[];
7
7
  loading: boolean;
8
8
  searchByCoords: (args: ISearchByCoordsParams) => Promise<void>;
9
9
  searchByHotelId: (args: ISearchByHotelIdParams) => Promise<void>;
@@ -1,5 +1,6 @@
1
1
  import { IRoom, IRate } from './services/booking/BookingService.types';
2
+ import { IHotelDetails } from './components/HotelResult/HotelResult.types';
2
3
  export { ESearchType } from './services/hotel/HotelService.types';
3
4
  export * from './components';
4
5
  export * from './hooks';
5
- export type { IRoom, IRate };
6
+ export type { IRoom, IRate, IHotelDetails };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@odynn/awayz-hotels",
3
3
  "private": false,
4
- "version": "0.1.9",
4
+ "version": "0.1.10",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"