@roomstay/frontend 1.3.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/README.md +0 -0
- package/dist/src/animations/AutoAutoHeight.d.ts +8 -0
- package/dist/src/animations/AutoAutoHeight.js +48 -0
- package/dist/src/animations/AutoAutoHeight.js.map +1 -0
- package/dist/src/animations/Fade.d.ts +9 -0
- package/dist/src/animations/Fade.js +35 -0
- package/dist/src/animations/Fade.js.map +1 -0
- package/dist/src/api/AddonAPI.d.ts +7 -0
- package/dist/src/api/AddonAPI.js +68 -0
- package/dist/src/api/AddonAPI.js.map +1 -0
- package/dist/src/api/AvailabilityAPI.d.ts +40 -0
- package/dist/src/api/AvailabilityAPI.js +362 -0
- package/dist/src/api/AvailabilityAPI.js.map +1 -0
- package/dist/src/api/BaseAPI.d.ts +32 -0
- package/dist/src/api/BaseAPI.js +111 -0
- package/dist/src/api/BaseAPI.js.map +1 -0
- package/dist/src/api/BookingAPI.d.ts +17 -0
- package/dist/src/api/BookingAPI.js +22 -0
- package/dist/src/api/BookingAPI.js.map +1 -0
- package/dist/src/api/ExchangeRateAPI.d.ts +5 -0
- package/dist/src/api/ExchangeRateAPI.js +23 -0
- package/dist/src/api/ExchangeRateAPI.js.map +1 -0
- package/dist/src/api/HotelAPI.d.ts +12 -0
- package/dist/src/api/HotelAPI.js +47 -0
- package/dist/src/api/HotelAPI.js.map +1 -0
- package/dist/src/api/MemberAPI.d.ts +4 -0
- package/dist/src/api/MemberAPI.js +28 -0
- package/dist/src/api/MemberAPI.js.map +1 -0
- package/dist/src/api/ReservationAPI.d.ts +14 -0
- package/dist/src/api/ReservationAPI.js +113 -0
- package/dist/src/api/ReservationAPI.js.map +1 -0
- package/dist/src/components/generic/Alert.d.ts +21 -0
- package/dist/src/components/generic/Alert.js +31 -0
- package/dist/src/components/generic/Alert.js.map +1 -0
- package/dist/src/components/generic/BEButton.d.ts +24 -0
- package/dist/src/components/generic/BEButton.js +60 -0
- package/dist/src/components/generic/BEButton.js.map +1 -0
- package/dist/src/components/generic/BESelect.d.ts +13 -0
- package/dist/src/components/generic/BESelect.js +47 -0
- package/dist/src/components/generic/BESelect.js.map +1 -0
- package/dist/src/components/generic/BETooltip.d.ts +7 -0
- package/dist/src/components/generic/BETooltip.js +44 -0
- package/dist/src/components/generic/BETooltip.js.map +1 -0
- package/dist/src/components/generic/BackButton.d.ts +6 -0
- package/dist/src/components/generic/BackButton.js +14 -0
- package/dist/src/components/generic/BackButton.js.map +1 -0
- package/dist/src/components/generic/BookNowPayLaterInfoBlock.d.ts +2 -0
- package/dist/src/components/generic/BookNowPayLaterInfoBlock.js +32 -0
- package/dist/src/components/generic/BookNowPayLaterInfoBlock.js.map +1 -0
- package/dist/src/components/generic/Checkbox.d.ts +8 -0
- package/dist/src/components/generic/Checkbox.js +22 -0
- package/dist/src/components/generic/Checkbox.js.map +1 -0
- package/dist/src/components/generic/Countdown.d.ts +8 -0
- package/dist/src/components/generic/Countdown.js +35 -0
- package/dist/src/components/generic/Countdown.js.map +1 -0
- package/dist/src/components/generic/Currency.d.ts +12 -0
- package/dist/src/components/generic/Currency.js +71 -0
- package/dist/src/components/generic/Currency.js.map +1 -0
- package/dist/src/components/generic/Distance.d.ts +6 -0
- package/dist/src/components/generic/Distance.js +22 -0
- package/dist/src/components/generic/Distance.js.map +1 -0
- package/dist/src/components/generic/Headline.d.ts +13 -0
- package/dist/src/components/generic/Headline.js +28 -0
- package/dist/src/components/generic/Headline.js.map +1 -0
- package/dist/src/components/generic/Icon.d.ts +79 -0
- package/dist/src/components/generic/Icon.js +105 -0
- package/dist/src/components/generic/Icon.js.map +1 -0
- package/dist/src/components/generic/InputGroup/InputGroup.d.ts +7 -0
- package/dist/src/components/generic/InputGroup/InputGroup.js +26 -0
- package/dist/src/components/generic/InputGroup/InputGroup.js.map +1 -0
- package/dist/src/components/generic/InputGroup/InputGroup.types.d.ts +1 -0
- package/dist/src/components/generic/InputGroup/InputGroup.types.js +3 -0
- package/dist/src/components/generic/InputGroup/InputGroup.types.js.map +1 -0
- package/dist/src/components/generic/LineBreak.d.ts +7 -0
- package/dist/src/components/generic/LineBreak.js +14 -0
- package/dist/src/components/generic/LineBreak.js.map +1 -0
- package/dist/src/components/generic/Notification.d.ts +14 -0
- package/dist/src/components/generic/Notification.js +44 -0
- package/dist/src/components/generic/Notification.js.map +1 -0
- package/dist/src/components/generic/NumberIncrement.d.ts +8 -0
- package/dist/src/components/generic/NumberIncrement.js +45 -0
- package/dist/src/components/generic/NumberIncrement.js.map +1 -0
- package/dist/src/components/generic/Pill.d.ts +18 -0
- package/dist/src/components/generic/Pill.js +29 -0
- package/dist/src/components/generic/Pill.js.map +1 -0
- package/dist/src/components/generic/Placeholder.d.ts +13 -0
- package/dist/src/components/generic/Placeholder.js +23 -0
- package/dist/src/components/generic/Placeholder.js.map +1 -0
- package/dist/src/components/generic/PromoCodeInput.d.ts +9 -0
- package/dist/src/components/generic/PromoCodeInput.js +113 -0
- package/dist/src/components/generic/PromoCodeInput.js.map +1 -0
- package/dist/src/components/generic/RecentSearchesCard.d.ts +9 -0
- package/dist/src/components/generic/RecentSearchesCard.js +47 -0
- package/dist/src/components/generic/RecentSearchesCard.js.map +1 -0
- package/dist/src/components/generic/ScrollToTop.d.ts +4 -0
- package/dist/src/components/generic/ScrollToTop.js +18 -0
- package/dist/src/components/generic/ScrollToTop.js.map +1 -0
- package/dist/src/components/generic/Select.d.ts +12 -0
- package/dist/src/components/generic/Select.js +18 -0
- package/dist/src/components/generic/Select.js.map +1 -0
- package/dist/src/components/generic/Text.d.ts +25 -0
- package/dist/src/components/generic/Text.js +37 -0
- package/dist/src/components/generic/Text.js.map +1 -0
- package/dist/src/components/generic/TextArea.d.ts +3 -0
- package/dist/src/components/generic/TextArea.js +9 -0
- package/dist/src/components/generic/TextArea.js.map +1 -0
- package/dist/src/components/generic/TextBox.d.ts +16 -0
- package/dist/src/components/generic/TextBox.js +50 -0
- package/dist/src/components/generic/TextBox.js.map +1 -0
- package/dist/src/components/generic/badging/SSLSecureBadge.d.ts +2 -0
- package/dist/src/components/generic/badging/SSLSecureBadge.js +11 -0
- package/dist/src/components/generic/badging/SSLSecureBadge.js.map +1 -0
- package/dist/src/components/generic/buttons/NextStepButton.d.ts +13 -0
- package/dist/src/components/generic/buttons/NextStepButton.js +30 -0
- package/dist/src/components/generic/buttons/NextStepButton.js.map +1 -0
- package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.d.ts +10 -0
- package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.js +120 -0
- package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.js.map +1 -0
- package/dist/src/components/generic/date/DatePicker.d.ts +18 -0
- package/dist/src/components/generic/date/DatePicker.js +200 -0
- package/dist/src/components/generic/date/DatePicker.js.map +1 -0
- package/dist/src/components/generic/date/DatePickerDay.d.ts +21 -0
- package/dist/src/components/generic/date/DatePickerDay.js +188 -0
- package/dist/src/components/generic/date/DatePickerDay.js.map +1 -0
- package/dist/src/components/generic/date/DatePickerDays.d.ts +7 -0
- package/dist/src/components/generic/date/DatePickerDays.js +21 -0
- package/dist/src/components/generic/date/DatePickerDays.js.map +1 -0
- package/dist/src/components/generic/date/DatePickerMonth.d.ts +8 -0
- package/dist/src/components/generic/date/DatePickerMonth.js +28 -0
- package/dist/src/components/generic/date/DatePickerMonth.js.map +1 -0
- package/dist/src/components/generic/date/DatePickerWeek.d.ts +2 -0
- package/dist/src/components/generic/date/DatePickerWeek.js +161 -0
- package/dist/src/components/generic/date/DatePickerWeek.js.map +1 -0
- package/dist/src/components/generic/date/FloatingDatePicker.d.ts +10 -0
- package/dist/src/components/generic/date/FloatingDatePicker.js +68 -0
- package/dist/src/components/generic/date/FloatingDatePicker.js.map +1 -0
- package/dist/src/components/generic/loader/ImageLoader.d.ts +11 -0
- package/dist/src/components/generic/loader/ImageLoader.js +37 -0
- package/dist/src/components/generic/loader/ImageLoader.js.map +1 -0
- package/dist/src/components/generic/loader/LargeLoader.d.ts +2 -0
- package/dist/src/components/generic/loader/LargeLoader.js +50 -0
- package/dist/src/components/generic/loader/LargeLoader.js.map +1 -0
- package/dist/src/components/generic/loader/SmallSpinner.d.ts +3 -0
- package/dist/src/components/generic/loader/SmallSpinner.js +11 -0
- package/dist/src/components/generic/loader/SmallSpinner.js.map +1 -0
- package/dist/src/components/generic/map/HotelLocationMap.d.ts +2 -0
- package/dist/src/components/generic/map/HotelLocationMap.js +11 -0
- package/dist/src/components/generic/map/HotelLocationMap.js.map +1 -0
- package/dist/src/components/generic/modal/ConfirmationModal.d.ts +9 -0
- package/dist/src/components/generic/modal/ConfirmationModal.js +27 -0
- package/dist/src/components/generic/modal/ConfirmationModal.js.map +1 -0
- package/dist/src/components/generic/modal/ErrorModal.d.ts +10 -0
- package/dist/src/components/generic/modal/ErrorModal.js +15 -0
- package/dist/src/components/generic/modal/ErrorModal.js.map +1 -0
- package/dist/src/components/generic/modal/SimpleModal.d.ts +21 -0
- package/dist/src/components/generic/modal/SimpleModal.js +82 -0
- package/dist/src/components/generic/modal/SimpleModal.js.map +1 -0
- package/dist/src/components/generic/modal/TabbedModal.d.ts +16 -0
- package/dist/src/components/generic/modal/TabbedModal.js +33 -0
- package/dist/src/components/generic/modal/TabbedModal.js.map +1 -0
- package/dist/src/components/generic/radio/RadioFields.d.ts +14 -0
- package/dist/src/components/generic/radio/RadioFields.js +34 -0
- package/dist/src/components/generic/radio/RadioFields.js.map +1 -0
- package/dist/src/components/iconComponents/BookNowPayLaterIcon.d.ts +7 -0
- package/dist/src/components/iconComponents/BookNowPayLaterIcon.js +20 -0
- package/dist/src/components/iconComponents/BookNowPayLaterIcon.js.map +1 -0
- package/dist/src/components/navigation/Header.d.ts +2 -0
- package/dist/src/components/navigation/Header.js +124 -0
- package/dist/src/components/navigation/Header.js.map +1 -0
- package/dist/src/components/navigation/StepSelector.d.ts +2 -0
- package/dist/src/components/navigation/StepSelector.js +75 -0
- package/dist/src/components/navigation/StepSelector.js.map +1 -0
- package/dist/src/components/navigation/StepSelectorModal.d.ts +6 -0
- package/dist/src/components/navigation/StepSelectorModal.js +63 -0
- package/dist/src/components/navigation/StepSelectorModal.js.map +1 -0
- package/dist/src/components/steps/DaysSelectedInformer.d.ts +2 -0
- package/dist/src/components/steps/DaysSelectedInformer.js +25 -0
- package/dist/src/components/steps/DaysSelectedInformer.js.map +1 -0
- package/dist/src/components/steps/MinimumNightStayPill.d.ts +2 -0
- package/dist/src/components/steps/MinimumNightStayPill.js +62 -0
- package/dist/src/components/steps/MinimumNightStayPill.js.map +1 -0
- package/dist/src/components/steps/addons/AddonCard.d.ts +8 -0
- package/dist/src/components/steps/addons/AddonCard.js +194 -0
- package/dist/src/components/steps/addons/AddonCard.js.map +1 -0
- package/dist/src/components/steps/addons/AddonList.d.ts +3 -0
- package/dist/src/components/steps/addons/AddonList.js +38 -0
- package/dist/src/components/steps/addons/AddonList.js.map +1 -0
- package/dist/src/components/steps/addons/AddonsNotFound.d.ts +2 -0
- package/dist/src/components/steps/addons/AddonsNotFound.js +50 -0
- package/dist/src/components/steps/addons/AddonsNotFound.js.map +1 -0
- package/dist/src/components/steps/common/CommonAddonSummary/CommonAddonSummary.d.ts +7 -0
- package/dist/src/components/steps/common/CommonAddonSummary/CommonAddonSummary.js +42 -0
- package/dist/src/components/steps/common/CommonAddonSummary/CommonAddonSummary.js.map +1 -0
- package/dist/src/components/steps/confirmation/AccountDetails.d.ts +2 -0
- package/dist/src/components/steps/confirmation/AccountDetails.js +31 -0
- package/dist/src/components/steps/confirmation/AccountDetails.js.map +1 -0
- package/dist/src/components/steps/confirmation/RoomContactDetails.d.ts +9 -0
- package/dist/src/components/steps/confirmation/RoomContactDetails.js +224 -0
- package/dist/src/components/steps/confirmation/RoomContactDetails.js.map +1 -0
- package/dist/src/components/steps/confirmation/StepConfirmationAcknowledgement.d.ts +6 -0
- package/dist/src/components/steps/confirmation/StepConfirmationAcknowledgement.js +33 -0
- package/dist/src/components/steps/confirmation/StepConfirmationAcknowledgement.js.map +1 -0
- package/dist/src/components/steps/confirmation/StepConfirmationCheckoutDifferencesModal.d.ts +11 -0
- package/dist/src/components/steps/confirmation/StepConfirmationCheckoutDifferencesModal.js +76 -0
- package/dist/src/components/steps/confirmation/StepConfirmationCheckoutDifferencesModal.js.map +1 -0
- package/dist/src/components/steps/confirmation/StepConfirmationCommentsComponent.d.ts +6 -0
- package/dist/src/components/steps/confirmation/StepConfirmationCommentsComponent.js +25 -0
- package/dist/src/components/steps/confirmation/StepConfirmationCommentsComponent.js.map +1 -0
- package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.d.ts +10 -0
- package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.js +65 -0
- package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.js.map +1 -0
- package/dist/src/components/steps/confirmation/StepConfirmationForm.d.ts +2 -0
- package/dist/src/components/steps/confirmation/StepConfirmationForm.js +343 -0
- package/dist/src/components/steps/confirmation/StepConfirmationForm.js.map +1 -0
- package/dist/src/components/steps/confirmation/StepConfirmationLimitedOffer.d.ts +7 -0
- package/dist/src/components/steps/confirmation/StepConfirmationLimitedOffer.js +29 -0
- package/dist/src/components/steps/confirmation/StepConfirmationLimitedOffer.js.map +1 -0
- package/dist/src/components/steps/confirmation/StepConfirmationPaymentDetails.d.ts +8 -0
- package/dist/src/components/steps/confirmation/StepConfirmationPaymentDetails.js +244 -0
- package/dist/src/components/steps/confirmation/StepConfirmationPaymentDetails.js.map +1 -0
- package/dist/src/components/steps/confirmation/StepConfirmationPoliciesSection.d.ts +2 -0
- package/dist/src/components/steps/confirmation/StepConfirmationPoliciesSection.js +33 -0
- package/dist/src/components/steps/confirmation/StepConfirmationPoliciesSection.js.map +1 -0
- package/dist/src/components/steps/confirmation/StepConfirmationPolicyBlock.d.ts +2 -0
- package/dist/src/components/steps/confirmation/StepConfirmationPolicyBlock.js +56 -0
- package/dist/src/components/steps/confirmation/StepConfirmationPolicyBlock.js.map +1 -0
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffers.d.ts +2 -0
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffers.js +117 -0
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffers.js.map +1 -0
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersColumn.d.ts +8 -0
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersColumn.js +21 -0
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersColumn.js.map +1 -0
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersModal.d.ts +10 -0
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersModal.js +145 -0
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersModal.js.map +1 -0
- package/dist/src/components/steps/date/PeoplePicker.d.ts +2 -0
- package/dist/src/components/steps/date/PeoplePicker.js +69 -0
- package/dist/src/components/steps/date/PeoplePicker.js.map +1 -0
- package/dist/src/components/steps/date/PeoplePickerRow.d.ts +13 -0
- package/dist/src/components/steps/date/PeoplePickerRow.js +69 -0
- package/dist/src/components/steps/date/PeoplePickerRow.js.map +1 -0
- package/dist/src/components/steps/date/StepDatePricePerRoom.d.ts +6 -0
- package/dist/src/components/steps/date/StepDatePricePerRoom.js +68 -0
- package/dist/src/components/steps/date/StepDatePricePerRoom.js.map +1 -0
- package/dist/src/components/steps/date/StepOneDateRange.d.ts +2 -0
- package/dist/src/components/steps/date/StepOneDateRange.js +24 -0
- package/dist/src/components/steps/date/StepOneDateRange.js.map +1 -0
- package/dist/src/components/steps/date/StepOneDateRangePicker.d.ts +2 -0
- package/dist/src/components/steps/date/StepOneDateRangePicker.js +25 -0
- package/dist/src/components/steps/date/StepOneDateRangePicker.js.map +1 -0
- package/dist/src/components/steps/date/StepOneDateRangePickerLegend.d.ts +2 -0
- package/dist/src/components/steps/date/StepOneDateRangePickerLegend.js +37 -0
- package/dist/src/components/steps/date/StepOneDateRangePickerLegend.js.map +1 -0
- package/dist/src/components/steps/date/StepOneNextStepButton.d.ts +2 -0
- package/dist/src/components/steps/date/StepOneNextStepButton.js +51 -0
- package/dist/src/components/steps/date/StepOneNextStepButton.js.map +1 -0
- package/dist/src/components/steps/date/StepOneStatusPeople.d.ts +2 -0
- package/dist/src/components/steps/date/StepOneStatusPeople.js +17 -0
- package/dist/src/components/steps/date/StepOneStatusPeople.js.map +1 -0
- package/dist/src/components/steps/hotel/HotelCard.d.ts +7 -0
- package/dist/src/components/steps/hotel/HotelCard.js +145 -0
- package/dist/src/components/steps/hotel/HotelCard.js.map +1 -0
- package/dist/src/components/steps/hotel/HotelCardList.d.ts +6 -0
- package/dist/src/components/steps/hotel/HotelCardList.js +13 -0
- package/dist/src/components/steps/hotel/HotelCardList.js.map +1 -0
- package/dist/src/components/steps/hotel/HotelCardModal.d.ts +10 -0
- package/dist/src/components/steps/hotel/HotelCardModal.js +90 -0
- package/dist/src/components/steps/hotel/HotelCardModal.js.map +1 -0
- package/dist/src/components/steps/hotel/HotelSearchParameters.d.ts +3 -0
- package/dist/src/components/steps/hotel/HotelSearchParameters.js +149 -0
- package/dist/src/components/steps/hotel/HotelSearchParameters.js.map +1 -0
- package/dist/src/components/steps/hotel/NoHotelsAvailable.d.ts +2 -0
- package/dist/src/components/steps/hotel/NoHotelsAvailable.js +68 -0
- package/dist/src/components/steps/hotel/NoHotelsAvailable.js.map +1 -0
- package/dist/src/components/steps/room/AvailableUpgradesModal.d.ts +3 -0
- package/dist/src/components/steps/room/AvailableUpgradesModal.js +148 -0
- package/dist/src/components/steps/room/AvailableUpgradesModal.js.map +1 -0
- package/dist/src/components/steps/room/ImageGallerySlider.d.ts +9 -0
- package/dist/src/components/steps/room/ImageGallerySlider.js +126 -0
- package/dist/src/components/steps/room/ImageGallerySlider.js.map +1 -0
- package/dist/src/components/steps/room/InactivityWindow.d.ts +3 -0
- package/dist/src/components/steps/room/InactivityWindow.js +80 -0
- package/dist/src/components/steps/room/InactivityWindow.js.map +1 -0
- package/dist/src/components/steps/room/LargeRoomCard.d.ts +9 -0
- package/dist/src/components/steps/room/LargeRoomCard.js +82 -0
- package/dist/src/components/steps/room/LargeRoomCard.js.map +1 -0
- package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.d.ts +7 -0
- package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.js +260 -0
- package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.js.map +1 -0
- package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.types.d.ts +13 -0
- package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.types.js +3 -0
- package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.types.js.map +1 -0
- package/dist/src/components/steps/room/RatesNotFound.d.ts +2 -0
- package/dist/src/components/steps/room/RatesNotFound.js +48 -0
- package/dist/src/components/steps/room/RatesNotFound.js.map +1 -0
- package/dist/src/components/steps/room/RoomList.d.ts +2 -0
- package/dist/src/components/steps/room/RoomList.js +84 -0
- package/dist/src/components/steps/room/RoomList.js.map +1 -0
- package/dist/src/components/steps/room/RoomListCrossSellBlock.d.ts +5 -0
- package/dist/src/components/steps/room/RoomListCrossSellBlock.js +124 -0
- package/dist/src/components/steps/room/RoomListCrossSellBlock.js.map +1 -0
- package/dist/src/components/steps/room/RoomModal.d.ts +12 -0
- package/dist/src/components/steps/room/RoomModal.js +63 -0
- package/dist/src/components/steps/room/RoomModal.js.map +1 -0
- package/dist/src/components/steps/room/RoomNotFound.d.ts +3 -0
- package/dist/src/components/steps/room/RoomNotFound.js +108 -0
- package/dist/src/components/steps/room/RoomNotFound.js.map +1 -0
- package/dist/src/components/steps/room/StepRoomAlertBlocks.d.ts +2 -0
- package/dist/src/components/steps/room/StepRoomAlertBlocks.js +27 -0
- package/dist/src/components/steps/room/StepRoomAlertBlocks.js.map +1 -0
- package/dist/src/components/steps/room/StepRoomBestRateAlert.d.ts +3 -0
- package/dist/src/components/steps/room/StepRoomBestRateAlert.js +29 -0
- package/dist/src/components/steps/room/StepRoomBestRateAlert.js.map +1 -0
- package/dist/src/components/steps/room/StepRoomHotelDetails.d.ts +2 -0
- package/dist/src/components/steps/room/StepRoomHotelDetails.js +43 -0
- package/dist/src/components/steps/room/StepRoomHotelDetails.js.map +1 -0
- package/dist/src/components/steps/room/StepRoomNextStepButton.d.ts +2 -0
- package/dist/src/components/steps/room/StepRoomNextStepButton.js +21 -0
- package/dist/src/components/steps/room/StepRoomNextStepButton.js.map +1 -0
- package/dist/src/components/steps/room/StepRoomSortBy.d.ts +2 -0
- package/dist/src/components/steps/room/StepRoomSortBy.js +26 -0
- package/dist/src/components/steps/room/StepRoomSortBy.js.map +1 -0
- package/dist/src/components/steps/room/StepRoomSummaryAndButton.d.ts +2 -0
- package/dist/src/components/steps/room/StepRoomSummaryAndButton.js +40 -0
- package/dist/src/components/steps/room/StepRoomSummaryAndButton.js.map +1 -0
- package/dist/src/components/steps/room/roomBuilderProgress/NumberOfAdultsPicker.d.ts +8 -0
- package/dist/src/components/steps/room/roomBuilderProgress/NumberOfAdultsPicker.js +29 -0
- package/dist/src/components/steps/room/roomBuilderProgress/NumberOfAdultsPicker.js.map +1 -0
- package/dist/src/components/steps/room/roomBuilderProgress/NumberOfChildrenPicker.d.ts +8 -0
- package/dist/src/components/steps/room/roomBuilderProgress/NumberOfChildrenPicker.js +28 -0
- package/dist/src/components/steps/room/roomBuilderProgress/NumberOfChildrenPicker.js.map +1 -0
- package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgress.d.ts +2 -0
- package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgress.js +39 -0
- package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgress.js.map +1 -0
- package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgressRow.d.ts +7 -0
- package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgressRow.js +211 -0
- package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgressRow.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetails.d.ts +7 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetails.js +151 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetails.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetailsBedsBlock.d.ts +7 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetailsBedsBlock.js +34 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetailsBedsBlock.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetailsPerkBlock.d.ts +7 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetailsPerkBlock.js +33 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetailsPerkBlock.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetailsPriceBlock.d.ts +10 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetailsPriceBlock.js +44 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetailsPriceBlock.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/BookNowButton.d.ts +10 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/BookNowButton.js +28 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/BookNowButton.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/MembersOnlyRow.d.ts +2 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/MembersOnlyRow.js +57 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/MembersOnlyRow.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/PriceBreakdownBlock.d.ts +15 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/PriceBreakdownBlock.js +120 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/PriceBreakdownBlock.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDescriptionTab.d.ts +14 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDescriptionTab.js +76 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDescriptionTab.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDetailsAndPriceBreakdownModal.d.ts +16 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDetailsAndPriceBreakdownModal.js +34 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDetailsAndPriceBreakdownModal.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRatePills.d.ts +11 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRatePills.js +86 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRatePills.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateRow.d.ts +9 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateRow.js +119 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateRow.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRates.d.ts +12 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRates.js +103 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRates.js.map +1 -0
- package/dist/src/components/steps/room/roomFilter/AppliedFiltersBlock.d.ts +2 -0
- package/dist/src/components/steps/room/roomFilter/AppliedFiltersBlock.js +42 -0
- package/dist/src/components/steps/room/roomFilter/AppliedFiltersBlock.js.map +1 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterOverlay.d.ts +9 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterOverlay.js +106 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterOverlay.js.map +1 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterPriceSlider.d.ts +10 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterPriceSlider.js +99 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterPriceSlider.js.map +1 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterRateType.d.ts +10 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterRateType.js +65 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterRateType.js.map +1 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterRoomType.d.ts +10 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterRoomType.js +63 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterRoomType.js.map +1 -0
- package/dist/src/components/summary/BEMapWidget.d.ts +12 -0
- package/dist/src/components/summary/BEMapWidget.js +50 -0
- package/dist/src/components/summary/BEMapWidget.js.map +1 -0
- package/dist/src/components/summary/BEMobileSummary.d.ts +2 -0
- package/dist/src/components/summary/BEMobileSummary.js +55 -0
- package/dist/src/components/summary/BEMobileSummary.js.map +1 -0
- package/dist/src/components/summary/BEMobileSummaryModal.d.ts +7 -0
- package/dist/src/components/summary/BEMobileSummaryModal.js +142 -0
- package/dist/src/components/summary/BEMobileSummaryModal.js.map +1 -0
- package/dist/src/components/summary/BESummary.d.ts +7 -0
- package/dist/src/components/summary/BESummary.js +106 -0
- package/dist/src/components/summary/BESummary.js.map +1 -0
- package/dist/src/components/summary/BESummaryAddonRow.d.ts +8 -0
- package/dist/src/components/summary/BESummaryAddonRow.js +88 -0
- package/dist/src/components/summary/BESummaryAddonRow.js.map +1 -0
- package/dist/src/components/summary/BESummaryPerkBlock.d.ts +6 -0
- package/dist/src/components/summary/BESummaryPerkBlock.js +34 -0
- package/dist/src/components/summary/BESummaryPerkBlock.js.map +1 -0
- package/dist/src/components/summary/BESummaryPrivacyPolicy.d.ts +2 -0
- package/dist/src/components/summary/BESummaryPrivacyPolicy.js +24 -0
- package/dist/src/components/summary/BESummaryPrivacyPolicy.js.map +1 -0
- package/dist/src/components/summary/BESummaryRoomRow.d.ts +10 -0
- package/dist/src/components/summary/BESummaryRoomRow.js +113 -0
- package/dist/src/components/summary/BESummaryRoomRow.js.map +1 -0
- package/dist/src/components/summary/TransportDistanceFromHotelBlock.d.ts +10 -0
- package/dist/src/components/summary/TransportDistanceFromHotelBlock.js +48 -0
- package/dist/src/components/summary/TransportDistanceFromHotelBlock.js.map +1 -0
- package/dist/src/contexts/BasketContext/BasketContext.d.ts +3 -0
- package/dist/src/contexts/BasketContext/BasketContext.js +6 -0
- package/dist/src/contexts/BasketContext/BasketContext.js.map +1 -0
- package/dist/src/contexts/BasketContext/BasketContextType.d.ts +39 -0
- package/dist/src/contexts/BasketContext/BasketContextType.js +3 -0
- package/dist/src/contexts/BasketContext/BasketContextType.js.map +1 -0
- package/dist/src/contexts/BasketContext/BasketContextWrapper.d.ts +5 -0
- package/dist/src/contexts/BasketContext/BasketContextWrapper.js +383 -0
- package/dist/src/contexts/BasketContext/BasketContextWrapper.js.map +1 -0
- package/dist/src/contexts/BookingEngineContext/BookingEngineContext.d.ts +3 -0
- package/dist/src/contexts/BookingEngineContext/BookingEngineContext.js +6 -0
- package/dist/src/contexts/BookingEngineContext/BookingEngineContext.js.map +1 -0
- package/dist/src/contexts/BookingEngineContext/BookingEngineContextType.types.d.ts +17 -0
- package/dist/src/contexts/BookingEngineContext/BookingEngineContextType.types.js +3 -0
- package/dist/src/contexts/BookingEngineContext/BookingEngineContextType.types.js.map +1 -0
- package/dist/src/contexts/BookingEngineContext/BookingEngineContextWrapper.d.ts +7 -0
- package/dist/src/contexts/BookingEngineContext/BookingEngineContextWrapper.js +46 -0
- package/dist/src/contexts/BookingEngineContext/BookingEngineContextWrapper.js.map +1 -0
- package/dist/src/contexts/CompanyContext/CompanyContext.d.ts +3 -0
- package/dist/src/contexts/CompanyContext/CompanyContext.js +6 -0
- package/dist/src/contexts/CompanyContext/CompanyContext.js.map +1 -0
- package/dist/src/contexts/CompanyContext/CompanyContextType.type.d.ts +19 -0
- package/dist/src/contexts/CompanyContext/CompanyContextType.type.js +3 -0
- package/dist/src/contexts/CompanyContext/CompanyContextType.type.js.map +1 -0
- package/dist/src/contexts/CompanyContext/CompanyContextWrapper.d.ts +8 -0
- package/dist/src/contexts/CompanyContext/CompanyContextWrapper.js +270 -0
- package/dist/src/contexts/CompanyContext/CompanyContextWrapper.js.map +1 -0
- package/dist/src/contexts/ConfirmationFormContext.d.ts +16 -0
- package/dist/src/contexts/ConfirmationFormContext.js +33 -0
- package/dist/src/contexts/ConfirmationFormContext.js.map +1 -0
- package/dist/src/contexts/DatePickerContext.d.ts +14 -0
- package/dist/src/contexts/DatePickerContext.js +23 -0
- package/dist/src/contexts/DatePickerContext.js.map +1 -0
- package/dist/src/contexts/ErrorContext.d.ts +19 -0
- package/dist/src/contexts/ErrorContext.js +43 -0
- package/dist/src/contexts/ErrorContext.js.map +1 -0
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContext.d.ts +3 -0
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContext.js +6 -0
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContext.js.map +1 -0
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextTypes.d.ts +19 -0
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextTypes.js +3 -0
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextTypes.js.map +1 -0
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextWrapper.d.ts +6 -0
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextWrapper.js +204 -0
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextWrapper.js.map +1 -0
- package/dist/src/contexts/HotelOverridesContext.d.ts +10 -0
- package/dist/src/contexts/HotelOverridesContext.js +63 -0
- package/dist/src/contexts/HotelOverridesContext.js.map +1 -0
- package/dist/src/contexts/ModalContext.d.ts +14 -0
- package/dist/src/contexts/ModalContext.js +34 -0
- package/dist/src/contexts/ModalContext.js.map +1 -0
- package/dist/src/contexts/NotificationContext.d.ts +14 -0
- package/dist/src/contexts/NotificationContext.js +34 -0
- package/dist/src/contexts/NotificationContext.js.map +1 -0
- package/dist/src/contexts/index.d.ts +19 -0
- package/dist/src/contexts/index.js +32 -0
- package/dist/src/contexts/index.js.map +1 -0
- package/dist/src/engines/BaseEngine.d.ts +20 -0
- package/dist/src/engines/BaseEngine.js +62 -0
- package/dist/src/engines/BaseEngine.js.map +1 -0
- package/dist/src/engines/CustomEngine/CustomEngine.d.ts +4 -0
- package/dist/src/engines/CustomEngine/CustomEngine.js +23 -0
- package/dist/src/engines/CustomEngine/CustomEngine.js.map +1 -0
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngine.d.ts +5 -0
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngine.js +31 -0
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngine.js.map +1 -0
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.d.ts +8 -0
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.js +34 -0
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.js.map +1 -0
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElementEvents.d.ts +3 -0
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElementEvents.js +9 -0
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElementEvents.js.map +1 -0
- package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngine.d.ts +7 -0
- package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngine.js +32 -0
- package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngine.js.map +1 -0
- package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.d.ts +7 -0
- package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.js +246 -0
- package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.js.map +1 -0
- package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngine.d.ts +7 -0
- package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngine.js +31 -0
- package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngine.js.map +1 -0
- package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.d.ts +7 -0
- package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.js +112 -0
- package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.js.map +1 -0
- package/dist/src/errors/GetAvailabilityError.d.ts +7 -0
- package/dist/src/errors/GetAvailabilityError.js +21 -0
- package/dist/src/errors/GetAvailabilityError.js.map +1 -0
- package/dist/src/errors/NoCompanyContextError.d.ts +4 -0
- package/dist/src/errors/NoCompanyContextError.js +11 -0
- package/dist/src/errors/NoCompanyContextError.js.map +1 -0
- package/dist/src/errors/NoHotelSelectedError.d.ts +4 -0
- package/dist/src/errors/NoHotelSelectedError.js +11 -0
- package/dist/src/errors/NoHotelSelectedError.js.map +1 -0
- package/dist/src/errors/RoomstayError.d.ts +3 -0
- package/dist/src/errors/RoomstayError.js +10 -0
- package/dist/src/errors/RoomstayError.js.map +1 -0
- package/dist/src/events/RoomstayEvent.d.ts +4 -0
- package/dist/src/events/RoomstayEvent.js +11 -0
- package/dist/src/events/RoomstayEvent.js.map +1 -0
- package/dist/src/events/RoomstayEventManager.d.ts +13 -0
- package/dist/src/events/RoomstayEventManager.js +72 -0
- package/dist/src/events/RoomstayEventManager.js.map +1 -0
- package/dist/src/events/actions/AddToCartEvent.d.ts +8 -0
- package/dist/src/events/actions/AddToCartEvent.js +16 -0
- package/dist/src/events/actions/AddToCartEvent.js.map +1 -0
- package/dist/src/events/actions/RemoveFromCartEvent.d.ts +8 -0
- package/dist/src/events/actions/RemoveFromCartEvent.js +16 -0
- package/dist/src/events/actions/RemoveFromCartEvent.js.map +1 -0
- package/dist/src/events/index.d.ts +3 -0
- package/dist/src/events/index.js +16 -0
- package/dist/src/events/index.js.map +1 -0
- package/dist/src/events/views/StepCheckoutViewEvent.d.ts +7 -0
- package/dist/src/events/views/StepCheckoutViewEvent.js +15 -0
- package/dist/src/events/views/StepCheckoutViewEvent.js.map +1 -0
- package/dist/src/handlers/BasketContextErrorHandler.d.ts +4 -0
- package/dist/src/handlers/BasketContextErrorHandler.js +5 -0
- package/dist/src/handlers/BasketContextErrorHandler.js.map +1 -0
- package/dist/src/handlers/HotelContextEventHandler.d.ts +3 -0
- package/dist/src/handlers/HotelContextEventHandler.js +9 -0
- package/dist/src/handlers/HotelContextEventHandler.js.map +1 -0
- package/dist/src/hooks/CurrentHotelHook.d.ts +4 -0
- package/dist/src/hooks/CurrentHotelHook.js +26 -0
- package/dist/src/hooks/CurrentHotelHook.js.map +1 -0
- package/dist/src/hooks/ElementSortHook.d.ts +11 -0
- package/dist/src/hooks/ElementSortHook.js +20 -0
- package/dist/src/hooks/ElementSortHook.js.map +1 -0
- package/dist/src/hooks/EventHook.d.ts +6 -0
- package/dist/src/hooks/EventHook.js +16 -0
- package/dist/src/hooks/EventHook.js.map +1 -0
- package/dist/src/hooks/ScrollFocusHook.d.ts +3 -0
- package/dist/src/hooks/ScrollFocusHook.js +14 -0
- package/dist/src/hooks/ScrollFocusHook.js.map +1 -0
- package/dist/src/hooks/ScrollLock.d.ts +1 -0
- package/dist/src/hooks/ScrollLock.js +17 -0
- package/dist/src/hooks/ScrollLock.js.map +1 -0
- package/dist/src/hooks/index.d.ts +5 -0
- package/dist/src/hooks/index.js +18 -0
- package/dist/src/hooks/index.js.map +1 -0
- package/dist/src/icons/Check.d.ts +6 -0
- package/dist/src/icons/Check.js +12 -0
- package/dist/src/icons/Check.js.map +1 -0
- package/dist/src/index.d.ts +71 -0
- package/dist/src/index.js +152 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/mockApi/AddonAPI.d.ts +7 -0
- package/dist/src/mockApi/AddonAPI.js +78 -0
- package/dist/src/mockApi/AddonAPI.js.map +1 -0
- package/dist/src/mockApi/BookingAPI.d.ts +15 -0
- package/dist/src/mockApi/BookingAPI.js +18 -0
- package/dist/src/mockApi/BookingAPI.js.map +1 -0
- package/dist/src/mockApi/ExchangeRateAPI.d.ts +5 -0
- package/dist/src/mockApi/ExchangeRateAPI.js +23 -0
- package/dist/src/mockApi/ExchangeRateAPI.js.map +1 -0
- package/dist/src/mockApi/HotelAPI.d.ts +6 -0
- package/dist/src/mockApi/HotelAPI.js +23 -0
- package/dist/src/mockApi/HotelAPI.js.map +1 -0
- package/dist/src/mockApi/MemberAPI.d.ts +4 -0
- package/dist/src/mockApi/MemberAPI.js +26 -0
- package/dist/src/mockApi/MemberAPI.js.map +1 -0
- package/dist/src/mockApi/MockAPI.d.ts +31 -0
- package/dist/src/mockApi/MockAPI.js +110 -0
- package/dist/src/mockApi/MockAPI.js.map +1 -0
- package/dist/src/mockApi/ReservationAPI.d.ts +14 -0
- package/dist/src/mockApi/ReservationAPI.js +109 -0
- package/dist/src/mockApi/ReservationAPI.js.map +1 -0
- package/dist/src/models/Addon/Addon.d.ts +131 -0
- package/dist/src/models/Addon/Addon.js +76 -0
- package/dist/src/models/Addon/Addon.js.map +1 -0
- package/dist/src/models/Api/ExchangeRateDTO.d.ts +3 -0
- package/dist/src/models/Api/ExchangeRateDTO.js +3 -0
- package/dist/src/models/Api/ExchangeRateDTO.js.map +1 -0
- package/dist/src/models/Api/HotelDTO.d.ts +68 -0
- package/dist/src/models/Api/HotelDTO.js +13 -0
- package/dist/src/models/Api/HotelDTO.js.map +1 -0
- package/dist/src/models/Api/HotelOverrideDTO.d.ts +18 -0
- package/dist/src/models/Api/HotelOverrideDTO.js +3 -0
- package/dist/src/models/Api/HotelOverrideDTO.js.map +1 -0
- package/dist/src/models/Api/RatePlanDTO.d.ts +8 -0
- package/dist/src/models/Api/RatePlanDTO.js +3 -0
- package/dist/src/models/Api/RatePlanDTO.js.map +1 -0
- package/dist/src/models/Api/ReservationsDTO.d.ts +66 -0
- package/dist/src/models/Api/ReservationsDTO.js +3 -0
- package/dist/src/models/Api/ReservationsDTO.js.map +1 -0
- package/dist/src/models/Api/RoomNightDTO.d.ts +11 -0
- package/dist/src/models/Api/RoomNightDTO.js +3 -0
- package/dist/src/models/Api/RoomNightDTO.js.map +1 -0
- package/dist/src/models/Api/RoomNightRateDTO.d.ts +8 -0
- package/dist/src/models/Api/RoomNightRateDTO.js +3 -0
- package/dist/src/models/Api/RoomNightRateDTO.js.map +1 -0
- package/dist/src/models/Api/RoomTypeDTO.d.ts +8 -0
- package/dist/src/models/Api/RoomTypeDTO.js +3 -0
- package/dist/src/models/Api/RoomTypeDTO.js.map +1 -0
- package/dist/src/models/BasketAddonRow.d.ts +36 -0
- package/dist/src/models/BasketAddonRow.js +125 -0
- package/dist/src/models/BasketAddonRow.js.map +1 -0
- package/dist/src/models/BasketRow.d.ts +49 -0
- package/dist/src/models/BasketRow.js +155 -0
- package/dist/src/models/BasketRow.js.map +1 -0
- package/dist/src/models/BasketRowDifferences.d.ts +9 -0
- package/dist/src/models/BasketRowDifferences.js +3 -0
- package/dist/src/models/BasketRowDifferences.js.map +1 -0
- package/dist/src/models/Client/Client.d.ts +4 -0
- package/dist/src/models/Client/Client.js +7 -0
- package/dist/src/models/Client/Client.js.map +1 -0
- package/dist/src/models/Client/Hotel/ColorProfile.d.ts +12 -0
- package/dist/src/models/Client/Hotel/ColorProfile.js +3 -0
- package/dist/src/models/Client/Hotel/ColorProfile.js.map +1 -0
- package/dist/src/models/Client/Hotel/Company.d.ts +25 -0
- package/dist/src/models/Client/Hotel/Company.js +3 -0
- package/dist/src/models/Client/Hotel/Company.js.map +1 -0
- package/dist/src/models/Client/Hotel/DistanceUnitType.types.d.ts +5 -0
- package/dist/src/models/Client/Hotel/DistanceUnitType.types.js +10 -0
- package/dist/src/models/Client/Hotel/DistanceUnitType.types.js.map +1 -0
- package/dist/src/models/Client/Hotel/Hotel.d.ts +89 -0
- package/dist/src/models/Client/Hotel/Hotel.js +3 -0
- package/dist/src/models/Client/Hotel/Hotel.js.map +1 -0
- package/dist/src/models/Client/Hotel/HotelAddress.d.ts +10 -0
- package/dist/src/models/Client/Hotel/HotelAddress.js +3 -0
- package/dist/src/models/Client/Hotel/HotelAddress.js.map +1 -0
- package/dist/src/models/Client/Hotel/HotelDataSource.types.d.ts +4 -0
- package/dist/src/models/Client/Hotel/HotelDataSource.types.js +9 -0
- package/dist/src/models/Client/Hotel/HotelDataSource.types.js.map +1 -0
- package/dist/src/models/Client/Hotel/HotelPerk.d.ts +9 -0
- package/dist/src/models/Client/Hotel/HotelPerk.js +3 -0
- package/dist/src/models/Client/Hotel/HotelPerk.js.map +1 -0
- package/dist/src/models/Client/Hotel/HotelRoomOverwrite.d.ts +3 -0
- package/dist/src/models/Client/Hotel/HotelRoomOverwrite.js +3 -0
- package/dist/src/models/Client/Hotel/HotelRoomOverwrite.js.map +1 -0
- package/dist/src/models/Client/Hotel/WeekdayStartsOn.types.d.ts +4 -0
- package/dist/src/models/Client/Hotel/WeekdayStartsOn.types.js +9 -0
- package/dist/src/models/Client/Hotel/WeekdayStartsOn.types.js.map +1 -0
- package/dist/src/models/CountryCodesAndNumbers.d.ts +8 -0
- package/dist/src/models/CountryCodesAndNumbers.js +259 -0
- package/dist/src/models/CountryCodesAndNumbers.js.map +1 -0
- package/dist/src/models/Currency.d.ts +11 -0
- package/dist/src/models/Currency.js +13 -0
- package/dist/src/models/Currency.js.map +1 -0
- package/dist/src/models/PaymentCard.d.ts +8 -0
- package/dist/src/models/PaymentCard.js +3 -0
- package/dist/src/models/PaymentCard.js.map +1 -0
- package/dist/src/models/Room/Filters/BudgetFilter.d.ts +11 -0
- package/dist/src/models/Room/Filters/BudgetFilter.js +35 -0
- package/dist/src/models/Room/Filters/BudgetFilter.js.map +1 -0
- package/dist/src/models/Room/Filters/Filter.d.ts +5 -0
- package/dist/src/models/Room/Filters/Filter.js +6 -0
- package/dist/src/models/Room/Filters/Filter.js.map +1 -0
- package/dist/src/models/Room/Filters/RateTypeFilter.d.ts +9 -0
- package/dist/src/models/Room/Filters/RateTypeFilter.js +21 -0
- package/dist/src/models/Room/Filters/RateTypeFilter.js.map +1 -0
- package/dist/src/models/Room/Filters/RoomTypeFilter.d.ts +9 -0
- package/dist/src/models/Room/Filters/RoomTypeFilter.js +23 -0
- package/dist/src/models/Room/Filters/RoomTypeFilter.js.map +1 -0
- package/dist/src/models/Room/Room.d.ts +40 -0
- package/dist/src/models/Room/Room.js +117 -0
- package/dist/src/models/Room/Room.js.map +1 -0
- package/dist/src/models/Room/RoomRate.d.ts +72 -0
- package/dist/src/models/Room/RoomRate.js +179 -0
- package/dist/src/models/Room/RoomRate.js.map +1 -0
- package/dist/src/models/Room/RoomRateNight.d.ts +22 -0
- package/dist/src/models/Room/RoomRateNight.js +31 -0
- package/dist/src/models/Room/RoomRateNight.js.map +1 -0
- package/dist/src/models/Room/RoomRateSortable.d.ts +3 -0
- package/dist/src/models/Room/RoomRateSortable.js +3 -0
- package/dist/src/models/Room/RoomRateSortable.js.map +1 -0
- package/dist/src/models/RoomstaySession.d.ts +37 -0
- package/dist/src/models/RoomstaySession.js +5 -0
- package/dist/src/models/RoomstaySession.js.map +1 -0
- package/dist/src/models/Serializable.d.ts +4 -0
- package/dist/src/models/Serializable.js +3 -0
- package/dist/src/models/Serializable.js.map +1 -0
- package/dist/src/models/UserProfile.d.ts +20 -0
- package/dist/src/models/UserProfile.js +3 -0
- package/dist/src/models/UserProfile.js.map +1 -0
- package/dist/src/pages/findReservation/FindReservation.d.ts +2 -0
- package/dist/src/pages/findReservation/FindReservation.js +142 -0
- package/dist/src/pages/findReservation/FindReservation.js.map +1 -0
- package/dist/src/pages/findReservation/FindReservationResults.d.ts +2 -0
- package/dist/src/pages/findReservation/FindReservationResults.js +102 -0
- package/dist/src/pages/findReservation/FindReservationResults.js.map +1 -0
- package/dist/src/pages/findReservation/ReservationRow.d.ts +8 -0
- package/dist/src/pages/findReservation/ReservationRow.js +147 -0
- package/dist/src/pages/findReservation/ReservationRow.js.map +1 -0
- package/dist/src/pages/findReservation/ReservationRowModal.d.ts +10 -0
- package/dist/src/pages/findReservation/ReservationRowModal.js +101 -0
- package/dist/src/pages/findReservation/ReservationRowModal.js.map +1 -0
- package/dist/src/pages/hotel/HotelInfo.d.ts +2 -0
- package/dist/src/pages/hotel/HotelInfo.js +164 -0
- package/dist/src/pages/hotel/HotelInfo.js.map +1 -0
- package/dist/src/pages/hotel/HotelInfoPlaceholder.d.ts +2 -0
- package/dist/src/pages/hotel/HotelInfoPlaceholder.js +11 -0
- package/dist/src/pages/hotel/HotelInfoPlaceholder.js.map +1 -0
- package/dist/src/pages/steps/Step.d.ts +22 -0
- package/dist/src/pages/steps/Step.js +32 -0
- package/dist/src/pages/steps/Step.js.map +1 -0
- package/dist/src/pages/steps/StepAddon/StepAddon.d.ts +15 -0
- package/dist/src/pages/steps/StepAddon/StepAddon.js +27 -0
- package/dist/src/pages/steps/StepAddon/StepAddon.js.map +1 -0
- package/dist/src/pages/steps/StepAddon/StepAddonComponent.d.ts +2 -0
- package/dist/src/pages/steps/StepAddon/StepAddonComponent.js +35 -0
- package/dist/src/pages/steps/StepAddon/StepAddonComponent.js.map +1 -0
- package/dist/src/pages/steps/StepAddon/StepAddonLoader.d.ts +2 -0
- package/dist/src/pages/steps/StepAddon/StepAddonLoader.js +60 -0
- package/dist/src/pages/steps/StepAddon/StepAddonLoader.js.map +1 -0
- package/dist/src/pages/steps/StepAddon/StepAddonValidator.d.ts +5 -0
- package/dist/src/pages/steps/StepAddon/StepAddonValidator.js +10 -0
- package/dist/src/pages/steps/StepAddon/StepAddonValidator.js.map +1 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmation.d.ts +15 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmation.js +27 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmation.js.map +1 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationComponent.d.ts +3 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationComponent.js +62 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationComponent.js.map +1 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationLoader.d.ts +2 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationLoader.js +81 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationLoader.js.map +1 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationValidator.d.ts +5 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationValidator.js +14 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationValidator.js.map +1 -0
- package/dist/src/pages/steps/StepDate/StepDate.d.ts +15 -0
- package/dist/src/pages/steps/StepDate/StepDate.js +27 -0
- package/dist/src/pages/steps/StepDate/StepDate.js.map +1 -0
- package/dist/src/pages/steps/StepDate/StepDateComponent.d.ts +3 -0
- package/dist/src/pages/steps/StepDate/StepDateComponent.js +78 -0
- package/dist/src/pages/steps/StepDate/StepDateComponent.js.map +1 -0
- package/dist/src/pages/steps/StepDate/StepDateValidator.d.ts +5 -0
- package/dist/src/pages/steps/StepDate/StepDateValidator.js +10 -0
- package/dist/src/pages/steps/StepDate/StepDateValidator.js.map +1 -0
- package/dist/src/pages/steps/StepGuide.d.ts +7 -0
- package/dist/src/pages/steps/StepGuide.js +35 -0
- package/dist/src/pages/steps/StepGuide.js.map +1 -0
- package/dist/src/pages/steps/StepHotel/StepHotel.d.ts +14 -0
- package/dist/src/pages/steps/StepHotel/StepHotel.js +25 -0
- package/dist/src/pages/steps/StepHotel/StepHotel.js.map +1 -0
- package/dist/src/pages/steps/StepHotel/StepHotelComponent.d.ts +3 -0
- package/dist/src/pages/steps/StepHotel/StepHotelComponent.js +128 -0
- package/dist/src/pages/steps/StepHotel/StepHotelComponent.js.map +1 -0
- package/dist/src/pages/steps/StepHotel/StepHotelLoader.d.ts +2 -0
- package/dist/src/pages/steps/StepHotel/StepHotelLoader.js +56 -0
- package/dist/src/pages/steps/StepHotel/StepHotelLoader.js.map +1 -0
- package/dist/src/pages/steps/StepHotel/StepHotelValidator.d.ts +4 -0
- package/dist/src/pages/steps/StepHotel/StepHotelValidator.js +10 -0
- package/dist/src/pages/steps/StepHotel/StepHotelValidator.js.map +1 -0
- package/dist/src/pages/steps/StepRoom/StepRoom.d.ts +15 -0
- package/dist/src/pages/steps/StepRoom/StepRoom.js +27 -0
- package/dist/src/pages/steps/StepRoom/StepRoom.js.map +1 -0
- package/dist/src/pages/steps/StepRoom/StepRoomComponent.d.ts +2 -0
- package/dist/src/pages/steps/StepRoom/StepRoomComponent.js +81 -0
- package/dist/src/pages/steps/StepRoom/StepRoomComponent.js.map +1 -0
- package/dist/src/pages/steps/StepRoom/StepRoomLoader.d.ts +2 -0
- package/dist/src/pages/steps/StepRoom/StepRoomLoader.js +83 -0
- package/dist/src/pages/steps/StepRoom/StepRoomLoader.js.map +1 -0
- package/dist/src/pages/steps/StepRoom/StepRoomValidator.d.ts +5 -0
- package/dist/src/pages/steps/StepRoom/StepRoomValidator.js +13 -0
- package/dist/src/pages/steps/StepRoom/StepRoomValidator.js.map +1 -0
- package/dist/src/pages/steps/StepThanks/StepThanks.d.ts +16 -0
- package/dist/src/pages/steps/StepThanks/StepThanks.js +32 -0
- package/dist/src/pages/steps/StepThanks/StepThanks.js.map +1 -0
- package/dist/src/pages/steps/StepThanks/StepThanksComponent.d.ts +2 -0
- package/dist/src/pages/steps/StepThanks/StepThanksComponent.js +92 -0
- package/dist/src/pages/steps/StepThanks/StepThanksComponent.js.map +1 -0
- package/dist/src/pages/steps/StepThanks/StepThanksValidator.d.ts +5 -0
- package/dist/src/pages/steps/StepThanks/StepThanksValidator.js +13 -0
- package/dist/src/pages/steps/StepThanks/StepThanksValidator.js.map +1 -0
- package/dist/src/pages/steps/StepValidator.d.ts +4 -0
- package/dist/src/pages/steps/StepValidator.js +6 -0
- package/dist/src/pages/steps/StepValidator.js.map +1 -0
- package/dist/src/providers/CurrencyProvider.d.ts +22 -0
- package/dist/src/providers/CurrencyProvider.js +180 -0
- package/dist/src/providers/CurrencyProvider.js.map +1 -0
- package/dist/src/providers/DIProvider.d.ts +3 -0
- package/dist/src/providers/DIProvider.js +20 -0
- package/dist/src/providers/DIProvider.js.map +1 -0
- package/dist/src/providers/DistanceProvider.d.ts +13 -0
- package/dist/src/providers/DistanceProvider.js +32 -0
- package/dist/src/providers/DistanceProvider.js.map +1 -0
- package/dist/src/providers/FeatureProvider.d.ts +5 -0
- package/dist/src/providers/FeatureProvider.js +36 -0
- package/dist/src/providers/FeatureProvider.js.map +1 -0
- package/dist/src/providers/FilterProvider.d.ts +8 -0
- package/dist/src/providers/FilterProvider.js +40 -0
- package/dist/src/providers/FilterProvider.js.map +1 -0
- package/dist/src/providers/ImageProvider.d.ts +31 -0
- package/dist/src/providers/ImageProvider.js +65 -0
- package/dist/src/providers/ImageProvider.js.map +1 -0
- package/dist/src/providers/LanguageProvider.d.ts +26 -0
- package/dist/src/providers/LanguageProvider.js +105 -0
- package/dist/src/providers/LanguageProvider.js.map +1 -0
- package/dist/src/providers/RatePillProvider.d.ts +33 -0
- package/dist/src/providers/RatePillProvider.js +68 -0
- package/dist/src/providers/RatePillProvider.js.map +1 -0
- package/dist/src/providers/RoomSortProvider.d.ts +9 -0
- package/dist/src/providers/RoomSortProvider.js +28 -0
- package/dist/src/providers/RoomSortProvider.js.map +1 -0
- package/dist/src/providers/RoomstayThemeEngine.d.ts +46 -0
- package/dist/src/providers/RoomstayThemeEngine.js +184 -0
- package/dist/src/providers/RoomstayThemeEngine.js.map +1 -0
- package/dist/src/providers/SessionProvider.d.ts +55 -0
- package/dist/src/providers/SessionProvider.js +245 -0
- package/dist/src/providers/SessionProvider.js.map +1 -0
- package/dist/src/providers/StaticContextProvider.d.ts +5 -0
- package/dist/src/providers/StaticContextProvider.js +11 -0
- package/dist/src/providers/StaticContextProvider.js.map +1 -0
- package/dist/src/providers/feature/ConfirmationVerifyFeature.d.ts +10 -0
- package/dist/src/providers/feature/ConfirmationVerifyFeature.js +16 -0
- package/dist/src/providers/feature/ConfirmationVerifyFeature.js.map +1 -0
- package/dist/src/providers/feature/DatePickerTypeFeature.d.ts +7 -0
- package/dist/src/providers/feature/DatePickerTypeFeature.js +18 -0
- package/dist/src/providers/feature/DatePickerTypeFeature.js.map +1 -0
- package/dist/src/providers/feature/E164PhoneNumberFieldFeature.d.ts +7 -0
- package/dist/src/providers/feature/E164PhoneNumberFieldFeature.js +13 -0
- package/dist/src/providers/feature/E164PhoneNumberFieldFeature.js.map +1 -0
- package/dist/src/providers/feature/Feature.d.ts +11 -0
- package/dist/src/providers/feature/Feature.js +26 -0
- package/dist/src/providers/feature/Feature.js.map +1 -0
- package/dist/src/providers/feature/FeaturedPromoFeature.d.ts +7 -0
- package/dist/src/providers/feature/FeaturedPromoFeature.js +14 -0
- package/dist/src/providers/feature/FeaturedPromoFeature.js.map +1 -0
- package/dist/src/providers/feature/InlineAddonStepFeature.d.ts +9 -0
- package/dist/src/providers/feature/InlineAddonStepFeature.js +26 -0
- package/dist/src/providers/feature/InlineAddonStepFeature.js.map +1 -0
- package/dist/src/providers/feature/RoomUpsellFeature.d.ts +7 -0
- package/dist/src/providers/feature/RoomUpsellFeature.js +13 -0
- package/dist/src/providers/feature/RoomUpsellFeature.js.map +1 -0
- package/dist/src/providers/feature/ShowIATANumberOnCheckoutFeature.d.ts +7 -0
- package/dist/src/providers/feature/ShowIATANumberOnCheckoutFeature.js +13 -0
- package/dist/src/providers/feature/ShowIATANumberOnCheckoutFeature.js.map +1 -0
- package/dist/src/providers/storage/LocalStorageProvider.d.ts +16 -0
- package/dist/src/providers/storage/LocalStorageProvider.js +95 -0
- package/dist/src/providers/storage/LocalStorageProvider.js.map +1 -0
- package/dist/src/providers/storage/StorageProvider.d.ts +9 -0
- package/dist/src/providers/storage/StorageProvider.js +13 -0
- package/dist/src/providers/storage/StorageProvider.js.map +1 -0
- package/dist/src/reducers/BasketReducer.d.ts +8 -0
- package/dist/src/reducers/BasketReducer.js +76 -0
- package/dist/src/reducers/BasketReducer.js.map +1 -0
- package/dist/src/routes/NaturallyProgressedStepRoute.d.ts +7 -0
- package/dist/src/routes/NaturallyProgressedStepRoute.js +17 -0
- package/dist/src/routes/NaturallyProgressedStepRoute.js.map +1 -0
- package/dist/src/translations/Translation.d.ts +301 -0
- package/dist/src/translations/Translation.js +305 -0
- package/dist/src/translations/Translation.js.map +1 -0
- package/dist/src/translations/languages/en-gb.d.ts +3 -0
- package/dist/src/translations/languages/en-gb.js +305 -0
- package/dist/src/translations/languages/en-gb.js.map +1 -0
- package/dist/src/translations/languages/es.d.ts +2 -0
- package/dist/src/translations/languages/es.js +5 -0
- package/dist/src/translations/languages/es.js.map +1 -0
- package/dist/src/translations/languages/fr.d.ts +2 -0
- package/dist/src/translations/languages/fr.js +5 -0
- package/dist/src/translations/languages/fr.js.map +1 -0
- package/dist/src/translations/languages/template.d.ts +2 -0
- package/dist/src/translations/languages/template.js +5 -0
- package/dist/src/translations/languages/template.js.map +1 -0
- package/dist/src/translations/languages/zh-cn.d.ts +2 -0
- package/dist/src/translations/languages/zh-cn.js +5 -0
- package/dist/src/translations/languages/zh-cn.js.map +1 -0
- package/dist/src/translations/languages/zh-tw.d.ts +2 -0
- package/dist/src/translations/languages/zh-tw.js +5 -0
- package/dist/src/translations/languages/zh-tw.js.map +1 -0
- package/dist/src/util/CalendarHelper.d.ts +16 -0
- package/dist/src/util/CalendarHelper.js +81 -0
- package/dist/src/util/CalendarHelper.js.map +1 -0
- package/dist/src/util/Color.d.ts +16 -0
- package/dist/src/util/Color.js +21 -0
- package/dist/src/util/Color.js.map +1 -0
- package/dist/src/util/CurrencyHelper.d.ts +3 -0
- package/dist/src/util/CurrencyHelper.js +9 -0
- package/dist/src/util/CurrencyHelper.js.map +1 -0
- package/dist/src/util/DataLayer.d.ts +65 -0
- package/dist/src/util/DataLayer.js +322 -0
- package/dist/src/util/DataLayer.js.map +1 -0
- package/dist/src/util/ScreenSize.d.ts +9 -0
- package/dist/src/util/ScreenSize.js +13 -0
- package/dist/src/util/ScreenSize.js.map +1 -0
- package/dist/src/util/StepManager.d.ts +19 -0
- package/dist/src/util/StepManager.js +67 -0
- package/dist/src/util/StepManager.js.map +1 -0
- package/dist/src/util/StringHelper.d.ts +7 -0
- package/dist/src/util/StringHelper.js +30 -0
- package/dist/src/util/StringHelper.js.map +1 -0
- package/dist/src/util/TextAlignment.d.ts +4 -0
- package/dist/src/util/TextAlignment.js +9 -0
- package/dist/src/util/TextAlignment.js.map +1 -0
- package/dist/src/util/TimeHelper.d.ts +3 -0
- package/dist/src/util/TimeHelper.js +16 -0
- package/dist/src/util/TimeHelper.js.map +1 -0
- package/dist/src/util/TotalCalculator.d.ts +9 -0
- package/dist/src/util/TotalCalculator.js +57 -0
- package/dist/src/util/TotalCalculator.js.map +1 -0
- package/dist/tests/jest/engines/RoomstayThemeEngine.test.d.ts +1 -0
- package/dist/tests/jest/engines/RoomstayThemeEngine.test.js +36 -0
- package/dist/tests/jest/engines/RoomstayThemeEngine.test.js.map +1 -0
- package/dist/tests/jest/events/EventManager.test.d.ts +1 -0
- package/dist/tests/jest/events/EventManager.test.js +99 -0
- package/dist/tests/jest/events/EventManager.test.js.map +1 -0
- package/dist/tests/jest/models/RoomRate.test.d.ts +1 -0
- package/dist/tests/jest/models/RoomRate.test.js +130 -0
- package/dist/tests/jest/models/RoomRate.test.js.map +1 -0
- package/dist/tests/jest/providers/LanguageProvider.test.d.ts +1 -0
- package/dist/tests/jest/providers/LanguageProvider.test.js +20 -0
- package/dist/tests/jest/providers/LanguageProvider.test.js.map +1 -0
- package/dist/tests/jest/providers/SessionProvider.test.d.ts +1 -0
- package/dist/tests/jest/providers/SessionProvider.test.js +217 -0
- package/dist/tests/jest/providers/SessionProvider.test.js.map +1 -0
- package/dist/tests/jest/providers/storage/LocalStorageProvider.test.d.ts +1 -0
- package/dist/tests/jest/providers/storage/LocalStorageProvider.test.js +126 -0
- package/dist/tests/jest/providers/storage/LocalStorageProvider.test.js.map +1 -0
- package/dist/tests/jest/reducers/BasketReducer.test.d.ts +1 -0
- package/dist/tests/jest/reducers/BasketReducer.test.js +99 -0
- package/dist/tests/jest/reducers/BasketReducer.test.js.map +1 -0
- package/dist/tests/offline/RoomstayBestRateAlert.d.ts +2 -0
- package/dist/tests/offline/RoomstayBestRateAlert.js +22 -0
- package/dist/tests/offline/RoomstayBestRateAlert.js.map +1 -0
- package/dist/tests/offline/entry/RSCompany.d.ts +2 -0
- package/dist/tests/offline/entry/RSCompany.js +111 -0
- package/dist/tests/offline/entry/RSCompany.js.map +1 -0
- package/dist/tests/offline/entry/ReactWrapper.d.ts +2 -0
- package/dist/tests/offline/entry/ReactWrapper.js +59 -0
- package/dist/tests/offline/entry/ReactWrapper.js.map +1 -0
- package/dist/tests/offline/entry/allEngines.d.ts +1 -0
- package/dist/tests/offline/entry/allEngines.js +24 -0
- package/dist/tests/offline/entry/allEngines.js.map +1 -0
- package/dist/tests/offline/entry/components/TestPicker.d.ts +2 -0
- package/dist/tests/offline/entry/components/TestPicker.js +99 -0
- package/dist/tests/offline/entry/components/TestPicker.js.map +1 -0
- package/package.json +180 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RoomstayTheme = exports.ModulePermission = void 0;
|
|
13
|
+
// tslint:disable-next-line: no-submodule-imports
|
|
14
|
+
const isSameOrAfter = require("dayjs/plugin/isSameOrAfter");
|
|
15
|
+
// tslint:disable-next-line: no-submodule-imports
|
|
16
|
+
const isSameOrBefore = require("dayjs/plugin/isSameOrBefore");
|
|
17
|
+
const dayjs = require("dayjs");
|
|
18
|
+
const LanguageProvider_1 = require("./LanguageProvider");
|
|
19
|
+
const i18next_1 = require("i18next");
|
|
20
|
+
const react_i18next_1 = require("react-i18next");
|
|
21
|
+
const Sentry = require("@sentry/browser");
|
|
22
|
+
const ROP = require("resize-observer-polyfill");
|
|
23
|
+
const HotelContextEventHandler_1 = require("../handlers/HotelContextEventHandler");
|
|
24
|
+
// TODO Re-think our approach on permissions and who can see what.
|
|
25
|
+
var ModulePermission;
|
|
26
|
+
(function (ModulePermission) {
|
|
27
|
+
ModulePermission["NumberOfPeopleBookedPill"] = "Number Of People Booked Pill";
|
|
28
|
+
})(ModulePermission = exports.ModulePermission || (exports.ModulePermission = {}));
|
|
29
|
+
/** @ts-ignore */
|
|
30
|
+
if (typeof ResizeObserver === 'undefined') {
|
|
31
|
+
window.ResizeObserver = ROP.default;
|
|
32
|
+
}
|
|
33
|
+
var RoomstayTheme;
|
|
34
|
+
(function (RoomstayTheme) {
|
|
35
|
+
RoomstayTheme["Medium"] = "medium";
|
|
36
|
+
RoomstayTheme["Light"] = "light";
|
|
37
|
+
})(RoomstayTheme = exports.RoomstayTheme || (exports.RoomstayTheme = {}));
|
|
38
|
+
class RoomstayThemeEngine {
|
|
39
|
+
constructor() {
|
|
40
|
+
this.currentCompany = null;
|
|
41
|
+
this.ModulesAllowed = [];
|
|
42
|
+
this.ScriptContainer = null;
|
|
43
|
+
this.StyleContainer = null;
|
|
44
|
+
this.selectedLang = LanguageProvider_1.Language.en_us;
|
|
45
|
+
// TODO This needs to be changed, not ideal to just check for localhost
|
|
46
|
+
this.isLocalhost = location.hostname === 'localhost';
|
|
47
|
+
// TODO: This needs to be refactored to not be a fixed string.
|
|
48
|
+
this.ThemeType = RoomstayTheme.Light;
|
|
49
|
+
this.ExternalStyles = [];
|
|
50
|
+
this.ExternalScripts = ['https://js.verygoodvault.com/vgs-collect/1/AC7dReJwJ6EWF1L9FHdcCw7n.js'];
|
|
51
|
+
this.reloadScriptAndStyleContainers = () => {
|
|
52
|
+
this.StyleContainer = this.createElementOrReuseExisting('div', 'style-container');
|
|
53
|
+
this.ScriptContainer = this.createElementOrReuseExisting('div', 'script-container');
|
|
54
|
+
this.ScriptContainer.innerHTML = '';
|
|
55
|
+
this.StyleContainer.innerHTML = '';
|
|
56
|
+
this.registerStyles();
|
|
57
|
+
};
|
|
58
|
+
this.changeCompany = (newCompany) => {
|
|
59
|
+
this.currentCompany = newCompany;
|
|
60
|
+
this.registerStyles(newCompany.colors);
|
|
61
|
+
// TODO: Remove these hooks as they're useless
|
|
62
|
+
if (HotelContextEventHandler_1.HotelContextEventHandler === null || HotelContextEventHandler_1.HotelContextEventHandler === void 0 ? void 0 : HotelContextEventHandler_1.HotelContextEventHandler.onHotelChange) {
|
|
63
|
+
HotelContextEventHandler_1.HotelContextEventHandler.onHotelChange();
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
this.changeTheme = (profile) => __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
const styleOverrides = this.createElementOrReuseExisting('style', 'engine-styles');
|
|
68
|
+
styleOverrides.setAttribute('rel', 'preload');
|
|
69
|
+
let headerOverrides = '';
|
|
70
|
+
if (profile.navbar) {
|
|
71
|
+
headerOverrides = `
|
|
72
|
+
--color-header-background: ${profile.navbar.background}!important;
|
|
73
|
+
--color-header-text: ${profile.navbar.text}!important;
|
|
74
|
+
--color-header-text-active: ${profile.navbar.textActive}!important;
|
|
75
|
+
`;
|
|
76
|
+
}
|
|
77
|
+
styleOverrides.innerHTML = `
|
|
78
|
+
.roomstay-booking-container {
|
|
79
|
+
--color-accent-1: ${profile.accent}!important;
|
|
80
|
+
--color-accent-2: ${profile.accent2}!important;
|
|
81
|
+
--color-accent-3: ${profile.accent3}!important;
|
|
82
|
+
|
|
83
|
+
${headerOverrides}
|
|
84
|
+
|
|
85
|
+
${profile.success ? `--color-success: ${profile.success}!important;` : ''}
|
|
86
|
+
}
|
|
87
|
+
`;
|
|
88
|
+
});
|
|
89
|
+
this.registerStyles = (profile) => __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
console.log('Loading custom Theme Styles');
|
|
91
|
+
if (profile) {
|
|
92
|
+
this.changeTheme(profile);
|
|
93
|
+
}
|
|
94
|
+
this.ExternalStyles.forEach((url, index) => {
|
|
95
|
+
const style = this.createElementOrReuseExisting('link', `engine-external-style-${index}`);
|
|
96
|
+
style.setAttribute('rel', 'stylesheet');
|
|
97
|
+
style.setAttribute('href', this.getAssetUrl() + url);
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
this.getAssetUrl = () => {
|
|
101
|
+
return this.isLocalhost ? 'http://localhost:9000/' : ASSET_URL;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Detects if URL is absolute, and needs to be
|
|
105
|
+
* @param url string
|
|
106
|
+
*/
|
|
107
|
+
this.wrapAssetUrl = (url) => {
|
|
108
|
+
if (url.match(/^(?:[a-z]+:)?\/\//)) {
|
|
109
|
+
return url;
|
|
110
|
+
}
|
|
111
|
+
return this.getAssetUrl() + url;
|
|
112
|
+
};
|
|
113
|
+
this.registerScripts = () => __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
this.ExternalScripts.forEach((url, index) => {
|
|
115
|
+
this.loadScript(url, `legacy-${index}`);
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
this.loadScript = (src, name) => new Promise((resolve) => {
|
|
119
|
+
const script = this.createElementOrReuseExisting('script', `script-${name}`);
|
|
120
|
+
if (script.hasAttribute('src') && script.getAttribute('src') === src) {
|
|
121
|
+
resolve();
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
script.setAttribute('src', src);
|
|
125
|
+
script.addEventListener('load', () => {
|
|
126
|
+
resolve();
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
this.ScriptContainer.appendChild(script);
|
|
130
|
+
});
|
|
131
|
+
this.createElementOrReuseExisting = (type, name) => {
|
|
132
|
+
const container = this.EngineContainer;
|
|
133
|
+
const findingElement = container.querySelector(`${type}[name="roomstay-${name}"]`);
|
|
134
|
+
if (findingElement) {
|
|
135
|
+
return findingElement;
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
const target = document.createElement(type);
|
|
139
|
+
target.setAttribute('name', `roomstay-${name}`);
|
|
140
|
+
container.appendChild(target);
|
|
141
|
+
return target;
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
this.init = () => __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
dayjs.extend(isSameOrBefore);
|
|
146
|
+
dayjs.extend(isSameOrAfter);
|
|
147
|
+
if (i18next_1.default) {
|
|
148
|
+
i18next_1.default.use(react_i18next_1.initReactI18next).init({
|
|
149
|
+
interpolation: { escapeValue: false },
|
|
150
|
+
lng: LanguageProvider_1.Language.en_us,
|
|
151
|
+
resources: LanguageProvider_1.LanguageProvider.getI18nMappedLanguages(),
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
if (!this.isLocalhost) {
|
|
155
|
+
Sentry.init({
|
|
156
|
+
dsn: 'https://3bfba949561e48f1862c843ce8254a2d@o398412.ingest.sentry.io/5254086',
|
|
157
|
+
beforeSend: (event, hint) => {
|
|
158
|
+
var _a;
|
|
159
|
+
event.tags = (_a = event.tags) !== null && _a !== void 0 ? _a : { logger: '_default_' };
|
|
160
|
+
try {
|
|
161
|
+
if (hint.originalException instanceof Error) {
|
|
162
|
+
if (hint.originalException.stack.indexOf('www.googletagmanager.com/gtm.js?id=') > -1) {
|
|
163
|
+
event.tags.logger = 'gtm';
|
|
164
|
+
event.level = Sentry.Severity.Warning;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
catch (ex) {
|
|
169
|
+
console.log(ex);
|
|
170
|
+
}
|
|
171
|
+
return event;
|
|
172
|
+
},
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
this.reloadScriptAndStyleContainers();
|
|
176
|
+
});
|
|
177
|
+
console.log(`Initializing Roomstay Booking Engine v${exports.RS_VERSION}`);
|
|
178
|
+
}
|
|
179
|
+
canSee(perm) {
|
|
180
|
+
return this.ModulesAllowed.includes(perm);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
exports.default = new RoomstayThemeEngine();
|
|
184
|
+
//# sourceMappingURL=RoomstayThemeEngine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RoomstayThemeEngine.js","sourceRoot":"/","sources":["src/providers/RoomstayThemeEngine.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAiD;AACjD,4DAA4D;AAC5D,iDAAiD;AACjD,8DAA8D;AAC9D,+BAA+B;AAE/B,yDAAgE;AAEhE,qCAA2B;AAC3B,iDAAiD;AACjD,0CAA0C;AAC1C,gDAAgD;AAChD,mFAAgF;AAIhF,kEAAkE;AAClE,IAAY,gBAEX;AAFD,WAAY,gBAAgB;IACxB,6EAAyD,CAAA;AAC7D,CAAC,EAFW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAE3B;AAYD,iBAAiB;AACjB,IAAI,OAAO,cAAc,KAAK,WAAW,EAAE;IACvC,MAAM,CAAC,cAAc,GAAG,GAAG,CAAC,OAAO,CAAC;CACvC;AAED,IAAY,aAGX;AAHD,WAAY,aAAa;IACrB,kCAAiB,CAAA;IACjB,gCAAe,CAAA;AACnB,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB;AACD,MAAM,mBAAmB;IAqBrB;QApBO,mBAAc,GAAmB,IAAI,CAAC;QAEtC,mBAAc,GAAuB,EAAE,CAAC;QAIxC,oBAAe,GAAY,IAAI,CAAC;QAChC,mBAAc,GAAY,IAAI,CAAC;QAE/B,iBAAY,GAAa,2BAAQ,CAAC,KAAK,CAAC;QAE/C,uEAAuE;QAChE,gBAAW,GAAY,QAAQ,CAAC,QAAQ,KAAK,WAAW,CAAC;QAEhE,8DAA8D;QACvD,cAAS,GAAG,aAAa,CAAC,KAAK,CAAC;QAEhC,mBAAc,GAAa,EAAE,CAAC;QAC9B,oBAAe,GAAa,CAAC,wEAAwE,CAAC,CAAC;QAMtG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BAAmB,EAAE,CAAC","sourcesContent":["// tslint:disable-next-line: no-submodule-imports\nimport * as isSameOrAfter from 'dayjs/plugin/isSameOrAfter';\n// tslint:disable-next-line: no-submodule-imports\nimport * as isSameOrBefore from 'dayjs/plugin/isSameOrBefore';\nimport * as dayjs from 'dayjs';\n\nimport { LanguageProvider, Language } from './LanguageProvider';\n\nimport i18n from 'i18next';\nimport { initReactI18next } from 'react-i18next';\nimport * as Sentry from '@sentry/browser';\nimport * as ROP from 'resize-observer-polyfill';\nimport { HotelContextEventHandler } from '../handlers/HotelContextEventHandler';\nimport type { Company } from '../models/Client/Hotel/Company';\nimport type ColorProfile from '../models/Client/Hotel/ColorProfile';\n\n// TODO Re-think our approach on permissions and who can see what.\nexport enum ModulePermission {\n NumberOfPeopleBookedPill = 'Number Of People Booked Pill',\n}\n\ndeclare global {\n interface Window {\n ResizeObserver: any;\n }\n}\n\ndeclare const ASSET_URL: string;\n\nexport declare const RS_VERSION: string;\n\n/** @ts-ignore */\nif (typeof ResizeObserver === 'undefined') {\n window.ResizeObserver = ROP.default;\n}\n\nexport enum RoomstayTheme {\n Medium = 'medium',\n Light = 'light',\n}\nclass RoomstayThemeEngine {\n public currentCompany: Company | null = null;\n\n public ModulesAllowed: ModulePermission[] = [];\n\n public EngineContainer: Element;\n\n public ScriptContainer: Element = null;\n public StyleContainer: Element = null;\n\n public selectedLang: Language = Language.en_us;\n\n // TODO This needs to be changed, not ideal to just check for localhost\n public isLocalhost: boolean = location.hostname === 'localhost';\n\n // TODO: This needs to be refactored to not be a fixed string.\n public ThemeType = RoomstayTheme.Light;\n\n public ExternalStyles: string[] = [];\n public ExternalScripts: string[] = ['https://js.verygoodvault.com/vgs-collect/1/AC7dReJwJ6EWF1L9FHdcCw7n.js'];\n\n public constructor() {\n console.log(`Initializing Roomstay Booking Engine v${RS_VERSION}`);\n }\n\n private reloadScriptAndStyleContainers = () => {\n this.StyleContainer = this.createElementOrReuseExisting('div', 'style-container');\n this.ScriptContainer = this.createElementOrReuseExisting('div', 'script-container');\n\n this.ScriptContainer.innerHTML = '';\n this.StyleContainer.innerHTML = '';\n\n this.registerStyles();\n };\n\n public changeCompany = (newCompany: Company) => {\n this.currentCompany = newCompany;\n this.registerStyles(newCompany.colors);\n\n // TODO: Remove these hooks as they're useless\n if (HotelContextEventHandler?.onHotelChange) {\n HotelContextEventHandler.onHotelChange();\n }\n };\n\n public changeTheme = async (profile: ColorProfile) => {\n const styleOverrides = this.createElementOrReuseExisting('style', 'engine-styles');\n\n styleOverrides.setAttribute('rel', 'preload');\n\n let headerOverrides = '';\n if (profile.navbar) {\n headerOverrides = `\n --color-header-background: ${profile.navbar.background}!important;\n --color-header-text: ${profile.navbar.text}!important;\n --color-header-text-active: ${profile.navbar.textActive}!important;\n `;\n }\n\n styleOverrides.innerHTML = `\n .roomstay-booking-container {\n --color-accent-1: ${profile.accent}!important;\n --color-accent-2: ${profile.accent2}!important;\n --color-accent-3: ${profile.accent3}!important;\n\n ${headerOverrides}\n\n ${profile.success ? `--color-success: ${profile.success}!important;` : ''}\n }\n `;\n };\n\n public registerStyles = async (profile?: ColorProfile) => {\n console.log('Loading custom Theme Styles');\n if (profile) {\n this.changeTheme(profile);\n }\n\n this.ExternalStyles.forEach((url, index) => {\n const style = this.createElementOrReuseExisting('link', `engine-external-style-${index}`);\n style.setAttribute('rel', 'stylesheet');\n style.setAttribute('href', this.getAssetUrl() + url);\n });\n };\n\n public getAssetUrl = () => {\n return this.isLocalhost ? 'http://localhost:9000/' : ASSET_URL;\n };\n\n /**\n * Detects if URL is absolute, and needs to be\n * @param url string\n */\n public wrapAssetUrl = (url: string) => {\n if (url.match(/^(?:[a-z]+:)?\\/\\//)) {\n return url;\n }\n\n return this.getAssetUrl() + url;\n };\n\n public registerScripts = async () => {\n this.ExternalScripts.forEach((url: string, index) => {\n this.loadScript(url, `legacy-${index}`);\n });\n };\n\n public loadScript = (src: string, name: string): Promise<void> =>\n new Promise((resolve) => {\n const script = this.createElementOrReuseExisting('script', `script-${name}`);\n if (script.hasAttribute('src') && script.getAttribute('src') === src) {\n resolve();\n } else {\n script.setAttribute('src', src);\n script.addEventListener('load', () => {\n resolve();\n });\n }\n\n this.ScriptContainer.appendChild(script);\n });\n\n public createElementOrReuseExisting = <K extends keyof HTMLElementTagNameMap>(type: K, name: string) => {\n const container = this.EngineContainer;\n const findingElement = container.querySelector(`${type}[name=\"roomstay-${name}\"]`);\n\n if (findingElement) {\n return findingElement;\n } else {\n const target = document.createElement(type);\n target.setAttribute('name', `roomstay-${name}`);\n container.appendChild(target);\n return target;\n }\n };\n\n public init = async () => {\n dayjs.extend(isSameOrBefore);\n dayjs.extend(isSameOrAfter);\n\n if (i18n) {\n i18n.use(initReactI18next).init({\n interpolation: { escapeValue: false },\n lng: Language.en_us,\n resources: LanguageProvider.getI18nMappedLanguages(),\n });\n }\n\n if (!this.isLocalhost) {\n Sentry.init({\n dsn: 'https://3bfba949561e48f1862c843ce8254a2d@o398412.ingest.sentry.io/5254086',\n beforeSend: (event, hint) => {\n event.tags = event.tags ?? { logger: '_default_' };\n\n try {\n if (hint.originalException instanceof Error) {\n if (hint.originalException.stack.indexOf('www.googletagmanager.com/gtm.js?id=') > -1) {\n event.tags.logger = 'gtm';\n event.level = Sentry.Severity.Warning;\n }\n }\n } catch (ex) {\n console.log(ex);\n }\n\n return event;\n },\n });\n }\n\n this.reloadScriptAndStyleContainers();\n };\n\n public canSee(perm: ModulePermission) {\n return this.ModulesAllowed.includes(perm);\n }\n}\n\nexport default new RoomstayThemeEngine();\n"]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { RoomstaySession } from '../models/RoomstaySession';
|
|
2
|
+
/**
|
|
3
|
+
* Session provider is in charge of handling the loading, saving and passing of the current Engine Session.
|
|
4
|
+
*
|
|
5
|
+
* Desired flow:
|
|
6
|
+
* * App Opened
|
|
7
|
+
* * Session Provider loaded
|
|
8
|
+
* * New User Session Created
|
|
9
|
+
* * User moves through the app, updating the session with vital details (current step, basket context )
|
|
10
|
+
* * User refreshes browser - session is re-loaded and user resumes where they left off
|
|
11
|
+
* * User proceeds to checkout.
|
|
12
|
+
* * Session is saved.
|
|
13
|
+
*
|
|
14
|
+
* Mini Booking Widget:
|
|
15
|
+
* * User loads mini booking widget, selects dates, people
|
|
16
|
+
* * Rates are loaded, and user selects a rate, redirecting to Full Booking Engine
|
|
17
|
+
* * Session Provider creates a SessionID to pass to redirected path
|
|
18
|
+
* * Session Provider loads the passed SessionID and loads the correct session
|
|
19
|
+
* * Resume to Desired Flow
|
|
20
|
+
*
|
|
21
|
+
* Re-targeting:
|
|
22
|
+
* ---Since re-targeting will happen on client site, under client domain, localStorage will be preserved, ergo we can load the previous incomplete sessions back to the user
|
|
23
|
+
* * User lands on client Homepage
|
|
24
|
+
* * Session Provider loads previous incomplete sessions
|
|
25
|
+
* * A slider with details of previous baskets is shown back to the user
|
|
26
|
+
* * User clicks on a previous session and is brought to the Booking Engine
|
|
27
|
+
* * Resume to Desired Flow
|
|
28
|
+
*/
|
|
29
|
+
export default class SessionProvider {
|
|
30
|
+
private currentSessionID;
|
|
31
|
+
private hotelID;
|
|
32
|
+
setHotelID(hotelID: string): Promise<void>;
|
|
33
|
+
initialize(sessionID?: number, source?: string): Promise<void>;
|
|
34
|
+
setSessionID(sessionID?: number, source?: string): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Function to find the right session from session storage, or local storage
|
|
37
|
+
*
|
|
38
|
+
* If one isn't found it is then created.
|
|
39
|
+
*/
|
|
40
|
+
private findOrCreateSessionID;
|
|
41
|
+
private findSession;
|
|
42
|
+
private generateNewSession;
|
|
43
|
+
private serializeSession;
|
|
44
|
+
private unSerializeSession;
|
|
45
|
+
private getSessionKey;
|
|
46
|
+
/**
|
|
47
|
+
* @returns the current session ID
|
|
48
|
+
*/
|
|
49
|
+
getCurrentSessionID(): number;
|
|
50
|
+
getSession(): Promise<RoomstaySession>;
|
|
51
|
+
saveSession(changedSession: RoomstaySession): Promise<void>;
|
|
52
|
+
updateSession(partialSession: Partial<RoomstaySession>): Promise<void>;
|
|
53
|
+
deleteSession(): Promise<void>;
|
|
54
|
+
getAllSessions(): Promise<RoomstaySession[]>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const LocalStorageProvider_1 = require("./storage/LocalStorageProvider");
|
|
13
|
+
const RoomstaySession_1 = require("../models/RoomstaySession");
|
|
14
|
+
const dayjs = require("dayjs");
|
|
15
|
+
const BasketRow_1 = require("../models/BasketRow");
|
|
16
|
+
const RoomRate_1 = require("../models/Room/RoomRate");
|
|
17
|
+
const Room_1 = require("../models/Room/Room");
|
|
18
|
+
/**
|
|
19
|
+
* Session provider is in charge of handling the loading, saving and passing of the current Engine Session.
|
|
20
|
+
*
|
|
21
|
+
* Desired flow:
|
|
22
|
+
* * App Opened
|
|
23
|
+
* * Session Provider loaded
|
|
24
|
+
* * New User Session Created
|
|
25
|
+
* * User moves through the app, updating the session with vital details (current step, basket context )
|
|
26
|
+
* * User refreshes browser - session is re-loaded and user resumes where they left off
|
|
27
|
+
* * User proceeds to checkout.
|
|
28
|
+
* * Session is saved.
|
|
29
|
+
*
|
|
30
|
+
* Mini Booking Widget:
|
|
31
|
+
* * User loads mini booking widget, selects dates, people
|
|
32
|
+
* * Rates are loaded, and user selects a rate, redirecting to Full Booking Engine
|
|
33
|
+
* * Session Provider creates a SessionID to pass to redirected path
|
|
34
|
+
* * Session Provider loads the passed SessionID and loads the correct session
|
|
35
|
+
* * Resume to Desired Flow
|
|
36
|
+
*
|
|
37
|
+
* Re-targeting:
|
|
38
|
+
* ---Since re-targeting will happen on client site, under client domain, localStorage will be preserved, ergo we can load the previous incomplete sessions back to the user
|
|
39
|
+
* * User lands on client Homepage
|
|
40
|
+
* * Session Provider loads previous incomplete sessions
|
|
41
|
+
* * A slider with details of previous baskets is shown back to the user
|
|
42
|
+
* * User clicks on a previous session and is brought to the Booking Engine
|
|
43
|
+
* * Resume to Desired Flow
|
|
44
|
+
*/
|
|
45
|
+
class SessionProvider {
|
|
46
|
+
setHotelID(hotelID) {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
this.hotelID = hotelID;
|
|
49
|
+
this.updateSession({ hotelID });
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
initialize(sessionID, source) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
yield this.setSessionID(sessionID, source);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
setSessionID(sessionID, source) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
const foundSession = yield this.findOrCreateSessionID(sessionID, source);
|
|
60
|
+
if (foundSession) {
|
|
61
|
+
this.currentSessionID = foundSession;
|
|
62
|
+
const storage = new LocalStorageProvider_1.LocalStorageProvider(sessionStorage);
|
|
63
|
+
yield storage.write('currentSession', this.currentSessionID);
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Function to find the right session from session storage, or local storage
|
|
69
|
+
*
|
|
70
|
+
* If one isn't found it is then created.
|
|
71
|
+
*/
|
|
72
|
+
findOrCreateSessionID(sessionID, source) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
let session;
|
|
75
|
+
if (sessionID) {
|
|
76
|
+
session = yield this.findSession(sessionID);
|
|
77
|
+
if (session) {
|
|
78
|
+
return session.id;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
session = yield this.generateNewSession(source);
|
|
82
|
+
return session.id;
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
findSession(sessionID) {
|
|
86
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
+
const storage = new LocalStorageProvider_1.LocalStorageProvider();
|
|
88
|
+
const session = yield storage.read(this.getSessionKey(sessionID));
|
|
89
|
+
if (session) {
|
|
90
|
+
return this.unSerializeSession(session);
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
generateNewSession(source) {
|
|
95
|
+
var _a;
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
const sessionId = new Date().getTime();
|
|
98
|
+
const session = {
|
|
99
|
+
id: sessionId,
|
|
100
|
+
startDate: null,
|
|
101
|
+
endDate: null,
|
|
102
|
+
step: '',
|
|
103
|
+
hotelID: (_a = this.hotelID) !== null && _a !== void 0 ? _a : null,
|
|
104
|
+
basketRows: [],
|
|
105
|
+
source,
|
|
106
|
+
};
|
|
107
|
+
this.saveSession(session);
|
|
108
|
+
return session;
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
serializeSession(session) {
|
|
112
|
+
var _a, _b;
|
|
113
|
+
const basketRows = [];
|
|
114
|
+
// TODO possibly refactor BasketRow to serialize itself, or instead make a serializer that can do all this.
|
|
115
|
+
session.basketRows.forEach((unSerializeBasketRow) => {
|
|
116
|
+
var _a, _b;
|
|
117
|
+
const rate = unSerializeBasketRow.getRate();
|
|
118
|
+
const room = unSerializeBasketRow.getRoom();
|
|
119
|
+
let serializedRate = null;
|
|
120
|
+
let serializedRoom = null;
|
|
121
|
+
if (rate) {
|
|
122
|
+
serializedRate = rate.serialize();
|
|
123
|
+
}
|
|
124
|
+
if (room) {
|
|
125
|
+
serializedRoom = room.serialize();
|
|
126
|
+
}
|
|
127
|
+
basketRows.push({
|
|
128
|
+
uniqId: unSerializeBasketRow.getID(),
|
|
129
|
+
startDate: (_a = unSerializeBasketRow.getStartDate()) === null || _a === void 0 ? void 0 : _a.format(RoomstaySession_1.SERIALIZED_DATE_FORMAT),
|
|
130
|
+
endDate: (_b = unSerializeBasketRow.getEndDate()) === null || _b === void 0 ? void 0 : _b.format(RoomstaySession_1.SERIALIZED_DATE_FORMAT),
|
|
131
|
+
adults: unSerializeBasketRow.getAdults(),
|
|
132
|
+
children: unSerializeBasketRow.getChildren(),
|
|
133
|
+
promoCode: unSerializeBasketRow.getPromoCode(),
|
|
134
|
+
promoCodeStatus: unSerializeBasketRow.getPromoCodeStatus(),
|
|
135
|
+
rate: serializedRate,
|
|
136
|
+
room: serializedRoom,
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
return {
|
|
140
|
+
id: session.id,
|
|
141
|
+
startDate: (_a = session.startDate) === null || _a === void 0 ? void 0 : _a.format(RoomstaySession_1.SERIALIZED_DATE_FORMAT),
|
|
142
|
+
endDate: (_b = session.endDate) === null || _b === void 0 ? void 0 : _b.format(RoomstaySession_1.SERIALIZED_DATE_FORMAT),
|
|
143
|
+
step: session.step,
|
|
144
|
+
hotelID: session.hotelID,
|
|
145
|
+
basketRows,
|
|
146
|
+
source: session.source,
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
unSerializeSession(session) {
|
|
150
|
+
var _a;
|
|
151
|
+
const basketRows = [];
|
|
152
|
+
let startDate;
|
|
153
|
+
let endDate;
|
|
154
|
+
if (session.startDate) {
|
|
155
|
+
startDate = dayjs(session.startDate, RoomstaySession_1.SERIALIZED_DATE_FORMAT);
|
|
156
|
+
}
|
|
157
|
+
if (session.endDate) {
|
|
158
|
+
endDate = dayjs(session.endDate, RoomstaySession_1.SERIALIZED_DATE_FORMAT);
|
|
159
|
+
}
|
|
160
|
+
(_a = session.basketRows) === null || _a === void 0 ? void 0 : _a.forEach((serializedBasketRow) => {
|
|
161
|
+
let rate;
|
|
162
|
+
let room;
|
|
163
|
+
if (serializedBasketRow.room) {
|
|
164
|
+
room = new Room_1.Room();
|
|
165
|
+
room.unSerialize(serializedBasketRow.room);
|
|
166
|
+
}
|
|
167
|
+
if (serializedBasketRow.rate && room) {
|
|
168
|
+
rate = new RoomRate_1.RoomRate();
|
|
169
|
+
rate.unSerialize(serializedBasketRow.rate);
|
|
170
|
+
rate.setRoom(room);
|
|
171
|
+
}
|
|
172
|
+
const basketRow = new BasketRow_1.default(rate !== null && rate !== void 0 ? rate : null, serializedBasketRow.uniqId);
|
|
173
|
+
if (serializedBasketRow.startDate) {
|
|
174
|
+
basketRow.setStartDate(dayjs(serializedBasketRow.startDate, RoomstaySession_1.SERIALIZED_DATE_FORMAT));
|
|
175
|
+
}
|
|
176
|
+
if (serializedBasketRow.endDate) {
|
|
177
|
+
basketRow.setEndDate(dayjs(serializedBasketRow.endDate, RoomstaySession_1.SERIALIZED_DATE_FORMAT));
|
|
178
|
+
}
|
|
179
|
+
basketRow.setAdults(serializedBasketRow.adults);
|
|
180
|
+
basketRow.setChildren(serializedBasketRow.children);
|
|
181
|
+
basketRows.push(basketRow);
|
|
182
|
+
});
|
|
183
|
+
return {
|
|
184
|
+
id: session.id,
|
|
185
|
+
startDate,
|
|
186
|
+
endDate,
|
|
187
|
+
step: session.step,
|
|
188
|
+
hotelID: session.hotelID,
|
|
189
|
+
basketRows,
|
|
190
|
+
source: session.source,
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
getSessionKey(sessionId) {
|
|
194
|
+
return `session-${sessionId !== null && sessionId !== void 0 ? sessionId : this.currentSessionID}`;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* @returns the current session ID
|
|
198
|
+
*/
|
|
199
|
+
getCurrentSessionID() {
|
|
200
|
+
return this.currentSessionID;
|
|
201
|
+
}
|
|
202
|
+
getSession() {
|
|
203
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
204
|
+
const storage = new LocalStorageProvider_1.LocalStorageProvider();
|
|
205
|
+
const sessionFromStorage = yield storage.read(this.getSessionKey());
|
|
206
|
+
if (sessionFromStorage) {
|
|
207
|
+
return this.unSerializeSession(sessionFromStorage);
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
return this.generateNewSession('');
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
saveSession(changedSession) {
|
|
215
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
216
|
+
if (!changedSession) {
|
|
217
|
+
return console.log('Attempted to save empty session');
|
|
218
|
+
}
|
|
219
|
+
const storage = new LocalStorageProvider_1.LocalStorageProvider();
|
|
220
|
+
const serializedSession = this.serializeSession(changedSession);
|
|
221
|
+
yield storage.write(this.getSessionKey(serializedSession.id), serializedSession);
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
updateSession(partialSession) {
|
|
225
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
226
|
+
const currentSession = yield this.getSession();
|
|
227
|
+
yield this.saveSession(Object.assign(Object.assign({}, currentSession), partialSession));
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
deleteSession() {
|
|
231
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
232
|
+
const storage = new LocalStorageProvider_1.LocalStorageProvider();
|
|
233
|
+
storage.delete(this.getSessionKey());
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
getAllSessions() {
|
|
237
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
238
|
+
const storage = new LocalStorageProvider_1.LocalStorageProvider();
|
|
239
|
+
const sessionKeys = storage.getAllKeys((name) => name.startsWith('roomstay-session'));
|
|
240
|
+
return (yield storage.readAll(sessionKeys)).map((session) => this.unSerializeSession(session));
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
exports.default = SessionProvider;
|
|
245
|
+
//# sourceMappingURL=SessionProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SessionProvider.js","sourceRoot":"/","sources":["src/providers/SessionProvider.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,yEAAsE;AACtE,+DAAmJ;AACnJ,+BAA+B;AAC/B,mDAA4C;AAC5C,sDAAmD;AACnD,8CAA2C;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAqB,eAAe;IAInB,UAAU,CAAC,OAAe;;YACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;YACvB,IAAI,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;QACpC,CAAC;KAAA;IAEY,UAAU,CAAC,SAAkB,EAAE,MAAe;;YACvD,MAAM,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAC/C,CAAC;KAAA;IAEY,YAAY,CAAC,SAAkB,EAAE,MAAe;;YACzD,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YAEzE,IAAI,YAAY,EAAE;gBACd,IAAI,CAAC,gBAAgB,GAAG,YAAY,CAAC;gBAErC,MAAM,OAAO,GAAG,IAAI,2CAAoB,CAAC,cAAc,CAAC,CAAC;gBACzD,MAAM,OAAO,CAAC,KAAK,CAAC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;aAChE;QACL,CAAC;KAAA;IAED;;;;OAIG;IACW,qBAAqB,CAAC,SAAiB,EAAE,MAAc;;YACjE,IAAI,OAAwB,CAAC;YAE7B,IAAI,SAAS,EAAE;gBACX,OAAO,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;gBAE5C,IAAI,OAAO,EAAE;oBACT,OAAO,OAAO,CAAC,EAAE,CAAC;iBACrB;aACJ;YAED,OAAO,GAAG,MAAM,IAA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CAAC;YAC3C,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC;QACzC,CAAC;KAAA;IAEY,cAAc;;YACvB,MAAM,OAAO,GAAG,IAAI,2CAAoB,EAAE,CAAC;YAC3C,MAAM,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC,CAAC;YAEtF,OAAO,CAAC,MAAM,OAAO,CAAC,OAAO,CAA4B,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC;QAC9H,CAAC;KAAA;CACJ;AAjOD,kCAiOC","sourcesContent":["import { LocalStorageProvider } from './storage/LocalStorageProvider';\nimport { RoomstaySession, SerializedRoomstaySession, SERIALIZED_DATE_FORMAT, SerializedRoomstaySessionBasketRow } from '../models/RoomstaySession';\nimport * as dayjs from 'dayjs';\nimport BasketRow from '../models/BasketRow';\nimport { RoomRate } from '../models/Room/RoomRate';\nimport { Room } from '../models/Room/Room';\n\n/**\n * Session provider is in charge of handling the loading, saving and passing of the current Engine Session.\n *\n * Desired flow:\n * * App Opened\n * * Session Provider loaded\n * * New User Session Created\n * * User moves through the app, updating the session with vital details (current step, basket context )\n * * User refreshes browser - session is re-loaded and user resumes where they left off\n * * User proceeds to checkout.\n * * Session is saved.\n *\n * Mini Booking Widget:\n * * User loads mini booking widget, selects dates, people\n * * Rates are loaded, and user selects a rate, redirecting to Full Booking Engine\n * * Session Provider creates a SessionID to pass to redirected path\n * * Session Provider loads the passed SessionID and loads the correct session\n * * Resume to Desired Flow\n *\n * Re-targeting:\n * ---Since re-targeting will happen on client site, under client domain, localStorage will be preserved, ergo we can load the previous incomplete sessions back to the user\n * * User lands on client Homepage\n * * Session Provider loads previous incomplete sessions\n * * A slider with details of previous baskets is shown back to the user\n * * User clicks on a previous session and is brought to the Booking Engine\n * * Resume to Desired Flow\n */\nexport default class SessionProvider {\n private currentSessionID: number;\n private hotelID: string;\n\n public async setHotelID(hotelID: string) {\n this.hotelID = hotelID;\n this.updateSession({ hotelID });\n }\n\n public async initialize(sessionID?: number, source?: string) {\n await this.setSessionID(sessionID, source);\n }\n\n public async setSessionID(sessionID?: number, source?: string) {\n const foundSession = await this.findOrCreateSessionID(sessionID, source);\n\n if (foundSession) {\n this.currentSessionID = foundSession;\n\n const storage = new LocalStorageProvider(sessionStorage);\n await storage.write('currentSession', this.currentSessionID);\n }\n }\n\n /**\n * Function to find the right session from session storage, or local storage\n *\n * If one isn't found it is then created.\n */\n private async findOrCreateSessionID(sessionID: number, source: string) {\n let session: RoomstaySession;\n\n if (sessionID) {\n session = await this.findSession(sessionID);\n\n if (session) {\n return session.id;\n }\n }\n\n session = await this.generateNewSession(source);\n\n return session.id;\n }\n\n private async findSession(sessionID: number): Promise<RoomstaySession> {\n const storage = new LocalStorageProvider();\n\n const session = await storage.read<SerializedRoomstaySession>(this.getSessionKey(sessionID));\n\n if (session) {\n return this.unSerializeSession(session);\n }\n }\n\n private async generateNewSession(source: string): Promise<RoomstaySession> {\n const sessionId = new Date().getTime();\n\n const session: RoomstaySession = {\n id: sessionId,\n startDate: null,\n endDate: null,\n step: '',\n hotelID: this.hotelID ?? null,\n basketRows: [],\n source,\n };\n\n this.saveSession(session);\n\n return session;\n }\n\n private serializeSession(session: RoomstaySession): SerializedRoomstaySession {\n const basketRows: SerializedRoomstaySessionBasketRow[] = [];\n\n // TODO possibly refactor BasketRow to serialize itself, or instead make a serializer that can do all this.\n session.basketRows.forEach((unSerializeBasketRow: BasketRow) => {\n const rate = unSerializeBasketRow.getRate();\n const room = unSerializeBasketRow.getRoom();\n\n let serializedRate = null;\n let serializedRoom = null;\n\n if (rate) {\n serializedRate = rate.serialize();\n }\n\n if (room) {\n serializedRoom = room.serialize();\n }\n\n basketRows.push({\n uniqId: unSerializeBasketRow.getID(),\n startDate: unSerializeBasketRow.getStartDate()?.format(SERIALIZED_DATE_FORMAT),\n endDate: unSerializeBasketRow.getEndDate()?.format(SERIALIZED_DATE_FORMAT),\n adults: unSerializeBasketRow.getAdults(),\n children: unSerializeBasketRow.getChildren(),\n promoCode: unSerializeBasketRow.getPromoCode(),\n promoCodeStatus: unSerializeBasketRow.getPromoCodeStatus(),\n rate: serializedRate,\n room: serializedRoom,\n });\n });\n\n return {\n id: session.id,\n startDate: session.startDate?.format(SERIALIZED_DATE_FORMAT),\n endDate: session.endDate?.format(SERIALIZED_DATE_FORMAT),\n step: session.step,\n hotelID: session.hotelID,\n basketRows,\n source: session.source,\n };\n }\n\n private unSerializeSession(session: SerializedRoomstaySession): RoomstaySession {\n const basketRows: BasketRow[] = [];\n let startDate: dayjs.Dayjs;\n let endDate: dayjs.Dayjs;\n\n if (session.startDate) {\n startDate = dayjs(session.startDate, SERIALIZED_DATE_FORMAT);\n }\n\n if (session.endDate) {\n endDate = dayjs(session.endDate, SERIALIZED_DATE_FORMAT);\n }\n\n session.basketRows?.forEach((serializedBasketRow) => {\n let rate;\n let room;\n\n if (serializedBasketRow.room) {\n room = new Room();\n room.unSerialize(serializedBasketRow.room);\n }\n\n if (serializedBasketRow.rate && room) {\n rate = new RoomRate();\n rate.unSerialize(serializedBasketRow.rate);\n rate.setRoom(room);\n }\n\n const basketRow = new BasketRow(rate ?? null, serializedBasketRow.uniqId);\n\n if (serializedBasketRow.startDate) {\n basketRow.setStartDate(dayjs(serializedBasketRow.startDate, SERIALIZED_DATE_FORMAT));\n }\n if (serializedBasketRow.endDate) {\n basketRow.setEndDate(dayjs(serializedBasketRow.endDate, SERIALIZED_DATE_FORMAT));\n }\n\n basketRow.setAdults(serializedBasketRow.adults);\n basketRow.setChildren(serializedBasketRow.children);\n\n basketRows.push(basketRow);\n });\n\n return {\n id: session.id,\n startDate,\n endDate,\n step: session.step,\n hotelID: session.hotelID,\n basketRows,\n source: session.source,\n };\n }\n\n private getSessionKey(sessionId?: number): string {\n return `session-${sessionId ?? this.currentSessionID}`;\n }\n\n /**\n * @returns the current session ID\n */\n public getCurrentSessionID(): number {\n return this.currentSessionID;\n }\n\n public async getSession(): Promise<RoomstaySession> {\n const storage = new LocalStorageProvider();\n\n const sessionFromStorage = await storage.read<SerializedRoomstaySession>(this.getSessionKey());\n\n if (sessionFromStorage) {\n return this.unSerializeSession(sessionFromStorage);\n } else {\n return this.generateNewSession('');\n }\n }\n\n public async saveSession(changedSession: RoomstaySession) {\n if (!changedSession) {\n return console.log('Attempted to save empty session');\n }\n\n const storage = new LocalStorageProvider();\n\n const serializedSession = this.serializeSession(changedSession);\n\n await storage.write(this.getSessionKey(serializedSession.id), serializedSession);\n }\n\n public async updateSession(partialSession: Partial<RoomstaySession>) {\n const currentSession = await this.getSession();\n\n await this.saveSession({\n ...currentSession,\n ...partialSession,\n });\n }\n\n public async deleteSession() {\n const storage = new LocalStorageProvider();\n storage.delete(this.getSessionKey());\n }\n\n public async getAllSessions() {\n const storage = new LocalStorageProvider();\n const sessionKeys = storage.getAllKeys((name) => name.startsWith('roomstay-session'));\n\n return (await storage.readAll<SerializedRoomstaySession>(sessionKeys)).map((session) => this.unSerializeSession(session));\n }\n}\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This class hopefully will only be a temporary solution to provide semi-static data to other classes that require it
|
|
3
|
+
// TODO: this will be removed in the future when things that use this class will be re-done.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
class StaticContextProvider {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.MemberOnlyRateCodes = [];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.default = new StaticContextProvider();
|
|
11
|
+
//# sourceMappingURL=StaticContextProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StaticContextProvider.js","sourceRoot":"/","sources":["src/providers/StaticContextProvider.ts"],"names":[],"mappings":";AAAA,sHAAsH;AACtH,4FAA4F;;AAE5F,MAAM,qBAAqB;IAA3B;QACW,wBAAmB,GAAa,EAAE,CAAC;IAC9C,CAAC;CAAA;AAED,kBAAe,IAAI,qBAAqB,EAAE,CAAC","sourcesContent":["// This class hopefully will only be a temporary solution to provide semi-static data to other classes that require it\n// TODO: this will be removed in the future when things that use this class will be re-done.\n\nclass StaticContextProvider {\n public MemberOnlyRateCodes: string[] = [];\n}\n\nexport default new StaticContextProvider();\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Feature } from './Feature';
|
|
2
|
+
/**
|
|
3
|
+
* Feature to determine if checkboxes for verify confirmation must be ticked
|
|
4
|
+
*/
|
|
5
|
+
declare class ConfirmationVerifyFeature extends Feature {
|
|
6
|
+
constructor();
|
|
7
|
+
protected onLoad(): void;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: ConfirmationVerifyFeature;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const Feature_1 = require("./Feature");
|
|
4
|
+
/**
|
|
5
|
+
* Feature to determine if checkboxes for verify confirmation must be ticked
|
|
6
|
+
*/
|
|
7
|
+
class ConfirmationVerifyFeature extends Feature_1.Feature {
|
|
8
|
+
constructor() {
|
|
9
|
+
super('ConfirmationVerifyFeature');
|
|
10
|
+
}
|
|
11
|
+
onLoad() {
|
|
12
|
+
/** No onload function since the engine itself checks if this is enabled */
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.default = new ConfirmationVerifyFeature();
|
|
16
|
+
//# sourceMappingURL=ConfirmationVerifyFeature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmationVerifyFeature.js","sourceRoot":"/","sources":["src/providers/feature/ConfirmationVerifyFeature.ts"],"names":[],"mappings":";;AAAA,uCAAoC;AAEpC;;GAEG;AACH,MAAM,yBAA0B,SAAQ,iBAAO;IAC3C;QACI,KAAK,CAAC,2BAA2B,CAAC,CAAC;IACvC,CAAC;IAES,MAAM;QACZ,2EAA2E;IAC/E,CAAC;CACJ;AAED,kBAAe,IAAI,yBAAyB,EAAE,CAAC","sourcesContent":["import { Feature } from './Feature';\n\n/**\n * Feature to determine if checkboxes for verify confirmation must be ticked\n */\nclass ConfirmationVerifyFeature extends Feature {\n public constructor() {\n super('ConfirmationVerifyFeature');\n }\n\n protected onLoad() {\n /** No onload function since the engine itself checks if this is enabled */\n }\n}\n\nexport default new ConfirmationVerifyFeature();\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const FullPageBookingEngineElementEvents_1 = require("../../engines/FullPageBookingEngine/FullPageBookingEngineElementEvents");
|
|
4
|
+
const Feature_1 = require("./Feature");
|
|
5
|
+
class DatePickerTypeFeature extends Feature_1.Feature {
|
|
6
|
+
constructor() {
|
|
7
|
+
super('DatePickerTypeFeature');
|
|
8
|
+
}
|
|
9
|
+
onLoad() {
|
|
10
|
+
// TODO: This will need to be re-thought
|
|
11
|
+
// if (RoomstayThemeEngine.currentHotel) {
|
|
12
|
+
// RoomstayThemeEngine.currentHotel.defaultDatepickerType = 'Week';
|
|
13
|
+
// }
|
|
14
|
+
FullPageBookingEngineElementEvents_1.FullPageBookingEngineElementEvents.reload();
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.default = new DatePickerTypeFeature();
|
|
18
|
+
//# sourceMappingURL=DatePickerTypeFeature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatePickerTypeFeature.js","sourceRoot":"/","sources":["src/providers/feature/DatePickerTypeFeature.ts"],"names":[],"mappings":";;AAAA,+HAA4H;AAC5H,uCAAoC;AAEpC,MAAM,qBAAsB,SAAQ,iBAAO;IACvC;QACI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IACnC,CAAC;IAES,MAAM;QACZ,wCAAwC;QACxC,0CAA0C;QAC1C,uEAAuE;QACvE,IAAI;QAEJ,uEAAkC,CAAC,MAAM,EAAE,CAAC;IAChD,CAAC;CACJ;AAED,kBAAe,IAAI,qBAAqB,EAAE,CAAC","sourcesContent":["import { FullPageBookingEngineElementEvents } from '../../engines/FullPageBookingEngine/FullPageBookingEngineElementEvents';\nimport { Feature } from './Feature';\n\nclass DatePickerTypeFeature extends Feature {\n public constructor() {\n super('DatePickerTypeFeature');\n }\n\n protected onLoad() {\n // TODO: This will need to be re-thought\n // if (RoomstayThemeEngine.currentHotel) {\n // RoomstayThemeEngine.currentHotel.defaultDatepickerType = 'Week';\n // }\n\n FullPageBookingEngineElementEvents.reload();\n }\n}\n\nexport default new DatePickerTypeFeature();\n"]}
|