@findhotel/sapi
Advanced tools
Comparing version 0.20.1 to 0.20.2
@@ -0,1 +1,7 @@ | ||
## [0.20.2](https://github.com/FindHotel/sapi/compare/v0.20.1...v0.20.2) (2021-08-16) | ||
### Changed | ||
- Use first offer instead of cheapest to calculate deal score | ||
### Fixed | ||
- `regularPriceRange` being `[null, null]` changed to `undefined` in case of missing `priceBucketWidth` | ||
## [0.20.1](https://github.com/FindHotel/sapi/compare/v0.19.3...v0.20.1) (2021-08-10) | ||
@@ -2,0 +8,0 @@ ### Changed |
@@ -7,3 +7,3 @@ import { AlgoliaClient } from '..'; | ||
requestSize: number; | ||
priceBucketWidth: number; | ||
priceBucketWidth?: number; | ||
priceBucketsCount: number; | ||
@@ -10,0 +10,0 @@ exchangeRate: number; |
@@ -5,3 +5,3 @@ interface PriceFilterParameters { | ||
margin?: number; | ||
priceBucketWidth: number; | ||
priceBucketWidth?: number; | ||
priceBucketsCount: number; | ||
@@ -8,0 +8,0 @@ priceMax?: number; |
@@ -10,3 +10,3 @@ import { OffersResponse } from './raa'; | ||
}; | ||
priceBucketWidth: number; | ||
priceBucketWidth?: number; | ||
priceBucketsCount: number; | ||
@@ -22,2 +22,3 @@ exchangeRate: number; | ||
export declare function isOfferInPriceRange(offer: Offer, upperBound: number, priceMin?: number, priceMax?: number): boolean; | ||
export declare function applyPriceFilter(parameters: Parameters, hotelOfferEntity: HotelOfferEntity): HotelOfferEntity; | ||
interface TopOfferDataWithAnchorPriceParameters { | ||
@@ -24,0 +25,0 @@ topOfferData: TopOfferData; |
@@ -101,3 +101,3 @@ /** | ||
placeDN: TranslatedArray; | ||
priceBucketWidth: number; | ||
priceBucketWidth?: number; | ||
_geoloc: Location; | ||
@@ -104,0 +104,0 @@ } |
@@ -5,3 +5,3 @@ import { HotelId, HotelOfferEntity, Hotel } from '../types'; | ||
hotelId: HotelId, | ||
cheapestRate?: number, | ||
rate?: number, | ||
lowerBound?: number, | ||
@@ -8,0 +8,0 @@ upperBound?: number |
@@ -6,7 +6,7 @@ import { Hotel } from '../types'; | ||
* @param hotel - hotel to augment | ||
* @param exchangeRate - currency exchange rate | ||
* @param priceBucketWidth - price bucked width from search anchor | ||
* @param exchangeRate - currency exchange rate | ||
* | ||
* @returns Hotel | ||
*/ | ||
export declare function augmentHotelWithRegularPriceRange(hotel: Hotel, priceBucketWidth: number, exchangeRate: number): Hotel; | ||
export declare function augmentHotelWithRegularPriceRange(hotel: Hotel, exchangeRate: number, priceBucketWidth?: number): Hotel; |
{ | ||
"name": "@findhotel/sapi", | ||
"version": "0.20.1", | ||
"version": "0.20.2", | ||
"description": "FindHotel Search API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
243734
2214