feat(SW-614): Add mustBeGuaranteed flag and update content based on this

This commit is contained in:
Tobias Johansson
2024-10-23 13:22:49 +02:00
parent 6523e2329b
commit a690750c36
12 changed files with 144 additions and 12 deletions

View File

@@ -60,6 +60,26 @@ export const getHotelData = cache(async function getMemoizedHotelData(
})
})
export const getRoomAvailability = cache(
async function getMemoizedRoomAvailability(
hotelId: string,
adults: number,
roomStayStartDate: string,
roomStayEndDate: string,
children?: number,
promotionCode?: string
) {
return serverClient().hotel.availability.rooms({
hotelId: parseInt(hotelId),
adults,
roomStayStartDate,
roomStayEndDate,
children,
promotionCode,
})
}
)
export const getFooter = cache(async function getMemoizedFooter() {
return serverClient().contentstack.base.footer()
})