@spaceinvoices/react-ui 0.1.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (400) hide show
  1. package/cli/dist/index.js +1 -1
  2. package/package.json +1 -1
  3. package/registry.json +287 -122
  4. package/src/components/activities/activity-timeline.tsx +8 -1
  5. package/src/components/activities/locales/es.ts +30 -0
  6. package/src/components/activities/locales/fr.ts +30 -0
  7. package/src/components/activities/locales/hr.ts +30 -0
  8. package/src/components/activities/locales/it.ts +30 -0
  9. package/src/components/activities/locales/nl.ts +30 -0
  10. package/src/components/activities/locales/pl.ts +30 -0
  11. package/src/components/activities/locales/pt.ts +30 -0
  12. package/src/components/advance-invoices/create/create-advance-invoice-form.tsx +21 -7
  13. package/src/components/advance-invoices/create/locales/es.ts +29 -0
  14. package/src/components/advance-invoices/create/locales/fr.ts +28 -0
  15. package/src/components/advance-invoices/create/locales/hr.ts +27 -0
  16. package/src/components/advance-invoices/create/locales/it.ts +29 -0
  17. package/src/components/advance-invoices/create/locales/nl.ts +28 -0
  18. package/src/components/advance-invoices/create/locales/pl.ts +28 -0
  19. package/src/components/advance-invoices/create/locales/pt.ts +29 -0
  20. package/src/components/advance-invoices/create/prepare-advance-invoice-submission.ts +3 -3
  21. package/src/components/advance-invoices/list/list-table.tsx +20 -3
  22. package/src/components/advance-invoices/list/locales/de.ts +9 -0
  23. package/src/components/advance-invoices/list/locales/en.ts +8 -0
  24. package/src/components/advance-invoices/list/locales/es.ts +41 -0
  25. package/src/components/advance-invoices/list/locales/fr.ts +41 -0
  26. package/src/components/advance-invoices/list/locales/hr.ts +41 -0
  27. package/src/components/advance-invoices/list/locales/it.ts +41 -0
  28. package/src/components/advance-invoices/list/locales/nl.ts +41 -0
  29. package/src/components/advance-invoices/list/locales/pl.ts +41 -0
  30. package/src/components/advance-invoices/list/locales/pt.ts +41 -0
  31. package/src/components/advance-invoices/list/locales/sl.ts +9 -0
  32. package/src/components/credit-notes/create/create-credit-note-form.tsx +19 -5
  33. package/src/components/credit-notes/create/locales/es.ts +68 -0
  34. package/src/components/credit-notes/create/locales/fr.ts +69 -0
  35. package/src/components/credit-notes/create/locales/hr.ts +68 -0
  36. package/src/components/credit-notes/create/locales/it.ts +68 -0
  37. package/src/components/credit-notes/create/locales/nl.ts +69 -0
  38. package/src/components/credit-notes/create/locales/pl.ts +68 -0
  39. package/src/components/credit-notes/create/locales/pt.ts +68 -0
  40. package/src/components/credit-notes/list/list-table.tsx +25 -8
  41. package/src/components/credit-notes/list/locales/de.ts +10 -2
  42. package/src/components/credit-notes/list/locales/en.ts +8 -0
  43. package/src/components/credit-notes/list/locales/es.ts +41 -0
  44. package/src/components/credit-notes/list/locales/fr.ts +41 -0
  45. package/src/components/credit-notes/list/locales/hr.ts +41 -0
  46. package/src/components/credit-notes/list/locales/it.ts +41 -0
  47. package/src/components/credit-notes/list/locales/nl.ts +41 -0
  48. package/src/components/credit-notes/list/locales/pl.ts +41 -0
  49. package/src/components/credit-notes/list/locales/pt.ts +41 -0
  50. package/src/components/credit-notes/list/locales/sl.ts +10 -2
  51. package/src/components/customers/create-customer-form/create-customer-form.tsx +21 -3
  52. package/src/components/customers/create-customer-form/locales/de.ts +1 -0
  53. package/src/components/customers/create-customer-form/locales/es.ts +21 -0
  54. package/src/components/customers/create-customer-form/locales/fr.ts +21 -0
  55. package/src/components/customers/create-customer-form/locales/hr.ts +21 -0
  56. package/src/components/customers/create-customer-form/locales/it.ts +21 -0
  57. package/src/components/customers/create-customer-form/locales/nl.ts +21 -0
  58. package/src/components/customers/create-customer-form/locales/pl.ts +21 -0
  59. package/src/components/customers/create-customer-form/locales/pt.ts +21 -0
  60. package/src/components/customers/create-customer-form/locales/sl.ts +1 -0
  61. package/src/components/customers/customer-list-table/customer-list-row-actions.tsx +72 -16
  62. package/src/components/customers/customer-list-table/customer-list-table.tsx +35 -2
  63. package/src/components/customers/customer-list-table/locales/de.ts +9 -0
  64. package/src/components/customers/customer-list-table/locales/en.ts +10 -0
  65. package/src/components/customers/customer-list-table/locales/es.ts +25 -0
  66. package/src/components/customers/customer-list-table/locales/fr.ts +25 -0
  67. package/src/components/customers/customer-list-table/locales/hr.ts +25 -0
  68. package/src/components/customers/customer-list-table/locales/it.ts +25 -0
  69. package/src/components/customers/customer-list-table/locales/nl.ts +25 -0
  70. package/src/components/customers/customer-list-table/locales/pl.ts +25 -0
  71. package/src/components/customers/customer-list-table/locales/pt.ts +25 -0
  72. package/src/components/customers/customer-list-table/locales/sl.ts +9 -0
  73. package/src/components/customers/customers.hooks.test.ts +8 -8
  74. package/src/components/customers/customers.hooks.ts +6 -1
  75. package/src/components/customers/edit-customer-form/edit-customer-form.tsx +143 -0
  76. package/src/components/customers/edit-customer-form/locales/de.ts +13 -0
  77. package/src/components/customers/edit-customer-form/locales/es.ts +13 -0
  78. package/src/components/customers/edit-customer-form/locales/fr.ts +13 -0
  79. package/src/components/customers/edit-customer-form/locales/hr.ts +13 -0
  80. package/src/components/customers/edit-customer-form/locales/it.ts +13 -0
  81. package/src/components/customers/edit-customer-form/locales/nl.ts +13 -0
  82. package/src/components/customers/edit-customer-form/locales/pl.ts +13 -0
  83. package/src/components/customers/edit-customer-form/locales/pt.ts +13 -0
  84. package/src/components/customers/edit-customer-form/locales/sl.ts +13 -0
  85. package/src/components/customers/index.ts +1 -0
  86. package/src/components/dashboard/collection-rate-card/collection-rate-card.tsx +9 -1
  87. package/src/components/dashboard/collection-rate-card/locales/de.ts +3 -0
  88. package/src/components/dashboard/collection-rate-card/locales/es.ts +3 -0
  89. package/src/components/dashboard/collection-rate-card/locales/fr.ts +3 -0
  90. package/src/components/dashboard/collection-rate-card/locales/hr.ts +3 -0
  91. package/src/components/dashboard/collection-rate-card/locales/it.ts +3 -0
  92. package/src/components/dashboard/collection-rate-card/locales/nl.ts +3 -0
  93. package/src/components/dashboard/collection-rate-card/locales/pl.ts +3 -0
  94. package/src/components/dashboard/collection-rate-card/locales/pt.ts +3 -0
  95. package/src/components/dashboard/invoice-status-chart/invoice-status-chart.tsx +9 -1
  96. package/src/components/dashboard/invoice-status-chart/locales/de.ts +9 -0
  97. package/src/components/dashboard/invoice-status-chart/locales/es.ts +9 -0
  98. package/src/components/dashboard/invoice-status-chart/locales/fr.ts +9 -0
  99. package/src/components/dashboard/invoice-status-chart/locales/hr.ts +9 -0
  100. package/src/components/dashboard/invoice-status-chart/locales/it.ts +9 -0
  101. package/src/components/dashboard/invoice-status-chart/locales/nl.ts +9 -0
  102. package/src/components/dashboard/invoice-status-chart/locales/pl.ts +9 -0
  103. package/src/components/dashboard/invoice-status-chart/locales/pt.ts +9 -0
  104. package/src/components/dashboard/payment-methods-chart/locales/de.ts +12 -0
  105. package/src/components/dashboard/payment-methods-chart/locales/es.ts +12 -0
  106. package/src/components/dashboard/payment-methods-chart/locales/fr.ts +12 -0
  107. package/src/components/dashboard/payment-methods-chart/locales/hr.ts +12 -0
  108. package/src/components/dashboard/payment-methods-chart/locales/it.ts +12 -0
  109. package/src/components/dashboard/payment-methods-chart/locales/nl.ts +12 -0
  110. package/src/components/dashboard/payment-methods-chart/locales/pl.ts +12 -0
  111. package/src/components/dashboard/payment-methods-chart/locales/pt.ts +12 -0
  112. package/src/components/dashboard/payment-methods-chart/payment-methods-chart.tsx +9 -1
  113. package/src/components/dashboard/payment-trend-chart/locales/de.ts +5 -0
  114. package/src/components/dashboard/payment-trend-chart/locales/es.ts +5 -0
  115. package/src/components/dashboard/payment-trend-chart/locales/fr.ts +5 -0
  116. package/src/components/dashboard/payment-trend-chart/locales/hr.ts +5 -0
  117. package/src/components/dashboard/payment-trend-chart/locales/it.ts +5 -0
  118. package/src/components/dashboard/payment-trend-chart/locales/nl.ts +5 -0
  119. package/src/components/dashboard/payment-trend-chart/locales/pl.ts +5 -0
  120. package/src/components/dashboard/payment-trend-chart/locales/pt.ts +5 -0
  121. package/src/components/dashboard/payment-trend-chart/payment-trend-chart.tsx +10 -2
  122. package/src/components/dashboard/revenue-trend-chart/locales/de.ts +5 -0
  123. package/src/components/dashboard/revenue-trend-chart/locales/es.ts +5 -0
  124. package/src/components/dashboard/revenue-trend-chart/locales/fr.ts +5 -0
  125. package/src/components/dashboard/revenue-trend-chart/locales/hr.ts +5 -0
  126. package/src/components/dashboard/revenue-trend-chart/locales/it.ts +5 -0
  127. package/src/components/dashboard/revenue-trend-chart/locales/nl.ts +5 -0
  128. package/src/components/dashboard/revenue-trend-chart/locales/pl.ts +5 -0
  129. package/src/components/dashboard/revenue-trend-chart/locales/pt.ts +5 -0
  130. package/src/components/dashboard/revenue-trend-chart/revenue-trend-chart.tsx +10 -2
  131. package/src/components/dashboard/top-customers-chart/locales/de.ts +5 -0
  132. package/src/components/dashboard/top-customers-chart/locales/es.ts +5 -0
  133. package/src/components/dashboard/top-customers-chart/locales/fr.ts +5 -0
  134. package/src/components/dashboard/top-customers-chart/locales/hr.ts +5 -0
  135. package/src/components/dashboard/top-customers-chart/locales/it.ts +5 -0
  136. package/src/components/dashboard/top-customers-chart/locales/nl.ts +5 -0
  137. package/src/components/dashboard/top-customers-chart/locales/pl.ts +5 -0
  138. package/src/components/dashboard/top-customers-chart/locales/pt.ts +5 -0
  139. package/src/components/dashboard/top-customers-chart/top-customers-chart.tsx +10 -2
  140. package/src/components/documents/create/document-add-item-form.tsx +1 -1
  141. package/src/components/documents/create/form-types.ts +1 -5
  142. package/src/components/documents/create/mark-as-paid-section.tsx +60 -23
  143. package/src/components/documents/create/prepare-document-submission.test.ts +2 -2
  144. package/src/components/documents/create/prepare-document-submission.ts +12 -7
  145. package/src/components/documents/create/prepare-preview-data.test.ts +1 -1
  146. package/src/components/documents/view/document-actions-bar.tsx +8 -1
  147. package/src/components/documents/view/document-details-card.tsx +8 -1
  148. package/src/components/documents/view/document-payments-list.tsx +8 -1
  149. package/src/components/documents/view/locales/es.ts +83 -0
  150. package/src/components/documents/view/locales/fr.ts +83 -0
  151. package/src/components/documents/view/locales/hr.ts +83 -0
  152. package/src/components/documents/view/locales/it.ts +83 -0
  153. package/src/components/documents/view/locales/nl.ts +84 -0
  154. package/src/components/documents/view/locales/pl.ts +83 -0
  155. package/src/components/documents/view/locales/pt.ts +83 -0
  156. package/src/components/entities/create-entity-form.tsx +12 -2
  157. package/src/components/entities/entity-settings-form/entity-settings-form.tsx +18 -0
  158. package/src/components/entities/entity-settings-form/locales/de.ts +3 -1
  159. package/src/components/entities/entity-settings-form/locales/es.ts +197 -0
  160. package/src/components/entities/entity-settings-form/locales/fr.ts +196 -0
  161. package/src/components/entities/entity-settings-form/locales/hr.ts +189 -0
  162. package/src/components/entities/entity-settings-form/locales/it.ts +195 -0
  163. package/src/components/entities/entity-settings-form/locales/nl.ts +192 -0
  164. package/src/components/entities/entity-settings-form/locales/pl.ts +193 -0
  165. package/src/components/entities/entity-settings-form/locales/pt.ts +194 -0
  166. package/src/components/entities/entity-settings-form/locales/sl.ts +2 -0
  167. package/src/components/entities/fina-settings-form/fina-settings-form.tsx +461 -0
  168. package/src/components/entities/fina-settings-form/fina-settings.hooks.ts +215 -0
  169. package/src/components/entities/fina-settings-form/index.ts +3 -0
  170. package/src/components/entities/fina-settings-form/locales/de.ts +145 -0
  171. package/src/components/entities/fina-settings-form/locales/en.ts +142 -0
  172. package/src/components/entities/fina-settings-form/locales/es.ts +143 -0
  173. package/src/components/entities/fina-settings-form/locales/fr.ts +142 -0
  174. package/src/components/entities/fina-settings-form/locales/hr.ts +144 -0
  175. package/src/components/entities/fina-settings-form/locales/it.ts +144 -0
  176. package/src/components/entities/fina-settings-form/locales/nl.ts +144 -0
  177. package/src/components/entities/fina-settings-form/locales/pl.ts +142 -0
  178. package/src/components/entities/fina-settings-form/locales/pt.ts +144 -0
  179. package/src/components/entities/fina-settings-form/locales/sl.ts +144 -0
  180. package/src/components/entities/fina-settings-form/sections/certificate-settings-section.tsx +233 -0
  181. package/src/components/entities/fina-settings-form/sections/premises-management-section.tsx +363 -0
  182. package/src/components/entities/fina-settings-form/sections/register-premise-dialog.tsx +395 -0
  183. package/src/components/entities/furs-settings-form/furs-settings-form.tsx +9 -2
  184. package/src/components/entities/furs-settings-form/furs-settings.hooks.ts +15 -11
  185. package/src/components/entities/furs-settings-form/locales/de.ts +52 -88
  186. package/src/components/entities/furs-settings-form/locales/en.ts +3 -0
  187. package/src/components/entities/furs-settings-form/locales/es.ts +196 -0
  188. package/src/components/entities/furs-settings-form/locales/fr.ts +196 -0
  189. package/src/components/entities/furs-settings-form/locales/hr.ts +195 -0
  190. package/src/components/entities/furs-settings-form/locales/it.ts +196 -0
  191. package/src/components/entities/furs-settings-form/locales/nl.ts +195 -0
  192. package/src/components/entities/furs-settings-form/locales/pl.ts +194 -0
  193. package/src/components/entities/furs-settings-form/locales/pt.ts +195 -0
  194. package/src/components/entities/furs-settings-form/locales/sl.ts +2 -0
  195. package/src/components/entities/furs-settings-form/sections/certificate-settings-section.tsx +19 -4
  196. package/src/components/entities/furs-settings-form/sections/register-premise-dialog.tsx +17 -66
  197. package/src/components/entities/keys.ts +1 -1
  198. package/src/components/entities/settings/company-settings-form.tsx +28 -0
  199. package/src/components/entities/settings/pdf-template-selector/locales/es.ts +18 -0
  200. package/src/components/entities/settings/pdf-template-selector/locales/fr.ts +18 -0
  201. package/src/components/entities/settings/pdf-template-selector/locales/hr.ts +18 -0
  202. package/src/components/entities/settings/pdf-template-selector/locales/it.ts +18 -0
  203. package/src/components/entities/settings/pdf-template-selector/locales/nl.ts +17 -0
  204. package/src/components/entities/settings/pdf-template-selector/locales/pl.ts +18 -0
  205. package/src/components/entities/settings/pdf-template-selector/locales/pt.ts +18 -0
  206. package/src/components/estimates/create/create-estimate-form.tsx +14 -0
  207. package/src/components/estimates/create/locales/es.ts +57 -0
  208. package/src/components/estimates/create/locales/fr.ts +58 -0
  209. package/src/components/estimates/create/locales/hr.ts +57 -0
  210. package/src/components/estimates/create/locales/it.ts +57 -0
  211. package/src/components/estimates/create/locales/nl.ts +58 -0
  212. package/src/components/estimates/create/locales/pl.ts +57 -0
  213. package/src/components/estimates/create/locales/pt.ts +58 -0
  214. package/src/components/estimates/create/prepare-estimate-submission.ts +1 -1
  215. package/src/components/estimates/list/list-table.tsx +20 -3
  216. package/src/components/estimates/list/locales/de.ts +9 -0
  217. package/src/components/estimates/list/locales/en.ts +8 -0
  218. package/src/components/estimates/list/locales/es.ts +32 -0
  219. package/src/components/estimates/list/locales/fr.ts +32 -0
  220. package/src/components/estimates/list/locales/hr.ts +32 -0
  221. package/src/components/estimates/list/locales/it.ts +32 -0
  222. package/src/components/estimates/list/locales/nl.ts +32 -0
  223. package/src/components/estimates/list/locales/pl.ts +32 -0
  224. package/src/components/estimates/list/locales/pt.ts +32 -0
  225. package/src/components/estimates/list/locales/sl.ts +9 -0
  226. package/src/components/export/document-export-form.tsx +0 -2
  227. package/src/components/invoices/create/create-invoice-form.tsx +24 -10
  228. package/src/components/invoices/create/eslog-validation.test.ts +2 -0
  229. package/src/components/invoices/create/locales/es.ts +103 -0
  230. package/src/components/invoices/create/locales/fr.ts +105 -0
  231. package/src/components/invoices/create/locales/hr.ts +103 -0
  232. package/src/components/invoices/create/locales/it.ts +105 -0
  233. package/src/components/invoices/create/locales/nl.ts +104 -0
  234. package/src/components/invoices/create/locales/pl.ts +104 -0
  235. package/src/components/invoices/create/locales/pt.ts +105 -0
  236. package/src/components/invoices/create/prepare-invoice-submission.test.ts +54 -55
  237. package/src/components/invoices/create/prepare-invoice-submission.ts +3 -3
  238. package/src/components/invoices/list/list-table.tsx +20 -3
  239. package/src/components/invoices/list/locales/de.ts +9 -0
  240. package/src/components/invoices/list/locales/en.ts +8 -0
  241. package/src/components/invoices/list/locales/es.ts +42 -0
  242. package/src/components/invoices/list/locales/fr.ts +42 -0
  243. package/src/components/invoices/list/locales/hr.ts +42 -0
  244. package/src/components/invoices/list/locales/it.ts +42 -0
  245. package/src/components/invoices/list/locales/nl.ts +42 -0
  246. package/src/components/invoices/list/locales/pl.ts +42 -0
  247. package/src/components/invoices/list/locales/pt.ts +42 -0
  248. package/src/components/invoices/list/locales/sl.ts +9 -0
  249. package/src/components/invoices/send-email-dialog/locales/es.ts +18 -0
  250. package/src/components/invoices/send-email-dialog/locales/fr.ts +18 -0
  251. package/src/components/invoices/send-email-dialog/locales/hr.ts +17 -0
  252. package/src/components/invoices/send-email-dialog/locales/it.ts +18 -0
  253. package/src/components/invoices/send-email-dialog/locales/nl.ts +18 -0
  254. package/src/components/invoices/send-email-dialog/locales/pl.ts +18 -0
  255. package/src/components/invoices/send-email-dialog/locales/pt.ts +18 -0
  256. package/src/components/invoices/send-email-dialog/send-email-dialog.tsx +20 -12
  257. package/src/components/invoices/shared/scaled-document-preview.tsx +1 -0
  258. package/src/components/invoices/view/eslog-info-display.tsx +1 -0
  259. package/src/components/invoices/view/fina-info-display.tsx +196 -0
  260. package/src/components/items/create-item-form/create-item-form.tsx +14 -0
  261. package/src/components/items/create-item-form/locales/en.ts +5 -0
  262. package/src/components/items/create-item-form/locales/es.ts +14 -0
  263. package/src/components/items/create-item-form/locales/fr.ts +14 -0
  264. package/src/components/items/create-item-form/locales/hr.ts +14 -0
  265. package/src/components/items/create-item-form/locales/it.ts +14 -0
  266. package/src/components/items/create-item-form/locales/nl.ts +14 -0
  267. package/src/components/items/create-item-form/locales/pl.ts +14 -0
  268. package/src/components/items/create-item-form/locales/pt.ts +14 -0
  269. package/src/components/items/edit-item-form/edit-item-form.tsx +170 -0
  270. package/src/components/items/edit-item-form/locales/de.ts +12 -0
  271. package/src/components/items/edit-item-form/locales/es.ts +12 -0
  272. package/src/components/items/edit-item-form/locales/fr.ts +12 -0
  273. package/src/components/items/edit-item-form/locales/hr.ts +12 -0
  274. package/src/components/items/edit-item-form/locales/it.ts +12 -0
  275. package/src/components/items/edit-item-form/locales/nl.ts +12 -0
  276. package/src/components/items/edit-item-form/locales/pl.ts +12 -0
  277. package/src/components/items/edit-item-form/locales/pt.ts +12 -0
  278. package/src/components/items/edit-item-form/locales/sl.ts +12 -0
  279. package/src/components/items/item-list-table/item-list-table.tsx +20 -13
  280. package/src/components/items/item-list-table/locales/de.ts +6 -0
  281. package/src/components/items/item-list-table/locales/en.ts +5 -0
  282. package/src/components/items/item-list-table/locales/es.ts +16 -0
  283. package/src/components/items/item-list-table/locales/fr.ts +16 -0
  284. package/src/components/items/item-list-table/locales/hr.ts +16 -0
  285. package/src/components/items/item-list-table/locales/it.ts +16 -0
  286. package/src/components/items/item-list-table/locales/nl.ts +16 -0
  287. package/src/components/items/item-list-table/locales/pl.ts +16 -0
  288. package/src/components/items/item-list-table/locales/pt.ts +16 -0
  289. package/src/components/items/item-list-table/locales/sl.ts +6 -0
  290. package/src/components/items/items.hooks.ts +7 -2
  291. package/src/components/payments/create-payment-form/create-payment-form.tsx +14 -0
  292. package/src/components/payments/create-payment-form/locales/es.ts +20 -0
  293. package/src/components/payments/create-payment-form/locales/fr.ts +20 -0
  294. package/src/components/payments/create-payment-form/locales/hr.ts +20 -0
  295. package/src/components/payments/create-payment-form/locales/it.ts +20 -0
  296. package/src/components/payments/create-payment-form/locales/nl.ts +20 -0
  297. package/src/components/payments/create-payment-form/locales/pl.ts +20 -0
  298. package/src/components/payments/create-payment-form/locales/pt.ts +20 -0
  299. package/src/components/payments/edit-payment-form/edit-payment-form.tsx +18 -2
  300. package/src/components/payments/edit-payment-form/locales/es.ts +20 -0
  301. package/src/components/payments/edit-payment-form/locales/fr.ts +20 -0
  302. package/src/components/payments/edit-payment-form/locales/hr.ts +20 -0
  303. package/src/components/payments/edit-payment-form/locales/it.ts +20 -0
  304. package/src/components/payments/edit-payment-form/locales/nl.ts +20 -0
  305. package/src/components/payments/edit-payment-form/locales/pl.ts +20 -0
  306. package/src/components/payments/edit-payment-form/locales/pt.ts +20 -0
  307. package/src/components/payments/list/list-row-actions.tsx +14 -0
  308. package/src/components/payments/list/list-table.tsx +21 -2
  309. package/src/components/payments/list/locales/de.ts +6 -0
  310. package/src/components/payments/list/locales/en.ts +7 -0
  311. package/src/components/payments/list/locales/es.ts +25 -0
  312. package/src/components/payments/list/locales/fr.ts +25 -0
  313. package/src/components/payments/list/locales/hr.ts +25 -0
  314. package/src/components/payments/list/locales/it.ts +25 -0
  315. package/src/components/payments/list/locales/nl.ts +25 -0
  316. package/src/components/payments/list/locales/pl.ts +25 -0
  317. package/src/components/payments/list/locales/pt.ts +25 -0
  318. package/src/components/payments/list/locales/sl.ts +6 -0
  319. package/src/components/payments/payments.hooks.ts +7 -2
  320. package/src/components/request-logs/index.ts +1 -1
  321. package/src/components/table/data-table.tsx +8 -3
  322. package/src/components/table/filter-panel.tsx +4 -4
  323. package/src/components/table/hooks/use-table-query.ts +3 -0
  324. package/src/components/table/table-empty-state.tsx +11 -4
  325. package/src/components/table/table-no-results.tsx +6 -4
  326. package/src/components/table/types.ts +2 -2
  327. package/src/components/tax-reports/kir-export-form.tsx +0 -1
  328. package/src/components/taxes/create-tax-form/create-tax-form.tsx +14 -0
  329. package/src/components/taxes/create-tax-form/locales/en.ts +1 -0
  330. package/src/components/taxes/create-tax-form/locales/es.ts +8 -0
  331. package/src/components/taxes/create-tax-form/locales/fr.ts +8 -0
  332. package/src/components/taxes/create-tax-form/locales/hr.ts +8 -0
  333. package/src/components/taxes/create-tax-form/locales/it.ts +8 -0
  334. package/src/components/taxes/create-tax-form/locales/nl.ts +8 -0
  335. package/src/components/taxes/create-tax-form/locales/pl.ts +8 -0
  336. package/src/components/taxes/create-tax-form/locales/pt.ts +8 -0
  337. package/src/components/taxes/edit-tax-form/edit-tax-form.tsx +119 -0
  338. package/src/components/taxes/edit-tax-form/locales/de.ts +6 -0
  339. package/src/components/taxes/edit-tax-form/locales/es.ts +6 -0
  340. package/src/components/taxes/edit-tax-form/locales/fr.ts +6 -0
  341. package/src/components/taxes/edit-tax-form/locales/hr.ts +6 -0
  342. package/src/components/taxes/edit-tax-form/locales/it.ts +6 -0
  343. package/src/components/taxes/edit-tax-form/locales/nl.ts +6 -0
  344. package/src/components/taxes/edit-tax-form/locales/pl.ts +6 -0
  345. package/src/components/taxes/edit-tax-form/locales/pt.ts +6 -0
  346. package/src/components/taxes/edit-tax-form/locales/sl.ts +6 -0
  347. package/src/components/taxes/tax-list-table/locales/de.ts +6 -0
  348. package/src/components/taxes/tax-list-table/locales/en.ts +6 -0
  349. package/src/components/taxes/tax-list-table/locales/es.ts +17 -0
  350. package/src/components/taxes/tax-list-table/locales/fr.ts +17 -0
  351. package/src/components/taxes/tax-list-table/locales/hr.ts +17 -0
  352. package/src/components/taxes/tax-list-table/locales/it.ts +17 -0
  353. package/src/components/taxes/tax-list-table/locales/nl.ts +17 -0
  354. package/src/components/taxes/tax-list-table/locales/pl.ts +17 -0
  355. package/src/components/taxes/tax-list-table/locales/pt.ts +17 -0
  356. package/src/components/taxes/tax-list-table/locales/sl.ts +6 -0
  357. package/src/components/taxes/tax-list-table/tax-list-table.tsx +18 -0
  358. package/src/components/taxes/taxes.hooks.ts +12 -7
  359. package/src/components/ui/tooltip.tsx +2 -2
  360. package/src/components/wl-subscription/locked-feature.tsx +1 -0
  361. package/src/components/wl-subscription/upgrade-modal.tsx +1 -0
  362. package/src/generated/schemas/acceptentityinvitation_body.ts +17 -0
  363. package/src/generated/schemas/addentityuser_body.ts +18 -0
  364. package/src/generated/schemas/advanceinvoice.ts +184 -12
  365. package/src/generated/schemas/creditnote.ts +96 -127
  366. package/src/generated/schemas/customadvanceinvoice.ts +246 -0
  367. package/src/generated/schemas/customcreditnote.ts +237 -0
  368. package/src/generated/schemas/customer.ts +26 -0
  369. package/src/generated/schemas/customestimate.ts +181 -0
  370. package/src/generated/schemas/custominvoice.ts +237 -0
  371. package/src/generated/schemas/entity.ts +66 -7
  372. package/src/generated/schemas/entityuserrole.ts +19 -0
  373. package/src/generated/schemas/estimate.ts +149 -1
  374. package/src/generated/schemas/finasettings.ts +25 -0
  375. package/src/generated/schemas/furssettings.ts +1 -2
  376. package/src/generated/schemas/index.ts +24 -5
  377. package/src/generated/schemas/invoice.ts +224 -22
  378. package/src/generated/schemas/me.ts +22 -0
  379. package/src/generated/schemas/registerfinamovablepremise_body.ts +26 -0
  380. package/src/generated/schemas/registerfinarealestatepremise_body.ts +37 -0
  381. package/src/generated/schemas/renderadvanceinvoicepreview_body.ts +342 -0
  382. package/src/generated/schemas/rendercreditnotepreview_body.ts +344 -0
  383. package/src/generated/schemas/renderestimatepreview_body.ts +284 -0
  384. package/src/generated/schemas/renderinvoicepreview_body.ts +344 -0
  385. package/src/generated/schemas/senddocument_body.ts +23 -0
  386. package/src/generated/schemas/sendemail_body.ts +8 -10
  387. package/src/generated/schemas/stripeappconnect_body.ts +18 -0
  388. package/src/generated/schemas/stripeappcreateinvoice_body.ts +20 -0
  389. package/src/generated/schemas/stripeappupdatesettings_body.ts +26 -0
  390. package/src/generated/schemas/webhook.ts +143 -0
  391. package/src/hooks/create-resource-hooks.ts +85 -1
  392. package/src/hooks/use-next-document-number.ts +1 -1
  393. package/src/hooks/use-resource-mutation.ts +4 -3
  394. package/src/lib/browser-cookies.ts +12 -1
  395. package/src/lib/cookies.ts +2 -2
  396. package/src/lib/translation.ts +1 -1
  397. package/src/providers/entities-provider.tsx +84 -39
  398. package/src/providers/sdk-provider.tsx +7 -3
  399. package/src/providers/white-label-provider.tsx +5 -2
  400. package/src/providers/wl-subscription-provider.tsx +1 -0
