Feat/SW-1519 remove deprecated hotel data from schema

* feat(SW-1519): Removed displayWebpage from hotel schema

* feat(SW-1519): Removed gallery from hotel schema

* feat(SW-1519): Removed conferencesAndMeetings from hotel schema

* feat(SW-1519): Removed healthAndWellness from hotel schema

* feat(SW-1519): Removed restaurantImages from hotel schema

* feat(SW-1519): Removed restaurantsOverviewPage from hotel schema


Approved-by: Fredrik Thorsson
Approved-by: Matilda Landström
This commit is contained in:
Erik Tiekstra
2025-03-19 06:28:13 +00:00
parent 2fc33966ac
commit b2b197b1ef
15 changed files with 76 additions and 1701 deletions

View File

@@ -9,7 +9,7 @@ export function getHotelPins(
return []
}
return hotels.map(({ availability, hotel }) => {
return hotels.map(({ availability, hotel, additionalData }) => {
const productType = availability.productType
return {
coordinates: {
@@ -19,7 +19,8 @@ export function getHotelPins(
name: hotel.name,
publicPrice: productType?.public?.localPrice.pricePerNight ?? null,
memberPrice: productType?.member?.localPrice.pricePerNight ?? null,
redemptionPrice: productType?.redemption?.localPrice.pointsPerNight ?? null,
redemptionPrice:
productType?.redemption?.localPrice.pointsPerNight ?? null,
rateType:
productType?.public?.rateType ?? productType?.member?.rateType ?? null,
currency:
@@ -27,7 +28,10 @@ export function getHotelPins(
productType?.member?.localPrice.currency ||
currencyValue ||
"N/A",
images: [hotel.hotelContent.images, ...(hotel.gallery?.heroImages ?? [])],
images: [
hotel.hotelContent.images,
...(additionalData.gallery?.heroImages ?? []),
],
amenities: hotel.detailedFacilities
.map((facility) => ({
...facility,