@endevops/peppol-schema 0.1.0-beta.6 → 0.1.0-beta.7

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 (544) hide show
  1. package/dist/constants.js.map +1 -1
  2. package/dist/index.js +77 -77
  3. package/dist/index.js.map +1 -1
  4. package/dist/is-valid-abn-160i38PG.js.map +1 -1
  5. package/dist/is-valid-mod97-0208-CzMOXMO-.js.map +1 -1
  6. package/dist/parser-options-mbqEQPSY.js.map +1 -1
  7. package/dist/peppol-iso-date-string-BXLxzxdz.js.map +1 -1
  8. package/dist/schematron.d.ts.map +1 -1
  9. package/dist/schematron.js.map +1 -1
  10. package/dist/validations.js.map +1 -1
  11. package/package.json +6 -1
  12. package/src/constants/credit-note-doctype-id.ts +1 -1
  13. package/src/constants/credit-note-process-id.ts +1 -1
  14. package/src/constants/index.ts +14 -14
  15. package/src/constants/invoice-doctype-id.ts +1 -1
  16. package/src/constants/invoice-process-id.ts +1 -1
  17. package/src/constants/invoice-response-doctype-id.ts +1 -1
  18. package/src/constants/invoice-response-process-id.ts +2 -2
  19. package/src/constants/message-level-response-doctype-id.ts +1 -1
  20. package/src/constants/message-level-response-process-id.ts +2 -2
  21. package/src/decoders/decode-billing.ts +16 -16
  22. package/src/decoders/decode-credit-note.ts +5 -5
  23. package/src/decoders/decode-invoice-response.ts +7 -7
  24. package/src/decoders/decode-invoice.ts +6 -6
  25. package/src/decoders/decode-message-level-response.ts +6 -6
  26. package/src/decoders/encode-credit-note.ts +16 -16
  27. package/src/decoders/encode-invoice-response.ts +2 -2
  28. package/src/decoders/encode-invoice.ts +16 -16
  29. package/src/decoders/encode-message-level-response.ts +3 -3
  30. package/src/decoders/fields/decode-additional-document-references.ts +7 -7
  31. package/src/decoders/fields/decode-address.ts +5 -5
  32. package/src/decoders/fields/decode-allowance-charges.ts +6 -6
  33. package/src/decoders/fields/decode-amount.ts +5 -5
  34. package/src/decoders/fields/decode-application-response.ts +3 -3
  35. package/src/decoders/fields/decode-base-allowance-charge.ts +5 -5
  36. package/src/decoders/fields/decode-billing-references.ts +5 -5
  37. package/src/decoders/fields/decode-contact.ts +5 -5
  38. package/src/decoders/fields/decode-credit-note-lines.ts +4 -4
  39. package/src/decoders/fields/decode-delivery.ts +8 -8
  40. package/src/decoders/fields/decode-electronic-address.ts +3 -3
  41. package/src/decoders/fields/decode-identifier.ts +5 -5
  42. package/src/decoders/fields/decode-invoice-line-period.ts +5 -5
  43. package/src/decoders/fields/decode-invoice-lines.ts +4 -4
  44. package/src/decoders/fields/decode-invoice-message-document-party.ts +6 -6
  45. package/src/decoders/fields/decode-invoice-message-party.ts +6 -6
  46. package/src/decoders/fields/decode-invoice-period.ts +3 -3
  47. package/src/decoders/fields/decode-legal-monetary-total.ts +5 -5
  48. package/src/decoders/fields/decode-line-allowance-charges.ts +5 -5
  49. package/src/decoders/fields/decode-line-price.ts +5 -5
  50. package/src/decoders/fields/decode-line-shared.ts +13 -13
  51. package/src/decoders/fields/decode-message-level-party.ts +5 -5
  52. package/src/decoders/fields/decode-node-list.ts +2 -2
  53. package/src/decoders/fields/decode-order-reference.ts +5 -5
  54. package/src/decoders/fields/decode-parties-tax-scheme.ts +5 -5
  55. package/src/decoders/fields/decode-party-legal-entity.ts +6 -6
  56. package/src/decoders/fields/decode-party-tax-scheme.ts +6 -6
  57. package/src/decoders/fields/decode-party.ts +9 -9
  58. package/src/decoders/fields/decode-payee-party.ts +6 -6
  59. package/src/decoders/fields/decode-payment-means.ts +8 -8
  60. package/src/decoders/fields/decode-payment-terms.ts +5 -5
  61. package/src/decoders/fields/decode-price-allowance-charge.ts +4 -4
  62. package/src/decoders/fields/decode-quantity.ts +3 -3
  63. package/src/decoders/fields/decode-simple-identifier.ts +4 -4
  64. package/src/decoders/fields/decode-tax-category.ts +7 -7
  65. package/src/decoders/fields/decode-tax-representative-party.ts +7 -7
  66. package/src/decoders/fields/decode-tax-totals.ts +10 -10
  67. package/src/decoders/fields/encode-additional-document-references.ts +2 -2
  68. package/src/decoders/fields/encode-address.ts +2 -2
  69. package/src/decoders/fields/encode-allowance-charges.ts +3 -3
  70. package/src/decoders/fields/encode-amount.ts +1 -1
  71. package/src/decoders/fields/encode-billing-references.ts +1 -1
  72. package/src/decoders/fields/encode-contact.ts +1 -1
  73. package/src/decoders/fields/encode-credit-note-lines.ts +2 -2
  74. package/src/decoders/fields/encode-delivery.ts +3 -3
  75. package/src/decoders/fields/encode-identifier.ts +1 -1
  76. package/src/decoders/fields/encode-invoice-line-period.ts +1 -1
  77. package/src/decoders/fields/encode-invoice-lines.ts +2 -2
  78. package/src/decoders/fields/encode-invoice-period.ts +1 -1
  79. package/src/decoders/fields/encode-legal-monetary-total.ts +2 -2
  80. package/src/decoders/fields/encode-line-allowance-charges.ts +2 -2
  81. package/src/decoders/fields/encode-line-price.ts +4 -4
  82. package/src/decoders/fields/encode-line-shared.ts +9 -9
  83. package/src/decoders/fields/encode-message-party.ts +7 -7
  84. package/src/decoders/fields/encode-order-reference.ts +1 -1
  85. package/src/decoders/fields/encode-parties-tax-scheme.ts +3 -3
  86. package/src/decoders/fields/encode-party-legal-entity.ts +1 -1
  87. package/src/decoders/fields/encode-party-tax-scheme.ts +3 -3
  88. package/src/decoders/fields/encode-party.ts +6 -6
  89. package/src/decoders/fields/encode-payee-party.ts +2 -2
  90. package/src/decoders/fields/encode-payment-means.ts +2 -2
  91. package/src/decoders/fields/encode-payment-terms.ts +1 -1
  92. package/src/decoders/fields/encode-price-allowance-charges.ts +2 -2
  93. package/src/decoders/fields/encode-quantity.ts +1 -1
  94. package/src/decoders/fields/encode-tax-category.ts +2 -2
  95. package/src/decoders/fields/encode-tax-representative-party.ts +4 -4
  96. package/src/decoders/fields/encode-tax-totals.ts +4 -4
  97. package/src/helpers/bool.ts +2 -2
  98. package/src/helpers/get-array.ts +2 -2
  99. package/src/helpers/num-or-und.ts +2 -2
  100. package/src/helpers/str-or-array.ts +3 -3
  101. package/src/helpers/str-or-und.ts +2 -2
  102. package/src/helpers/str.ts +2 -2
  103. package/src/index.ts +54 -54
  104. package/src/invoice-response-codes/index.ts +3 -3
  105. package/src/peppol-validations/check-cf.ts +2 -2
  106. package/src/peppol-validations/check-cf16.ts +1 -1
  107. package/src/peppol-validations/check-piva-se-it.ts +1 -1
  108. package/src/peppol-validations/check-piva.ts +1 -1
  109. package/src/peppol-validations/check-se-orgnr.ts +1 -1
  110. package/src/peppol-validations/index.ts +13 -13
  111. package/src/peppol-validations/is-valid-abn.ts +1 -1
  112. package/src/peppol-validations/is-valid-iban.ts +1 -1
  113. package/src/peppol-validations/is-valid-mod11.ts +1 -1
  114. package/src/peppol-validations/is-valid-mod97-0208.ts +1 -1
  115. package/src/peppol-validations/luhn-check.ts +1 -1
  116. package/src/schemas/fields/peppol-additional-document-reference-schema.ts +4 -4
  117. package/src/schemas/fields/peppol-address-schema.ts +2 -2
  118. package/src/schemas/fields/peppol-allowance-charge-schema.ts +6 -6
  119. package/src/schemas/fields/peppol-amount-schema.ts +2 -2
  120. package/src/schemas/fields/peppol-base-line-schema.ts +7 -7
  121. package/src/schemas/fields/peppol-billing-reference-schema.ts +2 -2
  122. package/src/schemas/fields/peppol-binary-object-schema.ts +3 -3
  123. package/src/schemas/fields/peppol-contact-schema.ts +1 -1
  124. package/src/schemas/fields/peppol-credit-note-line-schema.ts +4 -4
  125. package/src/schemas/fields/peppol-delivery-schema.ts +5 -5
  126. package/src/schemas/fields/peppol-identifier-schema.ts +1 -1
  127. package/src/schemas/fields/peppol-invoice-line-period-schema.ts +2 -2
  128. package/src/schemas/fields/peppol-invoice-line-schema.ts +4 -4
  129. package/src/schemas/fields/peppol-invoice-period-schema.ts +3 -3
  130. package/src/schemas/fields/peppol-item-classification-schema.ts +2 -2
  131. package/src/schemas/fields/peppol-legal-monetary-total-schema.ts +2 -2
  132. package/src/schemas/fields/peppol-line-allowance-charge-schema.ts +4 -4
  133. package/src/schemas/fields/peppol-line-item-schema.ts +6 -6
  134. package/src/schemas/fields/peppol-line-price-allowance-charge-schema.ts +2 -2
  135. package/src/schemas/fields/peppol-line-price-schema.ts +4 -4
  136. package/src/schemas/fields/peppol-order-reference-schema.ts +1 -1
  137. package/src/schemas/fields/peppol-party-base-schema.ts +8 -8
  138. package/src/schemas/fields/peppol-party-legal-entity-schema.ts +2 -2
  139. package/src/schemas/fields/peppol-party-tax-scheme-schema.ts +1 -1
  140. package/src/schemas/fields/peppol-payee-party-schema.ts +3 -3
  141. package/src/schemas/fields/peppol-payment-means-schema.ts +3 -3
  142. package/src/schemas/fields/peppol-payment-terms-schema.ts +1 -1
  143. package/src/schemas/fields/peppol-quantity-schema.ts +2 -2
  144. package/src/schemas/fields/peppol-reference-schema.ts +1 -1
  145. package/src/schemas/fields/peppol-tax-category-schema.ts +2 -2
  146. package/src/schemas/fields/peppol-tax-representative-schema.ts +3 -3
  147. package/src/schemas/fields/peppol-tax-subtotal-category-schema.ts +2 -2
  148. package/src/schemas/fields/peppol-tax-subtotal-schema.ts +3 -3
  149. package/src/schemas/fields/peppol-tax-totals-base-schema.ts +3 -3
  150. package/src/schemas/peppol-billing-base-schema.ts +18 -18
  151. package/src/schemas/peppol-credit-note-schema.ts +4 -4
  152. package/src/schemas/peppol-document-response-document-reference-schema.ts +2 -2
  153. package/src/schemas/peppol-document-response-document-schema.ts +2 -2
  154. package/src/schemas/peppol-document-response-line-response-content-schema.ts +2 -2
  155. package/src/schemas/peppol-document-response-line-response-schema.ts +2 -2
  156. package/src/schemas/peppol-document-schema.ts +21 -21
  157. package/src/schemas/peppol-invoice-response-document-actual-response-schema.ts +5 -5
  158. package/src/schemas/peppol-invoice-response-document-actual-response-status-schema.ts +2 -2
  159. package/src/schemas/peppol-invoice-response-schema.ts +10 -10
  160. package/src/schemas/peppol-invoice-response-status-reason-code-schema.ts +3 -3
  161. package/src/schemas/peppol-invoice-schema.ts +5 -5
  162. package/src/schemas/peppol-iso-date-string.ts +1 -1
  163. package/src/schemas/peppol-message-level-response-document-response-schema.ts +4 -4
  164. package/src/schemas/peppol-message-level-response-party-schema.ts +2 -2
  165. package/src/schemas/peppol-message-level-response-schema.ts +6 -6
  166. package/src/schemas/utils/format-quantity-with-unit.ts +1 -1
  167. package/src/schemas/utils/get-credit-note-type-code-description.ts +1 -1
  168. package/src/schemas/utils/get-invoice-type-code-description.ts +1 -1
  169. package/src/schemas/utils/index.ts +10 -10
  170. package/src/schemas/utils/is-valid-credit-note-type-code.ts +1 -1
  171. package/src/schemas/utils/is-valid-invoice-type-code.ts +1 -1
  172. package/src/schemas/utils/is-valid-process.ts +1 -1
  173. package/src/schemas/utils/peppol-vat-regex-schema.ts +1 -1
  174. package/src/schemas/utils/peppol-xsd-time-schema.ts +2 -2
  175. package/src/schemas/utils/quantity-unit-code-to-intl-unit.ts +1 -1
  176. package/src/schemas/values/index.ts +27 -27
  177. package/src/schemas/values/process-from-document-type-schema.ts +2 -2
  178. package/src/schematron/cen/ae/cen-en16931-br-ae-01.ts +3 -3
  179. package/src/schematron/cen/ae/cen-en16931-br-ae-02.ts +3 -3
  180. package/src/schematron/cen/ae/cen-en16931-br-ae-03.ts +3 -3
  181. package/src/schematron/cen/ae/cen-en16931-br-ae-04.ts +3 -3
  182. package/src/schematron/cen/ae/cen-en16931-br-ae-05.ts +3 -3
  183. package/src/schematron/cen/ae/cen-en16931-br-ae-06.ts +3 -3
  184. package/src/schematron/cen/ae/cen-en16931-br-ae-07.ts +3 -3
  185. package/src/schematron/cen/ae/cen-en16931-br-ae-08.ts +3 -3
  186. package/src/schematron/cen/ae/cen-en16931-br-ae-09.ts +3 -3
  187. package/src/schematron/cen/ae/cen-en16931-br-ae-10.ts +3 -3
  188. package/src/schematron/cen/af/cen-en16931-br-af-01.ts +3 -3
  189. package/src/schematron/cen/af/cen-en16931-br-af-02.ts +3 -3
  190. package/src/schematron/cen/af/cen-en16931-br-af-03.ts +8 -3
  191. package/src/schematron/cen/af/cen-en16931-br-af-04.ts +3 -3
  192. package/src/schematron/cen/af/cen-en16931-br-af-05.ts +3 -3
  193. package/src/schematron/cen/af/cen-en16931-br-af-06.ts +3 -3
  194. package/src/schematron/cen/af/cen-en16931-br-af-07.ts +3 -3
  195. package/src/schematron/cen/af/cen-en16931-br-af-08.ts +3 -3
  196. package/src/schematron/cen/af/cen-en16931-br-af-09.ts +3 -3
  197. package/src/schematron/cen/af/cen-en16931-br-af-10.ts +3 -3
  198. package/src/schematron/cen/ag/cen-en16931-br-ag-01.ts +3 -3
  199. package/src/schematron/cen/ag/cen-en16931-br-ag-02.ts +3 -3
  200. package/src/schematron/cen/ag/cen-en16931-br-ag-03.ts +8 -3
  201. package/src/schematron/cen/ag/cen-en16931-br-ag-04.ts +3 -3
  202. package/src/schematron/cen/ag/cen-en16931-br-ag-05.ts +3 -3
  203. package/src/schematron/cen/ag/cen-en16931-br-ag-06.ts +3 -3
  204. package/src/schematron/cen/ag/cen-en16931-br-ag-07.ts +3 -3
  205. package/src/schematron/cen/ag/cen-en16931-br-ag-08.ts +3 -3
  206. package/src/schematron/cen/ag/cen-en16931-br-ag-09.ts +3 -3
  207. package/src/schematron/cen/ag/cen-en16931-br-ag-10.ts +3 -3
  208. package/src/schematron/cen/b/cen-en16931-br-b-01.ts +3 -3
  209. package/src/schematron/cen/b/cen-en16931-br-b-02.ts +3 -3
  210. package/src/schematron/cen/cen-en16931-br-01.ts +3 -3
  211. package/src/schematron/cen/cen-en16931-br-02.ts +3 -3
  212. package/src/schematron/cen/cen-en16931-br-03.ts +3 -3
  213. package/src/schematron/cen/cen-en16931-br-04.ts +3 -3
  214. package/src/schematron/cen/cen-en16931-br-05.ts +3 -3
  215. package/src/schematron/cen/cen-en16931-br-06.ts +3 -3
  216. package/src/schematron/cen/cen-en16931-br-07.ts +3 -3
  217. package/src/schematron/cen/cen-en16931-br-08.ts +3 -3
  218. package/src/schematron/cen/cen-en16931-br-09.ts +3 -3
  219. package/src/schematron/cen/cen-en16931-br-10.ts +3 -3
  220. package/src/schematron/cen/cen-en16931-br-11.ts +3 -3
  221. package/src/schematron/cen/cen-en16931-br-12.ts +3 -3
  222. package/src/schematron/cen/cen-en16931-br-13.ts +3 -3
  223. package/src/schematron/cen/cen-en16931-br-14.ts +3 -3
  224. package/src/schematron/cen/cen-en16931-br-15.ts +3 -3
  225. package/src/schematron/cen/cen-en16931-br-16.ts +3 -3
  226. package/src/schematron/cen/cen-en16931-br-17.ts +3 -3
  227. package/src/schematron/cen/cen-en16931-br-18.ts +3 -3
  228. package/src/schematron/cen/cen-en16931-br-19.ts +3 -3
  229. package/src/schematron/cen/cen-en16931-br-20.ts +3 -3
  230. package/src/schematron/cen/cen-en16931-br-21.ts +3 -3
  231. package/src/schematron/cen/cen-en16931-br-22.ts +3 -3
  232. package/src/schematron/cen/cen-en16931-br-23.ts +3 -3
  233. package/src/schematron/cen/cen-en16931-br-24.ts +3 -3
  234. package/src/schematron/cen/cen-en16931-br-25.ts +3 -3
  235. package/src/schematron/cen/cen-en16931-br-26.ts +3 -3
  236. package/src/schematron/cen/cen-en16931-br-27.ts +3 -3
  237. package/src/schematron/cen/cen-en16931-br-28.ts +3 -3
  238. package/src/schematron/cen/cen-en16931-br-29.ts +3 -3
  239. package/src/schematron/cen/cen-en16931-br-30.ts +3 -3
  240. package/src/schematron/cen/cen-en16931-br-31.ts +3 -3
  241. package/src/schematron/cen/cen-en16931-br-32.ts +3 -3
  242. package/src/schematron/cen/cen-en16931-br-33.ts +3 -3
  243. package/src/schematron/cen/cen-en16931-br-36.ts +3 -3
  244. package/src/schematron/cen/cen-en16931-br-37.ts +3 -3
  245. package/src/schematron/cen/cen-en16931-br-38.ts +3 -3
  246. package/src/schematron/cen/cen-en16931-br-41.ts +3 -3
  247. package/src/schematron/cen/cen-en16931-br-42.ts +3 -3
  248. package/src/schematron/cen/cen-en16931-br-43.ts +3 -3
  249. package/src/schematron/cen/cen-en16931-br-44.ts +3 -3
  250. package/src/schematron/cen/cen-en16931-br-45.ts +3 -3
  251. package/src/schematron/cen/cen-en16931-br-46.ts +3 -3
  252. package/src/schematron/cen/cen-en16931-br-47.ts +3 -3
  253. package/src/schematron/cen/cen-en16931-br-48.ts +3 -3
  254. package/src/schematron/cen/cen-en16931-br-49.ts +3 -3
  255. package/src/schematron/cen/cen-en16931-br-50.ts +3 -3
  256. package/src/schematron/cen/cen-en16931-br-51.ts +3 -3
  257. package/src/schematron/cen/cen-en16931-br-52.ts +3 -3
  258. package/src/schematron/cen/cen-en16931-br-53.ts +3 -3
  259. package/src/schematron/cen/cen-en16931-br-54.ts +3 -3
  260. package/src/schematron/cen/cen-en16931-br-55.ts +3 -3
  261. package/src/schematron/cen/cen-en16931-br-56.ts +3 -3
  262. package/src/schematron/cen/cen-en16931-br-57.ts +3 -3
  263. package/src/schematron/cen/cen-en16931-br-61.ts +3 -3
  264. package/src/schematron/cen/cen-en16931-br-62.ts +3 -3
  265. package/src/schematron/cen/cen-en16931-br-63.ts +3 -3
  266. package/src/schematron/cen/cen-en16931-br-64.ts +3 -3
  267. package/src/schematron/cen/cen-en16931-br-65.ts +3 -3
  268. package/src/schematron/cen/cl/cen-en16931-br-cl-08.ts +3 -3
  269. package/src/schematron/cen/co/cen-en16931-br-co-03.ts +3 -3
  270. package/src/schematron/cen/co/cen-en16931-br-co-04.ts +3 -3
  271. package/src/schematron/cen/co/cen-en16931-br-co-05.ts +3 -3
  272. package/src/schematron/cen/co/cen-en16931-br-co-06.ts +3 -3
  273. package/src/schematron/cen/co/cen-en16931-br-co-07.ts +3 -3
  274. package/src/schematron/cen/co/cen-en16931-br-co-08.ts +3 -3
  275. package/src/schematron/cen/co/cen-en16931-br-co-09.ts +3 -3
  276. package/src/schematron/cen/co/cen-en16931-br-co-10.ts +3 -3
  277. package/src/schematron/cen/co/cen-en16931-br-co-11.ts +3 -3
  278. package/src/schematron/cen/co/cen-en16931-br-co-12.ts +3 -3
  279. package/src/schematron/cen/co/cen-en16931-br-co-13.ts +3 -3
  280. package/src/schematron/cen/co/cen-en16931-br-co-14.ts +3 -3
  281. package/src/schematron/cen/co/cen-en16931-br-co-15.ts +3 -3
  282. package/src/schematron/cen/co/cen-en16931-br-co-16.ts +3 -3
  283. package/src/schematron/cen/co/cen-en16931-br-co-17.ts +3 -3
  284. package/src/schematron/cen/co/cen-en16931-br-co-18.ts +3 -3
  285. package/src/schematron/cen/co/cen-en16931-br-co-19.ts +3 -3
  286. package/src/schematron/cen/co/cen-en16931-br-co-20.ts +3 -3
  287. package/src/schematron/cen/co/cen-en16931-br-co-21.ts +3 -3
  288. package/src/schematron/cen/co/cen-en16931-br-co-22.ts +3 -3
  289. package/src/schematron/cen/co/cen-en16931-br-co-23.ts +3 -3
  290. package/src/schematron/cen/co/cen-en16931-br-co-24.ts +3 -3
  291. package/src/schematron/cen/co/cen-en16931-br-co-25.ts +3 -3
  292. package/src/schematron/cen/co/cen-en16931-br-co-26.ts +3 -3
  293. package/src/schematron/cen/dec/cen-en16931-br-dec-01.ts +3 -3
  294. package/src/schematron/cen/dec/cen-en16931-br-dec-02.ts +3 -3
  295. package/src/schematron/cen/dec/cen-en16931-br-dec-05.ts +3 -3
  296. package/src/schematron/cen/dec/cen-en16931-br-dec-06.ts +3 -3
  297. package/src/schematron/cen/dec/cen-en16931-br-dec-09.ts +3 -3
  298. package/src/schematron/cen/dec/cen-en16931-br-dec-10.ts +3 -3
  299. package/src/schematron/cen/dec/cen-en16931-br-dec-11.ts +3 -3
  300. package/src/schematron/cen/dec/cen-en16931-br-dec-12.ts +3 -3
  301. package/src/schematron/cen/dec/cen-en16931-br-dec-13.ts +3 -3
  302. package/src/schematron/cen/dec/cen-en16931-br-dec-14.ts +3 -3
  303. package/src/schematron/cen/dec/cen-en16931-br-dec-15.ts +3 -3
  304. package/src/schematron/cen/dec/cen-en16931-br-dec-16.ts +3 -3
  305. package/src/schematron/cen/dec/cen-en16931-br-dec-17.ts +3 -3
  306. package/src/schematron/cen/dec/cen-en16931-br-dec-18.ts +3 -3
  307. package/src/schematron/cen/dec/cen-en16931-br-dec-19.ts +3 -3
  308. package/src/schematron/cen/dec/cen-en16931-br-dec-20.ts +3 -3
  309. package/src/schematron/cen/dec/cen-en16931-br-dec-23.ts +3 -3
  310. package/src/schematron/cen/dec/cen-en16931-br-dec-24.ts +3 -3
  311. package/src/schematron/cen/dec/cen-en16931-br-dec-25.ts +3 -3
  312. package/src/schematron/cen/dec/cen-en16931-br-dec-27.ts +3 -3
  313. package/src/schematron/cen/dec/cen-en16931-br-dec-28.ts +3 -3
  314. package/src/schematron/cen/e/cen-en16931-br-e-01.ts +3 -3
  315. package/src/schematron/cen/e/cen-en16931-br-e-02.ts +3 -3
  316. package/src/schematron/cen/e/cen-en16931-br-e-03.ts +8 -3
  317. package/src/schematron/cen/e/cen-en16931-br-e-04.ts +3 -3
  318. package/src/schematron/cen/e/cen-en16931-br-e-05.ts +3 -3
  319. package/src/schematron/cen/e/cen-en16931-br-e-06.ts +3 -3
  320. package/src/schematron/cen/e/cen-en16931-br-e-07.ts +3 -3
  321. package/src/schematron/cen/e/cen-en16931-br-e-08.ts +3 -3
  322. package/src/schematron/cen/e/cen-en16931-br-e-09.ts +3 -3
  323. package/src/schematron/cen/e/cen-en16931-br-e-10.ts +3 -3
  324. package/src/schematron/cen/g/cen-en16931-br-g-01.ts +3 -3
  325. package/src/schematron/cen/g/cen-en16931-br-g-02.ts +3 -3
  326. package/src/schematron/cen/g/cen-en16931-br-g-03.ts +8 -3
  327. package/src/schematron/cen/g/cen-en16931-br-g-04.ts +3 -3
  328. package/src/schematron/cen/g/cen-en16931-br-g-05.ts +3 -3
  329. package/src/schematron/cen/g/cen-en16931-br-g-06.ts +3 -3
  330. package/src/schematron/cen/g/cen-en16931-br-g-07.ts +3 -3
  331. package/src/schematron/cen/g/cen-en16931-br-g-08.ts +3 -3
  332. package/src/schematron/cen/g/cen-en16931-br-g-09.ts +3 -3
  333. package/src/schematron/cen/g/cen-en16931-br-g-10.ts +3 -3
  334. package/src/schematron/cen/ic/cen-en16931-br-ic-01.ts +3 -3
  335. package/src/schematron/cen/ic/cen-en16931-br-ic-02.ts +3 -3
  336. package/src/schematron/cen/ic/cen-en16931-br-ic-03.ts +3 -3
  337. package/src/schematron/cen/ic/cen-en16931-br-ic-04.ts +3 -3
  338. package/src/schematron/cen/ic/cen-en16931-br-ic-05.ts +3 -3
  339. package/src/schematron/cen/ic/cen-en16931-br-ic-06.ts +3 -3
  340. package/src/schematron/cen/ic/cen-en16931-br-ic-07.ts +3 -3
  341. package/src/schematron/cen/ic/cen-en16931-br-ic-08.ts +3 -3
  342. package/src/schematron/cen/ic/cen-en16931-br-ic-09.ts +3 -3
  343. package/src/schematron/cen/ic/cen-en16931-br-ic-10.ts +3 -3
  344. package/src/schematron/cen/ic/cen-en16931-br-ic-11.ts +3 -3
  345. package/src/schematron/cen/ic/cen-en16931-br-ic-12.ts +3 -3
  346. package/src/schematron/cen/o/cen-en16931-br-o-01.ts +3 -3
  347. package/src/schematron/cen/o/cen-en16931-br-o-02.ts +3 -3
  348. package/src/schematron/cen/o/cen-en16931-br-o-03.ts +3 -3
  349. package/src/schematron/cen/o/cen-en16931-br-o-04.ts +3 -3
  350. package/src/schematron/cen/o/cen-en16931-br-o-05.ts +3 -3
  351. package/src/schematron/cen/o/cen-en16931-br-o-06.ts +3 -3
  352. package/src/schematron/cen/o/cen-en16931-br-o-07.ts +3 -3
  353. package/src/schematron/cen/o/cen-en16931-br-o-08.ts +3 -3
  354. package/src/schematron/cen/o/cen-en16931-br-o-09.ts +3 -3
  355. package/src/schematron/cen/o/cen-en16931-br-o-10.ts +3 -3
  356. package/src/schematron/cen/o/cen-en16931-br-o-11.ts +3 -3
  357. package/src/schematron/cen/o/cen-en16931-br-o-12.ts +3 -3
  358. package/src/schematron/cen/o/cen-en16931-br-o-13.ts +3 -3
  359. package/src/schematron/cen/o/cen-en16931-br-o-14.ts +3 -3
  360. package/src/schematron/cen/s/cen-en16931-br-s-01.ts +3 -3
  361. package/src/schematron/cen/s/cen-en16931-br-s-02.ts +3 -3
  362. package/src/schematron/cen/s/cen-en16931-br-s-03.ts +8 -3
  363. package/src/schematron/cen/s/cen-en16931-br-s-04.ts +3 -3
  364. package/src/schematron/cen/s/cen-en16931-br-s-05.ts +3 -3
  365. package/src/schematron/cen/s/cen-en16931-br-s-06.ts +3 -3
  366. package/src/schematron/cen/s/cen-en16931-br-s-07.ts +3 -3
  367. package/src/schematron/cen/s/cen-en16931-br-s-08.ts +3 -3
  368. package/src/schematron/cen/s/cen-en16931-br-s-09.ts +3 -3
  369. package/src/schematron/cen/s/cen-en16931-br-s-10.ts +3 -3
  370. package/src/schematron/cen/z/cen-en16931-br-z-01.ts +3 -3
  371. package/src/schematron/cen/z/cen-en16931-br-z-02.ts +3 -3
  372. package/src/schematron/cen/z/cen-en16931-br-z-03.ts +8 -3
  373. package/src/schematron/cen/z/cen-en16931-br-z-04.ts +3 -3
  374. package/src/schematron/cen/z/cen-en16931-br-z-05.ts +3 -3
  375. package/src/schematron/cen/z/cen-en16931-br-z-06.ts +3 -3
  376. package/src/schematron/cen/z/cen-en16931-br-z-07.ts +3 -3
  377. package/src/schematron/cen/z/cen-en16931-br-z-08.ts +3 -3
  378. package/src/schematron/cen/z/cen-en16931-br-z-09.ts +3 -3
  379. package/src/schematron/cen/z/cen-en16931-br-z-10.ts +3 -3
  380. package/src/schematron/de/de-r-001.ts +3 -3
  381. package/src/schematron/de/de-r-002.ts +3 -3
  382. package/src/schematron/de/de-r-003.ts +3 -3
  383. package/src/schematron/de/de-r-004.ts +3 -3
  384. package/src/schematron/de/de-r-005.ts +3 -3
  385. package/src/schematron/de/de-r-006.ts +3 -3
  386. package/src/schematron/de/de-r-007.ts +3 -3
  387. package/src/schematron/de/de-r-008.ts +3 -3
  388. package/src/schematron/de/de-r-009.ts +3 -3
  389. package/src/schematron/de/de-r-010.ts +3 -3
  390. package/src/schematron/de/de-r-011.ts +3 -3
  391. package/src/schematron/de/de-r-014.ts +3 -3
  392. package/src/schematron/de/de-r-015.ts +3 -3
  393. package/src/schematron/de/de-r-016.ts +3 -3
  394. package/src/schematron/de/de-r-017.ts +3 -3
  395. package/src/schematron/de/de-r-018.ts +3 -3
  396. package/src/schematron/de/de-r-019.ts +4 -4
  397. package/src/schematron/de/de-r-020.ts +4 -4
  398. package/src/schematron/de/de-r-022.ts +3 -3
  399. package/src/schematron/de/de-r-023-1.ts +3 -3
  400. package/src/schematron/de/de-r-023-2.ts +3 -3
  401. package/src/schematron/de/de-r-024-1.ts +3 -3
  402. package/src/schematron/de/de-r-024-2.ts +3 -3
  403. package/src/schematron/de/de-r-025-1.ts +3 -3
  404. package/src/schematron/de/de-r-025-2.ts +3 -3
  405. package/src/schematron/de/de-r-026.ts +3 -3
  406. package/src/schematron/de/de-r-027.ts +3 -3
  407. package/src/schematron/de/de-r-028.ts +3 -3
  408. package/src/schematron/de/de-r-030.ts +3 -3
  409. package/src/schematron/de/de-r-031.ts +3 -3
  410. package/src/schematron/dk/dk-r-002.ts +3 -3
  411. package/src/schematron/dk/dk-r-003.ts +3 -3
  412. package/src/schematron/dk/dk-r-004.ts +3 -3
  413. package/src/schematron/dk/dk-r-005.ts +3 -3
  414. package/src/schematron/dk/dk-r-006.ts +3 -3
  415. package/src/schematron/dk/dk-r-007.ts +3 -3
  416. package/src/schematron/dk/dk-r-008.ts +3 -3
  417. package/src/schematron/dk/dk-r-009.ts +3 -3
  418. package/src/schematron/dk/dk-r-010.ts +3 -3
  419. package/src/schematron/dk/dk-r-011.ts +3 -3
  420. package/src/schematron/dk/dk-r-013.ts +3 -3
  421. package/src/schematron/dk/dk-r-014.ts +3 -3
  422. package/src/schematron/dk/dk-r-016.ts +3 -3
  423. package/src/schematron/dk/dk-r-017.ts +3 -3
  424. package/src/schematron/gr/gr-r-001-1.ts +3 -3
  425. package/src/schematron/gr/gr-r-001-2.ts +4 -4
  426. package/src/schematron/gr/gr-r-001-3.ts +4 -4
  427. package/src/schematron/gr/gr-r-001-4.ts +3 -3
  428. package/src/schematron/gr/gr-r-001-5.ts +3 -3
  429. package/src/schematron/gr/gr-r-001-6.ts +3 -3
  430. package/src/schematron/gr/gr-r-001-7.ts +3 -3
  431. package/src/schematron/gr/gr-r-002.ts +3 -3
  432. package/src/schematron/gr/gr-r-003.ts +4 -4
  433. package/src/schematron/gr/gr-r-004-1.ts +3 -3
  434. package/src/schematron/gr/gr-r-004-2.ts +3 -3
  435. package/src/schematron/gr/gr-r-005.ts +3 -3
  436. package/src/schematron/gr/gr-r-006.ts +4 -4
  437. package/src/schematron/gr/gr-r-008-2.ts +3 -3
  438. package/src/schematron/gr/gr-r-008-3.ts +3 -3
  439. package/src/schematron/gr/gr-r-009.ts +4 -4
  440. package/src/schematron/gr/gr-r-010.ts +4 -4
  441. package/src/schematron/gr/gr-s-008-1.ts +3 -3
  442. package/src/schematron/gr/gr-s-011.ts +3 -3
  443. package/src/schematron/helpers.ts +5 -5
  444. package/src/schematron/index.ts +366 -366
  445. package/src/schematron/is/is-r-001.ts +3 -3
  446. package/src/schematron/is/is-r-002.ts +3 -3
  447. package/src/schematron/is/is-r-003.ts +3 -3
  448. package/src/schematron/is/is-r-004.ts +3 -3
  449. package/src/schematron/is/is-r-005.ts +3 -3
  450. package/src/schematron/is/is-r-006.ts +3 -3
  451. package/src/schematron/is/is-r-007.ts +3 -3
  452. package/src/schematron/is/is-r-008.ts +3 -3
  453. package/src/schematron/is/is-r-009.ts +3 -3
  454. package/src/schematron/is/is-r-010.ts +3 -3
  455. package/src/schematron/it/it-r-001.ts +3 -3
  456. package/src/schematron/it/it-r-002.ts +3 -3
  457. package/src/schematron/it/it-r-003.ts +3 -3
  458. package/src/schematron/it/it-r-004.ts +3 -3
  459. package/src/schematron/nl/nl-r-001.ts +3 -3
  460. package/src/schematron/nl/nl-r-002.ts +3 -3
  461. package/src/schematron/nl/nl-r-003.ts +3 -3
  462. package/src/schematron/nl/nl-r-004.ts +3 -3
  463. package/src/schematron/nl/nl-r-005.ts +3 -3
  464. package/src/schematron/nl/nl-r-006.ts +3 -3
  465. package/src/schematron/nl/nl-r-007.ts +3 -3
  466. package/src/schematron/nl/nl-r-008.ts +3 -3
  467. package/src/schematron/nl/nl-r-009.ts +3 -3
  468. package/src/schematron/no/no-r-001.ts +4 -4
  469. package/src/schematron/no/no-r-002.ts +3 -3
  470. package/src/schematron/peppol/cl/peppol-en16931-cl001.ts +3 -3
  471. package/src/schematron/peppol/cl/peppol-en16931-cl002.ts +3 -3
  472. package/src/schematron/peppol/cl/peppol-en16931-cl003.ts +3 -3
  473. package/src/schematron/peppol/cl/peppol-en16931-cl006.ts +3 -3
  474. package/src/schematron/peppol/cl/peppol-en16931-cl007.ts +3 -3
  475. package/src/schematron/peppol/cl/peppol-en16931-cl008.ts +3 -3
  476. package/src/schematron/peppol/common/peppol-common-r040.ts +5 -5
  477. package/src/schematron/peppol/common/peppol-common-r041.ts +5 -5
  478. package/src/schematron/peppol/common/peppol-common-r042.ts +3 -3
  479. package/src/schematron/peppol/common/peppol-common-r043.ts +5 -5
  480. package/src/schematron/peppol/common/peppol-common-r044.ts +3 -3
  481. package/src/schematron/peppol/common/peppol-common-r045.ts +4 -4
  482. package/src/schematron/peppol/common/peppol-common-r046.ts +4 -4
  483. package/src/schematron/peppol/common/peppol-common-r047.ts +4 -4
  484. package/src/schematron/peppol/common/peppol-common-r049.ts +4 -4
  485. package/src/schematron/peppol/common/peppol-common-r050.ts +5 -5
  486. package/src/schematron/peppol/common/peppol-common-r052.ts +3 -3
  487. package/src/schematron/peppol/common/peppol-common-r053.ts +3 -3
  488. package/src/schematron/peppol/f/peppol-en16931-f001.ts +4 -4
  489. package/src/schematron/peppol/p/peppol-en16931-p0100.ts +3 -3
  490. package/src/schematron/peppol/p/peppol-en16931-p0101.ts +3 -3
  491. package/src/schematron/peppol/p/peppol-en16931-p0104.ts +3 -3
  492. package/src/schematron/peppol/p/peppol-en16931-p0105.ts +3 -3
  493. package/src/schematron/peppol/p/peppol-en16931-p0106.ts +3 -3
  494. package/src/schematron/peppol/p/peppol-en16931-p0107.ts +3 -3
  495. package/src/schematron/peppol/p/peppol-en16931-p0108.ts +3 -3
  496. package/src/schematron/peppol/p/peppol-en16931-p0109.ts +3 -3
  497. package/src/schematron/peppol/p/peppol-en16931-p0110.ts +3 -3
  498. package/src/schematron/peppol/p/peppol-en16931-p0111.ts +3 -3
  499. package/src/schematron/peppol/p/peppol-en16931-p0112.ts +3 -3
  500. package/src/schematron/peppol/r/peppol-en16931-r001.ts +3 -3
  501. package/src/schematron/peppol/r/peppol-en16931-r002.ts +3 -3
  502. package/src/schematron/peppol/r/peppol-en16931-r003.ts +3 -3
  503. package/src/schematron/peppol/r/peppol-en16931-r004.ts +3 -3
  504. package/src/schematron/peppol/r/peppol-en16931-r005.ts +3 -3
  505. package/src/schematron/peppol/r/peppol-en16931-r007.ts +3 -3
  506. package/src/schematron/peppol/r/peppol-en16931-r008.ts +3 -3
  507. package/src/schematron/peppol/r/peppol-en16931-r010.ts +3 -3
  508. package/src/schematron/peppol/r/peppol-en16931-r020.ts +3 -3
  509. package/src/schematron/peppol/r/peppol-en16931-r040.ts +3 -3
  510. package/src/schematron/peppol/r/peppol-en16931-r041.ts +3 -3
  511. package/src/schematron/peppol/r/peppol-en16931-r042.ts +3 -3
  512. package/src/schematron/peppol/r/peppol-en16931-r043.ts +3 -3
  513. package/src/schematron/peppol/r/peppol-en16931-r044.ts +3 -3
  514. package/src/schematron/peppol/r/peppol-en16931-r046.ts +3 -3
  515. package/src/schematron/peppol/r/peppol-en16931-r051.ts +3 -3
  516. package/src/schematron/peppol/r/peppol-en16931-r053.ts +3 -3
  517. package/src/schematron/peppol/r/peppol-en16931-r054.ts +3 -3
  518. package/src/schematron/peppol/r/peppol-en16931-r055.ts +3 -3
  519. package/src/schematron/peppol/r/peppol-en16931-r061.ts +3 -3
  520. package/src/schematron/peppol/r/peppol-en16931-r100.ts +3 -3
  521. package/src/schematron/peppol/r/peppol-en16931-r101.ts +3 -3
  522. package/src/schematron/peppol/r/peppol-en16931-r110.ts +3 -3
  523. package/src/schematron/peppol/r/peppol-en16931-r111.ts +3 -3
  524. package/src/schematron/peppol/r/peppol-en16931-r120.ts +3 -3
  525. package/src/schematron/peppol/r/peppol-en16931-r121.ts +3 -3
  526. package/src/schematron/peppol/r/peppol-en16931-r130.ts +3 -3
  527. package/src/schematron/run-all-rules.ts +361 -361
  528. package/src/schematron/schematron.ts +3 -3
  529. package/src/schematron/se/se-r-001.ts +3 -3
  530. package/src/schematron/se/se-r-002.ts +3 -3
  531. package/src/schematron/se/se-r-003.ts +3 -3
  532. package/src/schematron/se/se-r-004.ts +3 -3
  533. package/src/schematron/se/se-r-005.ts +3 -3
  534. package/src/schematron/se/se-r-006.ts +3 -3
  535. package/src/schematron/se/se-r-007.ts +3 -3
  536. package/src/schematron/se/se-r-008.ts +3 -3
  537. package/src/schematron/se/se-r-009.ts +3 -3
  538. package/src/schematron/se/se-r-010.ts +3 -3
  539. package/src/schematron/se/se-r-011.ts +3 -3
  540. package/src/schematron/se/se-r-012.ts +3 -3
  541. package/src/schematron/se/se-r-013.ts +4 -4
  542. package/src/xml/builder-options.ts +1 -1
  543. package/src/xml/parser-options.ts +1 -1
  544. package/src/xml.ts +2 -2
