@wisemen/wise-invoicing-web 0.0.2 → 0.0.3

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.
Files changed (592) hide show
  1. package/dist/AddOpenBoundaryIcon-9SqBHfoz.js +25 -0
  2. package/dist/AirlineIcon-Z6sH_StM.js +26 -0
  3. package/dist/AirplaneIcon-C-nSkD1w.js +19 -0
  4. package/dist/AirportIcon-m4itDKCV.js +16 -0
  5. package/dist/AlertTriangleIcon-DtYLCC-Y.js +23 -0
  6. package/dist/AllocationsIcon-hcg93Sll.js +16 -0
  7. package/dist/ArrowNarrowRightIcon-2-Sml68f.js +23 -0
  8. package/dist/AssetIcon-qOYs6Wna.js +16 -0
  9. package/dist/BarChartIcon-DDyzpV_3.js +22 -0
  10. package/dist/BellIcon-DF1OBFta.js +21 -0
  11. package/dist/BillingDocumentDetailViewDataProvider-CwonTh2r.js +5248 -0
  12. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  13. package/dist/BillingDocumentPdf-GWCCjE6F.js +726 -0
  14. package/dist/BuildingIcon-CC5PMNeP.js +22 -0
  15. package/dist/ChargerIcon-aM_endLr.js +16 -0
  16. package/dist/ChevronDownIcon-4QiK-Z6-.js +23 -0
  17. package/dist/ChevronUpIcon-qBsjZ5Dz.js +23 -0
  18. package/dist/ClockIcon-BNiPCaiB.js +23 -0
  19. package/dist/ClockSnoozeIcon-BxGfwJB6.js +23 -0
  20. package/dist/CopyIcon-DH5ly0dZ.js +19 -0
  21. package/dist/CreditNoteDetailViewDataProvider-CaucKK9o.js +751 -0
  22. package/dist/CreditNotePdfViewDataProvider-CDkvm-3m.js +21 -0
  23. package/dist/CustomFieldValueText-CC9spLWf.js +189 -0
  24. package/dist/DataProvider-CfHLB3rH.js +48 -0
  25. package/dist/DownloadCloudIcon-Cf8ftklG.js +22 -0
  26. package/dist/DunningCaseDetailViewDataProvider-1Ui9yqUb.js +403 -0
  27. package/dist/DunningCaseOverviewView-Bvwaj4_y.js +507 -0
  28. package/dist/DunningCaseReminderPdfViewDataProvider-CVnr9ge6.js +236 -0
  29. package/dist/EditIcon-Dr7OHBBR.js +21 -0
  30. package/dist/EraserIcon-B1VJSvdI.js +23 -0
  31. package/dist/FileIcon-ssmQI5Yl.js +23 -0
  32. package/dist/FilterLinesIcon-C7YdyPBk.js +23 -0
  33. package/dist/GlobeIcon-BfRM6Ike.js +22 -0
  34. package/dist/HelpIcon-BrJ49P5y.js +22 -0
  35. package/dist/HourGlassIcon-D9rfU1Is.js +22 -0
  36. package/dist/InfoCircleIcon-Ee0SyiMc.js +23 -0
  37. package/dist/InvoiceDetailViewDataProvider-DfRDFCEb.js +1578 -0
  38. package/dist/InvoiceOverviewViewDataProvider-CNK7H5r2.js +1613 -0
  39. package/dist/InvoicePdfView-CrWU8Xa-.js +17 -0
  40. package/dist/InvoicePdfViewDataProvider-nHZoeRxn.js +21 -0
  41. package/dist/InvoicePublicPdfViewDataProvider-CXWSg2pq.js +44 -0
  42. package/dist/IssuerSettingsViewDataProvider-DcA6rgOJ.js +188 -0
  43. package/dist/KeyboardIcon-T3o_g-1c.js +22 -0
  44. package/dist/LinkExternalIcon-BkHS4fCx.js +22 -0
  45. package/dist/LinkIcon-DuPwae98.js +22 -0
  46. package/dist/MarkerIcon-B1Jqenjb.js +28 -0
  47. package/dist/MobileBatteryIcon-GZ1SMRDV.js +16 -0
  48. package/dist/MonitorIcon-pbK22reU.js +22 -0
  49. package/dist/NotificationIcon-Ctv8vyWt.js +19 -0
  50. package/dist/ParkingIcon-DnUPW3pB.js +24 -0
  51. package/dist/PermissionGuard-DDw-lDGL.js +301 -0
  52. package/dist/PlanningIcon-CXvrskgj.js +16 -0
  53. package/dist/PreferenceIcon-BHS8uDyi.js +22 -0
  54. package/dist/ReceiptCheckIcon-QTestqCJ.js +23 -0
  55. package/dist/RefreshIcon-DShY-aoS.js +22 -0
  56. package/dist/ReminderSettingsViewDataProvider-C4qz2Rli.js +502 -0
  57. package/dist/RemoveOpenBoundaryIcon-CN8YWs6o.js +28 -0
  58. package/dist/RewindIcon-GWg2AQax.js +22 -0
  59. package/dist/SettingsIcon-CBLJ6B5u.js +25 -0
  60. package/dist/ShieldIcon-CVnrOcxl.js +19 -0
  61. package/dist/ShieldOffIcon-B9l0dDVb.js +23 -0
  62. package/dist/SignOutIcon-CmDkjJ5F.js +21 -0
  63. package/dist/SlashCircleIcon-jY5FBko5.js +22 -0
  64. package/dist/StandIcon-CoYnBLMn.js +23 -0
  65. package/dist/StarsIcon-D7ZlqOW7.js +22 -0
  66. package/dist/StopwatchIcon-BK0vh1lg.js +22 -0
  67. package/dist/TargetIcon-HMWj77-Q.js +22 -0
  68. package/dist/ThreeDotsIcon-BtFruOKz.js +32 -0
  69. package/dist/ToolIcon-DRfDb7fE.js +22 -0
  70. package/dist/TrashIcon-BwxBjHv5.js +19 -0
  71. package/dist/TurnaroundIcon-b1X61TwZ.js +27 -0
  72. package/dist/UploadCloudIcon-BF0equKg.js +22 -0
  73. package/dist/UserIcon-B0rCC6KE.js +22 -0
  74. package/dist/UsersIcon-cK5l_zKG.js +22 -0
  75. package/dist/VerifiedIcon-CELYlqcv.js +22 -0
  76. package/dist/WifiIcon--JPvMNEF.js +23 -0
  77. package/dist/WifiOffIcon-BS2KftcP.js +23 -0
  78. package/dist/ZapIcon-BHwcIQc0.js +23 -0
  79. package/dist/ZoomInIcon-Cu6r915V.js +23 -0
  80. package/dist/ZoomOutIcon-DwB4FRj-.js +23 -0
  81. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
  82. package/dist/address.transformer-B8C0pwT1.js +167 -0
  83. package/dist/addressForm.model-C853zEtX.js +20 -0
  84. package/dist/api.util-Dm_TQedZ.js +2948 -0
  85. package/dist/billingDocumentDetail.transformer-tmy9Tf_b.js +334 -0
  86. package/dist/client/client/client.gen.d.ts +2 -0
  87. package/dist/client/client/index.d.ts +10 -0
  88. package/dist/client/client/types.gen.d.ts +120 -0
  89. package/dist/client/client/utils.gen.d.ts +37 -0
  90. package/dist/client/client.gen.d.ts +12 -0
  91. package/dist/client/core/auth.gen.d.ts +25 -0
  92. package/dist/client/core/bodySerializer.gen.d.ts +25 -0
  93. package/dist/client/core/params.gen.d.ts +43 -0
  94. package/dist/client/core/pathSerializer.gen.d.ts +33 -0
  95. package/dist/client/core/queryKeySerializer.gen.d.ts +18 -0
  96. package/dist/client/core/serverSentEvents.gen.d.ts +71 -0
  97. package/dist/client/core/types.gen.d.ts +83 -0
  98. package/dist/client/core/utils.gen.d.ts +19 -0
  99. package/dist/client/index.d.ts +2 -0
  100. package/dist/client/sdk.gen.d.ts +123 -0
  101. package/dist/client/types.gen.d.ts +4894 -0
  102. package/dist/client/zod.gen.d.ts +67202 -0
  103. package/dist/composables/created.composable.d.ts +1 -0
  104. package/dist/composables/currency-format/useCurrencyFormat.composable.d.ts +12 -0
  105. package/dist/composables/document-title/documentTitle.composable.d.ts +8 -0
  106. package/dist/composables/form-auto-save/formAutoSave.composable.d.ts +14 -0
  107. package/dist/composables/invoicingConfig.composable.d.ts +26 -0
  108. package/dist/composables/invoicingQueryInvalidation.composable.d.ts +9 -0
  109. package/dist/composables/invoicingQueryInvalidation.composable.spec.d.ts +1 -0
  110. package/dist/composables/is-selector-visible/isSelectorVisible.composable.d.ts +1 -0
  111. package/dist/composables/paginated-cache/paginatedCache.composable.d.ts +8 -0
  112. package/dist/composables/permission-guard/permissionGuard.composable.d.ts +4 -0
  113. package/dist/composables/routeQueryState.composable.d.ts +12 -0
  114. package/dist/composables/search/search.composable.d.ts +12 -0
  115. package/dist/composables/sort.composable.d.ts +3 -0
  116. package/dist/composables/virtual-scrolling/virtualScrolling.composable.d.ts +31 -0
  117. package/dist/creditNoteDetail.query-BM2saU0n.js +122 -0
  118. package/dist/customerUuid.model-GUFYq3O2.js +5 -0
  119. package/dist/dashboard-BaWGNEek.js +5 -0
  120. package/dist/dist-DJ8yJcb9.js +2499 -0
  121. package/dist/dist-DP8KNFVD.js +927 -0
  122. package/dist/dist-YTXTCfo1.js +333 -0
  123. package/dist/documentTitle.composable-D7XA-8iJ.js +70 -0
  124. package/dist/download.util-PjaUQR6r.js +9 -0
  125. package/dist/formango.util-D5c2ql--.js +12 -0
  126. package/dist/index.d.ts +1603 -2873
  127. package/dist/index.js +750 -42
  128. package/dist/invoice.service-PsmVGGTR.js +629 -0
  129. package/dist/invoiceDeliveryStatus.util-CL8K78pD.js +331 -0
  130. package/dist/invoiceDetail.query-D2eFdE0j.js +11 -0
  131. package/dist/invoicingConfig.composable-AjojW4qE.js +1498 -0
  132. package/dist/issuerSettings.query-d5i7Wd7j.js +116 -0
  133. package/dist/libs/http.lib.d.ts +5 -0
  134. package/dist/libs/i18n.lib.d.ts +1439 -0
  135. package/dist/locales/en-US.json.d.ts +718 -0
  136. package/dist/locales/nl-BE.json.d.ts +718 -0
  137. package/dist/locales/ui-en-US.json.d.ts +66 -0
  138. package/dist/locales/ui-nl-BE.json.d.ts +66 -0
  139. package/dist/models/address/address.model.d.ts +15 -0
  140. package/dist/models/address/address.transformer.d.ts +11 -0
  141. package/dist/models/address/address.util.d.ts +11 -0
  142. package/dist/models/address/addressForm.model.d.ts +15 -0
  143. package/dist/models/address/addressForm.transformer.d.ts +8 -0
  144. package/dist/models/address/addressForm.transformer.spec.d.ts +1 -0
  145. package/dist/models/billing-document/activity-log/billingDocumentActivityLog.model.d.ts +21 -0
  146. package/dist/models/billing-document/activity-log/billingDocumentActivityLog.transformer.d.ts +5 -0
  147. package/dist/models/billing-document/billingDocumentDetail.model.d.ts +136 -0
  148. package/dist/models/billing-document/billingDocumentDetail.transformer.d.ts +5 -0
  149. package/dist/models/billing-document/billingDocumentDiscount.model.d.ts +9 -0
  150. package/dist/models/billing-document/billingDocumentDiscount.transformer.d.ts +6 -0
  151. package/dist/models/billing-document/billingDocumentDisplay.util.d.ts +7 -0
  152. package/dist/models/billing-document/billingDocumentLineItemGroupUpdateForm.model.d.ts +6 -0
  153. package/dist/models/billing-document/billingDocumentLineItemUpdateForm.model.d.ts +21 -0
  154. package/dist/models/billing-document/billingDocumentStatusEnum.model.d.ts +12 -0
  155. package/dist/models/billing-document/billingDocumentUpdateLines.model.d.ts +27 -0
  156. package/dist/models/billing-document/billingDocumentVatSummary.util.d.ts +4 -0
  157. package/dist/models/billing-document/billingDocumentVatSummary.util.spec.d.ts +1 -0
  158. package/dist/models/customer/customerDetail.model.d.ts +6 -0
  159. package/dist/models/customer/customerDetail.transformer.d.ts +5 -0
  160. package/dist/models/customer/customerUuid.model.d.ts +3 -0
  161. package/dist/models/file-reference/fileReference.dto.d.ts +13 -0
  162. package/dist/models/file-reference/fileReference.model.d.ts +13 -0
  163. package/dist/models/file-reference/fileReference.transformer.d.ts +9 -0
  164. package/dist/models/file-reference/fileReferenceForm.model.d.ts +10 -0
  165. package/dist/modules/credit-note/api/mutations/creditNoteDelete.mutation.d.ts +4 -0
  166. package/dist/modules/credit-note/api/mutations/creditNoteFinalize.mutation.d.ts +6 -0
  167. package/dist/modules/credit-note/api/mutations/creditNoteMarkAsDraft.mutation.d.ts +6 -0
  168. package/dist/modules/credit-note/api/mutations/creditNoteMarkAsReady.mutation.d.ts +6 -0
  169. package/dist/modules/credit-note/api/mutations/creditNoteSend.mutation.d.ts +4 -0
  170. package/dist/modules/credit-note/api/mutations/creditNoteUpdate.mutation.d.ts +9 -0
  171. package/dist/modules/credit-note/api/mutations/creditNoteUpdateLines.mutation.d.ts +4 -0
  172. package/dist/modules/credit-note/api/queries/creditNoteActivityLogIndex.query.d.ts +3 -0
  173. package/dist/modules/credit-note/api/queries/creditNoteDetail.query.d.ts +3 -0
  174. package/dist/modules/credit-note/api/query-keys/creditNote.queryKeys.d.ts +17 -0
  175. package/dist/modules/credit-note/api/services/creditNote.service.d.ts +18 -0
  176. package/dist/modules/credit-note/models/creditNoteUuid.model.d.ts +3 -0
  177. package/dist/modules/credit-note/models/detail/creditNoteDetail.model.d.ts +4 -0
  178. package/dist/modules/credit-note/models/detail/creditNoteDetail.transformer.d.ts +5 -0
  179. package/dist/modules/credit-note/models/update/creditNoteUpdate.transformer.d.ts +7 -0
  180. package/dist/modules/credit-note/models/update/creditNoteUpdateForm.model.d.ts +11 -0
  181. package/dist/modules/credit-note/models/update/creditNoteUpdateLines.model.d.ts +2 -0
  182. package/dist/modules/credit-note/models/update/creditNoteUpdateLines.transformer.d.ts +5 -0
  183. package/dist/modules/credit-note/routes/creditNote.routes.d.ts +26 -0
  184. package/dist/modules/credit-note/use-cases/detail/components/CreditNoteDetailHeaderSection.vue.d.ts +12 -0
  185. package/dist/modules/credit-note/use-cases/detail/components/CreditNoteDetailRemarksSection.vue.d.ts +7 -0
  186. package/dist/modules/credit-note/use-cases/detail/components/sidebar/CreditNoteDetailSidebar.vue.d.ts +9 -0
  187. package/dist/modules/credit-note/use-cases/detail/components/sidebar/CreditNoteDetailSidebarActivityTab.vue.d.ts +7 -0
  188. package/dist/modules/credit-note/use-cases/detail/components/sidebar/CreditNoteDetailSidebarInfoTab.vue.d.ts +9 -0
  189. package/dist/modules/credit-note/use-cases/detail/components/table/CreditNoteLineItemsTableSection.vue.d.ts +9 -0
  190. package/dist/modules/credit-note/use-cases/detail/composables/creditNoteDetailHeaderActions.composable.d.ts +8 -0
  191. package/dist/modules/credit-note/use-cases/detail/dialogs/CreditNoteDeleteDialog.vue.d.ts +13 -0
  192. package/dist/modules/credit-note/use-cases/detail/views/CreditNoteDetailView.vue.d.ts +9 -0
  193. package/dist/modules/credit-note/use-cases/detail/views/CreditNoteDetailViewDataProvider.vue.d.ts +7 -0
  194. package/dist/modules/credit-note/use-cases/pdf/views/CreditNotePdfViewDataProvider.vue.d.ts +7 -0
  195. package/dist/modules/custom-field/api/queries/customFieldDefinitionIndex.query.d.ts +3 -0
  196. package/dist/modules/custom-field/api/query-keys/customFieldDefinition.queryKeys.d.ts +10 -0
  197. package/dist/modules/custom-field/api/services/customFieldDefinition.service.d.ts +6 -0
  198. package/dist/modules/custom-field/components/CustomFieldFieldset.vue.d.ts +21 -0
  199. package/dist/modules/custom-field/components/CustomFieldList.vue.d.ts +10 -0
  200. package/dist/modules/custom-field/components/CustomFieldValueInput.vue.d.ts +23 -0
  201. package/dist/modules/custom-field/components/CustomFieldValueText.vue.d.ts +10 -0
  202. package/dist/modules/custom-field/components/customFieldFieldset.spec.d.ts +1 -0
  203. package/dist/modules/custom-field/components/customFieldValueInput.spec.d.ts +1 -0
  204. package/dist/modules/custom-field/composables/customFieldValueModel.composable.d.ts +28 -0
  205. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.model.d.ts +24 -0
  206. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.transformer.d.ts +5 -0
  207. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.util.d.ts +8 -0
  208. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.util.spec.d.ts +1 -0
  209. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinitionIndexQueryParams.model.d.ts +4 -0
  210. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinitionUuid.model.d.ts +3 -0
  211. package/dist/modules/custom-field/models/custom-field-value/customFieldValue.model.d.ts +12 -0
  212. package/dist/modules/custom-field/models/custom-field-value/customFieldValue.transformer.d.ts +8 -0
  213. package/dist/modules/custom-field/models/custom-field-value/customFieldValue.transformer.spec.d.ts +1 -0
  214. package/dist/modules/custom-field/models/custom-field-value/customFieldValue.util.d.ts +10 -0
  215. package/dist/modules/custom-field/models/custom-field-value/customFieldValue.util.spec.d.ts +1 -0
  216. package/dist/modules/custom-field/test/builders/customFieldDefinition.builder.d.ts +13 -0
  217. package/dist/modules/dunning-case/api/mutations/dunningCaseBulkSend.mutation.d.ts +5 -0
  218. package/dist/modules/dunning-case/api/mutations/dunningCaseSend.mutation.d.ts +4 -0
  219. package/dist/modules/dunning-case/api/mutations/reminderConfigUpdate.mutation.d.ts +24 -0
  220. package/dist/modules/dunning-case/api/queries/dunningCaseCustomerByExternalId.query.d.ts +2 -0
  221. package/dist/modules/dunning-case/api/queries/dunningCaseCustomerIndex.query.d.ts +6 -0
  222. package/dist/modules/dunning-case/api/queries/dunningCaseDetail.query.d.ts +3 -0
  223. package/dist/modules/dunning-case/api/queries/dunningCaseIndex.query.d.ts +9 -0
  224. package/dist/modules/dunning-case/api/queries/dunningCaseIndex.query.spec.d.ts +1 -0
  225. package/dist/modules/dunning-case/api/queries/reminderConfig.query.d.ts +1 -0
  226. package/dist/modules/dunning-case/api/query-keys/dunningCase.queryKeys.d.ts +55 -0
  227. package/dist/modules/dunning-case/api/services/dunningCase.service.d.ts +19 -0
  228. package/dist/modules/dunning-case/api/services/dunningCaseCustomer.service.d.ts +11 -0
  229. package/dist/modules/dunning-case/components/DunningCaseReminderLevelIndicator.vue.d.ts +9 -0
  230. package/dist/modules/dunning-case/components/DunningCaseReminderStatusIndicator.vue.d.ts +9 -0
  231. package/dist/modules/dunning-case/components/dunningCaseReminderLevelIndicator.spec.d.ts +1 -0
  232. package/dist/modules/dunning-case/components/dunningCaseReminderStatusIndicator.spec.d.ts +1 -0
  233. package/dist/modules/dunning-case/index.d.ts +4 -0
  234. package/dist/modules/dunning-case/models/dunningCase.model.d.ts +107 -0
  235. package/dist/modules/dunning-case/models/dunningCase.model.spec.d.ts +1 -0
  236. package/dist/modules/dunning-case/models/dunningCase.transformer.d.ts +13 -0
  237. package/dist/modules/dunning-case/models/dunningCase.transformer.spec.d.ts +1 -0
  238. package/dist/modules/dunning-case/models/dunningCaseCustomer.model.d.ts +9 -0
  239. package/dist/modules/dunning-case/models/reminderConfigForm.model.d.ts +31 -0
  240. package/dist/modules/dunning-case/models/reminderConfigForm.model.spec.d.ts +1 -0
  241. package/dist/modules/dunning-case/models/reminderTimeline.util.d.ts +9 -0
  242. package/dist/modules/dunning-case/models/reminderTimeline.util.spec.d.ts +1 -0
  243. package/dist/modules/dunning-case/routes/dunningCase.routes.d.ts +37 -0
  244. package/dist/modules/dunning-case/use-cases/customer/components/CustomerDunningCasesSection.vue.d.ts +7 -0
  245. package/dist/modules/dunning-case/use-cases/detail/views/DunningCaseDetailView.vue.d.ts +7 -0
  246. package/dist/modules/dunning-case/use-cases/detail/views/DunningCaseDetailViewDataProvider.vue.d.ts +7 -0
  247. package/dist/modules/dunning-case/use-cases/detail/views/dunningCaseDetailView.spec.d.ts +1 -0
  248. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewFilters.composable.d.ts +5 -0
  249. package/dist/modules/dunning-case/use-cases/overview/views/DunningCaseOverviewView.vue.d.ts +3 -0
  250. package/dist/modules/dunning-case/use-cases/overview/views/dunningCaseOverviewView.spec.d.ts +1 -0
  251. package/dist/modules/dunning-case/use-cases/pdf/api/dunningCaseReminderPdf.query.d.ts +2 -0
  252. package/dist/modules/dunning-case/use-cases/pdf/api/dunningCaseReminderPdf.service.d.ts +5 -0
  253. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfFooter.vue.d.ts +7 -0
  254. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfTable.vue.d.ts +20 -0
  255. package/dist/modules/dunning-case/use-cases/pdf/utils/dunningCaseReminderPdf.util.d.ts +8 -0
  256. package/dist/modules/dunning-case/use-cases/pdf/utils/dunningCaseReminderPdf.util.spec.d.ts +1 -0
  257. package/dist/modules/dunning-case/use-cases/pdf/views/DunningCaseReminderPdfView.vue.d.ts +7 -0
  258. package/dist/modules/dunning-case/use-cases/pdf/views/DunningCaseReminderPdfViewDataProvider.vue.d.ts +3 -0
  259. package/dist/modules/dunning-case/use-cases/send/dialogs/DunningCaseBulkSendDialog.vue.d.ts +10 -0
  260. package/dist/modules/dunning-case/use-cases/send/dialogs/DunningCaseSendDialog.vue.d.ts +12 -0
  261. package/dist/modules/dunning-case/use-cases/send/utils/dunningCaseSend.util.d.ts +3 -0
  262. package/dist/modules/dunning-case/use-cases/send/utils/dunningCaseSend.util.spec.d.ts +1 -0
  263. package/dist/modules/dunning-case/use-cases/settings/views/ReminderSettingsView.vue.d.ts +7 -0
  264. package/dist/modules/dunning-case/use-cases/settings/views/ReminderSettingsViewDataProvider.vue.d.ts +3 -0
  265. package/dist/modules/invoice/actions/invoice.actions.d.ts +5 -0
  266. package/dist/modules/invoice/actions/invoiceNavigateToDetail.action.d.ts +1 -0
  267. package/dist/modules/invoice/api/invoiceIndexCache.util.d.ts +11 -0
  268. package/dist/modules/invoice/api/invoiceIndexCache.util.spec.d.ts +1 -0
  269. package/dist/modules/invoice/api/mutations/invoiceApplyDiscount.mutation.d.ts +9 -0
  270. package/dist/modules/invoice/api/mutations/invoiceBulkFinalize.mutation.d.ts +5 -0
  271. package/dist/modules/invoice/api/mutations/invoiceBulkMarkAsReady.mutation.d.ts +5 -0
  272. package/dist/modules/invoice/api/mutations/invoiceBulkSend.mutation.d.ts +5 -0
  273. package/dist/modules/invoice/api/mutations/invoiceCreate.mutation.d.ts +7 -0
  274. package/dist/modules/invoice/api/mutations/invoiceCreateCreditNote.mutation.d.ts +4 -0
  275. package/dist/modules/invoice/api/mutations/invoiceDelete.mutation.d.ts +4 -0
  276. package/dist/modules/invoice/api/mutations/invoiceDuplicate.mutation.d.ts +4 -0
  277. package/dist/modules/invoice/api/mutations/invoiceFinalize.mutation.d.ts +4 -0
  278. package/dist/modules/invoice/api/mutations/invoiceMarkAsDraft.mutation.d.ts +4 -0
  279. package/dist/modules/invoice/api/mutations/invoiceMarkAsPaid.mutation.d.ts +4 -0
  280. package/dist/modules/invoice/api/mutations/invoiceMarkAsProtested.mutation.d.ts +4 -0
  281. package/dist/modules/invoice/api/mutations/invoiceMarkAsReady.mutation.d.ts +4 -0
  282. package/dist/modules/invoice/api/mutations/invoicePaymentCreate.mutation.d.ts +11 -0
  283. package/dist/modules/invoice/api/mutations/invoicePaymentDelete.mutation.d.ts +6 -0
  284. package/dist/modules/invoice/api/mutations/invoiceSend.mutation.d.ts +4 -0
  285. package/dist/modules/invoice/api/mutations/invoiceUpdate.mutation.d.ts +16 -0
  286. package/dist/modules/invoice/api/mutations/invoiceUpdateAttachments.mutation.d.ts +13 -0
  287. package/dist/modules/invoice/api/mutations/invoiceUpdateLines.mutation.d.ts +4 -0
  288. package/dist/modules/invoice/api/mutations/invoiceWithdrawProtest.mutation.d.ts +4 -0
  289. package/dist/modules/invoice/api/queries/invoiceActivityLogIndex.query.d.ts +3 -0
  290. package/dist/modules/invoice/api/queries/invoiceCustomerDetail.query.d.ts +6 -0
  291. package/dist/modules/invoice/api/queries/invoiceCustomerSearch.query.d.ts +7 -0
  292. package/dist/modules/invoice/api/queries/invoiceDetail.query.d.ts +3 -0
  293. package/dist/modules/invoice/api/queries/invoiceIndex.query.d.ts +3 -0
  294. package/dist/modules/invoice/api/queries/invoicePaymentIndex.query.d.ts +3 -0
  295. package/dist/modules/invoice/api/queries/invoicePublicDetail.query.d.ts +2 -0
  296. package/dist/modules/invoice/api/query-keys/invoice.queryKeys.d.ts +55 -0
  297. package/dist/modules/invoice/api/services/fileUpload.service.d.ts +9 -0
  298. package/dist/modules/invoice/api/services/fileUpload.service.spec.d.ts +1 -0
  299. package/dist/modules/invoice/api/services/invoice.service.d.ts +48 -0
  300. package/dist/modules/invoice/api/services/invoiceCustomer.service.d.ts +9 -0
  301. package/dist/modules/invoice/components/InvoiceDeliveryStatusBadge.vue.d.ts +10 -0
  302. package/dist/modules/invoice/components/InvoiceDisputedBadge.vue.d.ts +8 -0
  303. package/dist/modules/invoice/components/InvoiceOverdueBadge.vue.d.ts +8 -0
  304. package/dist/modules/invoice/components/InvoiceSettlementStatusBadge.vue.d.ts +18 -0
  305. package/dist/modules/invoice/components/InvoiceStatusBadge.vue.d.ts +10 -0
  306. package/dist/modules/invoice/components/form/InvoiceFormCustomerField.vue.d.ts +16 -0
  307. package/dist/modules/invoice/models/invoice/create/invoiceCreate.transformer.d.ts +5 -0
  308. package/dist/modules/invoice/models/invoice/create/invoiceCreateCustomer.model.d.ts +9 -0
  309. package/dist/modules/invoice/models/invoice/create/invoiceCreateCustomer.transformer.d.ts +5 -0
  310. package/dist/modules/invoice/models/invoice/create/invoiceCreateForm.model.d.ts +9 -0
  311. package/dist/modules/invoice/models/invoice/create/invoiceCustomerSearchQueryParams.model.d.ts +3 -0
  312. package/dist/modules/invoice/models/invoice/create/invoiceCustomerSearchQueryParams.transformer.d.ts +6 -0
  313. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +4 -0
  314. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.transformer.d.ts +5 -0
  315. package/dist/modules/invoice/models/invoice/index/invoiceDateRange.model.d.ts +5 -0
  316. package/dist/modules/invoice/models/invoice/index/invoiceIndex.model.d.ts +27 -0
  317. package/dist/modules/invoice/models/invoice/index/invoiceIndex.transformer.d.ts +5 -0
  318. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +16 -0
  319. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.transformer.d.ts +7 -0
  320. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.transformer.spec.d.ts +1 -0
  321. package/dist/modules/invoice/models/invoice/invoiceDeliveryStatus.model.d.ts +6 -0
  322. package/dist/modules/invoice/models/invoice/invoiceDeliveryStatus.util.d.ts +6 -0
  323. package/dist/modules/invoice/models/invoice/invoiceDeliveryStatus.util.spec.d.ts +1 -0
  324. package/dist/modules/invoice/models/invoice/invoiceSettlementStatus.model.d.ts +20 -0
  325. package/dist/modules/invoice/models/invoice/invoiceSettlementStatus.util.d.ts +11 -0
  326. package/dist/modules/invoice/models/invoice/invoiceSettlementStatus.util.spec.d.ts +1 -0
  327. package/dist/modules/invoice/models/invoice/invoiceStatus.model.d.ts +11 -0
  328. package/dist/modules/invoice/models/invoice/invoiceStatus.util.d.ts +7 -0
  329. package/dist/modules/invoice/models/invoice/payment/invoicePayment.model.d.ts +13 -0
  330. package/dist/modules/invoice/models/invoice/payment/invoicePayment.transformer.d.ts +5 -0
  331. package/dist/modules/invoice/models/invoice/payment/invoicePaymentCreate.transformer.d.ts +5 -0
  332. package/dist/modules/invoice/models/invoice/payment/invoicePaymentCreateForm.model.d.ts +11 -0
  333. package/dist/modules/invoice/models/invoice/payment/paymentUuid.model.d.ts +3 -0
  334. package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.model.d.ts +56 -0
  335. package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.transformer.d.ts +5 -0
  336. package/dist/modules/invoice/models/invoice/update/invoiceApplyDiscount.transformer.d.ts +5 -0
  337. package/dist/modules/invoice/models/invoice/update/invoiceApplyDiscountForm.model.d.ts +9 -0
  338. package/dist/modules/invoice/models/invoice/update/invoiceAttachmentsUpdate.transformer.d.ts +7 -0
  339. package/dist/modules/invoice/models/invoice/update/invoiceAttachmentsUpdateForm.model.d.ts +12 -0
  340. package/dist/modules/invoice/models/invoice/update/invoiceLineItemUpdateForm.model.d.ts +11 -0
  341. package/dist/modules/invoice/models/invoice/update/invoiceSubjectUpdateForm.model.d.ts +6 -0
  342. package/dist/modules/invoice/models/invoice/update/invoiceUpdate.transformer.d.ts +7 -0
  343. package/dist/modules/invoice/models/invoice/update/invoiceUpdateForm.model.d.ts +16 -0
  344. package/dist/modules/invoice/models/invoice/update/invoiceUpdateLines.model.d.ts +2 -0
  345. package/dist/modules/invoice/models/invoice/update/invoiceUpdateLines.transformer.d.ts +5 -0
  346. package/dist/modules/invoice/models/invoiceUuid.model.d.ts +3 -0
  347. package/dist/modules/invoice/routes/invoice.routes.d.ts +38 -0
  348. package/dist/modules/invoice/use-cases/create/dialogs/InvoiceCreateDialog.vue.d.ts +7 -0
  349. package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailHeaderSection.vue.d.ts +12 -0
  350. package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailLinkedCreditNotesSection.vue.d.ts +7 -0
  351. package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailRemarksSection.vue.d.ts +7 -0
  352. package/dist/modules/invoice/use-cases/detail/components/sidebar/InvoiceDetailSidebar.vue.d.ts +9 -0
  353. package/dist/modules/invoice/use-cases/detail/components/sidebar/InvoiceDetailSidebarActivityTab.vue.d.ts +7 -0
  354. package/dist/modules/invoice/use-cases/detail/components/sidebar/InvoiceDetailSidebarInfoTab.vue.d.ts +9 -0
  355. package/dist/modules/invoice/use-cases/detail/components/sidebar/invoiceDetailSidebarInfoTab.spec.d.ts +1 -0
  356. package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentActionsCell.vue.d.ts +8 -0
  357. package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentManualCell.vue.d.ts +7 -0
  358. package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentsSection.vue.d.ts +7 -0
  359. package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentsTableTextCell.vue.d.ts +6 -0
  360. package/dist/modules/invoice/use-cases/detail/components/table/InvoiceLineItemsTableSection.vue.d.ts +9 -0
  361. package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailHeaderActions.composable.d.ts +9 -0
  362. package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.d.ts +6 -0
  363. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApplyDiscountDialog.vue.d.ts +11 -0
  364. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceDeleteDialog.vue.d.ts +13 -0
  365. package/dist/modules/invoice/use-cases/detail/dialogs/InvoicePaymentCreateDialog.vue.d.ts +11 -0
  366. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceUpdateDialog.vue.d.ts +13 -0
  367. package/dist/modules/invoice/use-cases/detail/views/InvoiceDetailView.vue.d.ts +9 -0
  368. package/dist/modules/invoice/use-cases/detail/views/InvoiceDetailViewDataProvider.vue.d.ts +7 -0
  369. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewBulkActionBar.vue.d.ts +22 -0
  370. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableAmountCell.vue.d.ts +7 -0
  371. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableCustomFieldCell.vue.d.ts +9 -0
  372. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableDueDateCell.vue.d.ts +8 -0
  373. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableIssuedDateCell.vue.d.ts +7 -0
  374. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableLifecycleCell.vue.d.ts +8 -0
  375. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableNameCell.vue.d.ts +9 -0
  376. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableSelectionCell.vue.d.ts +10 -0
  377. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableSentCell.vue.d.ts +7 -0
  378. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableSequenceCell.vue.d.ts +6 -0
  379. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableStatusCell.vue.d.ts +7 -0
  380. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkSendEligibility.composable.d.ts +15 -0
  381. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkSendEligibility.composable.spec.d.ts +1 -0
  382. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewCustomFieldFilter.util.d.ts +11 -0
  383. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewCustomFieldFilter.util.spec.d.ts +1 -0
  384. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewDataTableFilters.composable.d.ts +16 -0
  385. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewFilters.composable.d.ts +12 -0
  386. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.d.ts +18 -0
  387. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewTableColumns.composable.d.ts +14 -0
  388. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +25 -0
  389. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkFinalizeDialog.vue.d.ts +12 -0
  390. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkMarkAsReadyDialog.vue.d.ts +12 -0
  391. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendDialog.vue.d.ts +12 -0
  392. package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.d.ts +29 -0
  393. package/dist/modules/invoice/use-cases/overview/views/InvoiceOverviewView.vue.d.ts +25 -0
  394. package/dist/modules/invoice/use-cases/overview/views/InvoiceOverviewViewDataProvider.vue.d.ts +16 -0
  395. package/dist/modules/invoice/use-cases/pdf/components/BillingDocumentPdf.vue.d.ts +7 -0
  396. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfFooterSection.vue.d.ts +7 -0
  397. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfHeaderSection.vue.d.ts +8 -0
  398. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfLinesTable.vue.d.ts +8 -0
  399. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfSummarySection.vue.d.ts +8 -0
  400. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfTableCell.vue.d.ts +16 -0
  401. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfTableHeaderCell.vue.d.ts +6 -0
  402. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfWatermark.vue.d.ts +3 -0
  403. package/dist/modules/invoice/use-cases/pdf/components/invoicePdf.types.d.ts +30 -0
  404. package/dist/modules/invoice/use-cases/pdf/components/invoicePdfLinesTable.spec.d.ts +1 -0
  405. package/dist/modules/invoice/use-cases/pdf/utils/invoicePdf.util.d.ts +42 -0
  406. package/dist/modules/invoice/use-cases/pdf/utils/invoicePdf.util.spec.d.ts +1 -0
  407. package/dist/modules/invoice/use-cases/pdf/views/InvoicePdfView.vue.d.ts +7 -0
  408. package/dist/modules/invoice/use-cases/pdf/views/InvoicePdfViewDataProvider.vue.d.ts +7 -0
  409. package/dist/modules/invoice/use-cases/pdf/views/InvoicePublicPdfViewDataProvider.vue.d.ts +3 -0
  410. package/dist/modules/settings/api/mutations/issuerSettingsUpdate.mutation.d.ts +25 -0
  411. package/dist/modules/settings/api/queries/issuerSettings.query.d.ts +1 -0
  412. package/dist/modules/settings/api/query-keys/issuerSettings.queryKeys.d.ts +6 -0
  413. package/dist/modules/settings/api/services/issuerSettings.service.d.ts +7 -0
  414. package/dist/modules/settings/models/issuer-settings/issuerSettings.model.d.ts +15 -0
  415. package/dist/modules/settings/models/issuer-settings/issuerSettings.transformer.d.ts +8 -0
  416. package/dist/modules/settings/models/issuer-settings/issuerSettings.transformer.spec.d.ts +1 -0
  417. package/dist/modules/settings/models/issuer-settings/issuerSettingsForm.model.d.ts +28 -0
  418. package/dist/modules/settings/routes/settings.routes.d.ts +23 -0
  419. package/dist/modules/settings/use-cases/overview/components/IssuerSettingsForm.vue.d.ts +7 -0
  420. package/dist/modules/settings/use-cases/overview/views/IssuerSettingsView.vue.d.ts +7 -0
  421. package/dist/modules/settings/use-cases/overview/views/IssuerSettingsViewDataProvider.vue.d.ts +3 -0
  422. package/dist/plainDate.transformer-BxvJpJOv.js +39 -0
  423. package/dist/reminderConfig.query-C7I3M2pu.js +329 -0
  424. package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
  425. package/dist/routes/invoicingPublicRoutes.composable.d.ts +9 -0
  426. package/dist/routes/invoicingRoutes.composable.d.ts +73 -0
  427. package/dist/routes/invoicingRoutes.composable.spec.d.ts +1 -0
  428. package/dist/routes/invoicingStandaloneRoutes.composable.d.ts +17 -0
  429. package/dist/src-BFgnUugN.js +123 -0
  430. package/dist/style.css +2 -1
  431. package/dist/types/apiError.type.d.ts +7 -0
  432. package/dist/types/query.type.d.ts +20 -0
  433. package/dist/types/queryKey.type.d.ts +8 -0
  434. package/dist/ui/DateRangeFilterButton.vue.d.ts +15 -0
  435. package/dist/ui/DisplayState.vue.d.ts +16 -0
  436. package/dist/ui/billing-document/BillingDocumentDetailHeaderSection.vue.d.ts +28 -0
  437. package/dist/ui/billing-document/BillingDocumentDetailLayout.vue.d.ts +22 -0
  438. package/dist/ui/billing-document/BillingDocumentDetailPage.vue.d.ts +24 -0
  439. package/dist/ui/billing-document/BillingDocumentDetailRemarksSection.vue.d.ts +10 -0
  440. package/dist/ui/billing-document/BillingDocumentDetailViewDataProvider.vue.d.ts +31 -0
  441. package/dist/ui/billing-document/BillingDocumentFinalizeDialog.vue.d.ts +11 -0
  442. package/dist/ui/billing-document/BillingDocumentHeaderActions.vue.d.ts +13 -0
  443. package/dist/ui/billing-document/BillingDocumentPdfViewer.vue.d.ts +7 -0
  444. package/dist/ui/billing-document/billingDocumentHeaderActions.types.d.ts +24 -0
  445. package/dist/ui/billing-document/billingDocumentPdfPreviewRoute.util.d.ts +14 -0
  446. package/dist/ui/billing-document/billingDocumentPdfPreviewRoute.util.spec.d.ts +1 -0
  447. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebar.vue.d.ts +20 -0
  448. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarActivityContent.vue.d.ts +20 -0
  449. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarActivityTab.vue.d.ts +3 -0
  450. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarAttachmentsTab.vue.d.ts +7 -0
  451. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarHeader.vue.d.ts +14 -0
  452. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarInfoItem.vue.d.ts +21 -0
  453. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarLayout.vue.d.ts +16 -0
  454. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarOriginalInvoiceSection.vue.d.ts +7 -0
  455. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarPartySection.vue.d.ts +12 -0
  456. package/dist/ui/billing-document/table/BillingDocumentLineItemDeleteDialog.vue.d.ts +16 -0
  457. package/dist/ui/billing-document/table/BillingDocumentLineItemsBulkActionBar.vue.d.ts +3 -0
  458. package/dist/ui/billing-document/table/BillingDocumentLineItemsDragHandle.vue.d.ts +3 -0
  459. package/dist/ui/billing-document/table/BillingDocumentLineItemsInsertIndicator.vue.d.ts +16 -0
  460. package/dist/ui/billing-document/table/BillingDocumentLineItemsTableGrid.vue.d.ts +3 -0
  461. package/dist/ui/billing-document/table/BillingDocumentLineItemsTableGroupRow.vue.d.ts +14 -0
  462. package/dist/ui/billing-document/table/BillingDocumentLineItemsTableHeader.vue.d.ts +12 -0
  463. package/dist/ui/billing-document/table/BillingDocumentLineItemsTableRow.vue.d.ts +10 -0
  464. package/dist/ui/billing-document/table/BillingDocumentLineItemsTableSection.vue.d.ts +13 -0
  465. package/dist/ui/billing-document/table/BillingDocumentLineItemsTotals.vue.d.ts +7 -0
  466. package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +2773 -0
  467. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsAutoSave.composable.d.ts +22 -0
  468. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsAutoSave.composable.spec.d.ts +1 -0
  469. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +484 -0
  470. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsKeyboardNav.composable.d.ts +41 -0
  471. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsKeyboardNav.composable.spec.d.ts +1 -0
  472. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsRowMutations.composable.d.ts +41 -0
  473. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsSelection.composable.d.ts +16 -0
  474. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsTableDrag.composable.d.ts +13 -0
  475. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableCustomField.vue.d.ts +21 -0
  476. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableField.vue.d.ts +35 -0
  477. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableNumberField.vue.d.ts +26 -0
  478. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableSelectField.vue.d.ts +35 -0
  479. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableTextField.vue.d.ts +23 -0
  480. package/dist/ui/billing-document/table/field/billingDocumentLineItemsTableNumberField.spec.d.ts +1 -0
  481. package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.d.ts +90 -0
  482. package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.spec.d.ts +1 -0
  483. package/dist/ui/billing-document/useBillingDocumentFinalizePreference.composable.d.ts +4 -0
  484. package/dist/ui/customer-invoice-list/CustomerInvoiceList.vue.d.ts +16 -0
  485. package/dist/ui/customer-invoice-list/CustomerInvoiceTable.vue.d.ts +6 -0
  486. package/dist/ui/customer-invoice-list/components/CustomerInvoiceTableBadgeCell.vue.d.ts +8 -0
  487. package/dist/ui/customer-invoice-list/components/CustomerInvoiceTableInvoiceNumberCell.vue.d.ts +6 -0
  488. package/dist/ui/customer-invoice-list/components/CustomerInvoiceTableTextCell.vue.d.ts +6 -0
  489. package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.d.ts +3 -0
  490. package/dist/ui/customer-invoice-list/composables/customerInvoiceTableFilters.composable.d.ts +9 -0
  491. package/dist/ui/customer-invoice-list/utils/customerInvoiceTable.util.d.ts +8 -0
  492. package/dist/ui/customer-invoice-list/utils/customerInvoiceTable.util.spec.d.ts +1 -0
  493. package/dist/ui/dashboard/index.d.ts +7 -0
  494. package/dist/ui/data-provider/DataProvider.vue.d.ts +27 -0
  495. package/dist/ui/file-upload/InvoicingFileUploadProvider.vue.d.ts +13 -0
  496. package/dist/ui/file-upload/invoicingFileUpload.adapter.d.ts +2 -0
  497. package/dist/ui/permission-guard/PermissionGuard.vue.d.ts +22 -0
  498. package/dist/useCurrencyFormat.composable-MtZaqKnO.js +38 -0
  499. package/dist/utils/api.util.d.ts +5 -0
  500. package/dist/utils/context.util.d.ts +1 -0
  501. package/dist/utils/createComponent.d.ts +4 -0
  502. package/dist/utils/download.util.d.ts +3 -0
  503. package/dist/utils/formango.util.d.ts +8 -0
  504. package/dist/utils/image.util.d.ts +3 -0
  505. package/dist/utils/instant.transformer.d.ts +7 -0
  506. package/dist/utils/map.util.d.ts +2 -0
  507. package/dist/utils/monetary/currency.model.d.ts +180 -0
  508. package/dist/utils/monetary/monetary.model.d.ts +6 -0
  509. package/dist/utils/monetary/monetary.util.d.ts +8 -0
  510. package/dist/utils/monetary/monetaryDto.model.d.ts +9 -0
  511. package/dist/utils/number.util.d.ts +4 -0
  512. package/dist/utils/percentage.util.d.ts +13 -0
  513. package/dist/utils/plainDate.transformer.d.ts +7 -0
  514. package/dist/utils/search.util.d.ts +3 -0
  515. package/package.json +26 -25
  516. package/dist/AddOpenBoundaryIcon-LcnpqCb7.js +0 -28
  517. package/dist/AirlineIcon-29r8leGB.js +0 -31
  518. package/dist/AirplaneIcon-B9jZP9r0.js +0 -21
  519. package/dist/AirportIcon-C4PxDtDr.js +0 -18
  520. package/dist/AlertTriangleIcon-BD58hKRP.js +0 -24
  521. package/dist/AllocationsIcon-BQan6NWO.js +0 -18
  522. package/dist/ArrowNarrowRightIcon-BA1c_QRh.js +0 -24
  523. package/dist/AssetIcon-DnK5wAyN.js +0 -18
  524. package/dist/BarChartIcon-CKrBCh6x.js +0 -24
  525. package/dist/BellIcon-BT2cGatU.js +0 -23
  526. package/dist/BillingDocumentDetailViewDataProvider.vue_vue_type_script_setup_true_lang-C5j9jPsk.js +0 -5374
  527. package/dist/BuildingIcon-CUOTWDHc.js +0 -24
  528. package/dist/ChargerIcon-BhrjeyKv.js +0 -18
  529. package/dist/ChevronDownIcon-DljNUnFk.js +0 -24
  530. package/dist/ChevronUpIcon-CoxFAIp_.js +0 -24
  531. package/dist/ClockIcon-CTnAGb9i.js +0 -24
  532. package/dist/ClockSnoozeIcon-BRoTw_Vn.js +0 -24
  533. package/dist/CopyIcon-JiNI8Dfg.js +0 -21
  534. package/dist/CreditNoteDetailViewDataProvider-Cy1j_m3I.js +0 -871
  535. package/dist/CreditNotePdfViewDataProvider-B7-HFIKD.js +0 -36
  536. package/dist/DownloadCloudIcon-DKHwnpvk.js +0 -24
  537. package/dist/EditIcon-DtGrCf8G.js +0 -23
  538. package/dist/EraserIcon-Cb0Ep_Yq.js +0 -24
  539. package/dist/FileIcon-C4wGvJpt.js +0 -26
  540. package/dist/FilterLinesIcon-B7wPXDy1.js +0 -24
  541. package/dist/GlobeIcon-B-Idmck1.js +0 -24
  542. package/dist/HelpIcon-CdKWaEaB.js +0 -26
  543. package/dist/HourGlassIcon-CQLPiXVW.js +0 -24
  544. package/dist/InfoCircleIcon-5gjQoNog.js +0 -24
  545. package/dist/InvoiceDetailViewDataProvider-4lGG7Wtq.js +0 -1918
  546. package/dist/InvoiceOverviewView-Boqvwabl.js +0 -4
  547. package/dist/InvoicePdfViewDataProvider-CJ3fL71W.js +0 -36
  548. package/dist/InvoicePublicPdfViewDataProvider-CzgGk_V5.js +0 -4
  549. package/dist/IssuerSettingsViewDataProvider-TM-bmC55.js +0 -249
  550. package/dist/KeyboardIcon-DlAp0VUG.js +0 -24
  551. package/dist/LinkExternalIcon-BPO_c7Ke.js +0 -24
  552. package/dist/LinkIcon-9M0uzW4a.js +0 -24
  553. package/dist/MarkerIcon-pId64QTW.js +0 -31
  554. package/dist/MobileBatteryIcon-Dq6Vh0d5.js +0 -18
  555. package/dist/MonitorIcon-PsvDF5LA.js +0 -24
  556. package/dist/NotificationIcon-C-mhyH5v.js +0 -21
  557. package/dist/ParkingIcon-BD0RoGv5.js +0 -29
  558. package/dist/PlanningIcon-BBIuwW2I.js +0 -18
  559. package/dist/PreferenceIcon-zR5mjygu.js +0 -24
  560. package/dist/ReceiptCheckIcon-CHEEnJEK.js +0 -24
  561. package/dist/RefreshIcon-CfjOS7Vw.js +0 -24
  562. package/dist/RemoveOpenBoundaryIcon-CEbBT9CX.js +0 -31
  563. package/dist/RewindIcon-9PFea9gA.js +0 -24
  564. package/dist/SettingsIcon-CSIbrANE.js +0 -28
  565. package/dist/ShieldIcon-CU4mxKxP.js +0 -21
  566. package/dist/ShieldOffIcon-D6_I1MKn.js +0 -24
  567. package/dist/SignOutIcon-ClrPsj39.js +0 -23
  568. package/dist/SlashCircleIcon-DBy7XjBm.js +0 -24
  569. package/dist/StandIcon-vV8J4-3H.js +0 -24
  570. package/dist/StarsIcon-RO6wNbsC.js +0 -26
  571. package/dist/StopwatchIcon-DubYBmeN.js +0 -24
  572. package/dist/TargetIcon-BwVw7rVC.js +0 -24
  573. package/dist/ThreeDotsIcon-BvRfi-Lm.js +0 -32
  574. package/dist/ToolIcon-Dw-vgiL1.js +0 -24
  575. package/dist/TrashIcon-Dh6ASxXd.js +0 -21
  576. package/dist/TurnaroundIcon-Hn5nPhvb.js +0 -30
  577. package/dist/UploadCloudIcon-BV7b8ygQ.js +0 -24
  578. package/dist/UserIcon-BRrPmqkm.js +0 -24
  579. package/dist/UsersIcon-fORcf4YV.js +0 -24
  580. package/dist/VerifiedIcon-BtqxtP6h.js +0 -26
  581. package/dist/WifiIcon-Bd9TvVVJ.js +0 -24
  582. package/dist/WifiOffIcon-CpATjY4j.js +0 -24
  583. package/dist/ZapIcon-BG6cVpfC.js +0 -24
  584. package/dist/ZoomInIcon-CQ_R4Ydf.js +0 -24
  585. package/dist/ZoomOutIcon-DlcCdCda.js +0 -24
  586. package/dist/creditNoteDetail.query-Dj6oKRTO.js +0 -159
  587. package/dist/index-CYV9qUlg.js +0 -23375
  588. package/dist/index-DCE3vzbe.js +0 -7
  589. package/dist/invoiceDetail.query-Wtw3VSKd.js +0 -13
  590. package/dist/issuerSettings.query-H5-5e_KF.js +0 -130
  591. package/dist/style.d.ts +0 -1
  592. /package/dist/{index.css → DunningCaseReminderPdfViewDataProvider.css} +0 -0
