@odynn/awayz-hotels 0.13.6 → 0.13.7

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.
@@ -61,6 +61,7 @@ export interface IHotelDetails {
61
61
  checkinDate?: string;
62
62
  checkoutDate?: string;
63
63
  starRating: number;
64
+ datePointsRetrieved: string;
64
65
  }
65
66
  export interface IHotelPartner {
66
67
  bonus: number;
@@ -85,6 +85,7 @@ export interface IHotelResultResponse {
85
85
  points_as_cash?: IPointsAsCashResponse;
86
86
  cash_booking_offers?: ICashBookingOffersResponse;
87
87
  chain_rating: number;
88
+ date_points_retrieved: string;
88
89
  }
89
90
  interface IHotelPartnerResponse {
90
91
  program: string;
@@ -85,7 +85,7 @@ const a = (e) => {
85
85
  beds: e.beds
86
86
  };
87
87
  }, T = (e) => {
88
- var n, t, i, s, o, _, m, c, u, r, l, y, g, f, h, v, C, k, b, P;
88
+ var n, t, i, s, o, _, m, c, u, r, l, y, g, f, h, v, C, k, P, b;
89
89
  if (e)
90
90
  return {
91
91
  searchRoomRateId: e.search_room_rate_id,
@@ -124,8 +124,8 @@ const a = (e) => {
124
124
  keyCollection: e.key_collection,
125
125
  cheapestRateTotalAmount: a(e.cheapest_rate_total_amount),
126
126
  cheapestRateCurrency: e.cheapest_rate_currency ?? "",
127
- chain: { name: ((b = e.chain) == null ? void 0 : b.name) ?? "" },
128
- brand: { name: ((P = e.brand) == null ? void 0 : P.name) ?? "" },
127
+ chain: { name: ((P = e.chain) == null ? void 0 : P.name) ?? "" },
128
+ brand: { name: ((b = e.brand) == null ? void 0 : b.name) ?? "" },
129
129
  supportedLoyaltyProgramme: e.supported_loyalty_programme,
130
130
  amenities: e.amenities ?? []
131
131
  };
@@ -224,7 +224,8 @@ const a = (e) => {
224
224
  // Calculated separately
225
225
  pointsCalculated: 0,
226
226
  // Calculated separately
227
- starRating: w(e)
227
+ starRating: w(e),
228
+ datePointsRetrieved: e.date_points_retrieved
228
229
  };
229
230
  }, S = (e) => {
230
231
  var n, t, i, s, o;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@odynn/awayz-hotels",
3
3
  "private": false,
4
- "version": "0.13.6",
4
+ "version": "0.13.7",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"