bookito-widget 0.43.1 → 1.0.0-beta.2
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 +191 -7
- package/dist/bookito-widget.css +3 -0
- package/dist/bookito-widget.iife.js +112 -0
- package/dist/bookito-widget.js +40173 -0
- package/dist/bookito-widget.umd.js +104 -1992
- package/dist/bookito-widget.window.js +104 -1992
- package/dist/src/app/i18n/index.d.ts +868 -0
- package/dist/src/app/i18n/locales/de.d.ts +86 -0
- package/dist/src/app/i18n/locales/en.d.ts +86 -0
- package/dist/src/app/i18n/locales/fr.d.ts +86 -0
- package/dist/src/app/i18n/locales/it.d.ts +86 -0
- package/dist/src/app/i18n/locales/pl.d.ts +86 -0
- package/dist/src/app/providers/BookitoWidgetRoot.vue.d.ts +8 -0
- package/dist/src/app/query/query-client.d.ts +2 -0
- package/dist/src/embed/global-api.d.ts +9 -0
- package/dist/src/embed/mount-registry.d.ts +10 -0
- package/dist/src/embed/mount.d.ts +12 -0
- package/dist/src/embed/open-modal.d.ts +11 -0
- package/dist/src/embed/shadow-dom.d.ts +5 -0
- package/dist/src/embed/vue-plugin.d.ts +14 -0
- package/dist/src/embed.d.ts +1 -0
- package/dist/src/features/booking-flow/api/bookito-booking.client.d.ts +2 -0
- package/dist/src/features/booking-flow/api/bookito-booking.dto.d.ts +25 -0
- package/dist/src/features/booking-flow/api/bookito-booking.mutations.d.ts +2 -0
- package/dist/src/features/booking-flow/components/AnimatedSuccessCheckmark.vue.d.ts +2 -0
- package/dist/src/features/booking-flow/components/BookingCheckbox.vue.d.ts +11 -0
- package/dist/src/features/booking-flow/components/BookingDetailsDateOfBirthInput.vue.d.ts +10 -0
- package/dist/src/features/booking-flow/components/BookingDetailsDialCodePicker.vue.d.ts +11 -0
- package/dist/src/features/booking-flow/components/BookingDetailsDialCodePickerContent.vue.d.ts +9 -0
- package/dist/src/features/booking-flow/components/BookingDetailsField.vue.d.ts +20 -0
- package/dist/src/features/booking-flow/components/BookingDetailsLanguageSelect.vue.d.ts +9 -0
- package/dist/src/features/booking-flow/components/BookingDetailsPhoneInput.vue.d.ts +12 -0
- package/dist/src/features/booking-flow/components/BookingDetailsSection.vue.d.ts +30 -0
- package/dist/src/features/booking-flow/components/BookingDetailsTextInput.vue.d.ts +13 -0
- package/dist/src/features/booking-flow/components/BookingExtras.vue.d.ts +15 -0
- package/dist/src/features/booking-flow/components/BookingFlowNextButton.vue.d.ts +10 -0
- package/dist/src/features/booking-flow/components/BookingFlowPanel.vue.d.ts +7 -0
- package/dist/src/features/booking-flow/components/BookingFlowStepper.vue.d.ts +13 -0
- package/dist/src/features/booking-flow/components/BookingFlowSuccess.vue.d.ts +5 -0
- package/dist/src/features/booking-flow/components/BookingGuestChips.vue.d.ts +11 -0
- package/dist/src/features/booking-flow/components/BookingGuestsStep.vue.d.ts +15 -0
- package/dist/src/features/booking-flow/components/BookingParticipantCounter.vue.d.ts +13 -0
- package/dist/src/features/booking-flow/components/BookingTimeSection.vue.d.ts +24 -0
- package/dist/src/features/booking-flow/components/booking-flow.props.d.ts +31 -0
- package/dist/src/features/booking-flow/composables/create-booking-flow-api.d.ts +70 -0
- package/dist/src/features/booking-flow/composables/useBookingFlow.d.ts +52 -0
- package/dist/src/features/booking-flow/composables/useBookingFlowActions.d.ts +13 -0
- package/dist/src/features/booking-flow/composables/useBookingFlowActions.types.d.ts +31 -0
- package/dist/src/features/booking-flow/composables/useBookingFlowFormSync.d.ts +12 -0
- package/dist/src/features/booking-flow/composables/useBookingFlowWaitlist.d.ts +17 -0
- package/dist/src/features/booking-flow/composables/useBookingGuestsStepLabels.d.ts +26 -0
- package/dist/src/features/booking-flow/composables/useBookingTimeSectionState.d.ts +19 -0
- package/dist/src/features/booking-flow/composables/useBookingTimeSlots.d.ts +18 -0
- package/dist/src/features/booking-flow/lib/booking-calendar-bounds.d.ts +9 -0
- package/dist/src/features/booking-flow/lib/booking-details-flow.helpers.d.ts +11 -0
- package/dist/src/features/booking-flow/lib/booking-details.helpers.d.ts +26 -0
- package/dist/src/features/booking-flow/lib/booking-external-participant.helpers.d.ts +10 -0
- package/dist/src/features/booking-flow/lib/booking-flow-stepper.helpers.d.ts +17 -0
- package/dist/src/features/booking-flow/lib/booking-flow.actions.d.ts +34 -0
- package/dist/src/features/booking-flow/lib/booking-flow.helpers.d.ts +32 -0
- package/dist/src/features/booking-flow/lib/booking-participants.helpers.d.ts +4 -0
- package/dist/src/features/booking-flow/lib/booking-payload-label.helpers.d.ts +14 -0
- package/dist/src/features/booking-flow/lib/booking-payload.helpers.d.ts +11 -0
- package/dist/src/features/booking-flow/lib/booking-step-completion.helpers.d.ts +2 -0
- package/dist/src/features/booking-flow/lib/booking-time-slot-payload.helpers.d.ts +8 -0
- package/dist/src/features/booking-flow/lib/filter-phone-dial-codes.d.ts +2 -0
- package/dist/src/features/booking-flow/lib/format-booking-time-slot-label.d.ts +13 -0
- package/dist/src/features/booking-flow/lib/phone-dial-code-countries.data.d.ts +2 -0
- package/dist/src/features/booking-flow/lib/phone-dial-codes.d.ts +6 -0
- package/dist/src/features/booking-flow/lib/reset-booking-auth.helpers.d.ts +1 -0
- package/dist/src/features/booking-flow/lib/reset-booking-confirm-step.helpers.d.ts +2 -0
- package/dist/src/features/booking-flow/lib/resolve-booking-total-price.d.ts +10 -0
- package/dist/src/features/booking-flow/lib/resolve-booking-waitlist.d.ts +19 -0
- package/dist/src/features/booking-flow/model/booking-display-step.types.d.ts +6 -0
- package/dist/src/features/booking-flow/model/booking-form-date.helpers.d.ts +10 -0
- package/dist/src/features/booking-flow/model/booking-form-navigation.helpers.d.ts +2 -0
- package/dist/src/features/booking-flow/model/booking-form.types.d.ts +27 -0
- package/dist/src/features/bookito-settings/api/bookito-settings.client.d.ts +2 -0
- package/dist/src/features/bookito-settings/api/bookito-settings.keys.d.ts +4 -0
- package/dist/src/features/bookito-settings/api/bookito-settings.queries.d.ts +2 -0
- package/dist/src/features/bookito-settings/model/bookito-settings.types.d.ts +27 -0
- package/dist/src/features/event-feed/api/bookito-event-category.client.d.ts +4 -0
- package/dist/src/features/event-feed/api/bookito-event-category.dto.d.ts +11 -0
- package/dist/src/features/event-feed/api/bookito-event-category.queries.d.ts +9 -0
- package/dist/src/features/event-feed/api/bookito-event-modal-dates.helpers.d.ts +6 -0
- package/dist/src/features/event-feed/api/bookito-event.client.d.ts +5 -0
- package/dist/src/features/event-feed/api/bookito-event.dto.d.ts +102 -0
- package/dist/src/features/event-feed/api/bookito-event.keys.d.ts +7 -0
- package/dist/src/features/event-feed/api/bookito-event.mapper-helpers.d.ts +17 -0
- package/dist/src/features/event-feed/api/bookito-event.mapper-image.helpers.d.ts +2 -0
- package/dist/src/features/event-feed/api/bookito-event.mapper-variant.helpers.d.ts +3 -0
- package/dist/src/features/event-feed/api/bookito-event.mapper.d.ts +6 -0
- package/dist/src/features/event-feed/api/bookito-event.queries.d.ts +24 -0
- package/dist/src/features/event-feed/api/bookito-time-slots.queries.d.ts +9 -0
- package/dist/src/features/event-feed/components/BookitoWidget.vue.d.ts +5 -0
- package/dist/src/features/event-feed/components/EventFeed.vue.d.ts +21 -0
- package/dist/src/features/event-feed/components/EventFeedScrollControls.vue.d.ts +13 -0
- package/dist/src/features/event-feed/components/ExperienceCard.vue.d.ts +13 -0
- package/dist/src/features/event-feed/components/PoweredByCarlito.vue.d.ts +2 -0
- package/dist/src/features/event-feed/composables/useBookitoWidgetTheme.d.ts +2 -0
- package/dist/src/features/event-feed/composables/useEventFeedScroll.d.ts +8 -0
- package/dist/src/features/event-feed/lib/event-feed-date.utils.d.ts +15 -0
- package/dist/src/features/event-feed/lib/event-feed-item.helpers.d.ts +9 -0
- package/dist/src/features/event-feed/lib/event-feed-occurrence.helpers.d.ts +7 -0
- package/dist/src/features/event-feed/lib/event-feed.utils.d.ts +8 -0
- package/dist/src/features/event-feed/lib/resolve-localized-text.d.ts +2 -0
- package/dist/src/features/event-feed/model/widget.types.d.ts +96 -0
- package/dist/src/features/experience-detail/components/BookitoEventModal.vue.d.ts +14 -0
- package/dist/src/features/experience-detail/components/ExperienceDetailPanel.vue.d.ts +9 -0
- package/dist/src/features/experience-detail/components/ExperienceOverlay.vue.d.ts +16 -0
- package/dist/src/features/experience-detail/components/ExperienceOverlayContent.vue.d.ts +29 -0
- package/dist/src/features/experience-detail/components/ExperienceOverlayHeader.vue.d.ts +15 -0
- package/dist/src/features/experience-detail/composables/useExperienceOverlayBooking.d.ts +20 -0
- package/dist/src/features/experience-detail/lib/bookito-event-modal.helpers.d.ts +7 -0
- package/dist/src/features/experience-detail/lib/experience-booking-cancellation.helpers.d.ts +2 -0
- package/dist/src/features/experience-detail/lib/experience-booking-cutoff.helpers.d.ts +3 -0
- package/dist/src/features/experience-detail/lib/experience-booking-date.helpers.d.ts +3 -0
- package/dist/src/features/experience-detail/lib/experience-overlay.helpers.d.ts +3 -0
- package/dist/src/features/experience-detail/lib/resolve-experience-booking-availability.d.ts +39 -0
- package/dist/src/features/guest-auth/api/guest-auth.client.d.ts +2 -0
- package/dist/src/features/guest-auth/api/guest-auth.dto.d.ts +36 -0
- package/dist/src/features/guest-auth/api/guest-auth.mutations.d.ts +2 -0
- package/dist/src/features/guest-auth/lib/map-login-guests.d.ts +2 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/shared/api/api-config.d.ts +5 -0
- package/dist/src/shared/api/auth-tokens.d.ts +3 -0
- package/dist/src/shared/api/federation-client.d.ts +14 -0
- package/dist/src/shared/api/federation-errors.d.ts +9 -0
- package/dist/src/shared/api/graphql-client.d.ts +22 -0
- package/dist/src/shared/api/subdomain-parameter.d.ts +8 -0
- package/dist/src/shared/calendar/BookingCalendar.vue.d.ts +15 -0
- package/dist/src/shared/calendar/BookingCalendarGrid.vue.d.ts +8 -0
- package/dist/src/shared/calendar/BookingCalendarNavigation.vue.d.ts +17 -0
- package/dist/src/shared/calendar/calendar-date-key.d.ts +4 -0
- package/dist/src/shared/calendar/calendar-date-value.d.ts +11 -0
- package/dist/src/shared/calendar/calendar-date.types.d.ts +1 -0
- package/dist/src/shared/calendar/hotel-calendar-date.d.ts +10 -0
- package/dist/src/shared/calendar/index.d.ts +1 -0
- package/dist/src/shared/calendar/useBookingCalendarState.d.ts +29 -0
- package/dist/src/shared/config/languages.d.ts +3 -0
- package/dist/src/shared/lib/format-booking-price.d.ts +2 -0
- package/dist/src/shared/lib/is-ios-platform.d.ts +1 -0
- package/dist/src/shared/lib/map-language-to-intl-locale.d.ts +2 -0
- package/dist/src/shared/lib/normalize-widget-background-color.d.ts +1 -0
- package/dist/src/shared/lib/resolve-widget-title.d.ts +2 -0
- package/dist/src/shared/markdown/components/CarlitoMarkdownRenderer.vue.d.ts +8 -0
- package/dist/src/shared/markdown/components/PdfEmbed/PdfEmbed.vue.d.ts +6 -0
- package/dist/src/shared/markdown/components/PdfEmbed/PdfLoading.vue.d.ts +2 -0
- package/dist/src/shared/markdown/components/PdfEmbed/PdfRenderer.vue.d.ts +14 -0
- package/dist/src/shared/markdown/components/PdfEmbed/PdfViewer.vue.d.ts +38 -0
- package/dist/src/shared/markdown/components/PdfEmbed/PdfViewerError.vue.d.ts +5 -0
- package/dist/src/shared/markdown/components/PdfEmbed/composables/usePdfViewerState.d.ts +24 -0
- package/dist/src/shared/markdown/components/PdfEmbed/composables/useRenderPdf.d.ts +17 -0
- package/dist/src/shared/markdown/components/PdfEmbed/lib/pdf-canvas.d.ts +40 -0
- package/dist/src/shared/markdown/components/PdfEmbed/lib/pdf-render-watches.d.ts +15 -0
- package/dist/src/shared/markdown/has-meaningful-markdown-content.d.ts +5 -0
- package/dist/src/shared/markdown/process-markdown.d.ts +1 -0
- package/dist/src/shared/markdown/remark-center.d.ts +3 -0
- package/dist/src/shared/markdown/transform-markdown-url.d.ts +1 -0
- package/dist/src/shared/pdf/create-pdf-panzoom-session.d.ts +18 -0
- package/dist/src/shared/pdf/index.d.ts +5 -0
- package/dist/src/shared/pdf/pdf-panzoom.d.ts +14 -0
- package/dist/src/shared/pdf/pdfjs.d.ts +2 -0
- package/dist/src/shared/pdf/setup-pdf-panzoom-watches.d.ts +14 -0
- package/dist/src/shared/pdf/usePdfPanzoom.d.ts +6 -0
- package/dist/src/shared/pdf/usePdfPanzoom.types.d.ts +11 -0
- package/dist/src/shared/theme/theme-loader.d.ts +19 -0
- package/dist/src/shared/utils/cn.d.ts +2 -0
- package/dist/src/shared/utils/dom-events.d.ts +4 -0
- package/package.json +102 -4
- package/.babelrc +0 -12
- package/.eslintrc.json +0 -18
- package/CHANGELOG.md +0 -1931
- package/dist/1219.js +0 -1
- package/dist/1229.js +0 -2
- package/dist/1229.js.LICENSE.txt +0 -3
- package/dist/135.js +0 -2
- package/dist/135.js.LICENSE.txt +0 -3
- package/dist/1385.js +0 -2
- package/dist/1385.js.LICENSE.txt +0 -3
- package/dist/1421.js +0 -2
- package/dist/1421.js.LICENSE.txt +0 -3
- package/dist/1426.js +0 -2
- package/dist/1426.js.LICENSE.txt +0 -3
- package/dist/1428.js +0 -2
- package/dist/1428.js.LICENSE.txt +0 -3
- package/dist/1677.js +0 -2
- package/dist/1677.js.LICENSE.txt +0 -3
- package/dist/173.js +0 -2
- package/dist/173.js.LICENSE.txt +0 -3
- package/dist/1798.js +0 -2
- package/dist/1798.js.LICENSE.txt +0 -3
- package/dist/1813.js +0 -2
- package/dist/1813.js.LICENSE.txt +0 -3
- package/dist/2411.js +0 -2
- package/dist/2411.js.LICENSE.txt +0 -3
- package/dist/2782.js +0 -2
- package/dist/2782.js.LICENSE.txt +0 -3
- package/dist/2827.js +0 -2
- package/dist/2827.js.LICENSE.txt +0 -3
- package/dist/2939.js +0 -2
- package/dist/2939.js.LICENSE.txt +0 -3
- package/dist/3002.js +0 -2
- package/dist/3002.js.LICENSE.txt +0 -3
- package/dist/3140.js +0 -1
- package/dist/3rdpartylicenses.txt +0 -3609
- package/dist/4189.js +0 -2
- package/dist/4189.js.LICENSE.txt +0 -3
- package/dist/4194.js +0 -2
- package/dist/4194.js.LICENSE.txt +0 -3
- package/dist/4220.js +0 -2
- package/dist/4220.js.LICENSE.txt +0 -3
- package/dist/434.js +0 -2
- package/dist/434.js.LICENSE.txt +0 -3
- package/dist/4606.js +0 -2
- package/dist/4606.js.LICENSE.txt +0 -3
- package/dist/4614.js +0 -2
- package/dist/4614.js.LICENSE.txt +0 -3
- package/dist/5065.js +0 -2
- package/dist/5065.js.LICENSE.txt +0 -3
- package/dist/5090.js +0 -2
- package/dist/5090.js.LICENSE.txt +0 -3
- package/dist/5143.js +0 -2
- package/dist/5143.js.LICENSE.txt +0 -3
- package/dist/5309.js +0 -2
- package/dist/5309.js.LICENSE.txt +0 -3
- package/dist/5397.js +0 -2
- package/dist/5397.js.LICENSE.txt +0 -3
- package/dist/5427.js +0 -2
- package/dist/5427.js.LICENSE.txt +0 -3
- package/dist/5941.js +0 -2
- package/dist/5941.js.LICENSE.txt +0 -3
- package/dist/5956.js +0 -2
- package/dist/5956.js.LICENSE.txt +0 -3
- package/dist/6016.js +0 -2
- package/dist/6016.js.LICENSE.txt +0 -3
- package/dist/6250.js +0 -2
- package/dist/6250.js.LICENSE.txt +0 -3
- package/dist/6290.js +0 -2
- package/dist/6290.js.LICENSE.txt +0 -3
- package/dist/6335.js +0 -2
- package/dist/6335.js.LICENSE.txt +0 -3
- package/dist/6462.js +0 -2
- package/dist/6462.js.LICENSE.txt +0 -3
- package/dist/650.js +0 -2
- package/dist/650.js.LICENSE.txt +0 -3
- package/dist/6531.js +0 -2
- package/dist/6531.js.LICENSE.txt +0 -3
- package/dist/6878.js +0 -2
- package/dist/6878.js.LICENSE.txt +0 -3
- package/dist/6892.js +0 -2
- package/dist/6892.js.LICENSE.txt +0 -3
- package/dist/6979.js +0 -2
- package/dist/6979.js.LICENSE.txt +0 -3
- package/dist/7120.js +0 -2
- package/dist/7120.js.LICENSE.txt +0 -3
- package/dist/7149.js +0 -2
- package/dist/7149.js.LICENSE.txt +0 -3
- package/dist/7202.js +0 -2
- package/dist/7202.js.LICENSE.txt +0 -3
- package/dist/7213.js +0 -2
- package/dist/7213.js.LICENSE.txt +0 -3
- package/dist/7290.js +0 -2
- package/dist/7290.js.LICENSE.txt +0 -3
- package/dist/7373.js +0 -2
- package/dist/7373.js.LICENSE.txt +0 -3
- package/dist/7515.js +0 -2
- package/dist/7515.js.LICENSE.txt +0 -3
- package/dist/7797.js +0 -2
- package/dist/7797.js.LICENSE.txt +0 -3
- package/dist/7804.js +0 -2
- package/dist/7804.js.LICENSE.txt +0 -3
- package/dist/7813.js +0 -2
- package/dist/7813.js.LICENSE.txt +0 -3
- package/dist/7843.js +0 -2
- package/dist/7843.js.LICENSE.txt +0 -3
- package/dist/8199.js +0 -2
- package/dist/8199.js.LICENSE.txt +0 -3
- package/dist/821.js +0 -2
- package/dist/821.js.LICENSE.txt +0 -3
- package/dist/8365.js +0 -2
- package/dist/8365.js.LICENSE.txt +0 -3
- package/dist/8599.js +0 -2
- package/dist/8599.js.LICENSE.txt +0 -3
- package/dist/880.js +0 -2
- package/dist/880.js.LICENSE.txt +0 -3
- package/dist/8831.js +0 -2
- package/dist/8831.js.LICENSE.txt +0 -3
- package/dist/885.js +0 -2
- package/dist/885.js.LICENSE.txt +0 -3
- package/dist/9079.js +0 -2
- package/dist/9079.js.LICENSE.txt +0 -3
- package/dist/9104.js +0 -2
- package/dist/9104.js.LICENSE.txt +0 -3
- package/dist/9236.js +0 -2
- package/dist/9236.js.LICENSE.txt +0 -3
- package/dist/942.js +0 -2
- package/dist/942.js.LICENSE.txt +0 -3
- package/dist/9456.js +0 -2
- package/dist/9456.js.LICENSE.txt +0 -3
- package/dist/951.js +0 -2
- package/dist/951.js.LICENSE.txt +0 -3
- package/dist/9636.js +0 -2
- package/dist/9636.js.LICENSE.txt +0 -3
- package/dist/9742.js +0 -2
- package/dist/9742.js.LICENSE.txt +0 -3
- package/dist/9792.js +0 -2
- package/dist/9792.js.LICENSE.txt +0 -3
- package/dist/9875.js +0 -2
- package/dist/9875.js.LICENSE.txt +0 -3
- package/dist/Carlito.eot +0 -0
- package/dist/Carlito.svg +0 -321
- package/dist/Carlito.ttf +0 -0
- package/dist/Carlito.woff +0 -0
- package/dist/Carlito.woff2 +0 -0
- package/dist/bookito-widget.umd.js.LICENSE.txt +0 -128
- package/dist/bookito-widget.window.js.LICENSE.txt +0 -128
- package/dist/layers-2x.png +0 -0
- package/dist/layers.png +0 -0
- package/dist/marker-icon.png +0 -0
- package/e2e-tests/e2e.html +0 -77
- package/index.html +0 -92
- package/jest.config.ts +0 -9
- package/postcss.config.js +0 -3
- package/project.json +0 -72
- package/src/BookitoEventDetail/index.tsx +0 -101
- package/src/BookitoEventModal/ModalLoader.tsx +0 -43
- package/src/BookitoEventModal/index.tsx +0 -71
- package/src/BookitoForm/EventInfo.tsx +0 -68
- package/src/BookitoForm/FormSubmitButton/AnimatedSuccessCheckmark/index.module.css +0 -45
- package/src/BookitoForm/FormSubmitButton/AnimatedSuccessCheckmark/index.tsx +0 -24
- package/src/BookitoForm/FormSubmitButton/index.tsx +0 -58
- package/src/BookitoForm/NewBookingForm.tsx +0 -199
- package/src/BookitoWidget/index.tsx +0 -299
- package/src/BookitoWidgetProvider/BookitoWidgetProvider.tsx +0 -36
- package/src/Card/EmptyCard.tsx +0 -30
- package/src/Card/index.tsx +0 -103
- package/src/CardHolder/index.tsx +0 -32
- package/src/Modal/index.tsx +0 -34
- package/src/assets/carlito-logo.svg +0 -10
- package/src/calendar-styles.css +0 -22
- package/src/index.module.css +0 -27
- package/src/index.tsx +0 -166
- package/src/types.ts +0 -8
- package/src/utils/index.tsx +0 -7
- package/tailwind.config.js +0 -13
- package/tsconfig.json +0 -26
- package/tsconfig.lib.json +0 -23
- package/tsconfig.spec.json +0 -20
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { SupportedLanguageType } from '../../../../shared/config/languages';
|
|
2
|
+
export type BookitoWidgetViewModeType = 'Date' | 'List';
|
|
3
|
+
export type BookitoWidgetPropsType = {
|
|
4
|
+
authId: string;
|
|
5
|
+
backgroundColor?: string;
|
|
6
|
+
categoryId?: string;
|
|
7
|
+
eventId?: string;
|
|
8
|
+
excludeNonBookable?: boolean;
|
|
9
|
+
language?: SupportedLanguageType;
|
|
10
|
+
title?: string;
|
|
11
|
+
viewMode?: BookitoWidgetViewModeType;
|
|
12
|
+
};
|
|
13
|
+
export type BookitoBookabilityType = 'bookable_autonomously' | 'bookable_on_request' | 'not_bookable';
|
|
14
|
+
export type BookitoDataSourceType = 'manual' | 'spa_system';
|
|
15
|
+
export type BookitoTimeBookabilitySettingsType = {
|
|
16
|
+
bufferTimeAfterMs: number | null;
|
|
17
|
+
bufferTimeBeforeMs: number | null;
|
|
18
|
+
startTimeIncrementMs: number | null;
|
|
19
|
+
timeBlockDurationMs: number | null;
|
|
20
|
+
};
|
|
21
|
+
export type BookitoOccurrenceType = {
|
|
22
|
+
durationMs: number | null;
|
|
23
|
+
endDateTime: string | null;
|
|
24
|
+
startDateTime: string;
|
|
25
|
+
};
|
|
26
|
+
export type BookitoResolvedOccurrenceType = {
|
|
27
|
+
bookabilityReason?: 'cancelled' | 'full' | 'not_bookable' | 'past';
|
|
28
|
+
durationMs: number;
|
|
29
|
+
isAllDay: boolean;
|
|
30
|
+
isBookable: boolean;
|
|
31
|
+
isCancelled: boolean;
|
|
32
|
+
startDateTime: string;
|
|
33
|
+
};
|
|
34
|
+
export type BookitoEventDateEntryType = {
|
|
35
|
+
id: string;
|
|
36
|
+
occurrences: BookitoResolvedOccurrenceType[];
|
|
37
|
+
};
|
|
38
|
+
export type BookitoPriceVariantType = {
|
|
39
|
+
description: string | null;
|
|
40
|
+
id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
price: number | null;
|
|
43
|
+
};
|
|
44
|
+
export type BookitoMoneyType = {
|
|
45
|
+
amount: number;
|
|
46
|
+
currency: string | null;
|
|
47
|
+
};
|
|
48
|
+
export type BookitoEventCancellationStatusType = 'cancelled' | 'deleted';
|
|
49
|
+
export type BookitoEventCancelledDateType = {
|
|
50
|
+
date: string;
|
|
51
|
+
reason: string | null;
|
|
52
|
+
status: BookitoEventCancellationStatusType | null;
|
|
53
|
+
type: string | null;
|
|
54
|
+
};
|
|
55
|
+
export type BookitoEventType = {
|
|
56
|
+
basePrice: BookitoMoneyType | null;
|
|
57
|
+
bookability: BookitoBookabilityType;
|
|
58
|
+
bookableUntilBeforeStartMs: number | null;
|
|
59
|
+
cancellationStatus: {
|
|
60
|
+
reason: string | null;
|
|
61
|
+
status: BookitoEventCancellationStatusType | null;
|
|
62
|
+
} | null;
|
|
63
|
+
cancelledDates: BookitoEventCancelledDateType[];
|
|
64
|
+
description: string | null;
|
|
65
|
+
eventCategoryIds: string[];
|
|
66
|
+
id: string;
|
|
67
|
+
imageUrl: string | null;
|
|
68
|
+
isBookable: boolean;
|
|
69
|
+
maxParticipants: number | null;
|
|
70
|
+
name: string;
|
|
71
|
+
occurrences: BookitoOccurrenceType[];
|
|
72
|
+
priceVariants: BookitoPriceVariantType[];
|
|
73
|
+
source: BookitoDataSourceType | null;
|
|
74
|
+
timeBookability: string | null;
|
|
75
|
+
timeBookabilitySettings: BookitoTimeBookabilitySettingsType | null;
|
|
76
|
+
};
|
|
77
|
+
export type BookitoEventFeedItemType = {
|
|
78
|
+
availableDates: string[];
|
|
79
|
+
date: string;
|
|
80
|
+
event: BookitoEventType;
|
|
81
|
+
isAllDay?: boolean;
|
|
82
|
+
timeframeLabel: string;
|
|
83
|
+
};
|
|
84
|
+
/** Calendar date (`YYYY-MM-DD`) → events scheduled that day (from federation `dates`). */
|
|
85
|
+
export type BookitoEventDatesType = Record<string, BookitoEventDateEntryType[]>;
|
|
86
|
+
export type BookitoEventsListResultType = {
|
|
87
|
+
dates: BookitoEventDatesType;
|
|
88
|
+
events: BookitoEventType[];
|
|
89
|
+
};
|
|
90
|
+
export type BookitoTimeSlotType = {
|
|
91
|
+
employeeId: string | null;
|
|
92
|
+
endDateTime: string | null;
|
|
93
|
+
numOfAvailableParticipants: number | null;
|
|
94
|
+
numOfConfirmedParticipants: number | null;
|
|
95
|
+
startDateTime: string;
|
|
96
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SupportedLanguageType } from '../../../../shared/config/languages';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
authId: string;
|
|
4
|
+
eventId: string;
|
|
5
|
+
language?: SupportedLanguageType;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
close: () => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onClose?: (() => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
12
|
+
rootElement: HTMLDivElement;
|
|
13
|
+
}, HTMLDivElement>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
description?: string | null;
|
|
3
|
+
durationLabel?: string;
|
|
4
|
+
imageAlt?: string;
|
|
5
|
+
imageUrl?: string | null;
|
|
6
|
+
priceLabel?: string | null;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BookitoEventFeedItemType } from '../../../../features/event-feed/model/widget.types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
authId: string;
|
|
4
|
+
currency?: string;
|
|
5
|
+
forceBookable?: boolean;
|
|
6
|
+
item: BookitoEventFeedItemType | null;
|
|
7
|
+
language: string;
|
|
8
|
+
open: boolean;
|
|
9
|
+
viewMode?: 'Date' | 'List';
|
|
10
|
+
};
|
|
11
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
close: () => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onClose?: (() => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BookitoEventFeedItemType } from '../../../../features/event-feed/model/widget.types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
authId: string;
|
|
4
|
+
backLabel: string;
|
|
5
|
+
bookingInitialDate: string;
|
|
6
|
+
closeLabel: string;
|
|
7
|
+
currency: string;
|
|
8
|
+
durationLabel: string;
|
|
9
|
+
isMobile: boolean;
|
|
10
|
+
isMobileBookingOpen: boolean;
|
|
11
|
+
isRegisterButtonDisabled: boolean;
|
|
12
|
+
item: BookitoEventFeedItemType;
|
|
13
|
+
language: string;
|
|
14
|
+
priceLabel: string | null;
|
|
15
|
+
registerLabel: string;
|
|
16
|
+
showBookingPanel: boolean;
|
|
17
|
+
showRegisterButton: boolean;
|
|
18
|
+
timezone: string;
|
|
19
|
+
};
|
|
20
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
close: () => any;
|
|
22
|
+
back: () => any;
|
|
23
|
+
"open-mobile-booking": () => any;
|
|
24
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
+
onClose?: (() => any) | undefined;
|
|
26
|
+
onBack?: (() => any) | undefined;
|
|
27
|
+
"onOpen-mobile-booking"?: (() => any) | undefined;
|
|
28
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
backLabel: string;
|
|
3
|
+
closeLabel: string;
|
|
4
|
+
isMobile: boolean;
|
|
5
|
+
isMobileBookingOpen: boolean;
|
|
6
|
+
title: string;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
close: () => any;
|
|
10
|
+
back: () => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onClose?: (() => any) | undefined;
|
|
13
|
+
onBack?: (() => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { BookitoEventFeedItemType } from '../../../../features/event-feed/model/widget.types';
|
|
3
|
+
type OptionsType = {
|
|
4
|
+
authId: string;
|
|
5
|
+
forceBookable: boolean;
|
|
6
|
+
item: () => BookitoEventFeedItemType | null;
|
|
7
|
+
language: () => string;
|
|
8
|
+
viewMode: () => 'Date' | 'List';
|
|
9
|
+
};
|
|
10
|
+
export declare function useExperienceOverlayBooking(options: OptionsType): {
|
|
11
|
+
bookingInitialDate: import('vue').ComputedRef<string>;
|
|
12
|
+
durationLabel: import('vue').ComputedRef<string>;
|
|
13
|
+
isRegisterButtonDisabled: import('vue').ComputedRef<boolean>;
|
|
14
|
+
priceLabel: import('vue').ComputedRef<string | null>;
|
|
15
|
+
showBookingPanel: import('vue').ComputedRef<boolean>;
|
|
16
|
+
showRegisterButton: import('vue').ComputedRef<boolean>;
|
|
17
|
+
timezone: import('vue').ComputedRef<string>;
|
|
18
|
+
};
|
|
19
|
+
export declare function useExperienceOverlayBodyScroll(open: Ref<boolean>, isMobile: Ref<boolean>): void;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BookitoEventDatesType, BookitoEventFeedItemType, BookitoEventType } from '../../../../features/event-feed/model/widget.types';
|
|
2
|
+
type BuildModalFeedItemOptionsType = {
|
|
3
|
+
language?: string;
|
|
4
|
+
timezone?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function buildModalFeedItem(event: BookitoEventType, availableDates?: string[], datesMap?: BookitoEventDatesType, options?: BuildModalFeedItemOptionsType): BookitoEventFeedItemType;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { BookitoEventType } from '../../../../features/event-feed/model/widget.types';
|
|
2
|
+
export declare function isEventStillBookableOnDate(event: Pick<BookitoEventType, 'bookableUntilBeforeStartMs' | 'cancellationStatus' | 'cancelledDates' | 'occurrences' | 'timeBookability' | 'timeBookabilitySettings'>, onDate: Date, availableDates?: string[]): boolean;
|
|
3
|
+
export declare function isExperienceBookingAvailableOnDate(event: BookitoEventType, dateIso: string, daysBookableInAdvance?: number | null, availableDates?: string[]): boolean;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { BookitoEventType } from '../../../../features/event-feed/model/widget.types';
|
|
2
|
+
export declare function findOccurrenceForDate(event: Pick<BookitoEventType, 'occurrences'>, onDate: Date, availableDates?: string[]): import('../../../../features/event-feed/model/widget.types').BookitoOccurrenceType | null;
|
|
3
|
+
export declare function readCalendarDateIso(value: string): string;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { BookitoEventFeedItemType } from '../../../../features/event-feed/model/widget.types';
|
|
2
|
+
export declare function resolveExperienceDurationLabel(item: BookitoEventFeedItemType): string;
|
|
3
|
+
export declare function resolveExperiencePriceLabel(item: BookitoEventFeedItemType, language: string, fallbackCurrency: string): string | null;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { BookitoEventCancellationStatusType, BookitoEventType } from '../../../../features/event-feed/model/widget.types';
|
|
2
|
+
type ResolveExperienceBookingPanelVisibleParamsType = {
|
|
3
|
+
availableDates?: string[];
|
|
4
|
+
dateIso: string;
|
|
5
|
+
daysBookableInAdvance?: number | null;
|
|
6
|
+
event: BookitoEventType;
|
|
7
|
+
forceBookable?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type IsExperienceRegisterButtonDisabledParamsType = {
|
|
10
|
+
availableDates?: string[];
|
|
11
|
+
dateIso: string;
|
|
12
|
+
daysBookableInAdvance?: number | null;
|
|
13
|
+
event: BookitoEventType;
|
|
14
|
+
};
|
|
15
|
+
type ResolveExperienceRegisterButtonVisibleParamsType = {
|
|
16
|
+
event: Pick<BookitoEventType, 'bookability' | 'isBookable'>;
|
|
17
|
+
forceBookable?: boolean;
|
|
18
|
+
};
|
|
19
|
+
/** Info-only / explicitly non-bookable events never show the booking funnel. */
|
|
20
|
+
export declare function shouldShowExperienceBooking(event: Pick<BookitoEventType, 'bookability' | 'isBookable'>): boolean;
|
|
21
|
+
export declare function isEventBookableInAdvance(options: {
|
|
22
|
+
daysBookableInAdvance?: number | null;
|
|
23
|
+
onDate: Date;
|
|
24
|
+
}): boolean;
|
|
25
|
+
/** Register CTA visibility: only hidden for structurally non-bookable events (mirrors guest-app CTA hide rule). */
|
|
26
|
+
export declare function resolveExperienceRegisterButtonVisible(options: ResolveExperienceRegisterButtonVisibleParamsType): boolean;
|
|
27
|
+
/** List view: prefer the first API date that still passes cutoff checks. */
|
|
28
|
+
export declare function resolveFirstBookableDateIso(options: {
|
|
29
|
+
availableDates: string[];
|
|
30
|
+
daysBookableInAdvance?: number | null;
|
|
31
|
+
event: BookitoEventType;
|
|
32
|
+
}): string;
|
|
33
|
+
/** Only disable when an explicit card date exists (Date view item.date). */
|
|
34
|
+
export declare function isExperienceRegisterButtonDisabled(options: IsExperienceRegisterButtonDisabledParamsType): boolean;
|
|
35
|
+
/** Card overlay: hide booking when not bookable. Modal deep-link can force bookable UI (legacy). */
|
|
36
|
+
export declare function resolveExperienceBookingPanelVisible(options: ResolveExperienceBookingPanelVisibleParamsType): boolean;
|
|
37
|
+
export declare function isCancelledStatus(status: BookitoEventCancellationStatusType | null | undefined): status is "cancelled" | "deleted";
|
|
38
|
+
export { isEventCancelledOnDate } from './experience-booking-cancellation.helpers';
|
|
39
|
+
export { isEventStillBookableOnDate, isExperienceBookingAvailableOnDate, } from './experience-booking-cutoff.helpers';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { FederationSuccessResponseType } from '../../../../shared/api/federation-client';
|
|
2
|
+
export type GuestLoginRequestType = {
|
|
3
|
+
birthDate?: string;
|
|
4
|
+
bookingReference?: string;
|
|
5
|
+
hotelId: string;
|
|
6
|
+
roomNumber?: string;
|
|
7
|
+
};
|
|
8
|
+
export type GuestLoginGuestDtoType = {
|
|
9
|
+
id?: string | null;
|
|
10
|
+
firstName?: string | null;
|
|
11
|
+
lastName?: string | null;
|
|
12
|
+
name?: string | null;
|
|
13
|
+
};
|
|
14
|
+
export type GuestLoginReservationGuestDtoType = {
|
|
15
|
+
data?: {
|
|
16
|
+
id?: string | null;
|
|
17
|
+
firstName?: string | null;
|
|
18
|
+
lastName?: string | null;
|
|
19
|
+
} | null;
|
|
20
|
+
};
|
|
21
|
+
export type GuestLoginResponseType = FederationSuccessResponseType & {
|
|
22
|
+
accessToken?: string;
|
|
23
|
+
currentReservation?: {
|
|
24
|
+
guests?: GuestLoginReservationGuestDtoType[] | null;
|
|
25
|
+
room?: {
|
|
26
|
+
roomNumber?: string | null;
|
|
27
|
+
} | null;
|
|
28
|
+
} | null;
|
|
29
|
+
guest?: GuestLoginGuestDtoType | null;
|
|
30
|
+
};
|
|
31
|
+
export type BookingGuestOptionType = {
|
|
32
|
+
displayName: string;
|
|
33
|
+
id: string;
|
|
34
|
+
isMainBooker: boolean;
|
|
35
|
+
roomNr: string | null;
|
|
36
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { GuestLoginRequestType } from './guest-auth.dto';
|
|
2
|
+
export declare function useGuestLoginMutation(): import('@tanstack/vue-query').UseMutationReturnType<import('./guest-auth.dto').GuestLoginResponseType, Error, GuestLoginRequestType, unknown, Omit<import('@tanstack/query-core').MutationObserverIdleResult<import('./guest-auth.dto').GuestLoginResponseType, Error, GuestLoginRequestType, unknown>, "reset" | "mutate"> | Omit<import('@tanstack/query-core').MutationObserverLoadingResult<import('./guest-auth.dto').GuestLoginResponseType, Error, GuestLoginRequestType, unknown>, "reset" | "mutate"> | Omit<import('@tanstack/query-core').MutationObserverErrorResult<import('./guest-auth.dto').GuestLoginResponseType, Error, GuestLoginRequestType, unknown>, "reset" | "mutate"> | Omit<import('@tanstack/query-core').MutationObserverSuccessResult<import('./guest-auth.dto').GuestLoginResponseType, Error, GuestLoginRequestType, unknown>, "reset" | "mutate">>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type { BookitoWidgetPropsType, BookitoWidgetViewModeType, } from '../features/event-feed/model/widget.types';
|
|
2
|
+
export type { InitializeBookitoWidgetOptionsType, OpenBookitoModalOptionsType } from './embed/mount';
|
|
3
|
+
export { default as BookitoWidgetRoot } from '../app/providers/BookitoWidgetRoot.vue';
|
|
4
|
+
export { createBookitoWidgetGlobalApi, registerBookitoWidgetElement, registerBookitoWidgetGlobal, } from './embed/global-api';
|
|
5
|
+
export { mountBookitoWidget, openBookitoModal, unmountBookitoWidget } from './embed/mount';
|
|
6
|
+
export { BookitoWidgetPlugin, useBookitoWidget } from './embed/vue-plugin';
|
|
7
|
+
export { default as BookitoWidget } from '../features/event-feed/components/BookitoWidget.vue';
|
|
8
|
+
export { default as BookitoEventModal } from '../features/experience-detail/components/BookitoEventModal.vue';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { getSubdomainParameter, SUBDOMAIN_STORAGE_KEY } from './subdomain-parameter';
|
|
2
|
+
export type AppStageType = 'development' | 'prerelease' | 'production';
|
|
3
|
+
export type WidgetApiType = 'main_content' | 'carlito_federation';
|
|
4
|
+
export declare function getAppStage(): AppStageType;
|
|
5
|
+
export declare function getApiUri(api: WidgetApiType, stage?: AppStageType): string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type QueryParametersType = Record<string, string | number | boolean | null | undefined>;
|
|
2
|
+
export type FederationSuccessResponseType = {
|
|
3
|
+
type: 'success';
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
};
|
|
6
|
+
export type FederationRequestOptionsType = Omit<RequestInit, 'body'> & {
|
|
7
|
+
accessToken?: string;
|
|
8
|
+
body?: BodyInit | null;
|
|
9
|
+
language?: string;
|
|
10
|
+
queryParameters?: QueryParametersType;
|
|
11
|
+
};
|
|
12
|
+
export declare function setFederationApiLanguage(language?: string): void;
|
|
13
|
+
export declare function federationRequest<TResponseType extends FederationSuccessResponseType>(endpoint: string, options?: FederationRequestOptionsType): Promise<TResponseType>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class FederationHttpError extends Error {
|
|
2
|
+
readonly status: number;
|
|
3
|
+
constructor(status: number, message?: string);
|
|
4
|
+
}
|
|
5
|
+
export declare class FederationDomainError extends Error {
|
|
6
|
+
readonly code: string;
|
|
7
|
+
constructor(code: string, message?: string);
|
|
8
|
+
}
|
|
9
|
+
export declare function handleFederationErrors(responseBody: unknown): void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type GraphqlVariablesType = Record<string, unknown>;
|
|
2
|
+
type GraphqlRequestOptionsType = {
|
|
3
|
+
operationName?: string;
|
|
4
|
+
variables?: GraphqlVariablesType;
|
|
5
|
+
};
|
|
6
|
+
type GraphqlErrorType = {
|
|
7
|
+
message: string;
|
|
8
|
+
};
|
|
9
|
+
export declare class GraphqlClientError extends Error {
|
|
10
|
+
readonly errors: GraphqlErrorType[];
|
|
11
|
+
constructor(errors: GraphqlErrorType[]);
|
|
12
|
+
}
|
|
13
|
+
export declare class GraphqlHttpError extends Error {
|
|
14
|
+
readonly status: number;
|
|
15
|
+
constructor(status: number);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Minimal Strapi GraphQL client (guest-app pattern).
|
|
19
|
+
* Soft-fail callers should catch — hotel sites often have no Strapi JWT.
|
|
20
|
+
*/
|
|
21
|
+
export declare function graphqlRequest<TDataType>(query: string, options?: GraphqlRequestOptionsType): Promise<NonNullable<TDataType>>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const SUBDOMAIN_STORAGE_KEY = "__subdomain_param__";
|
|
2
|
+
export { SUBDOMAIN_STORAGE_KEY };
|
|
3
|
+
/**
|
|
4
|
+
* Resolves the hotel subdomain for shared hosts (localhost, CloudFront, LAN IP).
|
|
5
|
+
*
|
|
6
|
+
* Priority: `?subdomain=` → persisted `__subdomain_param__` → hostname → `VITE_SUBDOMAIN` → default.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getSubdomainParameter(defaultValue?: string): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CalendarDateKeyType } from '../../../shared/calendar/calendar-date.types';
|
|
2
|
+
import { SupportedLanguageType } from '../../../shared/config/languages';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
availableDates: string[];
|
|
5
|
+
language: SupportedLanguageType;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_PublicProps = {
|
|
8
|
+
modelValue?: CalendarDateKeyType | '';
|
|
9
|
+
} & __VLS_Props;
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (value: "" | `${number}-${string}-${string}`) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((value: "" | `${number}-${string}-${string}`) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DateValue } from 'reka-ui';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
currentMonth: DateValue;
|
|
4
|
+
weekDays: string[];
|
|
5
|
+
weekRows: DateValue[][];
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
month: number;
|
|
3
|
+
monthOptions: {
|
|
4
|
+
label: string;
|
|
5
|
+
value: number;
|
|
6
|
+
}[];
|
|
7
|
+
year: number;
|
|
8
|
+
yearOptions: number[];
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
"month-change": (month: number) => any;
|
|
12
|
+
"year-change": (year: number) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
"onMonth-change"?: ((month: number) => any) | undefined;
|
|
15
|
+
"onYear-change"?: ((year: number) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CalendarDate } from '@internationalized/date';
|
|
2
|
+
import { CalendarDateKeyType } from '../../../shared/calendar/calendar-date.types';
|
|
3
|
+
export declare function toCalendarDateKey(date: CalendarDate): CalendarDateKeyType;
|
|
4
|
+
export declare function parseCalendarDateKey(dateKey: CalendarDateKeyType): CalendarDate;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CalendarDate } from '@internationalized/date';
|
|
2
|
+
import { DateValue } from 'reka-ui';
|
|
3
|
+
type CalendarDayPartsType = {
|
|
4
|
+
day: number;
|
|
5
|
+
month: number;
|
|
6
|
+
year: number;
|
|
7
|
+
};
|
|
8
|
+
export declare function toRekaDateValue(date: CalendarDate): DateValue;
|
|
9
|
+
export declare function fromRekaDateValue(date: CalendarDayPartsType): CalendarDate;
|
|
10
|
+
export declare function coerceRekaDateValue(date: CalendarDayPartsType): DateValue;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CalendarDateKeyType = `${number}-${string}-${string}`;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CalendarDate } from '@internationalized/date';
|
|
2
|
+
import { CalendarDateKeyType } from '../../../shared/calendar/calendar-date.types';
|
|
3
|
+
export declare function getCalendarDateInTimezone(timezone: string, referenceDate?: Date): CalendarDate;
|
|
4
|
+
export declare function getHotelTodayDateKey(timezone: string, referenceDate?: Date): `${number}-${string}-${string}`;
|
|
5
|
+
export declare function parseCalendarDateKeyToDayStart(dateKey: CalendarDateKeyType, timezone: string): Date;
|
|
6
|
+
/**
|
|
7
|
+
* Hotel-local start of day for a feed window offset.
|
|
8
|
+
* `fromDateIso` is already hotel midnight; `dayOffset` shifts by calendar days in that timezone.
|
|
9
|
+
*/
|
|
10
|
+
export declare function resolveHotelFeedWindowStart(fromDateIso: string, dayOffset: number, timezone: string): Date;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BookingCalendar } from '../../../shared/calendar/BookingCalendar.vue';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DateValue } from 'reka-ui';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
import { CalendarDateKeyType } from '../../../shared/calendar/calendar-date.types';
|
|
4
|
+
import { SupportedLanguageType } from '../../../shared/config/languages';
|
|
5
|
+
type UseBookingCalendarStateParamsType = {
|
|
6
|
+
locale: () => SupportedLanguageType;
|
|
7
|
+
maxValue: () => CalendarDateKeyType;
|
|
8
|
+
minValue: () => CalendarDateKeyType;
|
|
9
|
+
selectedDateKey: Ref<CalendarDateKeyType | ''>;
|
|
10
|
+
};
|
|
11
|
+
export declare function useBookingCalendarState({ locale, maxValue, minValue, selectedDateKey, }: UseBookingCalendarStateParamsType): {
|
|
12
|
+
calendarModelValue: import('vue').ComputedRef<DateValue | undefined>;
|
|
13
|
+
calendarPlaceholder: import('vue').ComputedRef<DateValue>;
|
|
14
|
+
handleMonthChange: (month: number) => void;
|
|
15
|
+
handlePlaceholderChange: (value: DateValue) => void;
|
|
16
|
+
handleSelectedDateChange: (date: DateValue | undefined) => void;
|
|
17
|
+
handleYearChange: (year: number) => void;
|
|
18
|
+
intlLocale: import('vue').ComputedRef<string>;
|
|
19
|
+
maxCalendarDate: import('vue').ComputedRef<DateValue>;
|
|
20
|
+
minCalendarDate: import('vue').ComputedRef<DateValue>;
|
|
21
|
+
monthOptions: import('vue').ComputedRef<{
|
|
22
|
+
label: string;
|
|
23
|
+
value: number;
|
|
24
|
+
}[]>;
|
|
25
|
+
placeholderMonth: import('vue').ComputedRef<number>;
|
|
26
|
+
placeholderYear: import('vue').ComputedRef<number>;
|
|
27
|
+
yearOptions: import('vue').ComputedRef<number[]>;
|
|
28
|
+
};
|
|
29
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isIosPlatform(): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function normalizeWidgetBackgroundColor(value?: string | null): string | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type CarlitoMarkdownProseType = 'default' | 'sm' | 'none';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
class?: string;
|
|
4
|
+
content: string;
|
|
5
|
+
prose?: CarlitoMarkdownProseType;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
pdfUrl: string;
|
|
3
|
+
scrollFriendlyZoom?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IUseRenderPdfParametersType } from './composables/useRenderPdf';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
fileUrl: string;
|
|
4
|
+
onDocumentLoaded?: IUseRenderPdfParametersType['onDocumentLoaded'];
|
|
5
|
+
onDocumentLoadError?: IUseRenderPdfParametersType['onDocumentLoadError'];
|
|
6
|
+
pageNumber: number;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
9
|
+
getRootElement: () => HTMLDivElement | null;
|
|
10
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
11
|
+
rootElement: HTMLDivElement;
|
|
12
|
+
canvasContainerElement: HTMLDivElement;
|
|
13
|
+
}, HTMLDivElement>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
open: boolean;
|
|
3
|
+
pdfUrl: string;
|
|
4
|
+
scrollFriendlyZoom?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
close: () => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onClose?: (() => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
11
|
+
panStageRef: HTMLDivElement;
|
|
12
|
+
pdfRendererRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
13
|
+
fileUrl: string;
|
|
14
|
+
onDocumentLoaded?: import('./composables/useRenderPdf').IUseRenderPdfParametersType["onDocumentLoaded"];
|
|
15
|
+
onDocumentLoadError?: import('./composables/useRenderPdf').IUseRenderPdfParametersType["onDocumentLoadError"];
|
|
16
|
+
pageNumber: number;
|
|
17
|
+
}> & Readonly<{}>, {
|
|
18
|
+
getRootElement: () => HTMLDivElement | null;
|
|
19
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
20
|
+
rootElement: HTMLDivElement;
|
|
21
|
+
canvasContainerElement: HTMLDivElement;
|
|
22
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
23
|
+
P: {};
|
|
24
|
+
B: {};
|
|
25
|
+
D: {};
|
|
26
|
+
C: {};
|
|
27
|
+
M: {};
|
|
28
|
+
Defaults: {};
|
|
29
|
+
}, Readonly<{
|
|
30
|
+
fileUrl: string;
|
|
31
|
+
onDocumentLoaded?: import('./composables/useRenderPdf').IUseRenderPdfParametersType["onDocumentLoaded"];
|
|
32
|
+
onDocumentLoadError?: import('./composables/useRenderPdf').IUseRenderPdfParametersType["onDocumentLoadError"];
|
|
33
|
+
pageNumber: number;
|
|
34
|
+
}> & Readonly<{}>, {
|
|
35
|
+
getRootElement: () => HTMLDivElement | null;
|
|
36
|
+
}, {}, {}, {}, {}> | null;
|
|
37
|
+
}, HTMLDivElement>;
|
|
38
|
+
export default _default;
|