@findhotel/sapi
Advanced tools
Comparing version 1.6.7 to 1.7.0
@@ -9,2 +9,3 @@ export declare type ProfileKey = 'findhotel-website' | 'findhotel-website-e2e' | 'findhotel-website-stg' | 'findhotel-website-ci' | 'findhotel-website-dev' | 'findhotel-website-dev2' | 'findhotel-checkout' | 'findhotel-checkout-e2e' | 'findhotel-checkout-stg'; | ||
offers: string; | ||
offersPoll: string; | ||
roomsOffers: string; | ||
@@ -18,3 +19,2 @@ addressSuggests: string; | ||
endpoints: { | ||
offersRooms: string; | ||
hotel: string; | ||
@@ -21,0 +21,0 @@ hotels: string; |
@@ -1,2 +0,7 @@ | ||
import { CugDeals, HotelId, HotelOfferEntity, Offer, Options as ClientOptions, UserTier, SapiResponseOffer, SapiResponseOfferEntity, OffersRooms } from './types'; | ||
import { CugDeals, HotelId, HotelOfferEntity, Brand, Currency, Country, Language, DeviceType, AnonymousId, Offer, Options as ClientOptions, UserTier, SapiResponseOffer, SapiResponseOfferEntity, OffersRooms } from './types'; | ||
export interface SapiOffersError { | ||
message: string; | ||
priority: number; | ||
type: number; | ||
} | ||
export interface GetOffersParameters { | ||
@@ -38,2 +43,33 @@ anchorHotelId?: HotelId; | ||
} | ||
export interface OffersRequest { | ||
checkIn: string; | ||
checkOut: string; | ||
anchorHotelId?: string; | ||
hotelIds?: string[]; | ||
rooms: string; | ||
optimizeRooms?: boolean; | ||
searchId: string; | ||
cugDeals?: CugDeals; | ||
tier?: UserTier; | ||
language: Language; | ||
deviceType: DeviceType; | ||
anonymousId: AnonymousId; | ||
currency: Currency; | ||
originId?: string; | ||
brand?: Brand; | ||
clientRequestId: string; | ||
sortingBoost?: string; | ||
getAllOffers: boolean; | ||
preferredRate?: number; | ||
label?: string; | ||
countryCode: Country; | ||
variations: string[]; | ||
metadata?: string; | ||
filters?: string; | ||
sort?: string; | ||
sbc?: string; | ||
priceMin?: number; | ||
priceMax?: number; | ||
} | ||
export declare function sortIsValid(sort: string): boolean; | ||
export declare function createRequest(parameters: GetOffersParameters, options: ClientOptions, clientRequestId: string): string | undefined; | ||
@@ -40,0 +76,0 @@ export declare function sapiResponseOfferToOffer(offer: SapiResponseOffer, rooms: OffersRooms): Offer; |
@@ -41,2 +41,7 @@ import { HotelId, AnonymousId, Currency, RoomId, UserTier, CancellationPenalties } from './types'; | ||
}; | ||
rate: { | ||
base: number; | ||
taxes: number; | ||
hotelFees: number; | ||
}; | ||
type: string; | ||
@@ -57,7 +62,8 @@ } | ||
cug: string[]; | ||
extraParams: unknown; | ||
extraParams?: unknown; | ||
links: RoomLinks[]; | ||
packageId: RoomPackageId; | ||
packageId?: RoomPackageId; | ||
prices: RoomPrice[]; | ||
providerRateId: string; | ||
providerCode: string; | ||
providerRateId?: string; | ||
providerRateType: string; | ||
@@ -75,2 +81,3 @@ canPayLater: boolean; | ||
}; | ||
tags: Array<'top_offer' | 'anchor_price' | 'exclusive_cheapest_offer' | 'preferred_rate'>; | ||
} | ||
@@ -90,3 +97,5 @@ export interface RoomImage { | ||
id: RoomId; | ||
masterId: string; | ||
name: string; | ||
raaName: string; | ||
description: string; | ||
@@ -93,0 +102,0 @@ images: RoomImage[]; |
@@ -15,3 +15,3 @@ import { OffersResponse } from '../offers-client'; | ||
exchangeRate: number; | ||
hotelIds: HotelId[]; | ||
hotelIds?: HotelId[]; | ||
getTotalRate: GetTotalRate; | ||
@@ -18,0 +18,0 @@ } |
{ | ||
"name": "@findhotel/sapi", | ||
"version": "1.6.7", | ||
"version": "1.7.0", | ||
"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
281506
68
2573