@odynn/awayz-hotels 0.13.0 → 0.13.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.
|
@@ -80,6 +80,7 @@ export interface IHotelResultResponse {
|
|
|
80
80
|
hotel_program?: IHotelProgramResponse & {
|
|
81
81
|
logo: string;
|
|
82
82
|
};
|
|
83
|
+
points_program_display?: string;
|
|
83
84
|
best_value: string;
|
|
84
85
|
points_as_cash?: IPointsAsCashResponse;
|
|
85
86
|
cash_booking_offers?: ICashBookingOffersResponse;
|
|
@@ -81,7 +81,7 @@ const n = (e) => {
|
|
|
81
81
|
beds: e.beds
|
|
82
82
|
};
|
|
83
83
|
}, T = (e) => {
|
|
84
|
-
var a, t, i, s, o, _, m, c, u, r, l, y, g, f, h, C, v, b, k,
|
|
84
|
+
var a, t, i, s, o, _, m, c, u, r, l, y, g, f, h, C, v, b, k, P;
|
|
85
85
|
if (e)
|
|
86
86
|
return {
|
|
87
87
|
searchRoomRateId: e.search_room_rate_id,
|
|
@@ -121,11 +121,11 @@ const n = (e) => {
|
|
|
121
121
|
cheapestRateTotalAmount: n(e.cheapest_rate_total_amount),
|
|
122
122
|
cheapestRateCurrency: e.cheapest_rate_currency ?? "",
|
|
123
123
|
chain: { name: ((k = e.chain) == null ? void 0 : k.name) ?? "" },
|
|
124
|
-
brand: { name: ((
|
|
124
|
+
brand: { name: ((P = e.brand) == null ? void 0 : P.name) ?? "" },
|
|
125
125
|
supportedLoyaltyProgramme: e.supported_loyalty_programme,
|
|
126
126
|
amenities: e.amenities ?? []
|
|
127
127
|
};
|
|
128
|
-
},
|
|
128
|
+
}, A = (e) => ({
|
|
129
129
|
bonus: (e == null ? void 0 : e.bonus) ?? 0,
|
|
130
130
|
stepThreshold: (e == null ? void 0 : e.step_threshold) ?? 0
|
|
131
131
|
}), R = (e) => ({
|
|
@@ -135,7 +135,7 @@ const n = (e) => {
|
|
|
135
135
|
transferMinutes: e.transfer_minutes,
|
|
136
136
|
minimumTransfer: e.minimum_transfer,
|
|
137
137
|
transferDenominator: e.transfer_denominator,
|
|
138
|
-
stepBonus:
|
|
138
|
+
stepBonus: A(e.step_bonus)
|
|
139
139
|
}), N = (e) => {
|
|
140
140
|
if (e)
|
|
141
141
|
return {
|
|
@@ -145,7 +145,7 @@ const n = (e) => {
|
|
|
145
145
|
transferMinutes: e.transfer_minutes,
|
|
146
146
|
minimumTransfer: e.minimum_transfer,
|
|
147
147
|
transferDenominator: e.transfer_denominator,
|
|
148
|
-
stepBonus:
|
|
148
|
+
stepBonus: A(e.step_bonus),
|
|
149
149
|
valueCent: e.value_cent,
|
|
150
150
|
logo: e.logo
|
|
151
151
|
};
|
|
@@ -214,6 +214,7 @@ const n = (e) => {
|
|
|
214
214
|
liveScrapingCheckNeeded: e.live_scraping_check_needed,
|
|
215
215
|
partners: ((u = e.partners) == null ? void 0 : u.map(R)) ?? [],
|
|
216
216
|
hotelProgram: N(e.hotel_program),
|
|
217
|
+
pointsProgramDisplay: e.points_program_display,
|
|
217
218
|
bestValue: e.best_value,
|
|
218
219
|
pointsAsCash: I(e.points_as_cash),
|
|
219
220
|
cashBookingOffers: T(e.cash_booking_offers),
|
|
@@ -239,7 +240,7 @@ const n = (e) => {
|
|
|
239
240
|
},
|
|
240
241
|
rooms: ((o = e.rooms) == null ? void 0 : o.map(p)) ?? []
|
|
241
242
|
};
|
|
242
|
-
},
|
|
243
|
+
}, D = (e) => {
|
|
243
244
|
var a, t;
|
|
244
245
|
return {
|
|
245
246
|
partnerProgram: e.partner_program,
|
|
@@ -267,5 +268,5 @@ export {
|
|
|
267
268
|
x as mapLiveHotelCheckResponse,
|
|
268
269
|
w as mapRateResponse,
|
|
269
270
|
p as mapRoomResponse,
|
|
270
|
-
|
|
271
|
+
D as mapTransferPartnerResponse
|
|
271
272
|
};
|