@hub-kit/core 0.3.0
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/README.md +125 -0
- package/cli/hub-kit.mjs +112 -0
- package/dist/adapters/bank-reconciliation.d.ts +100 -0
- package/dist/adapters/bank-reconciliation.js +1 -0
- package/dist/adapters/bank-sync-log.d.ts +46 -0
- package/dist/adapters/bank-sync-log.js +1 -0
- package/dist/adapters/category-rules.d.ts +94 -0
- package/dist/adapters/category-rules.js +1 -0
- package/dist/adapters/companies.d.ts +85 -0
- package/dist/adapters/companies.js +3 -0
- package/dist/adapters/customers.d.ts +71 -0
- package/dist/adapters/customers.js +1 -0
- package/dist/adapters/exclusion-rules.d.ts +34 -0
- package/dist/adapters/exclusion-rules.js +15 -0
- package/dist/adapters/file-naming.d.ts +36 -0
- package/dist/adapters/file-naming.js +1 -0
- package/dist/adapters/index.d.ts +24 -0
- package/dist/adapters/index.js +1 -0
- package/dist/adapters/invoice-detail.d.ts +126 -0
- package/dist/adapters/invoice-detail.js +1 -0
- package/dist/adapters/invoice-list.d.ts +63 -0
- package/dist/adapters/invoice-list.js +1 -0
- package/dist/adapters/invoice-upload.d.ts +26 -0
- package/dist/adapters/invoice-upload.js +1 -0
- package/dist/adapters/manual-bookings.d.ts +56 -0
- package/dist/adapters/manual-bookings.js +1 -0
- package/dist/adapters/notifications.d.ts +31 -0
- package/dist/adapters/notifications.js +1 -0
- package/dist/adapters/open-items.d.ts +42 -0
- package/dist/adapters/open-items.js +1 -0
- package/dist/adapters/opos-whitelist.d.ts +38 -0
- package/dist/adapters/opos-whitelist.js +1 -0
- package/dist/adapters/outgoing-invoices.d.ts +32 -0
- package/dist/adapters/outgoing-invoices.js +1 -0
- package/dist/adapters/overview.d.ts +68 -0
- package/dist/adapters/overview.js +1 -0
- package/dist/adapters/processing-log.d.ts +48 -0
- package/dist/adapters/processing-log.js +1 -0
- package/dist/adapters/properties.d.ts +87 -0
- package/dist/adapters/properties.js +1 -0
- package/dist/adapters/supplier-detail.d.ts +64 -0
- package/dist/adapters/supplier-detail.js +1 -0
- package/dist/adapters/supplier-list.d.ts +21 -0
- package/dist/adapters/supplier-list.js +1 -0
- package/dist/adapters/team.d.ts +79 -0
- package/dist/adapters/team.js +1 -0
- package/dist/adapters/trash.d.ts +26 -0
- package/dist/adapters/trash.js +1 -0
- package/dist/adapters/vat-rules.d.ts +83 -0
- package/dist/adapters/vat-rules.js +1 -0
- package/dist/components/access/index.d.ts +3 -0
- package/dist/components/access/index.js +3 -0
- package/dist/components/access/permission-checklist.d.ts +13 -0
- package/dist/components/access/permission-checklist.js +19 -0
- package/dist/components/access/permission-matrix.d.ts +12 -0
- package/dist/components/access/permission-matrix.js +18 -0
- package/dist/components/access/types.d.ts +15 -0
- package/dist/components/access/types.js +1 -0
- package/dist/components/dashboard/date-range-calendar.d.ts +19 -0
- package/dist/components/dashboard/date-range-calendar.js +97 -0
- package/dist/components/dashboard/index.d.ts +23 -0
- package/dist/components/dashboard/index.js +14 -0
- package/dist/components/dashboard/kpi-card.d.ts +13 -0
- package/dist/components/dashboard/kpi-card.js +7 -0
- package/dist/components/dashboard/money-cards-row.d.ts +29 -0
- package/dist/components/dashboard/money-cards-row.js +28 -0
- package/dist/components/dashboard/money-trend-chart.d.ts +13 -0
- package/dist/components/dashboard/money-trend-chart.js +16 -0
- package/dist/components/dashboard/panel.d.ts +9 -0
- package/dist/components/dashboard/panel.js +5 -0
- package/dist/components/dashboard/period-picker.d.ts +25 -0
- package/dist/components/dashboard/period-picker.js +82 -0
- package/dist/components/dashboard/periods.d.ts +13 -0
- package/dist/components/dashboard/periods.js +63 -0
- package/dist/components/dashboard/pipeline-stages-panel.d.ts +14 -0
- package/dist/components/dashboard/pipeline-stages-panel.js +12 -0
- package/dist/components/dashboard/processing-summary-panel.d.ts +34 -0
- package/dist/components/dashboard/processing-summary-panel.js +11 -0
- package/dist/components/dashboard/ranked-bars.d.ts +15 -0
- package/dist/components/dashboard/ranked-bars.js +16 -0
- package/dist/components/dashboard/ranked-list-panel.d.ts +14 -0
- package/dist/components/dashboard/ranked-list-panel.js +9 -0
- package/dist/components/dashboard/stage-tiles.d.ts +15 -0
- package/dist/components/dashboard/stage-tiles.js +6 -0
- package/dist/components/dashboard/stat-rows-panel.d.ts +25 -0
- package/dist/components/dashboard/stat-rows-panel.js +7 -0
- package/dist/components/dashboard/stat-tile.d.ts +20 -0
- package/dist/components/dashboard/stat-tile.js +9 -0
- package/dist/components/feedback/index.d.ts +4 -0
- package/dist/components/feedback/index.js +2 -0
- package/dist/components/feedback/query-states.d.ts +27 -0
- package/dist/components/feedback/query-states.js +38 -0
- package/dist/components/feedback/table-pagination.d.ts +20 -0
- package/dist/components/feedback/table-pagination.js +15 -0
- package/dist/components/invoice-queue/index.d.ts +5 -0
- package/dist/components/invoice-queue/index.js +3 -0
- package/dist/components/invoice-queue/next-action-cell.d.ts +5 -0
- package/dist/components/invoice-queue/next-action-cell.js +9 -0
- package/dist/components/invoice-queue/queue-kpi-card.d.ts +19 -0
- package/dist/components/invoice-queue/queue-kpi-card.js +31 -0
- package/dist/components/invoice-queue/queue-kpi-row.d.ts +22 -0
- package/dist/components/invoice-queue/queue-kpi-row.js +12 -0
- package/dist/components/notifications/alerts.d.ts +25 -0
- package/dist/components/notifications/alerts.js +66 -0
- package/dist/components/notifications/bell.d.ts +14 -0
- package/dist/components/notifications/bell.js +17 -0
- package/dist/components/notifications/highlight.d.ts +4 -0
- package/dist/components/notifications/highlight.js +7 -0
- package/dist/components/notifications/index.d.ts +7 -0
- package/dist/components/notifications/index.js +6 -0
- package/dist/components/notifications/reminder-dialog.d.ts +24 -0
- package/dist/components/notifications/reminder-dialog.js +54 -0
- package/dist/components/notifications/types.d.ts +27 -0
- package/dist/components/notifications/types.js +1 -0
- package/dist/components/notifications/use-notification-acks.d.ts +7 -0
- package/dist/components/notifications/use-notification-acks.js +37 -0
- package/dist/components/shell/breadcrumbs.d.ts +7 -0
- package/dist/components/shell/breadcrumbs.js +38 -0
- package/dist/components/shell/index.d.ts +3 -0
- package/dist/components/shell/index.js +3 -0
- package/dist/components/shell/shell.d.ts +30 -0
- package/dist/components/shell/shell.js +110 -0
- package/dist/components/shell/types.d.ts +23 -0
- package/dist/components/shell/types.js +3 -0
- package/dist/components/tour/find-target.d.ts +1 -0
- package/dist/components/tour/find-target.js +3 -0
- package/dist/components/tour/index.d.ts +14 -0
- package/dist/components/tour/index.js +8 -0
- package/dist/components/tour/labels.d.ts +10 -0
- package/dist/components/tour/labels.js +9 -0
- package/dist/components/tour/seen-store.d.ts +3 -0
- package/dist/components/tour/seen-store.js +34 -0
- package/dist/components/tour/tour-blocks.d.ts +4 -0
- package/dist/components/tour/tour-blocks.js +27 -0
- package/dist/components/tour/tour-button.d.ts +4 -0
- package/dist/components/tour/tour-button.js +12 -0
- package/dist/components/tour/tour-card.d.ts +11 -0
- package/dist/components/tour/tour-card.js +7 -0
- package/dist/components/tour/tour-context.d.ts +16 -0
- package/dist/components/tour/tour-context.js +2 -0
- package/dist/components/tour/tour-overlay.d.ts +1 -0
- package/dist/components/tour/tour-overlay.js +165 -0
- package/dist/components/tour/tour-provider.d.ts +9 -0
- package/dist/components/tour/tour-provider.js +80 -0
- package/dist/components/tour/types.d.ts +44 -0
- package/dist/components/tour/types.js +1 -0
- package/dist/components/tour/use-tour.d.ts +3 -0
- package/dist/components/tour/use-tour.js +9 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-mobile.js +15 -0
- package/dist/i18n/index.d.ts +15 -0
- package/dist/i18n/index.js +15 -0
- package/dist/lib/bank-import/classify.d.ts +8 -0
- package/dist/lib/bank-import/classify.js +89 -0
- package/dist/lib/bank-import/column-guess.d.ts +2 -0
- package/dist/lib/bank-import/column-guess.js +40 -0
- package/dist/lib/bank-import/csv.d.ts +3 -0
- package/dist/lib/bank-import/csv.js +20 -0
- package/dist/lib/bank-import/duplicates.d.ts +2 -0
- package/dist/lib/bank-import/duplicates.js +21 -0
- package/dist/lib/bank-import/index.d.ts +12 -0
- package/dist/lib/bank-import/index.js +9 -0
- package/dist/lib/bank-import/mapping-storage.d.ts +3 -0
- package/dist/lib/bank-import/mapping-storage.js +29 -0
- package/dist/lib/bank-import/normalize.d.ts +4 -0
- package/dist/lib/bank-import/normalize.js +82 -0
- package/dist/lib/bank-import/parse-file.d.ts +7 -0
- package/dist/lib/bank-import/parse-file.js +23 -0
- package/dist/lib/bank-import/types.d.ts +31 -0
- package/dist/lib/bank-import/types.js +1 -0
- package/dist/lib/bank-import/xlsx.d.ts +2 -0
- package/dist/lib/bank-import/xlsx.js +25 -0
- package/dist/lib/class-names.d.ts +2 -0
- package/dist/lib/class-names.js +5 -0
- package/dist/lib/download.d.ts +2 -0
- package/dist/lib/download.js +14 -0
- package/dist/lib/formatters.d.ts +6 -0
- package/dist/lib/formatters.js +24 -0
- package/dist/lib/index.d.ts +9 -0
- package/dist/lib/index.js +6 -0
- package/dist/lib/opos-whitelist/index.d.ts +2 -0
- package/dist/lib/opos-whitelist/index.js +1 -0
- package/dist/lib/opos-whitelist/opos.d.ts +14 -0
- package/dist/lib/opos-whitelist/opos.js +49 -0
- package/dist/lib/query-result.d.ts +12 -0
- package/dist/lib/query-result.js +1 -0
- package/dist/lib/tour-placeholders/index.d.ts +2 -0
- package/dist/lib/tour-placeholders/index.js +1 -0
- package/dist/lib/tour-placeholders/overview.d.ts +12 -0
- package/dist/lib/tour-placeholders/overview.js +139 -0
- package/dist/pages/bank-accounts/BankAccountsPage.d.ts +7 -0
- package/dist/pages/bank-accounts/BankAccountsPage.js +21 -0
- package/dist/pages/bank-accounts/index.d.ts +4 -0
- package/dist/pages/bank-accounts/index.js +2 -0
- package/dist/pages/bank-accounts/labels.d.ts +15 -0
- package/dist/pages/bank-accounts/labels.js +14 -0
- package/dist/pages/bank-import/BankImportWizard.d.ts +9 -0
- package/dist/pages/bank-import/BankImportWizard.js +158 -0
- package/dist/pages/bank-import/index.d.ts +4 -0
- package/dist/pages/bank-import/index.js +2 -0
- package/dist/pages/bank-import/labels.d.ts +44 -0
- package/dist/pages/bank-import/labels.js +43 -0
- package/dist/pages/bank-sync-log/BankSyncLogPage.d.ts +7 -0
- package/dist/pages/bank-sync-log/BankSyncLogPage.js +77 -0
- package/dist/pages/bank-sync-log/index.d.ts +4 -0
- package/dist/pages/bank-sync-log/index.js +2 -0
- package/dist/pages/bank-sync-log/labels.d.ts +21 -0
- package/dist/pages/bank-sync-log/labels.js +20 -0
- package/dist/pages/bank-transactions/BankMatchPanel.d.ts +8 -0
- package/dist/pages/bank-transactions/BankMatchPanel.js +75 -0
- package/dist/pages/bank-transactions/BankTransactionsPage.d.ts +7 -0
- package/dist/pages/bank-transactions/BankTransactionsPage.js +59 -0
- package/dist/pages/bank-transactions/badges.d.ts +8 -0
- package/dist/pages/bank-transactions/badges.js +24 -0
- package/dist/pages/bank-transactions/index.d.ts +6 -0
- package/dist/pages/bank-transactions/index.js +4 -0
- package/dist/pages/bank-transactions/labels.d.ts +41 -0
- package/dist/pages/bank-transactions/labels.js +40 -0
- package/dist/pages/bank-transactions/sort-control.d.ts +17 -0
- package/dist/pages/bank-transactions/sort-control.js +8 -0
- package/dist/pages/bank-transactions/use-table-view.d.ts +23 -0
- package/dist/pages/bank-transactions/use-table-view.js +54 -0
- package/dist/pages/category-rules/CategoryRulesPage.d.ts +7 -0
- package/dist/pages/category-rules/CategoryRulesPage.js +160 -0
- package/dist/pages/category-rules/index.d.ts +4 -0
- package/dist/pages/category-rules/index.js +2 -0
- package/dist/pages/category-rules/labels.d.ts +66 -0
- package/dist/pages/category-rules/labels.js +72 -0
- package/dist/pages/companies/company-detail-page.d.ts +10 -0
- package/dist/pages/companies/company-detail-page.js +184 -0
- package/dist/pages/companies/company-form.d.ts +20 -0
- package/dist/pages/companies/company-form.js +23 -0
- package/dist/pages/companies/company-list-page.d.ts +9 -0
- package/dist/pages/companies/company-list-page.js +109 -0
- package/dist/pages/companies/known-spellings-card.d.ts +8 -0
- package/dist/pages/companies/known-spellings-card.js +65 -0
- package/dist/pages/companies/labels.d.ts +105 -0
- package/dist/pages/companies/labels.js +104 -0
- package/dist/pages/companies/sort-control.d.ts +17 -0
- package/dist/pages/companies/sort-control.js +8 -0
- package/dist/pages/companies/use-infinite-rows.d.ts +6 -0
- package/dist/pages/companies/use-infinite-rows.js +24 -0
- package/dist/pages/companies/use-table-view.d.ts +23 -0
- package/dist/pages/companies/use-table-view.js +56 -0
- package/dist/pages/customers/company-chip.d.ts +6 -0
- package/dist/pages/customers/company-chip.js +9 -0
- package/dist/pages/customers/copy-button.d.ts +6 -0
- package/dist/pages/customers/copy-button.js +31 -0
- package/dist/pages/customers/customer-detail-page.d.ts +10 -0
- package/dist/pages/customers/customer-detail-page.js +83 -0
- package/dist/pages/customers/customer-list-page.d.ts +9 -0
- package/dist/pages/customers/customer-list-page.js +65 -0
- package/dist/pages/customers/edit-customer-dialog.d.ts +9 -0
- package/dist/pages/customers/edit-customer-dialog.js +72 -0
- package/dist/pages/customers/form-hints.d.ts +6 -0
- package/dist/pages/customers/form-hints.js +9 -0
- package/dist/pages/customers/invoice-status-badge.d.ts +10 -0
- package/dist/pages/customers/invoice-status-badge.js +22 -0
- package/dist/pages/customers/labels.d.ts +116 -0
- package/dist/pages/customers/labels.js +117 -0
- package/dist/pages/customers/new-customer-dialog.d.ts +6 -0
- package/dist/pages/customers/new-customer-dialog.js +93 -0
- package/dist/pages/customers/sort-control.d.ts +14 -0
- package/dist/pages/customers/sort-control.js +9 -0
- package/dist/pages/customers/use-table-view.d.ts +23 -0
- package/dist/pages/customers/use-table-view.js +56 -0
- package/dist/pages/exclusion-rules/exclusion-rules-page.d.ts +7 -0
- package/dist/pages/exclusion-rules/exclusion-rules-page.js +114 -0
- package/dist/pages/exclusion-rules/labels.d.ts +53 -0
- package/dist/pages/exclusion-rules/labels.js +61 -0
- package/dist/pages/file-naming/build-filename.d.ts +3 -0
- package/dist/pages/file-naming/build-filename.js +82 -0
- package/dist/pages/file-naming/file-naming-page.d.ts +10 -0
- package/dist/pages/file-naming/file-naming-page.js +120 -0
- package/dist/pages/file-naming/labels.d.ts +44 -0
- package/dist/pages/file-naming/labels.js +44 -0
- package/dist/pages/index.d.ts +63 -0
- package/dist/pages/index.js +48 -0
- package/dist/pages/invoice-detail/InvoiceDetailPage.d.ts +11 -0
- package/dist/pages/invoice-detail/InvoiceDetailPage.js +292 -0
- package/dist/pages/invoice-detail/OutgoingInvoiceFlag.d.ts +26 -0
- package/dist/pages/invoice-detail/OutgoingInvoiceFlag.js +16 -0
- package/dist/pages/invoice-detail/ReviewBadge.d.ts +15 -0
- package/dist/pages/invoice-detail/ReviewBadge.js +23 -0
- package/dist/pages/invoice-detail/ReviewCard.d.ts +17 -0
- package/dist/pages/invoice-detail/ReviewCard.js +12 -0
- package/dist/pages/invoice-detail/SideBySide.d.ts +5 -0
- package/dist/pages/invoice-detail/SideBySide.js +5 -0
- package/dist/pages/invoice-detail/WorkflowHistoryList.d.ts +23 -0
- package/dist/pages/invoice-detail/WorkflowHistoryList.js +32 -0
- package/dist/pages/invoice-detail/WorkflowLadder.d.ts +20 -0
- package/dist/pages/invoice-detail/WorkflowLadder.js +16 -0
- package/dist/pages/invoice-detail/history.d.ts +23 -0
- package/dist/pages/invoice-detail/history.js +76 -0
- package/dist/pages/invoice-detail/index.d.ts +21 -0
- package/dist/pages/invoice-detail/index.js +11 -0
- package/dist/pages/invoice-detail/labels.d.ts +79 -0
- package/dist/pages/invoice-detail/labels.js +139 -0
- package/dist/pages/invoice-detail/pipeline-types.d.ts +58 -0
- package/dist/pages/invoice-detail/pipeline-types.js +1 -0
- package/dist/pages/invoice-detail/review-recheck.d.ts +8 -0
- package/dist/pages/invoice-detail/review-recheck.js +103 -0
- package/dist/pages/invoice-detail/review.d.ts +91 -0
- package/dist/pages/invoice-detail/review.js +310 -0
- package/dist/pages/invoice-list/badges.d.ts +23 -0
- package/dist/pages/invoice-list/badges.js +26 -0
- package/dist/pages/invoice-list/index.d.ts +5 -0
- package/dist/pages/invoice-list/index.js +3 -0
- package/dist/pages/invoice-list/invoice-list-page.d.ts +13 -0
- package/dist/pages/invoice-list/invoice-list-page.js +114 -0
- package/dist/pages/invoice-list/labels.d.ts +36 -0
- package/dist/pages/invoice-list/labels.js +29 -0
- package/dist/pages/invoice-list/sort-control.d.ts +17 -0
- package/dist/pages/invoice-list/sort-control.js +8 -0
- package/dist/pages/invoice-list/use-table-view.d.ts +23 -0
- package/dist/pages/invoice-list/use-table-view.js +54 -0
- package/dist/pages/invoice-upload/InvoiceUploadPage.d.ts +7 -0
- package/dist/pages/invoice-upload/InvoiceUploadPage.js +115 -0
- package/dist/pages/invoice-upload/index.d.ts +4 -0
- package/dist/pages/invoice-upload/index.js +2 -0
- package/dist/pages/invoice-upload/labels.d.ts +29 -0
- package/dist/pages/invoice-upload/labels.js +28 -0
- package/dist/pages/manual-bookings/ManualBookingsPage.d.ts +7 -0
- package/dist/pages/manual-bookings/ManualBookingsPage.js +161 -0
- package/dist/pages/manual-bookings/index.d.ts +4 -0
- package/dist/pages/manual-bookings/index.js +2 -0
- package/dist/pages/manual-bookings/labels.d.ts +53 -0
- package/dist/pages/manual-bookings/labels.js +52 -0
- package/dist/pages/notifications/labels.d.ts +22 -0
- package/dist/pages/notifications/labels.js +21 -0
- package/dist/pages/notifications/notifications-page.d.ts +14 -0
- package/dist/pages/notifications/notifications-page.js +81 -0
- package/dist/pages/open-items/OpenItemsPage.d.ts +11 -0
- package/dist/pages/open-items/OpenItemsPage.js +110 -0
- package/dist/pages/open-items/index.d.ts +6 -0
- package/dist/pages/open-items/index.js +3 -0
- package/dist/pages/open-items/labels.d.ts +37 -0
- package/dist/pages/open-items/labels.js +36 -0
- package/dist/pages/open-items/urgency.d.ts +8 -0
- package/dist/pages/open-items/urgency.js +27 -0
- package/dist/pages/opos-whitelist/OposWhitelistPage.d.ts +7 -0
- package/dist/pages/opos-whitelist/OposWhitelistPage.js +165 -0
- package/dist/pages/opos-whitelist/index.d.ts +4 -0
- package/dist/pages/opos-whitelist/index.js +2 -0
- package/dist/pages/opos-whitelist/labels.d.ts +56 -0
- package/dist/pages/opos-whitelist/labels.js +70 -0
- package/dist/pages/outgoing-invoices/OutgoingInvoicesPage.d.ts +7 -0
- package/dist/pages/outgoing-invoices/OutgoingInvoicesPage.js +169 -0
- package/dist/pages/outgoing-invoices/index.d.ts +4 -0
- package/dist/pages/outgoing-invoices/index.js +2 -0
- package/dist/pages/outgoing-invoices/labels.d.ts +43 -0
- package/dist/pages/outgoing-invoices/labels.js +42 -0
- package/dist/pages/outgoing-invoices/sort-control.d.ts +17 -0
- package/dist/pages/outgoing-invoices/sort-control.js +8 -0
- package/dist/pages/outgoing-invoices/use-table-view.d.ts +23 -0
- package/dist/pages/outgoing-invoices/use-table-view.js +54 -0
- package/dist/pages/overview/labels.d.ts +35 -0
- package/dist/pages/overview/labels.js +34 -0
- package/dist/pages/overview/overview-page.d.ts +22 -0
- package/dist/pages/overview/overview-page.js +127 -0
- package/dist/pages/processing-log/labels.d.ts +54 -0
- package/dist/pages/processing-log/labels.js +53 -0
- package/dist/pages/processing-log/mail-parsing.d.ts +21 -0
- package/dist/pages/processing-log/mail-parsing.js +52 -0
- package/dist/pages/processing-log/processing-log-page.d.ts +9 -0
- package/dist/pages/processing-log/processing-log-page.js +206 -0
- package/dist/pages/properties/badges.d.ts +20 -0
- package/dist/pages/properties/badges.js +45 -0
- package/dist/pages/properties/company-assignment-field.d.ts +11 -0
- package/dist/pages/properties/company-assignment-field.js +13 -0
- package/dist/pages/properties/form-field.d.ts +6 -0
- package/dist/pages/properties/form-field.js +9 -0
- package/dist/pages/properties/labels.d.ts +124 -0
- package/dist/pages/properties/labels.js +128 -0
- package/dist/pages/properties/name-variants-card.d.ts +7 -0
- package/dist/pages/properties/name-variants-card.js +60 -0
- package/dist/pages/properties/property-detail-page.d.ts +10 -0
- package/dist/pages/properties/property-detail-page.js +150 -0
- package/dist/pages/properties/property-list-page.d.ts +13 -0
- package/dist/pages/properties/property-list-page.js +201 -0
- package/dist/pages/properties/sort-control.d.ts +14 -0
- package/dist/pages/properties/sort-control.js +9 -0
- package/dist/pages/properties/use-infinite-rows.d.ts +6 -0
- package/dist/pages/properties/use-infinite-rows.js +26 -0
- package/dist/pages/properties/use-table-view.d.ts +23 -0
- package/dist/pages/properties/use-table-view.js +56 -0
- package/dist/pages/supplier-detail/SupplierDetailPage.d.ts +10 -0
- package/dist/pages/supplier-detail/SupplierDetailPage.js +157 -0
- package/dist/pages/supplier-detail/index.d.ts +4 -0
- package/dist/pages/supplier-detail/index.js +2 -0
- package/dist/pages/supplier-detail/labels.d.ts +46 -0
- package/dist/pages/supplier-detail/labels.js +45 -0
- package/dist/pages/supplier-list/SupplierListPage.d.ts +9 -0
- package/dist/pages/supplier-list/SupplierListPage.js +102 -0
- package/dist/pages/supplier-list/index.d.ts +4 -0
- package/dist/pages/supplier-list/index.js +2 -0
- package/dist/pages/supplier-list/labels.d.ts +33 -0
- package/dist/pages/supplier-list/labels.js +32 -0
- package/dist/pages/supplier-list/sort-control.d.ts +17 -0
- package/dist/pages/supplier-list/sort-control.js +8 -0
- package/dist/pages/supplier-list/use-table-view.d.ts +23 -0
- package/dist/pages/supplier-list/use-table-view.js +54 -0
- package/dist/pages/team/account-dialogs.d.ts +12 -0
- package/dist/pages/team/account-dialogs.js +49 -0
- package/dist/pages/team/employee-editor.d.ts +19 -0
- package/dist/pages/team/employee-editor.js +124 -0
- package/dist/pages/team/labels.d.ts +99 -0
- package/dist/pages/team/labels.js +98 -0
- package/dist/pages/team/new-employee.d.ts +8 -0
- package/dist/pages/team/new-employee.js +103 -0
- package/dist/pages/team/roles-tab.d.ts +6 -0
- package/dist/pages/team/roles-tab.js +46 -0
- package/dist/pages/team/team-page.d.ts +7 -0
- package/dist/pages/team/team-page.js +81 -0
- package/dist/pages/team/temp-password-dialog.d.ts +11 -0
- package/dist/pages/team/temp-password-dialog.js +23 -0
- package/dist/pages/trash/labels.d.ts +68 -0
- package/dist/pages/trash/labels.js +69 -0
- package/dist/pages/trash/trash-page.d.ts +9 -0
- package/dist/pages/trash/trash-page.js +259 -0
- package/dist/pages/vat-rules/labels.d.ts +110 -0
- package/dist/pages/vat-rules/labels.js +109 -0
- package/dist/pages/vat-rules/new-rule-dialog.d.ts +7 -0
- package/dist/pages/vat-rules/new-rule-dialog.js +134 -0
- package/dist/pages/vat-rules/rule-row.d.ts +20 -0
- package/dist/pages/vat-rules/rule-row.js +120 -0
- package/dist/pages/vat-rules/vat-rules-page.d.ts +9 -0
- package/dist/pages/vat-rules/vat-rules-page.js +61 -0
- package/dist/ui/alert-dialog.d.ts +20 -0
- package/dist/ui/alert-dialog.js +41 -0
- package/dist/ui/badge.d.ts +9 -0
- package/dist/ui/badge.js +20 -0
- package/dist/ui/breadcrumb.d.ts +19 -0
- package/dist/ui/breadcrumb.js +23 -0
- package/dist/ui/button.d.ts +11 -0
- package/dist/ui/button.js +33 -0
- package/dist/ui/calendar.d.ts +8 -0
- package/dist/ui/calendar.js +75 -0
- package/dist/ui/card.d.ts +8 -0
- package/dist/ui/card.js +16 -0
- package/dist/ui/chart.d.ts +62 -0
- package/dist/ui/chart.js +118 -0
- package/dist/ui/checkbox.d.ts +4 -0
- package/dist/ui/checkbox.js +11 -0
- package/dist/ui/collapsible.d.ts +5 -0
- package/dist/ui/collapsible.js +5 -0
- package/dist/ui/combobox.d.ts +24 -0
- package/dist/ui/combobox.js +55 -0
- package/dist/ui/command.d.ts +80 -0
- package/dist/ui/command.js +29 -0
- package/dist/ui/dialog.d.ts +19 -0
- package/dist/ui/dialog.js +58 -0
- package/dist/ui/dropdown-menu.d.ts +27 -0
- package/dist/ui/dropdown-menu.js +33 -0
- package/dist/ui/field-context.d.ts +4 -0
- package/dist/ui/field-context.js +6 -0
- package/dist/ui/field.d.ts +3 -0
- package/dist/ui/field.js +8 -0
- package/dist/ui/icon-action.d.ts +3 -0
- package/dist/ui/icon-action.js +8 -0
- package/dist/ui/index.d.ts +32 -0
- package/dist/ui/index.js +32 -0
- package/dist/ui/input.d.ts +3 -0
- package/dist/ui/input.js +11 -0
- package/dist/ui/label.d.ts +5 -0
- package/dist/ui/label.js +15 -0
- package/dist/ui/multi-combobox.d.ts +18 -0
- package/dist/ui/multi-combobox.js +40 -0
- package/dist/ui/popover.d.ts +9 -0
- package/dist/ui/popover.js +12 -0
- package/dist/ui/scroll-area.d.ts +5 -0
- package/dist/ui/scroll-area.js +9 -0
- package/dist/ui/scroll-shadow.d.ts +8 -0
- package/dist/ui/scroll-shadow.js +57 -0
- package/dist/ui/select.d.ts +13 -0
- package/dist/ui/select.js +31 -0
- package/dist/ui/separator.d.ts +4 -0
- package/dist/ui/separator.js +7 -0
- package/dist/ui/sheet.d.ts +25 -0
- package/dist/ui/sheet.js +40 -0
- package/dist/ui/sidebar.d.ts +65 -0
- package/dist/ui/sidebar.js +207 -0
- package/dist/ui/skeleton.d.ts +2 -0
- package/dist/ui/skeleton.js +6 -0
- package/dist/ui/sonner.d.ts +5 -0
- package/dist/ui/sonner.js +13 -0
- package/dist/ui/switch.d.ts +4 -0
- package/dist/ui/switch.js +7 -0
- package/dist/ui/table.d.ts +12 -0
- package/dist/ui/table.js +24 -0
- package/dist/ui/tabs.d.ts +7 -0
- package/dist/ui/tabs.js +12 -0
- package/dist/ui/textarea.d.ts +3 -0
- package/dist/ui/textarea.js +11 -0
- package/dist/ui/tooltip.d.ts +7 -0
- package/dist/ui/tooltip.js +11 -0
- package/package.json +80 -0
- package/themes/TOKENS.md +57 -0
- package/themes/default.css +60 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Scopes matched against the mail/file envelope before the AI reads the document.
|
|
2
|
+
export const EXCLUSION_SCOPES_BEFORE_READING = [
|
|
3
|
+
"sender",
|
|
4
|
+
"subject",
|
|
5
|
+
"filename",
|
|
6
|
+
"envelope",
|
|
7
|
+
];
|
|
8
|
+
// Scopes matched against the extracted fields after the AI has read the document.
|
|
9
|
+
export const EXCLUSION_SCOPES_AFTER_READING = [
|
|
10
|
+
"party",
|
|
11
|
+
"supplier",
|
|
12
|
+
"body",
|
|
13
|
+
"company",
|
|
14
|
+
"property",
|
|
15
|
+
];
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { QueryResult } from "../lib/query-result";
|
|
2
|
+
export type FileNamingDescriptionSource = "service_description" | "cost_category" | "none";
|
|
3
|
+
export interface FileNamingSettingsInput {
|
|
4
|
+
separator: string;
|
|
5
|
+
vatSuffix: string;
|
|
6
|
+
includeVatSuffix: boolean;
|
|
7
|
+
includeAmount: boolean;
|
|
8
|
+
includeProperty: boolean;
|
|
9
|
+
descriptionSource: FileNamingDescriptionSource;
|
|
10
|
+
transliterateUmlauts: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface FileNamingSettings extends FileNamingSettingsInput {
|
|
13
|
+
updatedAt: string | null;
|
|
14
|
+
updatedBy: string | null;
|
|
15
|
+
}
|
|
16
|
+
export interface FilenamePreviewInvoice {
|
|
17
|
+
documentDate: string | null;
|
|
18
|
+
companyCode: string | null;
|
|
19
|
+
issuer: string | null;
|
|
20
|
+
serviceDescription: string | null;
|
|
21
|
+
costCategory: string | null;
|
|
22
|
+
amountGross: number | null;
|
|
23
|
+
propertyCode: string | null;
|
|
24
|
+
vatRate: number | null;
|
|
25
|
+
vatExempt: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface FileNamingAdapter {
|
|
28
|
+
useSettings(): QueryResult<FileNamingSettings>;
|
|
29
|
+
saveSettings(input: FileNamingSettingsInput): Promise<void>;
|
|
30
|
+
standardSettings: FileNamingSettingsInput;
|
|
31
|
+
previewInvoices: {
|
|
32
|
+
complete: FilenamePreviewInvoice;
|
|
33
|
+
withoutPropertyOrDescription: FilenamePreviewInvoice;
|
|
34
|
+
minimal: FilenamePreviewInvoice;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type { ProcessingLogAdapter, ProcessingLogEntry, ProcessingLogPageQuery, ProcessingLogCountsQuery, ChangeHistoryEntry, PageOfRows, StatusTone, } from "./processing-log";
|
|
2
|
+
export type { NotificationsAdapter, AckStore, BellEventGroup, ReminderRecipient, } from "./notifications";
|
|
3
|
+
export type { TeamAdapter, TeamEmployee, TeamCompany, TeamRole, CreatedAccount, } from "./team";
|
|
4
|
+
export type { TrashAdapter, TrashedRecord, TrashTableNames } from "./trash";
|
|
5
|
+
export type { CustomersAdapter, Customer, CustomerCompany, CustomerInvoice, CustomerInvoiceTotals, NewCustomerInput, CustomerUpdateInput, } from "./customers";
|
|
6
|
+
export type { CompaniesAdapter, Company, CompanyInvoiceTotals, CompanyInvoice, CompanyProperty, CompanyAlias, } from "./companies";
|
|
7
|
+
export type { PropertiesAdapter, Property, PropertyCompany, PropertyInvoice, PropertyInvoiceTotals, PropertyNameVariant, } from "./properties";
|
|
8
|
+
export type { ExclusionRulesAdapter, ExclusionRule, ExclusionScope, ExclusionImpact, } from "./exclusion-rules";
|
|
9
|
+
export { EXCLUSION_SCOPES_BEFORE_READING, EXCLUSION_SCOPES_AFTER_READING } from "./exclusion-rules";
|
|
10
|
+
export type { VatRulesAdapter, VatRule, VatRuleDraft, VatRuleInput, VatRuleCompany, VatRuleSupplier, VatRuleProperty, RuleImpact, BulkApplyResult, VatReserveSummary, } from "./vat-rules";
|
|
11
|
+
export type { FileNamingAdapter, FileNamingSettings, FileNamingSettingsInput, FileNamingDescriptionSource, FilenamePreviewInvoice, } from "./file-naming";
|
|
12
|
+
export type { OverviewAdapter, MoneyFigure, MoneyCardConfig, OverviewPeriod, PeriodRange, } from "./overview";
|
|
13
|
+
export type { InvoiceDetailConfig } from "./invoice-detail";
|
|
14
|
+
export type { InvoiceListRow, InvoiceQueueCardData, InvoiceListAdapter, InvoiceQueueCardConfig, InvoiceListConfig, } from "./invoice-list";
|
|
15
|
+
export type { SupplierRecord, SupplierBankAccountRecord, SupplierInvoiceRow, NewSupplierBankAccount, SupplierDetailAdapter, } from "./supplier-detail";
|
|
16
|
+
export type { SupplierListRow, NewSupplierInput, SupplierListAdapter } from "./supplier-list";
|
|
17
|
+
export type { UploadedFileResult, InvoiceUploadInput, InvoiceUploadAdapter } from "./invoice-upload";
|
|
18
|
+
export type { OutgoingInvoiceStatus, OutgoingInvoiceRecord, OutgoingInvoiceAdapter } from "./outgoing-invoices";
|
|
19
|
+
export type { OpenItemRow, OpenItemsAdapter } from "./open-items";
|
|
20
|
+
export type { OposRule, NewOposRule, OposWhitelistAdapter } from "./opos-whitelist";
|
|
21
|
+
export type { ManualBookingRecord, NewManualBooking, ManualBookingsAdapter } from "./manual-bookings";
|
|
22
|
+
export type { BwaBlock, CategoryDirection, CategoryRecord, NewCategory, AssignmentRuleScopeChip, AssignmentRuleRow, NewAssignmentRule, CategoryRulesAdapter, } from "./category-rules";
|
|
23
|
+
export type { BankAccountRecord, BankTransactionRecord, BankMatchCandidate, BankInvoiceSearchResult, BankReconciliationAdapter, } from "./bank-reconciliation";
|
|
24
|
+
export type { SyncLogRow, SyncLogFilter, SyncLogAdapter } from "./bank-sync-log";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EXCLUSION_SCOPES_BEFORE_READING, EXCLUSION_SCOPES_AFTER_READING } from "./exclusion-rules.js";
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import type { HistoryConfig } from "../pages/invoice-detail/history";
|
|
2
|
+
import type { LadderColors } from "../pages/invoice-detail/WorkflowLadder";
|
|
3
|
+
import type { InvoiceHistoryEntry, InvoiceReviewFields } from "../pages/invoice-detail/pipeline-types";
|
|
4
|
+
export interface InvoiceDetailConfig extends HistoryConfig {
|
|
5
|
+
chainActionIds: string[];
|
|
6
|
+
autoSteps: string[];
|
|
7
|
+
correctableStatuses: string[];
|
|
8
|
+
ladderColors: LadderColors;
|
|
9
|
+
fieldJumpTargets: Record<string, {
|
|
10
|
+
tab: string;
|
|
11
|
+
anchor: string;
|
|
12
|
+
}>;
|
|
13
|
+
workflowSteps: readonly string[];
|
|
14
|
+
}
|
|
15
|
+
export interface InvoiceDetailRecord extends InvoiceReviewFields {
|
|
16
|
+
id: string;
|
|
17
|
+
supplier_id: string | null;
|
|
18
|
+
issuer_address: string | null;
|
|
19
|
+
document_type: string | null;
|
|
20
|
+
service_date: string | null;
|
|
21
|
+
service_period_from: string | null;
|
|
22
|
+
service_period_to: string | null;
|
|
23
|
+
invoice_number: string | null;
|
|
24
|
+
order_number: string | null;
|
|
25
|
+
currency: string | null;
|
|
26
|
+
property_code: string | null;
|
|
27
|
+
category_id: string | null;
|
|
28
|
+
cost_category: string | null;
|
|
29
|
+
service_description: string | null;
|
|
30
|
+
recipient_address: string | null;
|
|
31
|
+
customer_number: string | null;
|
|
32
|
+
payment_reference: string | null;
|
|
33
|
+
payment_method: string | null;
|
|
34
|
+
tax_note: string | null;
|
|
35
|
+
due_date: string | null;
|
|
36
|
+
early_payment_deadline: string | null;
|
|
37
|
+
early_payment_discount_percent: number | null;
|
|
38
|
+
early_payment_discount_amount: number | null;
|
|
39
|
+
paid_at: string | null;
|
|
40
|
+
workflow_status: string | null;
|
|
41
|
+
assigned_to: string | null;
|
|
42
|
+
created_at: string;
|
|
43
|
+
updated_at: string | null;
|
|
44
|
+
archived_at: string | null;
|
|
45
|
+
not_relevant_at: string | null;
|
|
46
|
+
deleted_at: string | null;
|
|
47
|
+
}
|
|
48
|
+
export interface Approver {
|
|
49
|
+
id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
role: string;
|
|
52
|
+
}
|
|
53
|
+
export interface ApprovalAction {
|
|
54
|
+
id: string;
|
|
55
|
+
requiresComment: boolean;
|
|
56
|
+
}
|
|
57
|
+
export interface InvoiceDetailAdapter {
|
|
58
|
+
useInvoice(id: string): {
|
|
59
|
+
data: InvoiceDetailRecord | undefined;
|
|
60
|
+
loading: boolean;
|
|
61
|
+
error: unknown;
|
|
62
|
+
refetch: () => void;
|
|
63
|
+
};
|
|
64
|
+
useHistory(invoiceId: string): {
|
|
65
|
+
data: InvoiceHistoryEntry[];
|
|
66
|
+
loading: boolean;
|
|
67
|
+
};
|
|
68
|
+
useCompanyOptions(): {
|
|
69
|
+
data: {
|
|
70
|
+
code: string;
|
|
71
|
+
name: string;
|
|
72
|
+
}[];
|
|
73
|
+
loading: boolean;
|
|
74
|
+
};
|
|
75
|
+
usePropertyOptions(): {
|
|
76
|
+
data: {
|
|
77
|
+
code: string;
|
|
78
|
+
name: string;
|
|
79
|
+
}[];
|
|
80
|
+
loading: boolean;
|
|
81
|
+
};
|
|
82
|
+
useCategoryOptions(): {
|
|
83
|
+
data: {
|
|
84
|
+
id: string;
|
|
85
|
+
name: string;
|
|
86
|
+
}[];
|
|
87
|
+
loading: boolean;
|
|
88
|
+
};
|
|
89
|
+
canEdit: boolean;
|
|
90
|
+
updateInvoice(id: string, changes: Record<string, unknown>, changedFieldLabels: string[]): Promise<void>;
|
|
91
|
+
addNote(id: string, text: string): Promise<void>;
|
|
92
|
+
softDelete(id: string, reason: string): Promise<void>;
|
|
93
|
+
openInvoiceList: () => void;
|
|
94
|
+
approval?: {
|
|
95
|
+
useApprovers(): {
|
|
96
|
+
data: Approver[];
|
|
97
|
+
loading: boolean;
|
|
98
|
+
};
|
|
99
|
+
useLegalActions(invoice: InvoiceDetailRecord): {
|
|
100
|
+
data: Map<string, ApprovalAction>;
|
|
101
|
+
loading: boolean;
|
|
102
|
+
};
|
|
103
|
+
runAction(id: string, actionId: string, comment: string | undefined): Promise<void>;
|
|
104
|
+
};
|
|
105
|
+
payment?: {
|
|
106
|
+
setPaid(id: string, paid: boolean): Promise<void>;
|
|
107
|
+
usePayableAccount(invoice: InvoiceDetailRecord): {
|
|
108
|
+
data: {
|
|
109
|
+
iban: string;
|
|
110
|
+
bankName: string | null;
|
|
111
|
+
} | null;
|
|
112
|
+
loading: boolean;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
supplier?: {
|
|
116
|
+
openSupplier: (supplierId: string) => void;
|
|
117
|
+
};
|
|
118
|
+
archive?: {
|
|
119
|
+
archive(id: string, note: string): Promise<void>;
|
|
120
|
+
unarchive(id: string): Promise<void>;
|
|
121
|
+
};
|
|
122
|
+
notRelevant?: {
|
|
123
|
+
setNotRelevant(id: string, reason: string): Promise<void>;
|
|
124
|
+
clearNotRelevant(id: string): Promise<void>;
|
|
125
|
+
};
|
|
126
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { LucideIcon } from "lucide-react";
|
|
2
|
+
import type { Extracted, Validation } from "../pages/invoice-detail/pipeline-types";
|
|
3
|
+
import type { QueueTone } from "../components/invoice-queue";
|
|
4
|
+
export interface InvoiceListRow {
|
|
5
|
+
id: string;
|
|
6
|
+
issuer: string | null;
|
|
7
|
+
invoiceNumber: string | null;
|
|
8
|
+
costCategory: string | null;
|
|
9
|
+
documentType: string | null;
|
|
10
|
+
paymentMethod: string | null;
|
|
11
|
+
companyCode: string | null;
|
|
12
|
+
amountGross: number | null;
|
|
13
|
+
vatRate: number | null;
|
|
14
|
+
documentDate: string | null;
|
|
15
|
+
dueDate: string | null;
|
|
16
|
+
paidAt: string | null;
|
|
17
|
+
confidenceScore: number | null;
|
|
18
|
+
status: string | null;
|
|
19
|
+
workflowStatus: string | null;
|
|
20
|
+
extracted: Extracted | null;
|
|
21
|
+
validation: Validation | null;
|
|
22
|
+
validation_detail?: Record<string, unknown> | null;
|
|
23
|
+
hasConfirmedBankMatch?: boolean;
|
|
24
|
+
hasSuggestedBankMatch?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface InvoiceQueueCardData {
|
|
27
|
+
key: string;
|
|
28
|
+
count: number;
|
|
29
|
+
amount: number;
|
|
30
|
+
}
|
|
31
|
+
export interface InvoiceListAdapter {
|
|
32
|
+
useInvoices(): {
|
|
33
|
+
data: InvoiceListRow[];
|
|
34
|
+
loading: boolean;
|
|
35
|
+
error: unknown;
|
|
36
|
+
};
|
|
37
|
+
useQueueCards?(): {
|
|
38
|
+
data: InvoiceQueueCardData[];
|
|
39
|
+
loading: boolean;
|
|
40
|
+
};
|
|
41
|
+
useCompanyOptions?(): {
|
|
42
|
+
data: {
|
|
43
|
+
code: string;
|
|
44
|
+
name: string;
|
|
45
|
+
}[];
|
|
46
|
+
loading: boolean;
|
|
47
|
+
};
|
|
48
|
+
openInvoice(id: string): void;
|
|
49
|
+
formatMoney: (value: number | null) => string;
|
|
50
|
+
formatDate: (iso: string | null) => string;
|
|
51
|
+
}
|
|
52
|
+
export interface InvoiceQueueCardConfig {
|
|
53
|
+
key: string;
|
|
54
|
+
icon: LucideIcon;
|
|
55
|
+
tone: QueueTone;
|
|
56
|
+
filter: (row: InvoiceListRow) => boolean;
|
|
57
|
+
}
|
|
58
|
+
export interface InvoiceListConfig {
|
|
59
|
+
direction: "incoming" | "outgoing";
|
|
60
|
+
queueCards?: InvoiceQueueCardConfig[];
|
|
61
|
+
showBankMatch?: boolean;
|
|
62
|
+
showConfidence?: boolean;
|
|
63
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface UploadedFileResult {
|
|
2
|
+
storageBucket: string;
|
|
3
|
+
storagePath: string;
|
|
4
|
+
mime: string;
|
|
5
|
+
sizeBytes: number;
|
|
6
|
+
checksumSha256: string;
|
|
7
|
+
}
|
|
8
|
+
export interface InvoiceUploadInput {
|
|
9
|
+
invoiceId: string;
|
|
10
|
+
filename: string;
|
|
11
|
+
mime: string;
|
|
12
|
+
size: number;
|
|
13
|
+
storageBucket: string;
|
|
14
|
+
storagePath: string;
|
|
15
|
+
checksumSha256: string;
|
|
16
|
+
}
|
|
17
|
+
export interface InvoiceUploadAdapter {
|
|
18
|
+
acceptedExtensions: string[];
|
|
19
|
+
maxFileSizeBytes: number;
|
|
20
|
+
uploadFile(file: File, opts: {
|
|
21
|
+
signal: AbortSignal;
|
|
22
|
+
onProgress: (percent: number) => void;
|
|
23
|
+
}): Promise<UploadedFileResult>;
|
|
24
|
+
createInvoices(inputs: InvoiceUploadInput[]): Promise<void>;
|
|
25
|
+
openInvoiceList: () => void;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export interface ManualBookingRecord {
|
|
2
|
+
id: string;
|
|
3
|
+
companyId: string;
|
|
4
|
+
categoryId: string;
|
|
5
|
+
propertyId: string | null;
|
|
6
|
+
period: string;
|
|
7
|
+
amount: number;
|
|
8
|
+
note: string | null;
|
|
9
|
+
isRecurring: boolean;
|
|
10
|
+
recurrenceUntil: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface NewManualBooking {
|
|
13
|
+
companyId: string;
|
|
14
|
+
categoryId: string;
|
|
15
|
+
propertyId: string | null;
|
|
16
|
+
period: string;
|
|
17
|
+
amount: number;
|
|
18
|
+
note: string | null;
|
|
19
|
+
isRecurring: boolean;
|
|
20
|
+
recurrenceUntil: string | null;
|
|
21
|
+
}
|
|
22
|
+
export interface ManualBookingsAdapter {
|
|
23
|
+
useBookings(companyId: string | null, from: string, to: string): {
|
|
24
|
+
data: ManualBookingRecord[];
|
|
25
|
+
loading: boolean;
|
|
26
|
+
error: unknown;
|
|
27
|
+
};
|
|
28
|
+
useCompanyOptions(): {
|
|
29
|
+
data: {
|
|
30
|
+
id: string;
|
|
31
|
+
code: string;
|
|
32
|
+
name: string;
|
|
33
|
+
}[];
|
|
34
|
+
loading: boolean;
|
|
35
|
+
};
|
|
36
|
+
useCategoryOptions(): {
|
|
37
|
+
data: {
|
|
38
|
+
id: string;
|
|
39
|
+
label: string;
|
|
40
|
+
}[];
|
|
41
|
+
loading: boolean;
|
|
42
|
+
};
|
|
43
|
+
usePropertyOptions(): {
|
|
44
|
+
data: {
|
|
45
|
+
id: string;
|
|
46
|
+
code: string;
|
|
47
|
+
name: string | null;
|
|
48
|
+
}[];
|
|
49
|
+
loading: boolean;
|
|
50
|
+
};
|
|
51
|
+
createBooking(input: NewManualBooking): Promise<void>;
|
|
52
|
+
updateBooking(id: string, input: NewManualBooking): Promise<void>;
|
|
53
|
+
deleteBooking(id: string): Promise<void>;
|
|
54
|
+
monthLabels: readonly string[];
|
|
55
|
+
formatMoney: (value: number) => string;
|
|
56
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { NotificationItem } from "../components/notifications/types";
|
|
2
|
+
export interface AckStore {
|
|
3
|
+
acked: Record<string, number>;
|
|
4
|
+
save: (next: Record<string, number>) => void;
|
|
5
|
+
}
|
|
6
|
+
export interface BellEventGroup {
|
|
7
|
+
key: string;
|
|
8
|
+
events: string[];
|
|
9
|
+
}
|
|
10
|
+
export interface ReminderRecipient {
|
|
11
|
+
value: string;
|
|
12
|
+
label: string;
|
|
13
|
+
}
|
|
14
|
+
export interface NotificationsAdapter {
|
|
15
|
+
useItems(): {
|
|
16
|
+
items: NotificationItem[];
|
|
17
|
+
loading: boolean;
|
|
18
|
+
};
|
|
19
|
+
useAckStore(): AckStore;
|
|
20
|
+
useBellToggles(): {
|
|
21
|
+
saved: Record<string, boolean> | undefined;
|
|
22
|
+
isLoading: boolean;
|
|
23
|
+
save: (next: Record<string, boolean>) => Promise<void>;
|
|
24
|
+
};
|
|
25
|
+
useReminderRecipients(): ReminderRecipient[];
|
|
26
|
+
sendReminder(input: {
|
|
27
|
+
recipientUserId: string;
|
|
28
|
+
note?: string;
|
|
29
|
+
}): Promise<void>;
|
|
30
|
+
bellEventGroups: BellEventGroup[];
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { BankTransactionRecord } from "./bank-reconciliation";
|
|
2
|
+
export interface OpenItemRow {
|
|
3
|
+
type: "incoming" | "outgoing";
|
|
4
|
+
id: string;
|
|
5
|
+
companyCode: string | null;
|
|
6
|
+
counterparty: string;
|
|
7
|
+
invoiceNumber: string | null;
|
|
8
|
+
amount: number | null;
|
|
9
|
+
matchedAmount: number;
|
|
10
|
+
receivedAt: string | null;
|
|
11
|
+
documentDate: string | null;
|
|
12
|
+
dueDate: string | null;
|
|
13
|
+
discountDeadline: string | null;
|
|
14
|
+
discountPercent: number | null;
|
|
15
|
+
discountAmount: number | null;
|
|
16
|
+
blocked: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface OpenItemsAdapter {
|
|
19
|
+
useOpenItems(includeBlocked: boolean): {
|
|
20
|
+
data: OpenItemRow[];
|
|
21
|
+
loading: boolean;
|
|
22
|
+
error: unknown;
|
|
23
|
+
};
|
|
24
|
+
useMissingReceiptTransactions(): {
|
|
25
|
+
data: BankTransactionRecord[];
|
|
26
|
+
loading: boolean;
|
|
27
|
+
error: unknown;
|
|
28
|
+
};
|
|
29
|
+
useCompanyOptions(): {
|
|
30
|
+
data: {
|
|
31
|
+
code: string;
|
|
32
|
+
name: string;
|
|
33
|
+
}[];
|
|
34
|
+
loading: boolean;
|
|
35
|
+
};
|
|
36
|
+
openInvoice: (row: {
|
|
37
|
+
type: "incoming" | "outgoing";
|
|
38
|
+
id: string;
|
|
39
|
+
}) => void;
|
|
40
|
+
formatMoney: (value: number | null) => string;
|
|
41
|
+
formatDate: (iso: string | null) => string;
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { OposCategory, OposScope } from "../lib/opos-whitelist";
|
|
2
|
+
export interface OposRule {
|
|
3
|
+
id: string;
|
|
4
|
+
term: string;
|
|
5
|
+
scope: OposScope;
|
|
6
|
+
category: OposCategory;
|
|
7
|
+
note: string | null;
|
|
8
|
+
is_active: boolean;
|
|
9
|
+
created_at: string;
|
|
10
|
+
created_by: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface NewOposRule {
|
|
13
|
+
term: string;
|
|
14
|
+
scope: OposScope;
|
|
15
|
+
category: OposCategory;
|
|
16
|
+
note: string;
|
|
17
|
+
isActive: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface OposWhitelistAdapter {
|
|
20
|
+
useRules(): {
|
|
21
|
+
data: OposRule[];
|
|
22
|
+
loading: boolean;
|
|
23
|
+
error: unknown;
|
|
24
|
+
};
|
|
25
|
+
useHitCounts(): {
|
|
26
|
+
data: Map<string, number>;
|
|
27
|
+
loading: boolean;
|
|
28
|
+
};
|
|
29
|
+
canWrite: boolean;
|
|
30
|
+
createRule(input: NewOposRule): Promise<void>;
|
|
31
|
+
updateRule(id: string, changes: Partial<NewOposRule>): Promise<void>;
|
|
32
|
+
deleteRule(id: string): Promise<void>;
|
|
33
|
+
setActive(id: string, active: boolean): Promise<void>;
|
|
34
|
+
reapplyAll(): Promise<{
|
|
35
|
+
affected: number;
|
|
36
|
+
}>;
|
|
37
|
+
formatDate: (iso: string) => string;
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type OutgoingInvoiceStatus = "draft" | "open" | "paidoff" | "voided";
|
|
2
|
+
export interface OutgoingInvoiceRecord {
|
|
3
|
+
id: string;
|
|
4
|
+
company_id: string | null;
|
|
5
|
+
customer_name: string | null;
|
|
6
|
+
voucher_number: string | null;
|
|
7
|
+
voucher_date: string | null;
|
|
8
|
+
due_date: string | null;
|
|
9
|
+
amount_gross: number | null;
|
|
10
|
+
voucher_status: OutgoingInvoiceStatus;
|
|
11
|
+
}
|
|
12
|
+
export interface OutgoingInvoiceAdapter {
|
|
13
|
+
useInvoices(companyId?: string): {
|
|
14
|
+
data: OutgoingInvoiceRecord[];
|
|
15
|
+
loading: boolean;
|
|
16
|
+
error: unknown;
|
|
17
|
+
};
|
|
18
|
+
useCompanyOptions(): {
|
|
19
|
+
data: {
|
|
20
|
+
id: string;
|
|
21
|
+
code: string;
|
|
22
|
+
name: string;
|
|
23
|
+
}[];
|
|
24
|
+
loading: boolean;
|
|
25
|
+
};
|
|
26
|
+
setStatus(id: string, status: OutgoingInvoiceStatus): Promise<void>;
|
|
27
|
+
softDelete(id: string): Promise<void>;
|
|
28
|
+
openFile?: (invoiceId: string) => void;
|
|
29
|
+
openUpload: () => void;
|
|
30
|
+
formatMoney: (value: number | null) => string;
|
|
31
|
+
formatDate: (iso: string | null) => string;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { LucideIcon } from "lucide-react";
|
|
2
|
+
import type { OverviewPeriod, PeriodRange } from "../components/dashboard/periods";
|
|
3
|
+
import type { RankedBarRow } from "../components/dashboard/ranked-bars";
|
|
4
|
+
import type { StageTile } from "../components/dashboard/stage-tiles";
|
|
5
|
+
import type { MoneyTrendPoint } from "../components/dashboard/money-trend-chart";
|
|
6
|
+
import type { ProcessingSummary } from "../components/dashboard/processing-summary-panel";
|
|
7
|
+
import type { StatRowConfig } from "../components/dashboard/stat-rows-panel";
|
|
8
|
+
export type { OverviewPeriod, PeriodRange };
|
|
9
|
+
export interface MoneyFigure {
|
|
10
|
+
value: number;
|
|
11
|
+
count?: number;
|
|
12
|
+
previousValue?: number;
|
|
13
|
+
loading: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface OverviewAdapter {
|
|
16
|
+
useMoneyFigures?(ranges: Record<string, PeriodRange>): {
|
|
17
|
+
data: Record<string, MoneyFigure>;
|
|
18
|
+
loading: boolean;
|
|
19
|
+
};
|
|
20
|
+
useInvoiceStages?(range: PeriodRange): {
|
|
21
|
+
data: StageTile[];
|
|
22
|
+
loading: boolean;
|
|
23
|
+
error: boolean;
|
|
24
|
+
};
|
|
25
|
+
useTopSuppliers?(range: PeriodRange): {
|
|
26
|
+
data: {
|
|
27
|
+
rows: RankedBarRow[];
|
|
28
|
+
totalText: string;
|
|
29
|
+
};
|
|
30
|
+
loading: boolean;
|
|
31
|
+
};
|
|
32
|
+
useSpendByCompany?(range: PeriodRange): {
|
|
33
|
+
data: {
|
|
34
|
+
rows: RankedBarRow[];
|
|
35
|
+
totalText: string;
|
|
36
|
+
};
|
|
37
|
+
loading: boolean;
|
|
38
|
+
};
|
|
39
|
+
useMoneyTrend?(range: PeriodRange): {
|
|
40
|
+
data: MoneyTrendPoint[];
|
|
41
|
+
loading: boolean;
|
|
42
|
+
};
|
|
43
|
+
useProcessingSummary?(range: PeriodRange): {
|
|
44
|
+
data: ProcessingSummary | undefined;
|
|
45
|
+
loading: boolean;
|
|
46
|
+
error: boolean;
|
|
47
|
+
};
|
|
48
|
+
useOpenItemsSummary?(): {
|
|
49
|
+
data: StatRowConfig[];
|
|
50
|
+
loading: boolean;
|
|
51
|
+
error: boolean;
|
|
52
|
+
};
|
|
53
|
+
useBankSummary?(): {
|
|
54
|
+
data: StatRowConfig[];
|
|
55
|
+
loading: boolean;
|
|
56
|
+
error: boolean;
|
|
57
|
+
};
|
|
58
|
+
formatMoney(value: number): string;
|
|
59
|
+
formatMoneyCompact(value: number): string;
|
|
60
|
+
formatDay(iso: string): string;
|
|
61
|
+
}
|
|
62
|
+
export interface MoneyCardConfig {
|
|
63
|
+
key: string;
|
|
64
|
+
icon: LucideIcon;
|
|
65
|
+
to: string;
|
|
66
|
+
iconTint: string;
|
|
67
|
+
higherIsBetter: boolean;
|
|
68
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { QueryResult } from "../lib/query-result";
|
|
2
|
+
export type StatusTone = "brand" | "success" | "warning" | "danger" | "neutral";
|
|
3
|
+
export interface ProcessingLogEntry {
|
|
4
|
+
id: string;
|
|
5
|
+
processedAt: string | null;
|
|
6
|
+
subject: string | null;
|
|
7
|
+
sender: string | null;
|
|
8
|
+
status: string | null;
|
|
9
|
+
reason: string | null;
|
|
10
|
+
invoiceId: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface ProcessingLogPageQuery {
|
|
13
|
+
search: string;
|
|
14
|
+
status: string | undefined;
|
|
15
|
+
fromDate: string | null;
|
|
16
|
+
toDate: string | null;
|
|
17
|
+
page: number;
|
|
18
|
+
pageSize: number;
|
|
19
|
+
}
|
|
20
|
+
export interface ProcessingLogCountsQuery {
|
|
21
|
+
search: string;
|
|
22
|
+
fromDate: string | null;
|
|
23
|
+
toDate: string | null;
|
|
24
|
+
}
|
|
25
|
+
export interface ChangeHistoryEntry {
|
|
26
|
+
id: string;
|
|
27
|
+
at: string | null;
|
|
28
|
+
actor: string | null;
|
|
29
|
+
type: string | null;
|
|
30
|
+
tableName: string | null;
|
|
31
|
+
text: string | null;
|
|
32
|
+
}
|
|
33
|
+
export interface PageOfRows<Row> {
|
|
34
|
+
rows: Row[];
|
|
35
|
+
total: number;
|
|
36
|
+
}
|
|
37
|
+
export interface ProcessingLogAdapter {
|
|
38
|
+
useLogPage(query: ProcessingLogPageQuery): QueryResult<PageOfRows<ProcessingLogEntry>>;
|
|
39
|
+
useStatusCounts(query: ProcessingLogCountsQuery): QueryResult<Record<string, number>>;
|
|
40
|
+
useChangeHistoryPage(query: {
|
|
41
|
+
search: string;
|
|
42
|
+
page: number;
|
|
43
|
+
pageSize: number;
|
|
44
|
+
}): QueryResult<PageOfRows<ChangeHistoryEntry>>;
|
|
45
|
+
searchTermWasIgnored(term: string): boolean;
|
|
46
|
+
openInvoice(invoiceId: string): void;
|
|
47
|
+
statusTone: Record<string, StatusTone>;
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|