@voyant-travel/finance-react 0.119.5
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 +75 -0
- package/dist/admin/booking-invoices-widget.d.ts +19 -0
- package/dist/admin/booking-invoices-widget.d.ts.map +1 -0
- package/dist/admin/booking-invoices-widget.js +204 -0
- package/dist/admin/booking-payment-policy-widget.d.ts +21 -0
- package/dist/admin/booking-payment-policy-widget.d.ts.map +1 -0
- package/dist/admin/booking-payment-policy-widget.js +128 -0
- package/dist/admin/booking-pending-payment-sessions-widget.d.ts +24 -0
- package/dist/admin/booking-pending-payment-sessions-widget.d.ts.map +1 -0
- package/dist/admin/booking-pending-payment-sessions-widget.js +139 -0
- package/dist/admin/credit-note-dialog.d.ts +9 -0
- package/dist/admin/credit-note-dialog.d.ts.map +1 -0
- package/dist/admin/credit-note-dialog.js +70 -0
- package/dist/admin/finance-shared.d.ts +7 -0
- package/dist/admin/finance-shared.d.ts.map +1 -0
- package/dist/admin/finance-shared.js +30 -0
- package/dist/admin/index.d.ts +99 -0
- package/dist/admin/index.d.ts.map +1 -0
- package/dist/admin/index.js +286 -0
- package/dist/admin/invoice-detail-host.d.ts +19 -0
- package/dist/admin/invoice-detail-host.d.ts.map +1 -0
- package/dist/admin/invoice-detail-host.js +147 -0
- package/dist/admin/invoice-detail-sections.d.ts +31 -0
- package/dist/admin/invoice-detail-sections.d.ts.map +1 -0
- package/dist/admin/invoice-detail-sections.js +109 -0
- package/dist/admin/invoice-detail-skeleton.d.ts +11 -0
- package/dist/admin/invoice-detail-skeleton.d.ts.map +1 -0
- package/dist/admin/invoice-detail-skeleton.js +33 -0
- package/dist/admin/line-item-dialog.d.ts +10 -0
- package/dist/admin/line-item-dialog.d.ts.map +1 -0
- package/dist/admin/line-item-dialog.js +91 -0
- package/dist/admin/pages/invoice-detail.d.ts +8 -0
- package/dist/admin/pages/invoice-detail.d.ts.map +1 -0
- package/dist/admin/pages/invoice-detail.js +11 -0
- package/dist/admin/pages/invoices-index.d.ts +8 -0
- package/dist/admin/pages/invoices-index.d.ts.map +1 -0
- package/dist/admin/pages/invoices-index.js +14 -0
- package/dist/admin/pages/payment-detail.d.ts +8 -0
- package/dist/admin/pages/payment-detail.d.ts.map +1 -0
- package/dist/admin/pages/payment-detail.js +11 -0
- package/dist/admin/pages/payments-index.d.ts +9 -0
- package/dist/admin/pages/payments-index.d.ts.map +1 -0
- package/dist/admin/pages/payments-index.js +21 -0
- package/dist/admin/pages/profitability.d.ts +10 -0
- package/dist/admin/pages/profitability.d.ts.map +1 -0
- package/dist/admin/pages/profitability.js +32 -0
- package/dist/admin/pages/supplier-invoice-detail.d.ts +20 -0
- package/dist/admin/pages/supplier-invoice-detail.d.ts.map +1 -0
- package/dist/admin/pages/supplier-invoice-detail.js +102 -0
- package/dist/admin/pages/supplier-invoices-index.d.ts +9 -0
- package/dist/admin/pages/supplier-invoices-index.d.ts.map +1 -0
- package/dist/admin/pages/supplier-invoices-index.js +16 -0
- package/dist/admin/payment-detail-host.d.ts +12 -0
- package/dist/admin/payment-detail-host.d.ts.map +1 -0
- package/dist/admin/payment-detail-host.js +108 -0
- package/dist/admin/payment-detail-skeleton.d.ts +8 -0
- package/dist/admin/payment-detail-skeleton.d.ts.map +1 -0
- package/dist/admin/payment-detail-skeleton.js +15 -0
- package/dist/admin/payment-dialog.d.ts +9 -0
- package/dist/admin/payment-dialog.d.ts.map +1 -0
- package/dist/admin/payment-dialog.js +99 -0
- package/dist/admin/record-payment-dialog.d.ts +16 -0
- package/dist/admin/record-payment-dialog.d.ts.map +1 -0
- package/dist/admin/record-payment-dialog.js +219 -0
- package/dist/admin/supplier-payment-policy-widget.d.ts +18 -0
- package/dist/admin/supplier-payment-policy-widget.d.ts.map +1 -0
- package/dist/admin/supplier-payment-policy-widget.js +31 -0
- package/dist/admin/use-supplier-picker.d.ts +19 -0
- package/dist/admin/use-supplier-picker.d.ts.map +1 -0
- package/dist/admin/use-supplier-picker.js +30 -0
- package/dist/checkout-components/collect-payment-dialog.d.ts +45 -0
- package/dist/checkout-components/collect-payment-dialog.d.ts.map +1 -0
- package/dist/checkout-components/collect-payment-dialog.js +121 -0
- package/dist/checkout-components/payment-link-landing-page.d.ts +76 -0
- package/dist/checkout-components/payment-link-landing-page.d.ts.map +1 -0
- package/dist/checkout-components/payment-link-landing-page.js +173 -0
- package/dist/checkout-components/payment-step.d.ts +42 -0
- package/dist/checkout-components/payment-step.d.ts.map +1 -0
- package/dist/checkout-components/payment-step.js +113 -0
- package/dist/checkout-hooks/index.d.ts +5 -0
- package/dist/checkout-hooks/index.d.ts.map +1 -0
- package/dist/checkout-hooks/index.js +4 -0
- package/dist/checkout-hooks/use-checkout-payment-link-config.d.ts +20 -0
- package/dist/checkout-hooks/use-checkout-payment-link-config.d.ts.map +1 -0
- package/dist/checkout-hooks/use-checkout-payment-link-config.js +26 -0
- package/dist/checkout-hooks/use-collect-payment.d.ts +227 -0
- package/dist/checkout-hooks/use-collect-payment.d.ts.map +1 -0
- package/dist/checkout-hooks/use-collect-payment.js +80 -0
- package/dist/checkout-hooks/use-initiate-checkout-collection.d.ts +308 -0
- package/dist/checkout-hooks/use-initiate-checkout-collection.d.ts.map +1 -0
- package/dist/checkout-hooks/use-initiate-checkout-collection.js +35 -0
- package/dist/checkout-hooks/use-preview-checkout-collection.d.ts +65 -0
- package/dist/checkout-hooks/use-preview-checkout-collection.d.ts.map +1 -0
- package/dist/checkout-hooks/use-preview-checkout-collection.js +27 -0
- package/dist/checkout-i18n/en.d.ts +3 -0
- package/dist/checkout-i18n/en.d.ts.map +1 -0
- package/dist/checkout-i18n/en.js +127 -0
- package/dist/checkout-i18n/index.d.ts +5 -0
- package/dist/checkout-i18n/index.d.ts.map +1 -0
- package/dist/checkout-i18n/index.js +3 -0
- package/dist/checkout-i18n/messages.d.ts +121 -0
- package/dist/checkout-i18n/messages.d.ts.map +1 -0
- package/dist/checkout-i18n/messages.js +1 -0
- package/dist/checkout-i18n/provider.d.ts +26 -0
- package/dist/checkout-i18n/provider.d.ts.map +1 -0
- package/dist/checkout-i18n/provider.js +41 -0
- package/dist/checkout-i18n/ro.d.ts +3 -0
- package/dist/checkout-i18n/ro.d.ts.map +1 -0
- package/dist/checkout-i18n/ro.js +127 -0
- package/dist/checkout-types.d.ts +53 -0
- package/dist/checkout-types.d.ts.map +1 -0
- package/dist/checkout-types.js +1 -0
- package/dist/checkout-ui.d.ts +7 -0
- package/dist/checkout-ui.d.ts.map +1 -0
- package/dist/checkout-ui.js +4 -0
- package/dist/checkout.d.ts +5 -0
- package/dist/checkout.d.ts.map +1 -0
- package/dist/checkout.js +3 -0
- package/dist/client.d.ts +16 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +79 -0
- package/dist/components/accountant-portal/body.d.ts +8 -0
- package/dist/components/accountant-portal/body.d.ts.map +1 -0
- package/dist/components/accountant-portal/body.js +114 -0
- package/dist/components/accountant-portal/widgets.d.ts +13 -0
- package/dist/components/accountant-portal/widgets.d.ts.map +1 -0
- package/dist/components/accountant-portal/widgets.js +27 -0
- package/dist/components/accountant-portal.d.ts +10 -0
- package/dist/components/accountant-portal.d.ts.map +1 -0
- package/dist/components/accountant-portal.js +22 -0
- package/dist/components/accountant-share-dialog.d.ts +6 -0
- package/dist/components/accountant-share-dialog.d.ts.map +1 -0
- package/dist/components/accountant-share-dialog.js +53 -0
- package/dist/components/async-combobox.d.ts +33 -0
- package/dist/components/async-combobox.d.ts.map +1 -0
- package/dist/components/async-combobox.js +100 -0
- package/dist/components/booking-invoice-dialog.d.ts +63 -0
- package/dist/components/booking-invoice-dialog.d.ts.map +1 -0
- package/dist/components/booking-invoice-dialog.js +383 -0
- package/dist/components/cost-categories-page.d.ts +5 -0
- package/dist/components/cost-categories-page.d.ts.map +1 -0
- package/dist/components/cost-categories-page.js +30 -0
- package/dist/components/invoice-action-ledger-card.d.ts +15 -0
- package/dist/components/invoice-action-ledger-card.d.ts.map +1 -0
- package/dist/components/invoice-action-ledger-card.js +76 -0
- package/dist/components/invoice-bulk-actions.d.ts +10 -0
- package/dist/components/invoice-bulk-actions.d.ts.map +1 -0
- package/dist/components/invoice-bulk-actions.js +19 -0
- package/dist/components/invoice-detail-page/cards.d.ts +44 -0
- package/dist/components/invoice-detail-page/cards.d.ts.map +1 -0
- package/dist/components/invoice-detail-page/cards.js +43 -0
- package/dist/components/invoice-detail-page/header.d.ts +15 -0
- package/dist/components/invoice-detail-page/header.d.ts.map +1 -0
- package/dist/components/invoice-detail-page/header.js +30 -0
- package/dist/components/invoice-detail-page/notes-dialogs.d.ts +28 -0
- package/dist/components/invoice-detail-page/notes-dialogs.d.ts.map +1 -0
- package/dist/components/invoice-detail-page/notes-dialogs.js +104 -0
- package/dist/components/invoice-detail-page/primitives.d.ts +47 -0
- package/dist/components/invoice-detail-page/primitives.d.ts.map +1 -0
- package/dist/components/invoice-detail-page/primitives.js +76 -0
- package/dist/components/invoice-detail-page-with-action-ledger.d.ts +7 -0
- package/dist/components/invoice-detail-page-with-action-ledger.d.ts.map +1 -0
- package/dist/components/invoice-detail-page-with-action-ledger.js +11 -0
- package/dist/components/invoice-detail-page.d.ts +46 -0
- package/dist/components/invoice-detail-page.d.ts.map +1 -0
- package/dist/components/invoice-detail-page.js +134 -0
- package/dist/components/invoice-dialog.d.ts +9 -0
- package/dist/components/invoice-dialog.d.ts.map +1 -0
- package/dist/components/invoice-dialog.js +145 -0
- package/dist/components/invoice-number-series-dialog.d.ts +9 -0
- package/dist/components/invoice-number-series-dialog.d.ts.map +1 -0
- package/dist/components/invoice-number-series-dialog.js +134 -0
- package/dist/components/invoice-number-series-format.d.ts +3 -0
- package/dist/components/invoice-number-series-format.d.ts.map +1 -0
- package/dist/components/invoice-number-series-format.js +4 -0
- package/dist/components/invoice-number-series-page.d.ts +5 -0
- package/dist/components/invoice-number-series-page.d.ts.map +1 -0
- package/dist/components/invoice-number-series-page.js +55 -0
- package/dist/components/invoice-table-parts.d.ts +25 -0
- package/dist/components/invoice-table-parts.d.ts.map +1 -0
- package/dist/components/invoice-table-parts.js +32 -0
- package/dist/components/invoices-page-skeleton.d.ts +5 -0
- package/dist/components/invoices-page-skeleton.d.ts.map +1 -0
- package/dist/components/invoices-page-skeleton.js +13 -0
- package/dist/components/invoices-page.d.ts +6 -0
- package/dist/components/invoices-page.d.ts.map +1 -0
- package/dist/components/invoices-page.js +145 -0
- package/dist/components/payment-detail-page.d.ts +47 -0
- package/dist/components/payment-detail-page.d.ts.map +1 -0
- package/dist/components/payment-detail-page.js +90 -0
- package/dist/components/payment-policy-form.d.ts +49 -0
- package/dist/components/payment-policy-form.d.ts.map +1 -0
- package/dist/components/payment-policy-form.js +82 -0
- package/dist/components/payments-page/controls.d.ts +23 -0
- package/dist/components/payments-page/controls.d.ts.map +1 -0
- package/dist/components/payments-page/controls.js +20 -0
- package/dist/components/payments-page-skeleton.d.ts +5 -0
- package/dist/components/payments-page-skeleton.d.ts.map +1 -0
- package/dist/components/payments-page-skeleton.js +13 -0
- package/dist/components/payments-page.d.ts +20 -0
- package/dist/components/payments-page.d.ts.map +1 -0
- package/dist/components/payments-page.js +143 -0
- package/dist/components/profitability-page/sections.d.ts +24 -0
- package/dist/components/profitability-page/sections.d.ts.map +1 -0
- package/dist/components/profitability-page/sections.js +43 -0
- package/dist/components/profitability-page.d.ts +13 -0
- package/dist/components/profitability-page.d.ts.map +1 -0
- package/dist/components/profitability-page.js +175 -0
- package/dist/components/record-booking-payment-dialog/shared.d.ts +54 -0
- package/dist/components/record-booking-payment-dialog/shared.d.ts.map +1 -0
- package/dist/components/record-booking-payment-dialog/shared.js +47 -0
- package/dist/components/record-booking-payment-dialog.d.ts +4 -0
- package/dist/components/record-booking-payment-dialog.d.ts.map +1 -0
- package/dist/components/record-booking-payment-dialog.js +256 -0
- package/dist/components/supplier-invoice-detail-page/dialogs.d.ts +34 -0
- package/dist/components/supplier-invoice-detail-page/dialogs.d.ts.map +1 -0
- package/dist/components/supplier-invoice-detail-page/dialogs.js +119 -0
- package/dist/components/supplier-invoice-detail-page/shared.d.ts +64 -0
- package/dist/components/supplier-invoice-detail-page/shared.d.ts.map +1 -0
- package/dist/components/supplier-invoice-detail-page/shared.js +70 -0
- package/dist/components/supplier-invoice-detail-page.d.ts +4 -0
- package/dist/components/supplier-invoice-detail-page.d.ts.map +1 -0
- package/dist/components/supplier-invoice-detail-page.js +101 -0
- package/dist/components/supplier-invoice-form-dialog.d.ts +45 -0
- package/dist/components/supplier-invoice-form-dialog.d.ts.map +1 -0
- package/dist/components/supplier-invoice-form-dialog.js +102 -0
- package/dist/components/supplier-invoices-page.d.ts +14 -0
- package/dist/components/supplier-invoices-page.d.ts.map +1 -0
- package/dist/components/supplier-invoices-page.js +69 -0
- package/dist/components/supplier-payment-dialog.d.ts +7 -0
- package/dist/components/supplier-payment-dialog.d.ts.map +1 -0
- package/dist/components/supplier-payment-dialog.js +103 -0
- package/dist/components/taxes-page/policy-profile-sheet.d.ts +8 -0
- package/dist/components/taxes-page/policy-profile-sheet.d.ts.map +1 -0
- package/dist/components/taxes-page/policy-profile-sheet.js +52 -0
- package/dist/components/taxes-page/policy-rule-sheet.d.ts +10 -0
- package/dist/components/taxes-page/policy-rule-sheet.d.ts.map +1 -0
- package/dist/components/taxes-page/policy-rule-sheet.js +137 -0
- package/dist/components/taxes-page/shared.d.ts +128 -0
- package/dist/components/taxes-page/shared.d.ts.map +1 -0
- package/dist/components/taxes-page/shared.js +288 -0
- package/dist/components/taxes-page/sheets.d.ts +4 -0
- package/dist/components/taxes-page/sheets.d.ts.map +1 -0
- package/dist/components/taxes-page/sheets.js +3 -0
- package/dist/components/taxes-page/tax-sheet.d.ts +9 -0
- package/dist/components/taxes-page/tax-sheet.d.ts.map +1 -0
- package/dist/components/taxes-page/tax-sheet.js +108 -0
- package/dist/components/taxes-page.d.ts +4 -0
- package/dist/components/taxes-page.d.ts.map +1 -0
- package/dist/components/taxes-page.js +165 -0
- package/dist/hooks/index.d.ts +53 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +52 -0
- package/dist/hooks/use-accountant-share-mutation.d.ts +20 -0
- package/dist/hooks/use-accountant-share-mutation.d.ts.map +1 -0
- package/dist/hooks/use-accountant-share-mutation.js +27 -0
- package/dist/hooks/use-accountant-shares.d.ts +13 -0
- package/dist/hooks/use-accountant-shares.d.ts.map +1 -0
- package/dist/hooks/use-accountant-shares.js +8 -0
- package/dist/hooks/use-admin-booking-payments.d.ts +30 -0
- package/dist/hooks/use-admin-booking-payments.d.ts.map +1 -0
- package/dist/hooks/use-admin-booking-payments.js +18 -0
- package/dist/hooks/use-all-payments.d.ts +35 -0
- package/dist/hooks/use-all-payments.d.ts.map +1 -0
- package/dist/hooks/use-all-payments.js +12 -0
- package/dist/hooks/use-booking-guarantees.d.ts +82 -0
- package/dist/hooks/use-booking-guarantees.d.ts.map +1 -0
- package/dist/hooks/use-booking-guarantees.js +46 -0
- package/dist/hooks/use-booking-payment-schedule-regenerate-mutation.d.ts +44 -0
- package/dist/hooks/use-booking-payment-schedule-regenerate-mutation.d.ts.map +1 -0
- package/dist/hooks/use-booking-payment-schedule-regenerate-mutation.js +27 -0
- package/dist/hooks/use-booking-payment-schedules.d.ts +63 -0
- package/dist/hooks/use-booking-payment-schedules.d.ts.map +1 -0
- package/dist/hooks/use-booking-payment-schedules.js +47 -0
- package/dist/hooks/use-cost-categories.d.ts +14 -0
- package/dist/hooks/use-cost-categories.d.ts.map +1 -0
- package/dist/hooks/use-cost-categories.js +9 -0
- package/dist/hooks/use-cost-category-mutation.d.ts +31 -0
- package/dist/hooks/use-cost-category-mutation.d.ts.map +1 -0
- package/dist/hooks/use-cost-category-mutation.js +27 -0
- package/dist/hooks/use-departure-profitability.d.ts +56 -0
- package/dist/hooks/use-departure-profitability.d.ts.map +1 -0
- package/dist/hooks/use-departure-profitability.js +12 -0
- package/dist/hooks/use-finance-action-ledger.d.ts +94 -0
- package/dist/hooks/use-finance-action-ledger.d.ts.map +1 -0
- package/dist/hooks/use-finance-action-ledger.js +20 -0
- package/dist/hooks/use-invoice-attachment-mutation.d.ts +43 -0
- package/dist/hooks/use-invoice-attachment-mutation.d.ts.map +1 -0
- package/dist/hooks/use-invoice-attachment-mutation.js +39 -0
- package/dist/hooks/use-invoice-attachments.d.ts +18 -0
- package/dist/hooks/use-invoice-attachments.d.ts.map +1 -0
- package/dist/hooks/use-invoice-attachments.js +12 -0
- package/dist/hooks/use-invoice-bulk-status-mutation.d.ts +51 -0
- package/dist/hooks/use-invoice-bulk-status-mutation.d.ts.map +1 -0
- package/dist/hooks/use-invoice-bulk-status-mutation.js +66 -0
- package/dist/hooks/use-invoice-credit-note-mutation.d.ts +38 -0
- package/dist/hooks/use-invoice-credit-note-mutation.d.ts.map +1 -0
- package/dist/hooks/use-invoice-credit-note-mutation.js +35 -0
- package/dist/hooks/use-invoice-credit-notes.d.ts +17 -0
- package/dist/hooks/use-invoice-credit-notes.d.ts.map +1 -0
- package/dist/hooks/use-invoice-credit-notes.js +12 -0
- package/dist/hooks/use-invoice-fx-rate.d.ts +19 -0
- package/dist/hooks/use-invoice-fx-rate.d.ts.map +1 -0
- package/dist/hooks/use-invoice-fx-rate.js +13 -0
- package/dist/hooks/use-invoice-line-item-mutation.d.ts +40 -0
- package/dist/hooks/use-invoice-line-item-mutation.d.ts.map +1 -0
- package/dist/hooks/use-invoice-line-item-mutation.js +42 -0
- package/dist/hooks/use-invoice-line-items.d.ts +17 -0
- package/dist/hooks/use-invoice-line-items.d.ts.map +1 -0
- package/dist/hooks/use-invoice-line-items.js +12 -0
- package/dist/hooks/use-invoice-mutation.d.ts +225 -0
- package/dist/hooks/use-invoice-mutation.d.ts.map +1 -0
- package/dist/hooks/use-invoice-mutation.js +121 -0
- package/dist/hooks/use-invoice-note-mutation.d.ts +11 -0
- package/dist/hooks/use-invoice-note-mutation.d.ts.map +1 -0
- package/dist/hooks/use-invoice-note-mutation.js +23 -0
- package/dist/hooks/use-invoice-notes.d.ts +13 -0
- package/dist/hooks/use-invoice-notes.d.ts.map +1 -0
- package/dist/hooks/use-invoice-notes.js +12 -0
- package/dist/hooks/use-invoice-number-series-mutation.d.ts +62 -0
- package/dist/hooks/use-invoice-number-series-mutation.d.ts.map +1 -0
- package/dist/hooks/use-invoice-number-series-mutation.js +39 -0
- package/dist/hooks/use-invoice-number-series.d.ts +28 -0
- package/dist/hooks/use-invoice-number-series.d.ts.map +1 -0
- package/dist/hooks/use-invoice-number-series.js +12 -0
- package/dist/hooks/use-invoice-payment-mutation.d.ts +29 -0
- package/dist/hooks/use-invoice-payment-mutation.d.ts.map +1 -0
- package/dist/hooks/use-invoice-payment-mutation.js +35 -0
- package/dist/hooks/use-invoice-payments.d.ts +21 -0
- package/dist/hooks/use-invoice-payments.d.ts.map +1 -0
- package/dist/hooks/use-invoice-payments.js +12 -0
- package/dist/hooks/use-invoice.d.ts +32 -0
- package/dist/hooks/use-invoice.d.ts.map +1 -0
- package/dist/hooks/use-invoice.js +12 -0
- package/dist/hooks/use-invoices.d.ts +36 -0
- package/dist/hooks/use-invoices.d.ts.map +1 -0
- package/dist/hooks/use-invoices.js +12 -0
- package/dist/hooks/use-payment-mutation.d.ts +57 -0
- package/dist/hooks/use-payment-mutation.d.ts.map +1 -0
- package/dist/hooks/use-payment-mutation.js +59 -0
- package/dist/hooks/use-payment-session-mutation.d.ts +205 -0
- package/dist/hooks/use-payment-session-mutation.d.ts.map +1 -0
- package/dist/hooks/use-payment-session-mutation.js +38 -0
- package/dist/hooks/use-payment-sessions.d.ts +97 -0
- package/dist/hooks/use-payment-sessions.d.ts.map +1 -0
- package/dist/hooks/use-payment-sessions.js +17 -0
- package/dist/hooks/use-payment.d.ts +31 -0
- package/dist/hooks/use-payment.d.ts.map +1 -0
- package/dist/hooks/use-payment.js +12 -0
- package/dist/hooks/use-product-profitability.d.ts +52 -0
- package/dist/hooks/use-product-profitability.d.ts.map +1 -0
- package/dist/hooks/use-product-profitability.js +12 -0
- package/dist/hooks/use-public-booking-documents.d.ts +29 -0
- package/dist/hooks/use-public-booking-documents.d.ts.map +1 -0
- package/dist/hooks/use-public-booking-documents.js +12 -0
- package/dist/hooks/use-public-booking-payment-options.d.ts +47 -0
- package/dist/hooks/use-public-booking-payment-options.d.ts.map +1 -0
- package/dist/hooks/use-public-booking-payment-options.js +12 -0
- package/dist/hooks/use-public-booking-payments.d.ts +24 -0
- package/dist/hooks/use-public-booking-payments.d.ts.map +1 -0
- package/dist/hooks/use-public-booking-payments.js +12 -0
- package/dist/hooks/use-public-finance-document-by-reference.d.ts +27 -0
- package/dist/hooks/use-public-finance-document-by-reference.d.ts.map +1 -0
- package/dist/hooks/use-public-finance-document-by-reference.js +12 -0
- package/dist/hooks/use-public-payment-session-mutation.d.ts +82 -0
- package/dist/hooks/use-public-payment-session-mutation.d.ts.map +1 -0
- package/dist/hooks/use-public-payment-session-mutation.js +33 -0
- package/dist/hooks/use-public-payment-session.d.ts +73 -0
- package/dist/hooks/use-public-payment-session.d.ts.map +1 -0
- package/dist/hooks/use-public-payment-session.js +12 -0
- package/dist/hooks/use-public-voucher-validation-mutation.d.ts +23 -0
- package/dist/hooks/use-public-voucher-validation-mutation.d.ts.map +1 -0
- package/dist/hooks/use-public-voucher-validation-mutation.js +17 -0
- package/dist/hooks/use-supplier-invoice-attachments.d.ts +17 -0
- package/dist/hooks/use-supplier-invoice-attachments.d.ts.map +1 -0
- package/dist/hooks/use-supplier-invoice-attachments.js +12 -0
- package/dist/hooks/use-supplier-invoice-mutation.d.ts +353 -0
- package/dist/hooks/use-supplier-invoice-mutation.d.ts.map +1 -0
- package/dist/hooks/use-supplier-invoice-mutation.js +81 -0
- package/dist/hooks/use-supplier-invoice-payments.d.ts +26 -0
- package/dist/hooks/use-supplier-invoice-payments.d.ts.map +1 -0
- package/dist/hooks/use-supplier-invoice-payments.js +12 -0
- package/dist/hooks/use-supplier-invoice.d.ts +65 -0
- package/dist/hooks/use-supplier-invoice.d.ts.map +1 -0
- package/dist/hooks/use-supplier-invoice.js +12 -0
- package/dist/hooks/use-supplier-invoices.d.ts +36 -0
- package/dist/hooks/use-supplier-invoices.d.ts.map +1 -0
- package/dist/hooks/use-supplier-invoices.js +12 -0
- package/dist/hooks/use-supplier-payment-mutation.d.ts +55 -0
- package/dist/hooks/use-supplier-payment-mutation.d.ts.map +1 -0
- package/dist/hooks/use-supplier-payment-mutation.js +35 -0
- package/dist/hooks/use-supplier-payments.d.ts +27 -0
- package/dist/hooks/use-supplier-payments.d.ts.map +1 -0
- package/dist/hooks/use-supplier-payments.js +12 -0
- package/dist/hooks/use-traveler-profitability.d.ts +24 -0
- package/dist/hooks/use-traveler-profitability.d.ts.map +1 -0
- package/dist/hooks/use-traveler-profitability.js +11 -0
- package/dist/hooks/use-voucher-mutation.d.ts +105 -0
- package/dist/hooks/use-voucher-mutation.d.ts.map +1 -0
- package/dist/hooks/use-voucher-mutation.js +50 -0
- package/dist/hooks/use-voucher.d.ts +38 -0
- package/dist/hooks/use-voucher.d.ts.map +1 -0
- package/dist/hooks/use-voucher.js +17 -0
- package/dist/hooks/use-vouchers.d.ts +34 -0
- package/dist/hooks/use-vouchers.d.ts.map +1 -0
- package/dist/hooks/use-vouchers.js +18 -0
- package/dist/i18n/en/invoices.d.ts +278 -0
- package/dist/i18n/en/invoices.d.ts.map +1 -0
- package/dist/i18n/en/invoices.js +277 -0
- package/dist/i18n/en/numberingAndPayments.d.ts +387 -0
- package/dist/i18n/en/numberingAndPayments.d.ts.map +1 -0
- package/dist/i18n/en/numberingAndPayments.js +386 -0
- package/dist/i18n/en/profitability.d.ts +147 -0
- package/dist/i18n/en/profitability.d.ts.map +1 -0
- package/dist/i18n/en/profitability.js +146 -0
- package/dist/i18n/en/suppliers.d.ts +187 -0
- package/dist/i18n/en/suppliers.d.ts.map +1 -0
- package/dist/i18n/en/suppliers.js +186 -0
- package/dist/i18n/en.d.ts +998 -0
- package/dist/i18n/en.d.ts.map +1 -0
- package/dist/i18n/en.js +22 -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/core.d.ts +18 -0
- package/dist/i18n/messages/core.d.ts.map +1 -0
- package/dist/i18n/messages/core.js +30 -0
- package/dist/i18n/messages/invoices.d.ts +252 -0
- package/dist/i18n/messages/invoices.d.ts.map +1 -0
- package/dist/i18n/messages/invoices.js +1 -0
- package/dist/i18n/messages/numberingAndPayments.d.ts +277 -0
- package/dist/i18n/messages/numberingAndPayments.d.ts.map +1 -0
- package/dist/i18n/messages/numberingAndPayments.js +1 -0
- package/dist/i18n/messages/profitability.d.ts +151 -0
- package/dist/i18n/messages/profitability.d.ts.map +1 -0
- package/dist/i18n/messages/profitability.js +1 -0
- package/dist/i18n/messages/suppliers.d.ts +167 -0
- package/dist/i18n/messages/suppliers.d.ts.map +1 -0
- package/dist/i18n/messages/suppliers.js +1 -0
- package/dist/i18n/messages.d.ts +29 -0
- package/dist/i18n/messages.d.ts.map +1 -0
- package/dist/i18n/messages.js +1 -0
- package/dist/i18n/provider.d.ts +2018 -0
- package/dist/i18n/provider.d.ts.map +1 -0
- package/dist/i18n/provider.js +44 -0
- package/dist/i18n/ro/invoices.d.ts +278 -0
- package/dist/i18n/ro/invoices.d.ts.map +1 -0
- package/dist/i18n/ro/invoices.js +277 -0
- package/dist/i18n/ro/numberingAndPayments.d.ts +387 -0
- package/dist/i18n/ro/numberingAndPayments.d.ts.map +1 -0
- package/dist/i18n/ro/numberingAndPayments.js +386 -0
- package/dist/i18n/ro/profitability.d.ts +147 -0
- package/dist/i18n/ro/profitability.d.ts.map +1 -0
- package/dist/i18n/ro/profitability.js +146 -0
- package/dist/i18n/ro/suppliers.d.ts +187 -0
- package/dist/i18n/ro/suppliers.d.ts.map +1 -0
- package/dist/i18n/ro/suppliers.js +186 -0
- package/dist/i18n/ro.d.ts +998 -0
- package/dist/i18n/ro.d.ts.map +1 -0
- package/dist/i18n/ro.js +22 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/operations.d.ts +484 -0
- package/dist/operations.d.ts.map +1 -0
- package/dist/operations.js +52 -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 +195 -0
- package/dist/query-keys.d.ts.map +1 -0
- package/dist/query-keys.js +49 -0
- package/dist/query-options/public-reporting.d.ts +2129 -0
- package/dist/query-options/public-reporting.d.ts.map +1 -0
- package/dist/query-options/public-reporting.js +193 -0
- package/dist/query-options-action-ledger.d.ts +382 -0
- package/dist/query-options-action-ledger.d.ts.map +1 -0
- package/dist/query-options-action-ledger.js +36 -0
- package/dist/query-options.d.ts +2057 -0
- package/dist/query-options.d.ts.map +1 -0
- package/dist/query-options.js +328 -0
- package/dist/schemas/accountant.d.ts +168 -0
- package/dist/schemas/accountant.d.ts.map +1 -0
- package/dist/schemas/accountant.js +53 -0
- package/dist/schemas/action-ledger.d.ts +206 -0
- package/dist/schemas/action-ledger.d.ts.map +1 -0
- package/dist/schemas/action-ledger.js +83 -0
- package/dist/schemas/common.d.ts +17 -0
- package/dist/schemas/common.d.ts.map +1 -0
- package/dist/schemas/common.js +10 -0
- package/dist/schemas/invoice.d.ts +1451 -0
- package/dist/schemas/invoice.d.ts.map +1 -0
- package/dist/schemas/invoice.js +438 -0
- package/dist/schemas/profitability.d.ts +333 -0
- package/dist/schemas/profitability.d.ts.map +1 -0
- package/dist/schemas/profitability.js +84 -0
- package/dist/schemas/public.d.ts +481 -0
- package/dist/schemas/public.d.ts.map +1 -0
- package/dist/schemas/public.js +9 -0
- package/dist/schemas/responses.d.ts +632 -0
- package/dist/schemas/responses.d.ts.map +1 -0
- package/dist/schemas/responses.js +27 -0
- package/dist/schemas/supplier.d.ts +226 -0
- package/dist/schemas/supplier.d.ts.map +1 -0
- package/dist/schemas/supplier.js +103 -0
- package/dist/schemas/vouchers.d.ts +283 -0
- package/dist/schemas/vouchers.d.ts.map +1 -0
- package/dist/schemas/vouchers.js +49 -0
- package/dist/schemas.d.ts +10 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +9 -0
- package/dist/ui.d.ts +27 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +26 -0
- package/package.json +181 -0
- package/src/styles.css +12 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-payment.d.ts","sourceRoot":"","sources":["../../src/hooks/use-payment.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,OAAO,GAAE,iBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;UAQxF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useQuery } from "@tanstack/react-query";
|
|
3
|
+
import { useVoyantFinanceContext } from "../provider.js";
|
|
4
|
+
import { getPaymentQueryOptions } from "../query-options.js";
|
|
5
|
+
export function usePayment(id, options = {}) {
|
|
6
|
+
const { baseUrl, fetcher } = useVoyantFinanceContext();
|
|
7
|
+
const { enabled = true } = options;
|
|
8
|
+
return useQuery({
|
|
9
|
+
...getPaymentQueryOptions({ baseUrl, fetcher }, id),
|
|
10
|
+
enabled: enabled && Boolean(id),
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { FinanceProductProfitabilityFilters } from "../query-keys.js";
|
|
2
|
+
export interface UseProductProfitabilityOptions extends FinanceProductProfitabilityFilters {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function useProductProfitability(options?: UseProductProfitabilityOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
6
|
+
data: {
|
|
7
|
+
rows: {
|
|
8
|
+
productId: string;
|
|
9
|
+
productName: string | null;
|
|
10
|
+
currency: string;
|
|
11
|
+
departureCount: number;
|
|
12
|
+
revenueCents: number;
|
|
13
|
+
actualCostCents: number;
|
|
14
|
+
plannedCostCents: number;
|
|
15
|
+
profitCents: number;
|
|
16
|
+
marginPercent: number | null;
|
|
17
|
+
varianceCents: number;
|
|
18
|
+
}[];
|
|
19
|
+
costByServiceType: {
|
|
20
|
+
serviceType: string;
|
|
21
|
+
currency: string;
|
|
22
|
+
amountCents: number;
|
|
23
|
+
}[];
|
|
24
|
+
unattributed: {
|
|
25
|
+
currency: string;
|
|
26
|
+
amountCents: number;
|
|
27
|
+
}[];
|
|
28
|
+
base?: {
|
|
29
|
+
currency: string;
|
|
30
|
+
rows: {
|
|
31
|
+
productId: string;
|
|
32
|
+
productName: string | null;
|
|
33
|
+
currency: string;
|
|
34
|
+
departureCount: number;
|
|
35
|
+
revenueCents: number;
|
|
36
|
+
actualCostCents: number;
|
|
37
|
+
plannedCostCents: number;
|
|
38
|
+
profitCents: number;
|
|
39
|
+
marginPercent: number | null;
|
|
40
|
+
varianceCents: number;
|
|
41
|
+
}[];
|
|
42
|
+
costByServiceType: {
|
|
43
|
+
serviceType: string;
|
|
44
|
+
currency: string;
|
|
45
|
+
amountCents: number;
|
|
46
|
+
}[];
|
|
47
|
+
unattributedCents: number;
|
|
48
|
+
unconvertibleCurrencies: string[];
|
|
49
|
+
} | undefined;
|
|
50
|
+
};
|
|
51
|
+
}, Error>;
|
|
52
|
+
//# sourceMappingURL=use-product-profitability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-product-profitability.d.ts","sourceRoot":"","sources":["../../src/hooks/use-product-profitability.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,kBAAkB,CAAA;AAG1E,MAAM,WAAW,8BAA+B,SAAQ,kCAAkC;IACxF,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,8BAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAQnF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useQuery } from "@tanstack/react-query";
|
|
3
|
+
import { useVoyantFinanceContext } from "../provider.js";
|
|
4
|
+
import { getProductProfitabilityQueryOptions } from "../query-options.js";
|
|
5
|
+
export function useProductProfitability(options = {}) {
|
|
6
|
+
const { baseUrl, fetcher } = useVoyantFinanceContext();
|
|
7
|
+
const { enabled = true, ...filters } = options;
|
|
8
|
+
return useQuery({
|
|
9
|
+
...getProductProfitabilityQueryOptions({ baseUrl, fetcher }, filters),
|
|
10
|
+
enabled,
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface UsePublicBookingDocumentsOptions {
|
|
2
|
+
enabled?: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare function usePublicBookingDocuments(bookingId: string | null | undefined, options?: UsePublicBookingDocumentsOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
5
|
+
data: {
|
|
6
|
+
bookingId: string;
|
|
7
|
+
documents: {
|
|
8
|
+
invoiceId: string;
|
|
9
|
+
invoiceNumber: string;
|
|
10
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
11
|
+
invoiceStatus: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
|
|
12
|
+
currency: string;
|
|
13
|
+
totalCents: number;
|
|
14
|
+
paidCents: number;
|
|
15
|
+
balanceDueCents: number;
|
|
16
|
+
issueDate: string;
|
|
17
|
+
dueDate: string;
|
|
18
|
+
renditionId: string | null;
|
|
19
|
+
documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
|
|
20
|
+
format: "pdf" | "html" | "xml" | "json" | null;
|
|
21
|
+
language: string | null;
|
|
22
|
+
generatedAt: string | null;
|
|
23
|
+
fileSize: number | null;
|
|
24
|
+
checksum: string | null;
|
|
25
|
+
downloadUrl: string | null;
|
|
26
|
+
}[];
|
|
27
|
+
};
|
|
28
|
+
}, Error>;
|
|
29
|
+
//# sourceMappingURL=use-public-booking-documents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-public-booking-documents.d.ts","sourceRoot":"","sources":["../../src/hooks/use-public-booking-documents.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,gCAAgC;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACpC,OAAO,GAAE,gCAAqC;;;;;;;;;;;;;;;;;;;;;;;;UAS/C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useQuery } from "@tanstack/react-query";
|
|
3
|
+
import { useVoyantFinanceContext } from "../provider.js";
|
|
4
|
+
import { getPublicBookingDocumentsQueryOptions } from "../query-options.js";
|
|
5
|
+
export function usePublicBookingDocuments(bookingId, options = {}) {
|
|
6
|
+
const { baseUrl, fetcher } = useVoyantFinanceContext();
|
|
7
|
+
const { enabled = true } = options;
|
|
8
|
+
return useQuery({
|
|
9
|
+
...getPublicBookingDocumentsQueryOptions({ baseUrl, fetcher }, bookingId),
|
|
10
|
+
enabled: enabled && Boolean(bookingId),
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { PublicBookingPaymentOptionsFilters } from "../query-keys.js";
|
|
2
|
+
export interface UsePublicBookingPaymentOptionsOptions extends PublicBookingPaymentOptionsFilters {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function usePublicBookingPaymentOptions(bookingId: string | null | undefined, options?: UsePublicBookingPaymentOptionsOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
6
|
+
data: {
|
|
7
|
+
bookingId: string;
|
|
8
|
+
accounts: {
|
|
9
|
+
id: string;
|
|
10
|
+
label: string;
|
|
11
|
+
provider: string | null;
|
|
12
|
+
instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "voucher" | "other" | "bank_account";
|
|
13
|
+
status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
|
|
14
|
+
brand: string | null;
|
|
15
|
+
last4: string | null;
|
|
16
|
+
expiryMonth: number | null;
|
|
17
|
+
expiryYear: number | null;
|
|
18
|
+
isDefault: boolean;
|
|
19
|
+
}[];
|
|
20
|
+
schedules: {
|
|
21
|
+
id: string;
|
|
22
|
+
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
23
|
+
status: "paid" | "pending" | "cancelled" | "expired" | "due" | "waived";
|
|
24
|
+
dueDate: string;
|
|
25
|
+
currency: string;
|
|
26
|
+
amountCents: number;
|
|
27
|
+
notes: string | null;
|
|
28
|
+
}[];
|
|
29
|
+
guarantees: {
|
|
30
|
+
id: string;
|
|
31
|
+
bookingPaymentScheduleId: string | null;
|
|
32
|
+
guaranteeType: string;
|
|
33
|
+
status: string;
|
|
34
|
+
currency: string | null;
|
|
35
|
+
amountCents: number | null;
|
|
36
|
+
provider: string | null;
|
|
37
|
+
referenceNumber: string | null;
|
|
38
|
+
expiresAt: string | null;
|
|
39
|
+
notes: string | null;
|
|
40
|
+
}[];
|
|
41
|
+
recommendedTarget: {
|
|
42
|
+
targetType: "booking_payment_schedule" | "booking_guarantee" | null;
|
|
43
|
+
targetId: string | null;
|
|
44
|
+
} | null;
|
|
45
|
+
};
|
|
46
|
+
}, Error>;
|
|
47
|
+
//# sourceMappingURL=use-public-booking-payment-options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-public-booking-payment-options.d.ts","sourceRoot":"","sources":["../../src/hooks/use-public-booking-payment-options.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,kBAAkB,CAAA;AAG1E,MAAM,WAAW,qCAAsC,SAAQ,kCAAkC;IAC/F,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,8BAA8B,CAC5C,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACpC,OAAO,GAAE,qCAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UASpD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useQuery } from "@tanstack/react-query";
|
|
3
|
+
import { useVoyantFinanceContext } from "../provider.js";
|
|
4
|
+
import { getPublicBookingPaymentOptionsQueryOptions } from "../query-options.js";
|
|
5
|
+
export function usePublicBookingPaymentOptions(bookingId, options = {}) {
|
|
6
|
+
const { baseUrl, fetcher } = useVoyantFinanceContext();
|
|
7
|
+
const { enabled = true, ...filters } = options;
|
|
8
|
+
return useQuery({
|
|
9
|
+
...getPublicBookingPaymentOptionsQueryOptions({ baseUrl, fetcher }, bookingId, filters),
|
|
10
|
+
enabled: enabled && Boolean(bookingId),
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface UsePublicBookingPaymentsOptions {
|
|
2
|
+
enabled?: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare function usePublicBookingPayments(bookingId: string | null | undefined, options?: UsePublicBookingPaymentsOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
5
|
+
data: {
|
|
6
|
+
bookingId: string;
|
|
7
|
+
payments: {
|
|
8
|
+
id: string;
|
|
9
|
+
invoiceId: string;
|
|
10
|
+
invoiceNumber: string;
|
|
11
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
12
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
13
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
|
|
14
|
+
amountCents: number;
|
|
15
|
+
currency: string;
|
|
16
|
+
baseCurrency: string | null;
|
|
17
|
+
baseAmountCents: number | null;
|
|
18
|
+
paymentDate: string;
|
|
19
|
+
referenceNumber: string | null;
|
|
20
|
+
notes: string | null;
|
|
21
|
+
}[];
|
|
22
|
+
};
|
|
23
|
+
}, Error>;
|
|
24
|
+
//# sourceMappingURL=use-public-booking-payments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-public-booking-payments.d.ts","sourceRoot":"","sources":["../../src/hooks/use-public-booking-payments.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,+BAA+B;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACpC,OAAO,GAAE,+BAAoC;;;;;;;;;;;;;;;;;;;UAS9C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useQuery } from "@tanstack/react-query";
|
|
3
|
+
import { useVoyantFinanceContext } from "../provider.js";
|
|
4
|
+
import { getPublicBookingPaymentsQueryOptions } from "../query-options.js";
|
|
5
|
+
export function usePublicBookingPayments(bookingId, options = {}) {
|
|
6
|
+
const { baseUrl, fetcher } = useVoyantFinanceContext();
|
|
7
|
+
const { enabled = true } = options;
|
|
8
|
+
return useQuery({
|
|
9
|
+
...getPublicBookingPaymentsQueryOptions({ baseUrl, fetcher }, bookingId),
|
|
10
|
+
enabled: enabled && Boolean(bookingId),
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface UsePublicFinanceDocumentByReferenceOptions {
|
|
2
|
+
enabled?: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare function usePublicFinanceDocumentByReference(reference: string | null | undefined, options?: UsePublicFinanceDocumentByReferenceOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
5
|
+
data: {
|
|
6
|
+
invoiceId: string;
|
|
7
|
+
invoiceNumber: string;
|
|
8
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
9
|
+
invoiceStatus: "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue" | "void";
|
|
10
|
+
currency: string;
|
|
11
|
+
totalCents: number;
|
|
12
|
+
paidCents: number;
|
|
13
|
+
balanceDueCents: number;
|
|
14
|
+
issueDate: string;
|
|
15
|
+
dueDate: string;
|
|
16
|
+
renditionId: string | null;
|
|
17
|
+
documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
|
|
18
|
+
format: "pdf" | "html" | "xml" | "json" | null;
|
|
19
|
+
language: string | null;
|
|
20
|
+
generatedAt: string | null;
|
|
21
|
+
fileSize: number | null;
|
|
22
|
+
checksum: string | null;
|
|
23
|
+
downloadUrl: string | null;
|
|
24
|
+
bookingId: string;
|
|
25
|
+
};
|
|
26
|
+
}, Error>;
|
|
27
|
+
//# sourceMappingURL=use-public-finance-document-by-reference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-public-finance-document-by-reference.d.ts","sourceRoot":"","sources":["../../src/hooks/use-public-finance-document-by-reference.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,0CAA0C;IACzD,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,mCAAmC,CACjD,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACpC,OAAO,GAAE,0CAA+C;;;;;;;;;;;;;;;;;;;;;;UASzD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useQuery } from "@tanstack/react-query";
|
|
3
|
+
import { useVoyantFinanceContext } from "../provider.js";
|
|
4
|
+
import { getPublicFinanceDocumentByReferenceQueryOptions } from "../query-options.js";
|
|
5
|
+
export function usePublicFinanceDocumentByReference(reference, options = {}) {
|
|
6
|
+
const { baseUrl, fetcher } = useVoyantFinanceContext();
|
|
7
|
+
const { enabled = true } = options;
|
|
8
|
+
return useQuery({
|
|
9
|
+
...getPublicFinanceDocumentByReferenceQueryOptions({ baseUrl, fetcher }, reference),
|
|
10
|
+
enabled: enabled && Boolean(reference),
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { PublicStartPaymentSessionInput } from "../schemas.js";
|
|
2
|
+
export type StartPublicPaymentSessionTarget = {
|
|
3
|
+
targetType: "booking_payment_schedule";
|
|
4
|
+
bookingId: string;
|
|
5
|
+
targetId: string;
|
|
6
|
+
input: PublicStartPaymentSessionInput;
|
|
7
|
+
} | {
|
|
8
|
+
targetType: "booking_guarantee";
|
|
9
|
+
bookingId: string;
|
|
10
|
+
targetId: string;
|
|
11
|
+
input: PublicStartPaymentSessionInput;
|
|
12
|
+
};
|
|
13
|
+
export declare function usePublicPaymentSessionMutation(): import("@tanstack/react-query").UseMutationResult<{
|
|
14
|
+
data: {
|
|
15
|
+
legacyOrderId: string | null;
|
|
16
|
+
target: {
|
|
17
|
+
type: "booking";
|
|
18
|
+
bookingId: string;
|
|
19
|
+
} | {
|
|
20
|
+
type: "invoice";
|
|
21
|
+
invoiceId: string;
|
|
22
|
+
} | {
|
|
23
|
+
type: "booking_payment_schedule";
|
|
24
|
+
bookingPaymentScheduleId: string;
|
|
25
|
+
} | {
|
|
26
|
+
type: "booking_guarantee";
|
|
27
|
+
bookingGuaranteeId: string;
|
|
28
|
+
} | {
|
|
29
|
+
type: "flight_order";
|
|
30
|
+
flightOrderId: string;
|
|
31
|
+
} | {
|
|
32
|
+
type: "program";
|
|
33
|
+
programId: string;
|
|
34
|
+
} | {
|
|
35
|
+
type: "supplier_settlement";
|
|
36
|
+
supplierSettlementId: string;
|
|
37
|
+
} | {
|
|
38
|
+
type: "channel_settlement";
|
|
39
|
+
channelSettlementId: string;
|
|
40
|
+
} | {
|
|
41
|
+
type: "provider_reference";
|
|
42
|
+
provider: string;
|
|
43
|
+
reference: string;
|
|
44
|
+
} | {
|
|
45
|
+
type: "legacy_order";
|
|
46
|
+
legacyOrderId: string;
|
|
47
|
+
} | null;
|
|
48
|
+
provenance: {
|
|
49
|
+
source: "other" | "operator" | "storefront" | "customer_portal" | "payment_provider" | "supplier_channel" | "migration";
|
|
50
|
+
provider?: string | null | undefined;
|
|
51
|
+
reference?: string | null | undefined;
|
|
52
|
+
idempotencyKey?: string | null | undefined;
|
|
53
|
+
} | null;
|
|
54
|
+
id: string;
|
|
55
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
56
|
+
targetId: string | null;
|
|
57
|
+
bookingId: string | null;
|
|
58
|
+
invoiceId: string | null;
|
|
59
|
+
bookingPaymentScheduleId: string | null;
|
|
60
|
+
bookingGuaranteeId: string | null;
|
|
61
|
+
status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
|
|
62
|
+
provider: string | null;
|
|
63
|
+
providerSessionId: string | null;
|
|
64
|
+
providerPaymentId: string | null;
|
|
65
|
+
externalReference: string | null;
|
|
66
|
+
clientReference: string | null;
|
|
67
|
+
currency: string;
|
|
68
|
+
amountCents: number;
|
|
69
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
|
|
70
|
+
payerEmail: string | null;
|
|
71
|
+
payerName: string | null;
|
|
72
|
+
redirectUrl: string | null;
|
|
73
|
+
returnUrl: string | null;
|
|
74
|
+
cancelUrl: string | null;
|
|
75
|
+
expiresAt: string | null;
|
|
76
|
+
completedAt: string | null;
|
|
77
|
+
failureCode: string | null;
|
|
78
|
+
failureMessage: string | null;
|
|
79
|
+
notes: string | null;
|
|
80
|
+
};
|
|
81
|
+
}, Error, StartPublicPaymentSessionTarget, unknown>;
|
|
82
|
+
//# sourceMappingURL=use-public-payment-session-mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-public-payment-session-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-public-payment-session-mutation.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,eAAe,CAAA;AAEnE,MAAM,MAAM,+BAA+B,GACvC;IACE,UAAU,EAAE,0BAA0B,CAAA;IACtC,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,8BAA8B,CAAA;CACtC,GACD;IACE,UAAU,EAAE,mBAAmB,CAAA;IAC/B,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,8BAA8B,CAAA;CACtC,CAAA;AAEL,wBAAgB,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAsC9C"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
|
3
|
+
import { startPublicBookingGuaranteePaymentSession, startPublicBookingSchedulePaymentSession, } from "../operations.js";
|
|
4
|
+
import { useVoyantFinanceContext } from "../provider.js";
|
|
5
|
+
import { financeQueryKeys } from "../query-keys.js";
|
|
6
|
+
export function usePublicPaymentSessionMutation() {
|
|
7
|
+
const { baseUrl, fetcher } = useVoyantFinanceContext();
|
|
8
|
+
const queryClient = useQueryClient();
|
|
9
|
+
const client = { baseUrl, fetcher };
|
|
10
|
+
return useMutation({
|
|
11
|
+
mutationFn: async (payload) => {
|
|
12
|
+
switch (payload.targetType) {
|
|
13
|
+
case "booking_payment_schedule":
|
|
14
|
+
return startPublicBookingSchedulePaymentSession(client, payload.bookingId, payload.targetId, payload.input);
|
|
15
|
+
case "booking_guarantee":
|
|
16
|
+
return startPublicBookingGuaranteePaymentSession(client, payload.bookingId, payload.targetId, payload.input);
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
onSuccess: async (result, payload) => {
|
|
20
|
+
await Promise.all([
|
|
21
|
+
queryClient.invalidateQueries({
|
|
22
|
+
queryKey: financeQueryKeys.publicPaymentSession(result.data.id),
|
|
23
|
+
}),
|
|
24
|
+
queryClient.invalidateQueries({
|
|
25
|
+
queryKey: financeQueryKeys.publicCheckout(),
|
|
26
|
+
}),
|
|
27
|
+
queryClient.invalidateQueries({
|
|
28
|
+
queryKey: financeQueryKeys.publicBookingPaymentOptions(payload.bookingId, {}),
|
|
29
|
+
}),
|
|
30
|
+
]);
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export interface UsePublicPaymentSessionOptions {
|
|
2
|
+
enabled?: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare function usePublicPaymentSession(sessionId: string | null | undefined, options?: UsePublicPaymentSessionOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
5
|
+
data: {
|
|
6
|
+
legacyOrderId: string | null;
|
|
7
|
+
target: {
|
|
8
|
+
type: "booking";
|
|
9
|
+
bookingId: string;
|
|
10
|
+
} | {
|
|
11
|
+
type: "invoice";
|
|
12
|
+
invoiceId: string;
|
|
13
|
+
} | {
|
|
14
|
+
type: "booking_payment_schedule";
|
|
15
|
+
bookingPaymentScheduleId: string;
|
|
16
|
+
} | {
|
|
17
|
+
type: "booking_guarantee";
|
|
18
|
+
bookingGuaranteeId: string;
|
|
19
|
+
} | {
|
|
20
|
+
type: "flight_order";
|
|
21
|
+
flightOrderId: string;
|
|
22
|
+
} | {
|
|
23
|
+
type: "program";
|
|
24
|
+
programId: string;
|
|
25
|
+
} | {
|
|
26
|
+
type: "supplier_settlement";
|
|
27
|
+
supplierSettlementId: string;
|
|
28
|
+
} | {
|
|
29
|
+
type: "channel_settlement";
|
|
30
|
+
channelSettlementId: string;
|
|
31
|
+
} | {
|
|
32
|
+
type: "provider_reference";
|
|
33
|
+
provider: string;
|
|
34
|
+
reference: string;
|
|
35
|
+
} | {
|
|
36
|
+
type: "legacy_order";
|
|
37
|
+
legacyOrderId: string;
|
|
38
|
+
} | null;
|
|
39
|
+
provenance: {
|
|
40
|
+
source: "other" | "operator" | "storefront" | "customer_portal" | "payment_provider" | "supplier_channel" | "migration";
|
|
41
|
+
provider?: string | null | undefined;
|
|
42
|
+
reference?: string | null | undefined;
|
|
43
|
+
idempotencyKey?: string | null | undefined;
|
|
44
|
+
} | null;
|
|
45
|
+
id: string;
|
|
46
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
47
|
+
targetId: string | null;
|
|
48
|
+
bookingId: string | null;
|
|
49
|
+
invoiceId: string | null;
|
|
50
|
+
bookingPaymentScheduleId: string | null;
|
|
51
|
+
bookingGuaranteeId: string | null;
|
|
52
|
+
status: "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
|
|
53
|
+
provider: string | null;
|
|
54
|
+
providerSessionId: string | null;
|
|
55
|
+
providerPaymentId: string | null;
|
|
56
|
+
externalReference: string | null;
|
|
57
|
+
clientReference: string | null;
|
|
58
|
+
currency: string;
|
|
59
|
+
amountCents: number;
|
|
60
|
+
paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
|
|
61
|
+
payerEmail: string | null;
|
|
62
|
+
payerName: string | null;
|
|
63
|
+
redirectUrl: string | null;
|
|
64
|
+
returnUrl: string | null;
|
|
65
|
+
cancelUrl: string | null;
|
|
66
|
+
expiresAt: string | null;
|
|
67
|
+
completedAt: string | null;
|
|
68
|
+
failureCode: string | null;
|
|
69
|
+
failureMessage: string | null;
|
|
70
|
+
notes: string | null;
|
|
71
|
+
};
|
|
72
|
+
}, Error>;
|
|
73
|
+
//# sourceMappingURL=use-public-payment-session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-public-payment-session.d.ts","sourceRoot":"","sources":["../../src/hooks/use-public-payment-session.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,8BAA8B;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACpC,OAAO,GAAE,8BAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAS7C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useQuery } from "@tanstack/react-query";
|
|
3
|
+
import { useVoyantFinanceContext } from "../provider.js";
|
|
4
|
+
import { getPublicPaymentSessionQueryOptions } from "../query-options.js";
|
|
5
|
+
export function usePublicPaymentSession(sessionId, options = {}) {
|
|
6
|
+
const { baseUrl, fetcher } = useVoyantFinanceContext();
|
|
7
|
+
const { enabled = true } = options;
|
|
8
|
+
return useQuery({
|
|
9
|
+
...getPublicPaymentSessionQueryOptions({ baseUrl, fetcher }, sessionId),
|
|
10
|
+
enabled: enabled && Boolean(sessionId),
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare function usePublicVoucherValidationMutation(): import("@tanstack/react-query").UseMutationResult<{
|
|
2
|
+
data: {
|
|
3
|
+
valid: boolean;
|
|
4
|
+
reason: "expired" | "inactive" | "not_found" | "not_started" | "booking_mismatch" | "currency_mismatch" | "insufficient_balance" | null;
|
|
5
|
+
voucher: {
|
|
6
|
+
id: string;
|
|
7
|
+
code: string;
|
|
8
|
+
label: string | null;
|
|
9
|
+
provider: string | null;
|
|
10
|
+
currency: string | null;
|
|
11
|
+
amountCents: number | null;
|
|
12
|
+
remainingAmountCents: number | null;
|
|
13
|
+
expiresAt: string | null;
|
|
14
|
+
} | null;
|
|
15
|
+
};
|
|
16
|
+
}, Error, {
|
|
17
|
+
code: string;
|
|
18
|
+
provider?: string | null | undefined;
|
|
19
|
+
bookingId?: string | null | undefined;
|
|
20
|
+
currency?: string | null | undefined;
|
|
21
|
+
amountCents?: number | null | undefined;
|
|
22
|
+
}, unknown>;
|
|
23
|
+
//# sourceMappingURL=use-public-voucher-validation-mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-public-voucher-validation-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-public-voucher-validation-mutation.ts"],"names":[],"mappings":"AASA,wBAAgB,kCAAkC;;;;;;;;;;;;;;;;;;;;;YAajD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
|
3
|
+
import { validatePublicVoucher } from "../operations.js";
|
|
4
|
+
import { useVoyantFinanceContext } from "../provider.js";
|
|
5
|
+
import { financeQueryKeys } from "../query-keys.js";
|
|
6
|
+
export function usePublicVoucherValidationMutation() {
|
|
7
|
+
const { baseUrl, fetcher } = useVoyantFinanceContext();
|
|
8
|
+
const queryClient = useQueryClient();
|
|
9
|
+
return useMutation({
|
|
10
|
+
mutationFn: async (input) => validatePublicVoucher({ baseUrl, fetcher }, input),
|
|
11
|
+
onSuccess: async () => {
|
|
12
|
+
await queryClient.invalidateQueries({
|
|
13
|
+
queryKey: financeQueryKeys.publicVoucherValidation(),
|
|
14
|
+
});
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface UseSupplierInvoiceAttachmentsOptions {
|
|
2
|
+
enabled?: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare function useSupplierInvoiceAttachments(id: string | null | undefined, options?: UseSupplierInvoiceAttachmentsOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
5
|
+
data: {
|
|
6
|
+
id: string;
|
|
7
|
+
supplierInvoiceId: string;
|
|
8
|
+
kind: string;
|
|
9
|
+
name: string;
|
|
10
|
+
mimeType: string | null;
|
|
11
|
+
fileSize: number | null;
|
|
12
|
+
storageKey: string | null;
|
|
13
|
+
checksum: string | null;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
}[];
|
|
16
|
+
}, Error>;
|
|
17
|
+
//# sourceMappingURL=use-supplier-invoice-attachments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-supplier-invoice-attachments.d.ts","sourceRoot":"","sources":["../../src/hooks/use-supplier-invoice-attachments.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,oCAAoC;IACnD,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,6BAA6B,CAC3C,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC7B,OAAO,GAAE,oCAAyC;;;;;;;;;;;;UASnD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useQuery } from "@tanstack/react-query";
|
|
3
|
+
import { useVoyantFinanceContext } from "../provider.js";
|
|
4
|
+
import { getSupplierInvoiceAttachmentsQueryOptions } from "../query-options.js";
|
|
5
|
+
export function useSupplierInvoiceAttachments(id, options = {}) {
|
|
6
|
+
const { baseUrl, fetcher } = useVoyantFinanceContext();
|
|
7
|
+
const { enabled = true } = options;
|
|
8
|
+
return useQuery({
|
|
9
|
+
...getSupplierInvoiceAttachmentsQueryOptions({ baseUrl, fetcher }, id),
|
|
10
|
+
enabled: enabled && Boolean(id),
|
|
11
|
+
});
|
|
12
|
+
}
|