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,4 @@
|
|
|
1
|
+
import { CreateBookitoBookingRequestType } from '../../../../features/booking-flow/api/bookito-booking.dto';
|
|
2
|
+
import { BookingFormStateType } from '../../../../features/booking-flow/model/booking-form.types';
|
|
3
|
+
import { BookingGuestOptionType } from '../../../../features/guest-auth/api/guest-auth.dto';
|
|
4
|
+
export declare function resolveBookingParticipants(form: BookingFormStateType, selectedGuests: BookingGuestOptionType[]): CreateBookitoBookingRequestType['participants'];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BookitoEventType } from '../../../../features/event-feed/model/widget.types';
|
|
2
|
+
export type BookingSubmitLabelKeyType = 'confirmBooking' | 'joinWaitlist' | 'sendRequest';
|
|
3
|
+
export declare function resolveBookingSuccessMessageKey(options: {
|
|
4
|
+
bookability: BookitoEventType['bookability'];
|
|
5
|
+
canBePutOnWaitingList: boolean;
|
|
6
|
+
}): "widget.bookingSuccessWaitlist" | "widget.bookingSuccessRequest" | "widget.bookingSuccess";
|
|
7
|
+
export declare function resolveBookingSubmitLabelKey(options: {
|
|
8
|
+
bookability: BookitoEventType['bookability'];
|
|
9
|
+
canBePutOnWaitingList: boolean;
|
|
10
|
+
}): BookingSubmitLabelKeyType;
|
|
11
|
+
export declare function resolveBookingConfirmLabelKey(options: {
|
|
12
|
+
bookability: BookitoEventType['bookability'];
|
|
13
|
+
canBePutOnWaitingList: boolean;
|
|
14
|
+
}): "widget.confirmBooking" | "widget.joinWaitlist" | "widget.sendRequest";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BookitoEventType, BookitoTimeSlotType } from '../../../../features/event-feed/model/widget.types';
|
|
2
|
+
import { CreateBookitoBookingRequestType } from '../../../../features/booking-flow/api/bookito-booking.dto';
|
|
3
|
+
import { BookingFormStateType } from '../../../../features/booking-flow/model/booking-form.types';
|
|
4
|
+
export declare function formatMoneyAmount(price: number | null, language: string, freeLabel: string, currency?: string): string;
|
|
5
|
+
export declare function formatExtraPrice(price: number | null, language: string, freeLabel: string, currency?: string): string;
|
|
6
|
+
export declare function buildCreateBookingPayload(eventId: string, form: BookingFormStateType, timeSlots?: BookitoTimeSlotType[]): CreateBookitoBookingRequestType;
|
|
7
|
+
export declare function resolveBookingSuccessMessageKey(options: {
|
|
8
|
+
bookability: BookitoEventType['bookability'];
|
|
9
|
+
canBePutOnWaitingList: boolean;
|
|
10
|
+
}): "widget.bookingSuccessWaitlist" | "widget.bookingSuccessRequest" | "widget.bookingSuccess";
|
|
11
|
+
export { type BookingSubmitLabelKeyType, resolveBookingConfirmLabelKey, resolveBookingSubmitLabelKey, } from './booking-payload-label.helpers';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { BookingFormStateType, BookingStepType } from '../../../../features/booking-flow/model/booking-form.types';
|
|
2
|
+
export declare function isBookingStepComplete(stepId: BookingStepType, currentStep: BookingStepType, form: BookingFormStateType, requiresTimeStep?: boolean, hasPms?: boolean): boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BookitoEventType, BookitoTimeSlotType } from '../../../../features/event-feed/model/widget.types';
|
|
2
|
+
export declare function resolveSelectedTimeSlot(selectedTimeSlotStart: string, timeSlots: BookitoTimeSlotType[]): BookitoTimeSlotType | null;
|
|
3
|
+
/**
|
|
4
|
+
* Fixed-time (non-custom) events: synthesize a capacity slot for waitlist math
|
|
5
|
+
* (guest-app `resolveAutoSelectedTimeSlot`).
|
|
6
|
+
*/
|
|
7
|
+
export declare function resolveCapacityTimeSlot(event: BookitoEventType, selectedTimeSlot: BookitoTimeSlotType | null, fixedStartIso: string): BookitoTimeSlotType | null;
|
|
8
|
+
export declare function resolveFixedOccurrenceStartIso(event: BookitoEventType, dateIso: string): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SupportedLanguageType } from '../../../../shared/config/languages';
|
|
2
|
+
import { BookitoTimeSlotType } from '../../../../features/event-feed/model/widget.types';
|
|
3
|
+
type FormatBookingTimeSlotLabelParamsType = {
|
|
4
|
+
freeSlotsLabel: (count: number) => string;
|
|
5
|
+
language: SupportedLanguageType;
|
|
6
|
+
maxParticipants?: number | null;
|
|
7
|
+
slot: BookitoTimeSlotType;
|
|
8
|
+
timeBlockDurationMs?: number | null;
|
|
9
|
+
timezone: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function resolveTimeSlotFreeCount(slot: BookitoTimeSlotType, maxParticipants?: number | null): number | null;
|
|
12
|
+
export declare function formatBookingTimeSlotLabel({ freeSlotsLabel, language, maxParticipants, slot, timeBlockDurationMs, timezone, }: FormatBookingTimeSlotLabelParamsType): string;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function resetBookingGuestAuth(): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BookitoPriceVariantType } from '../../../../features/event-feed/model/widget.types';
|
|
2
|
+
type ResolveBookingTotalPriceParamsType = {
|
|
3
|
+
basePrice: number | null;
|
|
4
|
+
numberOfAdditionalParticipants: number;
|
|
5
|
+
priceVariants: BookitoPriceVariantType[];
|
|
6
|
+
selectedGuestCount: number;
|
|
7
|
+
selectedPriceVariantIds: string[];
|
|
8
|
+
};
|
|
9
|
+
export declare function resolveBookingTotalPrice({ basePrice, numberOfAdditionalParticipants, priceVariants, selectedGuestCount, selectedPriceVariantIds, }: ResolveBookingTotalPriceParamsType): number;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BookitoTimeSlotType } from '../../../../features/event-feed/model/widget.types';
|
|
2
|
+
type ResolveBookingWaitlistParamsType = {
|
|
3
|
+
isCustomTimeSlots: boolean;
|
|
4
|
+
maxParticipants: number | null | undefined;
|
|
5
|
+
numberOfAdditionalParticipants: number;
|
|
6
|
+
selectedParticipantCount: number;
|
|
7
|
+
selectedTimeSlot: BookitoTimeSlotType | null;
|
|
8
|
+
source: string | null | undefined;
|
|
9
|
+
};
|
|
10
|
+
export type ResolveBookingWaitlistResultType = {
|
|
11
|
+
availableSpots: number | undefined;
|
|
12
|
+
canBePutOnWaitingList: boolean;
|
|
13
|
+
maxNumberOfAdditionalParticipants: number | undefined;
|
|
14
|
+
resolvedMaxParticipants: number;
|
|
15
|
+
willBePutOnWaitingList: boolean;
|
|
16
|
+
};
|
|
17
|
+
/** Capacity / waitlist rules — same as guest-app `resolveBookingWaitlist`. */
|
|
18
|
+
export declare function resolveBookingWaitlist({ isCustomTimeSlots, maxParticipants, numberOfAdditionalParticipants, selectedParticipantCount, selectedTimeSlot, source, }: ResolveBookingWaitlistParamsType): ResolveBookingWaitlistResultType;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function isDateOfBirthComplete(value: string): boolean;
|
|
2
|
+
export declare function getDateOfBirthSeparator(locale: string): "." | "/";
|
|
3
|
+
export declare function formatDateOfBirthInput(rawValue: string, locale: string): string;
|
|
4
|
+
export declare function toIsoDateOfBirth(maskedValue: string): string | null;
|
|
5
|
+
export declare function splitDateOfBirthParts(maskedValue: string): {
|
|
6
|
+
day: string;
|
|
7
|
+
month: string;
|
|
8
|
+
year: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function joinDateOfBirthParts(day: string, month: string, year: string, locale: string): string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BookingGuestOptionType } from '../../../../features/guest-auth/api/guest-auth.dto';
|
|
2
|
+
export { formatDateOfBirthInput, getDateOfBirthSeparator, isDateOfBirthComplete, joinDateOfBirthParts, splitDateOfBirthParts, toIsoDateOfBirth, } from './booking-form-date.helpers';
|
|
3
|
+
export type BookingStepType = 'date' | 'time' | 'details' | 'guests';
|
|
4
|
+
export type BookingFormStateType = {
|
|
5
|
+
availableGuests: BookingGuestOptionType[];
|
|
6
|
+
bookedForDate: string;
|
|
7
|
+
bookingReference: string;
|
|
8
|
+
comment: string;
|
|
9
|
+
communicationLanguage: string;
|
|
10
|
+
dateOfBirth: string;
|
|
11
|
+
extraParticipantCount: number;
|
|
12
|
+
guestEmail: string;
|
|
13
|
+
guestName: string;
|
|
14
|
+
phoneDialCode: string;
|
|
15
|
+
phoneNumber: string;
|
|
16
|
+
roomNumber: string;
|
|
17
|
+
selectedExtraIds: string[];
|
|
18
|
+
selectedGuestIds: string[];
|
|
19
|
+
selectedTimeSlotStart: string;
|
|
20
|
+
};
|
|
21
|
+
export declare function createInitialBookingFormState(defaultDate?: string): BookingFormStateType;
|
|
22
|
+
export declare function isDateStepValid(state: BookingFormStateType): boolean;
|
|
23
|
+
export declare function isTimeStepValid(state: BookingFormStateType): boolean;
|
|
24
|
+
export declare const BOOKING_STEP_ORDER: BookingStepType[];
|
|
25
|
+
export declare function getBookingStepIndex(step: BookingStepType): number;
|
|
26
|
+
export { canNavigateToBookingStep } from './booking-form-navigation.helpers';
|
|
27
|
+
export declare function isCustomTimeBookability(timeBookability: string | null | undefined): timeBookability is "custom";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const DEFAULT_DAYS_BOOKABLE_IN_ADVANCE = 14;
|
|
2
|
+
export declare const DEFAULT_HOTEL_TIMEZONE = "Europe/Berlin";
|
|
3
|
+
/** Doc B1: Date view baseline ≈ two weeks. */
|
|
4
|
+
export declare const DATE_VIEW_MIN_DAYS = 14;
|
|
5
|
+
/** Doc B1: List view baseline ≈ four weeks. */
|
|
6
|
+
export declare const LIST_VIEW_MIN_DAYS = 28;
|
|
7
|
+
export type BookitoSettingsType = {
|
|
8
|
+
currency: string;
|
|
9
|
+
daysBookableInAdvance: number;
|
|
10
|
+
daysViewableInAdvance: number | null;
|
|
11
|
+
timezone: string;
|
|
12
|
+
hasPms: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare function createDefaultBookitoSettings(): BookitoSettingsType;
|
|
15
|
+
/**
|
|
16
|
+
* Feed window length from hotel bookito settings.
|
|
17
|
+
* Uses the configured value when set.
|
|
18
|
+
* Falls back to Date 14d / List 28d when bookito settings omit the field (null).
|
|
19
|
+
*/
|
|
20
|
+
export declare function resolveFeedViewableDays(viewMode: 'Date' | 'List', daysViewableInAdvance: number | null | undefined): number;
|
|
21
|
+
export declare function addDaysToDate(date: Date, days: number): Date;
|
|
22
|
+
/** Feed `fromDate` — hotel-local midnight. */
|
|
23
|
+
export declare function computeViewableFromDateIso(timezone?: string, referenceDate?: Date): string;
|
|
24
|
+
/** Feed `toDate` — hotel-local midnight + viewable days (no browser timezone offset). */
|
|
25
|
+
export declare function computeViewableToDateIso(daysViewableInAdvance: number, fromDateIso: string, timezone?: string): string;
|
|
26
|
+
/** Modal/detail `toDate` — matches old BookitoEventModal (`now + daysBookable`). */
|
|
27
|
+
export declare function computeBookableToDateIso(daysBookableInAdvance: number, fromDate?: Date): string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ListBookitoEventCategoriesResponseType } from './bookito-event-category.dto';
|
|
2
|
+
type BookitoQueryParametersType = Record<string, string | number | boolean | null | undefined>;
|
|
3
|
+
export declare function listBookitoEventCategories(params: BookitoQueryParametersType): Promise<ListBookitoEventCategoriesResponseType>;
|
|
4
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FederationSuccessResponseType } from '../../../../shared/api/federation-client';
|
|
2
|
+
import { BookitoLocalizedTextDtoType } from './bookito-event.dto';
|
|
3
|
+
export type BookitoEventCategoryDtoType = {
|
|
4
|
+
displayName?: BookitoLocalizedTextDtoType;
|
|
5
|
+
id?: string | null;
|
|
6
|
+
name?: BookitoLocalizedTextDtoType;
|
|
7
|
+
title?: BookitoLocalizedTextDtoType;
|
|
8
|
+
};
|
|
9
|
+
export type ListBookitoEventCategoriesResponseType = FederationSuccessResponseType & {
|
|
10
|
+
eventCategories: BookitoEventCategoryDtoType[];
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
+
type CategoryTitleParamsType = {
|
|
3
|
+
authId: string;
|
|
4
|
+
categoryId?: string;
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
language?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function useBookitoCategoryTitleQuery(params: MaybeRefOrGetter<CategoryTitleParamsType>): import('@tanstack/vue-query').UseQueryReturnType<string | null, Error>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { mapBookitoEventDates } from './bookito-event.mapper';
|
|
2
|
+
export declare function resolveModalAvailableDates(options: {
|
|
3
|
+
availableOnDates?: Array<string | null | undefined> | null;
|
|
4
|
+
datesMap: ReturnType<typeof mapBookitoEventDates>;
|
|
5
|
+
eventId: string;
|
|
6
|
+
}): string[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ListBookitoEventsResponseType, ListBookitoTimeSlotsResponseType } from './bookito-event.dto';
|
|
2
|
+
type BookitoQueryParametersType = Record<string, string | number | boolean | null | undefined>;
|
|
3
|
+
export declare function listBookitoEvents(params: BookitoQueryParametersType): Promise<ListBookitoEventsResponseType>;
|
|
4
|
+
export declare function listBookitoAvailableTimeSlots(params: BookitoQueryParametersType): Promise<ListBookitoTimeSlotsResponseType>;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { FederationSuccessResponseType } from '../../../../shared/api/federation-client';
|
|
2
|
+
export type BookitoContentImageDtoType = {
|
|
3
|
+
formats?: Record<string, {
|
|
4
|
+
url?: string | null;
|
|
5
|
+
}> | null;
|
|
6
|
+
url?: string | null;
|
|
7
|
+
};
|
|
8
|
+
export type BookitoMultiLangValueDtoType = {
|
|
9
|
+
type?: 'multi_lang' | string | null;
|
|
10
|
+
values?: Record<string, string | null | undefined> | null;
|
|
11
|
+
};
|
|
12
|
+
export type BookitoLocalizedTextDtoType = string | BookitoMultiLangValueDtoType | null | undefined;
|
|
13
|
+
export type BookitoPriceVariationDtoType = {
|
|
14
|
+
amount?: number | null;
|
|
15
|
+
currency?: string | null;
|
|
16
|
+
};
|
|
17
|
+
export type BookitoPriceVariantDtoType = {
|
|
18
|
+
description?: BookitoLocalizedTextDtoType;
|
|
19
|
+
id?: string | null;
|
|
20
|
+
name?: BookitoLocalizedTextDtoType;
|
|
21
|
+
/** Flat amount — some clients; staging federation uses `priceVariation` instead. */
|
|
22
|
+
price?: number | null;
|
|
23
|
+
priceVariation?: BookitoPriceVariationDtoType | null;
|
|
24
|
+
};
|
|
25
|
+
export type BookitoBookabilityDtoType = 'bookable_autonomously' | 'bookable_on_request' | 'not_bookable';
|
|
26
|
+
export type BookitoOccurrenceDtoType = {
|
|
27
|
+
durationMs?: number | null;
|
|
28
|
+
endDateTime?: string | null;
|
|
29
|
+
startDateTime?: string | null;
|
|
30
|
+
};
|
|
31
|
+
export type BookitoMoneyDtoType = {
|
|
32
|
+
amount?: number | null;
|
|
33
|
+
currency?: string | null;
|
|
34
|
+
};
|
|
35
|
+
export type BookitoEventCancellationStatusDtoType = 'cancelled' | 'deleted';
|
|
36
|
+
export type BookitoEventCancelledDateDtoType = {
|
|
37
|
+
date?: string | null;
|
|
38
|
+
reason?: BookitoLocalizedTextDtoType;
|
|
39
|
+
status?: BookitoEventCancellationStatusDtoType | null;
|
|
40
|
+
type?: string | null;
|
|
41
|
+
};
|
|
42
|
+
export type BookitoEventDtoType = {
|
|
43
|
+
bannerImg?: BookitoContentImageDtoType | null;
|
|
44
|
+
basePrice?: BookitoMoneyDtoType | null;
|
|
45
|
+
bookability?: BookitoBookabilityDtoType | null;
|
|
46
|
+
bookableUntilBeforeStartMs?: number | null;
|
|
47
|
+
cancellationStatus?: {
|
|
48
|
+
reason?: BookitoLocalizedTextDtoType;
|
|
49
|
+
status?: BookitoEventCancellationStatusDtoType | null;
|
|
50
|
+
} | null;
|
|
51
|
+
cancelledDates?: BookitoEventCancelledDateDtoType[] | null;
|
|
52
|
+
description?: BookitoLocalizedTextDtoType;
|
|
53
|
+
eventCategoryIds?: string[] | null;
|
|
54
|
+
id?: string | null;
|
|
55
|
+
imageUrl?: string | null;
|
|
56
|
+
isBookable?: boolean | null;
|
|
57
|
+
maxParticipants?: number | null;
|
|
58
|
+
name?: BookitoLocalizedTextDtoType;
|
|
59
|
+
occurrences?: BookitoOccurrenceDtoType[] | null;
|
|
60
|
+
priceVariants?: BookitoPriceVariantDtoType[] | null;
|
|
61
|
+
source?: 'manual' | 'spa_system' | null;
|
|
62
|
+
timeBookability?: string | null;
|
|
63
|
+
timeBookabilitySettings?: BookitoTimeBookabilitySettingsDtoType | null;
|
|
64
|
+
title?: BookitoLocalizedTextDtoType;
|
|
65
|
+
};
|
|
66
|
+
export type BookitoTimeBookabilitySettingsDtoType = {
|
|
67
|
+
bufferTimeAfterMs?: number | null;
|
|
68
|
+
bufferTimeBeforeMs?: number | null;
|
|
69
|
+
startTimeIncrementMs?: number | null;
|
|
70
|
+
timeBlockDurationMs?: number | null;
|
|
71
|
+
};
|
|
72
|
+
export type BookitoTimeSlotDtoType = {
|
|
73
|
+
employeeId?: string | null;
|
|
74
|
+
endDateTime?: string | null;
|
|
75
|
+
numOfAvailableParticipants?: number | null;
|
|
76
|
+
numOfConfirmedParticipants?: number | null;
|
|
77
|
+
startDateTime?: string | null;
|
|
78
|
+
};
|
|
79
|
+
export type BookitoResolvedOccurrenceDtoType = {
|
|
80
|
+
bookabilityReason?: 'cancelled' | 'full' | 'not_bookable' | 'past' | null;
|
|
81
|
+
durationMs?: number | null;
|
|
82
|
+
isAllDay?: boolean | null;
|
|
83
|
+
isBookable?: boolean | null;
|
|
84
|
+
isCancelled?: boolean | null;
|
|
85
|
+
startDateTime?: string | null;
|
|
86
|
+
};
|
|
87
|
+
export type BookitoEventDateEntryDtoType = {
|
|
88
|
+
events?: Array<{
|
|
89
|
+
id?: string | null;
|
|
90
|
+
occurrences?: BookitoResolvedOccurrenceDtoType[] | null;
|
|
91
|
+
}> | null;
|
|
92
|
+
};
|
|
93
|
+
export type ListBookitoEventsResponseType = FederationSuccessResponseType & {
|
|
94
|
+
availableOnDates?: string[] | null;
|
|
95
|
+
dates?: Record<string, BookitoEventDateEntryDtoType> | null;
|
|
96
|
+
events: BookitoEventDtoType[];
|
|
97
|
+
limit?: number;
|
|
98
|
+
skip?: number;
|
|
99
|
+
};
|
|
100
|
+
export type ListBookitoTimeSlotsResponseType = FederationSuccessResponseType & {
|
|
101
|
+
availableTimeSlots: BookitoTimeSlotDtoType[];
|
|
102
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const bookitoEventQueryKeys: {
|
|
2
|
+
all: readonly ["bookito-events"];
|
|
3
|
+
list: (params: Record<string, unknown>) => readonly ["bookito-events", "list", Record<string, unknown>];
|
|
4
|
+
byId: (params: Record<string, unknown>) => readonly ["bookito-events", "by-id", Record<string, unknown>];
|
|
5
|
+
timeSlots: (params: Record<string, unknown>) => readonly ["bookito-events", "timeslots", Record<string, unknown>];
|
|
6
|
+
categoryTitle: (params: Record<string, unknown>) => readonly ["bookito-events", "category-title", Record<string, unknown>];
|
|
7
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BookitoBookabilityType, BookitoDataSourceType, BookitoEventType, BookitoOccurrenceType, BookitoResolvedOccurrenceType, BookitoTimeBookabilitySettingsType } from '../model/widget.types';
|
|
2
|
+
import { BookitoEventDtoType, BookitoOccurrenceDtoType, BookitoResolvedOccurrenceDtoType, BookitoTimeBookabilitySettingsDtoType } from './bookito-event.dto';
|
|
3
|
+
export { mapPriceVariant } from './bookito-event.mapper-variant.helpers';
|
|
4
|
+
export declare function mapCancellationStatus(dto?: BookitoEventDtoType['cancellationStatus']): BookitoEventType['cancellationStatus'];
|
|
5
|
+
export declare function mapCancelledDates(items?: BookitoEventDtoType['cancelledDates']): BookitoEventType['cancelledDates'];
|
|
6
|
+
export declare function resolveBookability(dto: BookitoEventDtoType): BookitoBookabilityType;
|
|
7
|
+
export declare function resolveIsBookable(dto: BookitoEventDtoType, bookability: BookitoBookabilityType): boolean;
|
|
8
|
+
export declare function resolveDataSource(value?: string | null): BookitoDataSourceType | null;
|
|
9
|
+
export declare function mapTimeBookabilitySettings(dto?: BookitoTimeBookabilitySettingsDtoType | null): BookitoTimeBookabilitySettingsType | null;
|
|
10
|
+
export declare function resolveEventName(dto: BookitoEventDtoType, language: string): string;
|
|
11
|
+
export declare function mapBasePrice(dto: BookitoEventDtoType['basePrice']): {
|
|
12
|
+
amount: number;
|
|
13
|
+
currency: string | null;
|
|
14
|
+
} | null;
|
|
15
|
+
export declare function mapOccurrence(dto: BookitoOccurrenceDtoType): BookitoOccurrenceType | null;
|
|
16
|
+
export declare function mapResolvedOccurrence(dto: BookitoResolvedOccurrenceDtoType): BookitoResolvedOccurrenceType | null;
|
|
17
|
+
export { resolveImageUrl } from './bookito-event.mapper-image.helpers';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BookitoEventType, BookitoTimeSlotType, BookitoEventDatesType } from '../model/widget.types';
|
|
2
|
+
import { BookitoEventDtoType, BookitoTimeSlotDtoType, ListBookitoEventsResponseType } from './bookito-event.dto';
|
|
3
|
+
export { resolveLocalizedText } from '../lib/resolve-localized-text';
|
|
4
|
+
export declare function mapBookitoEvent(dto: BookitoEventDtoType, language?: string): BookitoEventType | null;
|
|
5
|
+
export declare function mapBookitoEventDates(dates: ListBookitoEventsResponseType['dates']): BookitoEventDatesType;
|
|
6
|
+
export declare function mapBookitoTimeSlot(dto: BookitoTimeSlotDtoType): BookitoTimeSlotType | null;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import { BookitoEventType, BookitoEventsListResultType } from '../model/widget.types';
|
|
3
|
+
type ListEventsParamsType = {
|
|
4
|
+
authId: string;
|
|
5
|
+
categoryId?: string;
|
|
6
|
+
excludeNonBookable?: boolean;
|
|
7
|
+
fromDate?: string;
|
|
8
|
+
language?: string;
|
|
9
|
+
toDate?: string;
|
|
10
|
+
};
|
|
11
|
+
type EventByIdParamsType = {
|
|
12
|
+
authId: string;
|
|
13
|
+
eventId: string;
|
|
14
|
+
language?: string;
|
|
15
|
+
toDate?: string;
|
|
16
|
+
};
|
|
17
|
+
export type BookitoEventByIdResultType = {
|
|
18
|
+
availableDates: string[];
|
|
19
|
+
dates: BookitoEventsListResultType['dates'];
|
|
20
|
+
event: BookitoEventType;
|
|
21
|
+
};
|
|
22
|
+
export declare function useBookitoEventsQuery(params: MaybeRefOrGetter<ListEventsParamsType>, enabled?: MaybeRefOrGetter<boolean>): import('@tanstack/vue-query').UseQueryReturnType<BookitoEventsListResultType, Error>;
|
|
23
|
+
export declare function useBookitoEventByIdQuery(params: MaybeRefOrGetter<EventByIdParamsType>, enabled?: MaybeRefOrGetter<boolean>): import('@tanstack/vue-query').UseQueryReturnType<BookitoEventByIdResultType | null, Error>;
|
|
24
|
+
export { useBookitoTimeSlotsQuery } from './bookito-time-slots.queries';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import { BookitoTimeSlotType } from '../model/widget.types';
|
|
3
|
+
type ListTimeSlotsParamsType = {
|
|
4
|
+
authId: string;
|
|
5
|
+
eventId: string;
|
|
6
|
+
onDate: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function useBookitoTimeSlotsQuery(params: MaybeRefOrGetter<ListTimeSlotsParamsType>, enabled?: MaybeRefOrGetter<boolean>): import('@tanstack/vue-query').UseQueryReturnType<BookitoTimeSlotType[], Error>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BookitoWidgetPropsType } from '../../../../features/event-feed/model/widget.types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<BookitoWidgetPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BookitoWidgetPropsType> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
3
|
+
rootElement: HTMLDivElement;
|
|
4
|
+
}, HTMLDivElement>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BookitoEventDatesType, BookitoEventFeedItemType, BookitoEventType, BookitoWidgetViewModeType } from '../model/widget.types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
currency?: string;
|
|
4
|
+
dates?: BookitoEventDatesType;
|
|
5
|
+
events: BookitoEventType[];
|
|
6
|
+
isError?: boolean;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
language: string;
|
|
9
|
+
timezone?: string;
|
|
10
|
+
viewMode: BookitoWidgetViewModeType;
|
|
11
|
+
};
|
|
12
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
select: (item: BookitoEventFeedItemType) => any;
|
|
14
|
+
retry: () => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onSelect?: ((item: BookitoEventFeedItemType) => any) | undefined;
|
|
17
|
+
onRetry?: (() => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
19
|
+
scrollContainer: HTMLDivElement;
|
|
20
|
+
}, HTMLDivElement>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
canScrollNext: boolean;
|
|
3
|
+
canScrollPrev: boolean;
|
|
4
|
+
hasOverflow: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
next: () => any;
|
|
8
|
+
prev: () => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onNext?: (() => any) | undefined;
|
|
11
|
+
onPrev?: (() => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BookitoEventFeedItemType } from '../model/widget.types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
currency?: string;
|
|
4
|
+
item: BookitoEventFeedItemType;
|
|
5
|
+
dateLabel: string;
|
|
6
|
+
language?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
select: (item: BookitoEventFeedItemType) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onSelect?: ((item: BookitoEventFeedItemType) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
13
|
+
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, {}, HTMLAnchorElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ShallowRef } from 'vue';
|
|
2
|
+
export declare function useEventFeedScroll(scrollContainerRef: Readonly<ShallowRef<HTMLElement | null>>): {
|
|
3
|
+
canScrollNext: import('vue').ComputedRef<boolean>;
|
|
4
|
+
canScrollPrev: import('vue').ComputedRef<boolean>;
|
|
5
|
+
hasOverflow: import('vue').ComputedRef<boolean>;
|
|
6
|
+
scrollNext: () => void;
|
|
7
|
+
scrollPrev: () => void;
|
|
8
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BookitoOccurrenceType, BookitoResolvedOccurrenceType } from '../model/widget.types';
|
|
2
|
+
type DateFormatOptionsType = {
|
|
3
|
+
locale?: string;
|
|
4
|
+
timezone?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function formatTimeframeLabel(startDateTime: string, endDateTime: string | null, locale?: string, timezone?: string): string;
|
|
7
|
+
/** Parse `YYYY-MM-DD` as a local calendar day (avoids UTC midnight shift). */
|
|
8
|
+
export declare function parseCalendarDate(dateIso: string): Date;
|
|
9
|
+
export declare function formatDateLabel(dateIso: string, locale?: string, timezone?: string): string;
|
|
10
|
+
export declare function formatLocalDateIso(date?: Date): string;
|
|
11
|
+
/** Copy clock time from `timeSource` onto the calendar day of `onDate` (old applyTimeOfDate). */
|
|
12
|
+
export declare function applyTimeOfDate(onDate: Date, timeSource: Date): Date;
|
|
13
|
+
export declare function formatOccurrenceTimeframeOnDate(dateIso: string, occurrence: BookitoOccurrenceType | undefined, timezone?: string, locale?: string): string;
|
|
14
|
+
export declare function formatResolvedOccurrenceTimeframe(occurrence: Pick<BookitoResolvedOccurrenceType, 'durationMs' | 'startDateTime'>, options?: DateFormatOptionsType): string;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BookitoEventDatesType, BookitoEventFeedItemType, BookitoEventType, BookitoWidgetViewModeType } from '../model/widget.types';
|
|
2
|
+
type BuildEventFeedItemsOptionsType = {
|
|
3
|
+
language?: string;
|
|
4
|
+
timezone?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function resolveEventAvailableDates(eventId: string, dates: BookitoEventDatesType): string[];
|
|
7
|
+
export declare function buildEventFeedItems(events: BookitoEventType[], dates: BookitoEventDatesType, viewMode: BookitoWidgetViewModeType, options?: BuildEventFeedItemsOptionsType): BookitoEventFeedItemType[];
|
|
8
|
+
export declare function buildSingleFeedItem(event: BookitoEventType, date: string, dates: BookitoEventDatesType, options?: BuildEventFeedItemsOptionsType): BookitoEventFeedItemType | null;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BookitoEventType, BookitoResolvedOccurrenceType } from '../model/widget.types';
|
|
2
|
+
type FeedItemFormatOptionsType = {
|
|
3
|
+
language?: string;
|
|
4
|
+
timezone?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function formatFeedItemTimeframe(date: string, resolvedOccurrence: BookitoResolvedOccurrenceType | undefined, fallbackOccurrence: BookitoEventType['occurrences'][number] | undefined, options: FeedItemFormatOptionsType): string;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BookitoEventFeedItemType } from '../model/widget.types';
|
|
2
|
+
export { applyTimeOfDate, formatDateLabel, formatLocalDateIso, formatOccurrenceTimeframeOnDate, formatResolvedOccurrenceTimeframe, formatTimeframeLabel, parseCalendarDate, } from './event-feed-date.utils';
|
|
3
|
+
export { buildEventFeedItems, resolveEventAvailableDates } from './event-feed-item.helpers';
|
|
4
|
+
export declare function formatEventPrice(amount: number, currency: string, language?: string): string;
|
|
5
|
+
export declare function groupFeedItemsByDate(items: BookitoEventFeedItemType[]): {
|
|
6
|
+
date: string;
|
|
7
|
+
items: BookitoEventFeedItemType[];
|
|
8
|
+
}[];
|