@findhotel/sapi 1.11.2 → 1.12.1
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.
|
@@ -65,7 +65,9 @@ export interface SplitBookingOffer {
|
|
|
65
65
|
checkIn: string;
|
|
66
66
|
checkOut: string;
|
|
67
67
|
}
|
|
68
|
-
export interface
|
|
68
|
+
export interface SplitBookingBundle {
|
|
69
|
+
url?: string;
|
|
70
|
+
bundleId?: string;
|
|
69
71
|
offers?: SplitBookingOffer[];
|
|
70
72
|
tags?: string[];
|
|
71
73
|
totalRate?: RateBreakdown;
|
|
@@ -89,7 +91,7 @@ export interface HotelOfferEntity {
|
|
|
89
91
|
/** Room configuration of the offers */
|
|
90
92
|
roomsConfig?: string;
|
|
91
93
|
/** Split booking offers */
|
|
92
|
-
splitBooking?:
|
|
94
|
+
splitBooking?: SplitBookingBundle;
|
|
93
95
|
/** Indicates if this hotel has more offers without filtering */
|
|
94
96
|
hasMoreOffersWithoutFiltering: HasMoreOffersWithoutFiltering;
|
|
95
97
|
/** Offers for requested promos where key is promo name and value is promo offer */
|
|
@@ -125,7 +127,9 @@ export interface SapiSplitBookingOffer {
|
|
|
125
127
|
checkIn: string;
|
|
126
128
|
checkOut: string;
|
|
127
129
|
}
|
|
128
|
-
interface
|
|
130
|
+
interface SapiSplitBookingBundle {
|
|
131
|
+
url?: string;
|
|
132
|
+
bundleId?: string;
|
|
129
133
|
offers?: SapiSplitBookingOffer[];
|
|
130
134
|
tags?: string[];
|
|
131
135
|
totalRate?: RateBreakdown;
|
|
@@ -147,7 +151,7 @@ export interface SapiResponseOfferEntity {
|
|
|
147
151
|
rooms: OffersRooms;
|
|
148
152
|
discount?: Discount;
|
|
149
153
|
roomsConfig?: string;
|
|
150
|
-
splitBooking?:
|
|
154
|
+
splitBooking?: SapiSplitBookingBundle;
|
|
151
155
|
promos?: SapiResponsePromos;
|
|
152
156
|
hasMoreOffersWithoutFiltering: HasMoreOffersWithoutFiltering;
|
|
153
157
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RateBreakdown } from './offers';
|
|
1
2
|
import { HotelId, AnonymousId, Currency, RoomId, UserTier, CancellationPenalties } from './types';
|
|
2
3
|
export interface RoomsRequestParameters {
|
|
3
4
|
hotelId: HotelId;
|
|
@@ -18,6 +19,8 @@ export interface RoomsRequestParameters {
|
|
|
18
19
|
deviceId?: string;
|
|
19
20
|
searchId?: string;
|
|
20
21
|
metadata?: Record<string, string>;
|
|
22
|
+
bundleId?: string;
|
|
23
|
+
bundleID?: string;
|
|
21
24
|
}
|
|
22
25
|
export declare type RoomPackageId = string;
|
|
23
26
|
export interface RoomLinks {
|
|
@@ -101,9 +104,24 @@ export interface Room {
|
|
|
101
104
|
hasClickedOffer?: boolean;
|
|
102
105
|
squashedIds?: string[];
|
|
103
106
|
}
|
|
107
|
+
export interface RoomSplitBookingOffer {
|
|
108
|
+
checkIn: string;
|
|
109
|
+
checkOut: string;
|
|
110
|
+
offer: RoomOffer;
|
|
111
|
+
room: Omit<Room, 'offers'>;
|
|
112
|
+
}
|
|
113
|
+
export interface RoomsSplitBooking {
|
|
114
|
+
bundleId: string;
|
|
115
|
+
links: RoomLinks[];
|
|
116
|
+
offers: RoomSplitBookingOffer[];
|
|
117
|
+
prices: RoomPrice[];
|
|
118
|
+
tags: string[];
|
|
119
|
+
totalRate: RateBreakdown;
|
|
120
|
+
}
|
|
104
121
|
export interface RoomsResults {
|
|
105
122
|
hotelId: HotelId;
|
|
106
123
|
rooms: Room[];
|
|
107
124
|
searchId: string;
|
|
108
125
|
anonymousId: AnonymousId;
|
|
126
|
+
splitBooking?: RoomsSplitBooking;
|
|
109
127
|
}
|