@spaceinvoices/react-ui 0.4.12 → 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 +1 -1
- package/src/common/autocomplete.tsx +7 -1
- package/src/components/advance-invoices/advance-invoices.hooks.ts +35 -44
- package/src/components/advance-invoices/create/create-advance-invoice-form.tsx +189 -73
- package/src/components/advance-invoices/create/locales/bg.ts +17 -9
- package/src/components/advance-invoices/create/locales/cs.ts +17 -9
- package/src/components/advance-invoices/create/locales/de.ts +15 -7
- package/src/components/advance-invoices/create/locales/en.ts +15 -7
- package/src/components/advance-invoices/create/locales/es.ts +15 -7
- package/src/components/advance-invoices/create/locales/et.ts +17 -9
- package/src/components/advance-invoices/create/locales/fi.ts +18 -10
- package/src/components/advance-invoices/create/locales/fr.ts +16 -8
- package/src/components/advance-invoices/create/locales/hr.ts +15 -7
- package/src/components/advance-invoices/create/locales/is.ts +17 -9
- package/src/components/advance-invoices/create/locales/it.ts +15 -7
- package/src/components/advance-invoices/create/locales/nb.ts +17 -9
- 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 +17 -9
- package/src/components/advance-invoices/create/locales/sl.ts +14 -5
- package/src/components/advance-invoices/create/locales/sv.ts +17 -9
- package/src/components/advance-invoices/create/prepare-advance-invoice-submission.ts +47 -1
- package/src/components/advance-invoices/list/list-table.tsx +2 -1
- package/src/components/credit-notes/create/create-credit-note-form.tsx +253 -85
- package/src/components/credit-notes/create/locales/bg.ts +22 -8
- package/src/components/credit-notes/create/locales/cs.ts +22 -8
- package/src/components/credit-notes/create/locales/de.ts +20 -7
- package/src/components/credit-notes/create/locales/en.ts +19 -5
- package/src/components/credit-notes/create/locales/es.ts +20 -7
- package/src/components/credit-notes/create/locales/et.ts +22 -8
- package/src/components/credit-notes/create/locales/fi.ts +23 -9
- package/src/components/credit-notes/create/locales/fr.ts +21 -8
- package/src/components/credit-notes/create/locales/hr.ts +20 -7
- package/src/components/credit-notes/create/locales/is.ts +22 -8
- package/src/components/credit-notes/create/locales/it.ts +20 -7
- package/src/components/credit-notes/create/locales/nb.ts +22 -8
- 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 +22 -8
- package/src/components/credit-notes/create/locales/sl.ts +19 -5
- package/src/components/credit-notes/create/locales/sv.ts +22 -8
- package/src/components/credit-notes/create/prepare-credit-note-submission.ts +35 -1
- package/src/components/credit-notes/credit-notes.hooks.ts +21 -2
- package/src/components/credit-notes/list/list-table.tsx +2 -1
- package/src/components/delivery-notes/create/create-delivery-note-form.tsx +132 -30
- package/src/components/delivery-notes/create/locales/bg.ts +1 -0
- package/src/components/delivery-notes/create/locales/cs.ts +1 -0
- package/src/components/delivery-notes/create/locales/de.ts +1 -0
- package/src/components/delivery-notes/create/locales/en.ts +1 -0
- package/src/components/delivery-notes/create/locales/es.ts +1 -0
- package/src/components/delivery-notes/create/locales/et.ts +1 -0
- package/src/components/delivery-notes/create/locales/fi.ts +1 -0
- package/src/components/delivery-notes/create/locales/fr.ts +1 -0
- package/src/components/delivery-notes/create/locales/hr.ts +1 -0
- package/src/components/delivery-notes/create/locales/is.ts +1 -0
- package/src/components/delivery-notes/create/locales/it.ts +1 -0
- package/src/components/delivery-notes/create/locales/nb.ts +1 -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 +1 -0
- package/src/components/delivery-notes/create/locales/sl.ts +1 -0
- package/src/components/delivery-notes/create/locales/sv.ts +1 -0
- package/src/components/delivery-notes/create/prepare-delivery-note-submission.ts +34 -1
- package/src/components/delivery-notes/delivery-notes.hooks.ts +15 -1
- package/src/components/delivery-notes/list/list-table.tsx +2 -1
- package/src/components/documents/create/custom-create-template.ts +114 -0
- package/src/components/documents/create/document-add-item-form.tsx +12 -8
- package/src/components/documents/create/document-add-item-tax-rate-field.tsx +1 -2
- package/src/components/documents/create/document-date-validation.ts +111 -0
- package/src/components/documents/create/document-details-section.tsx +93 -48
- package/src/components/documents/create/document-form-item.ts +67 -0
- package/src/components/documents/create/document-item-validation.ts +6 -2
- package/src/components/documents/create/form-types.ts +2 -2
- package/src/components/documents/create/linked-documents-info.tsx +2 -11
- package/src/components/documents/create/live-preview.tsx +3 -3
- package/src/components/documents/create/mark-as-paid-section.tsx +14 -11
- package/src/components/documents/create/payment-rows.ts +30 -0
- package/src/components/documents/create/prepare-document-submission.ts +143 -103
- 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/public/public-document-summary.tsx +6 -13
- package/src/components/documents/view/document-actions-bar.tsx +10 -1
- package/src/components/documents/view/document-details-card.tsx +4 -12
- package/src/components/documents/view/document-relations-list.tsx +4 -4
- package/src/components/documents/view/locales/bg.ts +8 -8
- package/src/components/documents/view/locales/cs.ts +8 -8
- package/src/components/documents/view/locales/de.ts +1 -1
- package/src/components/documents/view/locales/en.ts +14 -14
- package/src/components/documents/view/locales/es.ts +1 -1
- package/src/components/documents/view/locales/et.ts +8 -8
- package/src/components/documents/view/locales/fi.ts +10 -10
- package/src/components/documents/view/locales/fr.ts +1 -1
- package/src/components/documents/view/locales/hr.ts +6 -6
- package/src/components/documents/view/locales/is.ts +8 -8
- package/src/components/documents/view/locales/it.ts +1 -1
- package/src/components/documents/view/locales/nb.ts +8 -8
- package/src/components/documents/view/locales/nl.ts +1 -1
- package/src/components/documents/view/locales/pl.ts +1 -1
- package/src/components/documents/view/locales/pt.ts +1 -1
- package/src/components/documents/view/locales/sk.ts +8 -8
- package/src/components/documents/view/locales/sl.ts +9 -9
- package/src/components/documents/view/locales/sv.ts +1 -1
- package/src/components/documents/view/use-document-download.ts +2 -2
- package/src/components/entities/entity-settings-form/locales/bg.ts +7 -0
- package/src/components/entities/entity-settings-form/locales/cs.ts +7 -0
- package/src/components/entities/entity-settings-form/locales/de.ts +9 -0
- package/src/components/entities/entity-settings-form/locales/en.ts +7 -0
- package/src/components/entities/entity-settings-form/locales/es.ts +7 -0
- package/src/components/entities/entity-settings-form/locales/et.ts +7 -0
- package/src/components/entities/entity-settings-form/locales/fi.ts +7 -0
- package/src/components/entities/entity-settings-form/locales/fr.ts +7 -0
- package/src/components/entities/entity-settings-form/locales/hr.ts +7 -0
- package/src/components/entities/entity-settings-form/locales/is.ts +7 -0
- package/src/components/entities/entity-settings-form/locales/it.ts +7 -0
- package/src/components/entities/entity-settings-form/locales/nb.ts +7 -0
- package/src/components/entities/entity-settings-form/locales/nl.ts +7 -0
- package/src/components/entities/entity-settings-form/locales/pl.ts +7 -0
- package/src/components/entities/entity-settings-form/locales/pt.ts +7 -0
- package/src/components/entities/entity-settings-form/locales/sk.ts +7 -0
- package/src/components/entities/entity-settings-form/locales/sl.ts +12 -4
- package/src/components/entities/entity-settings-form/locales/sv.ts +7 -0
- package/src/components/entities/settings/tax-rules-settings-form.tsx +36 -0
- package/src/components/estimates/create/create-estimate-form.tsx +195 -47
- package/src/components/estimates/create/locales/bg.ts +6 -5
- package/src/components/estimates/create/locales/cs.ts +6 -5
- package/src/components/estimates/create/locales/de.ts +4 -3
- package/src/components/estimates/create/locales/en.ts +4 -3
- package/src/components/estimates/create/locales/es.ts +4 -3
- package/src/components/estimates/create/locales/et.ts +6 -5
- package/src/components/estimates/create/locales/fi.ts +9 -8
- package/src/components/estimates/create/locales/fr.ts +4 -3
- package/src/components/estimates/create/locales/hr.ts +7 -6
- package/src/components/estimates/create/locales/is.ts +6 -5
- package/src/components/estimates/create/locales/it.ts +4 -3
- package/src/components/estimates/create/locales/nb.ts +6 -5
- 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 +6 -5
- package/src/components/estimates/create/locales/sl.ts +7 -6
- package/src/components/estimates/create/locales/sv.ts +6 -5
- package/src/components/estimates/create/prepare-estimate-submission.ts +37 -3
- package/src/components/estimates/estimates.hooks.ts +11 -2
- package/src/components/estimates/list/list-table.tsx +11 -1
- package/src/components/estimates/list/locales/bg.ts +2 -0
- package/src/components/estimates/list/locales/cs.ts +2 -0
- package/src/components/estimates/list/locales/de.ts +2 -0
- package/src/components/estimates/list/locales/en.ts +2 -0
- package/src/components/estimates/list/locales/es.ts +2 -0
- package/src/components/estimates/list/locales/et.ts +2 -0
- package/src/components/estimates/list/locales/fi.ts +2 -0
- package/src/components/estimates/list/locales/fr.ts +2 -0
- package/src/components/estimates/list/locales/hr.ts +7 -5
- package/src/components/estimates/list/locales/is.ts +2 -0
- package/src/components/estimates/list/locales/it.ts +2 -0
- package/src/components/estimates/list/locales/nb.ts +2 -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 +2 -0
- package/src/components/estimates/list/locales/sl.ts +9 -7
- package/src/components/estimates/list/locales/sv.ts +2 -0
- package/src/components/invoices/create/create-invoice-form.tsx +230 -60
- package/src/components/invoices/create/locales/bg.ts +23 -14
- package/src/components/invoices/create/locales/cs.ts +23 -14
- package/src/components/invoices/create/locales/de.ts +17 -9
- package/src/components/invoices/create/locales/en.ts +16 -7
- package/src/components/invoices/create/locales/es.ts +18 -9
- package/src/components/invoices/create/locales/et.ts +23 -14
- package/src/components/invoices/create/locales/fi.ts +24 -15
- package/src/components/invoices/create/locales/fr.ts +19 -11
- package/src/components/invoices/create/locales/hr.ts +18 -9
- package/src/components/invoices/create/locales/is.ts +23 -14
- package/src/components/invoices/create/locales/it.ts +19 -11
- package/src/components/invoices/create/locales/nb.ts +23 -14
- package/src/components/invoices/create/locales/nl.ts +19 -10
- package/src/components/invoices/create/locales/pl.ts +19 -11
- package/src/components/invoices/create/locales/pt.ts +19 -10
- package/src/components/invoices/create/locales/sk.ts +23 -14
- package/src/components/invoices/create/locales/sl.ts +17 -9
- package/src/components/invoices/create/locales/sv.ts +17 -8
- package/src/components/invoices/create/prepare-invoice-submission.ts +55 -1
- package/src/components/invoices/invoices.hooks.ts +11 -2
- package/src/components/invoices/list/list-table.tsx +2 -1
- package/src/components/invoices/send-email-dialog/locales/bg.ts +5 -0
- package/src/components/invoices/send-email-dialog/locales/cs.ts +5 -0
- package/src/components/invoices/send-email-dialog/locales/de.ts +5 -0
- package/src/components/invoices/send-email-dialog/locales/en.ts +5 -0
- package/src/components/invoices/send-email-dialog/locales/es.ts +5 -0
- package/src/components/invoices/send-email-dialog/locales/et.ts +5 -0
- package/src/components/invoices/send-email-dialog/locales/fi.ts +5 -0
- package/src/components/invoices/send-email-dialog/locales/fr.ts +5 -0
- package/src/components/invoices/send-email-dialog/locales/hr.ts +8 -3
- package/src/components/invoices/send-email-dialog/locales/is.ts +5 -0
- package/src/components/invoices/send-email-dialog/locales/it.ts +5 -0
- package/src/components/invoices/send-email-dialog/locales/nb.ts +5 -0
- package/src/components/invoices/send-email-dialog/locales/nl.ts +5 -0
- package/src/components/invoices/send-email-dialog/locales/pl.ts +5 -0
- package/src/components/invoices/send-email-dialog/locales/pt.ts +5 -0
- package/src/components/invoices/send-email-dialog/locales/sk.ts +5 -0
- package/src/components/invoices/send-email-dialog/locales/sl.ts +8 -3
- package/src/components/invoices/send-email-dialog/locales/sv.ts +5 -0
- package/src/components/invoices/send-email-dialog/send-email-dialog.tsx +2 -1
- package/src/components/items/item-combobox.tsx +4 -4
- package/src/components/payments/create-payment-form/create-payment-form.tsx +5 -2
- package/src/components/payments/edit-payment-form/edit-payment-form.tsx +5 -1
- package/src/components/recurring-invoices/create-recurring-invoice-form/create-recurring-invoice-form.tsx +98 -22
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/bg.ts +26 -26
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/cs.ts +25 -25
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/et.ts +26 -26
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/fi.ts +36 -36
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/is.ts +26 -26
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/nb.ts +26 -26
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/sk.ts +25 -25
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/sv.ts +26 -26
- package/src/components/recurring-invoices/list/list-row-actions.tsx +9 -1
- package/src/components/recurring-invoices/list/list-table.tsx +53 -5
- package/src/components/recurring-invoices/list/locales/bg.ts +4 -0
- package/src/components/recurring-invoices/list/locales/cs.ts +4 -0
- package/src/components/recurring-invoices/list/locales/de.ts +4 -0
- package/src/components/recurring-invoices/list/locales/en.ts +4 -0
- package/src/components/recurring-invoices/list/locales/es.ts +4 -0
- package/src/components/recurring-invoices/list/locales/et.ts +4 -0
- package/src/components/recurring-invoices/list/locales/fi.ts +4 -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 +4 -0
- package/src/components/recurring-invoices/list/locales/it.ts +4 -0
- package/src/components/recurring-invoices/list/locales/nb.ts +4 -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 +4 -0
- package/src/components/recurring-invoices/list/locales/sl.ts +4 -0
- package/src/components/recurring-invoices/list/locales/sv.ts +4 -0
- package/src/components/tax-reports/slovenia-tax-profile-step.tsx +4 -1
- package/src/components/tax-reports/slovenia-yearly-export-form.tsx +3 -0
- package/src/components/tax-reports/slovenia-yearly-review-step.tsx +2 -1
- package/src/components/ui/form.tsx +5 -13
- package/src/components/ui/select.tsx +0 -1
- package/src/components/ui/sidebar.tsx +2 -2
- package/src/generate-schemas.ts +132 -99
- package/src/generated/schemas/acceptentityinvitation_body.ts +4 -3
- package/src/generated/schemas/accountwebhook.ts +4 -8
- 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 +44 -40
- 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 +4 -3
- 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 +1 -3
- package/src/generated/schemas/image.ts +15 -0
- package/src/generated/schemas/incomingpurchasedocument.ts +7 -27
- package/src/generated/schemas/incomingpurchasedocumentattachment.ts +15 -0
- package/src/generated/schemas/incomingpurchasedocumentpayment.ts +1 -3
- package/src/generated/schemas/index.ts +20 -5
- package/src/generated/schemas/invoice.ts +182 -183
- package/src/generated/schemas/item.ts +6 -10
- package/src/generated/schemas/legacymigrationauth.ts +18 -0
- package/src/generated/schemas/me.ts +2 -24
- package/src/generated/schemas/migrationjob.ts +20 -0
- package/src/generated/schemas/order.ts +4 -8
- package/src/generated/schemas/orderintegration.ts +4 -8
- package/src/generated/schemas/payment.ts +4 -8
- package/src/generated/schemas/ptatcudseries.ts +1 -3
- 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 +10 -16
- package/src/generated/schemas/rendercreditnotepreview_body.ts +10 -16
- package/src/generated/schemas/renderdeliverynotepreview_body.ts +9 -5
- package/src/generated/schemas/renderestimatepreview_body.ts +11 -7
- package/src/generated/schemas/renderinvoicepreview_body.ts +10 -16
- package/src/generated/schemas/reviewsloveniayearlynormiranireport.ts +15 -0
- package/src/generated/schemas/searcheinvoicingcustomer.ts +18 -0
- package/src/generated/schemas/senddocument_body.ts +1 -3
- package/src/generated/schemas/sendemail_body.ts +2 -24
- package/src/generated/schemas/sloveniataxprofile.ts +8 -10
- package/src/generated/schemas/starteslogexport_body.ts +4 -3
- package/src/generated/schemas/startpdfexport_body.ts +8 -87
- 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 +4 -8
- package/src/generated/schemas/syncshopifyorders_body.ts +4 -3
- package/src/generated/schemas/tax.ts +6 -8
- package/src/generated/schemas/uploadfile_body.ts +1 -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 +1 -3
- package/src/generated/schemas/voidinvoice_body.ts +8 -3
- package/src/generated/schemas/webhook.ts +4 -8
- package/src/generated/schemas/wlsubscriptionbillingemail.ts +17 -0
- package/src/hooks/use-duplicate-document.ts +61 -30
- package/src/lib/date-only.ts +58 -0
- package/src/lib/document-display.ts +18 -0
- package/src/lib/payment-display.ts +5 -3
- package/src/lib/schemas/shared.ts +11 -0
- package/src/providers/wl-subscription-provider.tsx +5 -0
- package/src/generated/schemas/account_webhook.ts +0 -43
- 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
|
@@ -8,7 +8,7 @@ import { z } from 'zod';
|
|
|
8
8
|
|
|
9
9
|
// Schemas for recurringinvoice endpoints
|
|
10
10
|
|
|
11
|
-
// Schema for
|
|
11
|
+
// Schema for createRecurringInvoice operation
|
|
12
12
|
const createRecurringInvoiceSchemaDefinition = z.object({
|
|
13
13
|
document_id: z.string().max(36),
|
|
14
14
|
name: z.string().min(1),
|
|
@@ -30,11 +30,8 @@ const createRecurringInvoiceSchemaDefinition = z.object({
|
|
|
30
30
|
metadata: z.union([z.record(z.string(), z.any()), z.null()]).optional(),
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
-
// Type for create recurringinvoice operation
|
|
34
|
-
export type CreateRecurringInvoiceSchema = z.infer<typeof createRecurringInvoiceSchemaDefinition>;
|
|
35
|
-
|
|
36
33
|
|
|
37
|
-
// Schema for
|
|
34
|
+
// Schema for updateRecurringInvoice operation
|
|
38
35
|
const updateRecurringInvoiceSchemaDefinition = z
|
|
39
36
|
.object({
|
|
40
37
|
name: z.string().max(255),
|
|
@@ -54,8 +51,7 @@ const updateRecurringInvoiceSchemaDefinition = z
|
|
|
54
51
|
})
|
|
55
52
|
.partial();
|
|
56
53
|
|
|
57
|
-
|
|
58
|
-
export type UpdateRecurringInvoiceSchema = z.infer<typeof updateRecurringInvoiceSchemaDefinition>;
|
|
59
|
-
|
|
54
|
+
export type CreateRecurringInvoiceSchema = z.infer<typeof createRecurringInvoiceSchemaDefinition>;
|
|
60
55
|
export const createRecurringInvoiceSchema = createRecurringInvoiceSchemaDefinition;
|
|
56
|
+
export type UpdateRecurringInvoiceSchema = z.infer<typeof updateRecurringInvoiceSchemaDefinition>;
|
|
61
57
|
export const updateRecurringInvoiceSchema = updateRecurringInvoiceSchemaDefinition;
|
|
@@ -8,7 +8,7 @@ import { z } from 'zod';
|
|
|
8
8
|
|
|
9
9
|
// Schemas for registerfursmovablepremise_body endpoints
|
|
10
10
|
|
|
11
|
-
// Schema for
|
|
11
|
+
// Schema for registerFursMovablePremise operation
|
|
12
12
|
const registerFursMovablePremiseSchemaDefinition = z.object({
|
|
13
13
|
business_premise_name: z.string().min(1).max(20),
|
|
14
14
|
movable_premise: z
|
|
@@ -16,7 +16,5 @@ const registerFursMovablePremiseSchemaDefinition = z.object({
|
|
|
16
16
|
.passthrough(),
|
|
17
17
|
});
|
|
18
18
|
|
|
19
|
-
// Type for register fursmovablepremise operation
|
|
20
19
|
export type RegisterFursMovablePremiseSchema = z.infer<typeof registerFursMovablePremiseSchemaDefinition>;
|
|
21
|
-
|
|
22
20
|
export const registerFursMovablePremiseSchema = registerFursMovablePremiseSchemaDefinition;
|
|
@@ -8,7 +8,7 @@ import { z } from 'zod';
|
|
|
8
8
|
|
|
9
9
|
// Schemas for registerfursrealestatepremise_body endpoints
|
|
10
10
|
|
|
11
|
-
// Schema for
|
|
11
|
+
// Schema for registerFursRealEstatePremise operation
|
|
12
12
|
const registerFursRealEstatePremiseSchemaDefinition = z.object({
|
|
13
13
|
business_premise_name: z.string().min(1).max(20),
|
|
14
14
|
real_estate: z
|
|
@@ -30,7 +30,5 @@ const registerFursRealEstatePremiseSchemaDefinition = z.object({
|
|
|
30
30
|
.passthrough(),
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
-
// Type for register fursrealestatepremise operation
|
|
34
33
|
export type RegisterFursRealEstatePremiseSchema = z.infer<typeof registerFursRealEstatePremiseSchemaDefinition>;
|
|
35
|
-
|
|
36
34
|
export const registerFursRealEstatePremiseSchema = registerFursRealEstatePremiseSchemaDefinition;
|
|
@@ -90,17 +90,7 @@ const CreateFinaInvoiceData = z.union([
|
|
|
90
90
|
operator_oib: z.union([z.string(), z.null()]),
|
|
91
91
|
operator_label: z.union([z.string(), z.null()]),
|
|
92
92
|
payment_type: z.union([
|
|
93
|
-
z.enum([
|
|
94
|
-
"cash",
|
|
95
|
-
"card",
|
|
96
|
-
"online",
|
|
97
|
-
"bank_transfer",
|
|
98
|
-
"paypal",
|
|
99
|
-
"crypto",
|
|
100
|
-
"coupon",
|
|
101
|
-
"other",
|
|
102
|
-
null,
|
|
103
|
-
]),
|
|
93
|
+
z.union([z.enum(["cash", "card", "online", "bank_transfer", "paypal", "crypto", "coupon", "other"]), z.null()]),
|
|
104
94
|
z.null(),
|
|
105
95
|
]),
|
|
106
96
|
subsequent_submit: z.union([z.boolean(), z.null()]),
|
|
@@ -124,6 +114,9 @@ const PartialAdvanceInvoicePreview = z.object({
|
|
|
124
114
|
tax_clause: z.union([z.string(), z.null()]).optional(),
|
|
125
115
|
footer: z.union([z.string(), z.null()]).optional(),
|
|
126
116
|
signature: z.union([z.string(), z.null()]).optional(),
|
|
117
|
+
calculation_mode: z
|
|
118
|
+
.union([z.union([z.enum(["b2b_standard", "b2c_gross_discount"]), z.null()]), z.null()])
|
|
119
|
+
.optional(),
|
|
127
120
|
currency_code: z.string().max(3).optional(),
|
|
128
121
|
metadata: z.union([z.record(z.string(), z.any()), z.null()]).optional(),
|
|
129
122
|
reference: z.union([z.string(), z.null()]).optional(),
|
|
@@ -192,11 +185,11 @@ const LineDiscount = z.object({
|
|
|
192
185
|
// Dependency schema for renderadvanceinvoicepreview_body
|
|
193
186
|
const CreateDocumentItem = z
|
|
194
187
|
.object({
|
|
195
|
-
type: z.union([z.enum(["separator", null]), z.null()]),
|
|
188
|
+
type: z.union([z.union([z.enum(["separator"]), z.null()]), z.null()]),
|
|
196
189
|
name: z.union([z.string(), z.null()]),
|
|
197
190
|
description: z.union([z.string(), z.null()]),
|
|
198
191
|
classification: z.union([
|
|
199
|
-
z.enum(["product", "service", "advance", null]),
|
|
192
|
+
z.union([z.enum(["product", "service", "advance"]), z.null()]),
|
|
200
193
|
z.null(),
|
|
201
194
|
]),
|
|
202
195
|
price: z.union([z.number(), z.null()]),
|
|
@@ -226,6 +219,9 @@ const CompleteAdvanceInvoicePreview = z.object({
|
|
|
226
219
|
tax_clause: z.union([z.string(), z.null()]).optional(),
|
|
227
220
|
footer: z.union([z.string(), z.null()]).optional(),
|
|
228
221
|
signature: z.union([z.string(), z.null()]).optional(),
|
|
222
|
+
calculation_mode: z
|
|
223
|
+
.union([z.union([z.enum(["b2b_standard", "b2c_gross_discount"]), z.null()]), z.null()])
|
|
224
|
+
.optional(),
|
|
229
225
|
currency_code: z.string().max(3).optional(),
|
|
230
226
|
metadata: z.union([z.record(z.string(), z.any()), z.null()]).optional(),
|
|
231
227
|
reference: z.union([z.string(), z.null()]).optional(),
|
|
@@ -240,13 +236,11 @@ const CompleteAdvanceInvoicePreview = z.object({
|
|
|
240
236
|
});
|
|
241
237
|
|
|
242
238
|
|
|
243
|
-
// Schema for
|
|
239
|
+
// Schema for renderAdvanceInvoicePreview operation
|
|
244
240
|
const renderAdvanceInvoicePreviewSchemaDefinition = z.union([
|
|
245
241
|
PartialAdvanceInvoicePreview,
|
|
246
242
|
CompleteAdvanceInvoicePreview,
|
|
247
243
|
]);
|
|
248
244
|
|
|
249
|
-
// Type for render advanceinvoicepreview operation
|
|
250
245
|
export type RenderAdvanceInvoicePreviewSchema = z.infer<typeof renderAdvanceInvoicePreviewSchemaDefinition>;
|
|
251
|
-
|
|
252
246
|
export const renderAdvanceInvoicePreviewSchema = renderAdvanceInvoicePreviewSchemaDefinition;
|
|
@@ -90,17 +90,7 @@ const CreateFinaInvoiceData = z.union([
|
|
|
90
90
|
operator_oib: z.union([z.string(), z.null()]),
|
|
91
91
|
operator_label: z.union([z.string(), z.null()]),
|
|
92
92
|
payment_type: z.union([
|
|
93
|
-
z.enum([
|
|
94
|
-
"cash",
|
|
95
|
-
"card",
|
|
96
|
-
"online",
|
|
97
|
-
"bank_transfer",
|
|
98
|
-
"paypal",
|
|
99
|
-
"crypto",
|
|
100
|
-
"coupon",
|
|
101
|
-
"other",
|
|
102
|
-
null,
|
|
103
|
-
]),
|
|
93
|
+
z.union([z.enum(["cash", "card", "online", "bank_transfer", "paypal", "crypto", "coupon", "other"]), z.null()]),
|
|
104
94
|
z.null(),
|
|
105
95
|
]),
|
|
106
96
|
subsequent_submit: z.union([z.boolean(), z.null()]),
|
|
@@ -125,6 +115,9 @@ const PartialCreditNotePreview = z.object({
|
|
|
125
115
|
tax_clause: z.union([z.string(), z.null()]).optional(),
|
|
126
116
|
footer: z.union([z.string(), z.null()]).optional(),
|
|
127
117
|
signature: z.union([z.string(), z.null()]).optional(),
|
|
118
|
+
calculation_mode: z
|
|
119
|
+
.union([z.union([z.enum(["b2b_standard", "b2c_gross_discount"]), z.null()]), z.null()])
|
|
120
|
+
.optional(),
|
|
128
121
|
currency_code: z.string().max(3).optional(),
|
|
129
122
|
metadata: z.union([z.record(z.string(), z.any()), z.null()]).optional(),
|
|
130
123
|
reference: z.union([z.string(), z.null()]).optional(),
|
|
@@ -193,11 +186,11 @@ const LineDiscount = z.object({
|
|
|
193
186
|
// Dependency schema for rendercreditnotepreview_body
|
|
194
187
|
const CreateDocumentItem = z
|
|
195
188
|
.object({
|
|
196
|
-
type: z.union([z.enum(["separator", null]), z.null()]),
|
|
189
|
+
type: z.union([z.union([z.enum(["separator"]), z.null()]), z.null()]),
|
|
197
190
|
name: z.union([z.string(), z.null()]),
|
|
198
191
|
description: z.union([z.string(), z.null()]),
|
|
199
192
|
classification: z.union([
|
|
200
|
-
z.enum(["product", "service", "advance", null]),
|
|
193
|
+
z.union([z.enum(["product", "service", "advance"]), z.null()]),
|
|
201
194
|
z.null(),
|
|
202
195
|
]),
|
|
203
196
|
price: z.union([z.number(), z.null()]),
|
|
@@ -228,6 +221,9 @@ const CompleteCreditNotePreview = z.object({
|
|
|
228
221
|
tax_clause: z.union([z.string(), z.null()]).optional(),
|
|
229
222
|
footer: z.union([z.string(), z.null()]).optional(),
|
|
230
223
|
signature: z.union([z.string(), z.null()]).optional(),
|
|
224
|
+
calculation_mode: z
|
|
225
|
+
.union([z.union([z.enum(["b2b_standard", "b2c_gross_discount"]), z.null()]), z.null()])
|
|
226
|
+
.optional(),
|
|
231
227
|
currency_code: z.string().max(3).optional(),
|
|
232
228
|
metadata: z.union([z.record(z.string(), z.any()), z.null()]).optional(),
|
|
233
229
|
reference: z.union([z.string(), z.null()]).optional(),
|
|
@@ -242,13 +238,11 @@ const CompleteCreditNotePreview = z.object({
|
|
|
242
238
|
});
|
|
243
239
|
|
|
244
240
|
|
|
245
|
-
// Schema for
|
|
241
|
+
// Schema for renderCreditNotePreview operation
|
|
246
242
|
const renderCreditNotePreviewSchemaDefinition = z.union([
|
|
247
243
|
PartialCreditNotePreview,
|
|
248
244
|
CompleteCreditNotePreview,
|
|
249
245
|
]);
|
|
250
246
|
|
|
251
|
-
// Type for render creditnotepreview operation
|
|
252
247
|
export type RenderCreditNotePreviewSchema = z.infer<typeof renderCreditNotePreviewSchemaDefinition>;
|
|
253
|
-
|
|
254
248
|
export const renderCreditNotePreviewSchema = renderCreditNotePreviewSchemaDefinition;
|
|
@@ -76,6 +76,9 @@ const PartialDeliveryNotePreview = z.object({
|
|
|
76
76
|
tax_clause: z.union([z.string(), z.null()]).optional(),
|
|
77
77
|
footer: z.union([z.string(), z.null()]).optional(),
|
|
78
78
|
signature: z.union([z.string(), z.null()]).optional(),
|
|
79
|
+
calculation_mode: z
|
|
80
|
+
.union([z.union([z.enum(["b2b_standard", "b2c_gross_discount"]), z.null()]), z.null()])
|
|
81
|
+
.optional(),
|
|
79
82
|
currency_code: z.string().max(3).optional(),
|
|
80
83
|
metadata: z.union([z.record(z.string(), z.any()), z.null()]).optional(),
|
|
81
84
|
reference: z.union([z.string(), z.null()]).optional(),
|
|
@@ -143,11 +146,11 @@ const LineDiscount = z.object({
|
|
|
143
146
|
// Dependency schema for renderdeliverynotepreview_body
|
|
144
147
|
const CreateDocumentItem = z
|
|
145
148
|
.object({
|
|
146
|
-
type: z.union([z.enum(["separator", null]), z.null()]),
|
|
149
|
+
type: z.union([z.union([z.enum(["separator"]), z.null()]), z.null()]),
|
|
147
150
|
name: z.union([z.string(), z.null()]),
|
|
148
151
|
description: z.union([z.string(), z.null()]),
|
|
149
152
|
classification: z.union([
|
|
150
|
-
z.enum(["product", "service", "advance", null]),
|
|
153
|
+
z.union([z.enum(["product", "service", "advance"]), z.null()]),
|
|
151
154
|
z.null(),
|
|
152
155
|
]),
|
|
153
156
|
price: z.union([z.number(), z.null()]),
|
|
@@ -178,6 +181,9 @@ const CompleteDeliveryNotePreview = z.object({
|
|
|
178
181
|
tax_clause: z.union([z.string(), z.null()]).optional(),
|
|
179
182
|
footer: z.union([z.string(), z.null()]).optional(),
|
|
180
183
|
signature: z.union([z.string(), z.null()]).optional(),
|
|
184
|
+
calculation_mode: z
|
|
185
|
+
.union([z.union([z.enum(["b2b_standard", "b2c_gross_discount"]), z.null()]), z.null()])
|
|
186
|
+
.optional(),
|
|
181
187
|
currency_code: z.string().max(3).optional(),
|
|
182
188
|
metadata: z.union([z.record(z.string(), z.any()), z.null()]).optional(),
|
|
183
189
|
reference: z.union([z.string(), z.null()]).optional(),
|
|
@@ -191,13 +197,11 @@ const CompleteDeliveryNotePreview = z.object({
|
|
|
191
197
|
});
|
|
192
198
|
|
|
193
199
|
|
|
194
|
-
// Schema for
|
|
200
|
+
// Schema for renderDeliveryNotePreview operation
|
|
195
201
|
const renderDeliveryNotePreviewSchemaDefinition = z.union([
|
|
196
202
|
PartialDeliveryNotePreview,
|
|
197
203
|
CompleteDeliveryNotePreview,
|
|
198
204
|
]);
|
|
199
205
|
|
|
200
|
-
// Type for render deliverynotepreview operation
|
|
201
206
|
export type RenderDeliveryNotePreviewSchema = z.infer<typeof renderDeliveryNotePreviewSchemaDefinition>;
|
|
202
|
-
|
|
203
207
|
export const renderDeliveryNotePreviewSchema = renderDeliveryNotePreviewSchemaDefinition;
|
|
@@ -96,13 +96,16 @@ const PartialEstimatePreview = z.object({
|
|
|
96
96
|
tax_clause: z.union([z.string(), z.null()]).optional(),
|
|
97
97
|
footer: z.union([z.string(), z.null()]).optional(),
|
|
98
98
|
signature: z.union([z.string(), z.null()]).optional(),
|
|
99
|
+
calculation_mode: z
|
|
100
|
+
.union([z.union([z.enum(["b2b_standard", "b2c_gross_discount"]), z.null()]), z.null()])
|
|
101
|
+
.optional(),
|
|
99
102
|
currency_code: z.string().max(3).optional(),
|
|
100
103
|
metadata: z.union([z.record(z.string(), z.any()), z.null()]).optional(),
|
|
101
104
|
reference: z.union([z.string(), z.null()]).optional(),
|
|
102
105
|
pt: PtDocumentInput.optional(),
|
|
103
106
|
date_valid_till: z.union([z.string(), z.null()]).optional(),
|
|
104
107
|
title_type: z
|
|
105
|
-
.union([z.enum(["estimate", "
|
|
108
|
+
.union([z.union([z.enum(["estimate", "proforma_invoice"]), z.null()]), z.null()])
|
|
106
109
|
.optional(),
|
|
107
110
|
date_due: z.union([z.string(), z.null()]).optional(),
|
|
108
111
|
date_service: z.union([z.string(), z.null()]).optional(),
|
|
@@ -166,11 +169,11 @@ const LineDiscount = z.object({
|
|
|
166
169
|
// Dependency schema for renderestimatepreview_body
|
|
167
170
|
const CreateDocumentItem = z
|
|
168
171
|
.object({
|
|
169
|
-
type: z.union([z.enum(["separator", null]), z.null()]),
|
|
172
|
+
type: z.union([z.union([z.enum(["separator"]), z.null()]), z.null()]),
|
|
170
173
|
name: z.union([z.string(), z.null()]),
|
|
171
174
|
description: z.union([z.string(), z.null()]),
|
|
172
175
|
classification: z.union([
|
|
173
|
-
z.enum(["product", "service", "advance", null]),
|
|
176
|
+
z.union([z.enum(["product", "service", "advance"]), z.null()]),
|
|
174
177
|
z.null(),
|
|
175
178
|
]),
|
|
176
179
|
price: z.union([z.number(), z.null()]),
|
|
@@ -201,13 +204,16 @@ const CompleteEstimatePreview = z.object({
|
|
|
201
204
|
tax_clause: z.union([z.string(), z.null()]).optional(),
|
|
202
205
|
footer: z.union([z.string(), z.null()]).optional(),
|
|
203
206
|
signature: z.union([z.string(), z.null()]).optional(),
|
|
207
|
+
calculation_mode: z
|
|
208
|
+
.union([z.union([z.enum(["b2b_standard", "b2c_gross_discount"]), z.null()]), z.null()])
|
|
209
|
+
.optional(),
|
|
204
210
|
currency_code: z.string().max(3).optional(),
|
|
205
211
|
metadata: z.union([z.record(z.string(), z.any()), z.null()]).optional(),
|
|
206
212
|
reference: z.union([z.string(), z.null()]).optional(),
|
|
207
213
|
pt: PtDocumentInput.optional(),
|
|
208
214
|
date_valid_till: z.union([z.string(), z.null()]).optional(),
|
|
209
215
|
title_type: z
|
|
210
|
-
.union([z.enum(["estimate", "
|
|
216
|
+
.union([z.union([z.enum(["estimate", "proforma_invoice"]), z.null()]), z.null()])
|
|
211
217
|
.optional(),
|
|
212
218
|
date_due: z.union([z.string(), z.null()]).optional(),
|
|
213
219
|
date_service: z.union([z.string(), z.null()]).optional(),
|
|
@@ -217,13 +223,11 @@ const CompleteEstimatePreview = z.object({
|
|
|
217
223
|
});
|
|
218
224
|
|
|
219
225
|
|
|
220
|
-
// Schema for
|
|
226
|
+
// Schema for renderEstimatePreview operation
|
|
221
227
|
const renderEstimatePreviewSchemaDefinition = z.union([
|
|
222
228
|
PartialEstimatePreview,
|
|
223
229
|
CompleteEstimatePreview,
|
|
224
230
|
]);
|
|
225
231
|
|
|
226
|
-
// Type for render estimatepreview operation
|
|
227
232
|
export type RenderEstimatePreviewSchema = z.infer<typeof renderEstimatePreviewSchemaDefinition>;
|
|
228
|
-
|
|
229
233
|
export const renderEstimatePreviewSchema = renderEstimatePreviewSchemaDefinition;
|
|
@@ -90,17 +90,7 @@ const CreateFinaInvoiceData = z.union([
|
|
|
90
90
|
operator_oib: z.union([z.string(), z.null()]),
|
|
91
91
|
operator_label: z.union([z.string(), z.null()]),
|
|
92
92
|
payment_type: z.union([
|
|
93
|
-
z.enum([
|
|
94
|
-
"cash",
|
|
95
|
-
"card",
|
|
96
|
-
"online",
|
|
97
|
-
"bank_transfer",
|
|
98
|
-
"paypal",
|
|
99
|
-
"crypto",
|
|
100
|
-
"coupon",
|
|
101
|
-
"other",
|
|
102
|
-
null,
|
|
103
|
-
]),
|
|
93
|
+
z.union([z.enum(["cash", "card", "online", "bank_transfer", "paypal", "crypto", "coupon", "other"]), z.null()]),
|
|
104
94
|
z.null(),
|
|
105
95
|
]),
|
|
106
96
|
subsequent_submit: z.union([z.boolean(), z.null()]),
|
|
@@ -125,6 +115,9 @@ const PartialInvoicePreview = z.object({
|
|
|
125
115
|
tax_clause: z.union([z.string(), z.null()]).optional(),
|
|
126
116
|
footer: z.union([z.string(), z.null()]).optional(),
|
|
127
117
|
signature: z.union([z.string(), z.null()]).optional(),
|
|
118
|
+
calculation_mode: z
|
|
119
|
+
.union([z.union([z.enum(["b2b_standard", "b2c_gross_discount"]), z.null()]), z.null()])
|
|
120
|
+
.optional(),
|
|
128
121
|
currency_code: z.string().max(3).optional(),
|
|
129
122
|
metadata: z.union([z.record(z.string(), z.any()), z.null()]).optional(),
|
|
130
123
|
reference: z.union([z.string(), z.null()]).optional(),
|
|
@@ -195,11 +188,11 @@ const LineDiscount = z.object({
|
|
|
195
188
|
// Dependency schema for renderinvoicepreview_body
|
|
196
189
|
const CreateDocumentItem = z
|
|
197
190
|
.object({
|
|
198
|
-
type: z.union([z.enum(["separator", null]), z.null()]),
|
|
191
|
+
type: z.union([z.union([z.enum(["separator"]), z.null()]), z.null()]),
|
|
199
192
|
name: z.union([z.string(), z.null()]),
|
|
200
193
|
description: z.union([z.string(), z.null()]),
|
|
201
194
|
classification: z.union([
|
|
202
|
-
z.enum(["product", "service", "advance", null]),
|
|
195
|
+
z.union([z.enum(["product", "service", "advance"]), z.null()]),
|
|
203
196
|
z.null(),
|
|
204
197
|
]),
|
|
205
198
|
price: z.union([z.number(), z.null()]),
|
|
@@ -230,6 +223,9 @@ const CompleteInvoicePreview = z.object({
|
|
|
230
223
|
tax_clause: z.union([z.string(), z.null()]).optional(),
|
|
231
224
|
footer: z.union([z.string(), z.null()]).optional(),
|
|
232
225
|
signature: z.union([z.string(), z.null()]).optional(),
|
|
226
|
+
calculation_mode: z
|
|
227
|
+
.union([z.union([z.enum(["b2b_standard", "b2c_gross_discount"]), z.null()]), z.null()])
|
|
228
|
+
.optional(),
|
|
233
229
|
currency_code: z.string().max(3).optional(),
|
|
234
230
|
metadata: z.union([z.record(z.string(), z.any()), z.null()]).optional(),
|
|
235
231
|
reference: z.union([z.string(), z.null()]).optional(),
|
|
@@ -246,13 +242,11 @@ const CompleteInvoicePreview = z.object({
|
|
|
246
242
|
});
|
|
247
243
|
|
|
248
244
|
|
|
249
|
-
// Schema for
|
|
245
|
+
// Schema for renderInvoicePreview operation
|
|
250
246
|
const renderInvoicePreviewSchemaDefinition = z.union([
|
|
251
247
|
PartialInvoicePreview,
|
|
252
248
|
CompleteInvoicePreview,
|
|
253
249
|
]);
|
|
254
250
|
|
|
255
|
-
// Type for render invoicepreview operation
|
|
256
251
|
export type RenderInvoicePreviewSchema = z.infer<typeof renderInvoicePreviewSchemaDefinition>;
|
|
257
|
-
|
|
258
252
|
export const renderInvoicePreviewSchema = renderInvoicePreviewSchemaDefinition;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 reviewsloveniayearlynormiranireport endpoints
|
|
10
|
+
|
|
11
|
+
// Schema for reviewSloveniaYearlyNormiraniReport operation
|
|
12
|
+
const reviewSloveniaYearlyNormiraniReportSchemaDefinition = z.object({ code: z.string(), message: z.string() }).passthrough();
|
|
13
|
+
|
|
14
|
+
export type ReviewSloveniaYearlyNormiraniReportSchema = z.infer<typeof reviewSloveniaYearlyNormiraniReportSchemaDefinition>;
|
|
15
|
+
export const reviewSloveniaYearlyNormiraniReportSchema = reviewSloveniaYearlyNormiraniReportSchemaDefinition;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 searcheinvoicingcustomer endpoints
|
|
10
|
+
|
|
11
|
+
// Schema for searchEInvoicingCustomer operation
|
|
12
|
+
const searchEInvoicingCustomerSchemaDefinition = z.object({
|
|
13
|
+
peppol_id: z.string().min(1),
|
|
14
|
+
scheme_id: z.string().min(1).max(10),
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export type SearchEInvoicingCustomerSchema = z.infer<typeof searchEInvoicingCustomerSchemaDefinition>;
|
|
18
|
+
export const searchEInvoicingCustomerSchema = searchEInvoicingCustomerSchemaDefinition;
|
|
@@ -8,7 +8,7 @@ import { z } from 'zod';
|
|
|
8
8
|
|
|
9
9
|
// Schemas for senddocument_body endpoints
|
|
10
10
|
|
|
11
|
-
// Schema for
|
|
11
|
+
// Schema for sendDocument operation
|
|
12
12
|
const sendDocumentSchemaDefinition = z.object({
|
|
13
13
|
to: z.string().email(),
|
|
14
14
|
subject: z.string().min(1).max(255).optional(),
|
|
@@ -18,7 +18,5 @@ const sendDocumentSchemaDefinition = z.object({
|
|
|
18
18
|
sandbox_skip_delivery: z.boolean().optional().default(false),
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
// Type for send document operation
|
|
22
21
|
export type SendDocumentSchema = z.infer<typeof sendDocumentSchemaDefinition>;
|
|
23
|
-
|
|
24
22
|
export const sendDocumentSchema = sendDocumentSchemaDefinition;
|
|
@@ -8,7 +8,7 @@ import { z } from 'zod';
|
|
|
8
8
|
|
|
9
9
|
// Schemas for sendemail_body endpoints
|
|
10
10
|
|
|
11
|
-
// Schema for
|
|
11
|
+
// Schema for sendEmail operation
|
|
12
12
|
const sendEmailSchemaDefinition = z.object({
|
|
13
13
|
to: z.string().email(),
|
|
14
14
|
subject: z.string().min(1).max(255).optional(),
|
|
@@ -19,27 +19,7 @@ const sendEmailSchemaDefinition = z.object({
|
|
|
19
19
|
sandbox_skip_delivery: z.boolean().optional().default(false),
|
|
20
20
|
locale: z
|
|
21
21
|
.union([
|
|
22
|
-
z.enum([
|
|
23
|
-
"en-US",
|
|
24
|
-
"de-DE",
|
|
25
|
-
"it-IT",
|
|
26
|
-
"fr-FR",
|
|
27
|
-
"es-ES",
|
|
28
|
-
"sl-SI",
|
|
29
|
-
"pt-PT",
|
|
30
|
-
"nl-NL",
|
|
31
|
-
"pl-PL",
|
|
32
|
-
"hr-HR",
|
|
33
|
-
"sv-SE",
|
|
34
|
-
"fi-FI",
|
|
35
|
-
"et-EE",
|
|
36
|
-
"bg-BG",
|
|
37
|
-
"cs-CZ",
|
|
38
|
-
"sk-SK",
|
|
39
|
-
"nb-NO",
|
|
40
|
-
"is-IS",
|
|
41
|
-
null,
|
|
42
|
-
]),
|
|
22
|
+
z.union([z.enum(["en-US", "de-DE", "it-IT", "fr-FR", "es-ES", "sl-SI", "pt-PT", "nl-NL", "pl-PL", "hr-HR", "sv-SE", "fi-FI", "et-EE", "bg-BG", "cs-CZ", "sk-SK", "nb-NO", "is-IS"]), z.null()]),
|
|
43
23
|
z.null(),
|
|
44
24
|
])
|
|
45
25
|
.optional(),
|
|
@@ -90,7 +70,5 @@ const sendEmailSchemaDefinition = z.object({
|
|
|
90
70
|
.optional(),
|
|
91
71
|
});
|
|
92
72
|
|
|
93
|
-
// Type for send email operation
|
|
94
73
|
export type SendEmailSchema = z.infer<typeof sendEmailSchemaDefinition>;
|
|
95
|
-
|
|
96
74
|
export const sendEmailSchema = sendEmailSchemaDefinition;
|
|
@@ -8,23 +8,23 @@ import { z } from 'zod';
|
|
|
8
8
|
|
|
9
9
|
// Schemas for sloveniataxprofile endpoints
|
|
10
10
|
|
|
11
|
-
// Schema for
|
|
11
|
+
// Schema for updateSloveniaTaxProfile operation
|
|
12
12
|
const updateSloveniaTaxProfileSchemaDefinition = z
|
|
13
13
|
.object({
|
|
14
14
|
business_form: z.union([
|
|
15
|
-
z.enum(["sp", "doo", "dno", "club", null]),
|
|
15
|
+
z.union([z.enum(["sp", "doo", "dno", "club"]), z.null()]),
|
|
16
16
|
z.null(),
|
|
17
17
|
]),
|
|
18
18
|
income_tax_regime: z.union([
|
|
19
|
-
z.enum(["normirani", "dejanski", null]),
|
|
19
|
+
z.union([z.enum(["normirani", "dejanski"]), z.null()]),
|
|
20
20
|
z.null(),
|
|
21
21
|
]),
|
|
22
22
|
vat_profile: z.union([
|
|
23
|
-
z.enum(["standard", "special_vat_identified", null]),
|
|
23
|
+
z.union([z.enum(["standard", "special_vat_identified", "non_vat_subject"]), z.null()]),
|
|
24
24
|
z.null(),
|
|
25
25
|
]),
|
|
26
26
|
tax_residency: z.union([
|
|
27
|
-
z.enum(["resident", "non_resident", null]),
|
|
27
|
+
z.union([z.enum(["resident", "non_resident"]), z.null()]),
|
|
28
28
|
z.null(),
|
|
29
29
|
]),
|
|
30
30
|
yearly_reporting: z.union([
|
|
@@ -33,11 +33,11 @@ const updateSloveniaTaxProfileSchemaDefinition = z
|
|
|
33
33
|
activity_code: z.union([z.string(), z.null()]),
|
|
34
34
|
registration_number: z.union([z.string(), z.null()]),
|
|
35
35
|
accounting_type: z.union([
|
|
36
|
-
z.enum(["records", "single_entry", "double_entry", null]),
|
|
36
|
+
z.union([z.enum(["records", "single_entry", "double_entry"]), z.null()]),
|
|
37
37
|
z.null(),
|
|
38
38
|
]),
|
|
39
39
|
normiranec_insurance_basis: z.union([
|
|
40
|
-
z.enum(["full_time_self_employed", "other", null]),
|
|
40
|
+
z.union([z.enum(["full_time_self_employed", "other"]), z.null()]),
|
|
41
41
|
z.null(),
|
|
42
42
|
]),
|
|
43
43
|
default_withholding_tax_amount: z.union([z.number(), z.null()]),
|
|
@@ -51,7 +51,7 @@ const updateSloveniaTaxProfileSchemaDefinition = z
|
|
|
51
51
|
z
|
|
52
52
|
.object({
|
|
53
53
|
preferred_format: z.union([
|
|
54
|
-
z.enum(["vod_xml", "vasco_xml", "minimax_xml", null]),
|
|
54
|
+
z.union([z.enum(["vod_xml", "vasco_xml", "minimax_xml"]), z.null()]),
|
|
55
55
|
z.null(),
|
|
56
56
|
]),
|
|
57
57
|
konto_mappings: z.union([
|
|
@@ -112,7 +112,5 @@ const updateSloveniaTaxProfileSchemaDefinition = z
|
|
|
112
112
|
.partial()
|
|
113
113
|
.passthrough();
|
|
114
114
|
|
|
115
|
-
// Type for update sloveniataxprofile operation
|
|
116
115
|
export type UpdateSloveniaTaxProfileSchema = z.infer<typeof updateSloveniaTaxProfileSchemaDefinition>;
|
|
117
|
-
|
|
118
116
|
export const updateSloveniaTaxProfileSchema = updateSloveniaTaxProfileSchemaDefinition;
|
|
@@ -24,10 +24,11 @@ const EslogExportByDateRange = z
|
|
|
24
24
|
.passthrough();
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
//
|
|
28
|
-
const
|
|
27
|
+
// Schema for startEslogExport operation
|
|
28
|
+
const startEslogExportSchemaDefinition = z.union([
|
|
29
29
|
EslogExportByDocumentIds,
|
|
30
30
|
EslogExportByDateRange,
|
|
31
31
|
]);
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
export type StartEslogExportSchema = z.infer<typeof startEslogExportSchemaDefinition>;
|
|
34
|
+
export const startEslogExportSchema = startEslogExportSchemaDefinition;
|