@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":"public-reporting.d.ts","sourceRoot":"","sources":["../../src/query-options/public-reporting.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { queryOptions } from "@tanstack/react-query";
|
|
3
|
+
import { fetchWithValidation } from "../client.js";
|
|
4
|
+
import { getAdminBookingPayments, getPublicBookingDocuments, getPublicBookingPaymentOptions, getPublicBookingPayments, getPublicFinanceDocumentByReference, getPublicPaymentSession, } from "../operations.js";
|
|
5
|
+
import { financeQueryKeys, } from "../query-keys.js";
|
|
6
|
+
import { accountantInvoicesResponse, accountantSharesResponse, accountantSummaryResponse, costCategoriesResponse, departureProfitabilityResponse, productProfitabilityResponse, travelerProfitabilityResponse, voucherDetailResponse, voucherListResponse, } from "../schemas.js";
|
|
7
|
+
export function getPublicBookingPaymentOptionsQueryOptions(client, bookingId, options = {}) {
|
|
8
|
+
const { enabled: _enabled = true, ...filters } = options;
|
|
9
|
+
return queryOptions({
|
|
10
|
+
queryKey: financeQueryKeys.publicBookingPaymentOptions(bookingId ?? "", filters),
|
|
11
|
+
queryFn: async () => {
|
|
12
|
+
if (!bookingId) {
|
|
13
|
+
throw new Error("getPublicBookingPaymentOptionsQueryOptions requires a bookingId");
|
|
14
|
+
}
|
|
15
|
+
return getPublicBookingPaymentOptions(client, bookingId, filters);
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export function getPublicBookingDocumentsQueryOptions(client, bookingId, options = {}) {
|
|
20
|
+
const { enabled: _enabled = true } = options;
|
|
21
|
+
return queryOptions({
|
|
22
|
+
queryKey: financeQueryKeys.publicBookingDocuments(bookingId ?? ""),
|
|
23
|
+
queryFn: async () => {
|
|
24
|
+
if (!bookingId) {
|
|
25
|
+
throw new Error("getPublicBookingDocumentsQueryOptions requires a bookingId");
|
|
26
|
+
}
|
|
27
|
+
return getPublicBookingDocuments(client, bookingId);
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
export function getPublicFinanceDocumentByReferenceQueryOptions(client, reference, options = {}) {
|
|
32
|
+
const { enabled: _enabled = true } = options;
|
|
33
|
+
return queryOptions({
|
|
34
|
+
queryKey: financeQueryKeys.publicFinanceDocumentLookup({ reference: reference ?? undefined }),
|
|
35
|
+
queryFn: async () => {
|
|
36
|
+
if (!reference) {
|
|
37
|
+
throw new Error("getPublicFinanceDocumentByReferenceQueryOptions requires a reference");
|
|
38
|
+
}
|
|
39
|
+
return getPublicFinanceDocumentByReference(client, { reference });
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
export function getPublicBookingPaymentsQueryOptions(client, bookingId, options = {}) {
|
|
44
|
+
const { enabled: _enabled = true } = options;
|
|
45
|
+
return queryOptions({
|
|
46
|
+
queryKey: financeQueryKeys.publicBookingPayments(bookingId ?? ""),
|
|
47
|
+
queryFn: async () => {
|
|
48
|
+
if (!bookingId) {
|
|
49
|
+
throw new Error("getPublicBookingPaymentsQueryOptions requires a bookingId");
|
|
50
|
+
}
|
|
51
|
+
return getPublicBookingPayments(client, bookingId);
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
export function getAdminBookingPaymentsQueryOptions(client, bookingId) {
|
|
56
|
+
return queryOptions({
|
|
57
|
+
queryKey: financeQueryKeys.adminBookingPayments(bookingId ?? ""),
|
|
58
|
+
queryFn: async () => {
|
|
59
|
+
if (!bookingId) {
|
|
60
|
+
throw new Error("getAdminBookingPaymentsQueryOptions requires a bookingId");
|
|
61
|
+
}
|
|
62
|
+
return getAdminBookingPayments(client, bookingId);
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
export function getPublicPaymentSessionQueryOptions(client, sessionId, options = {}) {
|
|
67
|
+
const { enabled: _enabled = true } = options;
|
|
68
|
+
return queryOptions({
|
|
69
|
+
queryKey: financeQueryKeys.publicPaymentSession(sessionId ?? ""),
|
|
70
|
+
queryFn: async () => {
|
|
71
|
+
if (!sessionId) {
|
|
72
|
+
throw new Error("getPublicPaymentSessionQueryOptions requires a sessionId");
|
|
73
|
+
}
|
|
74
|
+
return getPublicPaymentSession(client, sessionId);
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
export function getVouchersQueryOptions(client, options = {}) {
|
|
79
|
+
const { enabled: _enabled = true, ...filters } = options;
|
|
80
|
+
return queryOptions({
|
|
81
|
+
queryKey: financeQueryKeys.vouchersList(filters),
|
|
82
|
+
queryFn: () => {
|
|
83
|
+
const params = new URLSearchParams();
|
|
84
|
+
if (filters.status)
|
|
85
|
+
params.set("status", filters.status);
|
|
86
|
+
if (filters.issuedToPersonId)
|
|
87
|
+
params.set("issuedToPersonId", filters.issuedToPersonId);
|
|
88
|
+
if (filters.issuedToOrganizationId) {
|
|
89
|
+
params.set("issuedToOrganizationId", filters.issuedToOrganizationId);
|
|
90
|
+
}
|
|
91
|
+
if (filters.search)
|
|
92
|
+
params.set("search", filters.search);
|
|
93
|
+
if (filters.hasBalance !== undefined)
|
|
94
|
+
params.set("hasBalance", String(filters.hasBalance));
|
|
95
|
+
if (filters.limit !== undefined)
|
|
96
|
+
params.set("limit", String(filters.limit));
|
|
97
|
+
if (filters.offset !== undefined)
|
|
98
|
+
params.set("offset", String(filters.offset));
|
|
99
|
+
const qs = params.toString();
|
|
100
|
+
return fetchWithValidation(`/v1/admin/finance/vouchers${qs ? `?${qs}` : ""}`, voucherListResponse, client);
|
|
101
|
+
},
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
export function getVoucherQueryOptions(client, id, options = {}) {
|
|
105
|
+
const { enabled: _enabled = true } = options;
|
|
106
|
+
return queryOptions({
|
|
107
|
+
queryKey: financeQueryKeys.voucher(id ?? ""),
|
|
108
|
+
queryFn: async () => {
|
|
109
|
+
if (!id)
|
|
110
|
+
throw new Error("getVoucherQueryOptions requires an id");
|
|
111
|
+
return fetchWithValidation(`/v1/admin/finance/vouchers/${id}`, voucherDetailResponse, client);
|
|
112
|
+
},
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
export function getDepartureProfitabilityQueryOptions(client, filters = {}) {
|
|
116
|
+
return queryOptions({
|
|
117
|
+
queryKey: financeQueryKeys.departureProfitability(filters),
|
|
118
|
+
queryFn: () => {
|
|
119
|
+
const params = new URLSearchParams();
|
|
120
|
+
if (filters.from)
|
|
121
|
+
params.set("from", filters.from);
|
|
122
|
+
if (filters.to)
|
|
123
|
+
params.set("to", filters.to);
|
|
124
|
+
if (filters.productId)
|
|
125
|
+
params.set("productId", filters.productId);
|
|
126
|
+
if (filters.departureId)
|
|
127
|
+
params.set("departureId", filters.departureId);
|
|
128
|
+
if (filters.currency)
|
|
129
|
+
params.set("currency", filters.currency);
|
|
130
|
+
if (filters.baseCurrency)
|
|
131
|
+
params.set("baseCurrency", filters.baseCurrency);
|
|
132
|
+
const qs = params.toString();
|
|
133
|
+
return fetchWithValidation(`/v1/admin/finance/reports/profitability/departures${qs ? `?${qs}` : ""}`, departureProfitabilityResponse, client);
|
|
134
|
+
},
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
export function getProductProfitabilityQueryOptions(client, filters = {}) {
|
|
138
|
+
return queryOptions({
|
|
139
|
+
queryKey: financeQueryKeys.productProfitability(filters),
|
|
140
|
+
queryFn: () => {
|
|
141
|
+
const params = new URLSearchParams();
|
|
142
|
+
if (filters.from)
|
|
143
|
+
params.set("from", filters.from);
|
|
144
|
+
if (filters.to)
|
|
145
|
+
params.set("to", filters.to);
|
|
146
|
+
if (filters.currency)
|
|
147
|
+
params.set("currency", filters.currency);
|
|
148
|
+
if (filters.baseCurrency)
|
|
149
|
+
params.set("baseCurrency", filters.baseCurrency);
|
|
150
|
+
const qs = params.toString();
|
|
151
|
+
return fetchWithValidation(`/v1/admin/finance/reports/profitability/products${qs ? `?${qs}` : ""}`, productProfitabilityResponse, client);
|
|
152
|
+
},
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
export function getTravelerProfitabilityQueryOptions(client, filters) {
|
|
156
|
+
return queryOptions({
|
|
157
|
+
queryKey: financeQueryKeys.travelerProfitability(filters),
|
|
158
|
+
queryFn: () => {
|
|
159
|
+
const params = new URLSearchParams();
|
|
160
|
+
params.set("departureId", filters.departureId);
|
|
161
|
+
params.set("currency", filters.currency);
|
|
162
|
+
return fetchWithValidation(`/v1/admin/finance/reports/profitability/travelers?${params.toString()}`, travelerProfitabilityResponse, client);
|
|
163
|
+
},
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
export function getCostCategoriesQueryOptions(client, options = {}) {
|
|
167
|
+
return queryOptions({
|
|
168
|
+
queryKey: financeQueryKeys.costCategories(),
|
|
169
|
+
queryFn: () => fetchWithValidation(`/v1/admin/finance/cost-categories${options.includeArchived ? "?includeArchived=true" : ""}`, costCategoriesResponse, client),
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
export function getAccountantSharesQueryOptions(client) {
|
|
173
|
+
return queryOptions({
|
|
174
|
+
queryKey: financeQueryKeys.accountantShares(),
|
|
175
|
+
queryFn: () => fetchWithValidation("/v1/admin/finance/accountant-shares", accountantSharesResponse, client),
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
/** Public portal — `client` is an unauthenticated fetcher; `token` is the credential. */
|
|
179
|
+
export function getAccountantSummaryQueryOptions(client, token, baseCurrency) {
|
|
180
|
+
return queryOptions({
|
|
181
|
+
queryKey: financeQueryKeys.accountantSummary(token, baseCurrency),
|
|
182
|
+
queryFn: () => {
|
|
183
|
+
const qs = baseCurrency ? `?baseCurrency=${encodeURIComponent(baseCurrency)}` : "";
|
|
184
|
+
return fetchWithValidation(`/v1/public/finance/accountant/${encodeURIComponent(token)}/summary${qs}`, accountantSummaryResponse, client);
|
|
185
|
+
},
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
export function getAccountantInvoicesQueryOptions(client, token) {
|
|
189
|
+
return queryOptions({
|
|
190
|
+
queryKey: financeQueryKeys.accountantInvoices(token),
|
|
191
|
+
queryFn: () => fetchWithValidation(`/v1/public/finance/accountant/${encodeURIComponent(token)}/invoices`, accountantInvoicesResponse, client),
|
|
192
|
+
});
|
|
193
|
+
}
|
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
import type { FetchWithValidationOptions } from "./client.js";
|
|
2
|
+
import { type FinanceActionLedgerListInput } from "./operations.js";
|
|
3
|
+
export interface UseFinanceActionLedgerOptions extends FinanceActionLedgerListInput {
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function getInvoiceActionLedgerQueryOptions(client: FetchWithValidationOptions, invoiceId: string | null | undefined, options?: UseFinanceActionLedgerOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
7
|
+
data: {
|
|
8
|
+
id: string;
|
|
9
|
+
occurredAt: string;
|
|
10
|
+
actionName: string;
|
|
11
|
+
actionVersion: string;
|
|
12
|
+
actionKind: "reverse" | "read" | "update" | "delete" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
|
|
13
|
+
status: "failed" | "cancelled" | "expired" | "approved" | "denied" | "requested" | "awaiting_approval" | "succeeded" | "reversed" | "compensated" | "superseded";
|
|
14
|
+
evaluatedRisk: "medium" | "low" | "high" | "critical";
|
|
15
|
+
actorType: string | null;
|
|
16
|
+
principalType: "agent" | "api_key" | "workflow" | "system" | "user";
|
|
17
|
+
principalId: string;
|
|
18
|
+
principalSubtype: string | null;
|
|
19
|
+
sessionId: string | null;
|
|
20
|
+
apiTokenId: string | null;
|
|
21
|
+
internalRequest: boolean;
|
|
22
|
+
delegatedByPrincipalType: "agent" | "api_key" | "workflow" | "system" | "user" | null;
|
|
23
|
+
delegatedByPrincipalId: string | null;
|
|
24
|
+
delegationId: string | null;
|
|
25
|
+
callerType: string | null;
|
|
26
|
+
organizationId: string | null;
|
|
27
|
+
routeOrToolName: string | null;
|
|
28
|
+
workflowRunId: string | null;
|
|
29
|
+
workflowStepId: string | null;
|
|
30
|
+
correlationId: string | null;
|
|
31
|
+
causationActionId: string | null;
|
|
32
|
+
idempotencyScope: string | null;
|
|
33
|
+
idempotencyKey: string | null;
|
|
34
|
+
idempotencyFingerprint: string | null;
|
|
35
|
+
targetType: string;
|
|
36
|
+
targetId: string;
|
|
37
|
+
capabilityId: string | null;
|
|
38
|
+
capabilityVersion: string | null;
|
|
39
|
+
authorizationSource: string | null;
|
|
40
|
+
approvalId: string | null;
|
|
41
|
+
amendsActionId: string | null;
|
|
42
|
+
createdAt: string;
|
|
43
|
+
mutationSummary: string | null;
|
|
44
|
+
}[];
|
|
45
|
+
pageInfo: {
|
|
46
|
+
nextCursor: {
|
|
47
|
+
occurredAt: string;
|
|
48
|
+
id: string;
|
|
49
|
+
} | null;
|
|
50
|
+
};
|
|
51
|
+
}, Error, {
|
|
52
|
+
data: {
|
|
53
|
+
id: string;
|
|
54
|
+
occurredAt: string;
|
|
55
|
+
actionName: string;
|
|
56
|
+
actionVersion: string;
|
|
57
|
+
actionKind: "reverse" | "read" | "update" | "delete" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
|
|
58
|
+
status: "failed" | "cancelled" | "expired" | "approved" | "denied" | "requested" | "awaiting_approval" | "succeeded" | "reversed" | "compensated" | "superseded";
|
|
59
|
+
evaluatedRisk: "medium" | "low" | "high" | "critical";
|
|
60
|
+
actorType: string | null;
|
|
61
|
+
principalType: "agent" | "api_key" | "workflow" | "system" | "user";
|
|
62
|
+
principalId: string;
|
|
63
|
+
principalSubtype: string | null;
|
|
64
|
+
sessionId: string | null;
|
|
65
|
+
apiTokenId: string | null;
|
|
66
|
+
internalRequest: boolean;
|
|
67
|
+
delegatedByPrincipalType: "agent" | "api_key" | "workflow" | "system" | "user" | null;
|
|
68
|
+
delegatedByPrincipalId: string | null;
|
|
69
|
+
delegationId: string | null;
|
|
70
|
+
callerType: string | null;
|
|
71
|
+
organizationId: string | null;
|
|
72
|
+
routeOrToolName: string | null;
|
|
73
|
+
workflowRunId: string | null;
|
|
74
|
+
workflowStepId: string | null;
|
|
75
|
+
correlationId: string | null;
|
|
76
|
+
causationActionId: string | null;
|
|
77
|
+
idempotencyScope: string | null;
|
|
78
|
+
idempotencyKey: string | null;
|
|
79
|
+
idempotencyFingerprint: string | null;
|
|
80
|
+
targetType: string;
|
|
81
|
+
targetId: string;
|
|
82
|
+
capabilityId: string | null;
|
|
83
|
+
capabilityVersion: string | null;
|
|
84
|
+
authorizationSource: string | null;
|
|
85
|
+
approvalId: string | null;
|
|
86
|
+
amendsActionId: string | null;
|
|
87
|
+
createdAt: string;
|
|
88
|
+
mutationSummary: string | null;
|
|
89
|
+
}[];
|
|
90
|
+
pageInfo: {
|
|
91
|
+
nextCursor: {
|
|
92
|
+
occurredAt: string;
|
|
93
|
+
id: string;
|
|
94
|
+
} | null;
|
|
95
|
+
};
|
|
96
|
+
}, readonly ["voyant", "finance", "invoices", "detail", string, "action-ledger", import("./query-keys.js").FinanceActionLedgerListFilters]>, "queryFn"> & {
|
|
97
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
98
|
+
data: {
|
|
99
|
+
id: string;
|
|
100
|
+
occurredAt: string;
|
|
101
|
+
actionName: string;
|
|
102
|
+
actionVersion: string;
|
|
103
|
+
actionKind: "reverse" | "read" | "update" | "delete" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
|
|
104
|
+
status: "failed" | "cancelled" | "expired" | "approved" | "denied" | "requested" | "awaiting_approval" | "succeeded" | "reversed" | "compensated" | "superseded";
|
|
105
|
+
evaluatedRisk: "medium" | "low" | "high" | "critical";
|
|
106
|
+
actorType: string | null;
|
|
107
|
+
principalType: "agent" | "api_key" | "workflow" | "system" | "user";
|
|
108
|
+
principalId: string;
|
|
109
|
+
principalSubtype: string | null;
|
|
110
|
+
sessionId: string | null;
|
|
111
|
+
apiTokenId: string | null;
|
|
112
|
+
internalRequest: boolean;
|
|
113
|
+
delegatedByPrincipalType: "agent" | "api_key" | "workflow" | "system" | "user" | null;
|
|
114
|
+
delegatedByPrincipalId: string | null;
|
|
115
|
+
delegationId: string | null;
|
|
116
|
+
callerType: string | null;
|
|
117
|
+
organizationId: string | null;
|
|
118
|
+
routeOrToolName: string | null;
|
|
119
|
+
workflowRunId: string | null;
|
|
120
|
+
workflowStepId: string | null;
|
|
121
|
+
correlationId: string | null;
|
|
122
|
+
causationActionId: string | null;
|
|
123
|
+
idempotencyScope: string | null;
|
|
124
|
+
idempotencyKey: string | null;
|
|
125
|
+
idempotencyFingerprint: string | null;
|
|
126
|
+
targetType: string;
|
|
127
|
+
targetId: string;
|
|
128
|
+
capabilityId: string | null;
|
|
129
|
+
capabilityVersion: string | null;
|
|
130
|
+
authorizationSource: string | null;
|
|
131
|
+
approvalId: string | null;
|
|
132
|
+
amendsActionId: string | null;
|
|
133
|
+
createdAt: string;
|
|
134
|
+
mutationSummary: string | null;
|
|
135
|
+
}[];
|
|
136
|
+
pageInfo: {
|
|
137
|
+
nextCursor: {
|
|
138
|
+
occurredAt: string;
|
|
139
|
+
id: string;
|
|
140
|
+
} | null;
|
|
141
|
+
};
|
|
142
|
+
}, readonly ["voyant", "finance", "invoices", "detail", string, "action-ledger", import("./query-keys.js").FinanceActionLedgerListFilters], never> | undefined;
|
|
143
|
+
} & {
|
|
144
|
+
queryKey: readonly ["voyant", "finance", "invoices", "detail", string, "action-ledger", import("./query-keys.js").FinanceActionLedgerListFilters] & {
|
|
145
|
+
[dataTagSymbol]: {
|
|
146
|
+
data: {
|
|
147
|
+
id: string;
|
|
148
|
+
occurredAt: string;
|
|
149
|
+
actionName: string;
|
|
150
|
+
actionVersion: string;
|
|
151
|
+
actionKind: "reverse" | "read" | "update" | "delete" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
|
|
152
|
+
status: "failed" | "cancelled" | "expired" | "approved" | "denied" | "requested" | "awaiting_approval" | "succeeded" | "reversed" | "compensated" | "superseded";
|
|
153
|
+
evaluatedRisk: "medium" | "low" | "high" | "critical";
|
|
154
|
+
actorType: string | null;
|
|
155
|
+
principalType: "agent" | "api_key" | "workflow" | "system" | "user";
|
|
156
|
+
principalId: string;
|
|
157
|
+
principalSubtype: string | null;
|
|
158
|
+
sessionId: string | null;
|
|
159
|
+
apiTokenId: string | null;
|
|
160
|
+
internalRequest: boolean;
|
|
161
|
+
delegatedByPrincipalType: "agent" | "api_key" | "workflow" | "system" | "user" | null;
|
|
162
|
+
delegatedByPrincipalId: string | null;
|
|
163
|
+
delegationId: string | null;
|
|
164
|
+
callerType: string | null;
|
|
165
|
+
organizationId: string | null;
|
|
166
|
+
routeOrToolName: string | null;
|
|
167
|
+
workflowRunId: string | null;
|
|
168
|
+
workflowStepId: string | null;
|
|
169
|
+
correlationId: string | null;
|
|
170
|
+
causationActionId: string | null;
|
|
171
|
+
idempotencyScope: string | null;
|
|
172
|
+
idempotencyKey: string | null;
|
|
173
|
+
idempotencyFingerprint: string | null;
|
|
174
|
+
targetType: string;
|
|
175
|
+
targetId: string;
|
|
176
|
+
capabilityId: string | null;
|
|
177
|
+
capabilityVersion: string | null;
|
|
178
|
+
authorizationSource: string | null;
|
|
179
|
+
approvalId: string | null;
|
|
180
|
+
amendsActionId: string | null;
|
|
181
|
+
createdAt: string;
|
|
182
|
+
mutationSummary: string | null;
|
|
183
|
+
}[];
|
|
184
|
+
pageInfo: {
|
|
185
|
+
nextCursor: {
|
|
186
|
+
occurredAt: string;
|
|
187
|
+
id: string;
|
|
188
|
+
} | null;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
[dataTagErrorSymbol]: Error;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
export declare function getPaymentSessionActionLedgerQueryOptions(client: FetchWithValidationOptions, paymentSessionId: string | null | undefined, options?: UseFinanceActionLedgerOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
195
|
+
data: {
|
|
196
|
+
id: string;
|
|
197
|
+
occurredAt: string;
|
|
198
|
+
actionName: string;
|
|
199
|
+
actionVersion: string;
|
|
200
|
+
actionKind: "reverse" | "read" | "update" | "delete" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
|
|
201
|
+
status: "failed" | "cancelled" | "expired" | "approved" | "denied" | "requested" | "awaiting_approval" | "succeeded" | "reversed" | "compensated" | "superseded";
|
|
202
|
+
evaluatedRisk: "medium" | "low" | "high" | "critical";
|
|
203
|
+
actorType: string | null;
|
|
204
|
+
principalType: "agent" | "api_key" | "workflow" | "system" | "user";
|
|
205
|
+
principalId: string;
|
|
206
|
+
principalSubtype: string | null;
|
|
207
|
+
sessionId: string | null;
|
|
208
|
+
apiTokenId: string | null;
|
|
209
|
+
internalRequest: boolean;
|
|
210
|
+
delegatedByPrincipalType: "agent" | "api_key" | "workflow" | "system" | "user" | null;
|
|
211
|
+
delegatedByPrincipalId: string | null;
|
|
212
|
+
delegationId: string | null;
|
|
213
|
+
callerType: string | null;
|
|
214
|
+
organizationId: string | null;
|
|
215
|
+
routeOrToolName: string | null;
|
|
216
|
+
workflowRunId: string | null;
|
|
217
|
+
workflowStepId: string | null;
|
|
218
|
+
correlationId: string | null;
|
|
219
|
+
causationActionId: string | null;
|
|
220
|
+
idempotencyScope: string | null;
|
|
221
|
+
idempotencyKey: string | null;
|
|
222
|
+
idempotencyFingerprint: string | null;
|
|
223
|
+
targetType: string;
|
|
224
|
+
targetId: string;
|
|
225
|
+
capabilityId: string | null;
|
|
226
|
+
capabilityVersion: string | null;
|
|
227
|
+
authorizationSource: string | null;
|
|
228
|
+
approvalId: string | null;
|
|
229
|
+
amendsActionId: string | null;
|
|
230
|
+
createdAt: string;
|
|
231
|
+
mutationSummary: string | null;
|
|
232
|
+
}[];
|
|
233
|
+
pageInfo: {
|
|
234
|
+
nextCursor: {
|
|
235
|
+
occurredAt: string;
|
|
236
|
+
id: string;
|
|
237
|
+
} | null;
|
|
238
|
+
};
|
|
239
|
+
}, Error, {
|
|
240
|
+
data: {
|
|
241
|
+
id: string;
|
|
242
|
+
occurredAt: string;
|
|
243
|
+
actionName: string;
|
|
244
|
+
actionVersion: string;
|
|
245
|
+
actionKind: "reverse" | "read" | "update" | "delete" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
|
|
246
|
+
status: "failed" | "cancelled" | "expired" | "approved" | "denied" | "requested" | "awaiting_approval" | "succeeded" | "reversed" | "compensated" | "superseded";
|
|
247
|
+
evaluatedRisk: "medium" | "low" | "high" | "critical";
|
|
248
|
+
actorType: string | null;
|
|
249
|
+
principalType: "agent" | "api_key" | "workflow" | "system" | "user";
|
|
250
|
+
principalId: string;
|
|
251
|
+
principalSubtype: string | null;
|
|
252
|
+
sessionId: string | null;
|
|
253
|
+
apiTokenId: string | null;
|
|
254
|
+
internalRequest: boolean;
|
|
255
|
+
delegatedByPrincipalType: "agent" | "api_key" | "workflow" | "system" | "user" | null;
|
|
256
|
+
delegatedByPrincipalId: string | null;
|
|
257
|
+
delegationId: string | null;
|
|
258
|
+
callerType: string | null;
|
|
259
|
+
organizationId: string | null;
|
|
260
|
+
routeOrToolName: string | null;
|
|
261
|
+
workflowRunId: string | null;
|
|
262
|
+
workflowStepId: string | null;
|
|
263
|
+
correlationId: string | null;
|
|
264
|
+
causationActionId: string | null;
|
|
265
|
+
idempotencyScope: string | null;
|
|
266
|
+
idempotencyKey: string | null;
|
|
267
|
+
idempotencyFingerprint: string | null;
|
|
268
|
+
targetType: string;
|
|
269
|
+
targetId: string;
|
|
270
|
+
capabilityId: string | null;
|
|
271
|
+
capabilityVersion: string | null;
|
|
272
|
+
authorizationSource: string | null;
|
|
273
|
+
approvalId: string | null;
|
|
274
|
+
amendsActionId: string | null;
|
|
275
|
+
createdAt: string;
|
|
276
|
+
mutationSummary: string | null;
|
|
277
|
+
}[];
|
|
278
|
+
pageInfo: {
|
|
279
|
+
nextCursor: {
|
|
280
|
+
occurredAt: string;
|
|
281
|
+
id: string;
|
|
282
|
+
} | null;
|
|
283
|
+
};
|
|
284
|
+
}, readonly ["voyant", "finance", "payment-sessions", string, "action-ledger", import("./query-keys.js").FinanceActionLedgerListFilters]>, "queryFn"> & {
|
|
285
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
286
|
+
data: {
|
|
287
|
+
id: string;
|
|
288
|
+
occurredAt: string;
|
|
289
|
+
actionName: string;
|
|
290
|
+
actionVersion: string;
|
|
291
|
+
actionKind: "reverse" | "read" | "update" | "delete" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
|
|
292
|
+
status: "failed" | "cancelled" | "expired" | "approved" | "denied" | "requested" | "awaiting_approval" | "succeeded" | "reversed" | "compensated" | "superseded";
|
|
293
|
+
evaluatedRisk: "medium" | "low" | "high" | "critical";
|
|
294
|
+
actorType: string | null;
|
|
295
|
+
principalType: "agent" | "api_key" | "workflow" | "system" | "user";
|
|
296
|
+
principalId: string;
|
|
297
|
+
principalSubtype: string | null;
|
|
298
|
+
sessionId: string | null;
|
|
299
|
+
apiTokenId: string | null;
|
|
300
|
+
internalRequest: boolean;
|
|
301
|
+
delegatedByPrincipalType: "agent" | "api_key" | "workflow" | "system" | "user" | null;
|
|
302
|
+
delegatedByPrincipalId: string | null;
|
|
303
|
+
delegationId: string | null;
|
|
304
|
+
callerType: string | null;
|
|
305
|
+
organizationId: string | null;
|
|
306
|
+
routeOrToolName: string | null;
|
|
307
|
+
workflowRunId: string | null;
|
|
308
|
+
workflowStepId: string | null;
|
|
309
|
+
correlationId: string | null;
|
|
310
|
+
causationActionId: string | null;
|
|
311
|
+
idempotencyScope: string | null;
|
|
312
|
+
idempotencyKey: string | null;
|
|
313
|
+
idempotencyFingerprint: string | null;
|
|
314
|
+
targetType: string;
|
|
315
|
+
targetId: string;
|
|
316
|
+
capabilityId: string | null;
|
|
317
|
+
capabilityVersion: string | null;
|
|
318
|
+
authorizationSource: string | null;
|
|
319
|
+
approvalId: string | null;
|
|
320
|
+
amendsActionId: string | null;
|
|
321
|
+
createdAt: string;
|
|
322
|
+
mutationSummary: string | null;
|
|
323
|
+
}[];
|
|
324
|
+
pageInfo: {
|
|
325
|
+
nextCursor: {
|
|
326
|
+
occurredAt: string;
|
|
327
|
+
id: string;
|
|
328
|
+
} | null;
|
|
329
|
+
};
|
|
330
|
+
}, readonly ["voyant", "finance", "payment-sessions", string, "action-ledger", import("./query-keys.js").FinanceActionLedgerListFilters], never> | undefined;
|
|
331
|
+
} & {
|
|
332
|
+
queryKey: readonly ["voyant", "finance", "payment-sessions", string, "action-ledger", import("./query-keys.js").FinanceActionLedgerListFilters] & {
|
|
333
|
+
[dataTagSymbol]: {
|
|
334
|
+
data: {
|
|
335
|
+
id: string;
|
|
336
|
+
occurredAt: string;
|
|
337
|
+
actionName: string;
|
|
338
|
+
actionVersion: string;
|
|
339
|
+
actionKind: "reverse" | "read" | "update" | "delete" | "execute" | "create" | "approve" | "reject" | "compensate" | "duplicate";
|
|
340
|
+
status: "failed" | "cancelled" | "expired" | "approved" | "denied" | "requested" | "awaiting_approval" | "succeeded" | "reversed" | "compensated" | "superseded";
|
|
341
|
+
evaluatedRisk: "medium" | "low" | "high" | "critical";
|
|
342
|
+
actorType: string | null;
|
|
343
|
+
principalType: "agent" | "api_key" | "workflow" | "system" | "user";
|
|
344
|
+
principalId: string;
|
|
345
|
+
principalSubtype: string | null;
|
|
346
|
+
sessionId: string | null;
|
|
347
|
+
apiTokenId: string | null;
|
|
348
|
+
internalRequest: boolean;
|
|
349
|
+
delegatedByPrincipalType: "agent" | "api_key" | "workflow" | "system" | "user" | null;
|
|
350
|
+
delegatedByPrincipalId: string | null;
|
|
351
|
+
delegationId: string | null;
|
|
352
|
+
callerType: string | null;
|
|
353
|
+
organizationId: string | null;
|
|
354
|
+
routeOrToolName: string | null;
|
|
355
|
+
workflowRunId: string | null;
|
|
356
|
+
workflowStepId: string | null;
|
|
357
|
+
correlationId: string | null;
|
|
358
|
+
causationActionId: string | null;
|
|
359
|
+
idempotencyScope: string | null;
|
|
360
|
+
idempotencyKey: string | null;
|
|
361
|
+
idempotencyFingerprint: string | null;
|
|
362
|
+
targetType: string;
|
|
363
|
+
targetId: string;
|
|
364
|
+
capabilityId: string | null;
|
|
365
|
+
capabilityVersion: string | null;
|
|
366
|
+
authorizationSource: string | null;
|
|
367
|
+
approvalId: string | null;
|
|
368
|
+
amendsActionId: string | null;
|
|
369
|
+
createdAt: string;
|
|
370
|
+
mutationSummary: string | null;
|
|
371
|
+
}[];
|
|
372
|
+
pageInfo: {
|
|
373
|
+
nextCursor: {
|
|
374
|
+
occurredAt: string;
|
|
375
|
+
id: string;
|
|
376
|
+
} | null;
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
[dataTagErrorSymbol]: Error;
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
//# sourceMappingURL=query-options-action-ledger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-options-action-ledger.d.ts","sourceRoot":"","sources":["../src/query-options-action-ledger.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AAC7D,OAAO,EACL,KAAK,4BAA4B,EAGlC,MAAM,iBAAiB,CAAA;AAGxB,MAAM,WAAW,6BAA8B,SAAQ,4BAA4B;IACjF,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,kCAAkC,CAChD,MAAM,EAAE,0BAA0B,EAClC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACpC,OAAO,GAAE,6BAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkB5C;AAED,wBAAgB,yCAAyC,CACvD,MAAM,EAAE,0BAA0B,EAClC,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC3C,OAAO,GAAE,6BAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkB5C"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { queryOptions } from "@tanstack/react-query";
|
|
3
|
+
import { listInvoiceActionLedger, listPaymentSessionActionLedger, } from "./operations.js";
|
|
4
|
+
import { financeQueryKeys } from "./query-keys.js";
|
|
5
|
+
export function getInvoiceActionLedgerQueryOptions(client, invoiceId, options = {}) {
|
|
6
|
+
const { enabled: _enabled = true, ...ledgerOptions } = options;
|
|
7
|
+
return queryOptions({
|
|
8
|
+
queryKey: financeQueryKeys.invoiceActionLedger(invoiceId ?? "", {
|
|
9
|
+
cursorOccurredAt: ledgerOptions.cursor?.occurredAt,
|
|
10
|
+
cursorId: ledgerOptions.cursor?.id,
|
|
11
|
+
limit: ledgerOptions.limit,
|
|
12
|
+
}),
|
|
13
|
+
queryFn: async () => {
|
|
14
|
+
if (!invoiceId) {
|
|
15
|
+
throw new Error("getInvoiceActionLedgerQueryOptions requires an invoiceId");
|
|
16
|
+
}
|
|
17
|
+
return listInvoiceActionLedger(client, invoiceId, ledgerOptions);
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
export function getPaymentSessionActionLedgerQueryOptions(client, paymentSessionId, options = {}) {
|
|
22
|
+
const { enabled: _enabled = true, ...ledgerOptions } = options;
|
|
23
|
+
return queryOptions({
|
|
24
|
+
queryKey: financeQueryKeys.paymentSessionActionLedger(paymentSessionId ?? "", {
|
|
25
|
+
cursorOccurredAt: ledgerOptions.cursor?.occurredAt,
|
|
26
|
+
cursorId: ledgerOptions.cursor?.id,
|
|
27
|
+
limit: ledgerOptions.limit,
|
|
28
|
+
}),
|
|
29
|
+
queryFn: async () => {
|
|
30
|
+
if (!paymentSessionId) {
|
|
31
|
+
throw new Error("getPaymentSessionActionLedgerQueryOptions requires a paymentSessionId");
|
|
32
|
+
}
|
|
33
|
+
return listPaymentSessionActionLedger(client, paymentSessionId, ledgerOptions);
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
}
|