@revolugo/booking-api-client 7.4.2 → 7.4.3-alpha.0
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.
- package/dist/index.es.js +58 -62
- package/dist/index.umd.js +2 -2
- package/dist/types/v1/models/HotelOfferRequestCreateApi.d.ts +0 -7
- package/dist/types/v1/models/HotelRoomOfferRequestApiResponse.d.ts +6 -6
- package/dist/types/v1/models/HotelRoomOfferRequestApiResponseAllOf.d.ts +0 -7
- package/dist/types/v1/models/HotelRoomOfferRequestApiResponseAllOf1.d.ts +7 -11
- package/dist/types/v1/models/HotelRoomOfferRequestCreateApi.d.ts +0 -7
- package/package.json +10 -10
package/dist/index.es.js
CHANGED
|
@@ -1436,7 +1436,7 @@ function Cr(e, t, r) {
|
|
|
1436
1436
|
return wt.randomUUID && !e ? wt.randomUUID() : Mr(e);
|
|
1437
1437
|
}
|
|
1438
1438
|
const Ir = 1500;
|
|
1439
|
-
class
|
|
1439
|
+
class ue {
|
|
1440
1440
|
static instance = null;
|
|
1441
1441
|
defaultOptions = {
|
|
1442
1442
|
callCount: 1,
|
|
@@ -1454,7 +1454,7 @@ class de {
|
|
|
1454
1454
|
};
|
|
1455
1455
|
pollings = {};
|
|
1456
1456
|
static getInstance() {
|
|
1457
|
-
return
|
|
1457
|
+
return ue.instance || (ue.instance = new ue()), ue.instance;
|
|
1458
1458
|
}
|
|
1459
1459
|
on(t, r) {
|
|
1460
1460
|
this.events[t] = r;
|
|
@@ -1510,7 +1510,7 @@ class de {
|
|
|
1510
1510
|
}
|
|
1511
1511
|
}
|
|
1512
1512
|
function Nt(e, t, r) {
|
|
1513
|
-
const i =
|
|
1513
|
+
const i = ue.getInstance();
|
|
1514
1514
|
return i.poll(e, t), r && typeof r == "function" ? (i.on("data", (o) => {
|
|
1515
1515
|
o instanceof Error ? r(o, void 0, i) : r(null, o, i);
|
|
1516
1516
|
}), i.on("error", (o) => {
|
|
@@ -2492,7 +2492,7 @@ function uc(e) {
|
|
|
2492
2492
|
let t = !0;
|
|
2493
2493
|
return t = t && "isHeroImage" in e, t = t && "l" in e, t = t && "m" in e, t = t && "s" in e, t = t && "xl" in e, t = t && "xs" in e, t;
|
|
2494
2494
|
}
|
|
2495
|
-
function
|
|
2495
|
+
function de(e) {
|
|
2496
2496
|
return an(e);
|
|
2497
2497
|
}
|
|
2498
2498
|
function an(e, t) {
|
|
@@ -2506,7 +2506,7 @@ function an(e, t) {
|
|
|
2506
2506
|
xs: e.xs
|
|
2507
2507
|
};
|
|
2508
2508
|
}
|
|
2509
|
-
function
|
|
2509
|
+
function me(e) {
|
|
2510
2510
|
if (e !== void 0)
|
|
2511
2511
|
return e === null ? null : {
|
|
2512
2512
|
caption: e.caption,
|
|
@@ -2535,7 +2535,7 @@ function sn(e, t) {
|
|
|
2535
2535
|
highresImages: n(e, "highres_images") ? e.highres_images : void 0,
|
|
2536
2536
|
id: e.id,
|
|
2537
2537
|
imageIndexes: n(e, "image_indexes") ? e.image_indexes : void 0,
|
|
2538
|
-
images: n(e, "images") ? e.images === null ? null : e.images.map(
|
|
2538
|
+
images: n(e, "images") ? e.images === null ? null : e.images.map(de) : void 0,
|
|
2539
2539
|
lowresImages: n(e, "lowres_images") ? e.lowres_images : void 0,
|
|
2540
2540
|
occupancy: e.occupancy,
|
|
2541
2541
|
richDescription: n(e, "rich_description") ? e.rich_description : void 0,
|
|
@@ -2555,7 +2555,7 @@ function un(e) {
|
|
|
2555
2555
|
highres_images: e.highresImages,
|
|
2556
2556
|
id: e.id,
|
|
2557
2557
|
image_indexes: e.imageIndexes,
|
|
2558
|
-
images: e.images === void 0 ? void 0 : e.images === null ? null : e.images.map(
|
|
2558
|
+
images: e.images === void 0 ? void 0 : e.images === null ? null : e.images.map(me),
|
|
2559
2559
|
lowres_images: e.lowresImages,
|
|
2560
2560
|
occupancy: e.occupancy,
|
|
2561
2561
|
rich_description: e.richDescription,
|
|
@@ -2809,7 +2809,7 @@ const fc = {
|
|
|
2809
2809
|
Zm: "ZM",
|
|
2810
2810
|
Zw: "ZW"
|
|
2811
2811
|
};
|
|
2812
|
-
function
|
|
2812
|
+
function he(e) {
|
|
2813
2813
|
return dn(e);
|
|
2814
2814
|
}
|
|
2815
2815
|
function dn(e, t) {
|
|
@@ -2900,7 +2900,7 @@ function Sc(e) {
|
|
|
2900
2900
|
let t = !0;
|
|
2901
2901
|
return t = t && "breakfastOption" in e, t = t && "cancellationPolicies" in e, t = t && "currency" in e, t = t && "hotelId" in e, t = t && "hotelRooms" in e, t = t && "price" in e, t = t && "sourceMarket" in e, t = t && "stayTaxesInfo" in e, t = t && "taxIncludedPrice" in e, t;
|
|
2902
2902
|
}
|
|
2903
|
-
function
|
|
2903
|
+
function fe(e) {
|
|
2904
2904
|
return mn(e);
|
|
2905
2905
|
}
|
|
2906
2906
|
function mn(e, t) {
|
|
@@ -2917,7 +2917,7 @@ function mn(e, t) {
|
|
|
2917
2917
|
id: n(e, "id") ? e.id : void 0,
|
|
2918
2918
|
packageType: n(e, "package_type") ? e.package_type : void 0,
|
|
2919
2919
|
price: e.price,
|
|
2920
|
-
sourceMarket:
|
|
2920
|
+
sourceMarket: he(e.source_market),
|
|
2921
2921
|
stayTaxesInfo: e.stay_taxes_info,
|
|
2922
2922
|
tags: n(e, "tags") ? e.tags.map(et) : void 0,
|
|
2923
2923
|
taxIncludedPrice: e.tax_included_price,
|
|
@@ -2925,7 +2925,7 @@ function mn(e, t) {
|
|
|
2925
2925
|
type: n(e, "type") ? e.type : void 0
|
|
2926
2926
|
};
|
|
2927
2927
|
}
|
|
2928
|
-
function
|
|
2928
|
+
function le(e) {
|
|
2929
2929
|
if (e !== void 0)
|
|
2930
2930
|
return e === null ? null : {
|
|
2931
2931
|
breakfast_count: e.breakfastCount,
|
|
@@ -2965,7 +2965,7 @@ function pn(e, t) {
|
|
|
2965
2965
|
highresImages: n(e, "highres_images") ? e.highres_images : void 0,
|
|
2966
2966
|
id: e.id,
|
|
2967
2967
|
imageIndexes: n(e, "image_indexes") ? e.image_indexes : void 0,
|
|
2968
|
-
images: n(e, "images") ? e.images === null ? null : e.images.map(
|
|
2968
|
+
images: n(e, "images") ? e.images === null ? null : e.images.map(de) : void 0,
|
|
2969
2969
|
lowresImages: n(e, "lowres_images") ? e.lowres_images : void 0,
|
|
2970
2970
|
occupancy: e.occupancy,
|
|
2971
2971
|
richDescription: n(e, "rich_description") ? e.rich_description : void 0,
|
|
@@ -2985,7 +2985,7 @@ function yn(e) {
|
|
|
2985
2985
|
highres_images: e.highresImages,
|
|
2986
2986
|
id: e.id,
|
|
2987
2987
|
image_indexes: e.imageIndexes,
|
|
2988
|
-
images: e.images === void 0 ? void 0 : e.images === null ? null : e.images.map(
|
|
2988
|
+
images: e.images === void 0 ? void 0 : e.images === null ? null : e.images.map(me),
|
|
2989
2989
|
lowres_images: e.lowresImages,
|
|
2990
2990
|
occupancy: e.occupancy,
|
|
2991
2991
|
rich_description: e.richDescription,
|
|
@@ -3302,7 +3302,7 @@ function zn(e, t) {
|
|
|
3302
3302
|
failedAt: n(e, "failed_at") ? e.failed_at : void 0,
|
|
3303
3303
|
hotelConfirmationId: n(e, "hotel_confirmation_id") ? e.hotel_confirmation_id : void 0,
|
|
3304
3304
|
hotelId: e.hotel_id,
|
|
3305
|
-
hotelRoomOffer:
|
|
3305
|
+
hotelRoomOffer: fe(e.hotel_room_offer),
|
|
3306
3306
|
hotelRoomingLists: n(e, "hotel_rooming_lists") ? e.hotel_rooming_lists.map(Kt) : void 0,
|
|
3307
3307
|
id: n(e, "id") ? e.id : void 0,
|
|
3308
3308
|
invoices: n(e, "invoices") ? e.invoices === null ? null : e.invoices.map(Sn) : void 0,
|
|
@@ -3312,7 +3312,7 @@ function zn(e, t) {
|
|
|
3312
3312
|
paymentMethods: n(e, "payment_methods") ? e.payment_methods.map(qn) : void 0,
|
|
3313
3313
|
penaltyPercentage: n(e, "penalty_percentage") ? e.penalty_percentage : void 0,
|
|
3314
3314
|
reference: e.reference,
|
|
3315
|
-
sourceMarket:
|
|
3315
|
+
sourceMarket: he(e.source_market),
|
|
3316
3316
|
status: e.status,
|
|
3317
3317
|
taxAmount: e.tax_amount,
|
|
3318
3318
|
taxIncludedPrice: e.tax_included_price,
|
|
@@ -3342,7 +3342,7 @@ function Vn(e) {
|
|
|
3342
3342
|
failed_at: e.failedAt,
|
|
3343
3343
|
hotel_confirmation_id: e.hotelConfirmationId,
|
|
3344
3344
|
hotel_id: e.hotelId,
|
|
3345
|
-
hotel_room_offer:
|
|
3345
|
+
hotel_room_offer: le(e.hotelRoomOffer),
|
|
3346
3346
|
hotel_rooming_lists: e.hotelRoomingLists === void 0 ? void 0 : e.hotelRoomingLists.map(An),
|
|
3347
3347
|
id: e.id,
|
|
3348
3348
|
invoices: e.invoices === void 0 ? void 0 : e.invoices === null ? null : e.invoices.map(Rn),
|
|
@@ -3487,7 +3487,7 @@ function co(e, t) {
|
|
|
3487
3487
|
expiresAt: e.expires_at === null ? null : new Date(e.expires_at),
|
|
3488
3488
|
hasRoomingLists: e.has_rooming_lists,
|
|
3489
3489
|
hotelId: e.hotel_id,
|
|
3490
|
-
hotelRoomOffer:
|
|
3490
|
+
hotelRoomOffer: fe(e.hotel_room_offer),
|
|
3491
3491
|
id: e.id,
|
|
3492
3492
|
isPriceIncreased: e.is_price_increased
|
|
3493
3493
|
};
|
|
@@ -3504,7 +3504,7 @@ function Xc(e) {
|
|
|
3504
3504
|
expires_at: e.expiresAt === null ? null : e.expiresAt.toISOString(),
|
|
3505
3505
|
has_rooming_lists: e.hasRoomingLists,
|
|
3506
3506
|
hotel_id: e.hotelId,
|
|
3507
|
-
hotel_room_offer:
|
|
3507
|
+
hotel_room_offer: le(e.hotelRoomOffer),
|
|
3508
3508
|
id: e.id,
|
|
3509
3509
|
is_price_increased: e.isPriceIncreased
|
|
3510
3510
|
};
|
|
@@ -3752,7 +3752,7 @@ function To(e, t) {
|
|
|
3752
3752
|
distance: n(e, "distance") ? e.distance : void 0,
|
|
3753
3753
|
email: n(e, "email") ? e.email : void 0,
|
|
3754
3754
|
fax: n(e, "fax") ? e.fax : void 0,
|
|
3755
|
-
hotelImages: n(e, "hotel_images") ? e.hotel_images === null ? null : e.hotel_images.map(
|
|
3755
|
+
hotelImages: n(e, "hotel_images") ? e.hotel_images === null ? null : e.hotel_images.map(de) : void 0,
|
|
3756
3756
|
hotelReviewRatings: n(e, "hotel_review_ratings") ? e.hotel_review_ratings === null ? null : e.hotel_review_ratings.map(ei) : void 0,
|
|
3757
3757
|
id: e.id,
|
|
3758
3758
|
images: n(e, "images") ? Qt(e.images) : void 0,
|
|
@@ -3787,7 +3787,7 @@ function ms(e) {
|
|
|
3787
3787
|
distance: e.distance,
|
|
3788
3788
|
email: e.email,
|
|
3789
3789
|
fax: e.fax,
|
|
3790
|
-
hotel_images: e.hotelImages === void 0 ? void 0 : e.hotelImages === null ? null : e.hotelImages.map(
|
|
3790
|
+
hotel_images: e.hotelImages === void 0 ? void 0 : e.hotelImages === null ? null : e.hotelImages.map(me),
|
|
3791
3791
|
hotel_review_ratings: e.hotelReviewRatings === void 0 ? void 0 : e.hotelReviewRatings === null ? null : e.hotelReviewRatings.map(ti),
|
|
3792
3792
|
id: e.id,
|
|
3793
3793
|
images: jt(e.images),
|
|
@@ -3828,7 +3828,7 @@ function Co(e, t) {
|
|
|
3828
3828
|
distance: n(e, "distance") ? e.distance : void 0,
|
|
3829
3829
|
email: n(e, "email") ? e.email : void 0,
|
|
3830
3830
|
fax: n(e, "fax") ? e.fax : void 0,
|
|
3831
|
-
hotelImages: e.hotel_images.map(
|
|
3831
|
+
hotelImages: e.hotel_images.map(de),
|
|
3832
3832
|
hotelReviewRatings: n(e, "hotel_review_ratings") ? e.hotel_review_ratings === null ? null : e.hotel_review_ratings.map(ei) : void 0,
|
|
3833
3833
|
id: e.id,
|
|
3834
3834
|
images: n(e, "images") ? Qt(e.images) : void 0,
|
|
@@ -3845,7 +3845,7 @@ function Co(e, t) {
|
|
|
3845
3845
|
timezone: e.timezone,
|
|
3846
3846
|
venues: n(e, "venues") ? e.venues.map(ii) : void 0,
|
|
3847
3847
|
website: n(e, "website") ? e.website : void 0,
|
|
3848
|
-
hotelRoomOffers: e.hotel_room_offers.map(
|
|
3848
|
+
hotelRoomOffers: e.hotel_room_offers.map(fe),
|
|
3849
3849
|
tags: n(e, "tags") ? e.tags.map(et) : void 0
|
|
3850
3850
|
};
|
|
3851
3851
|
}
|
|
@@ -3865,7 +3865,7 @@ function Io(e) {
|
|
|
3865
3865
|
distance: e.distance,
|
|
3866
3866
|
email: e.email,
|
|
3867
3867
|
fax: e.fax,
|
|
3868
|
-
hotel_images: e.hotelImages.map(
|
|
3868
|
+
hotel_images: e.hotelImages.map(me),
|
|
3869
3869
|
hotel_review_ratings: e.hotelReviewRatings === void 0 ? void 0 : e.hotelReviewRatings === null ? null : e.hotelReviewRatings.map(ti),
|
|
3870
3870
|
id: e.id,
|
|
3871
3871
|
images: jt(e.images),
|
|
@@ -3882,7 +3882,7 @@ function Io(e) {
|
|
|
3882
3882
|
timezone: e.timezone,
|
|
3883
3883
|
venues: e.venues === void 0 ? void 0 : e.venues.map(ri),
|
|
3884
3884
|
website: e.website,
|
|
3885
|
-
hotel_room_offers: e.hotelRoomOffers.map(
|
|
3885
|
+
hotel_room_offers: e.hotelRoomOffers.map(le),
|
|
3886
3886
|
tags: e.tags === void 0 ? void 0 : e.tags.map(tt)
|
|
3887
3887
|
};
|
|
3888
3888
|
}
|
|
@@ -3895,16 +3895,16 @@ function ys(e) {
|
|
|
3895
3895
|
}
|
|
3896
3896
|
function Do(e, t) {
|
|
3897
3897
|
return e == null ? e : {
|
|
3898
|
-
hotelImages: e.hotel_images.map(
|
|
3899
|
-
hotelRoomOffers: e.hotel_room_offers.map(
|
|
3898
|
+
hotelImages: e.hotel_images.map(de),
|
|
3899
|
+
hotelRoomOffers: e.hotel_room_offers.map(fe),
|
|
3900
3900
|
tags: n(e, "tags") ? e.tags.map(et) : void 0
|
|
3901
3901
|
};
|
|
3902
3902
|
}
|
|
3903
3903
|
function gs(e) {
|
|
3904
3904
|
if (e !== void 0)
|
|
3905
3905
|
return e === null ? null : {
|
|
3906
|
-
hotel_images: e.hotelImages.map(
|
|
3907
|
-
hotel_room_offers: e.hotelRoomOffers.map(
|
|
3906
|
+
hotel_images: e.hotelImages.map(me),
|
|
3907
|
+
hotel_room_offers: e.hotelRoomOffers.map(le),
|
|
3908
3908
|
tags: e.tags === void 0 ? void 0 : e.tags.map(tt)
|
|
3909
3909
|
};
|
|
3910
3910
|
}
|
|
@@ -3928,7 +3928,7 @@ function vo(e, t) {
|
|
|
3928
3928
|
latitude: e.latitude,
|
|
3929
3929
|
longitude: e.longitude,
|
|
3930
3930
|
roomCount: e.room_count,
|
|
3931
|
-
sourceMarket:
|
|
3931
|
+
sourceMarket: he(e.source_market)
|
|
3932
3932
|
};
|
|
3933
3933
|
}
|
|
3934
3934
|
function Os(e) {
|
|
@@ -3950,7 +3950,7 @@ function Os(e) {
|
|
|
3950
3950
|
}
|
|
3951
3951
|
function As(e) {
|
|
3952
3952
|
let t = !0;
|
|
3953
|
-
return t = t && "adultCount" in e, t = t && "checkInDate" in e, t = t && "checkOutDate" in e, t = t && "roomCount" in e, t
|
|
3953
|
+
return t = t && "adultCount" in e, t = t && "checkInDate" in e, t = t && "checkOutDate" in e, t = t && "roomCount" in e, t;
|
|
3954
3954
|
}
|
|
3955
3955
|
function Ss(e) {
|
|
3956
3956
|
return bo(e);
|
|
@@ -3965,8 +3965,7 @@ function bo(e, t) {
|
|
|
3965
3965
|
eventMetadata: n(e, "event_metadata") ? pe(e.event_metadata) : void 0,
|
|
3966
3966
|
latitude: n(e, "latitude") ? e.latitude : void 0,
|
|
3967
3967
|
longitude: n(e, "longitude") ? e.longitude : void 0,
|
|
3968
|
-
roomCount: e.room_count
|
|
3969
|
-
sourceMarket: ue(e.source_market)
|
|
3968
|
+
roomCount: e.room_count
|
|
3970
3969
|
};
|
|
3971
3970
|
}
|
|
3972
3971
|
function No(e) {
|
|
@@ -3980,8 +3979,7 @@ function No(e) {
|
|
|
3980
3979
|
event_metadata: ye(e.eventMetadata),
|
|
3981
3980
|
latitude: e.latitude,
|
|
3982
3981
|
longitude: e.longitude,
|
|
3983
|
-
room_count: e.roomCount
|
|
3984
|
-
source_market: e.sourceMarket
|
|
3982
|
+
room_count: e.roomCount
|
|
3985
3983
|
};
|
|
3986
3984
|
}
|
|
3987
3985
|
const ws = {
|
|
@@ -4112,7 +4110,7 @@ function qo(e, t) {
|
|
|
4112
4110
|
children: n(e, "children") ? e.children : void 0,
|
|
4113
4111
|
currency: re(e.currency),
|
|
4114
4112
|
hotelId: e.hotel_id,
|
|
4115
|
-
hotelRoomOffer:
|
|
4113
|
+
hotelRoomOffer: fe(e.hotel_room_offer)
|
|
4116
4114
|
};
|
|
4117
4115
|
}
|
|
4118
4116
|
function Ns(e) {
|
|
@@ -4124,12 +4122,12 @@ function Ns(e) {
|
|
|
4124
4122
|
children: e.children,
|
|
4125
4123
|
currency: e.currency,
|
|
4126
4124
|
hotel_id: e.hotelId,
|
|
4127
|
-
hotel_room_offer:
|
|
4125
|
+
hotel_room_offer: le(e.hotelRoomOffer)
|
|
4128
4126
|
};
|
|
4129
4127
|
}
|
|
4130
4128
|
function Ps(e) {
|
|
4131
4129
|
let t = !0;
|
|
4132
|
-
return t = t && "adultCount" in e, t = t && "checkInDate" in e, t = t && "checkOutDate" in e, t = t && "hotelId" in e, t = t && "roomCount" in e, t = t && "
|
|
4130
|
+
return t = t && "adultCount" in e, t = t && "checkInDate" in e, t = t && "checkOutDate" in e, t = t && "hotelId" in e, t = t && "roomCount" in e, t = t && "createdAt" in e, t = t && "id" in e, t = t && "sourceMarket" in e, t;
|
|
4133
4131
|
}
|
|
4134
4132
|
function Tt(e) {
|
|
4135
4133
|
return Ko(e);
|
|
@@ -4143,9 +4141,9 @@ function Ko(e, t) {
|
|
|
4143
4141
|
eventMetadata: n(e, "event_metadata") ? pe(e.event_metadata) : void 0,
|
|
4144
4142
|
hotelId: e.hotel_id,
|
|
4145
4143
|
roomCount: e.room_count,
|
|
4146
|
-
sourceMarket: ue(e.source_market),
|
|
4147
4144
|
createdAt: e.created_at,
|
|
4148
|
-
id: e.id
|
|
4145
|
+
id: e.id,
|
|
4146
|
+
sourceMarket: he(e.source_market)
|
|
4149
4147
|
};
|
|
4150
4148
|
}
|
|
4151
4149
|
function xs(e) {
|
|
@@ -4158,14 +4156,14 @@ function xs(e) {
|
|
|
4158
4156
|
event_metadata: ye(e.eventMetadata),
|
|
4159
4157
|
hotel_id: e.hotelId,
|
|
4160
4158
|
room_count: e.roomCount,
|
|
4161
|
-
source_market: e.sourceMarket,
|
|
4162
4159
|
created_at: e.createdAt,
|
|
4163
|
-
id: e.id
|
|
4160
|
+
id: e.id,
|
|
4161
|
+
source_market: e.sourceMarket
|
|
4164
4162
|
};
|
|
4165
4163
|
}
|
|
4166
4164
|
function Es(e) {
|
|
4167
4165
|
let t = !0;
|
|
4168
|
-
return t = t && "adultCount" in e, t = t && "checkInDate" in e, t = t && "checkOutDate" in e, t = t && "hotelId" in e, t = t && "roomCount" in e, t
|
|
4166
|
+
return t = t && "adultCount" in e, t = t && "checkInDate" in e, t = t && "checkOutDate" in e, t = t && "hotelId" in e, t = t && "roomCount" in e, t;
|
|
4169
4167
|
}
|
|
4170
4168
|
function Bs(e) {
|
|
4171
4169
|
return Yo(e);
|
|
@@ -4178,8 +4176,7 @@ function Yo(e, t) {
|
|
|
4178
4176
|
children: n(e, "children") ? e.children : void 0,
|
|
4179
4177
|
eventMetadata: n(e, "event_metadata") ? pe(e.event_metadata) : void 0,
|
|
4180
4178
|
hotelId: e.hotel_id,
|
|
4181
|
-
roomCount: e.room_count
|
|
4182
|
-
sourceMarket: ue(e.source_market)
|
|
4179
|
+
roomCount: e.room_count
|
|
4183
4180
|
};
|
|
4184
4181
|
}
|
|
4185
4182
|
function Ls(e) {
|
|
@@ -4191,13 +4188,12 @@ function Ls(e) {
|
|
|
4191
4188
|
children: e.children,
|
|
4192
4189
|
event_metadata: ye(e.eventMetadata),
|
|
4193
4190
|
hotel_id: e.hotelId,
|
|
4194
|
-
room_count: e.roomCount
|
|
4195
|
-
source_market: e.sourceMarket
|
|
4191
|
+
room_count: e.roomCount
|
|
4196
4192
|
};
|
|
4197
4193
|
}
|
|
4198
4194
|
function Hs(e) {
|
|
4199
4195
|
let t = !0;
|
|
4200
|
-
return t = t && "createdAt" in e, t = t && "id" in e, t;
|
|
4196
|
+
return t = t && "createdAt" in e, t = t && "id" in e, t = t && "sourceMarket" in e, t;
|
|
4201
4197
|
}
|
|
4202
4198
|
function Fs(e) {
|
|
4203
4199
|
return zo(e);
|
|
@@ -4205,19 +4201,21 @@ function Fs(e) {
|
|
|
4205
4201
|
function zo(e, t) {
|
|
4206
4202
|
return e == null ? e : {
|
|
4207
4203
|
createdAt: e.created_at,
|
|
4208
|
-
id: e.id
|
|
4204
|
+
id: e.id,
|
|
4205
|
+
sourceMarket: he(e.source_market)
|
|
4209
4206
|
};
|
|
4210
4207
|
}
|
|
4211
4208
|
function Js(e) {
|
|
4212
4209
|
if (e !== void 0)
|
|
4213
4210
|
return e === null ? null : {
|
|
4214
4211
|
created_at: e.createdAt,
|
|
4215
|
-
id: e.id
|
|
4212
|
+
id: e.id,
|
|
4213
|
+
source_market: e.sourceMarket
|
|
4216
4214
|
};
|
|
4217
4215
|
}
|
|
4218
4216
|
function $s(e) {
|
|
4219
4217
|
let t = !0;
|
|
4220
|
-
return t = t && "adultCount" in e, t = t && "checkInDate" in e, t = t && "checkOutDate" in e, t = t && "hotelId" in e, t = t && "roomCount" in e, t
|
|
4218
|
+
return t = t && "adultCount" in e, t = t && "checkInDate" in e, t = t && "checkOutDate" in e, t = t && "hotelId" in e, t = t && "roomCount" in e, t;
|
|
4221
4219
|
}
|
|
4222
4220
|
function Us(e) {
|
|
4223
4221
|
return Vo(e);
|
|
@@ -4230,8 +4228,7 @@ function Vo(e, t) {
|
|
|
4230
4228
|
children: n(e, "children") ? e.children : void 0,
|
|
4231
4229
|
eventMetadata: n(e, "event_metadata") ? pe(e.event_metadata) : void 0,
|
|
4232
4230
|
hotelId: e.hotel_id,
|
|
4233
|
-
roomCount: e.room_count
|
|
4234
|
-
sourceMarket: ue(e.source_market)
|
|
4231
|
+
roomCount: e.room_count
|
|
4235
4232
|
};
|
|
4236
4233
|
}
|
|
4237
4234
|
function Zo(e) {
|
|
@@ -4243,8 +4240,7 @@ function Zo(e) {
|
|
|
4243
4240
|
children: e.children,
|
|
4244
4241
|
event_metadata: ye(e.eventMetadata),
|
|
4245
4242
|
hotel_id: e.hotelId,
|
|
4246
|
-
room_count: e.roomCount
|
|
4247
|
-
source_market: e.sourceMarket
|
|
4243
|
+
room_count: e.roomCount
|
|
4248
4244
|
};
|
|
4249
4245
|
}
|
|
4250
4246
|
function Gs(e) {
|
|
@@ -4262,7 +4258,7 @@ function Xo(e, t) {
|
|
|
4262
4258
|
children: n(e, "children") ? e.children : void 0,
|
|
4263
4259
|
currency: re(e.currency),
|
|
4264
4260
|
hotelId: e.hotel_id,
|
|
4265
|
-
hotelRoomOffers: e.hotel_room_offers.map(
|
|
4261
|
+
hotelRoomOffers: e.hotel_room_offers.map(fe),
|
|
4266
4262
|
hotelTimezone: e.hotel_timezone
|
|
4267
4263
|
};
|
|
4268
4264
|
}
|
|
@@ -4275,7 +4271,7 @@ function Qo(e) {
|
|
|
4275
4271
|
children: e.children,
|
|
4276
4272
|
currency: e.currency,
|
|
4277
4273
|
hotel_id: e.hotelId,
|
|
4278
|
-
hotel_room_offers: e.hotelRoomOffers.map(
|
|
4274
|
+
hotel_room_offers: e.hotelRoomOffers.map(le),
|
|
4279
4275
|
hotel_timezone: e.hotelTimezone
|
|
4280
4276
|
};
|
|
4281
4277
|
}
|
|
@@ -4786,7 +4782,7 @@ class _a extends Q {
|
|
|
4786
4782
|
headers: o,
|
|
4787
4783
|
query: b(i, N.Snake)
|
|
4788
4784
|
}, r);
|
|
4789
|
-
return new G(u, (c) => c.map(
|
|
4785
|
+
return new G(u, (c) => c.map(de)).value();
|
|
4790
4786
|
}
|
|
4791
4787
|
/**
|
|
4792
4788
|
* Returns a list of images for an Hotel Id with their content localize into the requested **lang**.
|
|
@@ -5373,9 +5369,9 @@ export {
|
|
|
5373
5369
|
_o as HotelApiImagesFromJSONTyped,
|
|
5374
5370
|
jt as HotelApiImagesToJSON,
|
|
5375
5371
|
ms as HotelApiToJSON,
|
|
5376
|
-
|
|
5372
|
+
de as HotelImageApiFromJSON,
|
|
5377
5373
|
an as HotelImageApiFromJSONTyped,
|
|
5378
|
-
|
|
5374
|
+
me as HotelImageApiToJSON,
|
|
5379
5375
|
_a as HotelImages,
|
|
5380
5376
|
ys as HotelOfferApiAllOfFromJSON,
|
|
5381
5377
|
Do as HotelOfferApiAllOfFromJSONTyped,
|
|
@@ -5412,14 +5408,14 @@ export {
|
|
|
5412
5408
|
sn as HotelRoomApiFromJSONTyped,
|
|
5413
5409
|
un as HotelRoomApiToJSON,
|
|
5414
5410
|
gc as HotelRoomOfferApiBreakfastOptionEnum,
|
|
5415
|
-
|
|
5411
|
+
fe as HotelRoomOfferApiFromJSON,
|
|
5416
5412
|
mn as HotelRoomOfferApiFromJSONTyped,
|
|
5417
5413
|
_c as HotelRoomOfferApiPackageTypeEnum,
|
|
5418
5414
|
Go as HotelRoomOfferApiResponseFromJSON,
|
|
5419
5415
|
qo as HotelRoomOfferApiResponseFromJSONTyped,
|
|
5420
5416
|
Ns as HotelRoomOfferApiResponseToJSON,
|
|
5421
5417
|
Oc as HotelRoomOfferApiStayTaxesInfoEnum,
|
|
5422
|
-
|
|
5418
|
+
le as HotelRoomOfferApiToJSON,
|
|
5423
5419
|
Ac as HotelRoomOfferApiTypeEnum,
|
|
5424
5420
|
Ra as HotelRoomOfferImages,
|
|
5425
5421
|
Fs as HotelRoomOfferRequestApiResponseAllOf1FromJSON,
|
|
@@ -5533,7 +5529,7 @@ export {
|
|
|
5533
5529
|
q as RequiredError,
|
|
5534
5530
|
br as ResponseError,
|
|
5535
5531
|
fc as SourceMarket,
|
|
5536
|
-
|
|
5532
|
+
he as SourceMarketFromJSON,
|
|
5537
5533
|
dn as SourceMarketFromJSONTyped,
|
|
5538
5534
|
lc as SourceMarketToJSON,
|
|
5539
5535
|
et as TagApiFromJSON,
|