@@ -0,0 +1,2948 @@
1
+ import * as e from "zod";
2
+ import { ResultAsync as t, err as n, ok as r } from "neverthrow";
3
+ //#region src/client/core/bodySerializer.gen.ts
4
+ var i = { bodySerializer: (e) => JSON.stringify(e, (e, t) => typeof t == "bigint" ? t.toString() : t) };
5
+ Object.entries({
6
+ $body_: "body",
7
+ $headers_: "headers",
8
+ $path_: "path",
9
+ $query_: "query"
10
+ });
11
+ //#endregion
12
+ //#region src/client/core/serverSentEvents.gen.ts
13
+ function a({ onRequest: e, onSseError: t, onSseEvent: n, responseTransformer: r, responseValidator: i, sseDefaultRetryDelay: a, sseMaxRetryAttempts: o, sseMaxRetryDelay: s, sseSleepFn: c, url: l, ...u }) {
14
+ let d, f = c ?? ((e) => new Promise((t) => setTimeout(t, e)));
15
+ return { stream: async function* () {
16
+ let c = a ?? 3e3, p = 0, m = u.signal ?? new AbortController().signal;
17
+ for (; !m.aborted;) {
18
+ p++;
19
+ let a = u.headers instanceof Headers ? u.headers : new Headers(u.headers);
20
+ d !== void 0 && a.set("Last-Event-ID", d);
21
+ try {
22
+ let t = {
23
+ redirect: "follow",
24
+ ...u,
25
+ body: u.serializedBody,
26
+ headers: a,
27
+ signal: m
28
+ }, o = new Request(l, t);
29
+ e && (o = await e(l, t));
30
+ let s = await (u.fetch ?? globalThis.fetch)(o);
31
+ if (!s.ok) throw Error(`SSE failed: ${s.status} ${s.statusText}`);
32
+ if (!s.body) throw Error("No body in SSE response");
33
+ let f = s.body.pipeThrough(new TextDecoderStream()).getReader(), p = "", h = () => {
34
+ try {
35
+ f.cancel();
36
+ } catch {}
37
+ };
38
+ m.addEventListener("abort", h);
39
+ try {
40
+ for (;;) {
41
+ let { done: e, value: t } = await f.read();
42
+ if (e) break;
43
+ p += t, p = p.replace(/\r\n?/g, "\n");
44
+ let a = p.split("\n\n");
45
+ p = a.pop() ?? "";
46
+ for (let e of a) {
47
+ let t = e.split("\n"), a = [], o;
48
+ for (let e of t) if (e.startsWith("data:")) a.push(e.replace(/^data:\s*/, ""));
49
+ else if (e.startsWith("event:")) o = e.replace(/^event:\s*/, "");
50
+ else if (e.startsWith("id:")) d = e.replace(/^id:\s*/, "");
51
+ else if (e.startsWith("retry:")) {
52
+ let t = Number.parseInt(e.replace(/^retry:\s*/, ""), 10);
53
+ Number.isNaN(t) || (c = t);
54
+ }
55
+ let s, l = !1;
56
+ if (a.length) {
57
+ let e = a.join("\n");
58
+ try {
59
+ s = JSON.parse(e), l = !0;
60
+ } catch {
61
+ s = e;
62
+ }
63
+ }
64
+ l && (i && await i(s), r && (s = await r(s))), n?.({
65
+ data: s,
66
+ event: o,
67
+ id: d,
68
+ retry: c
69
+ }), a.length && (yield s);
70
+ }
71
+ }
72
+ } finally {
73
+ m.removeEventListener("abort", h), f.releaseLock();
74
+ }
75
+ break;
76
+ } catch (e) {
77
+ if (t?.(e), o !== void 0 && p >= o) break;
78
+ let n = Math.min(c * 2 ** (p - 1), s ?? 3e4);
79
+ await f(n);
80
+ }
81
+ }
82
+ }() };
83
+ }
84
+ //#endregion
85
+ //#region src/client/core/pathSerializer.gen.ts
86
+ var o = (e) => {
87
+ switch (e) {
88
+ case "label": return ".";
89
+ case "matrix": return ";";
90
+ case "simple": return ",";
91
+ default: return "&";
92
+ }
93
+ }, s = (e) => {
94
+ switch (e) {
95
+ case "form": return ",";
96
+ case "pipeDelimited": return "|";
97
+ case "spaceDelimited": return "%20";
98
+ default: return ",";
99
+ }
100
+ }, c = (e) => {
101
+ switch (e) {
102
+ case "label": return ".";
103
+ case "matrix": return ";";
104
+ case "simple": return ",";
105
+ default: return "&";
106
+ }
107
+ }, l = ({ allowReserved: e, explode: t, name: n, style: r, value: i }) => {
108
+ if (!t) {
109
+ let t = (e ? i : i.map((e) => encodeURIComponent(e))).join(s(r));
110
+ switch (r) {
111
+ case "label": return `.${t}`;
112
+ case "matrix": return `;${n}=${t}`;
113
+ case "simple": return t;
114
+ default: return `${n}=${t}`;
115
+ }
116
+ }
117
+ let a = o(r), c = i.map((t) => r === "label" || r === "simple" ? e ? t : encodeURIComponent(t) : u({
118
+ allowReserved: e,
119
+ name: n,
120
+ value: t
121
+ })).join(a);
122
+ return r === "label" || r === "matrix" ? a + c : c;
123
+ }, u = ({ allowReserved: e, name: t, value: n }) => {
124
+ if (n == null) return "";
125
+ if (typeof n == "object") throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");
126
+ return `${t}=${e ? n : encodeURIComponent(n)}`;
127
+ }, d = ({ allowReserved: e, explode: t, name: n, style: r, value: i, valueOnly: a }) => {
128
+ if (i instanceof Date) return a ? i.toISOString() : `${n}=${i.toISOString()}`;
129
+ if (r !== "deepObject" && !t) {
130
+ let t = [];
131
+ Object.entries(i).forEach(([n, r]) => {
132
+ t = [
133
+ ...t,
134
+ n,
135
+ e ? r : encodeURIComponent(r)
136
+ ];
137
+ });
138
+ let a = t.join(",");
139
+ switch (r) {
140
+ case "form": return `${n}=${a}`;
141
+ case "label": return `.${a}`;
142
+ case "matrix": return `;${n}=${a}`;
143
+ default: return a;
144
+ }
145
+ }
146
+ let o = c(r), s = Object.entries(i).map(([t, i]) => u({
147
+ allowReserved: e,
148
+ name: r === "deepObject" ? `${n}[${t}]` : t,
149
+ value: i
150
+ })).join(o);
151
+ return r === "label" || r === "matrix" ? o + s : s;
152
+ }, f = /\{[^{}]+\}/g, p = ({ path: e, url: t }) => {
153
+ let n = t, r = t.match(f);
154
+ if (r) for (let t of r) {
155
+ let r = !1, i = t.substring(1, t.length - 1), a = "simple";
156
+ i.endsWith("*") && (r = !0, i = i.substring(0, i.length - 1)), i.startsWith(".") ? (i = i.substring(1), a = "label") : i.startsWith(";") && (i = i.substring(1), a = "matrix");
157
+ let o = e[i];
158
+ if (o == null) continue;
159
+ if (Array.isArray(o)) {
160
+ n = n.replace(t, l({
161
+ explode: r,
162
+ name: i,
163
+ style: a,
164
+ value: o
165
+ }));
166
+ continue;
167
+ }
168
+ if (typeof o == "object") {
169
+ n = n.replace(t, d({
170
+ explode: r,
171
+ name: i,
172
+ style: a,
173
+ value: o,
174
+ valueOnly: !0
175
+ }));
176
+ continue;
177
+ }
178
+ if (a === "matrix") {
179
+ n = n.replace(t, `;${u({
180
+ name: i,
181
+ value: o
182
+ })}`);
183
+ continue;
184
+ }
185
+ let s = encodeURIComponent(a === "label" ? `.${o}` : o);
186
+ n = n.replace(t, s);
187
+ }
188
+ return n;
189
+ }, m = ({ baseUrl: e, path: t, query: n, querySerializer: r, url: i }) => {
190
+ let a = i.startsWith("/") ? i : `/${i}`, o = (e ?? "") + a;
191
+ t && (o = p({
192
+ path: t,
193
+ url: o
194
+ }));
195
+ let s = n ? r(n) : "";
196
+ return s.startsWith("?") && (s = s.substring(1)), s && (o += `?${s}`), o;
197
+ };
198
+ function h(e) {
199
+ let t = e.body !== void 0;
200
+ if (t && e.bodySerializer) return "serializedBody" in e ? e.serializedBody !== void 0 && e.serializedBody !== "" ? e.serializedBody : null : e.body === "" ? null : e.body;
201
+ if (t) return e.body;
202
+ }
203
+ //#endregion
204
+ //#region src/client/core/auth.gen.ts
205
+ var ee = async (e, t) => {
206
+ let n = typeof t == "function" ? await t(e) : t;
207
+ if (n) return e.scheme === "bearer" ? `Bearer ${n}` : e.scheme === "basic" ? `Basic ${btoa(n)}` : n;
208
+ }, te = ({ parameters: e = {}, ...t } = {}) => (n) => {
209
+ let r = [];
210
+ if (n && typeof n == "object") for (let i in n) {
211
+ let a = n[i];
212
+ if (a == null) continue;
213
+ let o = e[i] || t;
214
+ if (Array.isArray(a)) {
215
+ let e = l({
216
+ allowReserved: o.allowReserved,
217
+ explode: !0,
218
+ name: i,
219
+ style: "form",
220
+ value: a,
221
+ ...o.array
222
+ });
223
+ e && r.push(e);
224
+ } else if (typeof a == "object") {
225
+ let e = d({
226
+ allowReserved: o.allowReserved,
227
+ explode: !0,
228
+ name: i,
229
+ style: "deepObject",
230
+ value: a,
231
+ ...o.object
232
+ });
233
+ e && r.push(e);
234
+ } else {
235
+ let e = u({
236
+ allowReserved: o.allowReserved,
237
+ name: i,
238
+ value: a
239
+ });
240
+ e && r.push(e);
241
+ }
242
+ }
243
+ return r.join("&");
244
+ }, ne = (e) => {
245
+ if (!e) return "stream";
246
+ let t = e.split(";")[0]?.trim();
247
+ if (t) {
248
+ if (t.startsWith("application/json") || t.endsWith("+json")) return "json";
249
+ if (t === "multipart/form-data") return "formData";
250
+ if ([
251
+ "application/",
252
+ "audio/",
253
+ "image/",
254
+ "video/"
255
+ ].some((e) => t.startsWith(e))) return "blob";
256
+ if (t.startsWith("text/")) return "text";
257
+ }
258
+ }, re = (e, t) => t ? !!(e.headers.has(t) || e.query?.[t] || e.headers.get("Cookie")?.includes(`${t}=`)) : !1;
259
+ async function ie(e) {
260
+ for (let t of e.security ?? []) {
261
+ if (re(e, t.name)) continue;
262
+ let n = await ee(t, e.auth);
263
+ if (!n) continue;
264
+ let r = t.name ?? "Authorization";
265
+ switch (t.in) {
266
+ case "query":
267
+ e.query ||= {}, e.query[r] = n;
268
+ break;
269
+ case "cookie":
270
+ e.headers.append("Cookie", `${r}=${n}`);
271
+ break;
272
+ default: e.headers.set(r, n);
273
+ }
274
+ }
275
+ }
276
+ var ae = (e) => m({
277
+ baseUrl: e.baseUrl,
278
+ path: e.path,
279
+ query: e.query,
280
+ querySerializer: typeof e.querySerializer == "function" ? e.querySerializer : te(e.querySerializer),
281
+ url: e.url
282
+ }), oe = (e, t) => {
283
+ let n = {
284
+ ...e,
285
+ ...t
286
+ };
287
+ return n.baseUrl?.endsWith("/") && (n.baseUrl = n.baseUrl.substring(0, n.baseUrl.length - 1)), n.headers = ce(e.headers, t.headers), n;
288
+ }, se = (e) => {
289
+ let t = [];
290
+ return e.forEach((e, n) => {
291
+ t.push([n, e]);
292
+ }), t;
293
+ }, ce = (...e) => {
294
+ let t = new Headers();
295
+ for (let n of e) {
296
+ if (!n) continue;
297
+ let e = n instanceof Headers ? se(n) : Object.entries(n);
298
+ for (let [n, r] of e) if (r === null) t.delete(n);
299
+ else if (Array.isArray(r)) for (let e of r) t.append(n, e);
300
+ else r !== void 0 && t.set(n, typeof r == "object" ? JSON.stringify(r) : r);
301
+ }
302
+ return t;
303
+ }, le = class {
304
+ fns = [];
305
+ clear() {
306
+ this.fns = [];
307
+ }
308
+ eject(e) {
309
+ let t = this.getInterceptorIndex(e);
310
+ this.fns[t] && (this.fns[t] = null);
311
+ }
312
+ exists(e) {
313
+ let t = this.getInterceptorIndex(e);
314
+ return !!this.fns[t];
315
+ }
316
+ getInterceptorIndex(e) {
317
+ return typeof e == "number" ? this.fns[e] ? e : -1 : this.fns.indexOf(e);
318
+ }
319
+ update(e, t) {
320
+ let n = this.getInterceptorIndex(e);
321
+ return this.fns[n] ? (this.fns[n] = t, e) : !1;
322
+ }
323
+ use(e) {
324
+ return this.fns.push(e), this.fns.length - 1;
325
+ }
326
+ }, ue = () => ({
327
+ error: new le(),
328
+ request: new le(),
329
+ response: new le()
330
+ }), de = te({
331
+ allowReserved: !1,
332
+ array: {
333
+ explode: !0,
334
+ style: "form"
335
+ },
336
+ object: {
337
+ explode: !0,
338
+ style: "deepObject"
339
+ }
340
+ }), fe = { "Content-Type": "application/json" }, pe = (e = {}) => ({
341
+ ...i,
342
+ headers: fe,
343
+ parseAs: "auto",
344
+ querySerializer: de,
345
+ ...e
346
+ }), g = ((e = {}) => {
347
+ let t = oe(pe(), e), n = () => ({ ...t }), r = (e) => (t = oe(t, e), n()), i = ue(), o = async (e) => {
348
+ let n = {
349
+ ...t,
350
+ ...e,
351
+ fetch: e.fetch ?? t.fetch ?? globalThis.fetch,
352
+ headers: ce(t.headers, e.headers),
353
+ serializedBody: void 0
354
+ };
355
+ n.security && await ie(n), n.requestValidator && await n.requestValidator(n), n.body !== void 0 && n.bodySerializer && (n.serializedBody = n.bodySerializer(n.body)), (n.body === void 0 || n.serializedBody === "") && n.headers.delete("Content-Type");
356
+ let r = n;
357
+ return {
358
+ opts: r,
359
+ url: ae(r)
360
+ };
361
+ }, s = async (e) => {
362
+ let n = e.throwOnError ?? t.throwOnError, r = e.responseStyle ?? t.responseStyle, a, s;
363
+ try {
364
+ let { opts: t, url: n } = await o(e), r = {
365
+ redirect: "follow",
366
+ ...t,
367
+ body: h(t)
368
+ };
369
+ a = new Request(n, r);
370
+ for (let e of i.request.fns) e && (a = await e(a, t));
371
+ let c = t.fetch;
372
+ s = await c(a);
373
+ for (let e of i.response.fns) e && (s = await e(s, a, t));
374
+ let l = {
375
+ request: a,
376
+ response: s
377
+ };
378
+ if (s.ok) {
379
+ let e = (t.parseAs === "auto" ? ne(s.headers.get("Content-Type")) : t.parseAs) ?? "json";
380
+ if (s.status === 204 || s.headers.get("Content-Length") === "0") {
381
+ let n;
382
+ switch (e) {
383
+ case "arrayBuffer":
384
+ case "blob":
385
+ case "text":
386
+ n = await s[e]();
387
+ break;
388
+ case "formData":
389
+ n = new FormData();
390
+ break;
391
+ case "stream":
392
+ n = s.body;
393
+ break;
394
+ default: n = {};
395
+ }
396
+ return t.responseStyle === "data" ? n : {
397
+ data: n,
398
+ ...l
399
+ };
400
+ }
401
+ let n;
402
+ switch (e) {
403
+ case "arrayBuffer":
404
+ case "blob":
405
+ case "formData":
406
+ case "text":
407
+ n = await s[e]();
408
+ break;
409
+ case "json": {
410
+ let e = await s.text();
411
+ n = e ? JSON.parse(e) : {};
412
+ break;
413
+ }
414
+ case "stream": return t.responseStyle === "data" ? s.body : {
415
+ data: s.body,
416
+ ...l
417
+ };
418
+ }
419
+ return e === "json" && (t.responseValidator && await t.responseValidator(n), t.responseTransformer && (n = await t.responseTransformer(n))), t.responseStyle === "data" ? n : {
420
+ data: n,
421
+ ...l
422
+ };
423
+ }
424
+ let u = await s.text(), d;
425
+ try {
426
+ d = JSON.parse(u);
427
+ } catch {}
428
+ throw d ?? u;
429
+ } catch (t) {
430
+ let o = t;
431
+ for (let t of i.error.fns) t && (o = await t(o, s, a, e));
432
+ if (o ||= {}, n) throw o;
433
+ return r === "data" ? void 0 : {
434
+ error: o,
435
+ request: a,
436
+ response: s
437
+ };
438
+ }
439
+ }, c = (e) => (t) => s({
440
+ ...t,
441
+ method: e
442
+ }), l = (e) => async (t) => {
443
+ let { opts: n, url: r } = await o(t);
444
+ return a({
445
+ ...n,
446
+ body: n.body,
447
+ method: e,
448
+ onRequest: async (e, t) => {
449
+ let r = new Request(e, t);
450
+ for (let e of i.request.fns) e && (r = await e(r, n));
451
+ return r;
452
+ },
453
+ serializedBody: h(n),
454
+ url: r
455
+ });
456
+ };
457
+ return {
458
+ buildUrl: (e) => ae({
459
+ ...t,
460
+ ...e
461
+ }),
462
+ connect: c("CONNECT"),
463
+ delete: c("DELETE"),
464
+ get: c("GET"),
465
+ getConfig: n,
466
+ head: c("HEAD"),
467
+ interceptors: i,
468
+ options: c("OPTIONS"),
469
+ patch: c("PATCH"),
470
+ post: c("POST"),
471
+ put: c("PUT"),
472
+ request: s,
473
+ setConfig: r,
474
+ sse: {
475
+ connect: l("CONNECT"),
476
+ delete: l("DELETE"),
477
+ get: l("GET"),
478
+ head: l("HEAD"),
479
+ options: l("OPTIONS"),
480
+ patch: l("PATCH"),
481
+ post: l("POST"),
482
+ put: l("PUT"),
483
+ trace: l("TRACE")
484
+ },
485
+ trace: c("TRACE")
486
+ };
487
+ })(pe({
488
+ baseUrl: "https://vue.project-template.development.appwi.se",
489
+ throwOnError: !0
490
+ })), _ = e.enum(/* @__PURE__ */ "all_permissions,custom-field-definition.read,customer.create,customer.read,customer.update,customer.deactivate,customer.reactivate,dunning-case.read,dunning-case.send,invoice.create,invoice.delete,invoice.read,invoice.send-email,invoice.update,invoice.payment.create,invoice.payment.delete,invoice.payment.read,issuer.read,issuer.update,recipient.read,recipient.create,recipient.update,recipient.delete,reminder-config.read,activity-log.read,event-log.read,file.read,file.create,file.delete,jobs.read.index,jobs.read.detail,notification.read.own,notification.read.config,notification.update.read,notification.update.unread,notification.preferences.update.channel,notification.preferences.update.preset,notification.preferences.update.types,notification.preferences.read.own,notification.migrate-type,notification.send-test,reminder-config.update,role.read,role.create,role.update,role.delete,role.cache.clear,send_push_notification,typesense,user.read,user.create,user.update,user.delete,tenant.create,tenant.read_index,tenant.read_detail,tenant.update,tenant.deactivate".split(",")), me = e.object({
491
+ name: e.string(),
492
+ key: _,
493
+ description: e.string()
494
+ }), he = e.object({
495
+ name: e.string(),
496
+ permissions: e.array(me)
497
+ });
498
+ e.object({ groups: e.array(he) }), e.object({
499
+ environment: e.string(),
500
+ commit: e.string(),
501
+ version: e.string(),
502
+ timestamp: e.iso.datetime()
503
+ });
504
+ var ge = e.enum([
505
+ "user",
506
+ "customer",
507
+ "recipient",
508
+ "invoice"
509
+ ]);
510
+ e.object({ collections: e.array(e.enum([
511
+ "user",
512
+ "customer",
513
+ "recipient",
514
+ "invoice"
515
+ ])) }), e.object({
516
+ detail: e.string().optional(),
517
+ status: e.enum(["404"]),
518
+ code: e.enum(["user_not_found"])
519
+ }), e.object({ roleUuids: e.array(e.uuid()) });
520
+ var _e = e.object({
521
+ uuid: e.uuid(),
522
+ createdAt: e.iso.datetime(),
523
+ updatedAt: e.iso.datetime(),
524
+ name: e.string(),
525
+ permissions: e.array(_),
526
+ isDefault: e.boolean(),
527
+ isSystemAdmin: e.boolean()
528
+ });
529
+ e.object({
530
+ uuid: e.uuid(),
531
+ email: e.email().nullable(),
532
+ firstName: e.string().nullable(),
533
+ lastName: e.string().nullable(),
534
+ tenantUuid: e.uuid().nullable(),
535
+ roles: e.array(_e)
536
+ }), e.object({
537
+ uuid: e.uuid(),
538
+ email: e.email().nullable(),
539
+ firstName: e.string().nullable(),
540
+ lastName: e.string().nullable(),
541
+ tenantUuid: e.uuid().nullable(),
542
+ roles: e.array(_e)
543
+ });
544
+ var v = e.object({
545
+ limit: e.number().gte(1).lte(100),
546
+ offset: e.number().gte(0)
547
+ }), ve = e.object({
548
+ uuid: e.uuid(),
549
+ name: e.string()
550
+ }), ye = e.object({
551
+ uuid: e.uuid(),
552
+ email: e.email().nullable(),
553
+ firstName: e.string().nullable(),
554
+ lastName: e.string().nullable(),
555
+ roles: e.array(ve)
556
+ }), y = e.object({
557
+ total: e.number(),
558
+ offset: e.number(),
559
+ limit: e.number()
560
+ });
561
+ e.object({
562
+ items: e.array(ye),
563
+ meta: y
564
+ }), e.object({ name: e.string() }), e.object({ uuid: e.uuid() }), e.object({ roleUuids: e.array(e.uuid()).nullish() }), e.object({
565
+ detail: e.string().optional(),
566
+ status: e.enum(["404"]),
567
+ code: e.enum(["role_not_found"])
568
+ }), e.object({ name: e.string() });
569
+ var be = e.object({
570
+ uuid: e.uuid(),
571
+ createdAt: e.iso.datetime(),
572
+ updatedAt: e.iso.datetime(),
573
+ name: e.string(),
574
+ permissions: e.array(_),
575
+ isDefault: e.boolean(),
576
+ isSystemAdmin: e.boolean()
577
+ });
578
+ e.object({ items: e.array(be) });
579
+ var xe = e.object({
580
+ roleUuid: e.uuid(),
581
+ permissions: e.array(_)
582
+ });
583
+ e.object({ roles: e.array(xe) });
584
+ var Se = e.enum([
585
+ "application/pdf",
586
+ "application/msword",
587
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
588
+ "application/vnd.ms-powerpoint",
589
+ "application/vnd.openxmlformats-officedocument.presentationml.presentation",
590
+ "text/plain",
591
+ "text/html",
592
+ "text/csv",
593
+ "image/jpeg",
594
+ "image/png",
595
+ "image/tiff",
596
+ "image/bmp",
597
+ "image/heic",
598
+ "image/webp",
599
+ "image/gif",
600
+ "application/octet-stream"
601
+ ]), Ce = e.object({
602
+ name: e.string(),
603
+ mimeType: Se,
604
+ isPublic: e.boolean().optional().default(!1)
605
+ }), we = e.object({
606
+ uuid: e.uuid(),
607
+ name: e.string(),
608
+ mimeType: Se.nullable(),
609
+ uploadUrl: e.string()
610
+ });
611
+ e.object({
612
+ detail: e.string().optional(),
613
+ status: e.enum(["404"]),
614
+ code: e.enum(["file_not_found"])
615
+ });
616
+ var Te = e.object({ blurHash: e.string().max(100).nullable() }), Ee = e.enum([
617
+ "light",
618
+ "dark",
619
+ "system"
620
+ ]), b = e.enum([
621
+ "en-US",
622
+ "nl-BE",
623
+ "fr-BE"
624
+ ]), De = e.enum([
625
+ "smaller",
626
+ "small",
627
+ "default",
628
+ "large",
629
+ "larger"
630
+ ]);
631
+ e.object({
632
+ theme: Ee.optional(),
633
+ language: b.optional(),
634
+ fontSize: De.optional(),
635
+ showShortcuts: e.boolean().optional(),
636
+ reduceMotion: e.boolean().optional(),
637
+ highContrast: e.boolean().optional()
638
+ }), e.object({
639
+ theme: Ee,
640
+ language: b,
641
+ fontSize: De,
642
+ showShortcuts: e.boolean(),
643
+ reduceMotion: e.boolean(),
644
+ highContrast: e.boolean()
645
+ }), e.object({
646
+ token: e.string(),
647
+ userUuid: e.uuid()
648
+ });
649
+ var Oe = e.object({
650
+ nl: e.string().optional(),
651
+ en: e.string().optional()
652
+ });
653
+ e.object({
654
+ name: e.string(),
655
+ title: Oe,
656
+ description: Oe,
657
+ userUuids: e.array(e.uuid())
658
+ });
659
+ var ke = e.enum([
660
+ "contact",
661
+ "customer",
662
+ "file",
663
+ "role",
664
+ "user",
665
+ "tenant",
666
+ "recipient",
667
+ "issuer",
668
+ "invoice",
669
+ "dunning-case"
670
+ ]), Ae = e.object({
671
+ subjectType: ke.optional(),
672
+ subjectId: e.uuid().optional(),
673
+ userUuid: e.uuid().optional()
674
+ }), je = e.object({
675
+ createdAt: e.string(),
676
+ uuid: e.uuid()
677
+ }), Me = e.object({
678
+ limit: e.number().gte(0).lte(100).optional(),
679
+ key: je.nullish()
680
+ }), Ne = e.enum(/* @__PURE__ */ "credit-note.created,credit-note.updated,credit-note.finalized,credit-note.invoice-lines.updated,credit-note.deleted,credit-note.sent-email,customer.created,customer.updated,customer.synced,customer.deactivated,customer.reactivated,file.created,file.uploaded,issuer.updated,issuer.created,invoice.created,invoice.updated,invoice.attachments.updated,invoice.discount.applied,invoice.finalized,invoice.pdf.generated,invoice.sent-email,invoice.marked-as-ready,invoice.marked-as-draft,invoice.marked-as-overdue,invoice.deleted,invoice.duplicated,invoice.marked-as-disputed,invoice.marked-as-paid,invoice.disputed-withdrawn,payment.created,payment.deleted,notification.created,notification.read,notification.read.all,notification.unread,notification.types.migrated,notification.preference.preset.updated,role.created,role.deleted,role.renamed,role.permissions.updated,role.permissions.cache.cleared,test-notification.sent,user.created,user.updated,user.role-assigned,user.roles-set,user.notification.created,user.default-notification-preferences.assigned,user.assigned-as-admin,recipient.created,recipient.updated,recipient.default-set,recipient.deleted,reminder-config.updated,dunning-case.updated,dunning-case.closed,dunning-case.reminder.created,dunning-case.reminder.pdf.generated,dunning-case.reminder.sent,tenant.created,tenant.updated,tenant.deactivated".split(",")), Pe = e.object({
681
+ uuid: e.uuid(),
682
+ createdAt: e.iso.datetime(),
683
+ version: e.int().gte(0),
684
+ source: e.string(),
685
+ userUuid: e.uuid().nullable(),
686
+ message: e.string(),
687
+ type: Ne,
688
+ subjectType: ke.nullable(),
689
+ subjectId: e.uuid().nullable(),
690
+ content: e.record(e.string(), e.unknown())
691
+ }), Fe = e.object({ next: je.nullable() });
692
+ e.object({
693
+ items: e.array(Pe),
694
+ meta: Fe
695
+ });
696
+ var Ie = e.enum([
697
+ "user",
698
+ "customer",
699
+ "recipient"
700
+ ]), Le = e.object({ isActive: e.boolean().optional() }), Re = e.object({ customerUuid: e.uuid().optional() }), ze = e.object({
701
+ collections: e.array(Ie).optional(),
702
+ contact: Le.optional(),
703
+ recipient: Re.optional()
704
+ }), Be = e.object({ offset: e.int() }), Ve = e.object({ key: Be.optional() }), He = e.object({
705
+ uuid: e.uuid(),
706
+ name: e.string(),
707
+ email: e.record(e.string(), e.unknown()).nullable()
708
+ }), x = e.enum(["business", "individual"]), Ue = e.object({
709
+ uuid: e.uuid(),
710
+ name: e.string(),
711
+ type: x
712
+ }), We = e.object({
713
+ uuid: e.uuid(),
714
+ name: e.string().nullable(),
715
+ email: e.string(),
716
+ customerUuid: e.uuid(),
717
+ isDefault: e.boolean()
718
+ }), Ge = e.object({
719
+ uuid: e.uuid(),
720
+ name: e.string()
721
+ }), S = e.enum([
722
+ "draft",
723
+ "ready",
724
+ "finalized",
725
+ "sent",
726
+ "overdue",
727
+ "protested",
728
+ "credited",
729
+ "paid",
730
+ "overpaid"
731
+ ]), C = e.enum(/* @__PURE__ */ "AFN.EUR.ALL.DZD.USD.AOA.XCD.ARS.AMD.AWG.AUD.AZN.BSD.BHD.BDT.BBD.BYN.BZD.XOF.BMD.INR.BTN.BOB.BOV.BAM.BWP.NOK.BRL.BND.BGN.BIF.CVE.KHR.XAF.CAD.KYD.CLP.CLF.CNY.COP.COU.KMF.CDF.NZD.CRC.CUP.ANG.CZK.DKK.DJF.DOP.EGP.SVC.ERN.SZL.ETB.FKP.FJD.XPF.GMD.GEL.GHS.GIP.GTQ.GBP.GNF.GYD.HTG.HNL.HKD.HUF.ISK.IDR.XDR.IRR.IQD.ILS.JMD.JPY.JOD.KZT.KES.KPW.KRW.KWD.KGS.LAK.LBP.LSL.ZAR.LRD.LYD.CHF.MOP.MKD.MGA.MWK.MYR.MVR.MRU.MUR.XUA.MXN.MXV.MDL.MNT.MAD.MZN.MMK.NAD.NPR.NIO.NGN.OMR.PKR.PAB.PGK.PYG.PEN.PHP.PLN.QAR.RON.RUB.RWF.SHP.WST.STN.SAR.RSD.SCR.SLE.SGD.XSU.SBD.SOS.SSP.LKR.SDG.SRD.SEK.CHE.CHW.SYP.TWD.TJS.TZS.THB.TOP.TTD.TND.TRY.TMT.UGX.UAH.AED.USN.UYU.UYI.UYW.UZS.VUV.VES.VED.VND.YER.ZMW.ZWG.XBA.XBB.XBC.XBD.XTS.XXX.XAU.XPD.XPT.XAG".split(".")), w = e.object({
732
+ amount: e.int(),
733
+ currency: C,
734
+ precision: e.int()
735
+ }), Ke = e.object({
736
+ uuid: e.uuid(),
737
+ createdAt: e.iso.datetime(),
738
+ issuedOn: e.iso.date().nullable(),
739
+ dueOn: e.iso.date().nullable(),
740
+ subject: e.string().nullable(),
741
+ customer: Ge,
742
+ status: S,
743
+ netAmount: w
744
+ }), qe = e.object({
745
+ collection: Ie,
746
+ entity: e.union([
747
+ He,
748
+ Ue,
749
+ We,
750
+ Ke
751
+ ]),
752
+ text_match: e.number()
753
+ }), Je = e.object({ next: Be.nullable() });
754
+ e.object({
755
+ items: e.array(qe),
756
+ meta: Je
757
+ });
758
+ var Ye = e.enum([
759
+ "all",
760
+ "default",
761
+ "custom",
762
+ "none"
763
+ ]), T = e.enum(["user.created", "system.test-notification"]), Xe = e.object({
764
+ email: e.array(T),
765
+ sms: e.array(T),
766
+ app: e.array(T),
767
+ push: e.array(T)
768
+ });
769
+ e.object({
770
+ preset: Ye,
771
+ emailEnabled: e.boolean(),
772
+ smsEnabled: e.boolean(),
773
+ appEnabled: e.boolean(),
774
+ pushEnabled: e.boolean(),
775
+ preferences: Xe
776
+ });
777
+ var Ze = e.enum([
778
+ "email",
779
+ "sms",
780
+ "app",
781
+ "push"
782
+ ]), Qe = e.object({
783
+ channel: Ze,
784
+ defaultValue: e.boolean(),
785
+ isSupported: e.boolean()
786
+ }), $e = e.object({
787
+ key: T,
788
+ description: e.string(),
789
+ channelConfigs: e.array(Qe)
790
+ }), et = e.object({
791
+ name: e.string(),
792
+ description: e.string(),
793
+ types: e.array($e)
794
+ });
795
+ e.object({ groups: e.array(et) }), e.object({
796
+ channel: Ze,
797
+ isEnabled: e.boolean()
798
+ }), e.object({ message: e.string() });
799
+ var tt = e.object({ onlyUnread: e.string().optional() }), nt = e.object({
800
+ createdAt: e.string(),
801
+ notificationUuid: e.uuid()
802
+ }), rt = e.object({
803
+ limit: e.number().gte(0).lte(100).optional(),
804
+ key: nt.nullish()
805
+ }), it = e.object({
806
+ uuid: e.uuid(),
807
+ name: e.string()
808
+ }), at = e.object({ message: e.string() }), ot = e.object({
809
+ createdAt: e.iso.datetime(),
810
+ readAt: e.iso.datetime().nullable(),
811
+ notificationUuid: e.uuid(),
812
+ createdByUser: it.nullable(),
813
+ message: e.string(),
814
+ type: e.enum(["system.test-notification"]),
815
+ meta: at
816
+ }), st = e.object({ next: nt.nullable() });
817
+ e.object({
818
+ items: e.array(ot),
819
+ meta: st
820
+ }), e.object({
821
+ amount: e.number().gte(0),
822
+ exceedsLimit: e.boolean()
823
+ }), e.object({
824
+ detail: e.string().optional(),
825
+ status: e.enum(["404"]),
826
+ code: e.enum(["user_notification_not_found"])
827
+ }), e.object({
828
+ channel: Ze,
829
+ isEnabled: e.boolean(),
830
+ types: e.array(T)
831
+ }), e.object({ preset: Ye });
832
+ var ct = e.object({ type: e.array(T) });
833
+ e.object({
834
+ detail: e.string().optional(),
835
+ status: e.enum(["400"]),
836
+ code: e.enum(["migration_already_performed"]),
837
+ meta: ct
838
+ }), e.object({ types: e.array(T) });
839
+ var lt = e.enum(["createdAt"]), ut = e.enum(["asc", "desc"]), dt = e.object({
840
+ key: lt,
841
+ order: ut
842
+ }), ft = e.enum(["system"]), pt = e.object({ queueNames: e.array(ft).optional() }), mt = e.object({
843
+ createdAt: e.iso.datetime().optional(),
844
+ id: e.string()
845
+ }), ht = e.object({
846
+ limit: e.number().gte(0).lte(100).optional(),
847
+ key: mt.nullish()
848
+ }), gt = e.enum([
849
+ "created",
850
+ "active",
851
+ "completed",
852
+ "retry",
853
+ "failed",
854
+ "cancelled"
855
+ ]), _t = e.object({
856
+ queueName: ft,
857
+ id: e.uuid(),
858
+ name: e.string(),
859
+ status: gt,
860
+ createdAt: e.iso.datetime(),
861
+ completedAt: e.iso.datetime().nullable()
862
+ }), vt = e.object({ next: mt.nullable() });
863
+ e.object({
864
+ items: e.array(_t),
865
+ meta: vt
866
+ }), e.object({
867
+ detail: e.string().optional(),
868
+ status: e.enum(["404"]),
869
+ code: e.enum(["job_not_found"])
870
+ }), e.object({
871
+ id: e.uuid(),
872
+ queueName: ft,
873
+ priority: e.number(),
874
+ name: e.string(),
875
+ data: e.record(e.string(), e.unknown()),
876
+ status: gt,
877
+ retryLimit: e.number(),
878
+ retryCount: e.number(),
879
+ retryDelay: e.number(),
880
+ retryBackoff: e.boolean(),
881
+ startAfter: e.iso.datetime(),
882
+ startedAt: e.iso.datetime().nullable(),
883
+ singletonKey: e.string().nullable(),
884
+ singletonOn: e.iso.datetime().nullable(),
885
+ expireIn: e.record(e.string(), e.unknown()),
886
+ createdAt: e.iso.datetime(),
887
+ completedAt: e.iso.datetime().nullable(),
888
+ keepUntil: e.iso.datetime(),
889
+ output: e.record(e.string(), e.unknown()).nullable(),
890
+ deadLetter: e.string().nullable(),
891
+ policy: e.string().nullable()
892
+ }), e.object({
893
+ name: e.string(),
894
+ slug: e.string(),
895
+ domain: e.string(),
896
+ oidcIssuer: e.string(),
897
+ oidcAudience: e.string()
898
+ }), e.object({
899
+ uuid: e.uuid(),
900
+ name: e.string(),
901
+ slug: e.string(),
902
+ oidcIssuer: e.string(),
903
+ oidcAudience: e.string()
904
+ }), e.object({
905
+ name: e.string(),
906
+ slug: e.string(),
907
+ domain: e.string().nullable(),
908
+ oidcIssuer: e.string().optional(),
909
+ oidcAudience: e.string().optional()
910
+ }), e.object({
911
+ uuid: e.uuid(),
912
+ createdAt: e.iso.datetime(),
913
+ updatedAt: e.iso.datetime(),
914
+ name: e.string(),
915
+ slug: e.string(),
916
+ domain: e.string().nullable()
917
+ });
918
+ var yt = e.object({
919
+ uuid: e.uuid(),
920
+ createdAt: e.iso.datetime(),
921
+ updatedAt: e.iso.datetime(),
922
+ name: e.string(),
923
+ slug: e.string(),
924
+ domain: e.string().nullable()
925
+ });
926
+ e.object({
927
+ items: e.array(yt),
928
+ meta: y
929
+ }), e.object({
930
+ detail: e.string().optional(),
931
+ status: e.enum(["409"]),
932
+ code: e.enum(["user_connected_to_other_tenant"])
933
+ }), e.object({ userId: e.string() }), e.object({
934
+ detail: e.string().optional(),
935
+ status: e.enum(["404"]),
936
+ code: e.enum(["tenant_slug_not_found"])
937
+ }), e.object({
938
+ baseUrl: e.string(),
939
+ clientId: e.string(),
940
+ organizationID: e.string()
941
+ }), e.object({
942
+ detail: e.string().optional(),
943
+ status: e.enum(["409"]),
944
+ code: e.enum(["vat_number_already_in_use"])
945
+ });
946
+ var bt = e.object({
947
+ longitude: e.number(),
948
+ latitude: e.number()
949
+ }), xt = e.object({
950
+ placeName: e.string().nullable(),
951
+ placeId: e.string().nullable(),
952
+ country: e.string().nullable(),
953
+ countryCode: e.string().nullish(),
954
+ city: e.string().nullable(),
955
+ postalCode: e.string().nullable(),
956
+ streetName: e.string().nullable(),
957
+ streetNumber: e.string().nullable(),
958
+ unit: e.string().nullable(),
959
+ coordinates: bt.nullable()
960
+ });
961
+ e.object({
962
+ name: e.string(),
963
+ address: xt.nullable(),
964
+ email: e.string(),
965
+ phone: e.string().nullable(),
966
+ vatNumber: e.string().nullable(),
967
+ type: x,
968
+ locale: b
969
+ }), e.object({ uuid: e.uuid() }), e.object({
970
+ detail: e.string().optional(),
971
+ status: e.enum(["404"]),
972
+ code: e.enum(["customer_not_found"])
973
+ });
974
+ var St = e.object({
975
+ longitude: e.number(),
976
+ latitude: e.number()
977
+ }), E = e.object({
978
+ placeName: e.string().nullable(),
979
+ placeId: e.string().nullable(),
980
+ country: e.string().nullable(),
981
+ countryCode: e.string().nullable(),
982
+ city: e.string().nullable(),
983
+ postalCode: e.string().nullable(),
984
+ streetName: e.string().nullable(),
985
+ streetNumber: e.string().nullable(),
986
+ unit: e.string().nullable(),
987
+ coordinates: St.nullable()
988
+ }), Ct = e.enum(["internal", "external"]), wt = e.enum([
989
+ "s",
990
+ "ms",
991
+ "μs",
992
+ "ns",
993
+ "m",
994
+ "h",
995
+ "days"
996
+ ]), Tt = e.object({
997
+ value: e.number(),
998
+ unit: wt
999
+ }), Et = e.object({
1000
+ uuid: e.uuid(),
1001
+ createdAt: e.iso.datetime(),
1002
+ updatedAt: e.iso.datetime(),
1003
+ name: e.string(),
1004
+ address: E.nullable(),
1005
+ email: e.email().nullable(),
1006
+ phone: e.string().nullable(),
1007
+ vatNumber: e.string().nullable(),
1008
+ source: Ct,
1009
+ type: x,
1010
+ locale: b,
1011
+ currency: C,
1012
+ isDeactivated: e.boolean(),
1013
+ defaultPaymentTerm: Tt
1014
+ }), Dt = e.object({
1015
+ isDeactivated: e.boolean().optional(),
1016
+ vatNumber: e.string().optional(),
1017
+ externalId: e.string().optional(),
1018
+ type: x.optional()
1019
+ }), Ot = e.object({
1020
+ uuid: e.string(),
1021
+ name: e.string(),
1022
+ email: e.string().nullable(),
1023
+ phone: e.string().nullable(),
1024
+ vatNumber: e.string().nullable(),
1025
+ address: E,
1026
+ source: Ct,
1027
+ type: x,
1028
+ isDeactivated: e.boolean()
1029
+ }), kt = e.object({
1030
+ items: e.array(Ot),
1031
+ meta: y
1032
+ });
1033
+ e.object({
1034
+ detail: e.string().optional(),
1035
+ status: e.enum(["409"]),
1036
+ code: e.enum(["update_external_customer"])
1037
+ }), e.object({
1038
+ detail: e.string().optional(),
1039
+ status: e.enum(["400"]),
1040
+ code: e.enum(["vat_number_not_allowed"])
1041
+ }), e.object({
1042
+ detail: e.string().optional(),
1043
+ status: e.enum(["409"]),
1044
+ code: e.enum(["vat_number_required"])
1045
+ }), e.object({
1046
+ name: e.string(),
1047
+ address: xt.nullable(),
1048
+ email: e.string(),
1049
+ phone: e.string().nullable(),
1050
+ vatNumber: e.string().nullable(),
1051
+ type: x,
1052
+ locale: b,
1053
+ currency: C,
1054
+ defaultPaymentTerm: Tt.optional()
1055
+ }), e.object({
1056
+ customerUuid: e.uuid(),
1057
+ email: e.string(),
1058
+ name: e.string().nullish(),
1059
+ isDefault: e.boolean()
1060
+ }), e.object({ uuid: e.uuid() }), e.object({
1061
+ detail: e.string().optional(),
1062
+ status: e.enum(["404"]),
1063
+ code: e.enum(["recipient_not_found"])
1064
+ });
1065
+ var At = e.object({
1066
+ uuid: e.uuid(),
1067
+ name: e.string()
1068
+ });
1069
+ e.object({
1070
+ uuid: e.uuid(),
1071
+ name: e.string().nullable(),
1072
+ email: e.string(),
1073
+ customer: At,
1074
+ isDefault: e.boolean()
1075
+ }), e.object({
1076
+ email: e.string(),
1077
+ name: e.string().nullish(),
1078
+ isDefault: e.boolean()
1079
+ });
1080
+ var jt = e.object({
1081
+ uuid: e.uuid(),
1082
+ name: e.string().nullable(),
1083
+ email: e.email(),
1084
+ customerUuid: e.uuid(),
1085
+ isDefault: e.boolean()
1086
+ }), Mt = e.object({
1087
+ items: e.array(jt),
1088
+ meta: y
1089
+ });
1090
+ e.object({
1091
+ detail: e.string().optional(),
1092
+ status: e.enum(["404"]),
1093
+ code: e.enum(["issuer_not_found"])
1094
+ });
1095
+ var Nt = e.object({
1096
+ uuid: e.uuid(),
1097
+ createdAt: e.string(),
1098
+ updatedAt: e.string(),
1099
+ email: e.string().nullable(),
1100
+ name: e.string().nullable(),
1101
+ phoneNumber: e.string().nullable(),
1102
+ website: e.string().nullable(),
1103
+ address: E.nullable(),
1104
+ vatNumber: e.string().nullable(),
1105
+ bic: e.string().nullable(),
1106
+ bankAccountNumber: e.string().nullable(),
1107
+ currency: C,
1108
+ sequencePrefix: e.string().nullable(),
1109
+ defaultPaymentTerm: Tt
1110
+ }), Pt = e.object({
1111
+ email: e.email().nullable(),
1112
+ name: e.string().nullable(),
1113
+ phoneNumber: e.string().nullable(),
1114
+ website: e.string().nullable(),
1115
+ address: xt.nullable(),
1116
+ vatNumber: e.string().nullable(),
1117
+ bankAccountNumber: e.string().nullable(),
1118
+ bic: e.string().nullable(),
1119
+ currency: C,
1120
+ sequencePrefix: e.string().nullable(),
1121
+ defaultPaymentTerm: Tt
1122
+ });
1123
+ e.object({
1124
+ detail: e.string().optional(),
1125
+ status: e.enum(["404"]),
1126
+ code: e.enum(["invoice_not_found"])
1127
+ });
1128
+ var D = e.object({
1129
+ definitionUuid: e.uuid(),
1130
+ type: e.enum(["text"]),
1131
+ value: e.string()
1132
+ }), O = e.object({
1133
+ definitionUuid: e.uuid(),
1134
+ type: e.enum(["text_array"]),
1135
+ value: e.array(e.string())
1136
+ }), k = e.object({
1137
+ definitionUuid: e.uuid(),
1138
+ type: e.enum(["number"]),
1139
+ value: e.number()
1140
+ }), A = e.object({
1141
+ definitionUuid: e.uuid(),
1142
+ type: e.enum(["boolean"]),
1143
+ value: e.boolean()
1144
+ }), j = e.object({
1145
+ definitionUuid: e.uuid(),
1146
+ type: e.enum(["date"]),
1147
+ value: e.union([
1148
+ e.iso.date(),
1149
+ e.enum(["infinity"]),
1150
+ e.enum(["-infinity"])
1151
+ ])
1152
+ }), M = e.object({
1153
+ definitionUuid: e.uuid(),
1154
+ type: e.enum(["timestamp"]),
1155
+ value: e.iso.datetime()
1156
+ }), N = e.object({
1157
+ definitionUuid: e.uuid(),
1158
+ type: e.enum(["single_select"]),
1159
+ value: e.string()
1160
+ }), P = e.object({
1161
+ definitionUuid: e.uuid(),
1162
+ type: e.enum(["multi_select"]),
1163
+ value: e.array(e.string())
1164
+ }), F = e.object({
1165
+ definitionUuid: e.uuid(),
1166
+ type: e.enum(["monetary"]),
1167
+ value: w
1168
+ }), Ft = e.enum(["standard", "credit_note"]), It = e.object({
1169
+ uuid: e.uuid(),
1170
+ name: e.string().nullable(),
1171
+ email: e.email().nullable(),
1172
+ phoneNumber: e.string().nullable(),
1173
+ website: e.string().nullable(),
1174
+ address: E.nullable(),
1175
+ vatNumber: e.string().nullable(),
1176
+ bankAccountNumber: e.string().nullable(),
1177
+ alternativeBankAccountNumber: e.string().nullable()
1178
+ }), Lt = e.object({
1179
+ uuid: e.uuid(),
1180
+ name: e.string().nullable(),
1181
+ email: e.email().nullable()
1182
+ }), Rt = e.object({
1183
+ uuid: e.uuid(),
1184
+ name: e.string().nullable(),
1185
+ email: e.email().nullable(),
1186
+ phoneNumber: e.string().nullable(),
1187
+ address: E.nullable(),
1188
+ vatNumber: e.string().nullable(),
1189
+ type: x
1190
+ }), I = e.enum([
1191
+ "draft",
1192
+ "ready",
1193
+ "finalized"
1194
+ ]), L = e.enum([
1195
+ "0",
1196
+ "6",
1197
+ "12",
1198
+ "21"
1199
+ ]), zt = e.enum(["percentage", "amount"]), R = e.object({
1200
+ type: zt,
1201
+ amount: w.nullable(),
1202
+ percentage: e.number().nullable(),
1203
+ description: e.string().nullable()
1204
+ }), Bt = e.enum([
1205
+ "piece",
1206
+ "hour",
1207
+ "day",
1208
+ "kilometer",
1209
+ "kilogram",
1210
+ "meter",
1211
+ "cubic_meter",
1212
+ "square_meter",
1213
+ "litre"
1214
+ ]), Vt = e.object({
1215
+ uuid: e.uuid(),
1216
+ groupUuid: e.uuid().nullable(),
1217
+ position: e.number(),
1218
+ name: e.string(),
1219
+ description: e.string().nullable(),
1220
+ customFields: e.array(e.union([
1221
+ D,
1222
+ O,
1223
+ k,
1224
+ A,
1225
+ j,
1226
+ M,
1227
+ N,
1228
+ P,
1229
+ F
1230
+ ])),
1231
+ quantity: e.number(),
1232
+ unitPrice: w,
1233
+ vatRate: L,
1234
+ vatRatePercentage: e.number(),
1235
+ netAmount: w,
1236
+ grossAmount: w,
1237
+ discount: R.nullable(),
1238
+ unit: Bt,
1239
+ isDiscount: e.boolean()
1240
+ }), Ht = e.object({
1241
+ uuid: e.uuid(),
1242
+ position: e.number(),
1243
+ name: e.string(),
1244
+ description: e.string().nullable(),
1245
+ customFields: e.array(e.union([
1246
+ D,
1247
+ O,
1248
+ k,
1249
+ A,
1250
+ j,
1251
+ M,
1252
+ N,
1253
+ P,
1254
+ F
1255
+ ])),
1256
+ lines: e.array(Vt)
1257
+ }), Ut = e.object({
1258
+ vatRate: L,
1259
+ netAmount: w,
1260
+ vatAmount: w
1261
+ }), Wt = e.object({
1262
+ uuid: e.uuid(),
1263
+ createdAt: e.iso.datetime(),
1264
+ status: S,
1265
+ sequence: e.string().nullable()
1266
+ }), Gt = e.enum([
1267
+ "unsent",
1268
+ "processing",
1269
+ "sent",
1270
+ "viewed",
1271
+ "failed"
1272
+ ]), Kt = e.object({
1273
+ uuid: e.uuid(),
1274
+ sequence: e.string().nullable(),
1275
+ type: Ft,
1276
+ createdAt: e.iso.datetime(),
1277
+ updatedAt: e.iso.datetime(),
1278
+ issueOn: e.iso.date().nullable(),
1279
+ dueOn: e.iso.date().nullable(),
1280
+ deliveredOn: e.iso.date().nullable(),
1281
+ issuer: It,
1282
+ recipient: Lt.nullable(),
1283
+ customer: Rt,
1284
+ status: S,
1285
+ lifecycleStatus: I,
1286
+ paymentReference: e.string().nullable(),
1287
+ subject: e.string().nullable(),
1288
+ poNumber: e.string().nullable(),
1289
+ customFields: e.array(e.union([
1290
+ D,
1291
+ O,
1292
+ k,
1293
+ A,
1294
+ j,
1295
+ M,
1296
+ N,
1297
+ P,
1298
+ F
1299
+ ])),
1300
+ ungroupedLines: e.array(Vt),
1301
+ groups: e.array(Ht),
1302
+ vatSummaries: e.array(Ut),
1303
+ grossAmount: w,
1304
+ netAmount: w,
1305
+ effectiveNet: w,
1306
+ vatAmount: w,
1307
+ totalDiscountAmount: w.nullable(),
1308
+ globalDiscount: R.nullable(),
1309
+ originalInvoice: Wt.nullable(),
1310
+ externalRemarks: e.string().nullable(),
1311
+ deliveryStatus: Gt,
1312
+ isDisputed: e.boolean()
1313
+ }), qt = e.object({ customerUuid: e.uuid() }), Jt = e.object({ uuid: e.uuid() }), Yt = e.object({
1314
+ uuid: e.uuid(),
1315
+ name: e.string().nullable(),
1316
+ email: e.email().nullable(),
1317
+ phoneNumber: e.string().nullable(),
1318
+ website: e.string().nullable(),
1319
+ address: E.nullable(),
1320
+ vatNumber: e.string().nullable(),
1321
+ bankAccountNumber: e.string().nullable(),
1322
+ alternativeBankAccountNumber: e.string().nullable()
1323
+ }), Xt = e.object({
1324
+ uuid: e.uuid(),
1325
+ name: e.string().nullable(),
1326
+ email: e.email().nullable()
1327
+ }), Zt = e.object({
1328
+ uuid: e.uuid(),
1329
+ name: e.string().nullable(),
1330
+ email: e.email().nullable(),
1331
+ externalId: e.string().nullable(),
1332
+ phoneNumber: e.string().nullable(),
1333
+ address: E.nullable(),
1334
+ vatNumber: e.string().nullable(),
1335
+ type: x
1336
+ }), Qt = e.object({
1337
+ uuid: e.uuid(),
1338
+ quantity: e.number(),
1339
+ remainingQuantity: e.number().nullable()
1340
+ }), $t = e.object({
1341
+ uuid: e.uuid(),
1342
+ groupUuid: e.uuid().nullable(),
1343
+ position: e.number(),
1344
+ name: e.string(),
1345
+ description: e.string().nullable(),
1346
+ customFields: e.array(e.union([
1347
+ D,
1348
+ O,
1349
+ k,
1350
+ A,
1351
+ j,
1352
+ M,
1353
+ N,
1354
+ P,
1355
+ F
1356
+ ])),
1357
+ quantity: e.number(),
1358
+ unitPrice: w,
1359
+ vatRate: L,
1360
+ vatRatePercentage: e.number(),
1361
+ netAmount: w,
1362
+ grossAmount: w,
1363
+ discount: R.nullable(),
1364
+ unit: Bt,
1365
+ isDiscount: e.boolean(),
1366
+ originalLine: Qt.nullable()
1367
+ }), en = e.object({
1368
+ uuid: e.uuid(),
1369
+ position: e.number(),
1370
+ name: e.string(),
1371
+ description: e.string().nullable(),
1372
+ customFields: e.array(e.union([
1373
+ D,
1374
+ O,
1375
+ k,
1376
+ A,
1377
+ j,
1378
+ M,
1379
+ N,
1380
+ P,
1381
+ F
1382
+ ])),
1383
+ lines: e.array($t)
1384
+ }), tn = e.object({
1385
+ vatRate: L,
1386
+ netAmount: w,
1387
+ vatAmount: w
1388
+ }), nn = e.object({
1389
+ uuid: e.uuid(),
1390
+ name: e.string(),
1391
+ mimeType: Se,
1392
+ blurHash: e.string().nullable()
1393
+ }), rn = e.object({
1394
+ uuid: e.uuid(),
1395
+ createdAt: e.iso.datetime(),
1396
+ status: S,
1397
+ sequence: e.string().nullable(),
1398
+ grossAmount: w,
1399
+ totalCreditedAmount: w.nullable(),
1400
+ paidAmount: w.nullable(),
1401
+ balanceDueAmount: w.nullable(),
1402
+ creditableAmount: w.nullable()
1403
+ }), an = e.object({
1404
+ uuid: e.string(),
1405
+ firstName: e.string().nullable(),
1406
+ lastName: e.string().nullable()
1407
+ }), on = e.enum(["user", "service_user"]), sn = e.object({
1408
+ uuid: e.uuid(),
1409
+ firstName: e.string().nullable(),
1410
+ lastName: e.string().nullable(),
1411
+ type: on
1412
+ }), z = e.enum([
1413
+ "unpaid",
1414
+ "partially_paid",
1415
+ "paid",
1416
+ "overpaid",
1417
+ "credited",
1418
+ "settled"
1419
+ ]), cn = e.object({
1420
+ uuid: e.uuid(),
1421
+ sentAt: e.iso.datetime()
1422
+ }), ln = e.enum(["after_last_reminder", "after_due_date"]), un = e.object({
1423
+ uuid: e.uuid(),
1424
+ sequence: e.number(),
1425
+ schedule: ln,
1426
+ offsetDays: e.number()
1427
+ }), dn = e.object({
1428
+ uuid: e.uuid(),
1429
+ sequence: e.string().nullable(),
1430
+ type: Ft,
1431
+ createdAt: e.iso.datetime(),
1432
+ updatedAt: e.iso.datetime(),
1433
+ issueOn: e.iso.date().nullable(),
1434
+ dueOn: e.iso.date().nullable(),
1435
+ deliveredOn: e.iso.date().nullable(),
1436
+ issuer: Yt,
1437
+ recipient: Xt.nullable(),
1438
+ customer: Zt,
1439
+ status: S,
1440
+ lifecycleStatus: I,
1441
+ paymentReference: e.string().nullable(),
1442
+ subject: e.string().nullable(),
1443
+ poNumber: e.string().nullable(),
1444
+ customFields: e.array(e.union([
1445
+ D,
1446
+ O,
1447
+ k,
1448
+ A,
1449
+ j,
1450
+ M,
1451
+ N,
1452
+ P,
1453
+ F
1454
+ ])),
1455
+ ungroupedLines: e.array($t),
1456
+ groups: e.array(en),
1457
+ vatSummaries: e.array(tn),
1458
+ grossAmount: w,
1459
+ netAmount: w,
1460
+ effectiveNet: w,
1461
+ vatAmount: w,
1462
+ totalDiscountAmount: w.nullable(),
1463
+ globalDiscount: R.nullable(),
1464
+ attachments: e.array(nn),
1465
+ creditNotes: e.array(rn),
1466
+ originalInvoice: rn.nullable(),
1467
+ preparedBy: an,
1468
+ lastUpdatedBy: sn.nullable(),
1469
+ file: nn.nullable(),
1470
+ externalRemarks: e.string().nullable(),
1471
+ paidAmount: w.nullable(),
1472
+ settlementStatus: z,
1473
+ balanceDueAmount: w.nullable(),
1474
+ currency: C,
1475
+ deliveryStatus: Gt,
1476
+ isDisputed: e.boolean(),
1477
+ isOverdue: e.boolean(),
1478
+ reminders: e.array(cn),
1479
+ reminderConfigs: e.array(un)
1480
+ }), fn = e.enum([
1481
+ "created_at",
1482
+ "issued_on",
1483
+ "sequence",
1484
+ "customer",
1485
+ "netAmount"
1486
+ ]), pn = e.object({
1487
+ key: fn,
1488
+ order: ut
1489
+ }), B = e.object({
1490
+ definitionUuid: e.uuid(),
1491
+ type: e.enum(["number"]),
1492
+ value: e.number()
1493
+ }), V = e.object({
1494
+ definitionUuid: e.uuid(),
1495
+ type: e.enum(["date"]),
1496
+ value: e.iso.date()
1497
+ }), H = e.object({
1498
+ definitionUuid: e.uuid(),
1499
+ type: e.enum(["timestamp"]),
1500
+ value: e.iso.datetime()
1501
+ }), U = e.object({
1502
+ definitionUuid: e.uuid(),
1503
+ type: e.enum(["boolean"]),
1504
+ value: e.boolean()
1505
+ }), W = e.object({
1506
+ definitionUuid: e.uuid(),
1507
+ type: e.enum(["monetary"]),
1508
+ value: w
1509
+ }), G = e.object({
1510
+ definitionUuid: e.uuid(),
1511
+ type: e.enum(["multi_select"]),
1512
+ value: e.array(e.string())
1513
+ }), K = e.object({
1514
+ definitionUuid: e.uuid(),
1515
+ type: e.enum(["single_select"]),
1516
+ value: e.string()
1517
+ }), q = e.object({
1518
+ definitionUuid: e.uuid(),
1519
+ type: e.enum(["text_array"]),
1520
+ value: e.array(e.string())
1521
+ }), J = e.object({
1522
+ definitionUuid: e.uuid(),
1523
+ type: e.enum(["text"]),
1524
+ value: e.string()
1525
+ }), Y = e.object({
1526
+ startDate: e.iso.date(),
1527
+ endDate: e.iso.date()
1528
+ }), mn = e.enum(["include", "exclude"]), X = e.object({
1529
+ scope: mn,
1530
+ values: e.array(e.uuid())
1531
+ }), hn = e.object({
1532
+ statuses: e.array(S).optional(),
1533
+ lifecycleStatuses: e.array(I).optional(),
1534
+ customerUuids: e.array(e.uuid()).optional(),
1535
+ dueOnRange: Y.optional(),
1536
+ issuedOnRange: Y.optional(),
1537
+ invoiceUuids: X.optional(),
1538
+ isDisputed: e.boolean().optional(),
1539
+ isOverdue: e.boolean().optional(),
1540
+ settlementStatuses: e.array(z).optional(),
1541
+ customerExternalIds: e.array(e.string()).optional(),
1542
+ isOutstanding: e.boolean().optional(),
1543
+ customFields: e.array(e.union([
1544
+ B,
1545
+ V,
1546
+ H,
1547
+ U,
1548
+ W,
1549
+ G,
1550
+ K,
1551
+ q,
1552
+ J
1553
+ ])).optional()
1554
+ }), gn = e.object({
1555
+ uuid: e.uuid(),
1556
+ externalId: e.string().nullable(),
1557
+ name: e.string()
1558
+ }), _n = e.object({
1559
+ uuid: e.uuid(),
1560
+ type: Ft,
1561
+ createdAt: e.iso.datetime(),
1562
+ issuedOn: e.iso.date().nullable(),
1563
+ dueOn: e.iso.date().nullable(),
1564
+ subject: e.string().nullable(),
1565
+ customer: gn,
1566
+ status: S,
1567
+ lifecycleStatus: I,
1568
+ netAmount: w,
1569
+ grossAmount: w,
1570
+ sequence: e.string().nullable(),
1571
+ paidAmount: w.nullable(),
1572
+ totalCreditedAmount: w.nullable(),
1573
+ settlementStatus: z,
1574
+ balanceDueAmount: w.nullable(),
1575
+ isDisputed: e.boolean(),
1576
+ isOverdue: e.boolean(),
1577
+ deliveryStatus: Gt,
1578
+ customFields: e.array(e.union([
1579
+ D,
1580
+ O,
1581
+ k,
1582
+ A,
1583
+ j,
1584
+ M,
1585
+ N,
1586
+ P,
1587
+ F
1588
+ ]))
1589
+ }), vn = e.object({
1590
+ items: e.array(_n),
1591
+ meta: y
1592
+ });
1593
+ e.object({
1594
+ detail: e.string().optional(),
1595
+ status: e.enum(["409"]),
1596
+ code: e.enum(["edit_non_draft_invoice"])
1597
+ }), e.object({
1598
+ detail: e.string().optional(),
1599
+ status: e.enum(["400"]),
1600
+ code: e.enum(["custom_field_value_validation"])
1601
+ });
1602
+ var yn = e.object({
1603
+ issuedOn: e.iso.date(),
1604
+ deliveredOn: e.iso.date().nullable(),
1605
+ dueOn: e.iso.date(),
1606
+ poNumber: e.string().nullable(),
1607
+ subject: e.string().nullable(),
1608
+ preparedByUuid: e.uuid(),
1609
+ recipientUuid: e.uuid().nullish(),
1610
+ externalRemarks: e.string().nullable(),
1611
+ customerUuid: e.uuid().optional(),
1612
+ customFields: e.array(e.union([
1613
+ D,
1614
+ O,
1615
+ k,
1616
+ A,
1617
+ j,
1618
+ M,
1619
+ N,
1620
+ P,
1621
+ F
1622
+ ])).optional()
1623
+ });
1624
+ e.object({
1625
+ detail: e.string().optional(),
1626
+ status: e.enum(["409"]),
1627
+ code: e.enum(["currency_mismatch"])
1628
+ }), e.object({
1629
+ detail: e.string().optional(),
1630
+ status: e.enum(["409"]),
1631
+ code: e.enum(["invoice_not_standard"])
1632
+ }), e.object({
1633
+ detail: e.string().optional(),
1634
+ status: e.enum(["400"]),
1635
+ code: e.enum(["discount_line_has_discount"])
1636
+ }), e.object({
1637
+ detail: e.string().optional(),
1638
+ status: e.enum(["400"]),
1639
+ code: e.enum(["invoice_line_and_group_position_overlap"])
1640
+ });
1641
+ var bn = e.object({
1642
+ name: e.string(),
1643
+ description: e.string().nullable(),
1644
+ position: e.int(),
1645
+ quantity: e.number().lte(1e4),
1646
+ unitPrice: w,
1647
+ vatRate: L,
1648
+ discount: R.nullable(),
1649
+ unit: Bt,
1650
+ isDiscount: e.boolean(),
1651
+ customFields: e.array(e.union([
1652
+ D,
1653
+ O,
1654
+ k,
1655
+ A,
1656
+ j,
1657
+ M,
1658
+ N,
1659
+ P,
1660
+ F
1661
+ ])).optional()
1662
+ }), xn = e.object({
1663
+ name: e.string(),
1664
+ description: e.string().nullable(),
1665
+ position: e.int(),
1666
+ lines: e.array(bn),
1667
+ customFields: e.array(e.union([
1668
+ D,
1669
+ O,
1670
+ k,
1671
+ A,
1672
+ j,
1673
+ M,
1674
+ N,
1675
+ P,
1676
+ F
1677
+ ])).optional()
1678
+ }), Sn = e.object({
1679
+ groups: e.array(xn),
1680
+ ungroupedLines: e.array(bn)
1681
+ });
1682
+ e.object({
1683
+ detail: e.string().optional(),
1684
+ status: e.enum(["409"]),
1685
+ code: e.enum(["global_discount_exceeds_total_net"])
1686
+ }), e.object({ discount: R.nullable() });
1687
+ var Cn = e.object({ discount: R });
1688
+ e.object({
1689
+ detail: e.string().optional(),
1690
+ status: e.enum(["409"]),
1691
+ code: e.enum(["file_unconfirmed"])
1692
+ });
1693
+ var wn = e.object({ fileUuids: e.array(e.uuid()) });
1694
+ e.object({
1695
+ detail: e.string().optional(),
1696
+ status: e.enum(["404"]),
1697
+ code: e.enum(["invoice_sequence_counter_not_found"])
1698
+ }), e.object({
1699
+ detail: e.string().optional(),
1700
+ status: e.enum(["409"]),
1701
+ code: e.enum(["invoice_has_no_lines"])
1702
+ }), e.object({
1703
+ detail: e.string().optional(),
1704
+ status: e.enum(["409"]),
1705
+ code: e.enum(["invoice_already_finalized"])
1706
+ }), e.object({
1707
+ detail: e.string().optional(),
1708
+ status: e.enum(["409"]),
1709
+ code: e.enum(["credit_note_from_draft_invoice"])
1710
+ }), e.object({
1711
+ detail: e.string().optional(),
1712
+ status: e.enum(["409"]),
1713
+ code: e.enum(["credit_note_from_credit_note"])
1714
+ }), e.object({
1715
+ detail: e.string().optional(),
1716
+ status: e.enum(["409"]),
1717
+ code: e.enum(["credit_note_settled"])
1718
+ });
1719
+ var Tn = e.object({ uuid: e.uuid() });
1720
+ e.object({
1721
+ detail: e.string().optional(),
1722
+ status: e.enum(["409"]),
1723
+ code: e.enum(["invoice_not_credit_note"])
1724
+ });
1725
+ var En = e.object({
1726
+ name: e.string(),
1727
+ description: e.string().nullable(),
1728
+ position: e.int(),
1729
+ quantity: e.number().lte(1e4),
1730
+ unitPrice: w,
1731
+ vatRate: L,
1732
+ discount: R.nullable(),
1733
+ unit: Bt,
1734
+ isDiscount: e.boolean(),
1735
+ customFields: e.array(e.union([
1736
+ D,
1737
+ O,
1738
+ k,
1739
+ A,
1740
+ j,
1741
+ M,
1742
+ N,
1743
+ P,
1744
+ F
1745
+ ])).optional()
1746
+ }), Dn = e.object({
1747
+ name: e.string(),
1748
+ description: e.string().nullable(),
1749
+ position: e.int(),
1750
+ lines: e.array(En),
1751
+ customFields: e.array(e.union([
1752
+ D,
1753
+ O,
1754
+ k,
1755
+ A,
1756
+ j,
1757
+ M,
1758
+ N,
1759
+ P,
1760
+ F
1761
+ ])).optional()
1762
+ }), On = e.object({
1763
+ groups: e.array(Dn),
1764
+ ungroupedLines: e.array(En)
1765
+ }), kn = e.object({
1766
+ issuedOn: e.iso.date(),
1767
+ poNumber: e.string().nullable(),
1768
+ subject: e.string().nullable(),
1769
+ recipientUuid: e.uuid().nullish(),
1770
+ externalRemarks: e.string().nullable(),
1771
+ preparedByUuid: e.uuid().optional(),
1772
+ customFields: e.array(e.union([
1773
+ D,
1774
+ O,
1775
+ k,
1776
+ A,
1777
+ j,
1778
+ M,
1779
+ N,
1780
+ P,
1781
+ F
1782
+ ])).optional()
1783
+ });
1784
+ e.object({
1785
+ detail: e.string().optional(),
1786
+ status: e.enum(["409"]),
1787
+ code: e.enum(["credit_note_external_remarks_empty"])
1788
+ }), e.object({
1789
+ detail: e.string().optional(),
1790
+ status: e.enum(["409"]),
1791
+ code: e.enum(["credit_note_exceeds_creditable_amount"])
1792
+ }), e.object({
1793
+ detail: e.string().optional(),
1794
+ status: e.enum(["409"]),
1795
+ code: e.enum(["invoice_in_draft"])
1796
+ }), e.object({
1797
+ detail: e.string().optional(),
1798
+ status: e.enum(["409"]),
1799
+ code: e.enum(["invoice_pdf_not_generated"])
1800
+ }), e.object({
1801
+ detail: e.string().optional(),
1802
+ status: e.enum(["409"]),
1803
+ code: e.enum(["customer_has_no_default_recipient"])
1804
+ }), e.object({
1805
+ detail: e.string().optional(),
1806
+ status: e.enum(["409"]),
1807
+ code: e.enum(["invoice_max_reminders_reached"])
1808
+ }), e.object({
1809
+ detail: e.string().optional(),
1810
+ status: e.enum(["503"]),
1811
+ code: e.enum(["mail_unavailable"])
1812
+ });
1813
+ var An = e.object({
1814
+ statuses: e.array(S).optional(),
1815
+ lifecycleStatuses: e.array(I).optional(),
1816
+ customerUuids: e.array(e.uuid()).optional(),
1817
+ dueOnRange: Y.optional(),
1818
+ issuedOnRange: Y.optional(),
1819
+ invoiceUuids: X.optional(),
1820
+ isDisputed: e.boolean().optional(),
1821
+ isOverdue: e.boolean().optional(),
1822
+ settlementStatuses: e.array(z).optional(),
1823
+ customerExternalIds: e.array(e.string()).optional(),
1824
+ isOutstanding: e.boolean().optional(),
1825
+ customFields: e.array(e.union([
1826
+ B,
1827
+ V,
1828
+ H,
1829
+ U,
1830
+ W,
1831
+ G,
1832
+ K,
1833
+ q,
1834
+ J
1835
+ ])).optional()
1836
+ }), Z = e.object({
1837
+ total: e.number(),
1838
+ processed: e.number(),
1839
+ skipped: e.number()
1840
+ }), jn = e.object({ pointer: e.string() }), Mn = e.object({
1841
+ code: e.string(),
1842
+ detail: e.string().optional(),
1843
+ title: e.string().optional(),
1844
+ id: e.string().optional(),
1845
+ status: e.string().optional(),
1846
+ source: jn.optional(),
1847
+ meta: e.record(e.string(), e.unknown()).optional()
1848
+ }), Nn = e.object({
1849
+ status: e.number(),
1850
+ errors: e.array(Mn)
1851
+ }), Q = e.object({
1852
+ uuid: e.string(),
1853
+ errors: e.array(Nn)
1854
+ }), Pn = e.object({
1855
+ meta: Z,
1856
+ skipped: e.array(Q)
1857
+ }), Fn = e.object({
1858
+ statuses: e.array(S).optional(),
1859
+ lifecycleStatuses: e.array(I).optional(),
1860
+ customerUuids: e.array(e.uuid()).optional(),
1861
+ dueOnRange: Y.optional(),
1862
+ issuedOnRange: Y.optional(),
1863
+ invoiceUuids: X.optional(),
1864
+ isDisputed: e.boolean().optional(),
1865
+ isOverdue: e.boolean().optional(),
1866
+ settlementStatuses: e.array(z).optional(),
1867
+ customerExternalIds: e.array(e.string()).optional(),
1868
+ isOutstanding: e.boolean().optional(),
1869
+ customFields: e.array(e.union([
1870
+ B,
1871
+ V,
1872
+ H,
1873
+ U,
1874
+ W,
1875
+ G,
1876
+ K,
1877
+ q,
1878
+ J
1879
+ ])).optional()
1880
+ }), In = e.object({
1881
+ meta: Z,
1882
+ skipped: e.array(Q)
1883
+ });
1884
+ e.object({
1885
+ detail: e.string().optional(),
1886
+ status: e.enum(["409"]),
1887
+ code: e.enum(["invalid_invoice_transition"])
1888
+ }), e.object({
1889
+ detail: e.string().optional(),
1890
+ status: e.enum(["409"]),
1891
+ code: e.enum(["invoice_not_editable"])
1892
+ });
1893
+ var Ln = e.object({ uuid: e.uuid() });
1894
+ e.object({
1895
+ detail: e.string().optional(),
1896
+ status: e.enum(["409"]),
1897
+ code: e.enum(["invoice_not_finalized"])
1898
+ }), e.object({
1899
+ detail: e.string().optional(),
1900
+ status: e.enum(["409"]),
1901
+ code: e.enum(["invoice_status_not_eligible_for_paid"])
1902
+ });
1903
+ var Rn = e.object({
1904
+ statuses: e.array(S).optional(),
1905
+ lifecycleStatuses: e.array(I).optional(),
1906
+ customerUuids: e.array(e.uuid()).optional(),
1907
+ dueOnRange: Y.optional(),
1908
+ issuedOnRange: Y.optional(),
1909
+ invoiceUuids: X.optional(),
1910
+ isDisputed: e.boolean().optional(),
1911
+ isOverdue: e.boolean().optional(),
1912
+ settlementStatuses: e.array(z).optional(),
1913
+ customerExternalIds: e.array(e.string()).optional(),
1914
+ isOutstanding: e.boolean().optional(),
1915
+ customFields: e.array(e.union([
1916
+ B,
1917
+ V,
1918
+ H,
1919
+ U,
1920
+ W,
1921
+ G,
1922
+ K,
1923
+ q,
1924
+ J
1925
+ ])).optional()
1926
+ }), zn = e.object({
1927
+ meta: Z,
1928
+ skipped: e.array(Q)
1929
+ }), Bn = e.object({
1930
+ statuses: e.array(S).optional(),
1931
+ lifecycleStatuses: e.array(I).optional(),
1932
+ customerUuids: e.array(e.uuid()).optional(),
1933
+ dueOnRange: Y.optional(),
1934
+ issuedOnRange: Y.optional(),
1935
+ invoiceUuids: X.optional(),
1936
+ isDisputed: e.boolean().optional(),
1937
+ isOverdue: e.boolean().optional(),
1938
+ settlementStatuses: e.array(z).optional(),
1939
+ customerExternalIds: e.array(e.string()).optional(),
1940
+ isOutstanding: e.boolean().optional(),
1941
+ customFields: e.array(e.union([
1942
+ B,
1943
+ V,
1944
+ H,
1945
+ U,
1946
+ W,
1947
+ G,
1948
+ K,
1949
+ q,
1950
+ J
1951
+ ])).optional()
1952
+ }), Vn = e.object({
1953
+ meta: Z,
1954
+ skipped: e.array(Q)
1955
+ });
1956
+ e.object({
1957
+ detail: e.string().optional(),
1958
+ status: e.enum(["409"]),
1959
+ code: e.enum(["invoice_not_disputed"])
1960
+ });
1961
+ var Hn = e.object({
1962
+ statuses: e.array(S).optional(),
1963
+ lifecycleStatuses: e.array(I).optional(),
1964
+ customerUuids: e.array(e.uuid()).optional(),
1965
+ dueOnRange: Y.optional(),
1966
+ issuedOnRange: Y.optional(),
1967
+ invoiceUuids: X.optional(),
1968
+ isDisputed: e.boolean().optional(),
1969
+ isOverdue: e.boolean().optional(),
1970
+ settlementStatuses: e.array(z).optional(),
1971
+ customerExternalIds: e.array(e.string()).optional(),
1972
+ isOutstanding: e.boolean().optional(),
1973
+ customFields: e.array(e.union([
1974
+ B,
1975
+ V,
1976
+ H,
1977
+ U,
1978
+ W,
1979
+ G,
1980
+ K,
1981
+ q,
1982
+ J
1983
+ ])).optional()
1984
+ }), Un = e.object({
1985
+ meta: Z,
1986
+ skipped: e.array(Q)
1987
+ }), Wn = e.object({
1988
+ statuses: e.array(S).optional(),
1989
+ lifecycleStatuses: e.array(I).optional(),
1990
+ customerUuids: e.array(e.uuid()).optional(),
1991
+ dueOnRange: Y.optional(),
1992
+ issuedOnRange: Y.optional(),
1993
+ invoiceUuids: X.optional(),
1994
+ isDisputed: e.boolean().optional(),
1995
+ isOverdue: e.boolean().optional(),
1996
+ settlementStatuses: e.array(z).optional(),
1997
+ customerExternalIds: e.array(e.string()).optional(),
1998
+ isOutstanding: e.boolean().optional(),
1999
+ customFields: e.array(e.union([
2000
+ B,
2001
+ V,
2002
+ H,
2003
+ U,
2004
+ W,
2005
+ G,
2006
+ K,
2007
+ q,
2008
+ J
2009
+ ])).optional()
2010
+ }), Gn = e.object({
2011
+ meta: Z,
2012
+ skipped: e.array(Q)
2013
+ }), Kn = e.object({
2014
+ entityUuids: e.array(e.uuid()).optional(),
2015
+ entityTypes: e.array(e.enum([
2016
+ "customer",
2017
+ "invoice",
2018
+ "credit_note"
2019
+ ])).optional(),
2020
+ roles: e.array(e.enum([
2021
+ "actor",
2022
+ "customer",
2023
+ "invoice",
2024
+ "credit_note"
2025
+ ])).optional()
2026
+ }), qn = e.object({
2027
+ createdAt: e.string(),
2028
+ uuid: e.uuid()
2029
+ }), Jn = e.object({
2030
+ limit: e.number().gte(0).lte(100).optional(),
2031
+ key: qn.nullish()
2032
+ }), Yn = e.enum([
2033
+ "invoice-created",
2034
+ "invoice-updated",
2035
+ "invoice-finalized",
2036
+ "invoice-sent",
2037
+ "invoice-reminder-sent",
2038
+ "invoice-duplicated",
2039
+ "invoice-marked-as-ready",
2040
+ "invoice-marked-as-paid",
2041
+ "invoice-payment-created",
2042
+ "invoice-payment-deleted",
2043
+ "credit-note-created",
2044
+ "credit-note-updated",
2045
+ "customer-updated"
2046
+ ]), Xn = e.enum([
2047
+ "create",
2048
+ "update",
2049
+ "delete"
2050
+ ]), Zn = e.enum([
2051
+ "user",
2052
+ "service",
2053
+ "system"
2054
+ ]), Qn = e.object({
2055
+ uuid: e.uuid(),
2056
+ firstName: e.string().nullable(),
2057
+ lastName: e.string().nullable(),
2058
+ email: e.string().nullable()
2059
+ }), $n = e.enum([
2060
+ "actor",
2061
+ "customer",
2062
+ "invoice",
2063
+ "credit_note"
2064
+ ]), er = e.enum([
2065
+ "customer",
2066
+ "invoice",
2067
+ "credit_note"
2068
+ ]), tr = e.object({
2069
+ role: $n,
2070
+ type: er,
2071
+ uuid: e.uuid(),
2072
+ label: e.string().nullable()
2073
+ }), nr = e.object({
2074
+ entityRole: $n,
2075
+ field: e.string(),
2076
+ from: e.union([
2077
+ e.string(),
2078
+ e.number(),
2079
+ e.boolean()
2080
+ ]).nullable(),
2081
+ to: e.union([
2082
+ e.string(),
2083
+ e.number(),
2084
+ e.boolean()
2085
+ ]).nullable()
2086
+ }), rr = e.object({
2087
+ createdAt: e.iso.datetime(),
2088
+ action: Yn,
2089
+ changeType: Xn,
2090
+ actorType: Zn,
2091
+ actor: Qn.nullable(),
2092
+ entities: e.array(tr),
2093
+ changes: e.array(nr).nullable()
2094
+ }), ir = e.object({
2095
+ logs: e.array(rr),
2096
+ nextKey: qn.nullable()
2097
+ });
2098
+ e.object({
2099
+ detail: e.string().optional(),
2100
+ status: e.enum(["409"]),
2101
+ code: e.enum(["invoice_not_finalized_for_payment"])
2102
+ });
2103
+ var ar = e.object({
2104
+ amount: w,
2105
+ date: e.iso.date(),
2106
+ paymentReference: e.string().nullish(),
2107
+ remarks: e.string().nullish()
2108
+ }), or = e.object({ uuid: e.uuid() });
2109
+ e.object({
2110
+ detail: e.string().optional(),
2111
+ status: e.enum(["404"]),
2112
+ code: e.enum(["payment_not_found"])
2113
+ }), e.object({
2114
+ detail: e.string().optional(),
2115
+ status: e.enum(["409"]),
2116
+ code: e.enum(["payment_not_manual"])
2117
+ });
2118
+ var sr = e.enum(["manual", "exact"]), cr = e.object({
2119
+ uuid: e.uuid(),
2120
+ amount: w,
2121
+ date: e.iso.date(),
2122
+ createdAt: e.iso.datetime(),
2123
+ paymentReference: e.string().nullable(),
2124
+ remarks: e.string().nullable(),
2125
+ source: sr
2126
+ }), lr = e.object({ items: e.array(cr) }), ur = e.union([
2127
+ e.literal(1),
2128
+ e.literal(2),
2129
+ e.literal(3)
2130
+ ]), dr = e.object({
2131
+ locale: e.string(),
2132
+ value: e.string()
2133
+ }), $ = e.object({ items: e.array(dr) }), fr = e.object({
2134
+ subject: $,
2135
+ body: $
2136
+ }), pr = e.object({
2137
+ uuid: e.uuid(),
2138
+ issuerUuid: e.uuid(),
2139
+ sequence: ur,
2140
+ schedule: ln,
2141
+ offsetDays: e.number(),
2142
+ template: fr,
2143
+ fee: w
2144
+ }), mr = e.object({ items: e.array(pr) });
2145
+ e.object({
2146
+ detail: e.string().optional(),
2147
+ status: e.enum(["400"]),
2148
+ code: e.enum(["reminder_config_not_chronological"])
2149
+ }), e.object({
2150
+ detail: e.string().optional(),
2151
+ status: e.enum(["400"]),
2152
+ code: e.enum(["missing_required_reminder_config"])
2153
+ }), e.object({
2154
+ detail: e.string().optional(),
2155
+ status: e.enum(["400"]),
2156
+ code: e.enum(["additional_reminder_config"])
2157
+ });
2158
+ var hr = e.object({
2159
+ subject: $,
2160
+ body: $
2161
+ }), gr = e.object({
2162
+ sequence: e.number(),
2163
+ offsetDays: e.int().gte(1),
2164
+ schedule: ln,
2165
+ template: hr,
2166
+ fee: w
2167
+ }), _r = e.object({ reminders: e.array(gr) }), vr = e.enum([
2168
+ "invoice",
2169
+ "invoice-line",
2170
+ "invoice-line-group"
2171
+ ]), yr = e.object({ entityTypes: e.array(vr).optional() }), br = e.enum([
2172
+ "text",
2173
+ "text_array",
2174
+ "number",
2175
+ "boolean",
2176
+ "timestamp",
2177
+ "date",
2178
+ "single_select",
2179
+ "multi_select",
2180
+ "monetary"
2181
+ ]), xr = e.object({
2182
+ value: e.string(),
2183
+ label: $,
2184
+ order: e.number()
2185
+ }), Sr = e.object({
2186
+ uuid: e.uuid(),
2187
+ tenantUuid: e.uuid().nullable(),
2188
+ entityType: e.string(),
2189
+ key: e.string(),
2190
+ label: $,
2191
+ description: $.nullable(),
2192
+ type: br,
2193
+ isRequired: e.boolean(),
2194
+ choices: e.array(xr).nullable(),
2195
+ rules: e.record(e.string(), e.unknown()).nullable()
2196
+ });
2197
+ e.object({
2198
+ detail: e.string().optional(),
2199
+ status: e.enum(["404"]),
2200
+ code: e.enum(["dunning_case_not_found"])
2201
+ });
2202
+ var Cr = e.object({
2203
+ uuid: e.uuid(),
2204
+ type: x,
2205
+ name: e.string(),
2206
+ vatNumber: e.string().nullable(),
2207
+ email: e.string().nullable()
2208
+ }), wr = e.object({
2209
+ uuid: e.uuid(),
2210
+ date: e.iso.date(),
2211
+ amount: w
2212
+ }), Tr = e.object({
2213
+ uuid: e.uuid(),
2214
+ sequence: e.string(),
2215
+ grossAmount: w,
2216
+ finalizedOn: e.union([
2217
+ e.iso.date(),
2218
+ e.enum(["infinity"]),
2219
+ e.enum(["-infinity"])
2220
+ ])
2221
+ }), Er = e.object({
2222
+ uuid: e.uuid(),
2223
+ subject: e.string().nullable(),
2224
+ sequence: e.string(),
2225
+ dueOn: e.iso.date(),
2226
+ level: e.number(),
2227
+ grossAmount: w,
2228
+ balanceDueAmount: w,
2229
+ totalCreditedAmount: w,
2230
+ paidAmount: w,
2231
+ isDisputed: e.boolean(),
2232
+ settlementStatus: z,
2233
+ payments: e.array(wr),
2234
+ creditNotes: e.array(Tr)
2235
+ }), Dr = e.object({
2236
+ uuid: e.uuid(),
2237
+ sentAt: e.union([
2238
+ e.iso.datetime(),
2239
+ e.enum(["infinity"]),
2240
+ e.enum(["-infinity"])
2241
+ ]).nullable(),
2242
+ hasErrors: e.boolean()
2243
+ }), Or = e.enum(["missing_email"]), kr = e.object({
2244
+ uuid: e.uuid(),
2245
+ createdAt: e.iso.datetime(),
2246
+ updatedAt: e.iso.datetime(),
2247
+ closedAt: e.iso.datetime().nullable(),
2248
+ isClosed: e.boolean(),
2249
+ nextReminderOn: e.iso.date().nullable(),
2250
+ level: e.number().nullable(),
2251
+ customer: Cr,
2252
+ invoices: e.array(Er),
2253
+ outstandingBalance: w,
2254
+ totalPaid: w,
2255
+ totalInvoiced: w,
2256
+ totalCredited: w,
2257
+ totalFee: w,
2258
+ lastReminderSentAt: e.union([
2259
+ e.iso.datetime(),
2260
+ e.enum(["infinity"]),
2261
+ e.enum(["-infinity"])
2262
+ ]).nullable(),
2263
+ canSendReminder: e.boolean(),
2264
+ latestCreatedReminder: Dr.nullable(),
2265
+ blockedReason: Or.nullable()
2266
+ }), Ar = e.object({
2267
+ isOpen: e.boolean().optional(),
2268
+ customerUuid: e.uuid().optional(),
2269
+ level: e.number().optional(),
2270
+ dunningCaseUuids: X.optional()
2271
+ }), jr = e.object({
2272
+ uuid: e.uuid(),
2273
+ name: e.string()
2274
+ }), Mr = e.object({
2275
+ uuid: e.uuid(),
2276
+ sentAt: e.union([
2277
+ e.iso.datetime(),
2278
+ e.enum(["infinity"]),
2279
+ e.enum(["-infinity"])
2280
+ ]).nullable(),
2281
+ hasErrors: e.boolean()
2282
+ }), Nr = e.object({
2283
+ uuid: e.uuid(),
2284
+ customer: jr,
2285
+ level: e.number().nullable(),
2286
+ daysOverdue: e.number(),
2287
+ outstandingBalance: w,
2288
+ nextReminderOn: e.union([
2289
+ e.iso.date(),
2290
+ e.enum(["infinity"]),
2291
+ e.enum(["-infinity"])
2292
+ ]).nullable(),
2293
+ lastReminderSentAt: e.union([
2294
+ e.iso.datetime(),
2295
+ e.enum(["infinity"]),
2296
+ e.enum(["-infinity"])
2297
+ ]).nullable(),
2298
+ canSendReminder: e.boolean(),
2299
+ latestCreatedReminder: Mr.nullable(),
2300
+ blockedReason: Or.nullable()
2301
+ }), Pr = e.object({
2302
+ items: e.array(Nr),
2303
+ meta: y
2304
+ });
2305
+ e.object({
2306
+ detail: e.string().optional(),
2307
+ status: e.enum(["409"]),
2308
+ code: e.enum(["dunning_case_reminder_not_due"])
2309
+ }), e.object({
2310
+ detail: e.string().optional(),
2311
+ status: e.enum(["409"]),
2312
+ code: e.enum(["dunning_case_reminder_pending"])
2313
+ }), e.object({
2314
+ detail: e.string().optional(),
2315
+ status: e.enum(["409"]),
2316
+ code: e.enum(["dunning_case_reminder_config_not_found"])
2317
+ });
2318
+ var Fr = e.object({
2319
+ isOpen: e.boolean().optional(),
2320
+ customerUuid: e.uuid().optional(),
2321
+ level: e.number().optional(),
2322
+ dunningCaseUuids: X.optional()
2323
+ }), Ir = e.object({
2324
+ meta: Z,
2325
+ skipped: e.array(Q)
2326
+ }), Lr = e.object({
2327
+ isOpen: e.boolean().optional(),
2328
+ customerUuid: e.uuid().optional(),
2329
+ level: e.number().optional(),
2330
+ dunningCaseUuids: X.optional()
2331
+ }), Rr = e.object({
2332
+ meta: Z,
2333
+ skipped: e.array(Q)
2334
+ }), zr = e.object({
2335
+ name: e.string().nullable(),
2336
+ email: e.email().nullable(),
2337
+ phoneNumber: e.string().nullable(),
2338
+ website: e.string().nullable(),
2339
+ address: E.nullable(),
2340
+ vatNumber: e.string().nullable(),
2341
+ bankAccountNumber: e.string().nullable(),
2342
+ alternativeBankAccountNumber: e.string().nullable(),
2343
+ currency: C
2344
+ }), Br = e.object({
2345
+ name: e.string(),
2346
+ address: E.nullable(),
2347
+ email: e.email().nullable(),
2348
+ externalId: e.string().nullable(),
2349
+ phoneNumber: e.string().nullable(),
2350
+ vatNumber: e.string().nullable(),
2351
+ type: x,
2352
+ locale: b,
2353
+ currency: C
2354
+ }), Vr = e.object({
2355
+ name: e.string().nullable(),
2356
+ email: e.email()
2357
+ }), Hr = e.object({
2358
+ sequence: e.string(),
2359
+ issuedOn: e.iso.date(),
2360
+ dueOn: e.iso.date(),
2361
+ outstandingBalance: w,
2362
+ level: e.number(),
2363
+ daysOverdue: e.number(),
2364
+ fee: w,
2365
+ isNew: e.boolean()
2366
+ }), Ur = e.object({
2367
+ sequence: e.string(),
2368
+ issuedOn: e.iso.date(),
2369
+ dueOn: e.iso.date(),
2370
+ outstandingBalance: w,
2371
+ daysOverdue: e.number()
2372
+ }), Wr = e.object({
2373
+ createdAt: e.iso.datetime(),
2374
+ sentAt: e.iso.datetime().nullable(),
2375
+ level: e.number(),
2376
+ issuer: zr,
2377
+ customer: Br,
2378
+ recipient: Vr,
2379
+ invoices: e.array(Hr),
2380
+ outstandingInvoices: e.array(Ur),
2381
+ totalFee: w
2382
+ });
2383
+ e.object({
2384
+ detail: e.string().optional(),
2385
+ status: e.enum(["500"]),
2386
+ code: e.enum(["internal_server_error"])
2387
+ }), e.object({
2388
+ fresh: e.boolean(),
2389
+ collections: e.array(ge).optional()
2390
+ }), e.object({ collections: e.array(ge).optional() }), e.object({ user: e.uuid() }), e.object({ uuid: e.uuid() }), e.object({
2391
+ pagination: v.optional(),
2392
+ search: e.string().optional()
2393
+ }), e.void(), e.void(), e.object({ role: e.uuid() }), e.void(), e.object({ role: e.uuid() }), e.object({ role: e.uuid() }), e.void();
2394
+ var Gr = Ce, Kr = we;
2395
+ e.object({ file: e.uuid() }), e.void();
2396
+ var qr = Te, Jr = e.object({ file: e.uuid() }), Yr = e.void(), Xr = e.object({ file: e.uuid() });
2397
+ e.object({ file: e.uuid() }), e.object({ token: e.string() }), e.object({
2398
+ filter: Ae.optional(),
2399
+ pagination: Me.optional()
2400
+ }), e.object({
2401
+ filter: ze.optional(),
2402
+ search: e.string(),
2403
+ pagination: Ve.optional()
2404
+ }), e.void(), e.void(), e.object({
2405
+ filter: tt.optional(),
2406
+ pagination: rt.optional()
2407
+ }), e.object({ notificationUuid: e.uuid() }), e.void(), e.void(), e.object({ notificationUuid: e.uuid() }), e.void(), e.object({ notificationUuid: e.uuid() }), e.void(), e.void(), e.void(), e.object({
2408
+ sort: e.array(dt).optional(),
2409
+ filter: pt.optional(),
2410
+ pagination: ht.optional()
2411
+ }), e.object({ jobId: e.uuid() }), e.object({
2412
+ pagination: v.optional(),
2413
+ search: e.string().optional()
2414
+ }), e.object({ uuid: e.uuid() }), e.object({ uuid: e.uuid() }), e.void(), e.object({ uuid: e.uuid() }), e.object({ slug: e.string() }), e.object({ uuid: e.uuid() }), e.void();
2415
+ var Zr = e.object({
2416
+ pagination: v.optional(),
2417
+ filter: Dt.optional(),
2418
+ search: e.string().optional()
2419
+ }), Qr = kt, $r = e.object({ uuid: e.uuid() }), ei = Et;
2420
+ e.object({ uuid: e.uuid() }), e.void(), e.object({ uuid: e.uuid() }), e.void(), e.object({ uuid: e.uuid() }), e.void(), e.object({ uuid: e.uuid() }), e.void(), e.object({ uuid: e.uuid() }), e.void(), e.object({ uuid: e.uuid() }), e.object({ uuid: e.uuid() }), e.void();
2421
+ var ti = e.object({ uuid: e.uuid() }), ni = e.object({ pagination: v.optional() }), ri = Mt, ii = Nt, ai = Pt, oi = e.void(), si = e.object({ token: e.string() }), ci = Kt, li = e.object({
2422
+ pagination: v.optional(),
2423
+ sort: e.array(pn).optional(),
2424
+ filter: hn.optional(),
2425
+ search: e.string().optional()
2426
+ }), ui = vn, di = qt, fi = Jt, pi = e.object({ uuid: e.uuid() }), mi = e.void(), hi = e.object({ uuid: e.uuid() }), gi = dn, _i = yn, vi = e.object({ uuid: e.uuid() }), yi = e.void(), bi = Sn, xi = e.object({ uuid: e.uuid() }), Si = e.void();
2427
+ e.object({ uuid: e.uuid() }), e.void();
2428
+ var Ci = Cn, wi = e.object({ uuid: e.uuid() }), Ti = e.void(), Ei = wn, Di = e.object({ uuid: e.uuid() }), Oi = e.void(), ki = e.object({ uuid: e.uuid() }), Ai = e.object({ uuid: e.uuid() }), ji = Tn, Mi = On, Ni = e.object({ uuid: e.uuid() }), Pi = e.void(), Fi = kn, Ii = e.object({ uuid: e.uuid() }), Li = e.void(), Ri = e.object({ uuid: e.uuid() }), zi = e.object({ uuid: e.uuid() }), Bi = e.object({
2429
+ filter: An.optional(),
2430
+ search: e.string().optional()
2431
+ }), Vi = Pn, Hi = e.object({
2432
+ filter: Fn.optional(),
2433
+ search: e.string().optional()
2434
+ }), Ui = In, Wi = e.object({ uuid: e.uuid() }), Gi = e.void(), Ki = e.object({ uuid: e.uuid() }), qi = Ln, Ji = e.object({ uuid: e.uuid() }), Yi = e.void(), Xi = e.object({ uuid: e.uuid() }), Zi = e.void(), Qi = e.object({ uuid: e.uuid() }), $i = e.void(), ea = e.object({
2435
+ filter: Rn.optional(),
2436
+ search: e.string().optional()
2437
+ }), ta = zn, na = e.object({
2438
+ filter: Bn.optional(),
2439
+ search: e.string().optional()
2440
+ }), ra = Vn, ia = e.object({ uuid: e.uuid() }), aa = e.void(), oa = e.object({
2441
+ filter: Hn.optional(),
2442
+ search: e.string().optional()
2443
+ }), sa = Un, ca = e.object({
2444
+ filter: Wn.optional(),
2445
+ search: e.string().optional()
2446
+ }), la = Gn, ua = e.object({
2447
+ filter: Kn.optional(),
2448
+ pagination: Jn.optional()
2449
+ }), da = ir, fa = e.object({ uuid: e.uuid() }), pa = lr, ma = ar, ha = e.object({ uuid: e.uuid() }), ga = or, _a = e.object({
2450
+ uuid: e.uuid(),
2451
+ paymentUuid: e.uuid()
2452
+ }), va = e.void(), ya = mr, ba = _r, xa = e.void(), Sa = e.object({ filter: yr.optional() }), Ca = e.array(Sr), wa = e.object({ uuid: e.uuid() }), Ta = kr, Ea = e.object({
2453
+ pagination: v.optional(),
2454
+ filter: Ar.optional()
2455
+ }), Da = Pr, Oa = e.object({ uuid: e.uuid() }), ka = e.object({ filter: Fr.optional() }), Aa = Ir, ja = e.object({ filter: Lr.optional() }), Ma = Rr, Na = e.object({ token: e.string() }), Pa = Wr, Fa = (t) => (t.client ?? g).post({
2456
+ requestValidator: async (t) => await e.object({
2457
+ body: Gr,
2458
+ path: e.never().optional(),
2459
+ query: e.never().optional()
2460
+ }).parseAsync(t),
2461
+ responseValidator: async (e) => await Kr.parseAsync(e),
2462
+ url: "/api/v1/files",
2463
+ ...t,
2464
+ headers: {
2465
+ "Content-Type": "application/json",
2466
+ ...t.headers
2467
+ }
2468
+ }), Ia = (t) => (t.client ?? g).post({
2469
+ requestValidator: async (t) => await e.object({
2470
+ body: qr,
2471
+ path: Jr,
2472
+ query: e.never().optional()
2473
+ }).parseAsync(t),
2474
+ responseValidator: async (e) => await Yr.parseAsync(e),
2475
+ url: "/api/v2/files/{file}/confirm-upload",
2476
+ ...t,
2477
+ headers: {
2478
+ "Content-Type": "application/json",
2479
+ ...t.headers
2480
+ }
2481
+ }), La = (t) => (t.client ?? g).post({
2482
+ requestValidator: async (t) => await e.object({
2483
+ body: e.never().optional(),
2484
+ path: Xr,
2485
+ query: e.never().optional()
2486
+ }).parseAsync(t),
2487
+ url: "/api/v1/files/{file}/download",
2488
+ ...t
2489
+ }), Ra = (t) => (t?.client ?? g).get({
2490
+ requestValidator: async (t) => await e.object({
2491
+ body: e.never().optional(),
2492
+ path: e.never().optional(),
2493
+ query: Zr.optional()
2494
+ }).parseAsync(t),
2495
+ responseValidator: async (e) => await Qr.parseAsync(e),
2496
+ url: "/api/v1/customers",
2497
+ ...t
2498
+ }), za = (t) => (t.client ?? g).get({
2499
+ requestValidator: async (t) => await e.object({
2500
+ body: e.never().optional(),
2501
+ path: $r,
2502
+ query: e.never().optional()
2503
+ }).parseAsync(t),
2504
+ responseValidator: async (e) => await ei.parseAsync(e),
2505
+ url: "/api/v1/customers/{uuid}",
2506
+ ...t
2507
+ }), Ba = (t) => (t.client ?? g).get({
2508
+ requestValidator: async (t) => await e.object({
2509
+ body: e.never().optional(),
2510
+ path: ti,
2511
+ query: ni.optional()
2512
+ }).parseAsync(t),
2513
+ responseValidator: async (e) => await ri.parseAsync(e),
2514
+ url: "/api/v1/customers/{uuid}/recipients",
2515
+ ...t
2516
+ }), Va = (t) => (t?.client ?? g).get({
2517
+ requestValidator: async (t) => await e.object({
2518
+ body: e.never().optional(),
2519
+ path: e.never().optional(),
2520
+ query: e.never().optional()
2521
+ }).parseAsync(t),
2522
+ responseValidator: async (e) => await ii.parseAsync(e),
2523
+ url: "/api/v1/issuers",
2524
+ ...t
2525
+ }), Ha = (t) => (t.client ?? g).put({
2526
+ requestValidator: async (t) => await e.object({
2527
+ body: ai,
2528
+ path: e.never().optional(),
2529
+ query: e.never().optional()
2530
+ }).parseAsync(t),
2531
+ responseValidator: async (e) => await oi.parseAsync(e),
2532
+ url: "/api/v1/issuers",
2533
+ ...t,
2534
+ headers: {
2535
+ "Content-Type": "application/json",
2536
+ ...t.headers
2537
+ }
2538
+ }), Ua = (t) => (t.client ?? g).get({
2539
+ requestValidator: async (t) => await e.object({
2540
+ body: e.never().optional(),
2541
+ path: e.never().optional(),
2542
+ query: si
2543
+ }).parseAsync(t),
2544
+ responseValidator: async (e) => await ci.parseAsync(e),
2545
+ url: "/api/v1/public/invoices",
2546
+ ...t
2547
+ }), Wa = (t) => (t?.client ?? g).get({
2548
+ requestValidator: async (t) => await e.object({
2549
+ body: e.never().optional(),
2550
+ path: e.never().optional(),
2551
+ query: li.optional()
2552
+ }).parseAsync(t),
2553
+ responseValidator: async (e) => await ui.parseAsync(e),
2554
+ url: "/api/v1/invoices",
2555
+ ...t
2556
+ }), Ga = (t) => (t.client ?? g).post({
2557
+ requestValidator: async (t) => await e.object({
2558
+ body: di,
2559
+ path: e.never().optional(),
2560
+ query: e.never().optional()
2561
+ }).parseAsync(t),
2562
+ responseValidator: async (e) => await fi.parseAsync(e),
2563
+ url: "/api/v1/invoices",
2564
+ ...t,
2565
+ headers: {
2566
+ "Content-Type": "application/json",
2567
+ ...t.headers
2568
+ }
2569
+ }), Ka = (t) => (t.client ?? g).delete({
2570
+ requestValidator: async (t) => await e.object({
2571
+ body: e.never().optional(),
2572
+ path: pi,
2573
+ query: e.never().optional()
2574
+ }).parseAsync(t),
2575
+ responseValidator: async (e) => await mi.parseAsync(e),
2576
+ url: "/api/v1/invoices/{uuid}",
2577
+ ...t
2578
+ }), qa = (t) => (t.client ?? g).get({
2579
+ requestValidator: async (t) => await e.object({
2580
+ body: e.never().optional(),
2581
+ path: hi,
2582
+ query: e.never().optional()
2583
+ }).parseAsync(t),
2584
+ responseValidator: async (e) => await gi.parseAsync(e),
2585
+ url: "/api/v1/invoices/{uuid}",
2586
+ ...t
2587
+ }), Ja = (t) => (t.client ?? g).patch({
2588
+ requestValidator: async (t) => await e.object({
2589
+ body: _i,
2590
+ path: vi,
2591
+ query: e.never().optional()
2592
+ }).parseAsync(t),
2593
+ responseValidator: async (e) => await yi.parseAsync(e),
2594
+ url: "/api/v1/invoices/{uuid}",
2595
+ ...t,
2596
+ headers: {
2597
+ "Content-Type": "application/json",
2598
+ ...t.headers
2599
+ }
2600
+ }), Ya = (t) => (t.client ?? g).patch({
2601
+ requestValidator: async (t) => await e.object({
2602
+ body: bi,
2603
+ path: xi,
2604
+ query: e.never().optional()
2605
+ }).parseAsync(t),
2606
+ responseValidator: async (e) => await Si.parseAsync(e),
2607
+ url: "/api/v1/invoices/{uuid}/lines",
2608
+ ...t,
2609
+ headers: {
2610
+ "Content-Type": "application/json",
2611
+ ...t.headers
2612
+ }
2613
+ }), Xa = (t) => (t.client ?? g).patch({
2614
+ requestValidator: async (t) => await e.object({
2615
+ body: Ci,
2616
+ path: wi,
2617
+ query: e.never().optional()
2618
+ }).parseAsync(t),
2619
+ responseValidator: async (e) => await Ti.parseAsync(e),
2620
+ url: "/api/v2/invoices/{uuid}/discount",
2621
+ ...t,
2622
+ headers: {
2623
+ "Content-Type": "application/json",
2624
+ ...t.headers
2625
+ }
2626
+ }), Za = (t) => (t.client ?? g).patch({
2627
+ requestValidator: async (t) => await e.object({
2628
+ body: Ei,
2629
+ path: Di,
2630
+ query: e.never().optional()
2631
+ }).parseAsync(t),
2632
+ responseValidator: async (e) => await Oi.parseAsync(e),
2633
+ url: "/api/v1/invoices/{uuid}/attachments",
2634
+ ...t,
2635
+ headers: {
2636
+ "Content-Type": "application/json",
2637
+ ...t.headers
2638
+ }
2639
+ }), Qa = (t) => (t.client ?? g).post({
2640
+ requestValidator: async (t) => await e.object({
2641
+ body: e.never().optional(),
2642
+ path: ki,
2643
+ query: e.never().optional()
2644
+ }).parseAsync(t),
2645
+ url: "/api/v1/invoices/{uuid}/finalize",
2646
+ ...t
2647
+ }), $a = (t) => (t.client ?? g).post({
2648
+ requestValidator: async (t) => await e.object({
2649
+ body: e.never().optional(),
2650
+ path: Ai,
2651
+ query: e.never().optional()
2652
+ }).parseAsync(t),
2653
+ responseValidator: async (e) => await ji.parseAsync(e),
2654
+ url: "/api/v1/invoices/{uuid}/credit-note",
2655
+ ...t
2656
+ }), eo = (t) => (t.client ?? g).patch({
2657
+ requestValidator: async (t) => await e.object({
2658
+ body: Mi,
2659
+ path: Ni,
2660
+ query: e.never().optional()
2661
+ }).parseAsync(t),
2662
+ responseValidator: async (e) => await Pi.parseAsync(e),
2663
+ url: "/api/v1/credit-notes/{uuid}/lines",
2664
+ ...t,
2665
+ headers: {
2666
+ "Content-Type": "application/json",
2667
+ ...t.headers
2668
+ }
2669
+ }), to = (t) => (t.client ?? g).patch({
2670
+ requestValidator: async (t) => await e.object({
2671
+ body: Fi,
2672
+ path: Ii,
2673
+ query: e.never().optional()
2674
+ }).parseAsync(t),
2675
+ responseValidator: async (e) => await Li.parseAsync(e),
2676
+ url: "/api/v1/credit-notes/{uuid}",
2677
+ ...t,
2678
+ headers: {
2679
+ "Content-Type": "application/json",
2680
+ ...t.headers
2681
+ }
2682
+ }), no = (t) => (t.client ?? g).post({
2683
+ requestValidator: async (t) => await e.object({
2684
+ body: e.never().optional(),
2685
+ path: Ri,
2686
+ query: e.never().optional()
2687
+ }).parseAsync(t),
2688
+ url: "/api/v1/credit-notes/{uuid}/finalize",
2689
+ ...t
2690
+ }), ro = (t) => (t.client ?? g).post({
2691
+ requestValidator: async (t) => await e.object({
2692
+ body: e.never().optional(),
2693
+ path: zi,
2694
+ query: e.never().optional()
2695
+ }).parseAsync(t),
2696
+ url: "/api/v1/invoices/{uuid}/send-email",
2697
+ ...t
2698
+ }), io = (t) => (t?.client ?? g).post({
2699
+ requestValidator: async (t) => await e.object({
2700
+ body: e.never().optional(),
2701
+ path: e.never().optional(),
2702
+ query: Bi.optional()
2703
+ }).parseAsync(t),
2704
+ responseValidator: async (e) => await Vi.parseAsync(e),
2705
+ url: "/api/v1/invoices/send-mail",
2706
+ ...t
2707
+ }), ao = (t) => (t?.client ?? g).get({
2708
+ requestValidator: async (t) => await e.object({
2709
+ body: e.never().optional(),
2710
+ path: e.never().optional(),
2711
+ query: Hi.optional()
2712
+ }).parseAsync(t),
2713
+ responseValidator: async (e) => await Ui.parseAsync(e),
2714
+ url: "/api/v1/invoices/send-mail/preview",
2715
+ ...t
2716
+ }), oo = (t) => (t.client ?? g).post({
2717
+ requestValidator: async (t) => await e.object({
2718
+ body: e.never().optional(),
2719
+ path: Wi,
2720
+ query: e.never().optional()
2721
+ }).parseAsync(t),
2722
+ responseValidator: async (e) => await Gi.parseAsync(e),
2723
+ url: "/api/v1/invoices/{uuid}/mark-as-ready",
2724
+ ...t
2725
+ }), so = (t) => (t.client ?? g).post({
2726
+ requestValidator: async (t) => await e.object({
2727
+ body: e.never().optional(),
2728
+ path: Ki,
2729
+ query: e.never().optional()
2730
+ }).parseAsync(t),
2731
+ responseValidator: async (e) => await qi.parseAsync(e),
2732
+ url: "/api/v1/invoices/{uuid}/duplicate",
2733
+ ...t
2734
+ }), co = (t) => (t.client ?? g).post({
2735
+ requestValidator: async (t) => await e.object({
2736
+ body: e.never().optional(),
2737
+ path: Ji,
2738
+ query: e.never().optional()
2739
+ }).parseAsync(t),
2740
+ responseValidator: async (e) => await Yi.parseAsync(e),
2741
+ url: "/api/v1/invoices/{uuid}/mark-as-draft",
2742
+ ...t
2743
+ }), lo = (t) => (t.client ?? g).post({
2744
+ requestValidator: async (t) => await e.object({
2745
+ body: e.never().optional(),
2746
+ path: Xi,
2747
+ query: e.never().optional()
2748
+ }).parseAsync(t),
2749
+ responseValidator: async (e) => await Zi.parseAsync(e),
2750
+ url: "/api/v1/invoices/{uuid}/mark-as-disputed",
2751
+ ...t
2752
+ }), uo = (t) => (t.client ?? g).post({
2753
+ requestValidator: async (t) => await e.object({
2754
+ body: e.never().optional(),
2755
+ path: Qi,
2756
+ query: e.never().optional()
2757
+ }).parseAsync(t),
2758
+ responseValidator: async (e) => await $i.parseAsync(e),
2759
+ url: "/api/v1/invoices/{uuid}/mark-as-paid",
2760
+ ...t
2761
+ }), fo = (t) => (t?.client ?? g).get({
2762
+ requestValidator: async (t) => await e.object({
2763
+ body: e.never().optional(),
2764
+ path: e.never().optional(),
2765
+ query: ea.optional()
2766
+ }).parseAsync(t),
2767
+ responseValidator: async (e) => await ta.parseAsync(e),
2768
+ url: "/api/v1/invoices/mark-as-ready/preview",
2769
+ ...t
2770
+ }), po = (t) => (t?.client ?? g).post({
2771
+ requestValidator: async (t) => await e.object({
2772
+ body: e.never().optional(),
2773
+ path: e.never().optional(),
2774
+ query: na.optional()
2775
+ }).parseAsync(t),
2776
+ responseValidator: async (e) => await ra.parseAsync(e),
2777
+ url: "/api/v1/invoices/mark-as-ready",
2778
+ ...t
2779
+ }), mo = (t) => (t.client ?? g).post({
2780
+ requestValidator: async (t) => await e.object({
2781
+ body: e.never().optional(),
2782
+ path: ia,
2783
+ query: e.never().optional()
2784
+ }).parseAsync(t),
2785
+ responseValidator: async (e) => await aa.parseAsync(e),
2786
+ url: "/api/v1/invoices/{uuid}/withdraw-disputed",
2787
+ ...t
2788
+ }), ho = (t) => (t?.client ?? g).get({
2789
+ requestValidator: async (t) => await e.object({
2790
+ body: e.never().optional(),
2791
+ path: e.never().optional(),
2792
+ query: oa.optional()
2793
+ }).parseAsync(t),
2794
+ responseValidator: async (e) => await sa.parseAsync(e),
2795
+ url: "/api/v1/invoices/finalize/preview",
2796
+ ...t
2797
+ }), go = (t) => (t?.client ?? g).post({
2798
+ requestValidator: async (t) => await e.object({
2799
+ body: e.never().optional(),
2800
+ path: e.never().optional(),
2801
+ query: ca.optional()
2802
+ }).parseAsync(t),
2803
+ responseValidator: async (e) => await la.parseAsync(e),
2804
+ url: "/api/v1/invoices/finalize",
2805
+ ...t
2806
+ }), _o = (t) => (t?.client ?? g).get({
2807
+ requestValidator: async (t) => await e.object({
2808
+ body: e.never().optional(),
2809
+ path: e.never().optional(),
2810
+ query: ua.optional()
2811
+ }).parseAsync(t),
2812
+ responseValidator: async (e) => await da.parseAsync(e),
2813
+ url: "/api/v1/activity-logs",
2814
+ ...t
2815
+ }), vo = (t) => (t.client ?? g).get({
2816
+ requestValidator: async (t) => await e.object({
2817
+ body: e.never().optional(),
2818
+ path: fa,
2819
+ query: e.never().optional()
2820
+ }).parseAsync(t),
2821
+ responseValidator: async (e) => await pa.parseAsync(e),
2822
+ url: "/api/v1/invoices/{uuid}/payments",
2823
+ ...t
2824
+ }), yo = (t) => (t.client ?? g).post({
2825
+ requestValidator: async (t) => await e.object({
2826
+ body: ma,
2827
+ path: ha,
2828
+ query: e.never().optional()
2829
+ }).parseAsync(t),
2830
+ responseValidator: async (e) => await ga.parseAsync(e),
2831
+ url: "/api/v1/invoices/{uuid}/payments",
2832
+ ...t,
2833
+ headers: {
2834
+ "Content-Type": "application/json",
2835
+ ...t.headers
2836
+ }
2837
+ }), bo = (t) => (t.client ?? g).delete({
2838
+ requestValidator: async (t) => await e.object({
2839
+ body: e.never().optional(),
2840
+ path: _a,
2841
+ query: e.never().optional()
2842
+ }).parseAsync(t),
2843
+ responseValidator: async (e) => await va.parseAsync(e),
2844
+ url: "/api/v1/invoices/{uuid}/payments/{paymentUuid}",
2845
+ ...t
2846
+ }), xo = (t) => (t?.client ?? g).get({
2847
+ requestValidator: async (t) => await e.object({
2848
+ body: e.never().optional(),
2849
+ path: e.never().optional(),
2850
+ query: e.never().optional()
2851
+ }).parseAsync(t),
2852
+ responseValidator: async (e) => await ya.parseAsync(e),
2853
+ url: "/api/v1/issuers/reminder-configs",
2854
+ ...t
2855
+ }), So = (t) => (t.client ?? g).patch({
2856
+ requestValidator: async (t) => await e.object({
2857
+ body: ba,
2858
+ path: e.never().optional(),
2859
+ query: e.never().optional()
2860
+ }).parseAsync(t),
2861
+ responseValidator: async (e) => await xa.parseAsync(e),
2862
+ url: "/api/v1/issuers/reminder-configs",
2863
+ ...t,
2864
+ headers: {
2865
+ "Content-Type": "application/json",
2866
+ ...t.headers
2867
+ }
2868
+ }), Co = (t) => (t?.client ?? g).get({
2869
+ requestValidator: async (t) => await e.object({
2870
+ body: e.never().optional(),
2871
+ path: e.never().optional(),
2872
+ query: Sa.optional()
2873
+ }).parseAsync(t),
2874
+ responseValidator: async (e) => await Ca.parseAsync(e),
2875
+ url: "/api/v1/custom-field-definitions",
2876
+ ...t
2877
+ }), wo = (t) => (t.client ?? g).get({
2878
+ requestValidator: async (t) => await e.object({
2879
+ body: e.never().optional(),
2880
+ path: wa,
2881
+ query: e.never().optional()
2882
+ }).parseAsync(t),
2883
+ responseValidator: async (e) => await Ta.parseAsync(e),
2884
+ url: "/api/v1/dunning-cases/{uuid}",
2885
+ ...t
2886
+ }), To = (t) => (t?.client ?? g).get({
2887
+ requestValidator: async (t) => await e.object({
2888
+ body: e.never().optional(),
2889
+ path: e.never().optional(),
2890
+ query: Ea.optional()
2891
+ }).parseAsync(t),
2892
+ responseValidator: async (e) => await Da.parseAsync(e),
2893
+ url: "/api/v1/dunning-cases",
2894
+ ...t
2895
+ }), Eo = (t) => (t.client ?? g).post({
2896
+ requestValidator: async (t) => await e.object({
2897
+ body: e.never().optional(),
2898
+ path: Oa,
2899
+ query: e.never().optional()
2900
+ }).parseAsync(t),
2901
+ url: "/api/v1/dunning-cases/{uuid}/send",
2902
+ ...t
2903
+ }), Do = (t) => (t?.client ?? g).post({
2904
+ requestValidator: async (t) => await e.object({
2905
+ body: e.never().optional(),
2906
+ path: e.never().optional(),
2907
+ query: ka.optional()
2908
+ }).parseAsync(t),
2909
+ responseValidator: async (e) => await Aa.parseAsync(e),
2910
+ url: "/api/v1/dunning-cases/send",
2911
+ ...t
2912
+ }), Oo = (t) => (t?.client ?? g).get({
2913
+ requestValidator: async (t) => await e.object({
2914
+ body: e.never().optional(),
2915
+ path: e.never().optional(),
2916
+ query: ja.optional()
2917
+ }).parseAsync(t),
2918
+ responseValidator: async (e) => await Ma.parseAsync(e),
2919
+ url: "/api/v1/dunning-cases/send/preview",
2920
+ ...t
2921
+ }), ko = (t) => (t.client ?? g).get({
2922
+ requestValidator: async (t) => await e.object({
2923
+ body: e.never().optional(),
2924
+ path: e.never().optional(),
2925
+ query: Na
2926
+ }).parseAsync(t),
2927
+ responseValidator: async (e) => await Pa.parseAsync(e),
2928
+ url: "/api/v1/public/dunning-case-reminder-invoices",
2929
+ ...t
2930
+ });
2931
+ //#endregion
2932
+ //#region src/utils/api.util.ts
2933
+ function Ao(e) {
2934
+ return typeof e == "object" && !!e && Array.isArray(e.errors);
2935
+ }
2936
+ function jo(e) {
2937
+ return Ao(e) || e instanceof Error ? e : Error(String(e));
2938
+ }
2939
+ var Mo = class {
2940
+ static async fromPromise(e) {
2941
+ return await t.fromPromise(e, jo);
2942
+ }
2943
+ static void(e) {
2944
+ return e.isErr() ? n(e.error) : r();
2945
+ }
2946
+ };
2947
+ //#endregion
2948
+ export { Za as A, wo as B, fo as C, ro as D, Eo as E, _o as F, Va as G, qa as H, Co as I, xo as J, ko as K, za as L, Ja as M, Ha as N, eo as O, So as P, Ra as R, ho as S, ao as T, Wa as U, To as V, vo as W, g as X, mo as Y, Qa as _, Do as a, uo as b, $a as c, yo as d, Ka as f, no as g, so as h, po as i, Ya as j, to as k, Fa as l, La as m, Xa as n, io as o, bo as p, Ua as q, go as r, Ia as s, Mo as t, Ga as u, lo as v, Oo as w, oo as x, co as y, Ba as z };