@@ -0,0 +1,237 @@
1
+ /**
2
+ * This file was automatically generated using 'bun generate-schemas'.
3
+ * Do not edit this file manually. To update, run the generator again.
4
+ * @generated
5
+ */
6
+
7
+ import { z } from 'zod';
8
+
9
+ // Schemas for custominvoice endpoints
10
+
11
+ // Dependency schema for custominvoice
12
+ const LineDiscount = z.object({
13
+ value: z.number().gte(0),
14
+ type: z.enum(["percent", "amount"]).optional().default("percent"),
15
+ });
16
+
17
+
18
+ // Dependency schema for custominvoice
19
+ const FinaFiscalizationResponse = z.union([
20
+ z
21
+ .object({
22
+ status: z.enum(["pending", "success", "failed"]),
23
+ fiscalized_at: z.string().datetime({ offset: true }).optional(),
24
+ error: z.string().optional(),
25
+ data: z
26
+ .object({
27
+ zki: z.string(),
28
+ jir: z.string().optional(),
29
+ qr_code_url: z.string().optional(),
30
+ premise_id: z.string(),
31
+ device_id: z.string(),
32
+ invoice_number: z.string(),
33
+ operator_oib: z.string().optional(),
34
+ payment_type: z.string().optional(),
35
+ numbering_sequence: z.string().optional(),
36
+ payload: z.object({}).partial().passthrough(),
37
+ subsequent_submit: z.boolean().optional(),
38
+ })
39
+ .passthrough()
40
+ .optional(),
41
+ })
42
+ .passthrough(),
43
+ z.null(),
44
+ ]);
45
+
46
+
47
+ // Schema for create custominvoice operation
48
+ const createCustomInvoiceSchemaDefinition = z.object({
49
+ is_draft: z.boolean().optional(),
50
+ date: z
51
+ .string()
52
+ .regex(/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/)
53
+ .optional(),
54
+ issuer: z
55
+ .object({
56
+ name: z.union([z.string(), z.null()]),
57
+ email: z.union([z.string(), z.null()]),
58
+ address: z.union([z.string(), z.null()]),
59
+ address_2: z.union([z.string(), z.null()]),
60
+ post_code: z.union([z.string(), z.null()]),
61
+ city: z.union([z.string(), z.null()]),
62
+ state: z.union([z.string(), z.null()]),
63
+ country: z.union([z.string(), z.null()]),
64
+ country_code: z.union([z.string(), z.null()]),
65
+ tax_number: z.union([z.string(), z.null()]),
66
+ tax_number_2: z.union([z.string(), z.null()]),
67
+ company_number: z.union([z.string(), z.null()]),
68
+ bank_account: z.union([
69
+ z
70
+ .object({
71
+ type: z
72
+ .enum(["iban", "us_domestic", "uk_domestic", "other"])
73
+ .default("iban"),
74
+ name: z.string(),
75
+ bank_name: z.string(),
76
+ iban: z.string(),
77
+ account_number: z.string(),
78
+ bic: z.string(),
79
+ routing_number: z.string(),
80
+ sort_code: z.string(),
81
+ })
82
+ .partial()
83
+ .passthrough(),
84
+ z.null(),
85
+ ]),
86
+ })
87
+ .partial()
88
+ .passthrough()
89
+ .optional(),
90
+ customer_id: z.union([z.string(), z.null()]).optional(),
91
+ customer: z
92
+ .union([
93
+ z
94
+ .object({
95
+ name: z.union([z.string(), z.null()]),
96
+ email: z.union([z.string(), z.null()]),
97
+ address: z.union([z.string(), z.null()]),
98
+ address_2: z.union([z.string(), z.null()]),
99
+ post_code: z.union([z.string(), z.null()]),
100
+ city: z.union([z.string(), z.null()]),
101
+ state: z.union([z.string(), z.null()]),
102
+ country: z.union([z.string(), z.null()]),
103
+ country_code: z.union([z.string(), z.null()]),
104
+ tax_number: z.union([z.string(), z.null()]),
105
+ tax_number_2: z.union([z.string(), z.null()]),
106
+ company_number: z.union([z.string(), z.null()]),
107
+ bank_account: z.union([
108
+ z
109
+ .object({
110
+ type: z
111
+ .enum(["iban", "us_domestic", "uk_domestic", "other"])
112
+ .default("iban"),
113
+ name: z.string(),
114
+ bank_name: z.string(),
115
+ iban: z.string(),
116
+ account_number: z.string(),
117
+ bic: z.string(),
118
+ routing_number: z.string(),
119
+ sort_code: z.string(),
120
+ })
121
+ .partial()
122
+ .passthrough(),
123
+ z.null(),
124
+ ]),
125
+ save_customer: z.boolean().default(true),
126
+ })
127
+ .partial()
128
+ .passthrough(),
129
+ z.null(),
130
+ ])
131
+ .optional(),
132
+ note: z.union([z.string(), z.null()]).optional(),
133
+ payment_terms: z.union([z.string(), z.null()]).optional(),
134
+ tax_clause: z.union([z.string(), z.null()]).optional(),
135
+ total: z.number(),
136
+ total_with_tax: z.number(),
137
+ taxes: z
138
+ .array(
139
+ z
140
+ .object({
141
+ rate: z.number(),
142
+ base: z.number(),
143
+ amount: z.number(),
144
+ reverse_charge: z.boolean().optional(),
145
+ })
146
+ .passthrough()
147
+ )
148
+ .optional(),
149
+ currency_code: z.string().max(3).optional(),
150
+ metadata: z.union([z.record(z.string(), z.any()), z.null()]).optional(),
151
+ date_due: z.union([z.string(), z.null()]).optional(),
152
+ fina: FinaFiscalizationResponse.optional(),
153
+ date_service: z.union([z.string(), z.null()]).optional(),
154
+ date_service_to: z.union([z.string(), z.null()]).optional(),
155
+ items: z
156
+ .array(
157
+ z.object({
158
+ name: z.string().min(1).optional(),
159
+ description: z.union([z.string().max(4000, "Description must not exceed 4000 characters"), z.null()]).optional(),
160
+ price: z.number().optional(),
161
+ gross_price: z.number().optional(),
162
+ quantity: z.number().gte(-140737488355328).lte(140737488355327),
163
+ unit: z.union([z.string(), z.null()]).optional(),
164
+ taxes: z
165
+ .array(
166
+ z
167
+ .object({
168
+ rate: z.number(),
169
+ tax_id: z.string(),
170
+ classification: z.string(),
171
+ reverse_charge: z.boolean(),
172
+ amount: z.number(),
173
+ })
174
+ .partial()
175
+ )
176
+ .optional(),
177
+ discounts: z.array(LineDiscount).max(5).optional(),
178
+ total: z.number(),
179
+ total_with_tax: z.number(),
180
+ metadata: z
181
+ .union([
182
+ z.string(),
183
+ z.number(),
184
+ z.boolean(),
185
+ z.null(),
186
+ z.object({}).partial().passthrough(),
187
+ z.array(z.unknown()),
188
+ z.null(),
189
+ ])
190
+ .optional(),
191
+ item_id: z.string().optional(),
192
+ })
193
+ )
194
+ .min(1),
195
+ linked_documents: z.array(z.string().min(1)).optional(),
196
+ payment: z
197
+ .union([
198
+ z.object({
199
+ amount: z.number().gt(0).optional(),
200
+ type: z.string().max(20),
201
+ date: z.string().optional(),
202
+ reference: z.union([z.string(), z.null()]).optional(),
203
+ note: z.union([z.string(), z.null()]).optional(),
204
+ metadata: z.union([z.record(z.string(), z.any()), z.null()]).optional(),
205
+ }),
206
+ z.null(),
207
+ ])
208
+ .optional(),
209
+ furs: z
210
+ .union([
211
+ z
212
+ .object({
213
+ business_premise_name: z.string().min(1),
214
+ electronic_device_name: z.string().min(1),
215
+ operator_tax_number: z.string(),
216
+ operator_label: z.string(),
217
+ skip: z.boolean(),
218
+ })
219
+ .partial(),
220
+ z.null(),
221
+ ])
222
+ .optional(),
223
+ eslog: z
224
+ .union([
225
+ z
226
+ .object({ validation_enabled: z.union([z.boolean(), z.null()]) })
227
+ .partial()
228
+ .passthrough(),
229
+ z.null(),
230
+ ])
231
+ .optional(),
232
+ });
233
+
234
+ // Type for create custominvoice operation
235
+ export type CreateCustomInvoiceSchema = z.infer<typeof createCustomInvoiceSchemaDefinition>;
236
+
237
+ export const createCustomInvoiceSchema = createCustomInvoiceSchemaDefinition;
@@ -21,9 +21,12 @@ const createEntitySchemaDefinition = z.object({
21
21
  currency_code: z.union([z.string(), z.null()]).optional(),
22
22
  locale: z.string().max(20).optional(),
23
23
  tax_number: z.union([z.string(), z.null()]).optional(),
24
+ tax_number_2: z.union([z.string(), z.null()]).optional(),
25
+ company_number: z.union([z.string(), z.null()]).optional(),
24
26
  email: z.union([z.string(), z.null()]).optional(),
25
27
  environment: z.string().max(20).optional(),
26
28
  is_tax_subject: z.boolean().optional(),
29
+ is_enabled: z.boolean().optional(),
27
30
  settings: z
28
31
  .object({
29
32
  pdf_template: z.union([
@@ -73,15 +76,26 @@ const createEntitySchemaDefinition = z.object({
73
76
  numbering_strategy: z.enum(["B", "C"]),
74
77
  operator_tax_number: z.string(),
75
78
  operator_label: z.string(),
76
- certificate_file_id: z.string(),
77
- certificate_expiry: z.string(),
78
- certificate_passphrase: z.string(),
79
79
  foreign_operator: z.boolean(),
80
80
  })
81
81
  .partial()
82
82
  .passthrough(),
83
83
  z.null(),
84
84
  ]),
85
+ fina: z.union([
86
+ z
87
+ .object({
88
+ enabled: z.boolean().default(false),
89
+ operator_oib: z.string().min(11).max(11),
90
+ operator_label: z.string(),
91
+ u_sust_pdv: z.boolean().default(true),
92
+ numbering_sequence: z.enum(["N", "P"]).default("N"),
93
+ certificate_expiry: z.string(),
94
+ })
95
+ .partial()
96
+ .passthrough(),
97
+ z.null(),
98
+ ]),
85
99
  tax_rules: z.any().optional(),
86
100
  overdue_notifications: z.union([
87
101
  z
@@ -116,8 +130,24 @@ const createEntitySchemaDefinition = z.object({
116
130
  .passthrough(),
117
131
  z.null(),
118
132
  ]),
133
+ epc_qr: z.union([
134
+ z.object({ enabled: z.boolean() }).passthrough(),
135
+ z.null(),
136
+ ]),
119
137
  bank_accounts: z.union([z.array(z.any()), z.null()]),
120
138
  eslog_validation_enabled: z.union([z.boolean(), z.null()]),
139
+ tax_clause_defaults: z.union([
140
+ z
141
+ .object({
142
+ domestic: z.union([z.string(), z.null()]),
143
+ intra_eu_b2b: z.union([z.string(), z.null()]),
144
+ intra_eu_b2c: z.union([z.string(), z.null()]),
145
+ export: z.union([z.string(), z.null()]),
146
+ })
147
+ .partial()
148
+ .passthrough(),
149
+ z.null(),
150
+ ]),
121
151
  })
122
152
  .partial()
123
153
  .passthrough()
@@ -141,9 +171,11 @@ const patchEntitySchemaDefinition = z
141
171
  currency_code: z.union([z.string(), z.null()]),
142
172
  locale: z.string().max(20),
143
173
  tax_number: z.union([z.string(), z.null()]),
174
+ tax_number_2: z.union([z.string(), z.null()]),
175
+ company_number: z.union([z.string(), z.null()]),
144
176
  email: z.union([z.string(), z.null()]),
145
- environment: z.string().max(20),
146
177
  is_tax_subject: z.boolean(),
178
+ is_enabled: z.boolean(),
147
179
  settings: z
148
180
  .object({
149
181
  pdf_template: z.union([
@@ -193,15 +225,26 @@ const patchEntitySchemaDefinition = z
193
225
  numbering_strategy: z.enum(["B", "C"]),
194
226
  operator_tax_number: z.string(),
195
227
  operator_label: z.string(),
196
- certificate_file_id: z.string(),
197
- certificate_expiry: z.string(),
198
- certificate_passphrase: z.string(),
199
228
  foreign_operator: z.boolean(),
200
229
  })
201
230
  .partial()
202
231
  .passthrough(),
203
232
  z.null(),
204
233
  ]),
234
+ fina: z.union([
235
+ z
236
+ .object({
237
+ enabled: z.boolean().default(false),
238
+ operator_oib: z.string().min(11).max(11),
239
+ operator_label: z.string(),
240
+ u_sust_pdv: z.boolean().default(true),
241
+ numbering_sequence: z.enum(["N", "P"]).default("N"),
242
+ certificate_expiry: z.string(),
243
+ })
244
+ .partial()
245
+ .passthrough(),
246
+ z.null(),
247
+ ]),
205
248
  tax_rules: z.any().optional(),
206
249
  overdue_notifications: z.union([
207
250
  z
@@ -236,8 +279,24 @@ const patchEntitySchemaDefinition = z
236
279
  .passthrough(),
237
280
  z.null(),
238
281
  ]),
282
+ epc_qr: z.union([
283
+ z.object({ enabled: z.boolean() }).passthrough(),
284
+ z.null(),
285
+ ]),
239
286
  bank_accounts: z.union([z.array(z.any()), z.null()]),
240
287
  eslog_validation_enabled: z.union([z.boolean(), z.null()]),
288
+ tax_clause_defaults: z.union([
289
+ z
290
+ .object({
291
+ domestic: z.union([z.string(), z.null()]),
292
+ intra_eu_b2b: z.union([z.string(), z.null()]),
293
+ intra_eu_b2c: z.union([z.string(), z.null()]),
294
+ export: z.union([z.string(), z.null()]),
295
+ })
296
+ .partial()
297
+ .passthrough(),
298
+ z.null(),
299
+ ]),
241
300
  })
242
301
  .partial()
243
302
  .passthrough(),
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was automatically generated using 'bun generate-schemas'.
3
+ * Do not edit this file manually. To update, run the generator again.
4
+ * @generated
5
+ */
6
+
7
+ import { z } from 'zod';
8
+
9
+ // Schemas for entityuserrole endpoints
10
+
11
+ // Schema for update entityuserrole operation
12
+ const updateEntityUserRoleSchemaDefinition = z.object({
13
+ role: z.enum(["viewer", "editor", "admin"]),
14
+ });
15
+
16
+ // Type for update entityuserrole operation
17
+ export type UpdateEntityUserRoleSchema = z.infer<typeof updateEntityUserRoleSchemaDefinition>;
18
+
19
+ export const updateEntityUserRoleSchema = updateEntityUserRoleSchemaDefinition;
@@ -34,6 +34,8 @@ const createEstimateSchemaDefinition = z.object({
34
34
  country: z.union([z.string(), z.null()]),
35
35
  country_code: z.union([z.string(), z.null()]),
36
36
  tax_number: z.union([z.string(), z.null()]),
37
+ tax_number_2: z.union([z.string(), z.null()]),
38
+ company_number: z.union([z.string(), z.null()]),
37
39
  bank_account: z.union([
38
40
  z
39
41
  .object({
@@ -71,6 +73,8 @@ const createEstimateSchemaDefinition = z.object({
71
73
  country: z.union([z.string(), z.null()]),
72
74
  country_code: z.union([z.string(), z.null()]),
73
75
  tax_number: z.union([z.string(), z.null()]),
76
+ tax_number_2: z.union([z.string(), z.null()]),
77
+ company_number: z.union([z.string(), z.null()]),
74
78
  bank_account: z.union([
75
79
  z
76
80
  .object({
@@ -98,6 +102,7 @@ const createEstimateSchemaDefinition = z.object({
98
102
  .optional(),
99
103
  note: z.union([z.string(), z.null()]).optional(),
100
104
  payment_terms: z.union([z.string(), z.null()]).optional(),
105
+ tax_clause: z.union([z.string(), z.null()]).optional(),
101
106
  currency_code: z.string().max(3).optional(),
102
107
  metadata: z.union([z.record(z.string(), z.any()), z.null()]).optional(),
103
108
  date_valid_till: z.union([z.string(), z.null()]).optional(),
@@ -108,7 +113,7 @@ const createEstimateSchemaDefinition = z.object({
108
113
  items: z
109
114
  .array(
110
115
  z.object({
111
- name: z.string().min(1),
116
+ name: z.string().min(1).optional(),
112
117
  description: z.union([z.string().max(4000, "Description must not exceed 4000 characters"), z.null()]).optional(),
113
118
  price: z.number().optional(),
114
119
  gross_price: z.number().optional(),
@@ -139,6 +144,7 @@ const createEstimateSchemaDefinition = z.object({
139
144
  z.null(),
140
145
  ])
141
146
  .optional(),
147
+ item_id: z.string().optional(),
142
148
  })
143
149
  )
144
150
  .min(1),
@@ -151,9 +157,151 @@ const createEstimateSchemaDefinition = z.object({
151
157
  z.null(),
152
158
  ])
153
159
  .optional(),
160
+ expected_total_with_tax: z.number().gt(0).optional(),
154
161
  });
155
162
 
156
163
  // Type for create estimate operation
157
164
  export type CreateEstimateSchema = z.infer<typeof createEstimateSchemaDefinition>;
158
165
 
166
+
167
+ // Schema for update estimate operation
168
+ const updateEstimateSchemaDefinition = z
169
+ .object({
170
+ date: z
171
+ .string()
172
+ .regex(/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/),
173
+ issuer: z
174
+ .object({
175
+ name: z.union([z.string(), z.null()]),
176
+ email: z.union([z.string(), z.null()]),
177
+ address: z.union([z.string(), z.null()]),
178
+ address_2: z.union([z.string(), z.null()]),
179
+ post_code: z.union([z.string(), z.null()]),
180
+ city: z.union([z.string(), z.null()]),
181
+ state: z.union([z.string(), z.null()]),
182
+ country: z.union([z.string(), z.null()]),
183
+ country_code: z.union([z.string(), z.null()]),
184
+ tax_number: z.union([z.string(), z.null()]),
185
+ tax_number_2: z.union([z.string(), z.null()]),
186
+ company_number: z.union([z.string(), z.null()]),
187
+ bank_account: z.union([
188
+ z
189
+ .object({
190
+ type: z
191
+ .enum(["iban", "us_domestic", "uk_domestic", "other"])
192
+ .default("iban"),
193
+ name: z.string(),
194
+ bank_name: z.string(),
195
+ iban: z.string(),
196
+ account_number: z.string(),
197
+ bic: z.string(),
198
+ routing_number: z.string(),
199
+ sort_code: z.string(),
200
+ })
201
+ .partial()
202
+ .passthrough(),
203
+ z.null(),
204
+ ]),
205
+ })
206
+ .partial()
207
+ .passthrough(),
208
+ customer_id: z.union([z.string(), z.null()]),
209
+ customer: z.union([
210
+ z
211
+ .object({
212
+ name: z.union([z.string(), z.null()]),
213
+ email: z.union([z.string(), z.null()]),
214
+ address: z.union([z.string(), z.null()]),
215
+ address_2: z.union([z.string(), z.null()]),
216
+ post_code: z.union([z.string(), z.null()]),
217
+ city: z.union([z.string(), z.null()]),
218
+ state: z.union([z.string(), z.null()]),
219
+ country: z.union([z.string(), z.null()]),
220
+ country_code: z.union([z.string(), z.null()]),
221
+ tax_number: z.union([z.string(), z.null()]),
222
+ tax_number_2: z.union([z.string(), z.null()]),
223
+ company_number: z.union([z.string(), z.null()]),
224
+ bank_account: z.union([
225
+ z
226
+ .object({
227
+ type: z
228
+ .enum(["iban", "us_domestic", "uk_domestic", "other"])
229
+ .default("iban"),
230
+ name: z.string(),
231
+ bank_name: z.string(),
232
+ iban: z.string(),
233
+ account_number: z.string(),
234
+ bic: z.string(),
235
+ routing_number: z.string(),
236
+ sort_code: z.string(),
237
+ })
238
+ .partial()
239
+ .passthrough(),
240
+ z.null(),
241
+ ]),
242
+ save_customer: z.boolean().default(true),
243
+ })
244
+ .partial()
245
+ .passthrough(),
246
+ z.null(),
247
+ ]),
248
+ items: z
249
+ .array(
250
+ z.object({
251
+ name: z.string().min(1).optional(),
252
+ description: z.union([z.string().max(4000, "Description must not exceed 4000 characters"), z.null()]).optional(),
253
+ price: z.number().optional(),
254
+ gross_price: z.number().optional(),
255
+ quantity: z.number().gte(-140737488355328).lte(140737488355327),
256
+ unit: z.union([z.string(), z.null()]).optional(),
257
+ taxes: z
258
+ .array(
259
+ z
260
+ .object({
261
+ rate: z.number(),
262
+ tax_id: z.string(),
263
+ classification: z.string(),
264
+ reverse_charge: z.boolean(),
265
+ amount: z.number(),
266
+ })
267
+ .partial()
268
+ )
269
+ .optional(),
270
+ discounts: z.array(LineDiscount).max(5).optional(),
271
+ metadata: z
272
+ .union([
273
+ z.string(),
274
+ z.number(),
275
+ z.boolean(),
276
+ z.null(),
277
+ z.object({}).partial().passthrough(),
278
+ z.array(z.unknown()),
279
+ z.null(),
280
+ ])
281
+ .optional(),
282
+ item_id: z.string().optional(),
283
+ })
284
+ )
285
+ .min(1),
286
+ note: z.union([z.string(), z.null()]),
287
+ payment_terms: z.union([z.string(), z.null()]),
288
+ currency_code: z.string(),
289
+ metadata: z.union([z.object({}).partial().passthrough(), z.null()]),
290
+ change_reason: z.string().max(500),
291
+ date_valid_till: z.union([z.string(), z.null()]),
292
+ title_type: z.enum(["estimate", "quote"]),
293
+ eslog: z.union([
294
+ z
295
+ .object({ validation_enabled: z.union([z.boolean(), z.null()]) })
296
+ .partial()
297
+ .passthrough(),
298
+ z.null(),
299
+ ]),
300
+ })
301
+ .partial();
302
+
303
+ // Type for update estimate operation
304
+ export type UpdateEstimateSchema = z.infer<typeof updateEstimateSchemaDefinition>;
305
+
159
306
  export const createEstimateSchema = createEstimateSchemaDefinition;
307
+ export const updateEstimateSchema = updateEstimateSchemaDefinition;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was automatically generated using 'bun generate-schemas'.
3
+ * Do not edit this file manually. To update, run the generator again.
4
+ * @generated
5
+ */
6
+
7
+ import { z } from 'zod';
8
+
9
+ // Schemas for finasettings endpoints
10
+
11
+ // Schema for update finasettings operation
12
+ const updateFinaSettingsSchemaDefinition = z
13
+ .object({
14
+ enabled: z.boolean(),
15
+ operator_oib: z.string().min(11).max(11),
16
+ operator_label: z.string(),
17
+ u_sust_pdv: z.boolean(),
18
+ numbering_sequence: z.enum(["N", "P"]),
19
+ })
20
+ .partial();
21
+
22
+ // Type for update finasettings operation
23
+ export type UpdateFinaSettingsSchema = z.infer<typeof updateFinaSettingsSchemaDefinition>;
24
+
25
+ export const updateFinaSettingsSchema = updateFinaSettingsSchemaDefinition;
@@ -16,8 +16,7 @@ const updateFursSettingsSchemaDefinition = z
16
16
  operator_tax_number: z.string(),
17
17
  operator_label: z.string(),
18
18
  })
19
- .partial()
20
- .passthrough();
19
+ .partial();
21
20
 
22
21
  // Type for update furssettings operation
23
22
  export type UpdateFursSettingsSchema = z.infer<typeof updateFursSettingsSchemaDefinition>;
@@ -4,21 +4,40 @@
4
4
  * @generated
5
5
  */
6
6
 
7
- export * from './advanceinvoice';
7
+ export * from './invoice';
8
+ export * from './custominvoice';
9
+ export * from './renderinvoicepreview_body';
10
+ export * from './estimate';
11
+ export * from './customestimate';
12
+ export * from './renderestimatepreview_body';
13
+ export * from './customcreditnote';
8
14
  export * from './creditnote';
15
+ export * from './rendercreditnotepreview_body';
16
+ export * from './advanceinvoice';
17
+ export * from './customadvanceinvoice';
18
+ export * from './renderadvanceinvoicepreview_body';
19
+ export * from './senddocument_body';
20
+ export * from './addentityuser_body';
21
+ export * from './entityuserrole';
22
+ export * from './acceptentityinvitation_body';
9
23
  export * from './entity';
10
- export * from './estimate';
11
- export * from './invoice';
12
24
  export * from './startpdfexport_body';
13
- export * from './renderdocument_body';
14
25
  export * from './item';
15
26
  export * from './payment';
16
27
  export * from './tax';
17
28
  export * from './uploadfile_body';
29
+ export * from './me';
18
30
  export * from './userfurssettings';
19
31
  export * from './customer';
20
32
  export * from './sendemail_body';
21
- export * from './uploadfurscertificate_body';
33
+ export * from './webhook';
22
34
  export * from './furssettings';
35
+ export * from './uploadfurscertificate_body';
23
36
  export * from './registerfursrealestatepremise_body';
24
37
  export * from './registerfursmovablepremise_body';
38
+ export * from './finasettings';
39
+ export * from './registerfinarealestatepremise_body';
40
+ export * from './registerfinamovablepremise_body';
41
+ export * from './stripeappconnect_body';
42
+ export * from './stripeappupdatesettings_body';
43
+ export * from './stripeappcreateinvoice_body';