@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
|
@@ -19,4 +19,3 @@ export interface BookingContractDialogProps {
|
|
|
19
19
|
* attaches the uploaded file via the legal attachment upload route.
|
|
20
20
|
*/
|
|
21
21
|
export declare function BookingContractDialog({ open, onOpenChange, bookingId, bookingNumber, onSuccess, }: BookingContractDialogProps): import("react").JSX.Element;
|
|
22
|
-
//# sourceMappingURL=booking-contract-dialog.d.ts.map
|
|
@@ -100,4 +100,3 @@ export interface BookingDetailHostProps {
|
|
|
100
100
|
* {@link BookingDetailHostSlots}.
|
|
101
101
|
*/
|
|
102
102
|
export declare function BookingDetailHost({ id, activeTab, onTabChange, onRecordPayment, onEditPayment, onGenerateLink, slots, }: BookingDetailHostProps): import("react").JSX.Element;
|
|
103
|
-
//# sourceMappingURL=booking-detail-host.d.ts.map
|
|
@@ -15,4 +15,3 @@ export interface BookingInvoiceSheetProps {
|
|
|
15
15
|
* from the shell's finance provider context — no app env import.
|
|
16
16
|
*/
|
|
17
17
|
export declare function BookingInvoiceSheet({ invoiceId, onOpenInvoice }: BookingInvoiceSheetProps): import("react").JSX.Element;
|
|
18
|
-
//# sourceMappingURL=booking-invoice-sheet.d.ts.map
|
|
@@ -21,4 +21,3 @@ export interface BookingJourneyHostProps {
|
|
|
21
21
|
className?: string;
|
|
22
22
|
}
|
|
23
23
|
export declare function BookingJourneyHost({ entityModule, entityId, sourceKind, sourceConnectionId, sourceRef, departureId, departureDate, optionId, roomTypeId, ratePlanId, board, entityName, entityImageUrl, draftId, className, }: BookingJourneyHostProps): React.ReactElement;
|
|
24
|
-
//# sourceMappingURL=booking-journey-host.d.ts.map
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
/**
|
|
4
4
|
* Packaged admin host for the unified `<BookingJourney />` wizard —
|
|
5
5
|
* supplies CRM-backed contact pickers, the B2B billing default, real
|
|
6
|
-
* departure/units/
|
|
6
|
+
* departure/units/Travel Credit pickers over operator inventory, and post-commit
|
|
7
7
|
* navigation to the new booking's detail page.
|
|
8
8
|
*
|
|
9
9
|
* Per booking-journey-architecture §8.1 + §10 Phase B, packaged per the
|
|
@@ -23,8 +23,8 @@ import { BookingJourney, } from "../journey/index.js";
|
|
|
23
23
|
import { useVoyantBookingsContext } from "../provider.js";
|
|
24
24
|
import { JourneyBillingDuplicateWarning } from "./journey-billing-duplicate-warning.js";
|
|
25
25
|
import { JourneyDeparturePicker } from "./journey-departure-picker.js";
|
|
26
|
+
import { JourneyTravelCreditPicker } from "./journey-travel-credit-picker.js";
|
|
26
27
|
import { JourneyUnitsPicker } from "./journey-units-picker.js";
|
|
27
|
-
import { JourneyVoucherPicker } from "./journey-voucher-picker.js";
|
|
28
28
|
/** The catalog browse surface the journey returns to when cancelled. */
|
|
29
29
|
function journeyReturnSurface(vertical) {
|
|
30
30
|
switch (vertical) {
|
|
@@ -60,9 +60,9 @@ export function BookingJourneyHost({ entityModule, entityId, sourceKind, sourceC
|
|
|
60
60
|
// Rooms/units for the picked option + departure (operator inventory).
|
|
61
61
|
return _jsx(JourneyUnitsPicker, { ...pickerProps });
|
|
62
62
|
},
|
|
63
|
-
|
|
64
|
-
// Admin searches
|
|
65
|
-
return _jsx(
|
|
63
|
+
renderTravelCreditPicker(pickerProps) {
|
|
64
|
+
// Admin searches and selects a Travel Credit without needing to know the code.
|
|
65
|
+
return _jsx(JourneyTravelCreditPicker, { ...pickerProps });
|
|
66
66
|
},
|
|
67
67
|
renderTravelerContactPicker({ apply, selectedPersonId }) {
|
|
68
68
|
// Travelers reuse the same picker (person-only). Adapt the picker's
|
|
@@ -23,4 +23,3 @@ export interface BookingsHostProps {
|
|
|
23
23
|
* `bookingsSearchToFilters`/`bookingsFiltersToSearch` helpers).
|
|
24
24
|
*/
|
|
25
25
|
export declare function BookingsHost({ initialFilters, onFiltersChange, headerActions, }: BookingsHostProps): import("react").JSX.Element;
|
|
26
|
-
//# sourceMappingURL=bookings-host.d.ts.map
|
package/dist/admin/index.d.ts
CHANGED
|
@@ -249,4 +249,3 @@ export interface CreateBookingsAdminExtensionOptions {
|
|
|
249
249
|
*/
|
|
250
250
|
export declare function createBookingsAdminExtension(options?: CreateBookingsAdminExtensionOptions): AdminExtension;
|
|
251
251
|
export declare function createSelectedBookingsAdminExtension({ navMessages, }: SelectedAdminExtensionFactoryContext): AdminExtension;
|
|
252
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import type { BillingExtrasContext } from "../journey/index.js";
|
|
2
2
|
export declare function JourneyBillingDuplicateWarning({ buyerType, personId, organizationId, productId, departureSlotId, }: BillingExtrasContext): React.ReactElement | null;
|
|
3
|
-
//# sourceMappingURL=journey-billing-duplicate-warning.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
/**
|
|
4
|
-
* Admin
|
|
5
|
-
* Staff search by code and pick a
|
|
4
|
+
* Admin Travel Credit picker: an async combobox over the admin Travel Credit list.
|
|
5
|
+
* Staff search by code and pick a Travel Credit (the full remaining balance is
|
|
6
6
|
* redeemed); they never need to know the exact code, unlike storefront
|
|
7
|
-
* customers. Wired into `<BookingJourneyHost />` via `
|
|
7
|
+
* customers. Wired into `<BookingJourneyHost />` via `renderTravelCreditPicker`.
|
|
8
8
|
*/
|
|
9
9
|
import { useOperatorAdminMessages } from "@voyant-travel/admin";
|
|
10
|
-
import {
|
|
10
|
+
import { useTravelCredits } from "@voyant-travel/finance-react";
|
|
11
11
|
import { Combobox, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxList, } from "@voyant-travel/ui/components/combobox";
|
|
12
12
|
import { Label } from "@voyant-travel/ui/components/label";
|
|
13
13
|
import { useEffect, useState } from "react";
|
|
@@ -19,32 +19,32 @@ function formatMoney(cents, currency) {
|
|
|
19
19
|
return `${(cents / 100).toFixed(2)} ${currency}`;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
return `${
|
|
22
|
+
function travelCreditLabel(travelCredit) {
|
|
23
|
+
return `${travelCredit.code} · ${formatMoney(travelCredit.remainingAmountCents, travelCredit.currency)}`;
|
|
24
24
|
}
|
|
25
|
-
export function
|
|
25
|
+
export function JourneyTravelCreditPicker({ value, onApply, }) {
|
|
26
26
|
const t = useOperatorAdminMessages().bookings.detail.bookingJourney;
|
|
27
27
|
const [inputValue, setInputValue] = useState("");
|
|
28
28
|
const [search, setSearch] = useState("");
|
|
29
|
-
// Active
|
|
30
|
-
const query =
|
|
29
|
+
// Active Travel Credits with a remaining balance, filtered by the typed code.
|
|
30
|
+
const query = useTravelCredits({
|
|
31
31
|
status: "active",
|
|
32
32
|
hasBalance: true,
|
|
33
33
|
search: search || undefined,
|
|
34
34
|
limit: 20,
|
|
35
35
|
});
|
|
36
|
-
const
|
|
37
|
-
const byId = new Map(
|
|
38
|
-
const selectedId = value.
|
|
39
|
-
// Reflect a pre-selected
|
|
36
|
+
const travelCredits = query.data?.data ?? [];
|
|
37
|
+
const byId = new Map(travelCredits.map((travelCredit) => [travelCredit.id, travelCredit]));
|
|
38
|
+
const selectedId = value.travelCreditId ?? null;
|
|
39
|
+
// Reflect a pre-selected Travel Credit's label once its record loads.
|
|
40
40
|
useEffect(() => {
|
|
41
41
|
if (selectedId && byId.has(selectedId)) {
|
|
42
|
-
setInputValue(
|
|
42
|
+
setInputValue(travelCreditLabel(byId.get(selectedId)));
|
|
43
43
|
}
|
|
44
44
|
}, [selectedId, byId]);
|
|
45
|
-
return (_jsxs("div", { className: "space-y-1", children: [_jsx(Label, { children: t.
|
|
45
|
+
return (_jsxs("div", { className: "space-y-1", children: [_jsx(Label, { children: t.travelCreditPickerLabel }), _jsxs(Combobox, { items: travelCredits.map((travelCredit) => travelCredit.id), value: selectedId, inputValue: inputValue, autoHighlight: true, itemToStringLabel: (id) => {
|
|
46
46
|
const v = byId.get(id);
|
|
47
|
-
return v ?
|
|
47
|
+
return v ? travelCreditLabel(v) : id;
|
|
48
48
|
}, itemToStringValue: (id) => id, onInputValueChange: (next) => {
|
|
49
49
|
setInputValue(next);
|
|
50
50
|
setSearch(next);
|
|
@@ -59,10 +59,10 @@ export function JourneyVoucherPicker({ value, onApply }) {
|
|
|
59
59
|
}
|
|
60
60
|
const v = byId.get(id);
|
|
61
61
|
if (v) {
|
|
62
|
-
onApply({
|
|
63
|
-
setInputValue(
|
|
62
|
+
onApply({ travelCreditId: v.id, amountCents: v.remainingAmountCents });
|
|
63
|
+
setInputValue(travelCreditLabel(v));
|
|
64
64
|
}
|
|
65
|
-
}, children: [_jsx(ComboboxInput, { placeholder: t.
|
|
65
|
+
}, children: [_jsx(ComboboxInput, { placeholder: t.travelCreditSearchPlaceholder, showClear: !!selectedId }), _jsxs(ComboboxContent, { children: [_jsx(ComboboxEmpty, { children: t.travelCreditEmpty }), _jsx(ComboboxList, { children: _jsx(ComboboxCollection, { children: (id) => {
|
|
66
66
|
const v = byId.get(id);
|
|
67
67
|
if (!v)
|
|
68
68
|
return null;
|
|
@@ -8,4 +8,3 @@ import type { UnitsPickerProps } from "../journey/index.js";
|
|
|
8
8
|
* Wired into `<BookingJourneyHost />` via the `renderUnitsPicker` slot.
|
|
9
9
|
*/
|
|
10
10
|
export declare function JourneyUnitsPicker({ productId, optionId, slotId, selections, onChange, }: UnitsPickerProps): React.ReactElement;
|
|
11
|
-
//# sourceMappingURL=journey-units-picker.d.ts.map
|
|
@@ -6,4 +6,3 @@ import type { BookingDetailPageComponentProps } from "../index.js";
|
|
|
6
6
|
* this route page.
|
|
7
7
|
*/
|
|
8
8
|
export default function BookingDetailDefaultPage({ id, activeTab, onTabChange, }: BookingDetailPageComponentProps): import("react").JSX.Element;
|
|
9
|
-
//# sourceMappingURL=booking-detail-page.d.ts.map
|
|
@@ -10,4 +10,3 @@ export type PersonBookingsWidgetProps = PersonDetailBookingsTabContext;
|
|
|
10
10
|
* semantic `booking.detail` destination.
|
|
11
11
|
*/
|
|
12
12
|
export declare function PersonBookingsWidget({ personId }: PersonBookingsWidgetProps): import("react").JSX.Element;
|
|
13
|
-
//# sourceMappingURL=person-bookings-widget.d.ts.map
|
package/dist/admin/slots.d.ts
CHANGED
|
@@ -35,4 +35,3 @@ export declare const bookingsListHeaderActionsSlot = "bookings.list.header-actio
|
|
|
35
35
|
* callbacks without replacing the package-owned booking detail route.
|
|
36
36
|
*/
|
|
37
37
|
export declare const bookingDetailPaymentControllerSlot = "booking.details.payment-controller";
|
|
38
|
-
//# sourceMappingURL=slots.d.ts.map
|
package/dist/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
|
|
@@ -13,4 +13,3 @@ export interface BookingBillingDialogProps {
|
|
|
13
13
|
* this is the dialog they reach for.
|
|
14
14
|
*/
|
|
15
15
|
export declare function BookingBillingDialog({ open, onOpenChange, booking, onSuccess, }: BookingBillingDialogProps): import("react").JSX.Element;
|
|
16
|
-
//# sourceMappingURL=booking-billing-dialog.d.ts.map
|
|
@@ -24,4 +24,3 @@ export interface BookingCancellationDialogProps {
|
|
|
24
24
|
onSuccess?: () => void;
|
|
25
25
|
}
|
|
26
26
|
export declare function BookingCancellationDialog({ open, onOpenChange, booking, paidAmountCents, hasRecordedPayment, productId, onSuccess, }: BookingCancellationDialogProps): React.JSX.Element;
|
|
27
|
-
//# sourceMappingURL=booking-cancellation-dialog.d.ts.map
|
|
@@ -11,4 +11,3 @@ export interface BookingComboboxProps {
|
|
|
11
11
|
limit?: number;
|
|
12
12
|
}
|
|
13
13
|
export declare function BookingCombobox({ value, onChange, placeholder, emptyText, disabled, className, triggerClassName, clearable, limit, }: BookingComboboxProps): React.JSX.Element;
|
|
14
|
-
//# sourceMappingURL=booking-combobox.d.ts.map
|
|
@@ -54,4 +54,3 @@ export declare function formatPayloadResolverMismatchError(body: {
|
|
|
54
54
|
mismatches: PayloadResolverMismatch[];
|
|
55
55
|
}, unitLabels: Record<string, string>, validationMessages: BookingsUiMessages["bookingCreateDialog"]["validation"]): string;
|
|
56
56
|
export {};
|
|
57
|
-
//# sourceMappingURL=booking-create-form-utils.d.ts.map
|
|
@@ -11,4 +11,3 @@ export interface BookingCreatePageProps {
|
|
|
11
11
|
* Full-page booking create surface for route-based booking creation.
|
|
12
12
|
*/
|
|
13
13
|
export declare function BookingCreatePage({ onCreated, onCancel, defaultProductId, defaultSlotId, }: BookingCreatePageProps): import("react").JSX.Element;
|
|
14
|
-
//# sourceMappingURL=booking-create-page.d.ts.map
|
|
@@ -22,7 +22,7 @@ export interface BookingCreateFormProps {
|
|
|
22
22
|
/**
|
|
23
23
|
* Operator booking-create sheet. Composes the booking-create picker
|
|
24
24
|
* sections — product, departure, rooms, person, shared-room, travelers,
|
|
25
|
-
* price breakdown,
|
|
25
|
+
* price breakdown, Travel Credit, payment schedule, and submits via the atomic
|
|
26
26
|
* `POST /v1/admin/bookings/create` endpoint so partial failures can't
|
|
27
27
|
* leave orphan state.
|
|
28
28
|
*
|
|
@@ -32,4 +32,3 @@ export interface BookingCreateFormProps {
|
|
|
32
32
|
*/
|
|
33
33
|
export declare function BookingCreateSheet({ open, onOpenChange, onCreated, defaultProductId, defaultSlotId, }: BookingCreateSheetProps): React.JSX.Element;
|
|
34
34
|
export declare function BookingCreateForm({ onCreated, defaultProductId, defaultSlotId, enabled, onCancel, }: BookingCreateFormProps): React.JSX.Element;
|
|
35
|
-
//# sourceMappingURL=booking-create-sheet.d.ts.map
|
|
@@ -23,12 +23,12 @@ import { emptyPaymentScheduleValue, PaymentScheduleSection, } from "./payment-sc
|
|
|
23
23
|
import { emptyPersonPickerValue, PersonPickerSection, } from "./person-picker-section.js";
|
|
24
24
|
import { ProductPickerSection } from "./product-picker-section.js";
|
|
25
25
|
import { emptySharedRoomValue, SharedRoomSection, } from "./shared-room-section.js";
|
|
26
|
+
import { emptyTravelCreditPickerValue, TravelCreditPickerSection, } from "./travel-credit-picker-section.js";
|
|
26
27
|
import { emptyTravelerListValue, TravelersSection, } from "./travelers-section.js";
|
|
27
|
-
import { emptyVoucherPickerValue, VoucherPickerSection, } from "./voucher-picker-section.js";
|
|
28
28
|
/**
|
|
29
29
|
* Operator booking-create sheet. Composes the booking-create picker
|
|
30
30
|
* sections — product, departure, rooms, person, shared-room, travelers,
|
|
31
|
-
* price breakdown,
|
|
31
|
+
* price breakdown, Travel Credit, payment schedule, and submits via the atomic
|
|
32
32
|
* `POST /v1/admin/bookings/create` endpoint so partial failures can't
|
|
33
33
|
* leave orphan state.
|
|
34
34
|
*
|
|
@@ -55,7 +55,7 @@ export function BookingCreateForm({ onCreated, defaultProductId, defaultSlotId,
|
|
|
55
55
|
const [person, setPerson] = React.useState(emptyPersonPickerValue);
|
|
56
56
|
const [sharedRoom, setSharedRoom] = React.useState(emptySharedRoomValue);
|
|
57
57
|
const [travelers, setTravelers] = React.useState(emptyTravelerListValue);
|
|
58
|
-
const [
|
|
58
|
+
const [travelCredit, setTravelCredit] = React.useState(emptyTravelCreditPickerValue);
|
|
59
59
|
const [pricing, setPricing] = React.useState(null);
|
|
60
60
|
const [paymentSchedule, setPaymentScheduleState] = React.useState(emptyPaymentScheduleValue);
|
|
61
61
|
// Tracks whether the operator has manually touched the schedule. The
|
|
@@ -115,7 +115,7 @@ export function BookingCreateForm({ onCreated, defaultProductId, defaultSlotId,
|
|
|
115
115
|
setPerson(emptyPersonPickerValue);
|
|
116
116
|
setSharedRoom(emptySharedRoomValue);
|
|
117
117
|
setTravelers(emptyTravelerListValue);
|
|
118
|
-
|
|
118
|
+
setTravelCredit(emptyTravelCreditPickerValue);
|
|
119
119
|
setPricing(null);
|
|
120
120
|
setPaymentScheduleState(emptyPaymentScheduleValue);
|
|
121
121
|
paymentScheduleTouchedRef.current = false;
|
|
@@ -417,7 +417,7 @@ export function BookingCreateForm({ onCreated, defaultProductId, defaultSlotId,
|
|
|
417
417
|
extraLines,
|
|
418
418
|
travelerCount: travelers.travelers.length,
|
|
419
419
|
}), [extraLines, travelers.travelers.length]);
|
|
420
|
-
// Currency placeholder
|
|
420
|
+
// Currency placeholder used for Travel Credit and payment schedule display.
|
|
421
421
|
// Consumers hooking in real product data should override this by wrapping
|
|
422
422
|
// the component or swapping in their own currency-aware hook.
|
|
423
423
|
const currency = messages.bookingCreateDialog.labels.currency;
|
|
@@ -599,10 +599,10 @@ export function BookingCreateForm({ onCreated, defaultProductId, defaultSlotId,
|
|
|
599
599
|
travelerKeys: travelerKeys.length === redistributed.travelers.length ? travelerKeys : undefined,
|
|
600
600
|
});
|
|
601
601
|
const travelerRows = travelersToRows({ travelers: redistributed.travelers });
|
|
602
|
-
const
|
|
602
|
+
const travelCreditRedemption = travelCredit.picked && travelCredit.picked.remainingAmountCents != null
|
|
603
603
|
? {
|
|
604
|
-
|
|
605
|
-
amountCents:
|
|
604
|
+
travelCreditId: travelCredit.picked.id,
|
|
605
|
+
amountCents: travelCredit.picked.remainingAmountCents,
|
|
606
606
|
}
|
|
607
607
|
: undefined;
|
|
608
608
|
const selectedSharedRoomUnitId = getSelectedSharedRoomUnitId(rooms.quantities);
|
|
@@ -682,7 +682,7 @@ export function BookingCreateForm({ onCreated, defaultProductId, defaultSlotId,
|
|
|
682
682
|
extraLines: resolvedExtraLines.length > 0 ? resolvedExtraLines : undefined,
|
|
683
683
|
travelers: travelerRows.length > 0 ? travelerRows : undefined,
|
|
684
684
|
paymentSchedules: paymentSchedules.length > 0 ? paymentSchedules : undefined,
|
|
685
|
-
|
|
685
|
+
travelCreditRedemption,
|
|
686
686
|
groupMembership,
|
|
687
687
|
documentGeneration: generateProforma
|
|
688
688
|
? { contractDocument: false, invoiceDocument: true, invoiceType: "proforma" }
|
|
@@ -785,13 +785,13 @@ export function BookingCreateForm({ onCreated, defaultProductId, defaultSlotId,
|
|
|
785
785
|
: messages.bookingCreateDialog.actions.createAwaitingPaymentBooking] })] })] }), _jsxs("div", { className: "flex flex-col gap-4 lg:col-span-4", children: [_jsx(BookingPreviewCard, { productId: product.productId, optionId: product.optionId, slotId: slotId, slotLabel: (() => {
|
|
786
786
|
const slot = slots.find((s) => s.id === slotId);
|
|
787
787
|
return slot ? formatSlotLabel(slot) : null;
|
|
788
|
-
})(), unitQuantities: displayQuantities, unitLabels: roomUnitLabels, pricingCategoryQuantities: travelerPricingCategoryQuantities, pricingCategoryLabels: travelerPricingCategoryLabels, extraLines: displayExtraLines, travelers: travelers.travelers, messages: messages, onPricingChange: setPricing }), product.productId && slotId ? (_jsx(
|
|
789
|
-
heading: messages.bookingCreateDialog.labels.
|
|
790
|
-
codePlaceholder: messages.bookingCreateDialog.labels.
|
|
791
|
-
apply: messages.bookingCreateDialog.labels.
|
|
792
|
-
clear: messages.bookingCreateDialog.labels.
|
|
793
|
-
remainingLabel: messages.bookingCreateDialog.labels.
|
|
794
|
-
invalidLabel: messages.bookingCreateDialog.labels.
|
|
788
|
+
})(), unitQuantities: displayQuantities, unitLabels: roomUnitLabels, pricingCategoryQuantities: travelerPricingCategoryQuantities, pricingCategoryLabels: travelerPricingCategoryLabels, extraLines: displayExtraLines, travelers: travelers.travelers, messages: messages, onPricingChange: setPricing }), product.productId && slotId ? (_jsx(TravelCreditPickerSection, { value: travelCredit, onChange: setTravelCredit, currency: currency, labels: {
|
|
789
|
+
heading: messages.bookingCreateDialog.labels.travelCreditHeading,
|
|
790
|
+
codePlaceholder: messages.bookingCreateDialog.labels.travelCreditCodePlaceholder,
|
|
791
|
+
apply: messages.bookingCreateDialog.labels.travelCreditApply,
|
|
792
|
+
clear: messages.bookingCreateDialog.labels.travelCreditClear,
|
|
793
|
+
remainingLabel: messages.bookingCreateDialog.labels.travelCreditRemainingLabel,
|
|
794
|
+
invalidLabel: messages.bookingCreateDialog.labels.travelCreditInvalidLabel,
|
|
795
795
|
} })) : null, product.productId && slotId ? (_jsx(PaymentScheduleSection, { value: paymentSchedule, onChange: setPaymentSchedule, currency: pricingCurrency, totalAmountCents: pricingTotalAmountCents, departureDate: selectedSlot?.startsAt?.slice(0, 10) ?? null, labels: {
|
|
796
796
|
heading: messages.bookingCreateDialog.labels.paymentHeading,
|
|
797
797
|
modeUnpaid: messages.bookingCreateDialog.labels.paymentModeUnpaid,
|
|
@@ -63,4 +63,3 @@ export declare function getBookableDepartureSlots<TSlot extends DepartureSlotSea
|
|
|
63
63
|
export declare function itemLinesToRows(quantities: Record<string, number>, units: BookingCreateUnitLineRecord[], pricing: BookingCreatePricingRecord | null, travelerIndexesByUnitId?: Record<string, number[]>, travelerKeysByUnitId?: Record<string, string[]>, travelerIndexesByUnitAndCategoryId?: Record<string, Record<string, number[]>>, travelerKeysByUnitAndCategoryId?: Record<string, Record<string, string[]>>): BookingCreateItemLineInput[];
|
|
64
64
|
export declare function getSelectedSharedRoomUnitId(quantities: Record<string, number>): string | null;
|
|
65
65
|
export {};
|
|
66
|
-
//# sourceMappingURL=booking-create-utils.d.ts.map
|
|
@@ -129,4 +129,3 @@ export declare function BookingBillingContextCard({ booking, onPersonOpen, onOrg
|
|
|
129
129
|
/** Open the linked CRM organization's detail page. */
|
|
130
130
|
onOrganizationOpen?: (organizationId: string) => void;
|
|
131
131
|
}): import("react").JSX.Element;
|
|
132
|
-
//# sourceMappingURL=booking-detail-page.d.ts.map
|
|
@@ -25,4 +25,3 @@ export interface BookingDialogProps {
|
|
|
25
25
|
* the existing row's metadata (status, amounts, dates, notes).
|
|
26
26
|
*/
|
|
27
27
|
export declare function BookingDialog({ open, onOpenChange, booking, onSuccess, defaultProductId, defaultSlotId, }: BookingDialogProps): import("react").JSX.Element;
|
|
28
|
-
//# sourceMappingURL=booking-dialog.d.ts.map
|
|
@@ -5,4 +5,3 @@ export interface BookingDocumentDialogProps {
|
|
|
5
5
|
onSuccess?: () => void;
|
|
6
6
|
}
|
|
7
7
|
export declare function BookingDocumentDialog({ open, onOpenChange, bookingId, onSuccess, }: BookingDocumentDialogProps): import("react").JSX.Element;
|
|
8
|
-
//# sourceMappingURL=booking-document-dialog.d.ts.map
|
|
@@ -8,4 +8,3 @@ export interface BookingGroupLinkDialogProps {
|
|
|
8
8
|
onLinked?: (groupId: string) => void;
|
|
9
9
|
}
|
|
10
10
|
export declare function BookingGroupLinkDialog({ open, onOpenChange, bookingId, productId, optionUnitId, onLinked, }: BookingGroupLinkDialogProps): React.JSX.Element;
|
|
11
|
-
//# sourceMappingURL=booking-group-link-dialog.d.ts.map
|
|
@@ -25,4 +25,3 @@ export interface BookingGroupSectionProps {
|
|
|
25
25
|
hideWithoutAccommodation?: boolean;
|
|
26
26
|
}
|
|
27
27
|
export declare function BookingGroupSection({ bookingId, productId, optionUnitId, hideWithoutAccommodation, }: BookingGroupSectionProps): React.JSX.Element | null;
|
|
28
|
-
//# sourceMappingURL=booking-group-section.d.ts.map
|
|
@@ -7,4 +7,3 @@ export interface BookingGuaranteeDialogProps {
|
|
|
7
7
|
onSuccess?: () => void;
|
|
8
8
|
}
|
|
9
9
|
export declare function BookingGuaranteeDialog({ open, onOpenChange, bookingId, guarantee, onSuccess, }: BookingGuaranteeDialogProps): import("react").JSX.Element;
|
|
10
|
-
//# sourceMappingURL=booking-guarantee-dialog.d.ts.map
|
|
@@ -11,4 +11,3 @@ export interface BookingItemListProps {
|
|
|
11
11
|
onResourceOpen?: (kind: BookingItemResourceKind, id: string) => void;
|
|
12
12
|
}
|
|
13
13
|
export declare function BookingItemList({ bookingId, readOnly, onResourceOpen, }: BookingItemListProps): React.JSX.Element;
|
|
14
|
-
//# sourceMappingURL=booking-item-list.d.ts.map
|
|
@@ -42,4 +42,3 @@ export interface BookingListFiltersPopoverProps {
|
|
|
42
42
|
onClearFilters: () => void;
|
|
43
43
|
}
|
|
44
44
|
export declare function BookingListFiltersPopover({ open, onOpenChange, activeFilterCount, status, onStatusChange, productId, onProductIdChange, optionId, onOptionIdChange, availabilitySlotId, onAvailabilitySlotIdChange, supplierId, onSupplierIdChange, productCategoryId, onProductCategoryIdChange, personId, onPersonIdChange, organizationId, onOrganizationIdChange, dateRange, onDateRangeChange, paxMin, onPaxMinChange, paxMax, onPaxMaxChange, onFiltersChanged, hasActiveFilters, onClearFilters, }: BookingListFiltersPopoverProps): React.JSX.Element;
|
|
45
|
-
//# sourceMappingURL=booking-list-filters.d.ts.map
|
|
@@ -47,4 +47,3 @@ export interface BookingListProps {
|
|
|
47
47
|
onFiltersChange?: (filters: BookingListFiltersState) => void;
|
|
48
48
|
}
|
|
49
49
|
export declare function BookingList({ pageSize, onSelectBooking, onCreateBooking, headerActions, initialFilters, onFiltersChange, }?: BookingListProps): React.JSX.Element;
|
|
50
|
-
//# sourceMappingURL=booking-list.d.ts.map
|
|
@@ -14,4 +14,3 @@ export interface BookingNoteDialogProps {
|
|
|
14
14
|
* the booking-detail surface.
|
|
15
15
|
*/
|
|
16
16
|
export declare function BookingNoteDialog({ open, onOpenChange, bookingId, note, onSuccess, }: BookingNoteDialogProps): React.JSX.Element;
|
|
17
|
-
//# sourceMappingURL=booking-note-dialog.d.ts.map
|
|
@@ -2,4 +2,3 @@ export interface BookingPaymentReconciliationBannerProps {
|
|
|
2
2
|
bookingId: string;
|
|
3
3
|
}
|
|
4
4
|
export declare function BookingPaymentReconciliationBanner({ bookingId, }: BookingPaymentReconciliationBannerProps): import("react").JSX.Element;
|
|
5
|
-
//# sourceMappingURL=booking-payment-reconciliation-banner.d.ts.map
|
|
@@ -7,4 +7,3 @@ export interface BookingPaymentScheduleDialogProps {
|
|
|
7
7
|
onSuccess?: () => void;
|
|
8
8
|
}
|
|
9
9
|
export declare function BookingPaymentScheduleDialog({ open, onOpenChange, bookingId, schedule, onSuccess, }: BookingPaymentScheduleDialogProps): import("react").JSX.Element;
|
|
10
|
-
//# sourceMappingURL=booking-payment-schedule-dialog.d.ts.map
|
|
@@ -8,4 +8,3 @@ export interface BookingPaymentScheduleListProps {
|
|
|
8
8
|
bookingId: string;
|
|
9
9
|
}
|
|
10
10
|
export declare function BookingPaymentScheduleList({ bookingId, addScheduleDisabledReason, }: BookingPaymentScheduleListProps): React.JSX.Element;
|
|
11
|
-
//# sourceMappingURL=booking-payment-schedule-list.d.ts.map
|
|
@@ -17,13 +17,13 @@ export interface BookingPaymentSummaryPaymentRow {
|
|
|
17
17
|
referenceNumber: string | null;
|
|
18
18
|
notes: string | null;
|
|
19
19
|
}
|
|
20
|
-
export interface
|
|
21
|
-
source: "
|
|
20
|
+
export interface BookingPaymentSummaryTravelCreditRedemptionRow extends Omit<BookingPaymentSummaryPaymentRow, "source" | "invoiceId" | "invoiceNumber" | "invoiceType"> {
|
|
21
|
+
source: "travel_credit_redemption";
|
|
22
22
|
invoiceId: null;
|
|
23
23
|
invoiceNumber: null;
|
|
24
24
|
invoiceType: null;
|
|
25
25
|
}
|
|
26
|
-
export type BookingPaymentsSummaryRow = BookingPaymentSummaryPaymentRow |
|
|
26
|
+
export type BookingPaymentsSummaryRow = BookingPaymentSummaryPaymentRow | BookingPaymentSummaryTravelCreditRedemptionRow;
|
|
27
27
|
export interface BookingPaymentsSummaryProps {
|
|
28
28
|
bookingId: string;
|
|
29
29
|
/**
|
|
@@ -88,4 +88,3 @@ export interface BookingPaymentsSummaryProps {
|
|
|
88
88
|
* "list of payments" and "list of invoice line-items".
|
|
89
89
|
*/
|
|
90
90
|
export declare function BookingPaymentsSummary({ bookingId, variant, onInvoiceOpen, getInvoiceHref, onViewPayment, onConvertProforma, onEditPayment, onDeletePayment, headerAction, }: BookingPaymentsSummaryProps): React.JSX.Element;
|
|
91
|
-
//# sourceMappingURL=booking-payments-summary.d.ts.map
|
|
@@ -64,10 +64,10 @@ export function BookingPaymentsSummary({ bookingId, variant = "public", onInvoic
|
|
|
64
64
|
notes: payment.notes,
|
|
65
65
|
};
|
|
66
66
|
const source = payment.source ?? "payment";
|
|
67
|
-
if (source === "
|
|
67
|
+
if (source === "travel_credit_redemption") {
|
|
68
68
|
return {
|
|
69
69
|
...base,
|
|
70
|
-
source: "
|
|
70
|
+
source: "travel_credit_redemption",
|
|
71
71
|
invoiceId: null,
|
|
72
72
|
invoiceNumber: null,
|
|
73
73
|
invoiceType: null,
|
|
@@ -11,4 +11,3 @@ export interface BookingQuickViewSheetProps {
|
|
|
11
11
|
locale?: string;
|
|
12
12
|
}
|
|
13
13
|
export declare function BookingQuickViewSheet({ bookingId, open, onOpenChange, onViewFull, locale, }: BookingQuickViewSheetProps): import("react").JSX.Element;
|
|
14
|
-
//# sourceMappingURL=booking-quick-view-sheet.d.ts.map
|
|
@@ -16,4 +16,3 @@ export interface BookingsPageProps {
|
|
|
16
16
|
onFiltersChange?: (filters: BookingListFiltersState) => void;
|
|
17
17
|
}
|
|
18
18
|
export declare function BookingsPage({ pageSize, onBookingOpen, onCreateBooking, headerActions, className, initialFilters, onFiltersChange, }?: BookingsPageProps): React.JSX.Element;
|
|
19
|
-
//# sourceMappingURL=bookings-page.d.ts.map
|
|
@@ -25,4 +25,3 @@ export interface FileDropzoneProps {
|
|
|
25
25
|
disabled?: boolean;
|
|
26
26
|
}
|
|
27
27
|
export declare function FileDropzone({ uploadUrl, accept, maxSize, onUploaded, onCleared, onError, helperText, disabled, }: FileDropzoneProps): React.JSX.Element;
|
|
28
|
-
//# sourceMappingURL=file-dropzone.d.ts.map
|
|
@@ -109,4 +109,3 @@ export declare function resolveSlotOptionId(slotRows: ReadonlyArray<{
|
|
|
109
109
|
* or hasn't loaded slot rows yet, the product-level rows cover everything.
|
|
110
110
|
*/
|
|
111
111
|
export declare function mergeStepperUnits(slotRows: ReadonlyArray<OptionUnitsStepperUnit>, productRows: ReadonlyArray<OptionUnitsStepperUnit>, slotOptionId: string | null, hasSlot: boolean): OptionUnitsStepperUnit[];
|
|
112
|
-
//# sourceMappingURL=option-units-stepper-section.d.ts.map
|
|
@@ -88,4 +88,3 @@ export interface PaymentScheduleSectionProps {
|
|
|
88
88
|
* `bookings.id`).
|
|
89
89
|
*/
|
|
90
90
|
export declare function PaymentScheduleSection({ value, onChange, totalAmountCents, departureDate, currency, labels, }: PaymentScheduleSectionProps): import("react").JSX.Element;
|
|
91
|
-
//# sourceMappingURL=payment-schedule-section.d.ts.map
|