@voyant-travel/bookings-react 0.119.3
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/LICENSE +201 -0
- package/README.md +87 -0
- package/dist/admin/booking-contract-dialog.d.ts +22 -0
- package/dist/admin/booking-contract-dialog.d.ts.map +1 -0
- package/dist/admin/booking-contract-dialog.js +161 -0
- package/dist/admin/booking-detail-host.d.ts +103 -0
- package/dist/admin/booking-detail-host.d.ts.map +1 -0
- package/dist/admin/booking-detail-host.js +127 -0
- package/dist/admin/booking-detail-skeleton.d.ts +7 -0
- package/dist/admin/booking-detail-skeleton.d.ts.map +1 -0
- package/dist/admin/booking-detail-skeleton.js +24 -0
- package/dist/admin/booking-documents-table.d.ts +13 -0
- package/dist/admin/booking-documents-table.d.ts.map +1 -0
- package/dist/admin/booking-documents-table.js +259 -0
- package/dist/admin/booking-invoice-sheet.d.ts +18 -0
- package/dist/admin/booking-invoice-sheet.d.ts.map +1 -0
- package/dist/admin/booking-invoice-sheet.js +101 -0
- package/dist/admin/booking-journey-host.d.ts +24 -0
- package/dist/admin/booking-journey-host.d.ts.map +1 -0
- package/dist/admin/booking-journey-host.js +278 -0
- package/dist/admin/bookings-host.d.ts +26 -0
- package/dist/admin/bookings-host.d.ts.map +1 -0
- package/dist/admin/bookings-host.js +18 -0
- package/dist/admin/bookings-list-skeleton.d.ts +10 -0
- package/dist/admin/bookings-list-skeleton.d.ts.map +1 -0
- package/dist/admin/bookings-list-skeleton.js +25 -0
- package/dist/admin/index.d.ts +273 -0
- package/dist/admin/index.d.ts.map +1 -0
- package/dist/admin/index.js +331 -0
- package/dist/admin/journey-billing-duplicate-warning.d.ts +3 -0
- package/dist/admin/journey-billing-duplicate-warning.d.ts.map +1 -0
- package/dist/admin/journey-billing-duplicate-warning.js +26 -0
- package/dist/admin/journey-departure-picker.d.ts +7 -0
- package/dist/admin/journey-departure-picker.d.ts.map +1 -0
- package/dist/admin/journey-departure-picker.js +100 -0
- package/dist/admin/journey-units-picker.d.ts +11 -0
- package/dist/admin/journey-units-picker.d.ts.map +1 -0
- package/dist/admin/journey-units-picker.js +60 -0
- package/dist/admin/journey-voucher-picker.d.ts +3 -0
- package/dist/admin/journey-voucher-picker.d.ts.map +1 -0
- package/dist/admin/journey-voucher-picker.js +71 -0
- package/dist/admin/pages/booking-compose-page.d.ts +9 -0
- package/dist/admin/pages/booking-compose-page.d.ts.map +1 -0
- package/dist/admin/pages/booking-compose-page.js +17 -0
- package/dist/admin/pages/booking-detail-page.d.ts +11 -0
- package/dist/admin/pages/booking-detail-page.d.ts.map +1 -0
- package/dist/admin/pages/booking-detail-page.js +14 -0
- package/dist/admin/pages/booking-journey-page.d.ts +12 -0
- package/dist/admin/pages/booking-journey-page.d.ts.map +1 -0
- package/dist/admin/pages/booking-journey-page.js +26 -0
- package/dist/admin/pages/booking-new-page.d.ts +15 -0
- package/dist/admin/pages/booking-new-page.d.ts.map +1 -0
- package/dist/admin/pages/booking-new-page.js +50 -0
- package/dist/admin/pages/bookings-index-page.d.ts +20 -0
- package/dist/admin/pages/bookings-index-page.d.ts.map +1 -0
- package/dist/admin/pages/bookings-index-page.js +18 -0
- package/dist/admin/person-bookings-widget.d.ts +13 -0
- package/dist/admin/person-bookings-widget.d.ts.map +1 -0
- package/dist/admin/person-bookings-widget.js +48 -0
- package/dist/admin/slots.d.ts +31 -0
- package/dist/admin/slots.d.ts.map +1 -0
- package/dist/admin/slots.js +30 -0
- package/dist/admin/use-booking-action-ledger-events.d.ts +15 -0
- package/dist/admin/use-booking-action-ledger-events.d.ts.map +1 -0
- package/dist/admin/use-booking-action-ledger-events.js +66 -0
- package/dist/client.d.ts +14 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +59 -0
- package/dist/components/booking-activity-timeline.d.ts +32 -0
- package/dist/components/booking-activity-timeline.d.ts.map +1 -0
- package/dist/components/booking-activity-timeline.js +147 -0
- package/dist/components/booking-billing-dialog.d.ts +16 -0
- package/dist/components/booking-billing-dialog.d.ts.map +1 -0
- package/dist/components/booking-billing-dialog.js +315 -0
- package/dist/components/booking-cancellation-dialog.d.ts +18 -0
- package/dist/components/booking-cancellation-dialog.d.ts.map +1 -0
- package/dist/components/booking-cancellation-dialog.js +79 -0
- package/dist/components/booking-combobox.d.ts +13 -0
- package/dist/components/booking-combobox.d.ts.map +1 -0
- package/dist/components/booking-combobox.js +44 -0
- package/dist/components/booking-create-form-utils.d.ts +56 -0
- package/dist/components/booking-create-form-utils.d.ts.map +1 -0
- package/dist/components/booking-create-form-utils.js +216 -0
- package/dist/components/booking-create-page.d.ts +14 -0
- package/dist/components/booking-create-page.d.ts.map +1 -0
- package/dist/components/booking-create-page.js +11 -0
- package/dist/components/booking-create-preview-card.d.ts +26 -0
- package/dist/components/booking-create-preview-card.d.ts.map +1 -0
- package/dist/components/booking-create-preview-card.js +107 -0
- package/dist/components/booking-create-product-extras-picker.d.ts +18 -0
- package/dist/components/booking-create-product-extras-picker.d.ts.map +1 -0
- package/dist/components/booking-create-product-extras-picker.js +82 -0
- package/dist/components/booking-create-sheet.d.ts +34 -0
- package/dist/components/booking-create-sheet.d.ts.map +1 -0
- package/dist/components/booking-create-sheet.js +811 -0
- package/dist/components/booking-create-utils.d.ts +66 -0
- package/dist/components/booking-create-utils.d.ts.map +1 -0
- package/dist/components/booking-create-utils.js +185 -0
- package/dist/components/booking-detail-page.d.ts +126 -0
- package/dist/components/booking-detail-page.d.ts.map +1 -0
- package/dist/components/booking-detail-page.js +264 -0
- package/dist/components/booking-dialog.d.ts +28 -0
- package/dist/components/booking-dialog.d.ts.map +1 -0
- package/dist/components/booking-dialog.js +130 -0
- package/dist/components/booking-document-dialog.d.ts +8 -0
- package/dist/components/booking-document-dialog.d.ts.map +1 -0
- package/dist/components/booking-document-dialog.js +83 -0
- package/dist/components/booking-document-list.d.ts +5 -0
- package/dist/components/booking-document-list.d.ts.map +1 -0
- package/dist/components/booking-document-list.js +43 -0
- package/dist/components/booking-group-link-dialog.d.ts +10 -0
- package/dist/components/booking-group-link-dialog.d.ts.map +1 -0
- package/dist/components/booking-group-link-dialog.js +79 -0
- package/dist/components/booking-group-section.d.ts +27 -0
- package/dist/components/booking-group-section.d.ts.map +1 -0
- package/dist/components/booking-group-section.js +51 -0
- package/dist/components/booking-guarantee-dialog.d.ts +10 -0
- package/dist/components/booking-guarantee-dialog.d.ts.map +1 -0
- package/dist/components/booking-guarantee-dialog.js +123 -0
- package/dist/components/booking-guarantee-list.d.ts +5 -0
- package/dist/components/booking-guarantee-list.d.ts.map +1 -0
- package/dist/components/booking-guarantee-list.js +86 -0
- package/dist/components/booking-item-dialog.d.ts +10 -0
- package/dist/components/booking-item-dialog.d.ts.map +1 -0
- package/dist/components/booking-item-dialog.js +155 -0
- package/dist/components/booking-item-list.d.ts +12 -0
- package/dist/components/booking-item-list.d.ts.map +1 -0
- package/dist/components/booking-item-list.js +191 -0
- package/dist/components/booking-item-travelers.d.ts +6 -0
- package/dist/components/booking-item-travelers.d.ts.map +1 -0
- package/dist/components/booking-item-travelers.js +57 -0
- package/dist/components/booking-list-filters.d.ts +43 -0
- package/dist/components/booking-list-filters.d.ts.map +1 -0
- package/dist/components/booking-list-filters.js +192 -0
- package/dist/components/booking-list.d.ts +50 -0
- package/dist/components/booking-list.d.ts.map +1 -0
- package/dist/components/booking-list.js +352 -0
- package/dist/components/booking-note-dialog.d.ts +16 -0
- package/dist/components/booking-note-dialog.d.ts.map +1 -0
- package/dist/components/booking-note-dialog.js +41 -0
- package/dist/components/booking-notes.d.ts +5 -0
- package/dist/components/booking-notes.d.ts.map +1 -0
- package/dist/components/booking-notes.js +45 -0
- package/dist/components/booking-payment-reconciliation-banner.d.ts +5 -0
- package/dist/components/booking-payment-reconciliation-banner.d.ts.map +1 -0
- package/dist/components/booking-payment-reconciliation-banner.js +91 -0
- package/dist/components/booking-payment-schedule-dialog.d.ts +10 -0
- package/dist/components/booking-payment-schedule-dialog.d.ts.map +1 -0
- package/dist/components/booking-payment-schedule-dialog.js +117 -0
- package/dist/components/booking-payment-schedule-list.d.ts +10 -0
- package/dist/components/booking-payment-schedule-list.d.ts.map +1 -0
- package/dist/components/booking-payment-schedule-list.js +217 -0
- package/dist/components/booking-payments-summary.d.ts +83 -0
- package/dist/components/booking-payments-summary.d.ts.map +1 -0
- package/dist/components/booking-payments-summary.js +176 -0
- package/dist/components/booking-quick-view-sheet.d.ts +14 -0
- package/dist/components/booking-quick-view-sheet.d.ts.map +1 -0
- package/dist/components/booking-quick-view-sheet.js +283 -0
- package/dist/components/bookings-page.d.ts +19 -0
- package/dist/components/bookings-page.d.ts.map +1 -0
- package/dist/components/bookings-page.js +9 -0
- package/dist/components/file-dropzone.d.ts +25 -0
- package/dist/components/file-dropzone.d.ts.map +1 -0
- package/dist/components/file-dropzone.js +102 -0
- package/dist/components/icon-action-button.d.ts +18 -0
- package/dist/components/icon-action-button.d.ts.map +1 -0
- package/dist/components/icon-action-button.js +13 -0
- package/dist/components/option-units-stepper-section.d.ts +111 -0
- package/dist/components/option-units-stepper-section.d.ts.map +1 -0
- package/dist/components/option-units-stepper-section.js +276 -0
- package/dist/components/payment-schedule-section.d.ts +91 -0
- package/dist/components/payment-schedule-section.d.ts.map +1 -0
- package/dist/components/payment-schedule-section.js +206 -0
- package/dist/components/person-picker-section.d.ts +71 -0
- package/dist/components/person-picker-section.d.ts.map +1 -0
- package/dist/components/person-picker-section.js +160 -0
- package/dist/components/price-breakdown-section.d.ts +83 -0
- package/dist/components/price-breakdown-section.d.ts.map +1 -0
- package/dist/components/price-breakdown-section.js +278 -0
- package/dist/components/product-picker-section.d.ts +29 -0
- package/dist/components/product-picker-section.d.ts.map +1 -0
- package/dist/components/product-picker-section.js +74 -0
- package/dist/components/shared-room-section.d.ts +40 -0
- package/dist/components/shared-room-section.d.ts.map +1 -0
- package/dist/components/shared-room-section.js +99 -0
- package/dist/components/status-badge.d.ts +24 -0
- package/dist/components/status-badge.d.ts.map +1 -0
- package/dist/components/status-badge.js +65 -0
- package/dist/components/status-change-dialog.d.ts +10 -0
- package/dist/components/status-change-dialog.d.ts.map +1 -0
- package/dist/components/status-change-dialog.js +57 -0
- package/dist/components/supplier-status-dialog.d.ts +10 -0
- package/dist/components/supplier-status-dialog.d.ts.map +1 -0
- package/dist/components/supplier-status-dialog.js +98 -0
- package/dist/components/supplier-status-list.d.ts +5 -0
- package/dist/components/supplier-status-list.d.ts.map +1 -0
- package/dist/components/supplier-status-list.js +115 -0
- package/dist/components/traveler-category-buttons.d.ts +26 -0
- package/dist/components/traveler-category-buttons.d.ts.map +1 -0
- package/dist/components/traveler-category-buttons.js +35 -0
- package/dist/components/traveler-dialog.d.ts +10 -0
- package/dist/components/traveler-dialog.d.ts.map +1 -0
- package/dist/components/traveler-dialog.js +256 -0
- package/dist/components/traveler-list.d.ts +6 -0
- package/dist/components/traveler-list.d.ts.map +1 -0
- package/dist/components/traveler-list.js +295 -0
- package/dist/components/travelers-section-controls.d.ts +52 -0
- package/dist/components/travelers-section-controls.d.ts.map +1 -0
- package/dist/components/travelers-section-controls.js +206 -0
- package/dist/components/travelers-section.d.ts +159 -0
- package/dist/components/travelers-section.d.ts.map +1 -0
- package/dist/components/travelers-section.js +355 -0
- package/dist/components/voucher-picker-section.d.ts +50 -0
- package/dist/components/voucher-picker-section.d.ts.map +1 -0
- package/dist/components/voucher-picker-section.js +79 -0
- package/dist/extras/client.d.ts +14 -0
- package/dist/extras/client.d.ts.map +1 -0
- package/dist/extras/client.js +58 -0
- package/dist/extras/components/extra-catalog-card.d.ts +13 -0
- package/dist/extras/components/extra-catalog-card.d.ts.map +1 -0
- package/dist/extras/components/extra-catalog-card.js +52 -0
- package/dist/extras/components/product-combobox.d.ts +9 -0
- package/dist/extras/components/product-combobox.d.ts.map +1 -0
- package/dist/extras/components/product-combobox.js +46 -0
- package/dist/extras/components/slot-extras-manifest-panel.d.ts +6 -0
- package/dist/extras/components/slot-extras-manifest-panel.d.ts.map +1 -0
- package/dist/extras/components/slot-extras-manifest-panel.js +108 -0
- package/dist/extras/hooks/index.d.ts +5 -0
- package/dist/extras/hooks/index.d.ts.map +1 -0
- package/dist/extras/hooks/index.js +4 -0
- package/dist/extras/hooks/use-product-extra.d.ts +24 -0
- package/dist/extras/hooks/use-product-extra.d.ts.map +1 -0
- package/dist/extras/hooks/use-product-extra.js +12 -0
- package/dist/extras/hooks/use-product-extras.d.ts +30 -0
- package/dist/extras/hooks/use-product-extras.d.ts.map +1 -0
- package/dist/extras/hooks/use-product-extras.js +12 -0
- package/dist/extras/hooks/use-slot-extra-manifest-mutation.d.ts +48 -0
- package/dist/extras/hooks/use-slot-extra-manifest-mutation.d.ts.map +1 -0
- package/dist/extras/hooks/use-slot-extra-manifest-mutation.js +26 -0
- package/dist/extras/hooks/use-slot-extra-manifest.d.ts +68 -0
- package/dist/extras/hooks/use-slot-extra-manifest.d.ts.map +1 -0
- package/dist/extras/hooks/use-slot-extra-manifest.js +11 -0
- package/dist/extras/i18n/en.d.ts +52 -0
- package/dist/extras/i18n/en.d.ts.map +1 -0
- package/dist/extras/i18n/en.js +51 -0
- package/dist/extras/i18n/index.d.ts +5 -0
- package/dist/extras/i18n/index.d.ts.map +1 -0
- package/dist/extras/i18n/index.js +3 -0
- package/dist/extras/i18n/messages.d.ts +37 -0
- package/dist/extras/i18n/messages.d.ts.map +1 -0
- package/dist/extras/i18n/messages.js +1 -0
- package/dist/extras/i18n/provider.d.ts +126 -0
- package/dist/extras/i18n/provider.d.ts.map +1 -0
- package/dist/extras/i18n/provider.js +44 -0
- package/dist/extras/i18n/ro.d.ts +52 -0
- package/dist/extras/i18n/ro.d.ts.map +1 -0
- package/dist/extras/i18n/ro.js +51 -0
- package/dist/extras/index.d.ts +7 -0
- package/dist/extras/index.d.ts.map +1 -0
- package/dist/extras/index.js +6 -0
- package/dist/extras/provider.d.ts +2 -0
- package/dist/extras/provider.d.ts.map +1 -0
- package/dist/extras/provider.js +1 -0
- package/dist/extras/query-keys.d.ts +16 -0
- package/dist/extras/query-keys.d.ts.map +1 -0
- package/dist/extras/query-keys.js +8 -0
- package/dist/extras/query-options.d.ts +455 -0
- package/dist/extras/query-options.d.ts.map +1 -0
- package/dist/extras/query-options.js +44 -0
- package/dist/extras/schemas.d.ts +416 -0
- package/dist/extras/schemas.d.ts.map +1 -0
- package/dist/extras/schemas.js +89 -0
- package/dist/extras/ui.d.ts +4 -0
- package/dist/extras/ui.d.ts.map +1 -0
- package/dist/extras/ui.js +3 -0
- package/dist/extras.d.ts +10 -0
- package/dist/extras.d.ts.map +1 -0
- package/dist/extras.js +9 -0
- package/dist/hooks/index.d.ts +36 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +35 -0
- package/dist/hooks/use-booking-action-ledger.d.ts +63 -0
- package/dist/hooks/use-booking-action-ledger.d.ts.map +1 -0
- package/dist/hooks/use-booking-action-ledger.js +34 -0
- package/dist/hooks/use-booking-activity.d.ts +17 -0
- package/dist/hooks/use-booking-activity.d.ts.map +1 -0
- package/dist/hooks/use-booking-activity.js +12 -0
- package/dist/hooks/use-booking-cancel-mutation.d.ts +69 -0
- package/dist/hooks/use-booking-cancel-mutation.d.ts.map +1 -0
- package/dist/hooks/use-booking-cancel-mutation.js +24 -0
- package/dist/hooks/use-booking-contract-generation.d.ts +31 -0
- package/dist/hooks/use-booking-contract-generation.d.ts.map +1 -0
- package/dist/hooks/use-booking-contract-generation.js +36 -0
- package/dist/hooks/use-booking-convert-mutation.d.ts +81 -0
- package/dist/hooks/use-booking-convert-mutation.d.ts.map +1 -0
- package/dist/hooks/use-booking-convert-mutation.js +24 -0
- package/dist/hooks/use-booking-create-mutation.d.ts +337 -0
- package/dist/hooks/use-booking-create-mutation.d.ts.map +1 -0
- package/dist/hooks/use-booking-create-mutation.js +43 -0
- package/dist/hooks/use-booking-documents.d.ts +41 -0
- package/dist/hooks/use-booking-documents.d.ts.map +1 -0
- package/dist/hooks/use-booking-documents.js +46 -0
- package/dist/hooks/use-booking-dual-create-mutation.d.ts +338 -0
- package/dist/hooks/use-booking-dual-create-mutation.d.ts.map +1 -0
- package/dist/hooks/use-booking-dual-create-mutation.js +45 -0
- package/dist/hooks/use-booking-group-for-booking.d.ts +24 -0
- package/dist/hooks/use-booking-group-for-booking.d.ts.map +1 -0
- package/dist/hooks/use-booking-group-for-booking.js +12 -0
- package/dist/hooks/use-booking-group-member-mutation.d.ts +27 -0
- package/dist/hooks/use-booking-group-member-mutation.d.ts.map +1 -0
- package/dist/hooks/use-booking-group-member-mutation.js +38 -0
- package/dist/hooks/use-booking-group-mutation.d.ts +40 -0
- package/dist/hooks/use-booking-group-mutation.d.ts.map +1 -0
- package/dist/hooks/use-booking-group-mutation.js +32 -0
- package/dist/hooks/use-booking-group.d.ts +85 -0
- package/dist/hooks/use-booking-group.d.ts.map +1 -0
- package/dist/hooks/use-booking-group.js +12 -0
- package/dist/hooks/use-booking-groups.d.ts +21 -0
- package/dist/hooks/use-booking-groups.d.ts.map +1 -0
- package/dist/hooks/use-booking-groups.js +12 -0
- package/dist/hooks/use-booking-item-mutation.d.ts +101 -0
- package/dist/hooks/use-booking-item-mutation.d.ts.map +1 -0
- package/dist/hooks/use-booking-item-mutation.js +42 -0
- package/dist/hooks/use-booking-item-travelers.d.ts +32 -0
- package/dist/hooks/use-booking-item-travelers.d.ts.map +1 -0
- package/dist/hooks/use-booking-item-travelers.js +48 -0
- package/dist/hooks/use-booking-items.d.ts +36 -0
- package/dist/hooks/use-booking-items.d.ts.map +1 -0
- package/dist/hooks/use-booking-items.js +12 -0
- package/dist/hooks/use-booking-mutation.d.ts +158 -0
- package/dist/hooks/use-booking-mutation.d.ts.map +1 -0
- package/dist/hooks/use-booking-mutation.js +39 -0
- package/dist/hooks/use-booking-note-mutation.d.ts +39 -0
- package/dist/hooks/use-booking-note-mutation.d.ts.map +1 -0
- package/dist/hooks/use-booking-note-mutation.js +44 -0
- package/dist/hooks/use-booking-notes.d.ts +15 -0
- package/dist/hooks/use-booking-notes.d.ts.map +1 -0
- package/dist/hooks/use-booking-notes.js +12 -0
- package/dist/hooks/use-booking-primary-product.d.ts +28 -0
- package/dist/hooks/use-booking-primary-product.d.ts.map +1 -0
- package/dist/hooks/use-booking-primary-product.js +20 -0
- package/dist/hooks/use-booking-status-mutation.d.ts +156 -0
- package/dist/hooks/use-booking-status-mutation.d.ts.map +1 -0
- package/dist/hooks/use-booking-status-mutation.js +54 -0
- package/dist/hooks/use-booking-tax-preview.d.ts +29 -0
- package/dist/hooks/use-booking-tax-preview.d.ts.map +1 -0
- package/dist/hooks/use-booking-tax-preview.js +21 -0
- package/dist/hooks/use-booking.d.ts +67 -0
- package/dist/hooks/use-booking.d.ts.map +1 -0
- package/dist/hooks/use-booking.js +12 -0
- package/dist/hooks/use-bookings.d.ts +71 -0
- package/dist/hooks/use-bookings.d.ts.map +1 -0
- package/dist/hooks/use-bookings.js +12 -0
- package/dist/hooks/use-pricing-preview.d.ts +61 -0
- package/dist/hooks/use-pricing-preview.d.ts.map +1 -0
- package/dist/hooks/use-pricing-preview.js +18 -0
- package/dist/hooks/use-public-booking-session-flow-mutation.d.ts +148 -0
- package/dist/hooks/use-public-booking-session-flow-mutation.d.ts.map +1 -0
- package/dist/hooks/use-public-booking-session-flow-mutation.js +35 -0
- package/dist/hooks/use-public-booking-session-state.d.ts +16 -0
- package/dist/hooks/use-public-booking-session-state.d.ts.map +1 -0
- package/dist/hooks/use-public-booking-session-state.js +12 -0
- package/dist/hooks/use-public-booking-session.d.ts +101 -0
- package/dist/hooks/use-public-booking-session.d.ts.map +1 -0
- package/dist/hooks/use-public-booking-session.js +12 -0
- package/dist/hooks/use-reveal-traveler.d.ts +54 -0
- package/dist/hooks/use-reveal-traveler.d.ts.map +1 -0
- package/dist/hooks/use-reveal-traveler.js +18 -0
- package/dist/hooks/use-sharing-groups.d.ts +41 -0
- package/dist/hooks/use-sharing-groups.d.ts.map +1 -0
- package/dist/hooks/use-sharing-groups.js +20 -0
- package/dist/hooks/use-supplier-status-mutation.d.ts +46 -0
- package/dist/hooks/use-supplier-status-mutation.d.ts.map +1 -0
- package/dist/hooks/use-supplier-status-mutation.js +39 -0
- package/dist/hooks/use-supplier-statuses.d.ts +20 -0
- package/dist/hooks/use-supplier-statuses.d.ts.map +1 -0
- package/dist/hooks/use-supplier-statuses.js +12 -0
- package/dist/hooks/use-traveler-mutation.d.ts +55 -0
- package/dist/hooks/use-traveler-mutation.d.ts.map +1 -0
- package/dist/hooks/use-traveler-mutation.js +42 -0
- package/dist/hooks/use-traveler-with-travel-details-mutation.d.ts +120 -0
- package/dist/hooks/use-traveler-with-travel-details-mutation.d.ts.map +1 -0
- package/dist/hooks/use-traveler-with-travel-details-mutation.js +43 -0
- package/dist/hooks/use-travelers.d.ts +23 -0
- package/dist/hooks/use-travelers.d.ts.map +1 -0
- package/dist/hooks/use-travelers.js +12 -0
- package/dist/i18n/en-base.d.ts +295 -0
- package/dist/i18n/en-base.d.ts.map +1 -0
- package/dist/i18n/en-base.js +294 -0
- package/dist/i18n/en-create-list.d.ts +327 -0
- package/dist/i18n/en-create-list.d.ts.map +1 -0
- package/dist/i18n/en-create-list.js +326 -0
- package/dist/i18n/en-journey.d.ts +229 -0
- package/dist/i18n/en-journey.d.ts.map +1 -0
- package/dist/i18n/en-journey.js +228 -0
- package/dist/i18n/en-operations.d.ts +382 -0
- package/dist/i18n/en-operations.d.ts.map +1 -0
- package/dist/i18n/en-operations.js +381 -0
- package/dist/i18n/en-sections.d.ts +360 -0
- package/dist/i18n/en-sections.d.ts.map +1 -0
- package/dist/i18n/en-sections.js +359 -0
- package/dist/i18n/en.d.ts +1581 -0
- package/dist/i18n/en.d.ts.map +1 -0
- package/dist/i18n/en.js +12 -0
- package/dist/i18n/index.d.ts +5 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +3 -0
- package/dist/i18n/messages-base.d.ts +251 -0
- package/dist/i18n/messages-base.d.ts.map +1 -0
- package/dist/i18n/messages-base.js +1 -0
- package/dist/i18n/messages-create-list.d.ts +310 -0
- package/dist/i18n/messages-create-list.d.ts.map +1 -0
- package/dist/i18n/messages-create-list.js +1 -0
- package/dist/i18n/messages-journey.d.ts +198 -0
- package/dist/i18n/messages-journey.d.ts.map +1 -0
- package/dist/i18n/messages-journey.js +1 -0
- package/dist/i18n/messages-operations.d.ts +362 -0
- package/dist/i18n/messages-operations.d.ts.map +1 -0
- package/dist/i18n/messages-operations.js +1 -0
- package/dist/i18n/messages-sections.d.ts +312 -0
- package/dist/i18n/messages-sections.d.ts.map +1 -0
- package/dist/i18n/messages-sections.js +1 -0
- package/dist/i18n/messages.d.ts +7 -0
- package/dist/i18n/messages.d.ts.map +1 -0
- package/dist/i18n/messages.js +1 -0
- package/dist/i18n/provider.d.ts +3185 -0
- package/dist/i18n/provider.d.ts.map +1 -0
- package/dist/i18n/provider.js +45 -0
- package/dist/i18n/ro-base.d.ts +295 -0
- package/dist/i18n/ro-base.d.ts.map +1 -0
- package/dist/i18n/ro-base.js +294 -0
- package/dist/i18n/ro-create-list.d.ts +327 -0
- package/dist/i18n/ro-create-list.d.ts.map +1 -0
- package/dist/i18n/ro-create-list.js +326 -0
- package/dist/i18n/ro-journey.d.ts +229 -0
- package/dist/i18n/ro-journey.d.ts.map +1 -0
- package/dist/i18n/ro-journey.js +228 -0
- package/dist/i18n/ro-operations.d.ts +382 -0
- package/dist/i18n/ro-operations.d.ts.map +1 -0
- package/dist/i18n/ro-operations.js +381 -0
- package/dist/i18n/ro-sections.d.ts +360 -0
- package/dist/i18n/ro-sections.d.ts.map +1 -0
- package/dist/i18n/ro-sections.js +359 -0
- package/dist/i18n/ro.d.ts +1581 -0
- package/dist/i18n/ro.d.ts.map +1 -0
- package/dist/i18n/ro.js +12 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/journey/components/booking-journey-rules.d.ts +48 -0
- package/dist/journey/components/booking-journey-rules.d.ts.map +1 -0
- package/dist/journey/components/booking-journey-rules.js +235 -0
- package/dist/journey/components/booking-journey.d.ts +3 -0
- package/dist/journey/components/booking-journey.d.ts.map +1 -0
- package/dist/journey/components/booking-journey.js +368 -0
- package/dist/journey/components/configure-step-skeleton.d.ts +8 -0
- package/dist/journey/components/configure-step-skeleton.d.ts.map +1 -0
- package/dist/journey/components/configure-step-skeleton.js +11 -0
- package/dist/journey/components/contract-preview-dialog.d.ts +47 -0
- package/dist/journey/components/contract-preview-dialog.d.ts.map +1 -0
- package/dist/journey/components/contract-preview-dialog.js +124 -0
- package/dist/journey/components/journey-steps/accommodation-step.d.ts +3 -0
- package/dist/journey/components/journey-steps/accommodation-step.d.ts.map +1 -0
- package/dist/journey/components/journey-steps/accommodation-step.js +71 -0
- package/dist/journey/components/journey-steps/addons-step.d.ts +3 -0
- package/dist/journey/components/journey-steps/addons-step.d.ts.map +1 -0
- package/dist/journey/components/journey-steps/addons-step.js +40 -0
- package/dist/journey/components/journey-steps/billing-step.d.ts +8 -0
- package/dist/journey/components/journey-steps/billing-step.d.ts.map +1 -0
- package/dist/journey/components/journey-steps/billing-step.js +78 -0
- package/dist/journey/components/journey-steps/configure-steps.d.ts +28 -0
- package/dist/journey/components/journey-steps/configure-steps.d.ts.map +1 -0
- package/dist/journey/components/journey-steps/configure-steps.js +232 -0
- package/dist/journey/components/journey-steps/documents-step.d.ts +11 -0
- package/dist/journey/components/journey-steps/documents-step.d.ts.map +1 -0
- package/dist/journey/components/journey-steps/documents-step.js +36 -0
- package/dist/journey/components/journey-steps/payment-step.d.ts +29 -0
- package/dist/journey/components/journey-steps/payment-step.d.ts.map +1 -0
- package/dist/journey/components/journey-steps/payment-step.js +225 -0
- package/dist/journey/components/journey-steps/review-step.d.ts +27 -0
- package/dist/journey/components/journey-steps/review-step.d.ts.map +1 -0
- package/dist/journey/components/journey-steps/review-step.js +18 -0
- package/dist/journey/components/journey-steps/shared.d.ts +75 -0
- package/dist/journey/components/journey-steps/shared.d.ts.map +1 -0
- package/dist/journey/components/journey-steps/shared.js +108 -0
- package/dist/journey/components/journey-steps/travelers-step.d.ts +7 -0
- package/dist/journey/components/journey-steps/travelers-step.d.ts.map +1 -0
- package/dist/journey/components/journey-steps/travelers-step.js +201 -0
- package/dist/journey/components/journey-steps.d.ts +21 -0
- package/dist/journey/components/journey-steps.d.ts.map +1 -0
- package/dist/journey/components/journey-steps.js +20 -0
- package/dist/journey/components/side-panel.d.ts +17 -0
- package/dist/journey/components/side-panel.d.ts.map +1 -0
- package/dist/journey/components/side-panel.js +245 -0
- package/dist/journey/components/stacked-journey.d.ts +30 -0
- package/dist/journey/components/stacked-journey.d.ts.map +1 -0
- package/dist/journey/components/stacked-journey.js +50 -0
- package/dist/journey/components/step-header.d.ts +7 -0
- package/dist/journey/components/step-header.d.ts.map +1 -0
- package/dist/journey/components/step-header.js +12 -0
- package/dist/journey/index.d.ts +18 -0
- package/dist/journey/index.d.ts.map +1 -0
- package/dist/journey/index.js +17 -0
- package/dist/journey/lib/draft-state.d.ts +35 -0
- package/dist/journey/lib/draft-state.d.ts.map +1 -0
- package/dist/journey/lib/draft-state.js +57 -0
- package/dist/journey/lib/pax-band-dependencies.d.ts +27 -0
- package/dist/journey/lib/pax-band-dependencies.d.ts.map +1 -0
- package/dist/journey/lib/pax-band-dependencies.js +50 -0
- package/dist/journey/lib/payment-schedule.d.ts +19 -0
- package/dist/journey/lib/payment-schedule.d.ts.map +1 -0
- package/dist/journey/lib/payment-schedule.js +90 -0
- package/dist/journey/types.d.ts +403 -0
- package/dist/journey/types.d.ts.map +1 -0
- package/dist/journey/types.js +19 -0
- package/dist/provider.d.ts +2 -0
- package/dist/provider.d.ts.map +1 -0
- package/dist/provider.js +1 -0
- package/dist/query-keys.d.ts +74 -0
- package/dist/query-keys.d.ts.map +1 -0
- package/dist/query-keys.js +26 -0
- package/dist/query-options.d.ts +2534 -0
- package/dist/query-options.d.ts.map +1 -0
- package/dist/query-options.js +233 -0
- package/dist/requirements/client.d.ts +14 -0
- package/dist/requirements/client.d.ts.map +1 -0
- package/dist/requirements/client.js +59 -0
- package/dist/requirements/components/booking-requirements-contact-tab.d.ts +8 -0
- package/dist/requirements/components/booking-requirements-contact-tab.d.ts.map +1 -0
- package/dist/requirements/components/booking-requirements-contact-tab.js +8 -0
- package/dist/requirements/components/booking-requirements-questions-tab.d.ts +14 -0
- package/dist/requirements/components/booking-requirements-questions-tab.d.ts.map +1 -0
- package/dist/requirements/components/booking-requirements-questions-tab.js +17 -0
- package/dist/requirements/constants.d.ts +114 -0
- package/dist/requirements/constants.d.ts.map +1 -0
- package/dist/requirements/constants.js +45 -0
- package/dist/requirements/hooks/index.d.ts +6 -0
- package/dist/requirements/hooks/index.d.ts.map +1 -0
- package/dist/requirements/hooks/index.js +6 -0
- package/dist/requirements/hooks/use-booking-questions.d.ts +24 -0
- package/dist/requirements/hooks/use-booking-questions.d.ts.map +1 -0
- package/dist/requirements/hooks/use-booking-questions.js +9 -0
- package/dist/requirements/hooks/use-contact-requirements.d.ts +22 -0
- package/dist/requirements/hooks/use-contact-requirements.d.ts.map +1 -0
- package/dist/requirements/hooks/use-contact-requirements.js +9 -0
- package/dist/requirements/hooks/use-products.d.ts +16 -0
- package/dist/requirements/hooks/use-products.d.ts.map +1 -0
- package/dist/requirements/hooks/use-products.js +9 -0
- package/dist/requirements/hooks/use-question-options.d.ts +19 -0
- package/dist/requirements/hooks/use-question-options.d.ts.map +1 -0
- package/dist/requirements/hooks/use-question-options.js +9 -0
- package/dist/requirements/hooks/use-transport-requirements.d.ts +30 -0
- package/dist/requirements/hooks/use-transport-requirements.d.ts.map +1 -0
- package/dist/requirements/hooks/use-transport-requirements.js +9 -0
- package/dist/requirements/i18n/en.d.ts +94 -0
- package/dist/requirements/i18n/en.d.ts.map +1 -0
- package/dist/requirements/i18n/en.js +93 -0
- package/dist/requirements/i18n/index.d.ts +5 -0
- package/dist/requirements/i18n/index.d.ts.map +1 -0
- package/dist/requirements/i18n/index.js +3 -0
- package/dist/requirements/i18n/messages.d.ts +59 -0
- package/dist/requirements/i18n/messages.d.ts.map +1 -0
- package/dist/requirements/i18n/messages.js +1 -0
- package/dist/requirements/i18n/provider.d.ts +210 -0
- package/dist/requirements/i18n/provider.d.ts.map +1 -0
- package/dist/requirements/i18n/provider.js +44 -0
- package/dist/requirements/i18n/ro.d.ts +94 -0
- package/dist/requirements/i18n/ro.d.ts.map +1 -0
- package/dist/requirements/i18n/ro.js +93 -0
- package/dist/requirements/index.d.ts +9 -0
- package/dist/requirements/index.d.ts.map +1 -0
- package/dist/requirements/index.js +8 -0
- package/dist/requirements/provider.d.ts +2 -0
- package/dist/requirements/provider.d.ts.map +1 -0
- package/dist/requirements/provider.js +1 -0
- package/dist/requirements/query-keys.d.ts +33 -0
- package/dist/requirements/query-keys.d.ts.map +1 -0
- package/dist/requirements/query-keys.js +13 -0
- package/dist/requirements/query-options.d.ts +371 -0
- package/dist/requirements/query-options.d.ts.map +1 -0
- package/dist/requirements/query-options.js +80 -0
- package/dist/requirements/schemas.d.ts +320 -0
- package/dist/requirements/schemas.d.ts.map +1 -0
- package/dist/requirements/schemas.js +121 -0
- package/dist/requirements/ui.d.ts +4 -0
- package/dist/requirements/ui.d.ts.map +1 -0
- package/dist/requirements/ui.js +3 -0
- package/dist/requirements/utils.d.ts +2 -0
- package/dist/requirements/utils.d.ts.map +1 -0
- package/dist/requirements/utils.js +4 -0
- package/dist/schemas.d.ts +2070 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +507 -0
- package/dist/status-presentation.d.ts +34 -0
- package/dist/status-presentation.d.ts.map +1 -0
- package/dist/status-presentation.js +38 -0
- package/dist/ui.d.ts +43 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +42 -0
- package/package.json +256 -0
- package/src/requirements/styles.css +1 -0
- package/src/styles.css +13 -0
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
import { type FetchWithValidationOptions } from "./client.js";
|
|
2
|
+
import type { UseBookingQuestionsOptions } from "./hooks/use-booking-questions.js";
|
|
3
|
+
import type { UseContactRequirementsOptions } from "./hooks/use-contact-requirements.js";
|
|
4
|
+
import type { UseProductsOptions } from "./hooks/use-products.js";
|
|
5
|
+
import type { UseQuestionOptionsOptions } from "./hooks/use-question-options.js";
|
|
6
|
+
import type { UseTransportRequirementsOptions } from "./hooks/use-transport-requirements.js";
|
|
7
|
+
export declare function getProductsQueryOptions(client: FetchWithValidationOptions, options?: UseProductsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
8
|
+
data: {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
code: string | null;
|
|
12
|
+
status: string;
|
|
13
|
+
}[];
|
|
14
|
+
total: number;
|
|
15
|
+
limit: number;
|
|
16
|
+
offset: number;
|
|
17
|
+
}, Error, {
|
|
18
|
+
data: {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
code: string | null;
|
|
22
|
+
status: string;
|
|
23
|
+
}[];
|
|
24
|
+
total: number;
|
|
25
|
+
limit: number;
|
|
26
|
+
offset: number;
|
|
27
|
+
}, readonly ["voyant", "booking-requirements", "products", "list", import("./query-keys.js").ProductsListFilters]>, "queryFn"> & {
|
|
28
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
29
|
+
data: {
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
code: string | null;
|
|
33
|
+
status: string;
|
|
34
|
+
}[];
|
|
35
|
+
total: number;
|
|
36
|
+
limit: number;
|
|
37
|
+
offset: number;
|
|
38
|
+
}, readonly ["voyant", "booking-requirements", "products", "list", import("./query-keys.js").ProductsListFilters], never> | undefined;
|
|
39
|
+
} & {
|
|
40
|
+
queryKey: readonly ["voyant", "booking-requirements", "products", "list", import("./query-keys.js").ProductsListFilters] & {
|
|
41
|
+
[dataTagSymbol]: {
|
|
42
|
+
data: {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
code: string | null;
|
|
46
|
+
status: string;
|
|
47
|
+
}[];
|
|
48
|
+
total: number;
|
|
49
|
+
limit: number;
|
|
50
|
+
offset: number;
|
|
51
|
+
};
|
|
52
|
+
[dataTagErrorSymbol]: Error;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare function getContactRequirementsQueryOptions(client: FetchWithValidationOptions, options?: UseContactRequirementsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
56
|
+
data: {
|
|
57
|
+
id: string;
|
|
58
|
+
productId: string;
|
|
59
|
+
optionId: string | null;
|
|
60
|
+
fieldKey: "address" | "email" | "other" | "phone" | "nationality" | "first_name" | "last_name" | "date_of_birth" | "passport_number" | "passport_expiry" | "dietary_requirements" | "accessibility_needs" | "special_requests";
|
|
61
|
+
scope: "booking" | "traveler" | "lead_traveler" | "booker";
|
|
62
|
+
isRequired: boolean;
|
|
63
|
+
perTraveler: boolean;
|
|
64
|
+
active: boolean;
|
|
65
|
+
sortOrder: number;
|
|
66
|
+
notes: string | null;
|
|
67
|
+
}[];
|
|
68
|
+
total: number;
|
|
69
|
+
limit: number;
|
|
70
|
+
offset: number;
|
|
71
|
+
}, Error, {
|
|
72
|
+
data: {
|
|
73
|
+
id: string;
|
|
74
|
+
productId: string;
|
|
75
|
+
optionId: string | null;
|
|
76
|
+
fieldKey: "address" | "email" | "other" | "phone" | "nationality" | "first_name" | "last_name" | "date_of_birth" | "passport_number" | "passport_expiry" | "dietary_requirements" | "accessibility_needs" | "special_requests";
|
|
77
|
+
scope: "booking" | "traveler" | "lead_traveler" | "booker";
|
|
78
|
+
isRequired: boolean;
|
|
79
|
+
perTraveler: boolean;
|
|
80
|
+
active: boolean;
|
|
81
|
+
sortOrder: number;
|
|
82
|
+
notes: string | null;
|
|
83
|
+
}[];
|
|
84
|
+
total: number;
|
|
85
|
+
limit: number;
|
|
86
|
+
offset: number;
|
|
87
|
+
}, readonly ["voyant", "booking-requirements", "contact-requirements", "list", import("./query-keys.js").ContactRequirementsListFilters]>, "queryFn"> & {
|
|
88
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
89
|
+
data: {
|
|
90
|
+
id: string;
|
|
91
|
+
productId: string;
|
|
92
|
+
optionId: string | null;
|
|
93
|
+
fieldKey: "address" | "email" | "other" | "phone" | "nationality" | "first_name" | "last_name" | "date_of_birth" | "passport_number" | "passport_expiry" | "dietary_requirements" | "accessibility_needs" | "special_requests";
|
|
94
|
+
scope: "booking" | "traveler" | "lead_traveler" | "booker";
|
|
95
|
+
isRequired: boolean;
|
|
96
|
+
perTraveler: boolean;
|
|
97
|
+
active: boolean;
|
|
98
|
+
sortOrder: number;
|
|
99
|
+
notes: string | null;
|
|
100
|
+
}[];
|
|
101
|
+
total: number;
|
|
102
|
+
limit: number;
|
|
103
|
+
offset: number;
|
|
104
|
+
}, readonly ["voyant", "booking-requirements", "contact-requirements", "list", import("./query-keys.js").ContactRequirementsListFilters], never> | undefined;
|
|
105
|
+
} & {
|
|
106
|
+
queryKey: readonly ["voyant", "booking-requirements", "contact-requirements", "list", import("./query-keys.js").ContactRequirementsListFilters] & {
|
|
107
|
+
[dataTagSymbol]: {
|
|
108
|
+
data: {
|
|
109
|
+
id: string;
|
|
110
|
+
productId: string;
|
|
111
|
+
optionId: string | null;
|
|
112
|
+
fieldKey: "address" | "email" | "other" | "phone" | "nationality" | "first_name" | "last_name" | "date_of_birth" | "passport_number" | "passport_expiry" | "dietary_requirements" | "accessibility_needs" | "special_requests";
|
|
113
|
+
scope: "booking" | "traveler" | "lead_traveler" | "booker";
|
|
114
|
+
isRequired: boolean;
|
|
115
|
+
perTraveler: boolean;
|
|
116
|
+
active: boolean;
|
|
117
|
+
sortOrder: number;
|
|
118
|
+
notes: string | null;
|
|
119
|
+
}[];
|
|
120
|
+
total: number;
|
|
121
|
+
limit: number;
|
|
122
|
+
offset: number;
|
|
123
|
+
};
|
|
124
|
+
[dataTagErrorSymbol]: Error;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
export declare function getBookingQuestionsQueryOptions(client: FetchWithValidationOptions, options?: UseBookingQuestionsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
128
|
+
data: {
|
|
129
|
+
id: string;
|
|
130
|
+
productId: string;
|
|
131
|
+
code: string | null;
|
|
132
|
+
label: string;
|
|
133
|
+
description: string | null;
|
|
134
|
+
target: "service" | "booking" | "traveler" | "lead_traveler" | "booker" | "extra";
|
|
135
|
+
fieldType: "number" | "boolean" | "textarea" | "text" | "email" | "date" | "other" | "file" | "country" | "datetime" | "phone" | "single_select" | "multi_select";
|
|
136
|
+
placeholder: string | null;
|
|
137
|
+
helpText: string | null;
|
|
138
|
+
isRequired: boolean;
|
|
139
|
+
active: boolean;
|
|
140
|
+
sortOrder: number;
|
|
141
|
+
}[];
|
|
142
|
+
total: number;
|
|
143
|
+
limit: number;
|
|
144
|
+
offset: number;
|
|
145
|
+
}, Error, {
|
|
146
|
+
data: {
|
|
147
|
+
id: string;
|
|
148
|
+
productId: string;
|
|
149
|
+
code: string | null;
|
|
150
|
+
label: string;
|
|
151
|
+
description: string | null;
|
|
152
|
+
target: "service" | "booking" | "traveler" | "lead_traveler" | "booker" | "extra";
|
|
153
|
+
fieldType: "number" | "boolean" | "textarea" | "text" | "email" | "date" | "other" | "file" | "country" | "datetime" | "phone" | "single_select" | "multi_select";
|
|
154
|
+
placeholder: string | null;
|
|
155
|
+
helpText: string | null;
|
|
156
|
+
isRequired: boolean;
|
|
157
|
+
active: boolean;
|
|
158
|
+
sortOrder: number;
|
|
159
|
+
}[];
|
|
160
|
+
total: number;
|
|
161
|
+
limit: number;
|
|
162
|
+
offset: number;
|
|
163
|
+
}, readonly ["voyant", "booking-requirements", "questions", "list", import("./query-keys.js").BookingQuestionsListFilters]>, "queryFn"> & {
|
|
164
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
165
|
+
data: {
|
|
166
|
+
id: string;
|
|
167
|
+
productId: string;
|
|
168
|
+
code: string | null;
|
|
169
|
+
label: string;
|
|
170
|
+
description: string | null;
|
|
171
|
+
target: "service" | "booking" | "traveler" | "lead_traveler" | "booker" | "extra";
|
|
172
|
+
fieldType: "number" | "boolean" | "textarea" | "text" | "email" | "date" | "other" | "file" | "country" | "datetime" | "phone" | "single_select" | "multi_select";
|
|
173
|
+
placeholder: string | null;
|
|
174
|
+
helpText: string | null;
|
|
175
|
+
isRequired: boolean;
|
|
176
|
+
active: boolean;
|
|
177
|
+
sortOrder: number;
|
|
178
|
+
}[];
|
|
179
|
+
total: number;
|
|
180
|
+
limit: number;
|
|
181
|
+
offset: number;
|
|
182
|
+
}, readonly ["voyant", "booking-requirements", "questions", "list", import("./query-keys.js").BookingQuestionsListFilters], never> | undefined;
|
|
183
|
+
} & {
|
|
184
|
+
queryKey: readonly ["voyant", "booking-requirements", "questions", "list", import("./query-keys.js").BookingQuestionsListFilters] & {
|
|
185
|
+
[dataTagSymbol]: {
|
|
186
|
+
data: {
|
|
187
|
+
id: string;
|
|
188
|
+
productId: string;
|
|
189
|
+
code: string | null;
|
|
190
|
+
label: string;
|
|
191
|
+
description: string | null;
|
|
192
|
+
target: "service" | "booking" | "traveler" | "lead_traveler" | "booker" | "extra";
|
|
193
|
+
fieldType: "number" | "boolean" | "textarea" | "text" | "email" | "date" | "other" | "file" | "country" | "datetime" | "phone" | "single_select" | "multi_select";
|
|
194
|
+
placeholder: string | null;
|
|
195
|
+
helpText: string | null;
|
|
196
|
+
isRequired: boolean;
|
|
197
|
+
active: boolean;
|
|
198
|
+
sortOrder: number;
|
|
199
|
+
}[];
|
|
200
|
+
total: number;
|
|
201
|
+
limit: number;
|
|
202
|
+
offset: number;
|
|
203
|
+
};
|
|
204
|
+
[dataTagErrorSymbol]: Error;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
export declare function getQuestionOptionsQueryOptions(client: FetchWithValidationOptions, options?: UseQuestionOptionsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
208
|
+
data: {
|
|
209
|
+
id: string;
|
|
210
|
+
productBookingQuestionId: string;
|
|
211
|
+
value: string;
|
|
212
|
+
label: string;
|
|
213
|
+
sortOrder: number;
|
|
214
|
+
isDefault: boolean;
|
|
215
|
+
active: boolean;
|
|
216
|
+
}[];
|
|
217
|
+
total: number;
|
|
218
|
+
limit: number;
|
|
219
|
+
offset: number;
|
|
220
|
+
}, Error, {
|
|
221
|
+
data: {
|
|
222
|
+
id: string;
|
|
223
|
+
productBookingQuestionId: string;
|
|
224
|
+
value: string;
|
|
225
|
+
label: string;
|
|
226
|
+
sortOrder: number;
|
|
227
|
+
isDefault: boolean;
|
|
228
|
+
active: boolean;
|
|
229
|
+
}[];
|
|
230
|
+
total: number;
|
|
231
|
+
limit: number;
|
|
232
|
+
offset: number;
|
|
233
|
+
}, readonly ["voyant", "booking-requirements", "question-options", "list", import("./query-keys.js").BookingQuestionOptionsListFilters]>, "queryFn"> & {
|
|
234
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
235
|
+
data: {
|
|
236
|
+
id: string;
|
|
237
|
+
productBookingQuestionId: string;
|
|
238
|
+
value: string;
|
|
239
|
+
label: string;
|
|
240
|
+
sortOrder: number;
|
|
241
|
+
isDefault: boolean;
|
|
242
|
+
active: boolean;
|
|
243
|
+
}[];
|
|
244
|
+
total: number;
|
|
245
|
+
limit: number;
|
|
246
|
+
offset: number;
|
|
247
|
+
}, readonly ["voyant", "booking-requirements", "question-options", "list", import("./query-keys.js").BookingQuestionOptionsListFilters], never> | undefined;
|
|
248
|
+
} & {
|
|
249
|
+
queryKey: readonly ["voyant", "booking-requirements", "question-options", "list", import("./query-keys.js").BookingQuestionOptionsListFilters] & {
|
|
250
|
+
[dataTagSymbol]: {
|
|
251
|
+
data: {
|
|
252
|
+
id: string;
|
|
253
|
+
productBookingQuestionId: string;
|
|
254
|
+
value: string;
|
|
255
|
+
label: string;
|
|
256
|
+
sortOrder: number;
|
|
257
|
+
isDefault: boolean;
|
|
258
|
+
active: boolean;
|
|
259
|
+
}[];
|
|
260
|
+
total: number;
|
|
261
|
+
limit: number;
|
|
262
|
+
offset: number;
|
|
263
|
+
};
|
|
264
|
+
[dataTagErrorSymbol]: Error;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
export declare function getTransportRequirementsQueryOptions(client: FetchWithValidationOptions, options: UseTransportRequirementsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
268
|
+
data: {
|
|
269
|
+
productId: string;
|
|
270
|
+
optionId: string | null;
|
|
271
|
+
hasTransport: boolean;
|
|
272
|
+
requiresPassengerDocuments: boolean;
|
|
273
|
+
requiresPassport: boolean;
|
|
274
|
+
requiresNationality: boolean;
|
|
275
|
+
requiresDateOfBirth: boolean;
|
|
276
|
+
requiredFields: ("nationality" | "date_of_birth" | "passport_number" | "passport_expiry")[];
|
|
277
|
+
fieldsByScope: {
|
|
278
|
+
booking: ("nationality" | "date_of_birth" | "passport_number" | "passport_expiry")[];
|
|
279
|
+
lead_traveler: ("nationality" | "date_of_birth" | "passport_number" | "passport_expiry")[];
|
|
280
|
+
traveler: ("nationality" | "date_of_birth" | "passport_number" | "passport_expiry")[];
|
|
281
|
+
booker: ("nationality" | "date_of_birth" | "passport_number" | "passport_expiry")[];
|
|
282
|
+
};
|
|
283
|
+
requirements: {
|
|
284
|
+
fieldKey: "nationality" | "date_of_birth" | "passport_number" | "passport_expiry";
|
|
285
|
+
scope: "booking" | "traveler" | "lead_traveler" | "booker";
|
|
286
|
+
isRequired: boolean;
|
|
287
|
+
perTraveler: boolean;
|
|
288
|
+
notes: string | null;
|
|
289
|
+
}[];
|
|
290
|
+
};
|
|
291
|
+
}, Error, {
|
|
292
|
+
data: {
|
|
293
|
+
productId: string;
|
|
294
|
+
optionId: string | null;
|
|
295
|
+
hasTransport: boolean;
|
|
296
|
+
requiresPassengerDocuments: boolean;
|
|
297
|
+
requiresPassport: boolean;
|
|
298
|
+
requiresNationality: boolean;
|
|
299
|
+
requiresDateOfBirth: boolean;
|
|
300
|
+
requiredFields: ("nationality" | "date_of_birth" | "passport_number" | "passport_expiry")[];
|
|
301
|
+
fieldsByScope: {
|
|
302
|
+
booking: ("nationality" | "date_of_birth" | "passport_number" | "passport_expiry")[];
|
|
303
|
+
lead_traveler: ("nationality" | "date_of_birth" | "passport_number" | "passport_expiry")[];
|
|
304
|
+
traveler: ("nationality" | "date_of_birth" | "passport_number" | "passport_expiry")[];
|
|
305
|
+
booker: ("nationality" | "date_of_birth" | "passport_number" | "passport_expiry")[];
|
|
306
|
+
};
|
|
307
|
+
requirements: {
|
|
308
|
+
fieldKey: "nationality" | "date_of_birth" | "passport_number" | "passport_expiry";
|
|
309
|
+
scope: "booking" | "traveler" | "lead_traveler" | "booker";
|
|
310
|
+
isRequired: boolean;
|
|
311
|
+
perTraveler: boolean;
|
|
312
|
+
notes: string | null;
|
|
313
|
+
}[];
|
|
314
|
+
};
|
|
315
|
+
}, readonly ["voyant", "booking-requirements", "transport-requirements", "detail", import("./query-keys.js").TransportRequirementsFilters]>, "queryFn"> & {
|
|
316
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
317
|
+
data: {
|
|
318
|
+
productId: string;
|
|
319
|
+
optionId: string | null;
|
|
320
|
+
hasTransport: boolean;
|
|
321
|
+
requiresPassengerDocuments: boolean;
|
|
322
|
+
requiresPassport: boolean;
|
|
323
|
+
requiresNationality: boolean;
|
|
324
|
+
requiresDateOfBirth: boolean;
|
|
325
|
+
requiredFields: ("nationality" | "date_of_birth" | "passport_number" | "passport_expiry")[];
|
|
326
|
+
fieldsByScope: {
|
|
327
|
+
booking: ("nationality" | "date_of_birth" | "passport_number" | "passport_expiry")[];
|
|
328
|
+
lead_traveler: ("nationality" | "date_of_birth" | "passport_number" | "passport_expiry")[];
|
|
329
|
+
traveler: ("nationality" | "date_of_birth" | "passport_number" | "passport_expiry")[];
|
|
330
|
+
booker: ("nationality" | "date_of_birth" | "passport_number" | "passport_expiry")[];
|
|
331
|
+
};
|
|
332
|
+
requirements: {
|
|
333
|
+
fieldKey: "nationality" | "date_of_birth" | "passport_number" | "passport_expiry";
|
|
334
|
+
scope: "booking" | "traveler" | "lead_traveler" | "booker";
|
|
335
|
+
isRequired: boolean;
|
|
336
|
+
perTraveler: boolean;
|
|
337
|
+
notes: string | null;
|
|
338
|
+
}[];
|
|
339
|
+
};
|
|
340
|
+
}, readonly ["voyant", "booking-requirements", "transport-requirements", "detail", import("./query-keys.js").TransportRequirementsFilters], never> | undefined;
|
|
341
|
+
} & {
|
|
342
|
+
queryKey: readonly ["voyant", "booking-requirements", "transport-requirements", "detail", import("./query-keys.js").TransportRequirementsFilters] & {
|
|
343
|
+
[dataTagSymbol]: {
|
|
344
|
+
data: {
|
|
345
|
+
productId: string;
|
|
346
|
+
optionId: string | null;
|
|
347
|
+
hasTransport: boolean;
|
|
348
|
+
requiresPassengerDocuments: boolean;
|
|
349
|
+
requiresPassport: boolean;
|
|
350
|
+
requiresNationality: boolean;
|
|
351
|
+
requiresDateOfBirth: boolean;
|
|
352
|
+
requiredFields: ("nationality" | "date_of_birth" | "passport_number" | "passport_expiry")[];
|
|
353
|
+
fieldsByScope: {
|
|
354
|
+
booking: ("nationality" | "date_of_birth" | "passport_number" | "passport_expiry")[];
|
|
355
|
+
lead_traveler: ("nationality" | "date_of_birth" | "passport_number" | "passport_expiry")[];
|
|
356
|
+
traveler: ("nationality" | "date_of_birth" | "passport_number" | "passport_expiry")[];
|
|
357
|
+
booker: ("nationality" | "date_of_birth" | "passport_number" | "passport_expiry")[];
|
|
358
|
+
};
|
|
359
|
+
requirements: {
|
|
360
|
+
fieldKey: "nationality" | "date_of_birth" | "passport_number" | "passport_expiry";
|
|
361
|
+
scope: "booking" | "traveler" | "lead_traveler" | "booker";
|
|
362
|
+
isRequired: boolean;
|
|
363
|
+
perTraveler: boolean;
|
|
364
|
+
notes: string | null;
|
|
365
|
+
}[];
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
[dataTagErrorSymbol]: Error;
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
//# sourceMappingURL=query-options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-options.d.ts","sourceRoot":"","sources":["../../src/requirements/query-options.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,0BAA0B,EAAuB,MAAM,aAAa,CAAA;AAClF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAA;AAClF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAA;AACxF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AAChF,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAA;AAe5F,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,kBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBjC;AAED,wBAAgB,kCAAkC,CAChD,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,6BAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiB5C;AAED,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,0BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBzC;AAED,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,yBAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBxC;AAED,wBAAgB,oCAAoC,CAClD,MAAM,EAAE,0BAA0B,EAClC,OAAO,EAAE,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBzC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { queryOptions } from "@tanstack/react-query";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { fetchWithValidation } from "./client.js";
|
|
5
|
+
import { bookingRequirementsQueryKeys } from "./query-keys.js";
|
|
6
|
+
import { bookingQuestionListResponse, bookingQuestionOptionListResponse, contactRequirementListResponse, productLiteListResponse, publicTransportRequirementsSchema, } from "./schemas.js";
|
|
7
|
+
function appendPagination(params, filters) {
|
|
8
|
+
if (filters.limit !== undefined)
|
|
9
|
+
params.set("limit", String(filters.limit));
|
|
10
|
+
if (filters.offset !== undefined)
|
|
11
|
+
params.set("offset", String(filters.offset));
|
|
12
|
+
}
|
|
13
|
+
export function getProductsQueryOptions(client, options = {}) {
|
|
14
|
+
const { enabled: _enabled = true, ...filters } = options;
|
|
15
|
+
return queryOptions({
|
|
16
|
+
queryKey: bookingRequirementsQueryKeys.productsList(filters),
|
|
17
|
+
queryFn: () => {
|
|
18
|
+
const params = new URLSearchParams();
|
|
19
|
+
appendPagination(params, filters);
|
|
20
|
+
const qs = params.toString();
|
|
21
|
+
return fetchWithValidation(`/v1/products${qs ? `?${qs}` : ""}`, productLiteListResponse, client);
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
export function getContactRequirementsQueryOptions(client, options = {}) {
|
|
26
|
+
const { enabled: _enabled = true, ...filters } = options;
|
|
27
|
+
return queryOptions({
|
|
28
|
+
queryKey: bookingRequirementsQueryKeys.contactRequirementsList(filters),
|
|
29
|
+
queryFn: () => {
|
|
30
|
+
const params = new URLSearchParams();
|
|
31
|
+
if (filters.productId)
|
|
32
|
+
params.set("productId", filters.productId);
|
|
33
|
+
appendPagination(params, filters);
|
|
34
|
+
const qs = params.toString();
|
|
35
|
+
return fetchWithValidation(`/v1/booking-requirements/contact-requirements${qs ? `?${qs}` : ""}`, contactRequirementListResponse, client);
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
export function getBookingQuestionsQueryOptions(client, options = {}) {
|
|
40
|
+
const { enabled: _enabled = true, ...filters } = options;
|
|
41
|
+
return queryOptions({
|
|
42
|
+
queryKey: bookingRequirementsQueryKeys.questionsList(filters),
|
|
43
|
+
queryFn: () => {
|
|
44
|
+
const params = new URLSearchParams();
|
|
45
|
+
if (filters.productId)
|
|
46
|
+
params.set("productId", filters.productId);
|
|
47
|
+
appendPagination(params, filters);
|
|
48
|
+
const qs = params.toString();
|
|
49
|
+
return fetchWithValidation(`/v1/booking-requirements/questions${qs ? `?${qs}` : ""}`, bookingQuestionListResponse, client);
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
export function getQuestionOptionsQueryOptions(client, options = {}) {
|
|
54
|
+
const { enabled: _enabled = true, ...filters } = options;
|
|
55
|
+
return queryOptions({
|
|
56
|
+
queryKey: bookingRequirementsQueryKeys.questionOptionsList(filters),
|
|
57
|
+
queryFn: () => {
|
|
58
|
+
const params = new URLSearchParams();
|
|
59
|
+
if (filters.productBookingQuestionId) {
|
|
60
|
+
params.set("productBookingQuestionId", filters.productBookingQuestionId);
|
|
61
|
+
}
|
|
62
|
+
appendPagination(params, filters);
|
|
63
|
+
const qs = params.toString();
|
|
64
|
+
return fetchWithValidation(`/v1/booking-requirements/question-options${qs ? `?${qs}` : ""}`, bookingQuestionOptionListResponse, client);
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
export function getTransportRequirementsQueryOptions(client, options) {
|
|
69
|
+
const { enabled: _enabled = true, productId, optionId } = options;
|
|
70
|
+
return queryOptions({
|
|
71
|
+
queryKey: bookingRequirementsQueryKeys.transportRequirementsDetail({ productId, optionId }),
|
|
72
|
+
queryFn: () => {
|
|
73
|
+
const params = new URLSearchParams();
|
|
74
|
+
if (optionId)
|
|
75
|
+
params.set("optionId", optionId);
|
|
76
|
+
const qs = params.toString();
|
|
77
|
+
return fetchWithValidation(`/v1/public/booking-requirements/products/${productId}/transport-requirements${qs ? `?${qs}` : ""}`, z.object({ data: publicTransportRequirementsSchema }), client);
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
}
|