@findhotel/sapi 1.31.8 → 1.31.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.
|
@@ -56,6 +56,9 @@ export interface MatchedDim {
|
|
|
56
56
|
payLater: boolean;
|
|
57
57
|
offerType: boolean;
|
|
58
58
|
}
|
|
59
|
+
declare type MealPlan = 'room_only' | 'breakfast' | 'half_board' | 'full_board' | 'all_inclusive';
|
|
60
|
+
declare type CancellationPolicyKey = 'non_refundable' | 'free_cancellation' | 'partially_refundable';
|
|
61
|
+
export declare type OfferTitleKey = `${MealPlan}_${CancellationPolicyKey}`;
|
|
59
62
|
export interface RoomOffer {
|
|
60
63
|
id: string;
|
|
61
64
|
availableRooms: number;
|
|
@@ -70,6 +73,7 @@ export interface RoomOffer {
|
|
|
70
73
|
providerRateType: string;
|
|
71
74
|
canPayLater: boolean;
|
|
72
75
|
services: string[];
|
|
76
|
+
offerTitleKey?: OfferTitleKey;
|
|
73
77
|
isClicked?: boolean;
|
|
74
78
|
matchType?: 'exact' | 'by_price' | 'by_terms';
|
|
75
79
|
matchedDim?: MatchedDim;
|
|
@@ -195,3 +199,4 @@ export interface RoomsResultsV2 {
|
|
|
195
199
|
complete: boolean;
|
|
196
200
|
};
|
|
197
201
|
}
|
|
202
|
+
export {};
|
|
@@ -72,8 +72,8 @@ export interface OptionalSearchParameters {
|
|
|
72
72
|
optimizeAnchorRooms?: boolean;
|
|
73
73
|
dayDistance?: number;
|
|
74
74
|
nights?: number;
|
|
75
|
-
sortField?:
|
|
76
|
-
sortOrder?:
|
|
75
|
+
sortField?: SortField;
|
|
76
|
+
sortOrder?: SortOrder;
|
|
77
77
|
filters?: FilterParameters;
|
|
78
78
|
offset?: number;
|
|
79
79
|
length?: number;
|
|
@@ -458,4 +458,6 @@ export interface Characteristic {
|
|
|
458
458
|
name: string;
|
|
459
459
|
value: object;
|
|
460
460
|
}
|
|
461
|
+
export declare type SortOrder = 'ascending' | 'descending';
|
|
462
|
+
export declare type SortField = 'popularity' | 'price' | 'privateDeals' | 'guestRating' | 'distance' | 'starRating';
|
|
461
463
|
export {};
|