@spaceinvoices/react-ui 0.4.11 → 0.4.31
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/cli/dist/index.js +1 -1
- package/package.json +3 -2
- package/registry.json +30 -31
- package/src/common/autocomplete.tsx +48 -26
- package/src/components/activities/locales/bg.ts +21 -0
- package/src/components/activities/locales/cs.ts +21 -0
- package/src/components/activities/locales/en.ts +21 -0
- package/src/components/activities/locales/et.ts +21 -0
- package/src/components/activities/locales/fi.ts +21 -0
- package/src/components/activities/locales/is.ts +21 -0
- package/src/components/activities/locales/nb.ts +21 -0
- package/src/components/activities/locales/sk.ts +21 -0
- package/src/components/activities/locales/sv.ts +21 -0
- package/src/components/advance-invoices/advance-invoices.hooks.ts +36 -46
- package/src/components/advance-invoices/create/create-advance-invoice-form.tsx +452 -115
- package/src/components/advance-invoices/create/locales/bg.ts +56 -0
- package/src/components/advance-invoices/create/locales/cs.ts +56 -0
- package/src/components/advance-invoices/create/locales/de.ts +15 -7
- package/src/components/advance-invoices/create/locales/en.ts +56 -0
- package/src/components/advance-invoices/create/locales/es.ts +15 -7
- package/src/components/advance-invoices/create/locales/et.ts +56 -0
- package/src/components/advance-invoices/create/locales/fi.ts +56 -0
- package/src/components/advance-invoices/create/locales/fr.ts +16 -8
- package/src/components/advance-invoices/create/locales/hr.ts +29 -21
- package/src/components/advance-invoices/create/locales/is.ts +56 -0
- package/src/components/advance-invoices/create/locales/it.ts +15 -7
- package/src/components/advance-invoices/create/locales/nb.ts +56 -0
- package/src/components/advance-invoices/create/locales/nl.ts +15 -7
- package/src/components/advance-invoices/create/locales/pl.ts +17 -9
- package/src/components/advance-invoices/create/locales/pt.ts +16 -8
- package/src/components/advance-invoices/create/locales/sk.ts +56 -0
- package/src/components/advance-invoices/create/locales/sl.ts +23 -12
- package/src/components/advance-invoices/create/locales/sv.ts +56 -0
- package/src/components/advance-invoices/create/prepare-advance-invoice-submission.ts +62 -2
- package/src/components/advance-invoices/list/list-row-actions.tsx +48 -16
- package/src/components/advance-invoices/list/list-table.tsx +35 -9
- package/src/components/advance-invoices/list/locales/bg.ts +51 -0
- package/src/components/advance-invoices/list/locales/cs.ts +51 -0
- package/src/components/advance-invoices/list/locales/en.ts +33 -2
- package/src/components/advance-invoices/list/locales/et.ts +51 -0
- package/src/components/advance-invoices/list/locales/fi.ts +51 -0
- package/src/components/advance-invoices/list/locales/hr.ts +15 -15
- package/src/components/advance-invoices/list/locales/is.ts +51 -0
- package/src/components/advance-invoices/list/locales/nb.ts +51 -0
- package/src/components/advance-invoices/list/locales/sk.ts +51 -0
- package/src/components/advance-invoices/list/locales/sv.ts +51 -0
- package/src/components/advance-invoices/list/use-advance-invoice-download.ts +3 -5
- package/src/components/common/autocomplete-locales.ts +101 -0
- package/src/components/company-registry/company-registry.hooks.ts +3 -7
- package/src/components/credit-notes/create/create-credit-note-form.tsx +437 -80
- package/src/components/credit-notes/create/locales/bg.ts +101 -0
- package/src/components/credit-notes/create/locales/cs.ts +101 -0
- package/src/components/credit-notes/create/locales/de.ts +20 -7
- package/src/components/credit-notes/create/locales/en.ts +101 -0
- package/src/components/credit-notes/create/locales/es.ts +20 -7
- package/src/components/credit-notes/create/locales/et.ts +101 -0
- package/src/components/credit-notes/create/locales/fi.ts +101 -0
- package/src/components/credit-notes/create/locales/fr.ts +21 -8
- package/src/components/credit-notes/create/locales/hr.ts +41 -28
- package/src/components/credit-notes/create/locales/is.ts +101 -0
- package/src/components/credit-notes/create/locales/it.ts +20 -7
- package/src/components/credit-notes/create/locales/nb.ts +101 -0
- package/src/components/credit-notes/create/locales/nl.ts +20 -7
- package/src/components/credit-notes/create/locales/pl.ts +22 -9
- package/src/components/credit-notes/create/locales/pt.ts +21 -8
- package/src/components/credit-notes/create/locales/sk.ts +101 -0
- package/src/components/credit-notes/create/locales/sl.ts +28 -14
- package/src/components/credit-notes/create/locales/sv.ts +101 -0
- package/src/components/credit-notes/create/prepare-credit-note-submission.ts +66 -0
- package/src/components/credit-notes/credit-notes.hooks.ts +34 -3
- package/src/components/credit-notes/list/list-row-actions.tsx +19 -7
- package/src/components/credit-notes/list/list-table.tsx +60 -8
- package/src/components/credit-notes/list/locales/bg.ts +48 -0
- package/src/components/credit-notes/list/locales/cs.ts +48 -0
- package/src/components/credit-notes/list/locales/en.ts +31 -2
- package/src/components/credit-notes/list/locales/et.ts +48 -0
- package/src/components/credit-notes/list/locales/fi.ts +48 -0
- package/src/components/credit-notes/list/locales/hr.ts +12 -12
- package/src/components/credit-notes/list/locales/is.ts +48 -0
- package/src/components/credit-notes/list/locales/nb.ts +48 -0
- package/src/components/credit-notes/list/locales/sk.ts +48 -0
- package/src/components/credit-notes/list/locales/sv.ts +48 -0
- package/src/components/credit-notes/list/use-credit-note-download.ts +3 -5
- package/src/components/customers/create-customer-form/locales/bg.ts +21 -0
- package/src/components/customers/create-customer-form/locales/cs.ts +21 -0
- package/src/components/customers/create-customer-form/locales/en.ts +21 -0
- package/src/components/customers/create-customer-form/locales/et.ts +21 -0
- package/src/components/customers/create-customer-form/locales/fi.ts +21 -0
- package/src/components/customers/create-customer-form/locales/hr.ts +11 -11
- package/src/components/customers/create-customer-form/locales/is.ts +21 -0
- package/src/components/customers/create-customer-form/locales/nb.ts +21 -0
- package/src/components/customers/create-customer-form/locales/sk.ts +21 -0
- package/src/components/customers/create-customer-form/locales/sv.ts +21 -0
- package/src/components/customers/customer-autocomplete.tsx +32 -4
- package/src/components/customers/customer-list-table/customer-list-table.tsx +8 -6
- package/src/components/customers/customer-list-table/locales/bg.ts +25 -0
- package/src/components/customers/customer-list-table/locales/cs.ts +25 -0
- package/src/components/customers/customer-list-table/locales/en.ts +17 -2
- package/src/components/customers/customer-list-table/locales/et.ts +25 -0
- package/src/components/customers/customer-list-table/locales/fi.ts +25 -0
- package/src/components/customers/customer-list-table/locales/hr.ts +11 -11
- package/src/components/customers/customer-list-table/locales/is.ts +25 -0
- package/src/components/customers/customer-list-table/locales/nb.ts +25 -0
- package/src/components/customers/customer-list-table/locales/sk.ts +25 -0
- package/src/components/customers/customer-list-table/locales/sv.ts +25 -0
- package/src/components/customers/customers.hooks.ts +14 -17
- package/src/components/customers/edit-customer-form/locales/bg.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/cs.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/en.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/et.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/fi.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/hr.ts +5 -5
- package/src/components/customers/edit-customer-form/locales/is.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/nb.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/sk.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/sv.ts +13 -0
- package/src/components/dashboard/collection-rate-card/collection-rate-card.tsx +7 -6
- package/src/components/dashboard/collection-rate-card/locales/en.ts +3 -0
- package/src/components/dashboard/collection-rate-card/use-collection-rate.ts +8 -7
- package/src/components/dashboard/invoice-status-chart/invoice-status-chart.tsx +7 -4
- package/src/components/dashboard/invoice-status-chart/locales/bg.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/cs.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/de.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/en.ts +10 -0
- package/src/components/dashboard/invoice-status-chart/locales/es.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/et.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/fi.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/fr.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/hr.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/is.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/it.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/nb.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/nl.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/pl.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/pt.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/sk.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/sl.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/sv.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/locales/bg.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/locales/cs.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/locales/en.ts +12 -0
- package/src/components/dashboard/payment-methods-chart/locales/et.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/locales/fi.ts +6 -6
- package/src/components/dashboard/payment-methods-chart/locales/hr.ts +3 -3
- package/src/components/dashboard/payment-methods-chart/locales/is.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/locales/nb.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/locales/sk.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/locales/sv.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/payment-methods-chart.tsx +4 -3
- package/src/components/dashboard/payment-trend-chart/locales/bg.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/locales/cs.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/locales/en.ts +6 -0
- package/src/components/dashboard/payment-trend-chart/locales/et.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/locales/fi.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/locales/is.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/locales/nb.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/locales/sk.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/locales/sv.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/payment-trend-chart.tsx +4 -3
- package/src/components/dashboard/payment-trend-chart/use-payment-trend.ts +12 -9
- package/src/components/dashboard/revenue-card.tsx +3 -3
- package/src/components/dashboard/revenue-trend-chart/locales/bg.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/locales/cs.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/locales/en.ts +6 -0
- package/src/components/dashboard/revenue-trend-chart/locales/et.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/locales/fi.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/locales/is.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/locales/nb.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/locales/sk.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/locales/sv.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/revenue-trend-chart.tsx +4 -3
- package/src/components/dashboard/revenue-trend-chart/use-revenue-trend.ts +4 -3
- package/src/components/dashboard/shared/local-date.ts +11 -0
- package/src/components/dashboard/shared/use-revenue-data.ts +6 -5
- package/src/components/dashboard/shared/use-stats-query.ts +7 -11
- package/src/components/dashboard/stat-card.tsx +3 -3
- package/src/components/dashboard/tax-collected-card/tax-collected-card.tsx +11 -9
- package/src/components/dashboard/tax-collected-card/use-tax-collected.ts +3 -2
- package/src/components/dashboard/top-customers-chart/locales/bg.ts +2 -2
- package/src/components/dashboard/top-customers-chart/locales/cs.ts +2 -2
- package/src/components/dashboard/top-customers-chart/locales/en.ts +7 -0
- package/src/components/dashboard/top-customers-chart/locales/et.ts +2 -2
- package/src/components/dashboard/top-customers-chart/locales/fi.ts +2 -2
- package/src/components/dashboard/top-customers-chart/locales/is.ts +2 -2
- package/src/components/dashboard/top-customers-chart/locales/nb.ts +2 -2
- package/src/components/dashboard/top-customers-chart/locales/sk.ts +2 -2
- package/src/components/dashboard/top-customers-chart/locales/sv.ts +2 -2
- package/src/components/dashboard/top-customers-chart/top-customers-chart.tsx +4 -3
- package/src/components/dashboard/top-customers-chart/use-top-customers.ts +7 -20
- package/src/components/delivery-notes/create/create-delivery-note-form.tsx +179 -47
- package/src/components/delivery-notes/create/locales/bg.ts +69 -0
- package/src/components/delivery-notes/create/locales/cs.ts +69 -0
- package/src/components/delivery-notes/create/locales/de.ts +1 -0
- package/src/components/delivery-notes/create/locales/en.ts +69 -0
- package/src/components/delivery-notes/create/locales/es.ts +1 -0
- package/src/components/delivery-notes/create/locales/et.ts +69 -0
- package/src/components/delivery-notes/create/locales/fi.ts +69 -0
- package/src/components/delivery-notes/create/locales/fr.ts +1 -0
- package/src/components/delivery-notes/create/locales/hr.ts +7 -6
- package/src/components/delivery-notes/create/locales/is.ts +69 -0
- package/src/components/delivery-notes/create/locales/it.ts +1 -0
- package/src/components/delivery-notes/create/locales/nb.ts +69 -0
- package/src/components/delivery-notes/create/locales/nl.ts +1 -0
- package/src/components/delivery-notes/create/locales/pl.ts +1 -0
- package/src/components/delivery-notes/create/locales/pt.ts +1 -0
- package/src/components/delivery-notes/create/locales/sk.ts +69 -0
- package/src/components/delivery-notes/create/locales/sl.ts +6 -5
- package/src/components/delivery-notes/create/locales/sv.ts +69 -0
- package/src/components/delivery-notes/create/prepare-delivery-note-submission.ts +34 -1
- package/src/components/delivery-notes/delivery-notes.hooks.ts +34 -3
- package/src/components/delivery-notes/list/list-row-actions.tsx +62 -16
- package/src/components/delivery-notes/list/list-table.tsx +44 -10
- package/src/components/delivery-notes/list/locales/bg.ts +40 -0
- package/src/components/delivery-notes/list/locales/cs.ts +40 -0
- package/src/components/delivery-notes/list/locales/et.ts +40 -0
- package/src/components/delivery-notes/list/locales/fi.ts +40 -0
- package/src/components/delivery-notes/list/locales/is.ts +40 -0
- package/src/components/delivery-notes/list/locales/nb.ts +40 -0
- package/src/components/delivery-notes/list/locales/sk.ts +40 -0
- package/src/components/delivery-notes/list/locales/sv.ts +40 -0
- package/src/components/delivery-notes/list/use-delivery-note-download.ts +3 -5
- package/src/components/documents/create/custom-create-template.ts +114 -0
- package/src/components/documents/create/document-add-item-form.tsx +266 -153
- package/src/components/documents/create/document-add-item-tax-rate-field.tsx +3 -3
- package/src/components/documents/create/document-date-validation.ts +111 -0
- package/src/components/documents/create/document-details-section.tsx +117 -54
- package/src/components/documents/create/document-form-item.ts +67 -0
- package/src/components/documents/create/document-item-validation.ts +54 -0
- package/src/components/documents/create/document-items-section.tsx +44 -6
- package/src/components/documents/create/document-recipient-section.tsx +10 -2
- package/src/components/documents/create/form-types.ts +2 -2
- package/src/components/documents/create/linked-documents-info.tsx +6 -14
- package/src/components/documents/create/live-preview.tsx +22 -18
- package/src/components/documents/create/mark-as-paid-section.tsx +80 -20
- package/src/components/documents/create/payment-rows.ts +321 -0
- package/src/components/documents/create/prepare-document-submission.ts +160 -109
- package/src/components/documents/create/prepare-preview-data.ts +12 -0
- package/src/components/documents/create/preserved-expected-total.ts +90 -0
- package/src/components/documents/create/scroll-to-first-invalid-field.ts +27 -0
- package/src/components/documents/create/smart-code-insert-button.tsx +5 -53
- package/src/components/documents/create/use-document-customer-form.ts +74 -25
- package/src/components/documents/documents.hooks.ts +3 -5
- package/src/components/documents/index.ts +1 -0
- package/src/components/documents/public/index.ts +1 -0
- package/src/components/documents/public/public-document-summary.tsx +336 -0
- package/src/components/documents/shared/document-preview-display.tsx +65 -39
- package/src/components/documents/shared/index.ts +6 -1
- package/src/components/documents/shared/scaled-document-preview.tsx +33 -19
- package/src/components/documents/types.ts +24 -0
- package/src/components/documents/view/document-actions-bar.tsx +251 -63
- package/src/components/documents/view/document-activities-list.tsx +23 -11
- package/src/components/documents/view/document-details-card.tsx +11 -39
- package/src/components/documents/view/document-payments-list.tsx +114 -57
- package/src/components/documents/view/document-relations-list.tsx +26 -6
- package/src/components/documents/view/document-sidebar.tsx +25 -3
- package/src/components/documents/view/document-version-history.tsx +137 -0
- package/src/components/documents/view/index.ts +1 -0
- package/src/components/documents/view/locales/bg.ts +143 -0
- package/src/components/documents/view/locales/cs.ts +143 -0
- package/src/components/documents/view/locales/de.ts +13 -0
- package/src/components/documents/view/locales/en.ts +143 -0
- package/src/components/documents/view/locales/es.ts +13 -0
- package/src/components/documents/view/locales/et.ts +143 -0
- package/src/components/documents/view/locales/fi.ts +143 -0
- package/src/components/documents/view/locales/fr.ts +13 -0
- package/src/components/documents/view/locales/hr.ts +18 -5
- package/src/components/documents/view/locales/is.ts +143 -0
- package/src/components/documents/view/locales/it.ts +13 -0
- package/src/components/documents/view/locales/nb.ts +143 -0
- package/src/components/documents/view/locales/nl.ts +13 -0
- package/src/components/documents/view/locales/pl.ts +13 -0
- package/src/components/documents/view/locales/pt.ts +13 -0
- package/src/components/documents/view/locales/sk.ts +143 -0
- package/src/components/documents/view/locales/sl.ts +21 -8
- package/src/components/documents/view/locales/sv.ts +143 -0
- package/src/components/documents/view/use-document-download.ts +18 -17
- package/src/components/entities/create-entity-form.tsx +200 -12
- package/src/components/entities/entities.hooks.ts +15 -7
- package/src/components/entities/entity-settings-form/entity-settings-form.tsx +121 -65
- package/src/components/entities/entity-settings-form/input-with-preview.tsx +28 -4
- package/src/components/entities/entity-settings-form/locales/bg.ts +206 -0
- package/src/components/entities/entity-settings-form/locales/cs.ts +206 -0
- package/src/components/entities/entity-settings-form/locales/de.ts +17 -3
- package/src/components/entities/entity-settings-form/locales/en.ts +206 -0
- package/src/components/entities/entity-settings-form/locales/es.ts +15 -3
- package/src/components/entities/entity-settings-form/locales/et.ts +205 -0
- package/src/components/entities/entity-settings-form/locales/fi.ts +206 -0
- package/src/components/entities/entity-settings-form/locales/fr.ts +15 -3
- package/src/components/entities/entity-settings-form/locales/hr.ts +23 -11
- package/src/components/entities/entity-settings-form/locales/is.ts +206 -0
- package/src/components/entities/entity-settings-form/locales/it.ts +15 -3
- package/src/components/entities/entity-settings-form/locales/nb.ts +206 -0
- package/src/components/entities/entity-settings-form/locales/nl.ts +15 -3
- package/src/components/entities/entity-settings-form/locales/pl.ts +15 -3
- package/src/components/entities/entity-settings-form/locales/pt.ts +15 -3
- package/src/components/entities/entity-settings-form/locales/sk.ts +206 -0
- package/src/components/entities/entity-settings-form/locales/sl.ts +31 -18
- package/src/components/entities/entity-settings-form/locales/sv.ts +212 -0
- package/src/components/entities/fina-settings-form/fina-operator-required-dialog.tsx +34 -9
- package/src/components/entities/fina-settings-form/fina-settings-form.tsx +2 -0
- package/src/components/entities/fina-settings-form/fina-settings.hooks.ts +14 -45
- package/src/components/entities/fina-settings-form/locales/bg.ts +163 -0
- package/src/components/entities/fina-settings-form/locales/cs.ts +163 -0
- package/src/components/entities/fina-settings-form/locales/et.ts +163 -0
- package/src/components/entities/fina-settings-form/locales/fi.ts +163 -0
- package/src/components/entities/fina-settings-form/locales/hr.ts +11 -10
- package/src/components/entities/fina-settings-form/locales/is.ts +164 -0
- package/src/components/entities/fina-settings-form/locales/nb.ts +163 -0
- package/src/components/entities/fina-settings-form/locales/sk.ts +163 -0
- package/src/components/entities/fina-settings-form/locales/sl.ts +8 -7
- package/src/components/entities/fina-settings-form/locales/sv.ts +165 -0
- package/src/components/entities/furs-settings-form/furs-operator-required-dialog.tsx +34 -9
- package/src/components/entities/furs-settings-form/furs-settings-form.tsx +13 -1
- package/src/components/entities/furs-settings-form/furs-settings.hooks.ts +141 -42
- package/src/components/entities/furs-settings-form/locales/bg.ts +242 -0
- package/src/components/entities/furs-settings-form/locales/cs.ts +241 -0
- package/src/components/entities/furs-settings-form/locales/de.ts +42 -15
- package/src/components/entities/furs-settings-form/locales/en.ts +24 -0
- package/src/components/entities/furs-settings-form/locales/es.ts +42 -15
- package/src/components/entities/furs-settings-form/locales/et.ts +242 -0
- package/src/components/entities/furs-settings-form/locales/fi.ts +243 -0
- package/src/components/entities/furs-settings-form/locales/fr.ts +43 -15
- package/src/components/entities/furs-settings-form/locales/hr.ts +44 -19
- package/src/components/entities/furs-settings-form/locales/is.ts +242 -0
- package/src/components/entities/furs-settings-form/locales/it.ts +42 -15
- package/src/components/entities/furs-settings-form/locales/nb.ts +242 -0
- package/src/components/entities/furs-settings-form/locales/nl.ts +42 -15
- package/src/components/entities/furs-settings-form/locales/pl.ts +40 -15
- package/src/components/entities/furs-settings-form/locales/pt.ts +42 -15
- package/src/components/entities/furs-settings-form/locales/sk.ts +243 -0
- package/src/components/entities/furs-settings-form/locales/sl.ts +34 -10
- package/src/components/entities/furs-settings-form/locales/sv.ts +242 -0
- package/src/components/entities/furs-settings-form/sections/enable-fiscalization-section.tsx +11 -0
- package/src/components/entities/furs-settings-form/sections/furs-internal-act-download-card.tsx +111 -0
- package/src/components/entities/furs-settings-form/sections/general-settings-section.tsx +27 -0
- package/src/components/entities/furs-settings-form/sections/premises-management-section.tsx +23 -16
- package/src/components/entities/furs-settings-form/sections/register-premise-dialog.tsx +89 -31
- package/src/components/entities/settings/branding-settings-form.tsx +11 -30
- package/src/components/entities/settings/company-settings-form.tsx +2 -1
- package/src/components/entities/settings/defaults-settings-form.tsx +106 -3
- package/src/components/entities/settings/email-settings-form.tsx +245 -3
- package/src/components/entities/settings/eslog-settings-form.tsx +2 -1
- package/src/components/entities/settings/number-format-settings-form.tsx +2 -1
- package/src/components/entities/settings/pdf-template-selector/locales/bg.ts +20 -0
- package/src/components/entities/settings/pdf-template-selector/locales/cs.ts +20 -0
- package/src/components/entities/settings/pdf-template-selector/locales/en.ts +20 -0
- package/src/components/entities/settings/pdf-template-selector/locales/et.ts +19 -0
- package/src/components/entities/settings/pdf-template-selector/locales/fi.ts +20 -0
- package/src/components/entities/settings/pdf-template-selector/locales/is.ts +19 -0
- package/src/components/entities/settings/pdf-template-selector/locales/nb.ts +19 -0
- package/src/components/entities/settings/pdf-template-selector/locales/sk.ts +20 -0
- package/src/components/entities/settings/pdf-template-selector/locales/sv.ts +19 -0
- package/src/components/entities/settings/tax-rules-settings-form.tsx +57 -6
- package/src/components/estimates/create/create-estimate-form.tsx +250 -66
- package/src/components/estimates/create/locales/bg.ts +77 -0
- package/src/components/estimates/create/locales/cs.ts +77 -0
- package/src/components/estimates/create/locales/de.ts +4 -3
- package/src/components/estimates/create/locales/en.ts +77 -0
- package/src/components/estimates/create/locales/es.ts +4 -3
- package/src/components/estimates/create/locales/et.ts +77 -0
- package/src/components/estimates/create/locales/fi.ts +77 -0
- package/src/components/estimates/create/locales/fr.ts +4 -3
- package/src/components/estimates/create/locales/hr.ts +13 -12
- package/src/components/estimates/create/locales/is.ts +77 -0
- package/src/components/estimates/create/locales/it.ts +4 -3
- package/src/components/estimates/create/locales/nb.ts +77 -0
- package/src/components/estimates/create/locales/nl.ts +4 -3
- package/src/components/estimates/create/locales/pl.ts +4 -3
- package/src/components/estimates/create/locales/pt.ts +4 -3
- package/src/components/estimates/create/locales/sk.ts +77 -0
- package/src/components/estimates/create/locales/sl.ts +13 -12
- package/src/components/estimates/create/locales/sv.ts +77 -0
- package/src/components/estimates/create/prepare-estimate-submission.ts +41 -4
- package/src/components/estimates/estimates.hooks.ts +24 -3
- package/src/components/estimates/list/list-row-actions.tsx +34 -7
- package/src/components/estimates/list/list-table.tsx +89 -11
- package/src/components/estimates/list/locales/bg.ts +40 -0
- package/src/components/estimates/list/locales/cs.ts +40 -0
- package/src/components/estimates/list/locales/de.ts +2 -0
- package/src/components/estimates/list/locales/en.ts +29 -2
- package/src/components/estimates/list/locales/es.ts +2 -0
- package/src/components/estimates/list/locales/et.ts +40 -0
- package/src/components/estimates/list/locales/fi.ts +40 -0
- package/src/components/estimates/list/locales/fr.ts +2 -0
- package/src/components/estimates/list/locales/hr.ts +9 -7
- package/src/components/estimates/list/locales/is.ts +40 -0
- package/src/components/estimates/list/locales/it.ts +2 -0
- package/src/components/estimates/list/locales/nb.ts +40 -0
- package/src/components/estimates/list/locales/nl.ts +2 -0
- package/src/components/estimates/list/locales/pl.ts +2 -0
- package/src/components/estimates/list/locales/pt.ts +2 -0
- package/src/components/estimates/list/locales/sk.ts +40 -0
- package/src/components/estimates/list/locales/sl.ts +9 -7
- package/src/components/estimates/list/locales/sv.ts +40 -0
- package/src/components/estimates/list/use-estimate-download.ts +3 -5
- package/src/components/export/document-export-form.tsx +72 -15
- package/src/components/export/sales-per-item-export-form.tsx +3 -2
- package/src/components/invoices/create/create-invoice-form.tsx +500 -112
- package/src/components/invoices/create/eslog-validation.ts +97 -8
- package/src/components/invoices/create/locales/bg.ts +173 -0
- package/src/components/invoices/create/locales/cs.ts +173 -0
- package/src/components/invoices/create/locales/de.ts +41 -9
- package/src/components/invoices/create/locales/en.ts +173 -0
- package/src/components/invoices/create/locales/es.ts +42 -9
- package/src/components/invoices/create/locales/et.ts +173 -0
- package/src/components/invoices/create/locales/fi.ts +173 -0
- package/src/components/invoices/create/locales/fr.ts +42 -11
- package/src/components/invoices/create/locales/hr.ts +50 -18
- package/src/components/invoices/create/locales/is.ts +173 -0
- package/src/components/invoices/create/locales/it.ts +43 -11
- package/src/components/invoices/create/locales/nb.ts +173 -0
- package/src/components/invoices/create/locales/nl.ts +42 -10
- package/src/components/invoices/create/locales/pl.ts +42 -11
- package/src/components/invoices/create/locales/pt.ts +43 -10
- package/src/components/invoices/create/locales/sk.ts +173 -0
- package/src/components/invoices/create/locales/sl.ts +49 -18
- package/src/components/invoices/create/locales/sv.ts +175 -0
- package/src/components/invoices/create/prepare-invoice-submission.ts +73 -2
- package/src/components/invoices/invoices-furs.hooks.ts +11 -8
- package/src/components/invoices/invoices.hooks.ts +36 -10
- package/src/components/invoices/list/list-row-actions.tsx +54 -21
- package/src/components/invoices/list/list-table.tsx +94 -12
- package/src/components/invoices/list/locales/bg.ts +49 -0
- package/src/components/invoices/list/locales/cs.ts +49 -0
- package/src/components/invoices/list/locales/en.ts +34 -2
- package/src/components/invoices/list/locales/et.ts +49 -0
- package/src/components/invoices/list/locales/fi.ts +49 -0
- package/src/components/invoices/list/locales/is.ts +49 -0
- package/src/components/invoices/list/locales/nb.ts +49 -0
- package/src/components/invoices/list/locales/sk.ts +49 -0
- package/src/components/invoices/list/locales/sv.ts +49 -0
- package/src/components/invoices/list/use-invoice-download.ts +3 -5
- package/src/components/invoices/send-email-dialog/locales/bg.ts +63 -0
- package/src/components/invoices/send-email-dialog/locales/cs.ts +63 -0
- package/src/components/invoices/send-email-dialog/locales/de.ts +26 -0
- package/src/components/invoices/send-email-dialog/locales/en.ts +63 -0
- package/src/components/invoices/send-email-dialog/locales/es.ts +26 -0
- package/src/components/invoices/send-email-dialog/locales/et.ts +63 -0
- package/src/components/invoices/send-email-dialog/locales/fi.ts +63 -0
- package/src/components/invoices/send-email-dialog/locales/fr.ts +26 -0
- package/src/components/invoices/send-email-dialog/locales/hr.ts +26 -0
- package/src/components/invoices/send-email-dialog/locales/is.ts +63 -0
- package/src/components/invoices/send-email-dialog/locales/it.ts +26 -0
- package/src/components/invoices/send-email-dialog/locales/nb.ts +63 -0
- package/src/components/invoices/send-email-dialog/locales/nl.ts +26 -0
- package/src/components/invoices/send-email-dialog/locales/pl.ts +26 -0
- package/src/components/invoices/send-email-dialog/locales/pt.ts +26 -0
- package/src/components/invoices/send-email-dialog/locales/sk.ts +63 -0
- package/src/components/invoices/send-email-dialog/locales/sl.ts +26 -0
- package/src/components/invoices/send-email-dialog/locales/sv.ts +63 -0
- package/src/components/invoices/send-email-dialog/send-email-dialog.tsx +189 -93
- package/src/components/invoices/view/eslog-info-display.tsx +2 -0
- package/src/components/invoices/view/fiscalization-status-card.tsx +2 -0
- package/src/components/items/create-item-form/create-item-form.tsx +29 -0
- package/src/components/items/create-item-form/locales/bg.ts +13 -0
- package/src/components/items/create-item-form/locales/cs.ts +13 -0
- package/src/components/items/create-item-form/locales/et.ts +13 -0
- package/src/components/items/create-item-form/locales/fi.ts +13 -0
- package/src/components/items/create-item-form/locales/is.ts +13 -0
- package/src/components/items/create-item-form/locales/nb.ts +13 -0
- package/src/components/items/create-item-form/locales/sk.ts +13 -0
- package/src/components/items/create-item-form/locales/sv.ts +13 -0
- package/src/components/items/edit-item-form/edit-item-form.tsx +39 -1
- package/src/components/items/edit-item-form/locales/bg.ts +12 -0
- package/src/components/items/edit-item-form/locales/cs.ts +12 -0
- package/src/components/items/edit-item-form/locales/en.ts +12 -0
- package/src/components/items/edit-item-form/locales/et.ts +12 -0
- package/src/components/items/edit-item-form/locales/fi.ts +12 -0
- package/src/components/items/edit-item-form/locales/is.ts +12 -0
- package/src/components/items/edit-item-form/locales/nb.ts +12 -0
- package/src/components/items/edit-item-form/locales/sk.ts +12 -0
- package/src/components/items/edit-item-form/locales/sv.ts +12 -0
- package/src/components/items/item-combobox.tsx +55 -22
- package/src/components/items/item-list-table/item-list-table.tsx +47 -23
- package/src/components/items/item-list-table/locales/bg.ts +16 -0
- package/src/components/items/item-list-table/locales/cs.ts +16 -0
- package/src/components/items/item-list-table/locales/en.ts +4 -3
- package/src/components/items/item-list-table/locales/et.ts +16 -0
- package/src/components/items/item-list-table/locales/fi.ts +16 -0
- package/src/components/items/item-list-table/locales/is.ts +16 -0
- package/src/components/items/item-list-table/locales/nb.ts +16 -0
- package/src/components/items/item-list-table/locales/sk.ts +16 -0
- package/src/components/items/item-list-table/locales/sv.ts +16 -0
- package/src/components/items/items.hooks.ts +15 -15
- package/src/components/payments/create-payment-form/create-payment-form.tsx +16 -9
- package/src/components/payments/create-payment-form/locales/bg.ts +20 -0
- package/src/components/payments/create-payment-form/locales/cs.ts +20 -0
- package/src/components/payments/create-payment-form/locales/en.ts +20 -0
- package/src/components/payments/create-payment-form/locales/et.ts +20 -0
- package/src/components/payments/create-payment-form/locales/fi.ts +20 -0
- package/src/components/payments/create-payment-form/locales/hr.ts +2 -2
- package/src/components/payments/create-payment-form/locales/is.ts +20 -0
- package/src/components/payments/create-payment-form/locales/nb.ts +20 -0
- package/src/components/payments/create-payment-form/locales/sk.ts +20 -0
- package/src/components/payments/create-payment-form/locales/sl.ts +4 -4
- package/src/components/payments/create-payment-form/locales/sv.ts +20 -0
- package/src/components/payments/edit-payment-form/edit-payment-form.tsx +10 -2
- package/src/components/payments/edit-payment-form/locales/bg.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/cs.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/en.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/et.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/fi.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/hr.ts +2 -2
- package/src/components/payments/edit-payment-form/locales/is.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/nb.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/sk.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/sl.ts +4 -4
- package/src/components/payments/edit-payment-form/locales/sv.ts +20 -0
- package/src/components/payments/list/list-row-actions.tsx +10 -2
- package/src/components/payments/list/list-table.tsx +51 -45
- package/src/components/payments/list/locales/bg.ts +42 -0
- package/src/components/payments/list/locales/cs.ts +42 -0
- package/src/components/payments/list/locales/de.ts +18 -0
- package/src/components/payments/list/locales/en.ts +37 -2
- package/src/components/payments/list/locales/es.ts +18 -0
- package/src/components/payments/list/locales/et.ts +42 -0
- package/src/components/payments/list/locales/fi.ts +42 -0
- package/src/components/payments/list/locales/fr.ts +18 -0
- package/src/components/payments/list/locales/hr.ts +18 -0
- package/src/components/payments/list/locales/is.ts +42 -0
- package/src/components/payments/list/locales/it.ts +18 -0
- package/src/components/payments/list/locales/nb.ts +42 -0
- package/src/components/payments/list/locales/nl.ts +18 -0
- package/src/components/payments/list/locales/pl.ts +18 -0
- package/src/components/payments/list/locales/pt.ts +18 -0
- package/src/components/payments/list/locales/sk.ts +42 -0
- package/src/components/payments/list/locales/sl.ts +18 -1
- package/src/components/payments/list/locales/sv.ts +42 -0
- package/src/components/payments/payments.hooks.ts +13 -6
- package/src/components/recurring-invoices/create-recurring-invoice-form/create-recurring-invoice-form.tsx +121 -39
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/bg.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/cs.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/en.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/et.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/fi.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/hr.ts +6 -6
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/is.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/nb.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/sk.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/sl.ts +4 -4
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/sv.ts +44 -0
- package/src/components/recurring-invoices/list/list-row-actions.tsx +12 -6
- package/src/components/recurring-invoices/list/list-table.tsx +63 -12
- package/src/components/recurring-invoices/list/locales/bg.ts +32 -0
- package/src/components/recurring-invoices/list/locales/cs.ts +32 -0
- package/src/components/recurring-invoices/list/locales/de.ts +4 -0
- package/src/components/recurring-invoices/list/locales/en.ts +27 -0
- package/src/components/recurring-invoices/list/locales/es.ts +4 -0
- package/src/components/recurring-invoices/list/locales/et.ts +32 -0
- package/src/components/recurring-invoices/list/locales/fi.ts +32 -0
- package/src/components/recurring-invoices/list/locales/fr.ts +4 -0
- package/src/components/recurring-invoices/list/locales/hr.ts +4 -0
- package/src/components/recurring-invoices/list/locales/is.ts +32 -0
- package/src/components/recurring-invoices/list/locales/it.ts +4 -0
- package/src/components/recurring-invoices/list/locales/nb.ts +32 -0
- package/src/components/recurring-invoices/list/locales/nl.ts +4 -0
- package/src/components/recurring-invoices/list/locales/pl.ts +4 -0
- package/src/components/recurring-invoices/list/locales/pt.ts +4 -0
- package/src/components/recurring-invoices/list/locales/sk.ts +32 -0
- package/src/components/recurring-invoices/list/locales/sl.ts +4 -0
- package/src/components/recurring-invoices/list/locales/sv.ts +32 -0
- package/src/components/recurring-invoices/recurring-invoices.hooks.ts +11 -8
- package/src/components/request-logs/request-log-detail.tsx +30 -23
- package/src/components/request-logs/request-log-list-table.tsx +88 -45
- package/src/components/table/README.md +47 -9
- package/src/components/table/data-table.tsx +232 -92
- package/src/components/table/filter-bar.tsx +1 -1
- package/src/components/table/filter-panel.tsx +51 -22
- package/src/components/table/hooks/use-table-state.ts +64 -11
- package/src/components/table/index.ts +3 -0
- package/src/components/table/locales.ts +119 -4
- package/src/components/table/selection-toolbar.tsx +65 -9
- package/src/components/table/sorting.ts +80 -0
- package/src/components/table/table-skeleton.tsx +15 -9
- package/src/components/table/types.ts +17 -0
- package/src/components/tax-reports/index.ts +8 -0
- package/src/components/tax-reports/kir-export-form.tsx +4 -5
- package/src/components/tax-reports/slovenia-accounting-mappings-fields.tsx +271 -0
- package/src/components/tax-reports/slovenia-tax-profile-step.tsx +25 -11
- package/src/components/tax-reports/slovenia-vod-export-form.tsx +452 -0
- package/src/components/tax-reports/slovenia-yearly-export-form.tsx +20 -16
- package/src/components/tax-reports/slovenia-yearly-review-step.tsx +42 -19
- package/src/components/taxes/create-tax-form/create-tax-form.tsx +48 -2
- package/src/components/taxes/create-tax-form/locales/bg.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/cs.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/et.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/fi.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/is.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/nb.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/sk.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/sv.ts +8 -0
- package/src/components/taxes/edit-tax-form/edit-tax-form.tsx +80 -11
- package/src/components/taxes/edit-tax-form/locales/bg.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/cs.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/en.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/et.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/fi.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/is.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/nb.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/sk.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/sv.ts +6 -0
- package/src/components/taxes/tax-list-table/locales/bg.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/cs.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/en.ts +4 -3
- package/src/components/taxes/tax-list-table/locales/et.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/fi.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/is.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/nb.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/sk.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/sv.ts +17 -0
- package/src/components/taxes/tax-list-table/tax-list-table.tsx +53 -19
- package/src/components/taxes/taxes.hooks.ts +53 -12
- package/src/components/ui/badge.tsx +1 -1
- package/src/components/ui/button.tsx +1 -1
- package/src/components/ui/drawer.tsx +2 -2
- package/src/components/ui/form.tsx +118 -10
- package/src/components/ui/progress.tsx +6 -4
- package/src/components/ui/select.tsx +118 -2
- package/src/components/ui/sidebar.tsx +2 -2
- package/src/components/ui/sonner.tsx +17 -36
- package/src/components/ui/sticky-form-footer.tsx +6 -1
- package/src/components/ui/tooltip.tsx +15 -2
- package/src/components/webhook-logs/webhook-delivery-detail.tsx +22 -22
- package/src/components/webhook-logs/webhook-delivery-list-table.tsx +92 -17
- package/src/components/wl-subscription/locked-feature.tsx +11 -10
- package/src/components/wl-subscription/paywall.tsx +184 -72
- package/src/components/wl-subscription/upgrade-modal.tsx +28 -31
- package/src/generate-schemas.ts +146 -103
- package/src/generated/schemas/acceptentityinvitation_body.ts +4 -3
- package/src/generated/schemas/accountwebhook.ts +63 -0
- package/src/generated/schemas/addentityuser_body.ts +4 -3
- package/src/generated/schemas/advanceinvoice.ts +167 -168
- package/src/generated/schemas/authorizeshopify_body.ts +4 -3
- package/src/generated/schemas/calculatedocumentpreview.ts +120 -0
- package/src/generated/schemas/checktransactiontype.ts +35 -0
- package/src/generated/schemas/creditnote.ts +203 -76
- package/src/generated/schemas/customadvanceinvoice.ts +172 -165
- package/src/generated/schemas/customcreditnote.ts +183 -155
- package/src/generated/schemas/customdeliverynote.ts +166 -0
- package/src/generated/schemas/customer.ts +4 -8
- package/src/generated/schemas/customestimate.ts +123 -97
- package/src/generated/schemas/customincomingpurchasedocument.ts +142 -0
- package/src/generated/schemas/custominvoice.ts +183 -154
- package/src/generated/schemas/deliverynote.ts +124 -79
- package/src/generated/schemas/einvoice.ts +19 -0
- package/src/generated/schemas/einvoicingsettings.ts +21 -0
- package/src/generated/schemas/einvoicingsupplier.ts +45 -0
- package/src/generated/schemas/entity.ts +267 -24
- package/src/generated/schemas/entityapikey.ts +1 -3
- package/src/generated/schemas/entityuserrole.ts +1 -3
- package/src/generated/schemas/estimate.ts +120 -127
- package/src/generated/schemas/exportsloveniavodxml_body.ts +17 -0
- package/src/generated/schemas/exportsloveniayearlynormiranireport_body.ts +4 -3
- package/src/generated/schemas/finadevice.ts +15 -0
- package/src/generated/schemas/finalizedocument.ts +52 -0
- package/src/generated/schemas/finapremise.ts +15 -0
- package/src/generated/schemas/finasettings.ts +1 -3
- package/src/generated/schemas/furselectronicdevice.ts +15 -0
- package/src/generated/schemas/furssettings.ts +2 -3
- package/src/generated/schemas/image.ts +15 -0
- package/src/generated/schemas/incomingpurchasedocument.ts +178 -0
- package/src/generated/schemas/incomingpurchasedocumentattachment.ts +15 -0
- package/src/generated/schemas/incomingpurchasedocumentpayment.ts +36 -0
- package/src/generated/schemas/index.ts +30 -5
- package/src/generated/schemas/invoice.ts +182 -183
- package/src/generated/schemas/item.ts +35 -3
- package/src/generated/schemas/legacymigrationauth.ts +18 -0
- package/src/generated/schemas/me.ts +4 -22
- package/src/generated/schemas/migrationjob.ts +20 -0
- package/src/generated/schemas/order.ts +6 -8
- package/src/generated/schemas/orderintegration.ts +12 -12
- package/src/generated/schemas/payment.ts +9 -8
- package/src/generated/schemas/ptatcudseries.ts +28 -0
- package/src/generated/schemas/queryentitystats.ts +15 -0
- package/src/generated/schemas/recurringinvoice.ts +4 -8
- package/src/generated/schemas/registerfursmovablepremise_body.ts +1 -3
- package/src/generated/schemas/registerfursrealestatepremise_body.ts +1 -3
- package/src/generated/schemas/renderadvanceinvoicepreview_body.ts +42 -16
- package/src/generated/schemas/rendercreditnotepreview_body.ts +42 -16
- package/src/generated/schemas/renderdeliverynotepreview_body.ts +19 -8
- package/src/generated/schemas/renderestimatepreview_body.ts +45 -8
- package/src/generated/schemas/renderinvoicepreview_body.ts +46 -18
- package/src/generated/schemas/reviewsloveniayearlynormiranireport.ts +15 -0
- package/src/generated/schemas/searcheinvoicingcustomer.ts +18 -0
- package/src/generated/schemas/senddocument_body.ts +2 -3
- package/src/generated/schemas/sendemail_body.ts +48 -42
- package/src/generated/schemas/sloveniataxprofile.ts +98 -24
- package/src/generated/schemas/starteslogexport_body.ts +34 -0
- package/src/generated/schemas/startpdfexport_body.ts +18 -81
- package/src/generated/schemas/stripeappconnect_body.ts +4 -3
- package/src/generated/schemas/stripeappcreateinvoice_body.ts +4 -6
- package/src/generated/schemas/stripeappmarketplaceauthorize.ts +15 -0
- package/src/generated/schemas/stripeappupdatesettings_body.ts +6 -6
- package/src/generated/schemas/supplier.ts +55 -0
- package/src/generated/schemas/syncshopifyorders_body.ts +21 -0
- package/src/generated/schemas/tax.ts +8 -8
- package/src/generated/schemas/uploadfile_body.ts +2 -3
- package/src/generated/schemas/uploadfurscertificate_body.ts +6 -6
- package/src/generated/schemas/userfinasettings.ts +1 -3
- package/src/generated/schemas/userfurssettings.ts +1 -3
- package/src/generated/schemas/userptsettings.ts +24 -0
- package/src/generated/schemas/voidinvoice_body.ts +25 -0
- package/src/generated/schemas/webhook.ts +6 -8
- package/src/generated/schemas/wlsubscriptionbillingemail.ts +17 -0
- package/src/hooks/create-resource-hooks.ts +22 -19
- package/src/hooks/use-duplicate-document.ts +71 -38
- package/src/hooks/use-eslog-validation.ts +5 -1
- package/src/hooks/use-next-document-number.ts +13 -6
- package/src/hooks/use-resolved-entity-id.ts +14 -0
- package/src/hooks/use-resource-mutation.ts +11 -30
- package/src/hooks/use-transaction-type-check.ts +3 -8
- package/src/lib/browser-cookies.ts +1 -1
- package/src/lib/country-capabilities.ts +114 -0
- package/src/lib/date-fns-locale.ts +1 -20
- package/src/lib/date-only.ts +58 -0
- package/src/lib/document-display.ts +18 -0
- package/src/lib/eslog-export.ts +32 -0
- package/src/lib/fiscalization-options.ts +21 -1
- package/src/lib/formatting.ts +27 -0
- package/src/lib/furs-error-utils.ts +29 -0
- package/src/lib/locale.ts +4 -0
- package/src/lib/payment-display.ts +97 -0
- package/src/lib/pt-document-input.ts +67 -0
- package/src/lib/schemas/shared.ts +12 -0
- package/src/lib/template-variables.tsx +102 -4
- package/src/lib/translation.ts +51 -33
- package/src/lib/white-label-capabilities.ts +626 -0
- package/src/lib/zod-validation-message.ts +291 -0
- package/src/providers/entities-provider.tsx +32 -14
- package/src/providers/sdk-provider.tsx +112 -12
- package/src/providers/space-invoices-provider.tsx +129 -0
- package/src/providers/white-label-provider.tsx +96 -4
- package/src/providers/wl-subscription-provider.tsx +149 -10
- package/src/generated/schemas/previewadvanceinvoice_body.ts +0 -354
- package/src/generated/schemas/previewestimate_body.ts +0 -309
- package/src/generated/schemas/registerfinamovablepremise_body.ts +0 -26
- package/src/generated/schemas/registerfinarealestatepremise_body.ts +0 -37
- package/src/generated/schemas/renderdocument_body.ts +0 -594
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated using 'bun generate-schemas'.
|
|
3
|
+
* Do not edit this file manually. To update, run the generator again.
|
|
4
|
+
* @generated
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
|
|
9
|
+
// Schemas for einvoicingsupplier endpoints
|
|
10
|
+
|
|
11
|
+
// Schema for registerEInvoicingSupplier operation
|
|
12
|
+
const registerEInvoicingSupplierSchemaDefinition = z.object({
|
|
13
|
+
company_name: z.string().min(1).max(255),
|
|
14
|
+
vat_number: z.string().max(50).optional(),
|
|
15
|
+
company_number: z.string().max(50).optional(),
|
|
16
|
+
iban: z.string().max(50).optional(),
|
|
17
|
+
address: z.string().max(500).optional(),
|
|
18
|
+
city: z.string().max(100).optional(),
|
|
19
|
+
post_code: z.string().max(20).optional(),
|
|
20
|
+
country_code: z.string().min(2).max(2),
|
|
21
|
+
contact_email: z.string().max(255).email().optional(),
|
|
22
|
+
contact_phone: z.string().max(50).optional(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
// Schema for updateEInvoicingSupplier operation
|
|
27
|
+
const updateEInvoicingSupplierSchemaDefinition = z
|
|
28
|
+
.object({
|
|
29
|
+
company_name: z.string().min(1).max(255),
|
|
30
|
+
vat_number: z.string().max(50),
|
|
31
|
+
company_number: z.string().max(50),
|
|
32
|
+
iban: z.string().max(50),
|
|
33
|
+
address: z.string().max(500),
|
|
34
|
+
city: z.string().max(100),
|
|
35
|
+
post_code: z.string().max(20),
|
|
36
|
+
country_code: z.string().min(2).max(2),
|
|
37
|
+
contact_email: z.string().max(255).email(),
|
|
38
|
+
contact_phone: z.string().max(50),
|
|
39
|
+
})
|
|
40
|
+
.partial();
|
|
41
|
+
|
|
42
|
+
export type RegisterEInvoicingSupplierSchema = z.infer<typeof registerEInvoicingSupplierSchemaDefinition>;
|
|
43
|
+
export const registerEInvoicingSupplierSchema = registerEInvoicingSupplierSchemaDefinition;
|
|
44
|
+
export type UpdateEInvoicingSupplierSchema = z.infer<typeof updateEInvoicingSupplierSchemaDefinition>;
|
|
45
|
+
export const updateEInvoicingSupplierSchema = updateEInvoicingSupplierSchemaDefinition;
|
|
@@ -8,7 +8,7 @@ import { z } from 'zod';
|
|
|
8
8
|
|
|
9
9
|
// Schemas for entity endpoints
|
|
10
10
|
|
|
11
|
-
// Schema for
|
|
11
|
+
// Schema for createEntity operation
|
|
12
12
|
const createEntitySchemaDefinition = z.object({
|
|
13
13
|
name: z.string().min(1),
|
|
14
14
|
address: z.union([z.string(), z.null()]).optional(),
|
|
@@ -19,19 +19,22 @@ const createEntitySchemaDefinition = z.object({
|
|
|
19
19
|
country: z.string().min(1).max(100),
|
|
20
20
|
country_code: z.union([z.string(), z.null()]).optional(),
|
|
21
21
|
currency_code: z.union([z.string(), z.null()]).optional(),
|
|
22
|
-
locale: z.string().
|
|
22
|
+
locale: z.union([z.string(), z.null()]).optional(),
|
|
23
23
|
tax_number: z.union([z.string(), z.null()]).optional(),
|
|
24
24
|
tax_number_2: z.union([z.string(), z.null()]).optional(),
|
|
25
25
|
company_number: z.union([z.string(), z.null()]).optional(),
|
|
26
|
+
phone: z.union([z.string(), z.null()]).optional(),
|
|
26
27
|
email: z.union([z.string(), z.null()]).optional(),
|
|
27
28
|
website: z.union([z.string(), z.null()]).optional(),
|
|
29
|
+
fiscal_region_code: z.union([z.string(), z.null()]).optional(),
|
|
30
|
+
starting_capital: z.union([z.number(), z.null()]).optional(),
|
|
28
31
|
environment: z.enum(["live", "sandbox"]).optional(),
|
|
29
32
|
is_tax_subject: z.boolean().optional(),
|
|
30
33
|
is_enabled: z.boolean().optional(),
|
|
31
34
|
settings: z
|
|
32
35
|
.object({
|
|
33
36
|
pdf_template: z.union([
|
|
34
|
-
z.enum(["modern", "classic", "condensed", "minimal", "fashion"]),
|
|
37
|
+
z.union([z.enum(["modern", "classic", "condensed", "minimal", "fashion", "timeless_modern_full_data"]), z.null()]),
|
|
35
38
|
z.null(),
|
|
36
39
|
]),
|
|
37
40
|
number_formats: z.union([
|
|
@@ -48,6 +51,7 @@ const createEntitySchemaDefinition = z.object({
|
|
|
48
51
|
z.null(),
|
|
49
52
|
]),
|
|
50
53
|
primary_color: z.union([z.string(), z.null()]),
|
|
54
|
+
logo_scale_percent: z.union([z.number(), z.null()]),
|
|
51
55
|
has_logo: z.union([z.boolean(), z.null()]),
|
|
52
56
|
has_signature: z.union([z.boolean(), z.null()]),
|
|
53
57
|
default_invoice_due_days: z.union([z.number(), z.null()]),
|
|
@@ -59,6 +63,12 @@ const createEntitySchemaDefinition = z.object({
|
|
|
59
63
|
invoice_body: z.union([z.string(), z.null()]),
|
|
60
64
|
estimate_subject: z.union([z.string(), z.null()]),
|
|
61
65
|
estimate_body: z.union([z.string(), z.null()]),
|
|
66
|
+
credit_note_subject: z.union([z.string(), z.null()]),
|
|
67
|
+
credit_note_body: z.union([z.string(), z.null()]),
|
|
68
|
+
advance_invoice_subject: z.union([z.string(), z.null()]),
|
|
69
|
+
advance_invoice_body: z.union([z.string(), z.null()]),
|
|
70
|
+
delivery_note_subject: z.union([z.string(), z.null()]),
|
|
71
|
+
delivery_note_body: z.union([z.string(), z.null()]),
|
|
62
72
|
})
|
|
63
73
|
.partial()
|
|
64
74
|
.passthrough(),
|
|
@@ -70,25 +80,39 @@ const createEntitySchemaDefinition = z.object({
|
|
|
70
80
|
default_estimate_payment_terms: z.union([z.string(), z.null()]),
|
|
71
81
|
default_credit_note_note: z.union([z.string(), z.null()]),
|
|
72
82
|
default_credit_note_payment_terms: z.union([z.string(), z.null()]),
|
|
83
|
+
default_advance_invoice_note: z.union([z.string(), z.null()]),
|
|
84
|
+
default_delivery_note_note: z.union([z.string(), z.null()]),
|
|
73
85
|
document_footer: z.union([z.string(), z.null()]),
|
|
74
86
|
default_document_signature: z.union([z.string(), z.null()]),
|
|
87
|
+
calculation: z.union([
|
|
88
|
+
z
|
|
89
|
+
.object({
|
|
90
|
+
default_mode: z.union([
|
|
91
|
+
z.union([z.enum(["b2b_standard", "b2c_gross_discount"]), z.null()]),
|
|
92
|
+
z.null(),
|
|
93
|
+
]),
|
|
94
|
+
})
|
|
95
|
+
.partial()
|
|
96
|
+
.passthrough(),
|
|
97
|
+
z.null(),
|
|
98
|
+
]),
|
|
75
99
|
slovenia: z.union([
|
|
76
100
|
z
|
|
77
101
|
.object({
|
|
78
102
|
business_form: z.union([
|
|
79
|
-
z.enum(["sp", "doo", "dno", "club"]),
|
|
103
|
+
z.union([z.enum(["sp", "doo", "dno", "club"]), z.null()]),
|
|
80
104
|
z.null(),
|
|
81
105
|
]),
|
|
82
106
|
income_tax_regime: z.union([
|
|
83
|
-
z.enum(["normirani", "dejanski"]),
|
|
107
|
+
z.union([z.enum(["normirani", "dejanski"]), z.null()]),
|
|
84
108
|
z.null(),
|
|
85
109
|
]),
|
|
86
110
|
vat_profile: z.union([
|
|
87
|
-
z.enum(["standard", "special_vat_identified"]),
|
|
111
|
+
z.union([z.enum(["standard", "special_vat_identified", "non_vat_subject"]), z.null()]),
|
|
88
112
|
z.null(),
|
|
89
113
|
]),
|
|
90
114
|
tax_residency: z.union([
|
|
91
|
-
z.enum(["resident", "non_resident"]),
|
|
115
|
+
z.union([z.enum(["resident", "non_resident"]), z.null()]),
|
|
92
116
|
z.null(),
|
|
93
117
|
]),
|
|
94
118
|
yearly_reporting: z.union([
|
|
@@ -97,11 +121,11 @@ const createEntitySchemaDefinition = z.object({
|
|
|
97
121
|
activity_code: z.union([z.string(), z.null()]),
|
|
98
122
|
registration_number: z.union([z.string(), z.null()]),
|
|
99
123
|
accounting_type: z.union([
|
|
100
|
-
z.enum(["records", "single_entry", "double_entry"]),
|
|
124
|
+
z.union([z.enum(["records", "single_entry", "double_entry"]), z.null()]),
|
|
101
125
|
z.null(),
|
|
102
126
|
]),
|
|
103
127
|
normiranec_insurance_basis: z.union([
|
|
104
|
-
z.enum(["full_time_self_employed", "other"]),
|
|
128
|
+
z.union([z.enum(["full_time_self_employed", "other"]), z.null()]),
|
|
105
129
|
z.null(),
|
|
106
130
|
]),
|
|
107
131
|
default_withholding_tax_amount: z.union([
|
|
@@ -117,6 +141,91 @@ const createEntitySchemaDefinition = z.object({
|
|
|
117
141
|
.passthrough(),
|
|
118
142
|
z.null(),
|
|
119
143
|
]),
|
|
144
|
+
accounting_exports: z.union([
|
|
145
|
+
z
|
|
146
|
+
.object({
|
|
147
|
+
preferred_format: z.union([
|
|
148
|
+
z.union([z.enum(["vod_xml", "vasco_xml", "minimax_xml"]), z.null()]),
|
|
149
|
+
z.null(),
|
|
150
|
+
]),
|
|
151
|
+
konto_mappings: z.union([
|
|
152
|
+
z
|
|
153
|
+
.object({
|
|
154
|
+
receivables: z.union([z.string(), z.null()]),
|
|
155
|
+
payables: z.union([z.string(), z.null()]),
|
|
156
|
+
sales_vat_22: z.union([z.string(), z.null()]),
|
|
157
|
+
sales_vat_95: z.union([z.string(), z.null()]),
|
|
158
|
+
sales_vat_5: z.union([z.string(), z.null()]),
|
|
159
|
+
purchase_vat_recoverable_22: z.union([
|
|
160
|
+
z.string(),
|
|
161
|
+
z.null(),
|
|
162
|
+
]),
|
|
163
|
+
purchase_vat_recoverable_95: z.union([
|
|
164
|
+
z.string(),
|
|
165
|
+
z.null(),
|
|
166
|
+
]),
|
|
167
|
+
purchase_vat_recoverable_5: z.union([
|
|
168
|
+
z.string(),
|
|
169
|
+
z.null(),
|
|
170
|
+
]),
|
|
171
|
+
sales_revenue_22: z.union([z.string(), z.null()]),
|
|
172
|
+
sales_revenue_95: z.union([z.string(), z.null()]),
|
|
173
|
+
sales_revenue_5: z.union([z.string(), z.null()]),
|
|
174
|
+
sales_revenue_exempt: z.union([z.string(), z.null()]),
|
|
175
|
+
sales_revenue_eu_goods: z.union([z.string(), z.null()]),
|
|
176
|
+
sales_revenue_eu_services: z.union([
|
|
177
|
+
z.string(),
|
|
178
|
+
z.null(),
|
|
179
|
+
]),
|
|
180
|
+
sales_revenue_reverse_charge: z.union([
|
|
181
|
+
z.string(),
|
|
182
|
+
z.null(),
|
|
183
|
+
]),
|
|
184
|
+
sales_revenue_third_country_goods: z.union([
|
|
185
|
+
z.string(),
|
|
186
|
+
z.null(),
|
|
187
|
+
]),
|
|
188
|
+
sales_revenue_third_country_services: z.union([
|
|
189
|
+
z.string(),
|
|
190
|
+
z.null(),
|
|
191
|
+
]),
|
|
192
|
+
purchase_expense_22: z.union([z.string(), z.null()]),
|
|
193
|
+
purchase_expense_95: z.union([z.string(), z.null()]),
|
|
194
|
+
purchase_expense_5: z.union([z.string(), z.null()]),
|
|
195
|
+
purchase_expense_exempt: z.union([
|
|
196
|
+
z.string(),
|
|
197
|
+
z.null(),
|
|
198
|
+
]),
|
|
199
|
+
purchase_expense_eu_goods: z.union([
|
|
200
|
+
z.string(),
|
|
201
|
+
z.null(),
|
|
202
|
+
]),
|
|
203
|
+
purchase_expense_eu_services: z.union([
|
|
204
|
+
z.string(),
|
|
205
|
+
z.null(),
|
|
206
|
+
]),
|
|
207
|
+
purchase_expense_reverse_charge: z.union([
|
|
208
|
+
z.string(),
|
|
209
|
+
z.null(),
|
|
210
|
+
]),
|
|
211
|
+
purchase_expense_third_country_goods: z.union([
|
|
212
|
+
z.string(),
|
|
213
|
+
z.null(),
|
|
214
|
+
]),
|
|
215
|
+
purchase_expense_third_country_services: z.union([
|
|
216
|
+
z.string(),
|
|
217
|
+
z.null(),
|
|
218
|
+
]),
|
|
219
|
+
})
|
|
220
|
+
.partial()
|
|
221
|
+
.passthrough(),
|
|
222
|
+
z.null(),
|
|
223
|
+
]),
|
|
224
|
+
})
|
|
225
|
+
.partial()
|
|
226
|
+
.passthrough(),
|
|
227
|
+
z.null(),
|
|
228
|
+
]),
|
|
120
229
|
})
|
|
121
230
|
.partial()
|
|
122
231
|
.passthrough(),
|
|
@@ -126,6 +235,7 @@ const createEntitySchemaDefinition = z.object({
|
|
|
126
235
|
z
|
|
127
236
|
.object({
|
|
128
237
|
enabled: z.boolean().default(false),
|
|
238
|
+
default_skip_fiscalization: z.boolean().default(false),
|
|
129
239
|
numbering_strategy: z.enum(["B", "C"]),
|
|
130
240
|
operator_tax_number: z.string(),
|
|
131
241
|
operator_label: z.string(),
|
|
@@ -151,6 +261,17 @@ const createEntitySchemaDefinition = z.object({
|
|
|
151
261
|
.passthrough(),
|
|
152
262
|
z.null(),
|
|
153
263
|
]),
|
|
264
|
+
pt: z.union([
|
|
265
|
+
z
|
|
266
|
+
.object({
|
|
267
|
+
operator_first_name: z.string().min(1),
|
|
268
|
+
operator_last_name: z.string().min(1),
|
|
269
|
+
operator_tax_number: z.string().regex(/^\d{9}$/),
|
|
270
|
+
})
|
|
271
|
+
.partial()
|
|
272
|
+
.passthrough(),
|
|
273
|
+
z.null(),
|
|
274
|
+
]),
|
|
154
275
|
tax_rules: z.any().optional(),
|
|
155
276
|
overdue_notifications: z.union([
|
|
156
277
|
z
|
|
@@ -193,6 +314,7 @@ const createEntitySchemaDefinition = z.object({
|
|
|
193
314
|
eslog_validation_enabled: z.union([z.boolean(), z.null()]),
|
|
194
315
|
delivery_note_hide_prices: z.union([z.boolean(), z.null()]),
|
|
195
316
|
credit_note_negative_values: z.union([z.boolean(), z.null()]),
|
|
317
|
+
show_payment_amounts: z.union([z.boolean(), z.null()]),
|
|
196
318
|
receipt_note: z.union([z.string(), z.null()]),
|
|
197
319
|
receipt_footer: z.union([z.string(), z.null()]),
|
|
198
320
|
receipt_signature: z.union([z.string(), z.null()]),
|
|
@@ -229,11 +351,8 @@ const createEntitySchemaDefinition = z.object({
|
|
|
229
351
|
metadata: z.union([z.record(z.string(), z.any()), z.null()]).optional(),
|
|
230
352
|
});
|
|
231
353
|
|
|
232
|
-
// Type for create entity operation
|
|
233
|
-
export type CreateEntitySchema = z.infer<typeof createEntitySchemaDefinition>;
|
|
234
|
-
|
|
235
354
|
|
|
236
|
-
// Schema for
|
|
355
|
+
// Schema for patchEntity operation
|
|
237
356
|
const patchEntitySchemaDefinition = z
|
|
238
357
|
.object({
|
|
239
358
|
name: z.string().min(1),
|
|
@@ -243,18 +362,21 @@ const patchEntitySchemaDefinition = z
|
|
|
243
362
|
city: z.union([z.string(), z.null()]),
|
|
244
363
|
state: z.union([z.string(), z.null()]),
|
|
245
364
|
currency_code: z.union([z.string(), z.null()]),
|
|
246
|
-
locale: z.string().
|
|
365
|
+
locale: z.union([z.string(), z.null()]),
|
|
247
366
|
tax_number: z.union([z.string(), z.null()]),
|
|
248
367
|
tax_number_2: z.union([z.string(), z.null()]),
|
|
249
368
|
company_number: z.union([z.string(), z.null()]),
|
|
369
|
+
phone: z.union([z.string(), z.null()]),
|
|
250
370
|
email: z.union([z.string(), z.null()]),
|
|
251
371
|
website: z.union([z.string(), z.null()]),
|
|
372
|
+
fiscal_region_code: z.union([z.string(), z.null()]),
|
|
373
|
+
starting_capital: z.union([z.number(), z.null()]),
|
|
252
374
|
is_tax_subject: z.boolean(),
|
|
253
375
|
is_enabled: z.boolean(),
|
|
254
376
|
settings: z
|
|
255
377
|
.object({
|
|
256
378
|
pdf_template: z.union([
|
|
257
|
-
z.enum(["modern", "classic", "condensed", "minimal", "fashion"]),
|
|
379
|
+
z.union([z.enum(["modern", "classic", "condensed", "minimal", "fashion", "timeless_modern_full_data"]), z.null()]),
|
|
258
380
|
z.null(),
|
|
259
381
|
]),
|
|
260
382
|
number_formats: z.union([
|
|
@@ -271,6 +393,7 @@ const patchEntitySchemaDefinition = z
|
|
|
271
393
|
z.null(),
|
|
272
394
|
]),
|
|
273
395
|
primary_color: z.union([z.string(), z.null()]),
|
|
396
|
+
logo_scale_percent: z.union([z.number(), z.null()]),
|
|
274
397
|
has_logo: z.union([z.boolean(), z.null()]),
|
|
275
398
|
has_signature: z.union([z.boolean(), z.null()]),
|
|
276
399
|
default_invoice_due_days: z.union([z.number(), z.null()]),
|
|
@@ -282,6 +405,12 @@ const patchEntitySchemaDefinition = z
|
|
|
282
405
|
invoice_body: z.union([z.string(), z.null()]),
|
|
283
406
|
estimate_subject: z.union([z.string(), z.null()]),
|
|
284
407
|
estimate_body: z.union([z.string(), z.null()]),
|
|
408
|
+
credit_note_subject: z.union([z.string(), z.null()]),
|
|
409
|
+
credit_note_body: z.union([z.string(), z.null()]),
|
|
410
|
+
advance_invoice_subject: z.union([z.string(), z.null()]),
|
|
411
|
+
advance_invoice_body: z.union([z.string(), z.null()]),
|
|
412
|
+
delivery_note_subject: z.union([z.string(), z.null()]),
|
|
413
|
+
delivery_note_body: z.union([z.string(), z.null()]),
|
|
285
414
|
})
|
|
286
415
|
.partial()
|
|
287
416
|
.passthrough(),
|
|
@@ -293,25 +422,39 @@ const patchEntitySchemaDefinition = z
|
|
|
293
422
|
default_estimate_payment_terms: z.union([z.string(), z.null()]),
|
|
294
423
|
default_credit_note_note: z.union([z.string(), z.null()]),
|
|
295
424
|
default_credit_note_payment_terms: z.union([z.string(), z.null()]),
|
|
425
|
+
default_advance_invoice_note: z.union([z.string(), z.null()]),
|
|
426
|
+
default_delivery_note_note: z.union([z.string(), z.null()]),
|
|
296
427
|
document_footer: z.union([z.string(), z.null()]),
|
|
297
428
|
default_document_signature: z.union([z.string(), z.null()]),
|
|
429
|
+
calculation: z.union([
|
|
430
|
+
z
|
|
431
|
+
.object({
|
|
432
|
+
default_mode: z.union([
|
|
433
|
+
z.union([z.enum(["b2b_standard", "b2c_gross_discount"]), z.null()]),
|
|
434
|
+
z.null(),
|
|
435
|
+
]),
|
|
436
|
+
})
|
|
437
|
+
.partial()
|
|
438
|
+
.passthrough(),
|
|
439
|
+
z.null(),
|
|
440
|
+
]),
|
|
298
441
|
slovenia: z.union([
|
|
299
442
|
z
|
|
300
443
|
.object({
|
|
301
444
|
business_form: z.union([
|
|
302
|
-
z.enum(["sp", "doo", "dno", "club"]),
|
|
445
|
+
z.union([z.enum(["sp", "doo", "dno", "club"]), z.null()]),
|
|
303
446
|
z.null(),
|
|
304
447
|
]),
|
|
305
448
|
income_tax_regime: z.union([
|
|
306
|
-
z.enum(["normirani", "dejanski"]),
|
|
449
|
+
z.union([z.enum(["normirani", "dejanski"]), z.null()]),
|
|
307
450
|
z.null(),
|
|
308
451
|
]),
|
|
309
452
|
vat_profile: z.union([
|
|
310
|
-
z.enum(["standard", "special_vat_identified"]),
|
|
453
|
+
z.union([z.enum(["standard", "special_vat_identified", "non_vat_subject"]), z.null()]),
|
|
311
454
|
z.null(),
|
|
312
455
|
]),
|
|
313
456
|
tax_residency: z.union([
|
|
314
|
-
z.enum(["resident", "non_resident"]),
|
|
457
|
+
z.union([z.enum(["resident", "non_resident"]), z.null()]),
|
|
315
458
|
z.null(),
|
|
316
459
|
]),
|
|
317
460
|
yearly_reporting: z.union([
|
|
@@ -320,11 +463,11 @@ const patchEntitySchemaDefinition = z
|
|
|
320
463
|
activity_code: z.union([z.string(), z.null()]),
|
|
321
464
|
registration_number: z.union([z.string(), z.null()]),
|
|
322
465
|
accounting_type: z.union([
|
|
323
|
-
z.enum(["records", "single_entry", "double_entry"]),
|
|
466
|
+
z.union([z.enum(["records", "single_entry", "double_entry"]), z.null()]),
|
|
324
467
|
z.null(),
|
|
325
468
|
]),
|
|
326
469
|
normiranec_insurance_basis: z.union([
|
|
327
|
-
z.enum(["full_time_self_employed", "other"]),
|
|
470
|
+
z.union([z.enum(["full_time_self_employed", "other"]), z.null()]),
|
|
328
471
|
z.null(),
|
|
329
472
|
]),
|
|
330
473
|
default_withholding_tax_amount: z.union([
|
|
@@ -340,6 +483,94 @@ const patchEntitySchemaDefinition = z
|
|
|
340
483
|
.passthrough(),
|
|
341
484
|
z.null(),
|
|
342
485
|
]),
|
|
486
|
+
accounting_exports: z.union([
|
|
487
|
+
z
|
|
488
|
+
.object({
|
|
489
|
+
preferred_format: z.union([
|
|
490
|
+
z.union([z.enum(["vod_xml", "vasco_xml", "minimax_xml"]), z.null()]),
|
|
491
|
+
z.null(),
|
|
492
|
+
]),
|
|
493
|
+
konto_mappings: z.union([
|
|
494
|
+
z
|
|
495
|
+
.object({
|
|
496
|
+
receivables: z.union([z.string(), z.null()]),
|
|
497
|
+
payables: z.union([z.string(), z.null()]),
|
|
498
|
+
sales_vat_22: z.union([z.string(), z.null()]),
|
|
499
|
+
sales_vat_95: z.union([z.string(), z.null()]),
|
|
500
|
+
sales_vat_5: z.union([z.string(), z.null()]),
|
|
501
|
+
purchase_vat_recoverable_22: z.union([
|
|
502
|
+
z.string(),
|
|
503
|
+
z.null(),
|
|
504
|
+
]),
|
|
505
|
+
purchase_vat_recoverable_95: z.union([
|
|
506
|
+
z.string(),
|
|
507
|
+
z.null(),
|
|
508
|
+
]),
|
|
509
|
+
purchase_vat_recoverable_5: z.union([
|
|
510
|
+
z.string(),
|
|
511
|
+
z.null(),
|
|
512
|
+
]),
|
|
513
|
+
sales_revenue_22: z.union([z.string(), z.null()]),
|
|
514
|
+
sales_revenue_95: z.union([z.string(), z.null()]),
|
|
515
|
+
sales_revenue_5: z.union([z.string(), z.null()]),
|
|
516
|
+
sales_revenue_exempt: z.union([z.string(), z.null()]),
|
|
517
|
+
sales_revenue_eu_goods: z.union([
|
|
518
|
+
z.string(),
|
|
519
|
+
z.null(),
|
|
520
|
+
]),
|
|
521
|
+
sales_revenue_eu_services: z.union([
|
|
522
|
+
z.string(),
|
|
523
|
+
z.null(),
|
|
524
|
+
]),
|
|
525
|
+
sales_revenue_reverse_charge: z.union([
|
|
526
|
+
z.string(),
|
|
527
|
+
z.null(),
|
|
528
|
+
]),
|
|
529
|
+
sales_revenue_third_country_goods: z.union([
|
|
530
|
+
z.string(),
|
|
531
|
+
z.null(),
|
|
532
|
+
]),
|
|
533
|
+
sales_revenue_third_country_services: z.union([
|
|
534
|
+
z.string(),
|
|
535
|
+
z.null(),
|
|
536
|
+
]),
|
|
537
|
+
purchase_expense_22: z.union([z.string(), z.null()]),
|
|
538
|
+
purchase_expense_95: z.union([z.string(), z.null()]),
|
|
539
|
+
purchase_expense_5: z.union([z.string(), z.null()]),
|
|
540
|
+
purchase_expense_exempt: z.union([
|
|
541
|
+
z.string(),
|
|
542
|
+
z.null(),
|
|
543
|
+
]),
|
|
544
|
+
purchase_expense_eu_goods: z.union([
|
|
545
|
+
z.string(),
|
|
546
|
+
z.null(),
|
|
547
|
+
]),
|
|
548
|
+
purchase_expense_eu_services: z.union([
|
|
549
|
+
z.string(),
|
|
550
|
+
z.null(),
|
|
551
|
+
]),
|
|
552
|
+
purchase_expense_reverse_charge: z.union([
|
|
553
|
+
z.string(),
|
|
554
|
+
z.null(),
|
|
555
|
+
]),
|
|
556
|
+
purchase_expense_third_country_goods: z.union([
|
|
557
|
+
z.string(),
|
|
558
|
+
z.null(),
|
|
559
|
+
]),
|
|
560
|
+
purchase_expense_third_country_services: z.union([
|
|
561
|
+
z.string(),
|
|
562
|
+
z.null(),
|
|
563
|
+
]),
|
|
564
|
+
})
|
|
565
|
+
.partial()
|
|
566
|
+
.passthrough(),
|
|
567
|
+
z.null(),
|
|
568
|
+
]),
|
|
569
|
+
})
|
|
570
|
+
.partial()
|
|
571
|
+
.passthrough(),
|
|
572
|
+
z.null(),
|
|
573
|
+
]),
|
|
343
574
|
})
|
|
344
575
|
.partial()
|
|
345
576
|
.passthrough(),
|
|
@@ -349,6 +580,7 @@ const patchEntitySchemaDefinition = z
|
|
|
349
580
|
z
|
|
350
581
|
.object({
|
|
351
582
|
enabled: z.boolean().default(false),
|
|
583
|
+
default_skip_fiscalization: z.boolean().default(false),
|
|
352
584
|
numbering_strategy: z.enum(["B", "C"]),
|
|
353
585
|
operator_tax_number: z.string(),
|
|
354
586
|
operator_label: z.string(),
|
|
@@ -374,6 +606,17 @@ const patchEntitySchemaDefinition = z
|
|
|
374
606
|
.passthrough(),
|
|
375
607
|
z.null(),
|
|
376
608
|
]),
|
|
609
|
+
pt: z.union([
|
|
610
|
+
z
|
|
611
|
+
.object({
|
|
612
|
+
operator_first_name: z.string().min(1),
|
|
613
|
+
operator_last_name: z.string().min(1),
|
|
614
|
+
operator_tax_number: z.string().regex(/^\d{9}$/),
|
|
615
|
+
})
|
|
616
|
+
.partial()
|
|
617
|
+
.passthrough(),
|
|
618
|
+
z.null(),
|
|
619
|
+
]),
|
|
377
620
|
tax_rules: z.any().optional(),
|
|
378
621
|
overdue_notifications: z.union([
|
|
379
622
|
z
|
|
@@ -416,6 +659,7 @@ const patchEntitySchemaDefinition = z
|
|
|
416
659
|
eslog_validation_enabled: z.union([z.boolean(), z.null()]),
|
|
417
660
|
delivery_note_hide_prices: z.union([z.boolean(), z.null()]),
|
|
418
661
|
credit_note_negative_values: z.union([z.boolean(), z.null()]),
|
|
662
|
+
show_payment_amounts: z.union([z.boolean(), z.null()]),
|
|
419
663
|
receipt_note: z.union([z.string(), z.null()]),
|
|
420
664
|
receipt_footer: z.union([z.string(), z.null()]),
|
|
421
665
|
receipt_signature: z.union([z.string(), z.null()]),
|
|
@@ -452,8 +696,7 @@ const patchEntitySchemaDefinition = z
|
|
|
452
696
|
})
|
|
453
697
|
.partial();
|
|
454
698
|
|
|
455
|
-
|
|
456
|
-
export type PatchEntitySchema = z.infer<typeof patchEntitySchemaDefinition>;
|
|
457
|
-
|
|
699
|
+
export type CreateEntitySchema = z.infer<typeof createEntitySchemaDefinition>;
|
|
458
700
|
export const createEntitySchema = createEntitySchemaDefinition;
|
|
701
|
+
export type PatchEntitySchema = z.infer<typeof patchEntitySchemaDefinition>;
|
|
459
702
|
export const patchEntitySchema = patchEntitySchemaDefinition;
|
|
@@ -8,12 +8,10 @@ import { z } from 'zod';
|
|
|
8
8
|
|
|
9
9
|
// Schemas for entityapikey endpoints
|
|
10
10
|
|
|
11
|
-
// Schema for
|
|
11
|
+
// Schema for createEntityApiKey operation
|
|
12
12
|
const createEntityApiKeySchemaDefinition = z
|
|
13
13
|
.object({ name: z.string().max(255), ttl: z.number().int().gte(60) })
|
|
14
14
|
.partial();
|
|
15
15
|
|
|
16
|
-
// Type for create entityapikey operation
|
|
17
16
|
export type CreateEntityApiKeySchema = z.infer<typeof createEntityApiKeySchemaDefinition>;
|
|
18
|
-
|
|
19
17
|
export const createEntityApiKeySchema = createEntityApiKeySchemaDefinition;
|
|
@@ -8,12 +8,10 @@ import { z } from 'zod';
|
|
|
8
8
|
|
|
9
9
|
// Schemas for entityuserrole endpoints
|
|
10
10
|
|
|
11
|
-
// Schema for
|
|
11
|
+
// Schema for updateEntityUserRole operation
|
|
12
12
|
const updateEntityUserRoleSchemaDefinition = z.object({
|
|
13
13
|
role: z.enum(["viewer", "editor", "admin"]),
|
|
14
14
|
});
|
|
15
15
|
|
|
16
|
-
// Type for update entityuserrole operation
|
|
17
16
|
export type UpdateEntityUserRoleSchema = z.infer<typeof updateEntityUserRoleSchemaDefinition>;
|
|
18
|
-
|
|
19
17
|
export const updateEntityUserRoleSchema = updateEntityUserRoleSchemaDefinition;
|