@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-supplier-payment-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-supplier-payment-mutation.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,aAAa,EAAE,eAAe,GAAG,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;IAC5E,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,CAAA;IACvD,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB;AAED,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAA;AAM5E,wBAAgB,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAqBE,MAAM;eAAS,0BAA0B;;EAgBpF"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { fetchWithValidation } from "../client.js";
|
|
5
|
+
import { useVoyantFinanceContext } from "../provider.js";
|
|
6
|
+
import { financeQueryKeys } from "../query-keys.js";
|
|
7
|
+
import { supplierPaymentRecordSchema } from "../schemas.js";
|
|
8
|
+
const supplierPaymentSingleResponse = z.object({
|
|
9
|
+
data: supplierPaymentRecordSchema,
|
|
10
|
+
});
|
|
11
|
+
export function useSupplierPaymentMutation() {
|
|
12
|
+
const { baseUrl, fetcher } = useVoyantFinanceContext();
|
|
13
|
+
const queryClient = useQueryClient();
|
|
14
|
+
const create = useMutation({
|
|
15
|
+
mutationFn: async (input) => {
|
|
16
|
+
const { data } = await fetchWithValidation("/v1/admin/finance/supplier-payments", supplierPaymentSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
17
|
+
return data;
|
|
18
|
+
},
|
|
19
|
+
onSuccess: () => {
|
|
20
|
+
void queryClient.invalidateQueries({ queryKey: financeQueryKeys.supplierPayments() });
|
|
21
|
+
void queryClient.invalidateQueries({ queryKey: financeQueryKeys.allPayments() });
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
const update = useMutation({
|
|
25
|
+
mutationFn: async ({ id, input }) => {
|
|
26
|
+
const { data } = await fetchWithValidation(`/v1/admin/finance/supplier-payments/${id}`, supplierPaymentSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
27
|
+
return data;
|
|
28
|
+
},
|
|
29
|
+
onSuccess: () => {
|
|
30
|
+
void queryClient.invalidateQueries({ queryKey: financeQueryKeys.supplierPayments() });
|
|
31
|
+
void queryClient.invalidateQueries({ queryKey: financeQueryKeys.allPayments() });
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
return { create, update };
|
|
35
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { FinanceSupplierPaymentListFilters } from "../query-keys.js";
|
|
2
|
+
export interface UseSupplierPaymentsOptions extends FinanceSupplierPaymentListFilters {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function useSupplierPayments(options?: UseSupplierPaymentsOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
6
|
+
data: {
|
|
7
|
+
id: string;
|
|
8
|
+
bookingId: string | null;
|
|
9
|
+
supplierId: string | null;
|
|
10
|
+
amountCents: number;
|
|
11
|
+
currency: string;
|
|
12
|
+
paymentMethod: string;
|
|
13
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
14
|
+
referenceNumber: string | null;
|
|
15
|
+
paymentDate: string;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
supplierInvoiceId?: string | null | undefined;
|
|
18
|
+
baseCurrency?: string | null | undefined;
|
|
19
|
+
baseAmountCents?: number | null | undefined;
|
|
20
|
+
fxRateSetId?: string | null | undefined;
|
|
21
|
+
notes?: string | null | undefined;
|
|
22
|
+
}[];
|
|
23
|
+
total: number;
|
|
24
|
+
limit: number;
|
|
25
|
+
offset: number;
|
|
26
|
+
}, Error>;
|
|
27
|
+
//# sourceMappingURL=use-supplier-payments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-supplier-payments.d.ts","sourceRoot":"","sources":["../../src/hooks/use-supplier-payments.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,kBAAkB,CAAA;AAGzE,MAAM,WAAW,0BAA2B,SAAQ,iCAAiC;IACnF,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,0BAA+B;;;;;;;;;;;;;;;;;;;;;UAQ3E"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useQuery } from "@tanstack/react-query";
|
|
3
|
+
import { useVoyantFinanceContext } from "../provider.js";
|
|
4
|
+
import { getSupplierPaymentsQueryOptions } from "../query-options.js";
|
|
5
|
+
export function useSupplierPayments(options = {}) {
|
|
6
|
+
const { baseUrl, fetcher } = useVoyantFinanceContext();
|
|
7
|
+
const { enabled = true, ...filters } = options;
|
|
8
|
+
return useQuery({
|
|
9
|
+
...getSupplierPaymentsQueryOptions({ baseUrl, fetcher }, filters),
|
|
10
|
+
enabled,
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { FinanceTravelerProfitabilityFilters } from "../query-keys.js";
|
|
2
|
+
export interface UseTravelerProfitabilityOptions extends FinanceTravelerProfitabilityFilters {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function useTravelerProfitability({ enabled, ...filters }: UseTravelerProfitabilityOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
6
|
+
data: {
|
|
7
|
+
departureId: string;
|
|
8
|
+
currency: string;
|
|
9
|
+
travelerCount: number;
|
|
10
|
+
rows: {
|
|
11
|
+
travelerId: string;
|
|
12
|
+
travelerName: string;
|
|
13
|
+
bookingId: string;
|
|
14
|
+
currency: string;
|
|
15
|
+
revenueCents: number;
|
|
16
|
+
actualCostCents: number;
|
|
17
|
+
plannedCostCents: number;
|
|
18
|
+
profitCents: number;
|
|
19
|
+
marginPercent: number | null;
|
|
20
|
+
varianceCents: number;
|
|
21
|
+
}[];
|
|
22
|
+
};
|
|
23
|
+
}, Error>;
|
|
24
|
+
//# sourceMappingURL=use-traveler-profitability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-traveler-profitability.d.ts","sourceRoot":"","sources":["../../src/hooks/use-traveler-profitability.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,kBAAkB,CAAA;AAG3E,MAAM,WAAW,+BAAgC,SAAQ,mCAAmC;IAC1F,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,wBAAwB,CAAC,EACvC,OAAc,EACd,GAAG,OAAO,EACX,EAAE,+BAA+B;;;;;;;;;;;;;;;;;;UAOjC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useQuery } from "@tanstack/react-query";
|
|
3
|
+
import { useVoyantFinanceContext } from "../provider.js";
|
|
4
|
+
import { getTravelerProfitabilityQueryOptions } from "../query-options.js";
|
|
5
|
+
export function useTravelerProfitability({ enabled = true, ...filters }) {
|
|
6
|
+
const { baseUrl, fetcher } = useVoyantFinanceContext();
|
|
7
|
+
return useQuery({
|
|
8
|
+
...getTravelerProfitabilityQueryOptions({ baseUrl, fetcher }, filters),
|
|
9
|
+
enabled: enabled && Boolean(filters.departureId) && Boolean(filters.currency),
|
|
10
|
+
});
|
|
11
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { type VoucherRecord } from "../schemas.js";
|
|
2
|
+
export interface IssueVoucherInput {
|
|
3
|
+
code?: string | null;
|
|
4
|
+
currency: string;
|
|
5
|
+
amountCents: number;
|
|
6
|
+
issuedToPersonId?: string | null;
|
|
7
|
+
issuedToOrganizationId?: string | null;
|
|
8
|
+
sourceType: "refund" | "cancellation_credit" | "gift" | "manual" | "promo";
|
|
9
|
+
sourceBookingId?: string | null;
|
|
10
|
+
sourcePaymentId?: string | null;
|
|
11
|
+
expiresAt?: string | null;
|
|
12
|
+
notes?: string | null;
|
|
13
|
+
}
|
|
14
|
+
export interface UpdateVoucherInput {
|
|
15
|
+
status?: VoucherRecord["status"];
|
|
16
|
+
expiresAt?: string | null;
|
|
17
|
+
notes?: string | null;
|
|
18
|
+
issuedToPersonId?: string | null;
|
|
19
|
+
issuedToOrganizationId?: string | null;
|
|
20
|
+
}
|
|
21
|
+
export interface RedeemVoucherInput {
|
|
22
|
+
bookingId: string;
|
|
23
|
+
amountCents: number;
|
|
24
|
+
paymentId?: string | null;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Voucher mutations: issue a new voucher, update metadata (status / expiry /
|
|
28
|
+
* notes / assignment — NOT balance), or redeem against a booking. The redeem
|
|
29
|
+
* mutation is the only path that decrements `remainingAmountCents`; the
|
|
30
|
+
* server runs it transactionally with a redemption row.
|
|
31
|
+
*/
|
|
32
|
+
export declare function useVoucherMutation(): {
|
|
33
|
+
issue: import("@tanstack/react-query").UseMutationResult<{
|
|
34
|
+
id: string;
|
|
35
|
+
code: string;
|
|
36
|
+
status: "void" | "expired" | "active" | "redeemed";
|
|
37
|
+
currency: string;
|
|
38
|
+
initialAmountCents: number;
|
|
39
|
+
remainingAmountCents: number;
|
|
40
|
+
issuedToPersonId: string | null;
|
|
41
|
+
issuedToOrganizationId: string | null;
|
|
42
|
+
sourceType: "manual" | "refund" | "cancellation_credit" | "gift" | "promo";
|
|
43
|
+
sourceBookingId: string | null;
|
|
44
|
+
sourcePaymentId: string | null;
|
|
45
|
+
expiresAt: Date | null;
|
|
46
|
+
notes: string | null;
|
|
47
|
+
issuedByUserId: string | null;
|
|
48
|
+
createdAt: Date;
|
|
49
|
+
updatedAt: Date;
|
|
50
|
+
}, Error, IssueVoucherInput, unknown>;
|
|
51
|
+
update: import("@tanstack/react-query").UseMutationResult<{
|
|
52
|
+
id: string;
|
|
53
|
+
code: string;
|
|
54
|
+
status: "void" | "expired" | "active" | "redeemed";
|
|
55
|
+
currency: string;
|
|
56
|
+
initialAmountCents: number;
|
|
57
|
+
remainingAmountCents: number;
|
|
58
|
+
issuedToPersonId: string | null;
|
|
59
|
+
issuedToOrganizationId: string | null;
|
|
60
|
+
sourceType: "manual" | "refund" | "cancellation_credit" | "gift" | "promo";
|
|
61
|
+
sourceBookingId: string | null;
|
|
62
|
+
sourcePaymentId: string | null;
|
|
63
|
+
expiresAt: Date | null;
|
|
64
|
+
notes: string | null;
|
|
65
|
+
issuedByUserId: string | null;
|
|
66
|
+
createdAt: Date;
|
|
67
|
+
updatedAt: Date;
|
|
68
|
+
}, Error, {
|
|
69
|
+
id: string;
|
|
70
|
+
input: UpdateVoucherInput;
|
|
71
|
+
}, unknown>;
|
|
72
|
+
redeem: import("@tanstack/react-query").UseMutationResult<{
|
|
73
|
+
voucher: {
|
|
74
|
+
id: string;
|
|
75
|
+
code: string;
|
|
76
|
+
status: "void" | "expired" | "active" | "redeemed";
|
|
77
|
+
currency: string;
|
|
78
|
+
initialAmountCents: number;
|
|
79
|
+
remainingAmountCents: number;
|
|
80
|
+
issuedToPersonId: string | null;
|
|
81
|
+
issuedToOrganizationId: string | null;
|
|
82
|
+
sourceType: "manual" | "refund" | "cancellation_credit" | "gift" | "promo";
|
|
83
|
+
sourceBookingId: string | null;
|
|
84
|
+
sourcePaymentId: string | null;
|
|
85
|
+
expiresAt: Date | null;
|
|
86
|
+
notes: string | null;
|
|
87
|
+
issuedByUserId: string | null;
|
|
88
|
+
createdAt: Date;
|
|
89
|
+
updatedAt: Date;
|
|
90
|
+
};
|
|
91
|
+
redemption: {
|
|
92
|
+
id: string;
|
|
93
|
+
voucherId: string;
|
|
94
|
+
bookingId: string;
|
|
95
|
+
paymentId: string | null;
|
|
96
|
+
amountCents: number;
|
|
97
|
+
createdByUserId: string | null;
|
|
98
|
+
createdAt: Date;
|
|
99
|
+
} | null;
|
|
100
|
+
}, Error, {
|
|
101
|
+
id: string;
|
|
102
|
+
input: RedeemVoucherInput;
|
|
103
|
+
}, unknown>;
|
|
104
|
+
};
|
|
105
|
+
//# sourceMappingURL=use-voucher-mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-voucher-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-voucher-mutation.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,aAAa,EAInB,MAAM,eAAe,CAAA;AAEtB,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtC,UAAU,EAAE,QAAQ,GAAG,qBAAqB,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;IAC1E,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAA;IAChC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACvC;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAwBU,MAAM;eAAS,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAoBnE,MAAM;eACH,kBAAkB;;EAmB9B"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
|
3
|
+
import { fetchWithValidation } from "../client.js";
|
|
4
|
+
import { useVoyantFinanceContext } from "../provider.js";
|
|
5
|
+
import { financeQueryKeys } from "../query-keys.js";
|
|
6
|
+
import { voucherRedemptionResponse, voucherSingleResponse, } from "../schemas.js";
|
|
7
|
+
/**
|
|
8
|
+
* Voucher mutations: issue a new voucher, update metadata (status / expiry /
|
|
9
|
+
* notes / assignment — NOT balance), or redeem against a booking. The redeem
|
|
10
|
+
* mutation is the only path that decrements `remainingAmountCents`; the
|
|
11
|
+
* server runs it transactionally with a redemption row.
|
|
12
|
+
*/
|
|
13
|
+
export function useVoucherMutation() {
|
|
14
|
+
const { baseUrl, fetcher } = useVoyantFinanceContext();
|
|
15
|
+
const queryClient = useQueryClient();
|
|
16
|
+
const invalidateLists = () => queryClient.invalidateQueries({ queryKey: financeQueryKeys.vouchers() });
|
|
17
|
+
const issue = useMutation({
|
|
18
|
+
mutationFn: async (input) => {
|
|
19
|
+
const { data } = await fetchWithValidation("/v1/admin/finance/vouchers", voucherSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
20
|
+
return data;
|
|
21
|
+
},
|
|
22
|
+
onSuccess: (data) => {
|
|
23
|
+
invalidateLists();
|
|
24
|
+
queryClient.setQueryData(financeQueryKeys.voucher(data.id), { data });
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
const update = useMutation({
|
|
28
|
+
mutationFn: async ({ id, input }) => {
|
|
29
|
+
const { data } = await fetchWithValidation(`/v1/admin/finance/vouchers/${id}`, voucherSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
30
|
+
return data;
|
|
31
|
+
},
|
|
32
|
+
onSuccess: (data) => {
|
|
33
|
+
invalidateLists();
|
|
34
|
+
queryClient.setQueryData(financeQueryKeys.voucher(data.id), { data });
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
const redeem = useMutation({
|
|
38
|
+
mutationFn: async ({ id, input, }) => {
|
|
39
|
+
const { data } = await fetchWithValidation(`/v1/admin/finance/vouchers/${id}/redeem`, voucherRedemptionResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
40
|
+
return data;
|
|
41
|
+
},
|
|
42
|
+
onSuccess: (result) => {
|
|
43
|
+
invalidateLists();
|
|
44
|
+
// Invalidate the detail entry — the redemption row should show up in
|
|
45
|
+
// the next `useVoucher` read.
|
|
46
|
+
void queryClient.invalidateQueries({ queryKey: financeQueryKeys.voucher(result.voucher.id) });
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
return { issue, update, redeem };
|
|
50
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface UseVoucherOptions {
|
|
2
|
+
enabled?: boolean;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Single voucher + redemption history. The response envelope attaches the
|
|
6
|
+
* full `redemptions[]` list so the operator detail view can render the audit
|
|
7
|
+
* trail in one request.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useVoucher(id: string | null | undefined, options?: UseVoucherOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
10
|
+
data: {
|
|
11
|
+
id: string;
|
|
12
|
+
code: string;
|
|
13
|
+
status: "void" | "expired" | "active" | "redeemed";
|
|
14
|
+
currency: string;
|
|
15
|
+
initialAmountCents: number;
|
|
16
|
+
remainingAmountCents: number;
|
|
17
|
+
issuedToPersonId: string | null;
|
|
18
|
+
issuedToOrganizationId: string | null;
|
|
19
|
+
sourceType: "manual" | "refund" | "cancellation_credit" | "gift" | "promo";
|
|
20
|
+
sourceBookingId: string | null;
|
|
21
|
+
sourcePaymentId: string | null;
|
|
22
|
+
expiresAt: Date | null;
|
|
23
|
+
notes: string | null;
|
|
24
|
+
issuedByUserId: string | null;
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
updatedAt: Date;
|
|
27
|
+
redemptions: {
|
|
28
|
+
id: string;
|
|
29
|
+
voucherId: string;
|
|
30
|
+
bookingId: string;
|
|
31
|
+
paymentId: string | null;
|
|
32
|
+
amountCents: number;
|
|
33
|
+
createdByUserId: string | null;
|
|
34
|
+
createdAt: Date;
|
|
35
|
+
}[];
|
|
36
|
+
};
|
|
37
|
+
}, Error>;
|
|
38
|
+
//# sourceMappingURL=use-voucher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-voucher.d.ts","sourceRoot":"","sources":["../../src/hooks/use-voucher.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,OAAO,GAAE,iBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAQxF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useQuery } from "@tanstack/react-query";
|
|
3
|
+
import { useVoyantFinanceContext } from "../provider.js";
|
|
4
|
+
import { getVoucherQueryOptions } from "../query-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* Single voucher + redemption history. The response envelope attaches the
|
|
7
|
+
* full `redemptions[]` list so the operator detail view can render the audit
|
|
8
|
+
* trail in one request.
|
|
9
|
+
*/
|
|
10
|
+
export function useVoucher(id, options = {}) {
|
|
11
|
+
const { baseUrl, fetcher } = useVoyantFinanceContext();
|
|
12
|
+
const { enabled = true } = options;
|
|
13
|
+
return useQuery({
|
|
14
|
+
...getVoucherQueryOptions({ baseUrl, fetcher }, id),
|
|
15
|
+
enabled: enabled && Boolean(id),
|
|
16
|
+
});
|
|
17
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { FinanceVoucherListFilters } from "../query-keys.js";
|
|
2
|
+
export interface UseVouchersOptions extends FinanceVoucherListFilters {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Admin voucher list. Filters by status, person/org assignment, free-text
|
|
7
|
+
* search over code/notes, and `hasBalance` (remaining > 0). Use
|
|
8
|
+
* `hasBalance: true` for the voucher picker in booking-create flows — a
|
|
9
|
+
* voucher with zero balance is a historical record, not spendable credit.
|
|
10
|
+
*/
|
|
11
|
+
export declare function useVouchers(options?: UseVouchersOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
12
|
+
data: {
|
|
13
|
+
id: string;
|
|
14
|
+
code: string;
|
|
15
|
+
status: "void" | "expired" | "active" | "redeemed";
|
|
16
|
+
currency: string;
|
|
17
|
+
initialAmountCents: number;
|
|
18
|
+
remainingAmountCents: number;
|
|
19
|
+
issuedToPersonId: string | null;
|
|
20
|
+
issuedToOrganizationId: string | null;
|
|
21
|
+
sourceType: "manual" | "refund" | "cancellation_credit" | "gift" | "promo";
|
|
22
|
+
sourceBookingId: string | null;
|
|
23
|
+
sourcePaymentId: string | null;
|
|
24
|
+
expiresAt: Date | null;
|
|
25
|
+
notes: string | null;
|
|
26
|
+
issuedByUserId: string | null;
|
|
27
|
+
createdAt: Date;
|
|
28
|
+
updatedAt: Date;
|
|
29
|
+
}[];
|
|
30
|
+
total: number;
|
|
31
|
+
limit: number;
|
|
32
|
+
offset: number;
|
|
33
|
+
}, Error>;
|
|
34
|
+
//# sourceMappingURL=use-vouchers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-vouchers.d.ts","sourceRoot":"","sources":["../../src/hooks/use-vouchers.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAA;AAGjE,MAAM,WAAW,kBAAmB,SAAQ,yBAAyB;IACnE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,OAAO,GAAE,kBAAuB;;;;;;;;;;;;;;;;;;;;;;UAQ3D"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useQuery } from "@tanstack/react-query";
|
|
3
|
+
import { useVoyantFinanceContext } from "../provider.js";
|
|
4
|
+
import { getVouchersQueryOptions } from "../query-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* Admin voucher list. Filters by status, person/org assignment, free-text
|
|
7
|
+
* search over code/notes, and `hasBalance` (remaining > 0). Use
|
|
8
|
+
* `hasBalance: true` for the voucher picker in booking-create flows — a
|
|
9
|
+
* voucher with zero balance is a historical record, not spendable credit.
|
|
10
|
+
*/
|
|
11
|
+
export function useVouchers(options = {}) {
|
|
12
|
+
const { baseUrl, fetcher } = useVoyantFinanceContext();
|
|
13
|
+
const { enabled = true, ...filters } = options;
|
|
14
|
+
return useQuery({
|
|
15
|
+
...getVouchersQueryOptions({ baseUrl, fetcher }, filters),
|
|
16
|
+
enabled,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
export declare const common: {
|
|
2
|
+
cancel: string;
|
|
3
|
+
saveChanges: string;
|
|
4
|
+
invoiceStatusLabels: {
|
|
5
|
+
draft: string;
|
|
6
|
+
pending_external_allocation: string;
|
|
7
|
+
issued: string;
|
|
8
|
+
partially_paid: string;
|
|
9
|
+
paid: string;
|
|
10
|
+
overdue: string;
|
|
11
|
+
void: string;
|
|
12
|
+
};
|
|
13
|
+
paymentMethodLabels: {
|
|
14
|
+
bank_transfer: string;
|
|
15
|
+
credit_card: string;
|
|
16
|
+
debit_card: string;
|
|
17
|
+
cash: string;
|
|
18
|
+
cheque: string;
|
|
19
|
+
wallet: string;
|
|
20
|
+
direct_bill: string;
|
|
21
|
+
voucher: string;
|
|
22
|
+
other: string;
|
|
23
|
+
};
|
|
24
|
+
supplierPaymentMethodLabels: {
|
|
25
|
+
bank_transfer: string;
|
|
26
|
+
credit_card: string;
|
|
27
|
+
cash: string;
|
|
28
|
+
cheque: string;
|
|
29
|
+
other: string;
|
|
30
|
+
};
|
|
31
|
+
supplierPaymentStatusLabels: {
|
|
32
|
+
pending: string;
|
|
33
|
+
completed: string;
|
|
34
|
+
failed: string;
|
|
35
|
+
refunded: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export declare const invoiceDialog: {
|
|
39
|
+
titles: {
|
|
40
|
+
create: string;
|
|
41
|
+
edit: string;
|
|
42
|
+
};
|
|
43
|
+
fields: {
|
|
44
|
+
invoiceNumber: string;
|
|
45
|
+
status: string;
|
|
46
|
+
bookingId: string;
|
|
47
|
+
currency: string;
|
|
48
|
+
subtotalCents: string;
|
|
49
|
+
taxCents: string;
|
|
50
|
+
totalCents: string;
|
|
51
|
+
issueDate: string;
|
|
52
|
+
dueDate: string;
|
|
53
|
+
notes: string;
|
|
54
|
+
type: string;
|
|
55
|
+
source: string;
|
|
56
|
+
schedule: string;
|
|
57
|
+
markAsPaid: string;
|
|
58
|
+
markAsPaidMethod: string;
|
|
59
|
+
markAsPaidDate: string;
|
|
60
|
+
syncToSmartbill: string;
|
|
61
|
+
attachments: string;
|
|
62
|
+
};
|
|
63
|
+
typeLabels: {
|
|
64
|
+
invoice: string;
|
|
65
|
+
proforma: string;
|
|
66
|
+
};
|
|
67
|
+
sourceLabels: {
|
|
68
|
+
custom: string;
|
|
69
|
+
schedule: string;
|
|
70
|
+
};
|
|
71
|
+
schedulePlaceholder: string;
|
|
72
|
+
scheduleEmpty: string;
|
|
73
|
+
scheduleLockedHint: string;
|
|
74
|
+
attachmentsHint: string;
|
|
75
|
+
invoiceNumberAutoHint: string;
|
|
76
|
+
placeholders: {
|
|
77
|
+
invoiceNumber: string;
|
|
78
|
+
bookingId: string;
|
|
79
|
+
issueDate: string;
|
|
80
|
+
dueDate: string;
|
|
81
|
+
notes: string;
|
|
82
|
+
};
|
|
83
|
+
actions: {
|
|
84
|
+
create: string;
|
|
85
|
+
};
|
|
86
|
+
validation: {
|
|
87
|
+
invoiceNumberRequired: string;
|
|
88
|
+
bookingIdRequired: string;
|
|
89
|
+
currencyIsoCode: string;
|
|
90
|
+
issueDateRequired: string;
|
|
91
|
+
dueDateRequired: string;
|
|
92
|
+
lineItemInvalid: string;
|
|
93
|
+
};
|
|
94
|
+
lineItems: {
|
|
95
|
+
sectionTitle: string;
|
|
96
|
+
addRow: string;
|
|
97
|
+
empty: string;
|
|
98
|
+
description: string;
|
|
99
|
+
quantity: string;
|
|
100
|
+
unitPrice: string;
|
|
101
|
+
taxPercent: string;
|
|
102
|
+
lineTotal: string;
|
|
103
|
+
remove: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
export declare const invoicesPage: {
|
|
107
|
+
title: string;
|
|
108
|
+
description: string;
|
|
109
|
+
searchPlaceholder: string;
|
|
110
|
+
actions: {
|
|
111
|
+
newInvoice: string;
|
|
112
|
+
};
|
|
113
|
+
bulkActions: {
|
|
114
|
+
selectionSummary: string;
|
|
115
|
+
clearSelection: string;
|
|
116
|
+
markPaid: string;
|
|
117
|
+
markPaidConfirm: string;
|
|
118
|
+
markPaidTitle: string;
|
|
119
|
+
markPaidDescription: string;
|
|
120
|
+
selectAllOnPage: string;
|
|
121
|
+
selectInvoice: string;
|
|
122
|
+
successTitle: string;
|
|
123
|
+
successDescription: string;
|
|
124
|
+
partialTitle: string;
|
|
125
|
+
partialDescription: string;
|
|
126
|
+
};
|
|
127
|
+
filters: {
|
|
128
|
+
button: string;
|
|
129
|
+
statusLabel: string;
|
|
130
|
+
statusAll: string;
|
|
131
|
+
currencyLabel: string;
|
|
132
|
+
currencyAny: string;
|
|
133
|
+
dueDateLabel: string;
|
|
134
|
+
dateAny: string;
|
|
135
|
+
clear: string;
|
|
136
|
+
};
|
|
137
|
+
columns: {
|
|
138
|
+
invoiceNumber: string;
|
|
139
|
+
status: string;
|
|
140
|
+
total: string;
|
|
141
|
+
paid: string;
|
|
142
|
+
balanceDue: string;
|
|
143
|
+
dueDate: string;
|
|
144
|
+
};
|
|
145
|
+
empty: string;
|
|
146
|
+
loadFailed: string;
|
|
147
|
+
pagination: {
|
|
148
|
+
showing: string;
|
|
149
|
+
page: string;
|
|
150
|
+
previous: string;
|
|
151
|
+
next: string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
export declare const invoiceDetailPage: {
|
|
155
|
+
title: string;
|
|
156
|
+
invoiceTypeLabels: {
|
|
157
|
+
invoice: string;
|
|
158
|
+
proforma: string;
|
|
159
|
+
credit_note: string;
|
|
160
|
+
};
|
|
161
|
+
actions: {
|
|
162
|
+
back: string;
|
|
163
|
+
edit: string;
|
|
164
|
+
convertToInvoice: string;
|
|
165
|
+
convertToInvoiceTitle: string;
|
|
166
|
+
convertToInvoiceDescription: string;
|
|
167
|
+
void: string;
|
|
168
|
+
voidTitle: string;
|
|
169
|
+
voidDescription: string;
|
|
170
|
+
voidUnavailable: string;
|
|
171
|
+
voidReasonPlaceholder: string;
|
|
172
|
+
delete: string;
|
|
173
|
+
deleteTitle: string;
|
|
174
|
+
deleteDescription: string;
|
|
175
|
+
deleteOnlyDraft: string;
|
|
176
|
+
mutationFailed: string;
|
|
177
|
+
viewBooking: string;
|
|
178
|
+
viewPerson: string;
|
|
179
|
+
viewOrganization: string;
|
|
180
|
+
addLineItem: string;
|
|
181
|
+
editLineItem: string;
|
|
182
|
+
deleteLineItemShort: string;
|
|
183
|
+
deleteLineItemTitle: string;
|
|
184
|
+
deleteLineItemDescription: string;
|
|
185
|
+
recordPayment: string;
|
|
186
|
+
addCreditNote: string;
|
|
187
|
+
addNote: string;
|
|
188
|
+
addAttachment: string;
|
|
189
|
+
editAttachment: string;
|
|
190
|
+
deleteAttachmentShort: string;
|
|
191
|
+
deleteAttachmentTitle: string;
|
|
192
|
+
deleteAttachmentDescription: string;
|
|
193
|
+
loadOlderActionLedger: string;
|
|
194
|
+
};
|
|
195
|
+
titles: {
|
|
196
|
+
summary: string;
|
|
197
|
+
links: string;
|
|
198
|
+
lineItems: string;
|
|
199
|
+
payments: string;
|
|
200
|
+
creditNotes: string;
|
|
201
|
+
notes: string;
|
|
202
|
+
attachments: string;
|
|
203
|
+
actionLedger: string;
|
|
204
|
+
};
|
|
205
|
+
fields: {
|
|
206
|
+
currency: string;
|
|
207
|
+
subtotal: string;
|
|
208
|
+
tax: string;
|
|
209
|
+
total: string;
|
|
210
|
+
paid: string;
|
|
211
|
+
balanceDue: string;
|
|
212
|
+
status: string;
|
|
213
|
+
issueDate: string;
|
|
214
|
+
dueDate: string;
|
|
215
|
+
booking: string;
|
|
216
|
+
person: string;
|
|
217
|
+
organization: string;
|
|
218
|
+
notes: string;
|
|
219
|
+
createdAt: string;
|
|
220
|
+
updatedAt: string;
|
|
221
|
+
name: string;
|
|
222
|
+
kind: string;
|
|
223
|
+
mimeType: string;
|
|
224
|
+
fileSize: string;
|
|
225
|
+
storageKey: string;
|
|
226
|
+
checksum: string;
|
|
227
|
+
};
|
|
228
|
+
columns: {
|
|
229
|
+
description: string;
|
|
230
|
+
quantity: string;
|
|
231
|
+
unitPrice: string;
|
|
232
|
+
total: string;
|
|
233
|
+
taxRate: string;
|
|
234
|
+
name: string;
|
|
235
|
+
kind: string;
|
|
236
|
+
mimeType: string;
|
|
237
|
+
size: string;
|
|
238
|
+
};
|
|
239
|
+
states: {
|
|
240
|
+
loading: string;
|
|
241
|
+
loadFailed: string;
|
|
242
|
+
notFound: string;
|
|
243
|
+
noValue: string;
|
|
244
|
+
noLineItems: string;
|
|
245
|
+
noPayments: string;
|
|
246
|
+
noCreditNotes: string;
|
|
247
|
+
noNotes: string;
|
|
248
|
+
noAttachments: string;
|
|
249
|
+
noActionLedger: string;
|
|
250
|
+
actionLedgerLoadFailed: string;
|
|
251
|
+
};
|
|
252
|
+
placeholders: {
|
|
253
|
+
note: string;
|
|
254
|
+
attachmentName: string;
|
|
255
|
+
attachmentKind: string;
|
|
256
|
+
attachmentMimeType: string;
|
|
257
|
+
attachmentFileSize: string;
|
|
258
|
+
attachmentStorageKey: string;
|
|
259
|
+
attachmentChecksum: string;
|
|
260
|
+
};
|
|
261
|
+
attachmentDialog: {
|
|
262
|
+
createTitle: string;
|
|
263
|
+
editTitle: string;
|
|
264
|
+
createAction: string;
|
|
265
|
+
nameRequired: string;
|
|
266
|
+
};
|
|
267
|
+
noteDialog: {
|
|
268
|
+
title: string;
|
|
269
|
+
createAction: string;
|
|
270
|
+
contentRequired: string;
|
|
271
|
+
};
|
|
272
|
+
creditNoteStatusLabels: {
|
|
273
|
+
draft: string;
|
|
274
|
+
issued: string;
|
|
275
|
+
applied: string;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
//# sourceMappingURL=invoices.d.ts.map
|