@voyant-travel/bookings-react 0.155.2 → 0.156.1
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/dist/admin/booking-contract-dialog.d.ts +0 -1
- package/dist/admin/booking-detail-host.d.ts +0 -1
- package/dist/admin/booking-detail-skeleton.d.ts +0 -1
- package/dist/admin/booking-documents-table.d.ts +0 -1
- package/dist/admin/booking-invoice-sheet.d.ts +0 -1
- package/dist/admin/booking-journey-host.d.ts +0 -1
- package/dist/admin/booking-journey-host.js +5 -5
- package/dist/admin/bookings-host.d.ts +0 -1
- package/dist/admin/bookings-list-skeleton.d.ts +0 -1
- package/dist/admin/index.d.ts +0 -1
- package/dist/admin/journey-billing-duplicate-warning.d.ts +0 -1
- package/dist/admin/journey-departure-picker.d.ts +0 -1
- package/dist/admin/journey-travel-credit-picker.d.ts +2 -0
- package/dist/admin/{journey-voucher-picker.js → journey-travel-credit-picker.js} +19 -19
- package/dist/admin/journey-units-picker.d.ts +0 -1
- package/dist/admin/pages/booking-compose-page.d.ts +0 -1
- package/dist/admin/pages/booking-detail-page.d.ts +0 -1
- package/dist/admin/pages/booking-journey-page.d.ts +0 -1
- package/dist/admin/pages/booking-new-page.d.ts +0 -1
- package/dist/admin/pages/bookings-index-page.d.ts +0 -1
- package/dist/admin/person-bookings-widget.d.ts +0 -1
- package/dist/admin/slots.d.ts +0 -1
- package/dist/admin/use-booking-action-ledger-events.d.ts +0 -1
- package/dist/booking-list-constants.d.ts +0 -1
- package/dist/client.d.ts +0 -1
- package/dist/components/booking-activity-timeline.d.ts +0 -1
- package/dist/components/booking-billing-dialog.d.ts +0 -1
- package/dist/components/booking-cancellation-dialog.d.ts +0 -1
- package/dist/components/booking-combobox.d.ts +0 -1
- package/dist/components/booking-create-form-utils.d.ts +0 -1
- package/dist/components/booking-create-page.d.ts +0 -1
- package/dist/components/booking-create-preview-card.d.ts +0 -1
- package/dist/components/booking-create-product-extras-picker.d.ts +0 -1
- package/dist/components/booking-create-sheet.d.ts +1 -2
- package/dist/components/booking-create-sheet.js +16 -16
- package/dist/components/booking-create-utils.d.ts +0 -1
- package/dist/components/booking-detail-page.d.ts +0 -1
- package/dist/components/booking-dialog.d.ts +0 -1
- package/dist/components/booking-document-dialog.d.ts +0 -1
- package/dist/components/booking-document-list.d.ts +0 -1
- package/dist/components/booking-group-link-dialog.d.ts +0 -1
- package/dist/components/booking-group-section.d.ts +0 -1
- package/dist/components/booking-guarantee-dialog.d.ts +0 -1
- package/dist/components/booking-guarantee-list.d.ts +0 -1
- package/dist/components/booking-item-dialog.d.ts +0 -1
- package/dist/components/booking-item-list.d.ts +0 -1
- package/dist/components/booking-item-travelers.d.ts +0 -1
- package/dist/components/booking-list-filters.d.ts +0 -1
- package/dist/components/booking-list.d.ts +0 -1
- package/dist/components/booking-note-dialog.d.ts +0 -1
- package/dist/components/booking-notes.d.ts +0 -1
- package/dist/components/booking-payment-reconciliation-banner.d.ts +0 -1
- package/dist/components/booking-payment-schedule-dialog.d.ts +0 -1
- package/dist/components/booking-payment-schedule-list.d.ts +0 -1
- package/dist/components/booking-payments-summary.d.ts +3 -4
- package/dist/components/booking-payments-summary.js +2 -2
- package/dist/components/booking-quick-view-sheet.d.ts +0 -1
- package/dist/components/bookings-page.d.ts +0 -1
- package/dist/components/file-dropzone.d.ts +0 -1
- package/dist/components/icon-action-button.d.ts +0 -1
- package/dist/components/option-units-stepper-section.d.ts +0 -1
- package/dist/components/payment-schedule-section.d.ts +0 -1
- package/dist/components/payment-schedule-section.js +1 -1
- package/dist/components/person-picker-section.d.ts +0 -1
- package/dist/components/price-breakdown-section.d.ts +0 -1
- package/dist/components/product-picker-section.d.ts +0 -1
- package/dist/components/shared-room-section.d.ts +0 -1
- package/dist/components/status-badge.d.ts +0 -1
- package/dist/components/status-change-dialog.d.ts +0 -1
- package/dist/components/supplier-status-dialog.d.ts +0 -1
- package/dist/components/supplier-status-list.d.ts +0 -1
- package/dist/components/{voucher-picker-section.d.ts → travel-credit-picker-section.d.ts} +13 -15
- package/dist/components/{voucher-picker-section.js → travel-credit-picker-section.js} +18 -19
- package/dist/components/traveler-category-buttons.d.ts +0 -1
- package/dist/components/traveler-dialog.d.ts +0 -1
- package/dist/components/traveler-list.d.ts +0 -1
- package/dist/components/travelers-section-controls.d.ts +0 -1
- package/dist/components/travelers-section.d.ts +0 -1
- package/dist/extras/client.d.ts +0 -1
- package/dist/extras/components/product-combobox.d.ts +0 -1
- package/dist/extras/components/slot-extras-manifest-panel.d.ts +0 -1
- package/dist/extras/hooks/index.d.ts +0 -1
- package/dist/extras/hooks/use-product-extra.d.ts +0 -1
- package/dist/extras/hooks/use-product-extras.d.ts +0 -1
- package/dist/extras/hooks/use-slot-extra-manifest-mutation.d.ts +0 -1
- package/dist/extras/hooks/use-slot-extra-manifest.d.ts +0 -1
- package/dist/extras/i18n/en.d.ts +0 -1
- package/dist/extras/i18n/index.d.ts +0 -1
- package/dist/extras/i18n/messages.d.ts +0 -1
- package/dist/extras/i18n/provider.d.ts +0 -1
- package/dist/extras/i18n/ro.d.ts +0 -1
- package/dist/extras/index.d.ts +0 -1
- package/dist/extras/provider.d.ts +0 -1
- package/dist/extras/query-keys.d.ts +0 -1
- package/dist/extras/query-options.d.ts +0 -1
- package/dist/extras/schemas.d.ts +0 -1
- package/dist/extras.d.ts +0 -1
- package/dist/hooks/index.d.ts +1 -2
- package/dist/hooks/use-booking-action-ledger.d.ts +0 -1
- package/dist/hooks/use-booking-activity.d.ts +0 -1
- package/dist/hooks/use-booking-cancel-mutation.d.ts +0 -1
- package/dist/hooks/use-booking-contract-generation.d.ts +0 -1
- package/dist/hooks/use-booking-convert-mutation.d.ts +0 -1
- package/dist/hooks/use-booking-create-mutation.d.ts +6 -7
- package/dist/hooks/use-booking-create-mutation.js +3 -3
- package/dist/hooks/use-booking-documents.d.ts +0 -1
- package/dist/hooks/use-booking-dual-create-mutation.d.ts +4 -5
- package/dist/hooks/use-booking-dual-create-mutation.js +2 -2
- package/dist/hooks/use-booking-group-for-booking.d.ts +0 -1
- package/dist/hooks/use-booking-group-member-mutation.d.ts +0 -1
- package/dist/hooks/use-booking-group-mutation.d.ts +0 -1
- package/dist/hooks/use-booking-group.d.ts +0 -1
- package/dist/hooks/use-booking-groups.d.ts +0 -1
- package/dist/hooks/use-booking-item-mutation.d.ts +0 -1
- package/dist/hooks/use-booking-item-travelers.d.ts +0 -1
- package/dist/hooks/use-booking-items.d.ts +0 -1
- package/dist/hooks/use-booking-mutation.d.ts +0 -1
- package/dist/hooks/use-booking-note-mutation.d.ts +0 -1
- package/dist/hooks/use-booking-notes.d.ts +0 -1
- package/dist/hooks/use-booking-primary-product.d.ts +0 -1
- package/dist/hooks/use-booking-status-mutation.d.ts +0 -1
- package/dist/hooks/use-booking-tax-preview.d.ts +0 -1
- package/dist/hooks/use-booking.d.ts +0 -1
- package/dist/hooks/use-bookings.d.ts +0 -1
- package/dist/hooks/use-pricing-preview.d.ts +0 -1
- package/dist/hooks/use-public-booking-session-flow-mutation.d.ts +0 -1
- package/dist/hooks/use-public-booking-session-state.d.ts +0 -1
- package/dist/hooks/use-public-booking-session.d.ts +0 -1
- package/dist/hooks/use-reveal-traveler.d.ts +0 -1
- package/dist/hooks/use-sharing-groups.d.ts +0 -1
- package/dist/hooks/use-supplier-status-mutation.d.ts +0 -1
- package/dist/hooks/use-supplier-statuses.d.ts +0 -1
- package/dist/hooks/use-traveler-mutation.d.ts +0 -1
- package/dist/hooks/use-traveler-with-travel-details-mutation.d.ts +0 -1
- package/dist/hooks/use-travelers.d.ts +0 -1
- package/dist/i18n/en-base.d.ts +0 -1
- package/dist/i18n/en-create-list.d.ts +7 -8
- package/dist/i18n/en-create-list.js +8 -8
- package/dist/i18n/en-journey.d.ts +0 -1
- package/dist/i18n/en-operations.d.ts +0 -1
- package/dist/i18n/en-sections.d.ts +1 -2
- package/dist/i18n/en-sections.js +13 -13
- package/dist/i18n/en.d.ts +8 -9
- package/dist/i18n/index.d.ts +0 -1
- package/dist/i18n/messages-base.d.ts +0 -1
- package/dist/i18n/messages-create-list.d.ts +7 -8
- package/dist/i18n/messages-journey.d.ts +0 -1
- package/dist/i18n/messages-operations.d.ts +0 -1
- package/dist/i18n/messages-sections.d.ts +1 -2
- package/dist/i18n/messages.d.ts +0 -1
- package/dist/i18n/provider.d.ts +16 -17
- package/dist/i18n/ro-base.d.ts +0 -1
- package/dist/i18n/ro-create-list.d.ts +7 -8
- package/dist/i18n/ro-create-list.js +8 -8
- package/dist/i18n/ro-journey.d.ts +0 -1
- package/dist/i18n/ro-operations.d.ts +0 -1
- package/dist/i18n/ro-sections.d.ts +1 -2
- package/dist/i18n/ro-sections.js +13 -13
- package/dist/i18n/ro.d.ts +8 -9
- package/dist/index.d.ts +0 -1
- package/dist/journey/components/booking-journey-rules.d.ts +0 -1
- package/dist/journey/components/booking-journey.d.ts +0 -1
- package/dist/journey/components/booking-journey.js +2 -2
- package/dist/journey/components/configure-step-skeleton.d.ts +0 -1
- package/dist/journey/components/contract-preview-dialog.d.ts +0 -1
- package/dist/journey/components/journey-steps/accommodation-step.d.ts +0 -1
- package/dist/journey/components/journey-steps/addons-step.d.ts +0 -1
- package/dist/journey/components/journey-steps/billing-step.d.ts +0 -1
- package/dist/journey/components/journey-steps/configure-steps.d.ts +0 -1
- package/dist/journey/components/journey-steps/documents-step.d.ts +0 -1
- package/dist/journey/components/journey-steps/payment-step.d.ts +4 -5
- package/dist/journey/components/journey-steps/payment-step.js +25 -25
- package/dist/journey/components/journey-steps/review-step.d.ts +0 -1
- package/dist/journey/components/journey-steps/shared.d.ts +0 -1
- package/dist/journey/components/journey-steps/travelers-step.d.ts +0 -1
- package/dist/journey/components/journey-steps.d.ts +0 -1
- package/dist/journey/components/side-panel.d.ts +1 -2
- package/dist/journey/components/stacked-journey.d.ts +0 -1
- package/dist/journey/components/step-header.d.ts +0 -1
- package/dist/journey/index.d.ts +1 -2
- package/dist/journey/lib/draft-state.d.ts +0 -1
- package/dist/journey/lib/email-validation.d.ts +0 -1
- package/dist/journey/lib/pax-band-dependencies.d.ts +0 -1
- package/dist/journey/lib/payment-schedule.d.ts +0 -1
- package/dist/journey/types.d.ts +10 -11
- package/dist/provider.d.ts +0 -1
- package/dist/query-keys.d.ts +0 -1
- package/dist/query-options.d.ts +0 -1
- package/dist/requirements/client.d.ts +0 -1
- package/dist/requirements/components/booking-requirements-contact-tab.d.ts +0 -1
- package/dist/requirements/components/booking-requirements-questions-tab.d.ts +0 -1
- package/dist/requirements/constants.d.ts +0 -1
- package/dist/requirements/hooks/index.d.ts +0 -1
- package/dist/requirements/hooks/use-booking-questions.d.ts +0 -1
- package/dist/requirements/hooks/use-contact-requirements.d.ts +0 -1
- package/dist/requirements/hooks/use-products.d.ts +0 -1
- package/dist/requirements/hooks/use-question-options.d.ts +0 -1
- package/dist/requirements/hooks/use-transport-requirements.d.ts +0 -1
- package/dist/requirements/i18n/en.d.ts +0 -1
- package/dist/requirements/i18n/index.d.ts +0 -1
- package/dist/requirements/i18n/messages.d.ts +0 -1
- package/dist/requirements/i18n/provider.d.ts +0 -1
- package/dist/requirements/i18n/ro.d.ts +0 -1
- package/dist/requirements/index.d.ts +0 -1
- package/dist/requirements/provider.d.ts +0 -1
- package/dist/requirements/query-keys.d.ts +0 -1
- package/dist/requirements/query-options.d.ts +0 -1
- package/dist/requirements/schemas.d.ts +0 -1
- package/dist/requirements/ui.d.ts +0 -1
- package/dist/requirements/utils.d.ts +0 -1
- package/dist/schemas.d.ts +0 -1
- package/dist/status-presentation.d.ts +0 -1
- package/dist/storefront/index.d.ts +0 -1
- package/dist/storefront/resolve-contract-variables.d.ts +0 -1
- package/dist/storefront/storefront-booking-errors.d.ts +0 -1
- package/dist/storefront/storefront-booking-journey.d.ts +0 -1
- package/dist/storefront/storefront-booking-page.d.ts +0 -1
- package/dist/ui.d.ts +1 -2
- package/dist/ui.js +1 -1
- package/package.json +42 -42
- package/dist/admin/booking-contract-dialog.d.ts.map +0 -1
- package/dist/admin/booking-detail-host.d.ts.map +0 -1
- package/dist/admin/booking-detail-skeleton.d.ts.map +0 -1
- package/dist/admin/booking-documents-table.d.ts.map +0 -1
- package/dist/admin/booking-invoice-sheet.d.ts.map +0 -1
- package/dist/admin/booking-journey-host.d.ts.map +0 -1
- package/dist/admin/bookings-host.d.ts.map +0 -1
- package/dist/admin/bookings-list-skeleton.d.ts.map +0 -1
- package/dist/admin/index.d.ts.map +0 -1
- package/dist/admin/journey-billing-duplicate-warning.d.ts.map +0 -1
- package/dist/admin/journey-departure-picker.d.ts.map +0 -1
- package/dist/admin/journey-units-picker.d.ts.map +0 -1
- package/dist/admin/journey-voucher-picker.d.ts +0 -3
- package/dist/admin/journey-voucher-picker.d.ts.map +0 -1
- package/dist/admin/pages/booking-compose-page.d.ts.map +0 -1
- package/dist/admin/pages/booking-detail-page.d.ts.map +0 -1
- package/dist/admin/pages/booking-journey-page.d.ts.map +0 -1
- package/dist/admin/pages/booking-new-page.d.ts.map +0 -1
- package/dist/admin/pages/bookings-index-page.d.ts.map +0 -1
- package/dist/admin/person-bookings-widget.d.ts.map +0 -1
- package/dist/admin/slots.d.ts.map +0 -1
- package/dist/admin/use-booking-action-ledger-events.d.ts.map +0 -1
- package/dist/booking-list-constants.d.ts.map +0 -1
- package/dist/client.d.ts.map +0 -1
- package/dist/components/booking-activity-timeline.d.ts.map +0 -1
- package/dist/components/booking-billing-dialog.d.ts.map +0 -1
- package/dist/components/booking-cancellation-dialog.d.ts.map +0 -1
- package/dist/components/booking-combobox.d.ts.map +0 -1
- package/dist/components/booking-create-form-utils.d.ts.map +0 -1
- package/dist/components/booking-create-page.d.ts.map +0 -1
- package/dist/components/booking-create-preview-card.d.ts.map +0 -1
- package/dist/components/booking-create-product-extras-picker.d.ts.map +0 -1
- package/dist/components/booking-create-sheet.d.ts.map +0 -1
- package/dist/components/booking-create-utils.d.ts.map +0 -1
- package/dist/components/booking-detail-page.d.ts.map +0 -1
- package/dist/components/booking-dialog.d.ts.map +0 -1
- package/dist/components/booking-document-dialog.d.ts.map +0 -1
- package/dist/components/booking-document-list.d.ts.map +0 -1
- package/dist/components/booking-group-link-dialog.d.ts.map +0 -1
- package/dist/components/booking-group-section.d.ts.map +0 -1
- package/dist/components/booking-guarantee-dialog.d.ts.map +0 -1
- package/dist/components/booking-guarantee-list.d.ts.map +0 -1
- package/dist/components/booking-item-dialog.d.ts.map +0 -1
- package/dist/components/booking-item-list.d.ts.map +0 -1
- package/dist/components/booking-item-travelers.d.ts.map +0 -1
- package/dist/components/booking-list-filters.d.ts.map +0 -1
- package/dist/components/booking-list.d.ts.map +0 -1
- package/dist/components/booking-note-dialog.d.ts.map +0 -1
- package/dist/components/booking-notes.d.ts.map +0 -1
- package/dist/components/booking-payment-reconciliation-banner.d.ts.map +0 -1
- package/dist/components/booking-payment-schedule-dialog.d.ts.map +0 -1
- package/dist/components/booking-payment-schedule-list.d.ts.map +0 -1
- package/dist/components/booking-payments-summary.d.ts.map +0 -1
- package/dist/components/booking-quick-view-sheet.d.ts.map +0 -1
- package/dist/components/bookings-page.d.ts.map +0 -1
- package/dist/components/file-dropzone.d.ts.map +0 -1
- package/dist/components/icon-action-button.d.ts.map +0 -1
- package/dist/components/option-units-stepper-section.d.ts.map +0 -1
- package/dist/components/payment-schedule-section.d.ts.map +0 -1
- package/dist/components/person-picker-section.d.ts.map +0 -1
- package/dist/components/price-breakdown-section.d.ts.map +0 -1
- package/dist/components/product-picker-section.d.ts.map +0 -1
- package/dist/components/shared-room-section.d.ts.map +0 -1
- package/dist/components/status-badge.d.ts.map +0 -1
- package/dist/components/status-change-dialog.d.ts.map +0 -1
- package/dist/components/supplier-status-dialog.d.ts.map +0 -1
- package/dist/components/supplier-status-list.d.ts.map +0 -1
- package/dist/components/traveler-category-buttons.d.ts.map +0 -1
- package/dist/components/traveler-dialog.d.ts.map +0 -1
- package/dist/components/traveler-list.d.ts.map +0 -1
- package/dist/components/travelers-section-controls.d.ts.map +0 -1
- package/dist/components/travelers-section.d.ts.map +0 -1
- package/dist/components/voucher-picker-section.d.ts.map +0 -1
- package/dist/extras/client.d.ts.map +0 -1
- package/dist/extras/components/product-combobox.d.ts.map +0 -1
- package/dist/extras/components/slot-extras-manifest-panel.d.ts.map +0 -1
- package/dist/extras/hooks/index.d.ts.map +0 -1
- package/dist/extras/hooks/use-product-extra.d.ts.map +0 -1
- package/dist/extras/hooks/use-product-extras.d.ts.map +0 -1
- package/dist/extras/hooks/use-slot-extra-manifest-mutation.d.ts.map +0 -1
- package/dist/extras/hooks/use-slot-extra-manifest.d.ts.map +0 -1
- package/dist/extras/i18n/en.d.ts.map +0 -1
- package/dist/extras/i18n/index.d.ts.map +0 -1
- package/dist/extras/i18n/messages.d.ts.map +0 -1
- package/dist/extras/i18n/provider.d.ts.map +0 -1
- package/dist/extras/i18n/ro.d.ts.map +0 -1
- package/dist/extras/index.d.ts.map +0 -1
- package/dist/extras/provider.d.ts.map +0 -1
- package/dist/extras/query-keys.d.ts.map +0 -1
- package/dist/extras/query-options.d.ts.map +0 -1
- package/dist/extras/schemas.d.ts.map +0 -1
- package/dist/extras.d.ts.map +0 -1
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/use-booking-action-ledger.d.ts.map +0 -1
- package/dist/hooks/use-booking-activity.d.ts.map +0 -1
- package/dist/hooks/use-booking-cancel-mutation.d.ts.map +0 -1
- package/dist/hooks/use-booking-contract-generation.d.ts.map +0 -1
- package/dist/hooks/use-booking-convert-mutation.d.ts.map +0 -1
- package/dist/hooks/use-booking-create-mutation.d.ts.map +0 -1
- package/dist/hooks/use-booking-documents.d.ts.map +0 -1
- package/dist/hooks/use-booking-dual-create-mutation.d.ts.map +0 -1
- package/dist/hooks/use-booking-group-for-booking.d.ts.map +0 -1
- package/dist/hooks/use-booking-group-member-mutation.d.ts.map +0 -1
- package/dist/hooks/use-booking-group-mutation.d.ts.map +0 -1
- package/dist/hooks/use-booking-group.d.ts.map +0 -1
- package/dist/hooks/use-booking-groups.d.ts.map +0 -1
- package/dist/hooks/use-booking-item-mutation.d.ts.map +0 -1
- package/dist/hooks/use-booking-item-travelers.d.ts.map +0 -1
- package/dist/hooks/use-booking-items.d.ts.map +0 -1
- package/dist/hooks/use-booking-mutation.d.ts.map +0 -1
- package/dist/hooks/use-booking-note-mutation.d.ts.map +0 -1
- package/dist/hooks/use-booking-notes.d.ts.map +0 -1
- package/dist/hooks/use-booking-primary-product.d.ts.map +0 -1
- package/dist/hooks/use-booking-status-mutation.d.ts.map +0 -1
- package/dist/hooks/use-booking-tax-preview.d.ts.map +0 -1
- package/dist/hooks/use-booking.d.ts.map +0 -1
- package/dist/hooks/use-bookings.d.ts.map +0 -1
- package/dist/hooks/use-pricing-preview.d.ts.map +0 -1
- package/dist/hooks/use-public-booking-session-flow-mutation.d.ts.map +0 -1
- package/dist/hooks/use-public-booking-session-state.d.ts.map +0 -1
- package/dist/hooks/use-public-booking-session.d.ts.map +0 -1
- package/dist/hooks/use-reveal-traveler.d.ts.map +0 -1
- package/dist/hooks/use-sharing-groups.d.ts.map +0 -1
- package/dist/hooks/use-supplier-status-mutation.d.ts.map +0 -1
- package/dist/hooks/use-supplier-statuses.d.ts.map +0 -1
- package/dist/hooks/use-traveler-mutation.d.ts.map +0 -1
- package/dist/hooks/use-traveler-with-travel-details-mutation.d.ts.map +0 -1
- package/dist/hooks/use-travelers.d.ts.map +0 -1
- package/dist/i18n/en-base.d.ts.map +0 -1
- package/dist/i18n/en-create-list.d.ts.map +0 -1
- package/dist/i18n/en-journey.d.ts.map +0 -1
- package/dist/i18n/en-operations.d.ts.map +0 -1
- package/dist/i18n/en-sections.d.ts.map +0 -1
- package/dist/i18n/en.d.ts.map +0 -1
- package/dist/i18n/index.d.ts.map +0 -1
- package/dist/i18n/messages-base.d.ts.map +0 -1
- package/dist/i18n/messages-create-list.d.ts.map +0 -1
- package/dist/i18n/messages-journey.d.ts.map +0 -1
- package/dist/i18n/messages-operations.d.ts.map +0 -1
- package/dist/i18n/messages-sections.d.ts.map +0 -1
- package/dist/i18n/messages.d.ts.map +0 -1
- package/dist/i18n/provider.d.ts.map +0 -1
- package/dist/i18n/ro-base.d.ts.map +0 -1
- package/dist/i18n/ro-create-list.d.ts.map +0 -1
- package/dist/i18n/ro-journey.d.ts.map +0 -1
- package/dist/i18n/ro-operations.d.ts.map +0 -1
- package/dist/i18n/ro-sections.d.ts.map +0 -1
- package/dist/i18n/ro.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/journey/components/booking-journey-rules.d.ts.map +0 -1
- package/dist/journey/components/booking-journey.d.ts.map +0 -1
- package/dist/journey/components/configure-step-skeleton.d.ts.map +0 -1
- package/dist/journey/components/contract-preview-dialog.d.ts.map +0 -1
- package/dist/journey/components/journey-steps/accommodation-step.d.ts.map +0 -1
- package/dist/journey/components/journey-steps/addons-step.d.ts.map +0 -1
- package/dist/journey/components/journey-steps/billing-step.d.ts.map +0 -1
- package/dist/journey/components/journey-steps/configure-steps.d.ts.map +0 -1
- package/dist/journey/components/journey-steps/documents-step.d.ts.map +0 -1
- package/dist/journey/components/journey-steps/payment-step.d.ts.map +0 -1
- package/dist/journey/components/journey-steps/review-step.d.ts.map +0 -1
- package/dist/journey/components/journey-steps/shared.d.ts.map +0 -1
- package/dist/journey/components/journey-steps/travelers-step.d.ts.map +0 -1
- package/dist/journey/components/journey-steps.d.ts.map +0 -1
- package/dist/journey/components/side-panel.d.ts.map +0 -1
- package/dist/journey/components/stacked-journey.d.ts.map +0 -1
- package/dist/journey/components/step-header.d.ts.map +0 -1
- package/dist/journey/index.d.ts.map +0 -1
- package/dist/journey/lib/draft-state.d.ts.map +0 -1
- package/dist/journey/lib/email-validation.d.ts.map +0 -1
- package/dist/journey/lib/pax-band-dependencies.d.ts.map +0 -1
- package/dist/journey/lib/payment-schedule.d.ts.map +0 -1
- package/dist/journey/types.d.ts.map +0 -1
- package/dist/provider.d.ts.map +0 -1
- package/dist/query-keys.d.ts.map +0 -1
- package/dist/query-options.d.ts.map +0 -1
- package/dist/requirements/client.d.ts.map +0 -1
- package/dist/requirements/components/booking-requirements-contact-tab.d.ts.map +0 -1
- package/dist/requirements/components/booking-requirements-questions-tab.d.ts.map +0 -1
- package/dist/requirements/constants.d.ts.map +0 -1
- package/dist/requirements/hooks/index.d.ts.map +0 -1
- package/dist/requirements/hooks/use-booking-questions.d.ts.map +0 -1
- package/dist/requirements/hooks/use-contact-requirements.d.ts.map +0 -1
- package/dist/requirements/hooks/use-products.d.ts.map +0 -1
- package/dist/requirements/hooks/use-question-options.d.ts.map +0 -1
- package/dist/requirements/hooks/use-transport-requirements.d.ts.map +0 -1
- package/dist/requirements/i18n/en.d.ts.map +0 -1
- package/dist/requirements/i18n/index.d.ts.map +0 -1
- package/dist/requirements/i18n/messages.d.ts.map +0 -1
- package/dist/requirements/i18n/provider.d.ts.map +0 -1
- package/dist/requirements/i18n/ro.d.ts.map +0 -1
- package/dist/requirements/index.d.ts.map +0 -1
- package/dist/requirements/provider.d.ts.map +0 -1
- package/dist/requirements/query-keys.d.ts.map +0 -1
- package/dist/requirements/query-options.d.ts.map +0 -1
- package/dist/requirements/schemas.d.ts.map +0 -1
- package/dist/requirements/ui.d.ts.map +0 -1
- package/dist/requirements/utils.d.ts.map +0 -1
- package/dist/schemas.d.ts.map +0 -1
- package/dist/status-presentation.d.ts.map +0 -1
- package/dist/storefront/index.d.ts.map +0 -1
- package/dist/storefront/resolve-contract-variables.d.ts.map +0 -1
- package/dist/storefront/storefront-booking-errors.d.ts.map +0 -1
- package/dist/storefront/storefront-booking-journey.d.ts.map +0 -1
- package/dist/storefront/storefront-booking-page.d.ts.map +0 -1
- package/dist/ui.d.ts.map +0 -1
|
@@ -199,7 +199,7 @@ export function PaymentScheduleSection({ value, onChange, totalAmountCents, depa
|
|
|
199
199
|
const paymentMethodLabels = messages.bookingPaymentsSummary.paymentMethodLabels;
|
|
200
200
|
const renderPaidFields = (idx, installment) => {
|
|
201
201
|
const checkboxId = `payment-schedule-installment-${idx}-already-paid`;
|
|
202
|
-
return (_jsxs("div", { className: "flex flex-col gap-2 rounded-md border border-dashed p-2", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Checkbox, { id: checkboxId, checked: installment.alreadyPaid, onCheckedChange: (next) => updateInstallment(idx, { alreadyPaid: next === true }) }), _jsx(Label, { htmlFor: checkboxId, className: "cursor-pointer text-xs", children: merged.alreadyPaid })] }), installment.alreadyPaid ? (_jsxs("div", { className: "grid gap-2 sm:grid-cols-3", children: [_jsxs("div", { className: "flex flex-col gap-1", children: [_jsx(Label, { className: "text-xs", children: merged.paymentDate }), _jsx(DatePicker, { value: installment.paymentDate ?? "", onChange: (nextValue) => updateInstallment(idx, { paymentDate: nextValue }) })] }), _jsxs("div", { className: "flex flex-col gap-1", children: [_jsx(Label, { className: "text-xs", children: merged.paymentMethod }), _jsxs(Select, { value: installment.paymentMethod, onValueChange: (nextValue) => updateInstallment(idx, { paymentMethod: nextValue ?? "bank_transfer" }), children: [_jsx(SelectTrigger, { children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: ["bank_transfer", "credit_card", "cash", "
|
|
202
|
+
return (_jsxs("div", { className: "flex flex-col gap-2 rounded-md border border-dashed p-2", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Checkbox, { id: checkboxId, checked: installment.alreadyPaid, onCheckedChange: (next) => updateInstallment(idx, { alreadyPaid: next === true }) }), _jsx(Label, { htmlFor: checkboxId, className: "cursor-pointer text-xs", children: merged.alreadyPaid })] }), installment.alreadyPaid ? (_jsxs("div", { className: "grid gap-2 sm:grid-cols-3", children: [_jsxs("div", { className: "flex flex-col gap-1", children: [_jsx(Label, { className: "text-xs", children: merged.paymentDate }), _jsx(DatePicker, { value: installment.paymentDate ?? "", onChange: (nextValue) => updateInstallment(idx, { paymentDate: nextValue }) })] }), _jsxs("div", { className: "flex flex-col gap-1", children: [_jsx(Label, { className: "text-xs", children: merged.paymentMethod }), _jsxs(Select, { value: installment.paymentMethod, onValueChange: (nextValue) => updateInstallment(idx, { paymentMethod: nextValue ?? "bank_transfer" }), children: [_jsx(SelectTrigger, { children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: ["bank_transfer", "credit_card", "cash", "travel_credit", "other"].map((method) => (_jsx(SelectItem, { value: method, children: paymentMethodLabels[method === "credit_card" ? "card" : method] }, method))) })] })] }), _jsxs("div", { className: "flex flex-col gap-1", children: [_jsx(Label, { className: "text-xs", children: merged.paymentReference }), _jsx(Input, { value: installment.paymentReference, onChange: (event) => updateInstallment(idx, { paymentReference: event.target.value }) })] })] })) : null] }));
|
|
203
203
|
};
|
|
204
204
|
const fullInstallment = value.installments[0] ?? createInstallment({ dueDate: todayIso() });
|
|
205
205
|
return (_jsxs("div", { className: "flex flex-col gap-3 rounded-md border p-3", children: [_jsx(Label, { children: merged.heading }), _jsxs("div", { className: "grid gap-2 rounded-md bg-muted/40 p-2 text-xs sm:grid-cols-3", children: [_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground", children: merged.totalDue }), _jsx("span", { className: "font-medium tabular-nums", children: formatAmount(total) })] }), _jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground", children: merged.scheduledTotal }), _jsx("span", { className: "font-medium tabular-nums", children: formatAmount(scheduledTotal) })] }), _jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground", children: merged.remaining }), _jsx("span", { className: "font-medium tabular-nums", children: formatAmount(remaining) })] })] }), _jsx("div", { className: "flex flex-wrap items-center gap-2", children: modes.map((mode) => (_jsx(Button, { type: "button", size: "sm", variant: value.mode === mode.id ? "default" : "ghost", onClick: () => switchMode(mode.id), children: mode.label }, mode.id))) }), value.mode === "full" && (_jsxs("div", { className: "flex flex-col gap-2", children: [_jsxs("div", { className: "flex flex-col gap-1", children: [_jsx(Label, { className: "text-xs", children: merged.dueDate }), _jsx(DatePicker, { value: fullInstallment.dueDate ?? "", onChange: (nextValue) => updateInstallment(0, { dueDate: nextValue }) })] }), renderPaidFields(0, fullInstallment)] })), value.mode === "split" && (_jsxs("div", { className: "flex flex-col gap-3", children: [value.installments.map((installment, idx) => (_jsxs("div", { className: "flex flex-col gap-2", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("span", { className: "text-xs font-medium", children: merged.firstInstallment.replace(/\b1\b|first|primul|1st/i, String(idx + 1)) }), value.installments.length > 2 ? (_jsx(Button, { type: "button", variant: "ghost", size: "icon-sm", "aria-label": merged.removeInstallment, onClick: () => removeInstallment(idx), children: _jsx(X, { className: "h-3.5 w-3.5" }) })) : null] }), _jsxs("div", { className: "grid grid-cols-2 gap-2", children: [_jsx(CurrencyInput, { placeholder: merged.amount, value: installment.amountCents, onChange: (next) => updateInstallment(idx, { amountCents: next }), currency: currency }), _jsx(DatePicker, { value: installment.dueDate ?? "", onChange: (nextValue) => updateInstallment(idx, { dueDate: nextValue }) })] }), renderPaidFields(idx, installment)] }, installment.id))), _jsxs(Button, { type: "button", variant: "outline", size: "sm", onClick: addInstallment, className: "self-start", children: [_jsx(Plus, { className: "mr-1 h-3.5 w-3.5" }), merged.addInstallment] })] }))] }));
|
|
@@ -69,4 +69,3 @@ export interface PersonPickerSectionProps {
|
|
|
69
69
|
* select the newly-created person or organization after save.
|
|
70
70
|
*/
|
|
71
71
|
export declare function PersonPickerSection({ value, onChange, enabled, showOrganization, hideTargetToggle, labels, }: PersonPickerSectionProps): React.JSX.Element;
|
|
72
|
-
//# sourceMappingURL=person-picker-section.d.ts.map
|
|
@@ -81,4 +81,3 @@ export declare function createUnitPriceLookup<TUnitPrice extends UnitPriceLookup
|
|
|
81
81
|
*/
|
|
82
82
|
export declare function PriceBreakdownSection({ productId, optionId, unitQuantities, unitLabels, pricingCategoryQuantities, pricingCategoryLabels, catalogId, labels, onChange, flat, }: PriceBreakdownSectionProps): React.JSX.Element | null;
|
|
83
83
|
export {};
|
|
84
|
-
//# sourceMappingURL=price-breakdown-section.d.ts.map
|
|
@@ -27,4 +27,3 @@ export interface ProductPickerSectionProps {
|
|
|
27
27
|
* without reimplementing the cascade logic, or keep this one and swap labels.
|
|
28
28
|
*/
|
|
29
29
|
export declare function ProductPickerSection({ value, onChange, enabled, lockProduct, showOptionPicker, labels, }: ProductPickerSectionProps): React.JSX.Element;
|
|
30
|
-
//# sourceMappingURL=product-picker-section.d.ts.map
|
|
@@ -38,4 +38,3 @@ export interface SharedRoomSectionProps {
|
|
|
38
38
|
* a sheet or join an existing product-scoped group with an async combobox.
|
|
39
39
|
*/
|
|
40
40
|
export declare function SharedRoomSection({ value, onChange, productId, enabled, labels, }: SharedRoomSectionProps): React.JSX.Element;
|
|
41
|
-
//# sourceMappingURL=shared-room-section.d.ts.map
|
|
@@ -7,4 +7,3 @@ export interface StatusChangeDialogProps {
|
|
|
7
7
|
onSuccess?: () => void;
|
|
8
8
|
}
|
|
9
9
|
export declare function StatusChangeDialog({ open, onOpenChange, bookingId, currentStatus, onSuccess, }: StatusChangeDialogProps): import("react").JSX.Element;
|
|
10
|
-
//# sourceMappingURL=status-change-dialog.d.ts.map
|
|
@@ -7,4 +7,3 @@ export interface SupplierStatusDialogProps {
|
|
|
7
7
|
onSuccess?: () => void;
|
|
8
8
|
}
|
|
9
9
|
export declare function SupplierStatusDialog({ open, onOpenChange, bookingId, supplierStatus, onSuccess, }: SupplierStatusDialogProps): import("react").JSX.Element;
|
|
10
|
-
//# sourceMappingURL=supplier-status-dialog.d.ts.map
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
/** Details of a successfully
|
|
2
|
-
export interface
|
|
1
|
+
/** Details of a successfully validated Travel Credit. */
|
|
2
|
+
export interface PickedTravelCredit {
|
|
3
3
|
id: string;
|
|
4
4
|
code: string;
|
|
5
|
-
label: string | null;
|
|
6
5
|
currency: string | null;
|
|
7
6
|
remainingAmountCents: number | null;
|
|
8
7
|
expiresAt: string | null;
|
|
9
8
|
}
|
|
10
|
-
export interface
|
|
9
|
+
export interface TravelCreditPickerValue {
|
|
11
10
|
/** Code typed by the operator. Not cleared on failure so they can correct a typo. */
|
|
12
11
|
code: string;
|
|
13
12
|
/** Populated only when the last validate call succeeded. */
|
|
14
|
-
picked:
|
|
13
|
+
picked: PickedTravelCredit | null;
|
|
15
14
|
/** Reason returned by the server when validate fails, or a client-side message. */
|
|
16
15
|
error: string | null;
|
|
17
16
|
}
|
|
18
|
-
export declare const
|
|
19
|
-
export interface
|
|
20
|
-
value:
|
|
21
|
-
onChange: (value:
|
|
17
|
+
export declare const emptyTravelCreditPickerValue: TravelCreditPickerValue;
|
|
18
|
+
export interface TravelCreditPickerSectionProps {
|
|
19
|
+
value: TravelCreditPickerValue;
|
|
20
|
+
onChange: (value: TravelCreditPickerValue) => void;
|
|
22
21
|
/**
|
|
23
|
-
* Context for the validate call
|
|
22
|
+
* Context for the validate call. When provided, the server rejects Travel Credits
|
|
24
23
|
* locked to a different booking / mismatched currency / insufficient balance.
|
|
25
24
|
*/
|
|
26
25
|
bookingId?: string;
|
|
@@ -36,15 +35,14 @@ export interface VoucherPickerSectionProps {
|
|
|
36
35
|
};
|
|
37
36
|
}
|
|
38
37
|
/**
|
|
39
|
-
*
|
|
40
|
-
* Apply, and the server-side `/v1/public/
|
|
38
|
+
* Travel Credit picker for booking-create flows. The operator enters a code, clicks
|
|
39
|
+
* Apply, and the server-side `/v1/public/finance/travel-credits/validate` runs all the
|
|
41
40
|
* usual guards (status, expiry, currency, booking-assignment, balance).
|
|
42
41
|
*
|
|
43
42
|
* The section only *validates* — it doesn't redeem. Redemption happens when
|
|
44
|
-
* the parent calls `POST /v1/admin/finance/
|
|
43
|
+
* the parent calls `POST /v1/admin/finance/travel-credits/:id/redeem` at submit time,
|
|
45
44
|
* after the booking exists and the final amount is known. Validate being
|
|
46
45
|
* idempotent means the operator can try a code, correct a typo, and try
|
|
47
46
|
* again without leaving a trail.
|
|
48
47
|
*/
|
|
49
|
-
export declare function
|
|
50
|
-
//# sourceMappingURL=voucher-picker-section.d.ts.map
|
|
48
|
+
export declare function TravelCreditPickerSection({ value, onChange, bookingId, currency, amountCents, labels, }: TravelCreditPickerSectionProps): import("react").JSX.Element;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { usePublicTravelCreditValidationMutation } from "@voyant-travel/finance-react";
|
|
4
4
|
import { Button, Input, Label } from "@voyant-travel/ui/components";
|
|
5
5
|
import { CheckCircle2, Loader2, XCircle } from "lucide-react";
|
|
6
6
|
import { useBookingsUiI18nOrDefault, useBookingsUiMessagesOrDefault } from "../i18n/provider.js";
|
|
7
|
-
export const
|
|
7
|
+
export const emptyTravelCreditPickerValue = {
|
|
8
8
|
code: "",
|
|
9
9
|
picked: null,
|
|
10
10
|
error: null,
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
* Apply, and the server-side `/v1/public/
|
|
13
|
+
* Travel Credit picker for booking-create flows. The operator enters a code, clicks
|
|
14
|
+
* Apply, and the server-side `/v1/public/finance/travel-credits/validate` runs all the
|
|
15
15
|
* usual guards (status, expiry, currency, booking-assignment, balance).
|
|
16
16
|
*
|
|
17
17
|
* The section only *validates* — it doesn't redeem. Redemption happens when
|
|
18
|
-
* the parent calls `POST /v1/admin/finance/
|
|
18
|
+
* the parent calls `POST /v1/admin/finance/travel-credits/:id/redeem` at submit time,
|
|
19
19
|
* after the booking exists and the final amount is known. Validate being
|
|
20
20
|
* idempotent means the operator can try a code, correct a typo, and try
|
|
21
21
|
* again without leaving a trail.
|
|
22
22
|
*/
|
|
23
|
-
export function
|
|
23
|
+
export function TravelCreditPickerSection({ value, onChange, bookingId, currency, amountCents, labels, }) {
|
|
24
24
|
const { formatCurrency } = useBookingsUiI18nOrDefault();
|
|
25
25
|
const messages = useBookingsUiMessagesOrDefault();
|
|
26
|
-
const merged = { ...messages.
|
|
27
|
-
const validate =
|
|
26
|
+
const merged = { ...messages.travelCreditPickerSection.labels, ...labels };
|
|
27
|
+
const validate = usePublicTravelCreditValidationMutation();
|
|
28
28
|
const handleApply = async () => {
|
|
29
29
|
const code = value.code.trim();
|
|
30
30
|
if (!code)
|
|
@@ -36,16 +36,15 @@ export function VoucherPickerSection({ value, onChange, bookingId, currency, amo
|
|
|
36
36
|
currency: currency ?? undefined,
|
|
37
37
|
amountCents: amountCents ?? undefined,
|
|
38
38
|
});
|
|
39
|
-
if (data.valid && data.
|
|
39
|
+
if (data.valid && data.travelCredit) {
|
|
40
40
|
onChange({
|
|
41
41
|
code,
|
|
42
42
|
picked: {
|
|
43
|
-
id: data.
|
|
44
|
-
code: data.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
expiresAt: data.voucher.expiresAt,
|
|
43
|
+
id: data.travelCredit.id,
|
|
44
|
+
code: data.travelCredit.code,
|
|
45
|
+
currency: data.travelCredit.currency,
|
|
46
|
+
remainingAmountCents: data.travelCredit.remainingAmountCents,
|
|
47
|
+
expiresAt: data.travelCredit.expiresAt,
|
|
49
48
|
},
|
|
50
49
|
error: null,
|
|
51
50
|
});
|
|
@@ -54,7 +53,7 @@ export function VoucherPickerSection({ value, onChange, bookingId, currency, amo
|
|
|
54
53
|
onChange({
|
|
55
54
|
code,
|
|
56
55
|
picked: null,
|
|
57
|
-
error: messages.
|
|
56
|
+
error: messages.travelCreditPickerSection.reasonMessages[data.reason] ?? messages.travelCreditPickerSection.validation.invalid,
|
|
58
57
|
});
|
|
59
58
|
}
|
|
60
59
|
catch (err) {
|
|
@@ -63,17 +62,17 @@ export function VoucherPickerSection({ value, onChange, bookingId, currency, amo
|
|
|
63
62
|
picked: null,
|
|
64
63
|
error: err instanceof Error
|
|
65
64
|
? err.message
|
|
66
|
-
: messages.
|
|
65
|
+
: messages.travelCreditPickerSection.validation.lookupFailed,
|
|
67
66
|
});
|
|
68
67
|
}
|
|
69
68
|
};
|
|
70
|
-
const handleClear = () => onChange(
|
|
69
|
+
const handleClear = () => onChange(emptyTravelCreditPickerValue);
|
|
71
70
|
return (_jsxs("div", { className: "flex flex-col gap-2 rounded-md border p-3", children: [_jsx(Label, { children: merged.heading }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Input, { value: value.code, onChange: (e) => onChange({ ...value, code: e.target.value, error: null }), onKeyDown: (e) => {
|
|
72
71
|
if (e.key === "Enter") {
|
|
73
72
|
e.preventDefault();
|
|
74
73
|
void handleApply();
|
|
75
74
|
}
|
|
76
75
|
}, placeholder: merged.codePlaceholder, disabled: validate.isPending || Boolean(value.picked) }), value.picked ? (_jsx(Button, { type: "button", variant: "ghost", size: "sm", onClick: handleClear, children: merged.clear })) : (_jsxs(Button, { type: "button", size: "sm", onClick: () => void handleApply(), disabled: validate.isPending || !value.code.trim(), children: [validate.isPending && _jsx(Loader2, { className: "mr-1 h-3.5 w-3.5 animate-spin" }), merged.apply] }))] }), value.picked && (_jsxs("div", { className: "flex items-center gap-2 text-sm", children: [_jsx(CheckCircle2, { className: "h-4 w-4 text-emerald-600" }), _jsxs("span", { children: [merged.remainingLabel, " ", _jsx("strong", { children: value.picked.remainingAmountCents == null || !value.picked.currency
|
|
77
|
-
? messages.
|
|
76
|
+
? messages.travelCreditPickerSection.validation.amountUnavailable
|
|
78
77
|
: formatCurrency(value.picked.remainingAmountCents / 100, value.picked.currency) })] })] })), value.error && (_jsxs("div", { className: "flex items-start gap-2 text-sm text-destructive", children: [_jsx(XCircle, { className: "mt-0.5 h-4 w-4" }), _jsxs("span", { children: [merged.invalidLabel, " ", value.error] })] }))] }));
|
|
79
78
|
}
|
|
@@ -157,4 +157,3 @@ export interface TravelersSectionProps {
|
|
|
157
157
|
* the submit handler errors if the invariant isn't met.
|
|
158
158
|
*/
|
|
159
159
|
export declare function TravelersSection({ value, onChange, roomUnits, roomGroups, pricingCategories, billingPersonId, labels, }: TravelersSectionProps): React.JSX.Element;
|
|
160
|
-
//# sourceMappingURL=travelers-section.d.ts.map
|
package/dist/extras/client.d.ts
CHANGED
|
@@ -11,4 +11,3 @@ export interface FetchWithValidationOptions {
|
|
|
11
11
|
fetcher: VoyantFetcher;
|
|
12
12
|
}
|
|
13
13
|
export declare function fetchWithValidation<TOut>(path: string, schema: z.ZodType<TOut>, options: FetchWithValidationOptions, init?: RequestInit): Promise<TOut>;
|
|
14
|
-
//# sourceMappingURL=client.d.ts.map
|
package/dist/extras/i18n/en.d.ts
CHANGED
|
@@ -2,4 +2,3 @@ export { extrasUiEn } from "./en.js";
|
|
|
2
2
|
export type { ExtrasUiMessages, ProductBookingMode, ProductStatus } from "./messages.js";
|
|
3
3
|
export { type ExtrasUiMessageOverrides, ExtrasUiMessagesProvider, extrasUiMessageDefinitions, getExtrasUiI18n, resolveExtrasUiMessages, useExtrasUiI18n, useExtrasUiI18nOrDefault, useExtrasUiMessages, useExtrasUiMessagesOrDefault, } from "./provider.js";
|
|
4
4
|
export { extrasUiRo } from "./ro.js";
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -123,4 +123,3 @@ export declare const useExtrasUiI18n: () => PackageI18nValue<ExtrasUiMessages>;
|
|
|
123
123
|
export declare const useExtrasUiMessages: () => ExtrasUiMessages;
|
|
124
124
|
export declare function useExtrasUiI18nOrDefault(): PackageI18nValue<ExtrasUiMessages>;
|
|
125
125
|
export declare function useExtrasUiMessagesOrDefault(): ExtrasUiMessages;
|
|
126
|
-
//# sourceMappingURL=provider.d.ts.map
|
package/dist/extras/i18n/ro.d.ts
CHANGED
package/dist/extras/index.d.ts
CHANGED
|
@@ -4,4 +4,3 @@ export { useVoyantExtrasContext, type VoyantExtrasContextValue, VoyantExtrasProv
|
|
|
4
4
|
export { extrasQueryKeys, type ProductExtrasListFilters } from "./query-keys.js";
|
|
5
5
|
export { getProductExtraQueryOptions, getProductExtrasQueryOptions, getSlotExtraManifestQueryOptions, } from "./query-options.js";
|
|
6
6
|
export * from "./schemas.js";
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
export { useVoyantReactContext as useVoyantExtrasContext, type VoyantReactContextValue as VoyantExtrasContextValue, VoyantReactProvider as VoyantExtrasProvider, type VoyantReactProviderProps as VoyantExtrasProviderProps, } from "@voyant-travel/react";
|
|
2
|
-
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -13,4 +13,3 @@ export declare const extrasQueryKeys: {
|
|
|
13
13
|
readonly slotManifests: () => readonly ["voyant", "extras", "slot-manifests"];
|
|
14
14
|
readonly slotManifest: (slotId: string) => readonly ["voyant", "extras", "slot-manifests", string];
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=query-keys.d.ts.map
|
package/dist/extras/schemas.d.ts
CHANGED
|
@@ -409,4 +409,3 @@ export declare const slotExtraManifestMutationResponse: z.ZodObject<{
|
|
|
409
409
|
export type SlotExtraManifest = z.infer<typeof slotExtraManifestSchema>;
|
|
410
410
|
export type SlotExtraManifestTraveler = z.infer<typeof slotExtraManifestTravelerSchema>;
|
|
411
411
|
export type SlotExtraManifestSelection = z.infer<typeof slotExtraManifestSelectionSchema>;
|
|
412
|
-
//# sourceMappingURL=schemas.d.ts.map
|
package/dist/extras.d.ts
CHANGED
|
@@ -7,4 +7,3 @@ export { useVoyantExtrasContext as useVoyantBookingsExtrasContext, type VoyantEx
|
|
|
7
7
|
export { extrasQueryKeys as bookingsExtrasQueryKeys, type ProductExtrasListFilters, } from "./extras/query-keys.js";
|
|
8
8
|
export { getProductExtraQueryOptions, getProductExtrasQueryOptions, getSlotExtraManifestQueryOptions, } from "./extras/query-options.js";
|
|
9
9
|
export { type ProductExtraRecord, productExtraListResponse, productExtraRecordSchema, type SlotExtraManifest, type SlotExtraManifestSelection, type SlotExtraManifestTraveler, slotExtraManifestMutationResponse, slotExtraManifestResponse, slotExtraManifestSchema, } from "./extras/schemas.js";
|
|
10
|
-
//# sourceMappingURL=extras.d.ts.map
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { type UseBookingActivityOptions, useBookingActivity } from "./use-bookin
|
|
|
4
4
|
export { type CancelBookingInput, useBookingCancelMutation, } from "./use-booking-cancel-mutation.js";
|
|
5
5
|
export { type GenerateBookingContractInput, useBookingContractGenerationMutation, } from "./use-booking-contract-generation.js";
|
|
6
6
|
export { type ConvertProductToBookingInput, useBookingConvertMutation, } from "./use-booking-convert-mutation.js";
|
|
7
|
-
export { type BookingCreateExtraLineInput, type BookingCreateGroupMembershipInput, type BookingCreateInput, type BookingCreateItemLineInput, type BookingCreatePaymentScheduleInput, type BookingCreateResult, type
|
|
7
|
+
export { type BookingCreateExtraLineInput, type BookingCreateGroupMembershipInput, type BookingCreateInput, type BookingCreateItemLineInput, type BookingCreatePaymentScheduleInput, type BookingCreateResult, type BookingCreateTravelCreditRedemptionInput, type BookingCreateTravelerInput, useBookingCreateMutation, } from "./use-booking-create-mutation.js";
|
|
8
8
|
export { type CreateBookingTravelerDocumentInput, type UseBookingTravelerDocumentsOptions, useBookingTravelerDocumentMutation, useBookingTravelerDocuments, } from "./use-booking-documents.js";
|
|
9
9
|
export { type DualCreateBookingInput, type DualCreateBookingResult, type DualCreateGroupInput, type DualCreateSubBookingInput, useBookingDualCreateMutation, } from "./use-booking-dual-create-mutation.js";
|
|
10
10
|
export { type UseBookingGroupOptions, useBookingGroup } from "./use-booking-group.js";
|
|
@@ -33,4 +33,3 @@ export { type UseSupplierStatusesOptions, useSupplierStatuses } from "./use-supp
|
|
|
33
33
|
export { type CreateTravelerInput, type UpdateTravelerInput, useTravelerMutation, } from "./use-traveler-mutation.js";
|
|
34
34
|
export { type CreateTravelerWithTravelDetailsInput, type UpdateTravelerWithTravelDetailsInput, useTravelerWithTravelDetailsMutation, } from "./use-traveler-with-travel-details-mutation.js";
|
|
35
35
|
export { type UseTravelersOptions, useTravelers } from "./use-travelers.js";
|
|
36
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -96,8 +96,8 @@ export interface BookingCreateExtraLineInput {
|
|
|
96
96
|
*/
|
|
97
97
|
travelerIndexes?: number[] | null;
|
|
98
98
|
}
|
|
99
|
-
export interface
|
|
100
|
-
|
|
99
|
+
export interface BookingCreateTravelCreditRedemptionInput {
|
|
100
|
+
travelCreditId: string;
|
|
101
101
|
amountCents: number;
|
|
102
102
|
}
|
|
103
103
|
export type BookingCreateGroupMembershipInput = {
|
|
@@ -126,7 +126,7 @@ export interface BookingCreateInput {
|
|
|
126
126
|
extraLines?: BookingCreateExtraLineInput[];
|
|
127
127
|
travelers?: BookingCreateTravelerInput[];
|
|
128
128
|
paymentSchedules?: BookingCreatePaymentScheduleInput[];
|
|
129
|
-
|
|
129
|
+
travelCreditRedemption?: BookingCreateTravelCreditRedemptionInput;
|
|
130
130
|
groupMembership?: BookingCreateGroupMembershipInput;
|
|
131
131
|
documentGeneration?: BookingCreateDocumentGenerationInput;
|
|
132
132
|
/**
|
|
@@ -249,7 +249,7 @@ declare const bookingCreateResultSchema: z.ZodObject<{
|
|
|
249
249
|
}, z.core.$strip>;
|
|
250
250
|
travelers: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
251
251
|
paymentSchedules: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
252
|
-
|
|
252
|
+
travelCreditRedemption: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
253
253
|
groupMembership: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
254
254
|
invoice: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
255
255
|
invoiceDocument: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -258,7 +258,7 @@ declare const bookingCreateResultSchema: z.ZodObject<{
|
|
|
258
258
|
export type BookingCreateResult = z.infer<typeof bookingCreateResultSchema>;
|
|
259
259
|
/**
|
|
260
260
|
* Atomic booking-create: calls `POST /v1/admin/bookings/create` which wraps
|
|
261
|
-
* convert-from-product + travelers + payment schedules +
|
|
261
|
+
* convert-from-product + travelers + payment schedules + Travel Credit redemption
|
|
262
262
|
* + group membership in one transaction. Prefer this over chaining the
|
|
263
263
|
* separate create mutations (convert, group, traveler) from a single submit
|
|
264
264
|
* handler — a mid-chain failure there leaves orphan state.
|
|
@@ -327,11 +327,10 @@ export declare function useBookingCreateMutation(): import("@tanstack/react-quer
|
|
|
327
327
|
};
|
|
328
328
|
travelers?: unknown[] | undefined;
|
|
329
329
|
paymentSchedules?: unknown[] | undefined;
|
|
330
|
-
|
|
330
|
+
travelCreditRedemption?: unknown;
|
|
331
331
|
groupMembership?: unknown;
|
|
332
332
|
invoice?: unknown;
|
|
333
333
|
invoiceDocument?: unknown;
|
|
334
334
|
payments?: unknown[] | undefined;
|
|
335
335
|
}, Error, BookingCreateInput, unknown>;
|
|
336
336
|
export {};
|
|
337
|
-
//# sourceMappingURL=use-booking-create-mutation.d.ts.map
|
|
@@ -5,7 +5,7 @@ import { fetchWithValidation } from "../client.js";
|
|
|
5
5
|
import { useVoyantBookingsContext } from "../provider.js";
|
|
6
6
|
import { bookingsQueryKeys } from "../query-keys.js";
|
|
7
7
|
import { bookingRecordSchema } from "../schemas.js";
|
|
8
|
-
// Response envelope: route returns `{ data: { booking, travelers, paymentSchedules,
|
|
8
|
+
// Response envelope: route returns `{ data: { booking, travelers, paymentSchedules, travelCreditRedemption, groupMembership } }`.
|
|
9
9
|
// We validate only the booking shape (which drives cache invalidation) and
|
|
10
10
|
// pass the rest through as-is so the surface can evolve without breaking
|
|
11
11
|
// clients. Callers who want typed assertions on the extras can narrow on the
|
|
@@ -14,7 +14,7 @@ const bookingCreateResultSchema = z.object({
|
|
|
14
14
|
booking: bookingRecordSchema,
|
|
15
15
|
travelers: z.array(z.unknown()).optional(),
|
|
16
16
|
paymentSchedules: z.array(z.unknown()).optional(),
|
|
17
|
-
|
|
17
|
+
travelCreditRedemption: z.unknown().nullable().optional(),
|
|
18
18
|
groupMembership: z.unknown().nullable().optional(),
|
|
19
19
|
invoice: z.unknown().nullable().optional(),
|
|
20
20
|
invoiceDocument: z.unknown().optional(),
|
|
@@ -23,7 +23,7 @@ const bookingCreateResultSchema = z.object({
|
|
|
23
23
|
const bookingCreateResponseSchema = z.object({ data: bookingCreateResultSchema });
|
|
24
24
|
/**
|
|
25
25
|
* Atomic booking-create: calls `POST /v1/admin/bookings/create` which wraps
|
|
26
|
-
* convert-from-product + travelers + payment schedules +
|
|
26
|
+
* convert-from-product + travelers + payment schedules + Travel Credit redemption
|
|
27
27
|
* + group membership in one transaction. Prefer this over chaining the
|
|
28
28
|
* separate create mutations (convert, group, traveler) from a single submit
|
|
29
29
|
* handler — a mid-chain failure there leaves orphan state.
|
|
@@ -101,7 +101,7 @@ declare const dualCreateResultSchema: z.ZodObject<{
|
|
|
101
101
|
}, z.core.$strip>;
|
|
102
102
|
travelers: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
103
103
|
paymentSchedules: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
104
|
-
|
|
104
|
+
travelCreditRedemption: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
105
105
|
}, z.core.$strip>;
|
|
106
106
|
secondary: z.ZodObject<{
|
|
107
107
|
booking: z.ZodObject<{
|
|
@@ -183,7 +183,7 @@ declare const dualCreateResultSchema: z.ZodObject<{
|
|
|
183
183
|
}, z.core.$strip>;
|
|
184
184
|
travelers: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
185
185
|
paymentSchedules: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
186
|
-
|
|
186
|
+
travelCreditRedemption: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
187
187
|
}, z.core.$strip>;
|
|
188
188
|
group: z.ZodUnknown;
|
|
189
189
|
primaryMember: z.ZodUnknown;
|
|
@@ -262,7 +262,7 @@ export declare function useBookingDualCreateMutation(): import("@tanstack/react-
|
|
|
262
262
|
};
|
|
263
263
|
travelers?: unknown[] | undefined;
|
|
264
264
|
paymentSchedules?: unknown[] | undefined;
|
|
265
|
-
|
|
265
|
+
travelCreditRedemption?: unknown;
|
|
266
266
|
};
|
|
267
267
|
secondary: {
|
|
268
268
|
booking: {
|
|
@@ -328,11 +328,10 @@ export declare function useBookingDualCreateMutation(): import("@tanstack/react-
|
|
|
328
328
|
};
|
|
329
329
|
travelers?: unknown[] | undefined;
|
|
330
330
|
paymentSchedules?: unknown[] | undefined;
|
|
331
|
-
|
|
331
|
+
travelCreditRedemption?: unknown;
|
|
332
332
|
};
|
|
333
333
|
group: unknown;
|
|
334
334
|
primaryMember: unknown;
|
|
335
335
|
secondaryMember: unknown;
|
|
336
336
|
}, Error, DualCreateBookingInput, unknown>;
|
|
337
337
|
export {};
|
|
338
|
-
//# sourceMappingURL=use-booking-dual-create-mutation.d.ts.map
|
|
@@ -10,13 +10,13 @@ const dualCreateResultSchema = z.object({
|
|
|
10
10
|
booking: bookingRecordSchema,
|
|
11
11
|
travelers: z.array(z.unknown()).optional(),
|
|
12
12
|
paymentSchedules: z.array(z.unknown()).optional(),
|
|
13
|
-
|
|
13
|
+
travelCreditRedemption: z.unknown().nullable().optional(),
|
|
14
14
|
}),
|
|
15
15
|
secondary: z.object({
|
|
16
16
|
booking: bookingRecordSchema,
|
|
17
17
|
travelers: z.array(z.unknown()).optional(),
|
|
18
18
|
paymentSchedules: z.array(z.unknown()).optional(),
|
|
19
|
-
|
|
19
|
+
travelCreditRedemption: z.unknown().nullable().optional(),
|
|
20
20
|
}),
|
|
21
21
|
group: z.unknown(),
|
|
22
22
|
primaryMember: z.unknown(),
|