@@ -1,8 +1,8 @@
1
1
  import { Schema } from 'effect';
2
2
 
3
- import { opaque } from '#/schemas/utils/opaque';
4
- import { opStatusActionSchema } from '#/schemas/values/op-status-action-schema';
5
- import { opStatusReasonSchema } from '#/schemas/values/op-status-reason-schema';
3
+ import { opaque } from '#/schemas/utils/opaque.ts';
4
+ import { opStatusActionSchema } from '#/schemas/values/op-status-action-schema.ts';
5
+ import { opStatusReasonSchema } from '#/schemas/values/op-status-reason-schema.ts';
6
6
 
7
7
  export class PeppolInvoiceResponseStatusReasonCodeReason extends opaque<PeppolInvoiceResponseStatusReasonCodeReason>()(
8
8
  Schema.Struct({
@@ -1,10 +1,10 @@
1
1
  import { Schema } from 'effect';
2
2
 
3
- import { PeppolInvoiceLine } from '#/schemas/fields/peppol-invoice-line-schema';
4
- import { PeppolBillingBase } from '#/schemas/peppol-billing-base-schema';
5
- import { PeppolIsoDateString } from '#/schemas/peppol-iso-date-string';
6
- import { opaque } from '#/schemas/utils/opaque';
7
- import { invoiceTypeCodeSchema } from '#/schemas/values/invoice-type-code-schema';
3
+ import { PeppolInvoiceLine } from '#/schemas/fields/peppol-invoice-line-schema.ts';
4
+ import { PeppolBillingBase } from '#/schemas/peppol-billing-base-schema.ts';
5
+ import { PeppolIsoDateString } from '#/schemas/peppol-iso-date-string.ts';
6
+ import { opaque } from '#/schemas/utils/opaque.ts';
7
+ import { invoiceTypeCodeSchema } from '#/schemas/values/invoice-type-code-schema.ts';
8
8
 
9
9
  class PeppolProjectReference extends opaque<PeppolProjectReference>()(Schema.Struct({ id: Schema.String })) {}
10
10
 
@@ -1,6 +1,6 @@
1
1
  import { DateTime, Schema, SchemaGetter } from 'effect';
2
2
 
3
- import { opaque } from '#/schemas/utils/opaque';
3
+ import { opaque } from '#/schemas/utils/opaque.ts';
4
4
 
5
5
  /**
6
6
  * @description ISO 8601 calendar date string (`YYYY-MM-DD`). Effect port of `dateOnly` (`z.iso.date()`): keeps the value as a plain string and only validates the
@@ -1,9 +1,9 @@
1
1
  import { Schema } from 'effect';
2
2
 
3
- import { PeppolDocumentResponseDocumentReference } from '#/schemas/peppol-document-response-document-reference-schema';
4
- import { PeppolDocumentResponseDocument } from '#/schemas/peppol-document-response-document-schema';
5
- import { PeppolDocumentResponseLineResponse } from '#/schemas/peppol-document-response-line-response-schema';
6
- import { opaque } from '#/schemas/utils/opaque';
3
+ import { PeppolDocumentResponseDocumentReference } from '#/schemas/peppol-document-response-document-reference-schema.ts';
4
+ import { PeppolDocumentResponseDocument } from '#/schemas/peppol-document-response-document-schema.ts';
5
+ import { PeppolDocumentResponseLineResponse } from '#/schemas/peppol-document-response-line-response-schema.ts';
6
+ import { opaque } from '#/schemas/utils/opaque.ts';
7
7
 
8
8
  export class PeppolMessageLevelResponseDocumentResponse extends opaque<PeppolMessageLevelResponseDocumentResponse>()(
9
9
  Schema.Struct({
@@ -1,7 +1,7 @@
1
1
  import { Schema } from 'effect';
2
2
 
3
- import { PeppolIdentifier } from '#/schemas/fields/peppol-identifier-schema';
4
- import { opaque } from '#/schemas/utils/opaque';
3
+ import { PeppolIdentifier } from '#/schemas/fields/peppol-identifier-schema.ts';
4
+ import { opaque } from '#/schemas/utils/opaque.ts';
5
5
 
6
6
  export class PeppolMessageLevelResponseParty extends opaque<PeppolMessageLevelResponseParty>()(
7
7
  Schema.Struct({
@@ -1,11 +1,11 @@
1
1
  import { Schema } from 'effect';
2
2
 
3
- import { MESSAGE_LEVEL_RESPONSE_PROFILE_ID } from '#/constants/message-level-response-profile-id';
4
- import { PeppolIsoDateString } from '#/schemas/peppol-iso-date-string';
5
- import { PeppolMessageLevelResponseDocumentResponse } from '#/schemas/peppol-message-level-response-document-response-schema';
6
- import { PeppolMessageLevelResponseParty } from '#/schemas/peppol-message-level-response-party-schema';
7
- import { opaque } from '#/schemas/utils/opaque';
8
- import { PeppolXsdTime } from '#/schemas/utils/peppol-xsd-time-schema';
3
+ import { MESSAGE_LEVEL_RESPONSE_PROFILE_ID } from '#/constants/message-level-response-profile-id.ts';
4
+ import { PeppolIsoDateString } from '#/schemas/peppol-iso-date-string.ts';
5
+ import { PeppolMessageLevelResponseDocumentResponse } from '#/schemas/peppol-message-level-response-document-response-schema.ts';
6
+ import { PeppolMessageLevelResponseParty } from '#/schemas/peppol-message-level-response-party-schema.ts';
7
+ import { opaque } from '#/schemas/utils/opaque.ts';
8
+ import { PeppolXsdTime } from '#/schemas/utils/peppol-xsd-time-schema.ts';
9
9
 
10
10
  export class PeppolMessageLevelResponse extends opaque<PeppolMessageLevelResponse>()(
11
11
  Schema.Struct({
@@ -1,4 +1,4 @@
1
- import { quantityToIntlUnitMap } from '#/schemas/utils/quantity-unit-code-to-intl-unit';
1
+ import { quantityToIntlUnitMap } from '#/schemas/utils/quantity-unit-code-to-intl-unit.ts';
2
2
  import { quantityUnitCodes } from '#/values/quantity-unit-codes.generated';
3
3
 
4
4
  export function formatQuantityWithUnit(
@@ -1,4 +1,4 @@
1
- import type { PeppolCreditNoteTypeCode } from '#/schemas/values/credit-note-type-code-schema';
1
+ import type { PeppolCreditNoteTypeCode } from '#/schemas/values/credit-note-type-code-schema.ts';
2
2
 
3
3
  import { creditNoteTypeCodes } from '#/values/credit-notes-type-codes.generated';
4
4
 
@@ -1,4 +1,4 @@
1
- import type { PeppolInvoiceTypeCode } from '#/schemas/values/invoice-type-code-schema';
1
+ import type { PeppolInvoiceTypeCode } from '#/schemas/values/invoice-type-code-schema.ts';
2
2
 
3
3
  import { invoiceTypeCodes } from '#/values/invoice-type-codes.generated';
4
4
 
@@ -1,10 +1,10 @@
1
- export * from './peppol-base-64-schema';
2
- export * from './format-quantity-with-unit';
3
- export * from './get-credit-note-type-code-description';
4
- export * from './get-invoice-type-code-description';
5
- export * from './is-valid-credit-note-type-code';
6
- export * from './is-valid-invoice-type-code';
7
- export * from './is-valid-process';
8
- export * from './quantity-unit-code-to-intl-unit';
9
- export * from './peppol-vat-regex-schema';
10
- export { PeppolXsdTime } from './peppol-xsd-time-schema';
1
+ export * from './peppol-base-64-schema.ts';
2
+ export * from './format-quantity-with-unit.ts';
3
+ export * from './get-credit-note-type-code-description.ts';
4
+ export * from './get-invoice-type-code-description.ts';
5
+ export * from './is-valid-credit-note-type-code.ts';
6
+ export * from './is-valid-invoice-type-code.ts';
7
+ export * from './is-valid-process.ts';
8
+ export * from './quantity-unit-code-to-intl-unit.ts';
9
+ export * from './peppol-vat-regex-schema.ts';
10
+ export { PeppolXsdTime } from './peppol-xsd-time-schema.ts';
@@ -1,4 +1,4 @@
1
- import type { PeppolCreditNoteTypeCode } from '#/schemas/values/credit-note-type-code-schema';
1
+ import type { PeppolCreditNoteTypeCode } from '#/schemas/values/credit-note-type-code-schema.ts';
2
2
 
3
3
  import { creditNoteTypeCodes } from '#/values/credit-notes-type-codes.generated';
4
4
 
@@ -1,4 +1,4 @@
1
- import type { PeppolInvoiceTypeCode } from '#/schemas/values/invoice-type-code-schema';
1
+ import type { PeppolInvoiceTypeCode } from '#/schemas/values/invoice-type-code-schema.ts';
2
2
 
3
3
  import { invoiceTypeCodes } from '#/values/invoice-type-codes.generated';
4
4
 
@@ -1,4 +1,4 @@
1
- import type { PeppolProcesses } from '#/schemas/values/peppol-process-schema';
1
+ import type { PeppolProcesses } from '#/schemas/values/peppol-process-schema.ts';
2
2
 
3
3
  import { processesList } from '#/values/processes.generated';
4
4
 
@@ -1,6 +1,6 @@
1
1
  import { Schema } from 'effect';
2
2
 
3
- import { isValidMod97_0208 } from '#/peppol-validations/is-valid-mod97-0208';
3
+ import { isValidMod97_0208 } from '#/peppol-validations/is-valid-mod97-0208.ts';
4
4
 
5
5
  /**
6
6
  * @description Belgian VAT number (`BE` + 10 digits with mod 97-0208 check digits). Effect port of the `BE` member of `vatRegexSchema`: prefix, exact length,
@@ -1,7 +1,7 @@
1
1
  import { Clock, Option, DateTime, Effect, Predicate, Schema, SchemaGetter, SchemaIssue, SchemaParser } from 'effect';
2
2
 
3
- import { formatXsdTime } from '#/schemas/utils/format-xsd-time';
4
- import { opaque } from '#/schemas/utils/opaque';
3
+ import { formatXsdTime } from '#/schemas/utils/format-xsd-time.ts';
4
+ import { opaque } from '#/schemas/utils/opaque.ts';
5
5
 
6
6
  const timeRegex =
7
7
  /^(?<hours>[01]\d|2[0-3]):(?<minutes>[0-5]\d):(?<seconds>[0-5]\d)(?<nanoseconds>\.\d{1,9})?(?<tz>(?:Z|-0[1-9]|-1\d|-2[0-3]|-00:?(?:0[1-9]|[1-5]\d)|\+[01]\d|\+2[0-3])?(?:|:?[0-5]\d))$/;
@@ -1,4 +1,4 @@
1
- import type { PeppolQuantityUnitCode } from '#/schemas/values/quantity-unit-codes-schema';
1
+ import type { PeppolQuantityUnitCode } from '#/schemas/values/quantity-unit-codes-schema.ts';
2
2
 
3
3
  export type BaseIntlUnit =
4
4
  | 'acre'
@@ -1,27 +1,27 @@
1
- export * from './additional-document-reference-code-schema';
2
- export * from './allowance-charge-reason-code-schema';
3
- export * from './application-response-type-code-schema';
4
- export * from './charge-reason-code-schema';
5
- export * from './peppol-country-code-schema';
6
- export * from './credit-note-type-code-schema';
7
- export * from './currency-code-schema';
8
- export * from './peppol-document-type-code-schema';
9
- export * from './peppol-document-type-schema';
10
- export * from './document-type-schemes-schema';
11
- export * from './document-type-values-schema';
12
- export * from './duty-tax-fee-category-schema';
13
- export * from './electronic-codes-schema';
14
- export * from './icd-codes-schema';
15
- export * from './invoice-status-code-schema';
16
- export * from './invoice-type-code-schema';
17
- export * from './item-classification-codes-schema';
18
- export * from './mime-codes-schema';
19
- export * from './op-status-action-schema';
20
- export * from './op-status-reason-schema';
21
- export * from './participant-identifier-code-schema';
22
- export * from './payment-means-code-schema';
23
- export * from './process-from-document-type-schema';
24
- export * from './peppol-process-schema';
25
- export * from './quantity-unit-codes-schema';
26
- export * from './vatex-code-schema';
27
- export * from './vat-date-code-schema';
1
+ export * from './additional-document-reference-code-schema.ts';
2
+ export * from './allowance-charge-reason-code-schema.ts';
3
+ export * from './application-response-type-code-schema.ts';
4
+ export * from './charge-reason-code-schema.ts';
5
+ export * from './peppol-country-code-schema.ts';
6
+ export * from './credit-note-type-code-schema.ts';
7
+ export * from './currency-code-schema.ts';
8
+ export * from './peppol-document-type-code-schema.ts';
9
+ export * from './peppol-document-type-schema.ts';
10
+ export * from './document-type-schemes-schema.ts';
11
+ export * from './document-type-values-schema.ts';
12
+ export * from './duty-tax-fee-category-schema.ts';
13
+ export * from './electronic-codes-schema.ts';
14
+ export * from './icd-codes-schema.ts';
15
+ export * from './invoice-status-code-schema.ts';
16
+ export * from './invoice-type-code-schema.ts';
17
+ export * from './item-classification-codes-schema.ts';
18
+ export * from './mime-codes-schema.ts';
19
+ export * from './op-status-action-schema.ts';
20
+ export * from './op-status-reason-schema.ts';
21
+ export * from './participant-identifier-code-schema.ts';
22
+ export * from './payment-means-code-schema.ts';
23
+ export * from './process-from-document-type-schema.ts';
24
+ export * from './peppol-process-schema.ts';
25
+ export * from './quantity-unit-codes-schema.ts';
26
+ export * from './vatex-code-schema.ts';
27
+ export * from './vat-date-code-schema.ts';
@@ -1,8 +1,8 @@
1
1
  import { Schema } from 'effect';
2
2
 
3
- import type { PeppolDocumentType } from '#/schemas/values/peppol-document-type-schema';
3
+ import type { PeppolDocumentType } from '#/schemas/values/peppol-document-type-schema.ts';
4
4
 
5
- import { peppolProcessSchema } from '#/schemas/values/peppol-process-schema';
5
+ import { peppolProcessSchema } from '#/schemas/values/peppol-process-schema.ts';
6
6
  import { documentTypesProcessIds } from '#/values/document-type.generated';
7
7
 
8
8
  /**
@@ -1,7 +1,7 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { countVatBreakdownCode, hasAnyVatCategoryCode, schematronRule } from '#/schematron/helpers';
4
+ import { countVatBreakdownCode, hasAnyVatCategoryCode, schematronRule } from '#/schematron/helpers.ts';
5
5
 
6
6
  const rule = {
7
7
  id: 'CEN-EN16931-BR-AE-01',
@@ -1,5 +1,5 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
4
  import {
5
5
  hasBuyerLegalCompanyId,
@@ -8,7 +8,7 @@ import {
8
8
  hasSellerTaxIdentifier,
9
9
  hasTaxRepresentativeVatCompanyId,
10
10
  schematronRule,
11
- } from '#/schematron/helpers';
11
+ } from '#/schematron/helpers.ts';
12
12
 
13
13
  const rule = {
14
14
  id: 'CEN-EN16931-BR-AE-02',
@@ -1,5 +1,5 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
4
  import {
5
5
  hasBuyerLegalCompanyId,
@@ -8,7 +8,7 @@ import {
8
8
  hasSellerTaxIdentifier,
9
9
  hasTaxRepresentativeVatCompanyId,
10
10
  schematronRule,
11
- } from '#/schematron/helpers';
11
+ } from '#/schematron/helpers.ts';
12
12
 
13
13
  const rule = {
14
14
  id: 'CEN-EN16931-BR-AE-03',
@@ -1,5 +1,5 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
4
  import {
5
5
  hasBuyerLegalCompanyId,
@@ -8,7 +8,7 @@ import {
8
8
  hasSellerTaxIdentifier,
9
9
  hasTaxRepresentativeVatCompanyId,
10
10
  schematronRule,
11
- } from '#/schematron/helpers';
11
+ } from '#/schematron/helpers.ts';
12
12
 
13
13
  const rule = {
14
14
  id: 'CEN-EN16931-BR-AE-04',
@@ -1,7 +1,7 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { everyLineCategoryPercent, schematronRule } from '#/schematron/helpers';
4
+ import { everyLineCategoryPercent, schematronRule } from '#/schematron/helpers.ts';
5
5
 
6
6
  const rule = {
7
7
  id: 'CEN-EN16931-BR-AE-05',
@@ -1,7 +1,7 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { everyDocumentAllowanceCategoryPercent, schematronRule } from '#/schematron/helpers';
4
+ import { everyDocumentAllowanceCategoryPercent, schematronRule } from '#/schematron/helpers.ts';
5
5
 
6
6
  const rule = {
7
7
  id: 'CEN-EN16931-BR-AE-06',
@@ -1,7 +1,7 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { everyDocumentChargeCategoryPercent, schematronRule } from '#/schematron/helpers';
4
+ import { everyDocumentChargeCategoryPercent, schematronRule } from '#/schematron/helpers.ts';
5
5
 
6
6
  const rule = {
7
7
  id: 'CEN-EN16931-BR-AE-07',
@@ -1,7 +1,7 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { amountsEqual, categoryTaxableSum, getTaxSubtotalsWithCode, schematronRule } from '#/schematron/helpers';
4
+ import { amountsEqual, categoryTaxableSum, getTaxSubtotalsWithCode, schematronRule } from '#/schematron/helpers.ts';
5
5
 
6
6
  const rule = {
7
7
  id: 'CEN-EN16931-BR-AE-08',
@@ -1,7 +1,7 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { getTaxSubtotalsWithCode, schematronRule } from '#/schematron/helpers';
4
+ import { getTaxSubtotalsWithCode, schematronRule } from '#/schematron/helpers.ts';
5
5
 
6
6
  const rule = {
7
7
  id: 'CEN-EN16931-BR-AE-09',
@@ -1,7 +1,7 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { getTaxSubtotalsWithCode, schematronRule } from '#/schematron/helpers';
4
+ import { getTaxSubtotalsWithCode, schematronRule } from '#/schematron/helpers.ts';
5
5
 
6
6
  const rule = {
7
7
  id: 'CEN-EN16931-BR-AE-10',
@@ -1,7 +1,7 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { countVatBreakdownCode, hasAnyVatCategoryCode, schematronRule } from '#/schematron/helpers';
4
+ import { countVatBreakdownCode, hasAnyVatCategoryCode, schematronRule } from '#/schematron/helpers.ts';
5
5
 
6
6
  const rule = {
7
7
  id: 'CEN-EN16931-BR-AF-01',
@@ -1,7 +1,7 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { hasLineVatCategoryCode, hasSellerTaxIdentifier, hasTaxRepresentativeVatCompanyId, schematronRule } from '#/schematron/helpers';
4
+ import { hasLineVatCategoryCode, hasSellerTaxIdentifier, hasTaxRepresentativeVatCompanyId, schematronRule } from '#/schematron/helpers.ts';
5
5
 
6
6
  const rule = {
7
7
  id: 'CEN-EN16931-BR-AF-02',
@@ -1,7 +1,12 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { hasDocumentAllowanceVatCategoryCode, hasSellerTaxIdentifier, hasTaxRepresentativeVatCompanyId, schematronRule } from '#/schematron/helpers';
4
+ import {
5
+ hasDocumentAllowanceVatCategoryCode,
6
+ hasSellerTaxIdentifier,
7
+ hasTaxRepresentativeVatCompanyId,
8
+ schematronRule,
9
+ } from '#/schematron/helpers.ts';
5
10
 
6
11
  const rule = {
7
12
  id: 'CEN-EN16931-BR-AF-03',
@@ -1,7 +1,7 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { hasDocumentChargeVatCategoryCode, hasSellerTaxIdentifier, hasTaxRepresentativeVatCompanyId, schematronRule } from '#/schematron/helpers';
4
+ import { hasDocumentChargeVatCategoryCode, hasSellerTaxIdentifier, hasTaxRepresentativeVatCompanyId, schematronRule } from '#/schematron/helpers.ts';
5
5
 
6
6
  const rule = {
7
7
  id: 'CEN-EN16931-BR-AF-04',
@@ -1,7 +1,7 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { everyLineCategoryPercent, schematronRule } from '#/schematron/helpers';
4
+ import { everyLineCategoryPercent, schematronRule } from '#/schematron/helpers.ts';
5
5
 
6
6
  const rule = {
7
7
  id: 'CEN-EN16931-BR-AF-05',
@@ -1,7 +1,7 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { everyDocumentAllowanceCategoryPercent, schematronRule } from '#/schematron/helpers';
4
+ import { everyDocumentAllowanceCategoryPercent, schematronRule } from '#/schematron/helpers.ts';
5
5
 
6
6
  const rule = {
7
7
  id: 'CEN-EN16931-BR-AF-06',
@@ -1,7 +1,7 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { everyDocumentChargeCategoryPercent, schematronRule } from '#/schematron/helpers';
4
+ import { everyDocumentChargeCategoryPercent, schematronRule } from '#/schematron/helpers.ts';
5
5
 
6
6
  const rule = {
7
7
  id: 'CEN-EN16931-BR-AF-07',
@@ -1,7 +1,7 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { everyVatBreakdownTaxableMatchesRateSum, schematronRule } from '#/schematron/helpers';
4
+ import { everyVatBreakdownTaxableMatchesRateSum, schematronRule } from '#/schematron/helpers.ts';
5
5
 
6
6
  const rule = {
7
7
  id: 'CEN-EN16931-BR-AF-08',
@@ -1,7 +1,7 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { getTaxSubtotalsWithCode, round2, schematronRule, withinSlackOne } from '#/schematron/helpers';
4
+ import { getTaxSubtotalsWithCode, round2, schematronRule, withinSlackOne } from '#/schematron/helpers.ts';
5
5
 
6
6
  const rule = {
7
7
  id: 'CEN-EN16931-BR-AF-09',
@@ -1,7 +1,7 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { getTaxSubtotalsWithCode, schematronRule } from '#/schematron/helpers';
4
+ import { getTaxSubtotalsWithCode, schematronRule } from '#/schematron/helpers.ts';
5
5
 
6
6
  const rule = {
7
7
  id: 'CEN-EN16931-BR-AF-10',
@@ -1,7 +1,7 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { countVatBreakdownCode, hasAnyVatCategoryCode, schematronRule } from '#/schematron/helpers';
4
+ import { countVatBreakdownCode, hasAnyVatCategoryCode, schematronRule } from '#/schematron/helpers.ts';
5
5
 
6
6
  const rule = {
7
7
  id: 'CEN-EN16931-BR-AG-01',
@@ -1,7 +1,7 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { hasLineVatCategoryCode, hasSellerTaxIdentifier, hasTaxRepresentativeVatCompanyId, schematronRule } from '#/schematron/helpers';
4
+ import { hasLineVatCategoryCode, hasSellerTaxIdentifier, hasTaxRepresentativeVatCompanyId, schematronRule } from '#/schematron/helpers.ts';
5
5
 
6
6
  const rule = {
7
7
  id: 'CEN-EN16931-BR-AG-02',
@@ -1,7 +1,12 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { hasDocumentAllowanceVatCategoryCode, hasSellerTaxIdentifier, hasTaxRepresentativeVatCompanyId, schematronRule } from '#/schematron/helpers';
4
+ import {
5
+ hasDocumentAllowanceVatCategoryCode,
6
+ hasSellerTaxIdentifier,
7
+ hasTaxRepresentativeVatCompanyId,
8
+ schematronRule,
9
+ } from '#/schematron/helpers.ts';
5
10
 
6
11
  const rule = {
7
12
  id: 'CEN-EN16931-BR-AG-03',
@@ -1,7 +1,7 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { hasDocumentChargeVatCategoryCode, hasSellerTaxIdentifier, hasTaxRepresentativeVatCompanyId, schematronRule } from '#/schematron/helpers';
4
+ import { hasDocumentChargeVatCategoryCode, hasSellerTaxIdentifier, hasTaxRepresentativeVatCompanyId, schematronRule } from '#/schematron/helpers.ts';
5
5
 
6
6
  const rule = {
7
7
  id: 'CEN-EN16931-BR-AG-04',
@@ -1,7 +1,7 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { everyLineCategoryPercent, schematronRule } from '#/schematron/helpers';
4
+ import { everyLineCategoryPercent, schematronRule } from '#/schematron/helpers.ts';
5
5
 
6
6
  const rule = {
7
7
  id: 'CEN-EN16931-BR-AG-05',
@@ -1,7 +1,7 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { everyDocumentAllowanceCategoryPercent, schematronRule } from '#/schematron/helpers';
4
+ import { everyDocumentAllowanceCategoryPercent, schematronRule } from '#/schematron/helpers.ts';
5
5
 
6
6
  const rule = {
7
7
  id: 'CEN-EN16931-BR-AG-06',
@@ -1,7 +1,7 @@
1
- import type { PeppolDocument } from '#/schemas/peppol-document-schema';
2
- import type { SchematronRule } from '#/schematron/helpers';
1
+ import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
2
+ import type { SchematronRule } from '#/schematron/helpers.ts';
3
3
 
4
- import { everyDocumentChargeCategoryPercent, schematronRule } from '#/schematron/helpers';
4
+ import { everyDocumentChargeCategoryPercent, schematronRule } from '#/schematron/helpers.ts';
5
5
 
6
6
  const rule = {
7
7
  id: 'CEN-EN16931-BR-AG-07',