@endevops/peppol-schema 0.1.0-beta.1 → 0.1.0-beta.2

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 (555) hide show
  1. package/dist/constants/index.js +2 -2
  2. package/dist/constants/participant-scheme.d.ts +5 -1
  3. package/dist/constants/participant-scheme.d.ts.map +1 -1
  4. package/dist/constants/participant-scheme.js +6 -2
  5. package/dist/constants/participant-scheme.js.map +1 -1
  6. package/dist/decoders/fields/encode-party-legal-entity.js.map +1 -1
  7. package/dist/document.d.ts +1 -1
  8. package/dist/effect/fields/{additional-document-reference-schema.d.ts → peppol-additional-document-reference-schema.d.ts} +4 -4
  9. package/dist/effect/fields/peppol-additional-document-reference-schema.d.ts.map +1 -0
  10. package/dist/effect/fields/{additional-document-reference-schema.js → peppol-additional-document-reference-schema.js} +7 -7
  11. package/dist/effect/fields/peppol-additional-document-reference-schema.js.map +1 -0
  12. package/dist/effect/fields/{address-schema.d.ts → peppol-address-schema.d.ts} +4 -4
  13. package/dist/effect/fields/peppol-address-schema.d.ts.map +1 -0
  14. package/dist/effect/fields/{address-schema.js → peppol-address-schema.js} +6 -6
  15. package/dist/effect/fields/peppol-address-schema.js.map +1 -0
  16. package/dist/effect/fields/{allowance-charge-schema.d.ts → peppol-allowance-charge-schema.d.ts} +4 -4
  17. package/dist/effect/fields/peppol-allowance-charge-schema.d.ts.map +1 -0
  18. package/dist/effect/fields/{allowance-charge-schema.js → peppol-allowance-charge-schema.js} +10 -10
  19. package/dist/effect/fields/peppol-allowance-charge-schema.js.map +1 -0
  20. package/dist/effect/fields/{amount-schema.d.ts → peppol-amount-schema.d.ts} +4 -4
  21. package/dist/effect/fields/peppol-amount-schema.d.ts.map +1 -0
  22. package/dist/effect/fields/{amount-schema.js → peppol-amount-schema.js} +5 -5
  23. package/dist/effect/fields/peppol-amount-schema.js.map +1 -0
  24. package/dist/effect/fields/{base-line-schema.d.ts → peppol-base-line-schema.d.ts} +4 -4
  25. package/dist/effect/fields/peppol-base-line-schema.d.ts.map +1 -0
  26. package/dist/effect/fields/{base-line-schema.js → peppol-base-line-schema.js} +14 -14
  27. package/dist/effect/fields/peppol-base-line-schema.js.map +1 -0
  28. package/dist/effect/fields/{billing-references-schema.d.ts → peppol-billing-reference-schema.d.ts} +4 -4
  29. package/dist/effect/fields/peppol-billing-reference-schema.d.ts.map +1 -0
  30. package/dist/effect/fields/{billing-references-schema.js → peppol-billing-reference-schema.js} +6 -6
  31. package/dist/effect/fields/peppol-billing-reference-schema.js.map +1 -0
  32. package/dist/effect/fields/{binary-object-schema.d.ts → peppol-binary-object-schema.d.ts} +4 -4
  33. package/dist/effect/fields/peppol-binary-object-schema.d.ts.map +1 -0
  34. package/dist/effect/fields/{binary-object-schema.js → peppol-binary-object-schema.js} +7 -7
  35. package/dist/effect/fields/peppol-binary-object-schema.js.map +1 -0
  36. package/dist/effect/fields/{contact-schema.d.ts → peppol-contact-schema.d.ts} +4 -4
  37. package/dist/effect/fields/peppol-contact-schema.d.ts.map +1 -0
  38. package/dist/effect/fields/{contact-schema.js → peppol-contact-schema.js} +4 -4
  39. package/dist/effect/fields/peppol-contact-schema.js.map +1 -0
  40. package/dist/effect/fields/{credit-note-line-schema.d.ts → peppol-credit-note-line-schema.d.ts} +4 -4
  41. package/dist/effect/fields/peppol-credit-note-line-schema.d.ts.map +1 -0
  42. package/dist/effect/fields/{credit-note-line-schema.js → peppol-credit-note-line-schema.js} +7 -7
  43. package/dist/effect/fields/peppol-credit-note-line-schema.js.map +1 -0
  44. package/dist/effect/fields/{delivery-schema.d.ts → peppol-delivery-schema.d.ts} +4 -4
  45. package/dist/effect/fields/peppol-delivery-schema.d.ts.map +1 -0
  46. package/dist/effect/fields/{delivery-schema.js → peppol-delivery-schema.js} +9 -9
  47. package/dist/effect/fields/peppol-delivery-schema.js.map +1 -0
  48. package/dist/effect/fields/{invoice-line-period-schema.d.ts → peppol-invoice-line-period-schema.d.ts} +4 -4
  49. package/dist/effect/fields/peppol-invoice-line-period-schema.d.ts.map +1 -0
  50. package/dist/effect/fields/{invoice-line-period-schema.js → peppol-invoice-line-period-schema.js} +7 -7
  51. package/dist/effect/fields/peppol-invoice-line-period-schema.js.map +1 -0
  52. package/dist/effect/fields/{invoice-line-schema.d.ts → peppol-invoice-line-schema.d.ts} +4 -4
  53. package/dist/effect/fields/peppol-invoice-line-schema.d.ts.map +1 -0
  54. package/dist/effect/fields/{invoice-line-schema.js → peppol-invoice-line-schema.js} +7 -7
  55. package/dist/effect/fields/peppol-invoice-line-schema.js.map +1 -0
  56. package/dist/effect/fields/{invoice-period-schema.d.ts → peppol-invoice-period-schema.d.ts} +4 -4
  57. package/dist/effect/fields/peppol-invoice-period-schema.d.ts.map +1 -0
  58. package/dist/effect/fields/{invoice-period-schema.js → peppol-invoice-period-schema.js} +6 -6
  59. package/dist/effect/fields/peppol-invoice-period-schema.js.map +1 -0
  60. package/dist/effect/fields/{list-identifier-schema.d.ts → peppol-item-classification-schema.d.ts} +4 -4
  61. package/dist/effect/fields/peppol-item-classification-schema.d.ts.map +1 -0
  62. package/dist/effect/fields/{list-identifier-schema.js → peppol-item-classification-schema.js} +5 -5
  63. package/dist/effect/fields/peppol-item-classification-schema.js.map +1 -0
  64. package/dist/effect/fields/{legal-monetary-total-schema.d.ts → peppol-legal-monetary-total-schema.d.ts} +4 -4
  65. package/dist/effect/fields/peppol-legal-monetary-total-schema.d.ts.map +1 -0
  66. package/dist/effect/fields/{legal-monetary-total-schema.js → peppol-legal-monetary-total-schema.js} +13 -13
  67. package/dist/effect/fields/peppol-legal-monetary-total-schema.js.map +1 -0
  68. package/dist/effect/fields/{line-allowance-charge-schema.d.ts → peppol-line-allowance-charge-schema.d.ts} +4 -4
  69. package/dist/effect/fields/peppol-line-allowance-charge-schema.d.ts.map +1 -0
  70. package/dist/effect/fields/{line-allowance-charge-schema.js → peppol-line-allowance-charge-schema.js} +7 -7
  71. package/dist/effect/fields/peppol-line-allowance-charge-schema.js.map +1 -0
  72. package/dist/effect/fields/{line-item-schema.d.ts → peppol-line-item-schema.d.ts} +4 -4
  73. package/dist/effect/fields/peppol-line-item-schema.d.ts.map +1 -0
  74. package/dist/effect/fields/{line-item-schema.js → peppol-line-item-schema.js} +11 -11
  75. package/dist/effect/fields/peppol-line-item-schema.js.map +1 -0
  76. package/dist/effect/fields/{line-price-allowance-charge-schema.d.ts → peppol-line-price-allowance-charge-schema.d.ts} +4 -4
  77. package/dist/effect/fields/peppol-line-price-allowance-charge-schema.d.ts.map +1 -0
  78. package/dist/effect/fields/peppol-line-price-allowance-charge-schema.js +30 -0
  79. package/dist/effect/fields/peppol-line-price-allowance-charge-schema.js.map +1 -0
  80. package/dist/effect/fields/{price-schema.d.ts → peppol-line-price-schema.d.ts} +4 -4
  81. package/dist/effect/fields/peppol-line-price-schema.d.ts.map +1 -0
  82. package/dist/effect/fields/peppol-line-price-schema.js +32 -0
  83. package/dist/effect/fields/peppol-line-price-schema.js.map +1 -0
  84. package/dist/effect/fields/{order-reference-schema.d.ts → peppol-order-reference-schema.d.ts} +4 -4
  85. package/dist/effect/fields/peppol-order-reference-schema.d.ts.map +1 -0
  86. package/dist/effect/fields/{order-reference-schema.js → peppol-order-reference-schema.js} +4 -4
  87. package/dist/effect/fields/peppol-order-reference-schema.js.map +1 -0
  88. package/dist/effect/fields/{party-base-schema.d.ts → peppol-party-base-schema.d.ts} +4 -4
  89. package/dist/effect/fields/peppol-party-base-schema.d.ts.map +1 -0
  90. package/dist/effect/fields/{party-base-schema.js → peppol-party-base-schema.js} +14 -14
  91. package/dist/effect/fields/peppol-party-base-schema.js.map +1 -0
  92. package/dist/effect/fields/{party-legal-entity-schema.d.ts → peppol-party-legal-entity-schema.d.ts} +4 -4
  93. package/dist/effect/fields/peppol-party-legal-entity-schema.d.ts.map +1 -0
  94. package/dist/effect/fields/{party-legal-entity-schema.js → peppol-party-legal-entity-schema.js} +4 -4
  95. package/dist/effect/fields/peppol-party-legal-entity-schema.js.map +1 -0
  96. package/dist/effect/fields/{party-tax-schema.d.ts → peppol-party-tax-scheme-schema.d.ts} +4 -4
  97. package/dist/effect/fields/peppol-party-tax-scheme-schema.d.ts.map +1 -0
  98. package/dist/effect/fields/{party-tax-schema.js → peppol-party-tax-scheme-schema.js} +4 -4
  99. package/dist/effect/fields/peppol-party-tax-scheme-schema.js.map +1 -0
  100. package/dist/effect/fields/{payee-party.d.ts → peppol-payee-party-schema.d.ts} +4 -4
  101. package/dist/effect/fields/peppol-payee-party-schema.d.ts.map +1 -0
  102. package/dist/effect/fields/{payee-party.js → peppol-payee-party-schema.js} +5 -5
  103. package/dist/effect/fields/peppol-payee-party-schema.js.map +1 -0
  104. package/dist/effect/fields/{payment-means-schema.d.ts → peppol-payment-means-schema.d.ts} +4 -4
  105. package/dist/effect/fields/peppol-payment-means-schema.d.ts.map +1 -0
  106. package/dist/effect/fields/{payment-means-schema.js → peppol-payment-means-schema.js} +7 -7
  107. package/dist/effect/fields/peppol-payment-means-schema.js.map +1 -0
  108. package/dist/effect/fields/{payment-terms-schema.d.ts → peppol-payment-terms-schema.d.ts} +4 -4
  109. package/dist/effect/fields/peppol-payment-terms-schema.d.ts.map +1 -0
  110. package/dist/effect/fields/{payment-terms-schema.js → peppol-payment-terms-schema.js} +4 -4
  111. package/dist/effect/fields/peppol-payment-terms-schema.js.map +1 -0
  112. package/dist/effect/fields/{quantity-schema.d.ts → peppol-quantity-schema.d.ts} +4 -4
  113. package/dist/effect/fields/peppol-quantity-schema.d.ts.map +1 -0
  114. package/dist/effect/fields/{quantity-schema.js → peppol-quantity-schema.js} +4 -4
  115. package/dist/effect/fields/peppol-quantity-schema.js.map +1 -0
  116. package/dist/effect/fields/peppol-reference-schema.d.ts +8 -0
  117. package/dist/effect/fields/peppol-reference-schema.d.ts.map +1 -0
  118. package/dist/effect/fields/peppol-reference-schema.js +7 -0
  119. package/dist/effect/fields/peppol-reference-schema.js.map +1 -0
  120. package/dist/effect/fields/{tax-category-schema.d.ts → peppol-tax-category-schema.d.ts} +4 -4
  121. package/dist/effect/fields/peppol-tax-category-schema.d.ts.map +1 -0
  122. package/dist/effect/fields/{tax-category-schema.js → peppol-tax-category-schema.js} +5 -5
  123. package/dist/effect/fields/peppol-tax-category-schema.js.map +1 -0
  124. package/dist/effect/fields/{tax-representative-party-schema.d.ts → peppol-tax-representative-schema.d.ts} +4 -4
  125. package/dist/effect/fields/peppol-tax-representative-schema.d.ts.map +1 -0
  126. package/dist/effect/fields/peppol-tax-representative-schema.js +24 -0
  127. package/dist/effect/fields/peppol-tax-representative-schema.js.map +1 -0
  128. package/dist/effect/fields/{tax-subtotal-category-schema.d.ts → peppol-tax-subtotal-category-schema.d.ts} +4 -4
  129. package/dist/effect/fields/peppol-tax-subtotal-category-schema.d.ts.map +1 -0
  130. package/dist/effect/fields/{tax-subtotal-category-schema.js → peppol-tax-subtotal-category-schema.js} +5 -5
  131. package/dist/effect/fields/peppol-tax-subtotal-category-schema.js.map +1 -0
  132. package/dist/effect/fields/{tax-subtotal-schema.d.ts → peppol-tax-subtotal-schema.d.ts} +4 -4
  133. package/dist/effect/fields/peppol-tax-subtotal-schema.d.ts.map +1 -0
  134. package/dist/effect/fields/peppol-tax-subtotal-schema.js +33 -0
  135. package/dist/effect/fields/peppol-tax-subtotal-schema.js.map +1 -0
  136. package/dist/effect/fields/{tax-totals.d.ts → peppol-tax-totals-base-schema.d.ts} +4 -4
  137. package/dist/effect/fields/peppol-tax-totals-base-schema.d.ts.map +1 -0
  138. package/dist/effect/fields/peppol-tax-totals-base-schema.js +26 -0
  139. package/dist/effect/fields/peppol-tax-totals-base-schema.js.map +1 -0
  140. package/dist/effect/{billing-base.d.ts → peppol-billing-base-schema.d.ts} +5 -5
  141. package/dist/effect/{billing-base.d.ts.map → peppol-billing-base-schema.d.ts.map} +1 -1
  142. package/dist/effect/{billing-base.js → peppol-billing-base-schema.js} +36 -36
  143. package/dist/effect/peppol-billing-base-schema.js.map +1 -0
  144. package/dist/effect/{credit-note.d.ts → peppol-credit-note-schema.d.ts} +5 -5
  145. package/dist/effect/{invoice.d.ts.map → peppol-credit-note-schema.d.ts.map} +1 -1
  146. package/dist/effect/{credit-note.js → peppol-credit-note-schema.js} +8 -8
  147. package/dist/effect/peppol-credit-note-schema.js.map +1 -0
  148. package/dist/effect/{document-response-document-reference-schema.d.ts → peppol-document-response-document-reference-schema.d.ts} +4 -4
  149. package/dist/effect/peppol-document-response-document-reference-schema.d.ts.map +1 -0
  150. package/dist/effect/{document-response-document-reference-schema.js → peppol-document-response-document-reference-schema.js} +6 -6
  151. package/dist/effect/peppol-document-response-document-reference-schema.js.map +1 -0
  152. package/dist/effect/{document-response-document-schema.d.ts → peppol-document-response-document-schema.d.ts} +4 -4
  153. package/dist/effect/peppol-document-response-document-schema.d.ts.map +1 -0
  154. package/dist/effect/{document-response-document-schema.js → peppol-document-response-document-schema.js} +5 -5
  155. package/dist/effect/peppol-document-response-document-schema.js.map +1 -0
  156. package/dist/effect/{document-response-line-response-content.d.ts → peppol-document-response-line-response-content-schema.d.ts} +4 -4
  157. package/dist/effect/peppol-document-response-line-response-content-schema.d.ts.map +1 -0
  158. package/dist/effect/{document-response-line-response-content.js → peppol-document-response-line-response-content-schema.js} +5 -5
  159. package/dist/effect/peppol-document-response-line-response-content-schema.js.map +1 -0
  160. package/dist/effect/{document-response-line-response-schema.d.ts → peppol-document-response-line-response-schema.d.ts} +4 -4
  161. package/dist/effect/peppol-document-response-line-response-schema.d.ts.map +1 -0
  162. package/dist/effect/{document-response-line-response-schema.js → peppol-document-response-line-response-schema.js} +6 -6
  163. package/dist/effect/peppol-document-response-line-response-schema.js.map +1 -0
  164. package/dist/effect/{document-parser.d.ts → peppol-document-schema.d.ts} +25 -22
  165. package/dist/effect/{document-parser.d.ts.map → peppol-document-schema.d.ts.map} +1 -1
  166. package/dist/effect/peppol-document-schema.js +64 -0
  167. package/dist/effect/peppol-document-schema.js.map +1 -0
  168. package/dist/effect/{invoice-response-document-actual-response.d.ts → peppol-invoice-response-document-actual-response-schema.d.ts} +4 -4
  169. package/dist/effect/peppol-invoice-response-document-actual-response-schema.d.ts.map +1 -0
  170. package/dist/effect/{invoice-response-document-actual-response.js → peppol-invoice-response-document-actual-response-schema.js} +10 -10
  171. package/dist/effect/peppol-invoice-response-document-actual-response-schema.js.map +1 -0
  172. package/dist/effect/{invoice-response-document-actual-response-status.d.ts → peppol-invoice-response-document-actual-response-status-schema.d.ts} +4 -4
  173. package/dist/effect/peppol-invoice-response-document-actual-response-status-schema.d.ts.map +1 -0
  174. package/dist/effect/{invoice-response-document-actual-response-status.js → peppol-invoice-response-document-actual-response-status-schema.js} +6 -6
  175. package/dist/effect/peppol-invoice-response-document-actual-response-status-schema.js.map +1 -0
  176. package/dist/effect/{invoice-response-schema.d.ts → peppol-invoice-response-schema.d.ts} +13 -14
  177. package/dist/effect/peppol-invoice-response-schema.d.ts.map +1 -0
  178. package/dist/effect/{invoice-response-schema.js → peppol-invoice-response-schema.js} +27 -27
  179. package/dist/effect/peppol-invoice-response-schema.js.map +1 -0
  180. package/dist/effect/{invoice-response-status-reason-code.d.ts → peppol-invoice-response-status-reason-code-schema.d.ts} +4 -4
  181. package/dist/effect/peppol-invoice-response-status-reason-code-schema.d.ts.map +1 -0
  182. package/dist/effect/{invoice-response-status-reason-code.js → peppol-invoice-response-status-reason-code-schema.js} +6 -6
  183. package/dist/effect/peppol-invoice-response-status-reason-code-schema.js.map +1 -0
  184. package/dist/effect/{invoice.d.ts → peppol-invoice-schema.d.ts} +6 -6
  185. package/dist/effect/{credit-note.d.ts.map → peppol-invoice-schema.d.ts.map} +1 -1
  186. package/dist/effect/peppol-invoice-schema.js +47 -0
  187. package/dist/effect/peppol-invoice-schema.js.map +1 -0
  188. package/dist/effect/{iso-date-string.d.ts → peppol-iso-date-string-schema.d.ts} +4 -4
  189. package/dist/effect/peppol-iso-date-string-schema.d.ts.map +1 -0
  190. package/dist/effect/{iso-date-string.js → peppol-iso-date-string-schema.js} +4 -4
  191. package/dist/effect/peppol-iso-date-string-schema.js.map +1 -0
  192. package/dist/effect/{message-level-response-document-response-schema.d.ts → peppol-message-level-response-document-response-schema.d.ts} +4 -4
  193. package/dist/effect/peppol-message-level-response-document-response-schema.d.ts.map +1 -0
  194. package/dist/effect/{message-level-response-document-response-schema.js → peppol-message-level-response-document-response-schema.js} +10 -10
  195. package/dist/effect/peppol-message-level-response-document-response-schema.js.map +1 -0
  196. package/dist/effect/{message-level-response-party-schema.d.ts → peppol-message-level-response-party-schema.d.ts} +4 -4
  197. package/dist/effect/peppol-message-level-response-party-schema.d.ts.map +1 -0
  198. package/dist/effect/{message-level-response-party-schema.js → peppol-message-level-response-party-schema.js} +4 -4
  199. package/dist/effect/peppol-message-level-response-party-schema.js.map +1 -0
  200. package/dist/effect/{message-level-response-schema.d.ts → peppol-message-level-response-schema.d.ts} +4 -4
  201. package/dist/effect/peppol-message-level-response-schema.d.ts.map +1 -0
  202. package/dist/effect/{message-level-response-schema.js → peppol-message-level-response-schema.js} +13 -13
  203. package/dist/effect/peppol-message-level-response-schema.js.map +1 -0
  204. package/dist/effect/utils/index.d.ts +4 -4
  205. package/dist/effect/utils/index.js +4 -4
  206. package/dist/effect/utils/{base-64.d.ts → peppol-base-64-schema.d.ts} +4 -4
  207. package/dist/effect/utils/peppol-base-64-schema.d.ts.map +1 -0
  208. package/dist/effect/utils/{base-64.js → peppol-base-64-schema.js} +4 -4
  209. package/dist/effect/utils/peppol-base-64-schema.js.map +1 -0
  210. package/dist/effect/utils/peppol-vat-regex-schema.d.ts +10 -0
  211. package/dist/effect/utils/peppol-vat-regex-schema.d.ts.map +1 -0
  212. package/dist/effect/utils/{vat-regex.js → peppol-vat-regex-schema.js} +4 -4
  213. package/dist/effect/utils/peppol-vat-regex-schema.js.map +1 -0
  214. package/dist/effect/utils/{xsd-time.d.ts → peppol-xsd-time-schema.d.ts} +4 -4
  215. package/dist/effect/utils/peppol-xsd-time-schema.d.ts.map +1 -0
  216. package/dist/effect/utils/peppol-xsd-time-schema.js +11 -0
  217. package/dist/effect/utils/peppol-xsd-time-schema.js.map +1 -0
  218. package/dist/effect/values/{additional-document-reference-code.d.ts → additional-document-reference-code-schema.d.ts} +2 -2
  219. package/dist/effect/values/additional-document-reference-code-schema.d.ts.map +1 -0
  220. package/dist/effect/values/{additional-document-reference-code.js → additional-document-reference-code-schema.js} +2 -2
  221. package/dist/effect/values/additional-document-reference-code-schema.js.map +1 -0
  222. package/dist/effect/values/{allowance-charge-reason-code.d.ts → allowance-charge-reason-code-schema.d.ts} +2 -2
  223. package/dist/effect/values/allowance-charge-reason-code-schema.d.ts.map +1 -0
  224. package/dist/effect/values/{allowance-charge-reason-code.js → allowance-charge-reason-code-schema.js} +2 -2
  225. package/dist/effect/values/allowance-charge-reason-code-schema.js.map +1 -0
  226. package/dist/effect/values/{application-response-type-codes.d.ts → application-response-type-code-schema.d.ts} +2 -2
  227. package/dist/effect/values/application-response-type-code-schema.d.ts.map +1 -0
  228. package/dist/effect/values/{application-response-type-codes.js → application-response-type-code-schema.js} +2 -2
  229. package/dist/effect/values/application-response-type-code-schema.js.map +1 -0
  230. package/dist/effect/values/{charge-reason-code.d.ts → charge-reason-code-schema.d.ts} +2 -2
  231. package/dist/effect/values/charge-reason-code-schema.d.ts.map +1 -0
  232. package/dist/effect/values/{charge-reason-code.js → charge-reason-code-schema.js} +2 -2
  233. package/dist/effect/values/charge-reason-code-schema.js.map +1 -0
  234. package/dist/effect/values/{currency-codes.d.ts → currency-code-schema.d.ts} +2 -2
  235. package/dist/effect/values/currency-code-schema.d.ts.map +1 -0
  236. package/dist/effect/values/{currency-codes.js → currency-code-schema.js} +2 -2
  237. package/dist/effect/values/currency-code-schema.js.map +1 -0
  238. package/dist/effect/values/{duty-tax-fee-cateogries.d.ts → duty-tax-fee-category-schema.d.ts} +2 -2
  239. package/dist/effect/values/duty-tax-fee-category-schema.d.ts.map +1 -0
  240. package/dist/effect/values/{duty-tax-fee-cateogries.js → duty-tax-fee-category-schema.js} +2 -2
  241. package/dist/effect/values/duty-tax-fee-category-schema.js.map +1 -0
  242. package/dist/effect/values/{eas-codes.d.ts → electronic-codes-schema.d.ts} +2 -2
  243. package/dist/effect/values/electronic-codes-schema.d.ts.map +1 -0
  244. package/dist/effect/values/{eas-codes.js → electronic-codes-schema.js} +2 -2
  245. package/dist/effect/values/electronic-codes-schema.js.map +1 -0
  246. package/dist/effect/values/{icd-codes.d.ts → icd-codes-schema.d.ts} +2 -2
  247. package/dist/effect/values/icd-codes-schema.d.ts.map +1 -0
  248. package/dist/effect/values/{icd-codes.js → icd-codes-schema.js} +2 -2
  249. package/dist/effect/values/icd-codes-schema.js.map +1 -0
  250. package/dist/effect/values/index.d.ts +22 -22
  251. package/dist/effect/values/index.js +22 -22
  252. package/dist/effect/values/{invoice-status-codes.d.ts → invoice-status-code-schema.d.ts} +3 -3
  253. package/dist/effect/values/invoice-status-code-schema.d.ts.map +1 -0
  254. package/dist/effect/values/{invoice-status-codes.js → invoice-status-code-schema.js} +3 -6
  255. package/dist/effect/values/invoice-status-code-schema.js.map +1 -0
  256. package/dist/effect/values/{item-classification-code-schema.d.ts → item-classification-codes-schema.d.ts} +2 -2
  257. package/dist/effect/values/item-classification-codes-schema.d.ts.map +1 -0
  258. package/dist/effect/values/{item-classification-code-schema.js → item-classification-codes-schema.js} +2 -2
  259. package/dist/effect/values/item-classification-codes-schema.js.map +1 -0
  260. package/dist/effect/values/{mime-code.d.ts → mime-codes-schema.d.ts} +2 -2
  261. package/dist/effect/values/mime-codes-schema.d.ts.map +1 -0
  262. package/dist/effect/values/{mime-code.js → mime-codes-schema.js} +2 -2
  263. package/dist/effect/values/mime-codes-schema.js.map +1 -0
  264. package/dist/effect/values/{op-status-action.d.ts → op-status-action-schema.d.ts} +2 -2
  265. package/dist/effect/values/op-status-action-schema.d.ts.map +1 -0
  266. package/dist/effect/values/{op-status-action.js → op-status-action-schema.js} +2 -2
  267. package/dist/effect/values/op-status-action-schema.js.map +1 -0
  268. package/dist/effect/values/{op-status-reason.d.ts → op-status-reason-schema.d.ts} +2 -2
  269. package/dist/effect/values/op-status-reason-schema.d.ts.map +1 -0
  270. package/dist/effect/values/{op-status-reason.js → op-status-reason-schema.js} +2 -2
  271. package/dist/effect/values/op-status-reason-schema.js.map +1 -0
  272. package/dist/effect/values/{participant-identifier-code.d.ts → participant-identifier-code-schema.d.ts} +2 -2
  273. package/dist/effect/values/participant-identifier-code-schema.d.ts.map +1 -0
  274. package/dist/effect/values/{participant-identifier-code.js → participant-identifier-code-schema.js} +2 -2
  275. package/dist/effect/values/participant-identifier-code-schema.js.map +1 -0
  276. package/dist/effect/values/{payment-means-codes-schema.d.ts → payment-means-code-schema.d.ts} +2 -2
  277. package/dist/effect/values/payment-means-code-schema.d.ts.map +1 -0
  278. package/dist/effect/values/{payment-means-codes-schema.js → payment-means-code-schema.js} +2 -2
  279. package/dist/effect/values/payment-means-code-schema.js.map +1 -0
  280. package/dist/effect/values/{country-code.d.ts → peppol-country-code-schema.d.ts} +3 -3
  281. package/dist/effect/values/peppol-country-code-schema.d.ts.map +1 -0
  282. package/dist/effect/values/{country-code.js → peppol-country-code-schema.js} +4 -4
  283. package/dist/effect/values/peppol-country-code-schema.js.map +1 -0
  284. package/dist/effect/values/{document-type-codes.d.ts → peppol-document-type-code-schema.d.ts} +3 -3
  285. package/dist/effect/values/peppol-document-type-code-schema.d.ts.map +1 -0
  286. package/dist/effect/values/{document-type-codes.js → peppol-document-type-code-schema.js} +4 -4
  287. package/dist/effect/values/peppol-document-type-code-schema.js.map +1 -0
  288. package/dist/effect/values/{document-type-schema.d.ts → peppol-document-type-schema.d.ts} +4 -5
  289. package/dist/effect/values/peppol-document-type-schema.d.ts.map +1 -0
  290. package/dist/effect/values/peppol-document-type-schema.js +27 -0
  291. package/dist/effect/values/peppol-document-type-schema.js.map +1 -0
  292. package/dist/effect/values/{process-schema.d.ts → peppol-process-schema.d.ts} +4 -5
  293. package/dist/effect/values/peppol-process-schema.d.ts.map +1 -0
  294. package/dist/effect/values/peppol-process-schema.js +26 -0
  295. package/dist/effect/values/peppol-process-schema.js.map +1 -0
  296. package/dist/effect/values/process-from-document-type-schema.d.ts +3 -3
  297. package/dist/effect/values/process-from-document-type-schema.d.ts.map +1 -1
  298. package/dist/effect/values/process-from-document-type-schema.js +3 -3
  299. package/dist/effect/values/process-from-document-type-schema.js.map +1 -1
  300. package/dist/effect/values/{vat-date-code.d.ts → vat-date-code-schema.d.ts} +2 -2
  301. package/dist/effect/values/vat-date-code-schema.d.ts.map +1 -0
  302. package/dist/effect/values/{vat-date-code.js → vat-date-code-schema.js} +2 -2
  303. package/dist/effect/values/vat-date-code-schema.js.map +1 -0
  304. package/dist/effect/values/{vatex-code.d.ts → vatex-code-schema.d.ts} +3 -3
  305. package/dist/effect/values/vatex-code-schema.d.ts.map +1 -0
  306. package/dist/effect/values/{vatex-code.js → vatex-code-schema.js} +4 -4
  307. package/dist/effect/values/vatex-code-schema.js.map +1 -0
  308. package/dist/effect.d.ts +74 -74
  309. package/dist/effect.js +75 -75
  310. package/dist/index.d.ts +3 -3
  311. package/dist/index.js +2 -2
  312. package/dist/invoice-response-codes/invoice-response-codes-order.d.ts +2 -3
  313. package/dist/invoice-response-codes/invoice-response-codes-order.d.ts.map +1 -1
  314. package/dist/invoice-response-codes/invoice-response-codes-order.js.map +1 -1
  315. package/package.json +9 -9
  316. package/src/constants/participant-scheme.ts +5 -1
  317. package/src/decoders/fields/encode-party-legal-entity.ts +1 -1
  318. package/src/effect/fields/{additional-document-reference-schema.ts → peppol-additional-document-reference-schema.ts} +5 -5
  319. package/src/effect/fields/{address-schema.ts → peppol-address-schema.ts} +4 -4
  320. package/src/effect/fields/{allowance-charge-schema.ts → peppol-allowance-charge-schema.ts} +8 -8
  321. package/src/effect/fields/{amount-schema.ts → peppol-amount-schema.ts} +3 -3
  322. package/src/effect/fields/{base-line-schema.ts → peppol-base-line-schema.ts} +12 -12
  323. package/src/effect/fields/{billing-references-schema.ts → peppol-billing-reference-schema.ts} +4 -4
  324. package/src/effect/fields/{binary-object-schema.ts → peppol-binary-object-schema.ts} +5 -5
  325. package/src/effect/fields/{contact-schema.ts → peppol-contact-schema.ts} +2 -2
  326. package/src/effect/fields/{credit-note-line-schema.ts → peppol-credit-note-line-schema.ts} +5 -5
  327. package/src/effect/fields/{delivery-schema.ts → peppol-delivery-schema.ts} +7 -7
  328. package/src/effect/fields/{invoice-line-period-schema.ts → peppol-invoice-line-period-schema.ts} +5 -5
  329. package/src/effect/fields/{invoice-line-schema.ts → peppol-invoice-line-schema.ts} +5 -5
  330. package/src/effect/fields/{invoice-period-schema.ts → peppol-invoice-period-schema.ts} +4 -4
  331. package/src/effect/fields/{list-identifier-schema.ts → peppol-item-classification-schema.ts} +3 -3
  332. package/src/effect/fields/{legal-monetary-total-schema.ts → peppol-legal-monetary-total-schema.ts} +11 -11
  333. package/src/effect/fields/{line-allowance-charge-schema.ts → peppol-line-allowance-charge-schema.ts} +5 -5
  334. package/src/effect/fields/{line-item-schema.ts → peppol-line-item-schema.ts} +9 -9
  335. package/src/effect/fields/{line-price-allowance-charge-schema.ts → peppol-line-price-allowance-charge-schema.ts} +5 -5
  336. package/src/effect/fields/peppol-line-price-schema.ts +31 -0
  337. package/src/effect/fields/{order-reference-schema.ts → peppol-order-reference-schema.ts} +2 -2
  338. package/src/effect/fields/{party-base-schema.ts → peppol-party-base-schema.ts} +12 -12
  339. package/src/effect/fields/{party-legal-entity-schema.ts → peppol-party-legal-entity-schema.ts} +2 -2
  340. package/src/effect/fields/{party-tax-schema.ts → peppol-party-tax-scheme-schema.ts} +2 -2
  341. package/src/effect/fields/{payee-party.ts → peppol-payee-party-schema.ts} +3 -3
  342. package/src/effect/fields/{payment-means-schema.ts → peppol-payment-means-schema.ts} +5 -5
  343. package/src/effect/fields/{payment-terms-schema.ts → peppol-payment-terms-schema.ts} +2 -2
  344. package/src/effect/fields/{quantity-schema.ts → peppol-quantity-schema.ts} +2 -2
  345. package/src/effect/fields/peppol-reference-schema.ts +5 -0
  346. package/src/effect/fields/{tax-category-schema.ts → peppol-tax-category-schema.ts} +3 -3
  347. package/src/effect/fields/peppol-tax-representative-schema.ts +23 -0
  348. package/src/effect/fields/{tax-subtotal-category-schema.ts → peppol-tax-subtotal-category-schema.ts} +3 -3
  349. package/src/effect/fields/{tax-subtotal-schema.ts → peppol-tax-subtotal-schema.ts} +7 -7
  350. package/src/effect/fields/peppol-tax-totals-base-schema.ts +25 -0
  351. package/src/effect/index.ts +49 -49
  352. package/src/effect/{billing-base.ts → peppol-billing-base-schema.ts} +34 -34
  353. package/src/effect/{credit-note.ts → peppol-credit-note-schema.ts} +6 -6
  354. package/src/effect/{document-response-document-reference-schema.ts → peppol-document-response-document-reference-schema.ts} +4 -4
  355. package/src/effect/{document-response-document-schema.ts → peppol-document-response-document-schema.ts} +3 -3
  356. package/src/effect/{document-response-line-response-content.ts → peppol-document-response-line-response-content-schema.ts} +3 -3
  357. package/src/effect/{document-response-line-response-schema.ts → peppol-document-response-line-response-schema.ts} +4 -4
  358. package/src/effect/peppol-document-schema.ts +107 -0
  359. package/src/effect/{invoice-response-document-actual-response.ts → peppol-invoice-response-document-actual-response-schema.ts} +8 -8
  360. package/src/effect/{invoice-response-document-actual-response-status.ts → peppol-invoice-response-document-actual-response-status-schema.ts} +4 -4
  361. package/src/effect/{invoice-response-schema.ts → peppol-invoice-response-schema.ts} +29 -38
  362. package/src/effect/{invoice-response-status-reason-code.ts → peppol-invoice-response-status-reason-code-schema.ts} +4 -4
  363. package/src/effect/{invoice.ts → peppol-invoice-schema.ts} +9 -9
  364. package/src/effect/{iso-date-string.ts → peppol-iso-date-string-schema.ts} +2 -2
  365. package/src/effect/{message-level-response-document-response-schema.ts → peppol-message-level-response-document-response-schema.ts} +8 -8
  366. package/src/effect/{message-level-response-party-schema.ts → peppol-message-level-response-party-schema.ts} +2 -2
  367. package/src/effect/{message-level-response-schema.ts → peppol-message-level-response-schema.ts} +11 -11
  368. package/src/effect/utils/index.ts +3 -3
  369. package/src/effect/utils/{base-64.ts → peppol-base-64-schema.ts} +2 -2
  370. package/src/effect/utils/{vat-regex.ts → peppol-vat-regex-schema.ts} +2 -2
  371. package/src/effect/utils/{xsd-time.ts → peppol-xsd-time-schema.ts} +2 -2
  372. package/src/effect/values/index.ts +21 -21
  373. package/src/effect/values/{invoice-status-codes.ts → invoice-status-code-schema.ts} +1 -4
  374. package/src/effect/values/{country-code.ts → peppol-country-code-schema.ts} +1 -1
  375. package/src/effect/values/{document-type-codes.ts → peppol-document-type-code-schema.ts} +1 -1
  376. package/src/effect/values/{document-type-schema.ts → peppol-document-type-schema.ts} +10 -12
  377. package/src/effect/values/{process-schema.ts → peppol-process-schema.ts} +10 -12
  378. package/src/effect/values/process-from-document-type-schema.ts +4 -4
  379. package/src/effect/values/{vatex-code.ts → vatex-code-schema.ts} +1 -1
  380. package/src/invoice-response-codes/invoice-response-codes-order.ts +2 -4
  381. package/dist/effect/billing-base.js.map +0 -1
  382. package/dist/effect/credit-note.js.map +0 -1
  383. package/dist/effect/document-parser.js +0 -90
  384. package/dist/effect/document-parser.js.map +0 -1
  385. package/dist/effect/document-response-document-reference-schema.d.ts.map +0 -1
  386. package/dist/effect/document-response-document-reference-schema.js.map +0 -1
  387. package/dist/effect/document-response-document-schema.d.ts.map +0 -1
  388. package/dist/effect/document-response-document-schema.js.map +0 -1
  389. package/dist/effect/document-response-line-response-content.d.ts.map +0 -1
  390. package/dist/effect/document-response-line-response-content.js.map +0 -1
  391. package/dist/effect/document-response-line-response-schema.d.ts.map +0 -1
  392. package/dist/effect/document-response-line-response-schema.js.map +0 -1
  393. package/dist/effect/fields/additional-document-reference-schema.d.ts.map +0 -1
  394. package/dist/effect/fields/additional-document-reference-schema.js.map +0 -1
  395. package/dist/effect/fields/address-schema.d.ts.map +0 -1
  396. package/dist/effect/fields/address-schema.js.map +0 -1
  397. package/dist/effect/fields/allowance-charge-schema.d.ts.map +0 -1
  398. package/dist/effect/fields/allowance-charge-schema.js.map +0 -1
  399. package/dist/effect/fields/amount-schema.d.ts.map +0 -1
  400. package/dist/effect/fields/amount-schema.js.map +0 -1
  401. package/dist/effect/fields/base-line-schema.d.ts.map +0 -1
  402. package/dist/effect/fields/base-line-schema.js.map +0 -1
  403. package/dist/effect/fields/billing-references-schema.d.ts.map +0 -1
  404. package/dist/effect/fields/billing-references-schema.js.map +0 -1
  405. package/dist/effect/fields/binary-object-schema.d.ts.map +0 -1
  406. package/dist/effect/fields/binary-object-schema.js.map +0 -1
  407. package/dist/effect/fields/contact-schema.d.ts.map +0 -1
  408. package/dist/effect/fields/contact-schema.js.map +0 -1
  409. package/dist/effect/fields/credit-note-line-schema.d.ts.map +0 -1
  410. package/dist/effect/fields/credit-note-line-schema.js.map +0 -1
  411. package/dist/effect/fields/delivery-schema.d.ts.map +0 -1
  412. package/dist/effect/fields/delivery-schema.js.map +0 -1
  413. package/dist/effect/fields/invoice-line-period-schema.d.ts.map +0 -1
  414. package/dist/effect/fields/invoice-line-period-schema.js.map +0 -1
  415. package/dist/effect/fields/invoice-line-schema.d.ts.map +0 -1
  416. package/dist/effect/fields/invoice-line-schema.js.map +0 -1
  417. package/dist/effect/fields/invoice-period-schema.d.ts.map +0 -1
  418. package/dist/effect/fields/invoice-period-schema.js.map +0 -1
  419. package/dist/effect/fields/legal-monetary-total-schema.d.ts.map +0 -1
  420. package/dist/effect/fields/legal-monetary-total-schema.js.map +0 -1
  421. package/dist/effect/fields/line-allowance-charge-schema.d.ts.map +0 -1
  422. package/dist/effect/fields/line-allowance-charge-schema.js.map +0 -1
  423. package/dist/effect/fields/line-item-schema.d.ts.map +0 -1
  424. package/dist/effect/fields/line-item-schema.js.map +0 -1
  425. package/dist/effect/fields/line-price-allowance-charge-schema.d.ts.map +0 -1
  426. package/dist/effect/fields/line-price-allowance-charge-schema.js +0 -30
  427. package/dist/effect/fields/line-price-allowance-charge-schema.js.map +0 -1
  428. package/dist/effect/fields/list-identifier-schema.d.ts.map +0 -1
  429. package/dist/effect/fields/list-identifier-schema.js.map +0 -1
  430. package/dist/effect/fields/order-reference-schema.d.ts.map +0 -1
  431. package/dist/effect/fields/order-reference-schema.js.map +0 -1
  432. package/dist/effect/fields/party-base-schema.d.ts.map +0 -1
  433. package/dist/effect/fields/party-base-schema.js.map +0 -1
  434. package/dist/effect/fields/party-legal-entity-schema.d.ts.map +0 -1
  435. package/dist/effect/fields/party-legal-entity-schema.js.map +0 -1
  436. package/dist/effect/fields/party-tax-schema.d.ts.map +0 -1
  437. package/dist/effect/fields/party-tax-schema.js.map +0 -1
  438. package/dist/effect/fields/payee-party.d.ts.map +0 -1
  439. package/dist/effect/fields/payee-party.js.map +0 -1
  440. package/dist/effect/fields/payment-means-schema.d.ts.map +0 -1
  441. package/dist/effect/fields/payment-means-schema.js.map +0 -1
  442. package/dist/effect/fields/payment-terms-schema.d.ts.map +0 -1
  443. package/dist/effect/fields/payment-terms-schema.js.map +0 -1
  444. package/dist/effect/fields/price-schema.d.ts.map +0 -1
  445. package/dist/effect/fields/price-schema.js +0 -32
  446. package/dist/effect/fields/price-schema.js.map +0 -1
  447. package/dist/effect/fields/quantity-schema.d.ts.map +0 -1
  448. package/dist/effect/fields/quantity-schema.js.map +0 -1
  449. package/dist/effect/fields/reference-schema.d.ts +0 -8
  450. package/dist/effect/fields/reference-schema.d.ts.map +0 -1
  451. package/dist/effect/fields/reference-schema.js +0 -7
  452. package/dist/effect/fields/reference-schema.js.map +0 -1
  453. package/dist/effect/fields/tax-category-schema.d.ts.map +0 -1
  454. package/dist/effect/fields/tax-category-schema.js.map +0 -1
  455. package/dist/effect/fields/tax-representative-party-schema.d.ts.map +0 -1
  456. package/dist/effect/fields/tax-representative-party-schema.js +0 -24
  457. package/dist/effect/fields/tax-representative-party-schema.js.map +0 -1
  458. package/dist/effect/fields/tax-subtotal-category-schema.d.ts.map +0 -1
  459. package/dist/effect/fields/tax-subtotal-category-schema.js.map +0 -1
  460. package/dist/effect/fields/tax-subtotal-schema.d.ts.map +0 -1
  461. package/dist/effect/fields/tax-subtotal-schema.js +0 -33
  462. package/dist/effect/fields/tax-subtotal-schema.js.map +0 -1
  463. package/dist/effect/fields/tax-totals.d.ts.map +0 -1
  464. package/dist/effect/fields/tax-totals.js +0 -26
  465. package/dist/effect/fields/tax-totals.js.map +0 -1
  466. package/dist/effect/invoice-response-document-actual-response-status.d.ts.map +0 -1
  467. package/dist/effect/invoice-response-document-actual-response-status.js.map +0 -1
  468. package/dist/effect/invoice-response-document-actual-response.d.ts.map +0 -1
  469. package/dist/effect/invoice-response-document-actual-response.js.map +0 -1
  470. package/dist/effect/invoice-response-schema.d.ts.map +0 -1
  471. package/dist/effect/invoice-response-schema.js.map +0 -1
  472. package/dist/effect/invoice-response-status-reason-code.d.ts.map +0 -1
  473. package/dist/effect/invoice-response-status-reason-code.js.map +0 -1
  474. package/dist/effect/invoice.js +0 -47
  475. package/dist/effect/invoice.js.map +0 -1
  476. package/dist/effect/iso-date-string.d.ts.map +0 -1
  477. package/dist/effect/iso-date-string.js.map +0 -1
  478. package/dist/effect/message-level-response-document-response-schema.d.ts.map +0 -1
  479. package/dist/effect/message-level-response-document-response-schema.js.map +0 -1
  480. package/dist/effect/message-level-response-party-schema.d.ts.map +0 -1
  481. package/dist/effect/message-level-response-party-schema.js.map +0 -1
  482. package/dist/effect/message-level-response-schema.d.ts.map +0 -1
  483. package/dist/effect/message-level-response-schema.js.map +0 -1
  484. package/dist/effect/utils/base-64.d.ts.map +0 -1
  485. package/dist/effect/utils/base-64.js.map +0 -1
  486. package/dist/effect/utils/vat-regex.d.ts +0 -10
  487. package/dist/effect/utils/vat-regex.d.ts.map +0 -1
  488. package/dist/effect/utils/vat-regex.js.map +0 -1
  489. package/dist/effect/utils/xsd-time.d.ts.map +0 -1
  490. package/dist/effect/utils/xsd-time.js +0 -11
  491. package/dist/effect/utils/xsd-time.js.map +0 -1
  492. package/dist/effect/values/additional-document-reference-code.d.ts.map +0 -1
  493. package/dist/effect/values/additional-document-reference-code.js.map +0 -1
  494. package/dist/effect/values/allowance-charge-reason-code.d.ts.map +0 -1
  495. package/dist/effect/values/allowance-charge-reason-code.js.map +0 -1
  496. package/dist/effect/values/application-response-type-codes.d.ts.map +0 -1
  497. package/dist/effect/values/application-response-type-codes.js.map +0 -1
  498. package/dist/effect/values/charge-reason-code.d.ts.map +0 -1
  499. package/dist/effect/values/charge-reason-code.js.map +0 -1
  500. package/dist/effect/values/country-code.d.ts.map +0 -1
  501. package/dist/effect/values/country-code.js.map +0 -1
  502. package/dist/effect/values/currency-codes.d.ts.map +0 -1
  503. package/dist/effect/values/currency-codes.js.map +0 -1
  504. package/dist/effect/values/document-type-codes.d.ts.map +0 -1
  505. package/dist/effect/values/document-type-codes.js.map +0 -1
  506. package/dist/effect/values/document-type-schema.d.ts.map +0 -1
  507. package/dist/effect/values/document-type-schema.js +0 -25
  508. package/dist/effect/values/document-type-schema.js.map +0 -1
  509. package/dist/effect/values/duty-tax-fee-cateogries.d.ts.map +0 -1
  510. package/dist/effect/values/duty-tax-fee-cateogries.js.map +0 -1
  511. package/dist/effect/values/eas-codes.d.ts.map +0 -1
  512. package/dist/effect/values/eas-codes.js.map +0 -1
  513. package/dist/effect/values/icd-codes.d.ts.map +0 -1
  514. package/dist/effect/values/icd-codes.js.map +0 -1
  515. package/dist/effect/values/invoice-status-codes.d.ts.map +0 -1
  516. package/dist/effect/values/invoice-status-codes.js.map +0 -1
  517. package/dist/effect/values/item-classification-code-schema.d.ts.map +0 -1
  518. package/dist/effect/values/item-classification-code-schema.js.map +0 -1
  519. package/dist/effect/values/mime-code.d.ts.map +0 -1
  520. package/dist/effect/values/mime-code.js.map +0 -1
  521. package/dist/effect/values/op-status-action.d.ts.map +0 -1
  522. package/dist/effect/values/op-status-action.js.map +0 -1
  523. package/dist/effect/values/op-status-reason.d.ts.map +0 -1
  524. package/dist/effect/values/op-status-reason.js.map +0 -1
  525. package/dist/effect/values/participant-identifier-code.d.ts.map +0 -1
  526. package/dist/effect/values/participant-identifier-code.js.map +0 -1
  527. package/dist/effect/values/payment-means-codes-schema.d.ts.map +0 -1
  528. package/dist/effect/values/payment-means-codes-schema.js.map +0 -1
  529. package/dist/effect/values/process-schema.d.ts.map +0 -1
  530. package/dist/effect/values/process-schema.js +0 -24
  531. package/dist/effect/values/process-schema.js.map +0 -1
  532. package/dist/effect/values/vat-date-code.d.ts.map +0 -1
  533. package/dist/effect/values/vat-date-code.js.map +0 -1
  534. package/dist/effect/values/vatex-code.d.ts.map +0 -1
  535. package/dist/effect/values/vatex-code.js.map +0 -1
  536. package/src/effect/document-parser.ts +0 -108
  537. package/src/effect/fields/price-schema.ts +0 -31
  538. package/src/effect/fields/reference-schema.ts +0 -5
  539. package/src/effect/fields/tax-representative-party-schema.ts +0 -23
  540. package/src/effect/fields/tax-totals.ts +0 -25
  541. /package/src/effect/values/{additional-document-reference-code.ts → additional-document-reference-code-schema.ts} +0 -0
  542. /package/src/effect/values/{allowance-charge-reason-code.ts → allowance-charge-reason-code-schema.ts} +0 -0
  543. /package/src/effect/values/{application-response-type-codes.ts → application-response-type-code-schema.ts} +0 -0
  544. /package/src/effect/values/{charge-reason-code.ts → charge-reason-code-schema.ts} +0 -0
  545. /package/src/effect/values/{currency-codes.ts → currency-code-schema.ts} +0 -0
  546. /package/src/effect/values/{duty-tax-fee-cateogries.ts → duty-tax-fee-category-schema.ts} +0 -0
  547. /package/src/effect/values/{eas-codes.ts → electronic-codes-schema.ts} +0 -0
  548. /package/src/effect/values/{icd-codes.ts → icd-codes-schema.ts} +0 -0
  549. /package/src/effect/values/{item-classification-code-schema.ts → item-classification-codes-schema.ts} +0 -0
  550. /package/src/effect/values/{mime-code.ts → mime-codes-schema.ts} +0 -0
  551. /package/src/effect/values/{op-status-action.ts → op-status-action-schema.ts} +0 -0
  552. /package/src/effect/values/{op-status-reason.ts → op-status-reason-schema.ts} +0 -0
  553. /package/src/effect/values/{participant-identifier-code.ts → participant-identifier-code-schema.ts} +0 -0
  554. /package/src/effect/values/{payment-means-codes-schema.ts → payment-means-code-schema.ts} +0 -0
  555. /package/src/effect/values/{vat-date-code.ts → vat-date-code-schema.ts} +0 -0
@@ -1,28 +1,28 @@
1
- export * from './additional-document-reference-code';
2
- export * from './allowance-charge-reason-code';
3
- export * from './application-response-type-codes';
4
- export * from './charge-reason-code';
5
- export * from './country-code';
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
6
  export * from './credit-note-type-code-schema';
7
- export * from './currency-codes';
8
- export * from './document-type-codes';
9
- export * from './document-type-schema';
7
+ export * from './currency-code-schema';
8
+ export * from './peppol-document-type-code-schema';
9
+ export * from './peppol-document-type-schema';
10
10
  export * from './document-type-schemes-schema';
11
11
  export * from './document-type-values-schema';
12
- export * from './duty-tax-fee-cateogries';
13
- export * from './eas-codes';
14
- export * from './icd-codes';
15
- export * from './invoice-status-codes';
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
16
  export * from './invoice-type-code-schema';
17
- export * from './item-classification-code-schema';
18
- export * from './mime-code';
19
- export * from './op-status-action';
20
- export * from './op-status-reason';
21
- export * from './participant-identifier-code';
22
- export * from './payment-means-codes-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
23
  export * from './process-from-document-type-schema';
24
- export * from './process-schema';
24
+ export * from './peppol-process-schema';
25
25
  export * from './process-xml-identifier-schema';
26
26
  export * from './quantity-unit-codes-schema';
27
- export * from './vatex-code';
28
- export * from './vat-date-code';
27
+ export * from './vatex-code-schema';
28
+ export * from './vat-date-code-schema';
@@ -20,7 +20,4 @@ export type PeppolInvoiceStatusCodes = InvoiceStatusCodesKeys;
20
20
  *
21
21
  * @see https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL4343-T111/
22
22
  */
23
- export function invoiceStatusCodeSchema(error?: string) {
24
- const schema = Schema.Literals(invoiceStatusCodesKeys);
25
- return error === undefined ? schema : schema.annotate({ message: error });
26
- }
23
+ export const invoiceStatusCodeSchema = Schema.Literals(invoiceStatusCodesKeys);
@@ -29,4 +29,4 @@ export type PeppolCountryCode = CountryCodesKeys;
29
29
  *
30
30
  * @see https://docs.peppol.eu/poacc/billing/3.0/codelist/ISO3166/
31
31
  */
32
- export const countryCodeSchema = Schema.Literals(countryCodesKeys);
32
+ export const peppolCountryCodeSchema = Schema.Literals(countryCodesKeys);
@@ -20,7 +20,7 @@ export type PeppolDocumentTypeCode = DocumentTypeCodesKeys;
20
20
  *
21
21
  * @see https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL1001/
22
22
  */
23
- export function documentTypeCodeSchema(error?: string) {
23
+ export function peppolDocumentTypeCodeSchema(error?: string) {
24
24
  const schema = Schema.Literals(documentTypeCodesKeys);
25
25
  return error === undefined ? schema : schema.annotate({ message: error });
26
26
  }
@@ -1,4 +1,4 @@
1
- import { Schema } from 'effect';
1
+ import { Predicate, Schema } from 'effect';
2
2
 
3
3
  import type { DocumentTypesTableKeys } from '#/values/document-type.generated';
4
4
 
@@ -9,7 +9,7 @@ import { documentTypesTable, documentTypesTableKeys } from '#/values/document-ty
9
9
  *
10
10
  * @see {@link documentTypesTable}
11
11
  */
12
- export type PeppolDocumentType = `${DocumentTypesTableKeys}::${string}`;
12
+ export type PeppolDocumentType = typeof peppolDocumentTypeSchema.Type;
13
13
 
14
14
  /**
15
15
  * @description Validates a full PEPPOL document type identifier (`<scheme>::<value>`) against the known document type table. The scheme prefix must be a known key
@@ -21,13 +21,11 @@ export type PeppolDocumentType = `${DocumentTypesTableKeys}::${string}`;
21
21
  *
22
22
  * @see {@link documentTypesTable}
23
23
  */
24
- export function documentTypeSchema(error = 'invalid peppol document type') {
25
- return Schema.String.check(
26
- Schema.makeFilter((val: string) => {
27
- const [prefix, ...suffix] = val.split('::');
28
- if (prefix === undefined || !documentTypesTableKeys.includes(prefix as never)) return false;
29
- const info = documentTypesTable[prefix as DocumentTypesTableKeys];
30
- return info !== undefined && info.some(v => v === suffix.join('::'));
31
- })
32
- ).annotate({ message: error });
33
- }
24
+ export const peppolDocumentTypeSchema = Schema.TemplateLiteral([Schema.Literals(documentTypesTableKeys), Schema.Literal('::'), Schema.String]).check(
25
+ Schema.makeFilter((val: string) => {
26
+ const [prefix, ...suffix] = val.split('::');
27
+ if (Predicate.isNullish(prefix) || !documentTypesTableKeys.includes(prefix as never)) return false;
28
+ const info = documentTypesTable[prefix as DocumentTypesTableKeys];
29
+ return Predicate.isNotNullish(info) && info.some(v => v === suffix.join('::'));
30
+ })
31
+ );
@@ -2,14 +2,14 @@ import { Schema } from 'effect';
2
2
 
3
3
  import type { ProcessesKeys } from '#/values/processes.generated';
4
4
 
5
- import { processes } from '#/values/processes.generated';
5
+ import { processes, processesKeys } from '#/values/processes.generated';
6
6
 
7
7
  /**
8
8
  * @description A PEPPOL business process identifier key as defined by the processes codelist.
9
9
  *
10
10
  * @see {@link processes}
11
11
  */
12
- export type PeppolProcesses = `${ProcessesKeys}::${string}`;
12
+ export type PeppolProcesses = typeof peppolProcessSchema.Encoded;
13
13
 
14
14
  /**
15
15
  * @description Validates a full PEPPOL business process identifier (`<scheme>::<value>`) against the known processes.
@@ -20,13 +20,11 @@ export type PeppolProcesses = `${ProcessesKeys}::${string}`;
20
20
  *
21
21
  * @see {@link processes}
22
22
  */
23
- export function processSchema(error = 'invalid peppol process identifier') {
24
- return Schema.String.check(
25
- Schema.makeFilter((val: string) => {
26
- const [prefix, suffix] = val.split('::');
27
- if (prefix === undefined || suffix === undefined) return false;
28
- const info = processes[prefix as ProcessesKeys];
29
- return info !== undefined && info.some(v => v === suffix);
30
- })
31
- ).annotate({ message: error });
32
- }
23
+ export const peppolProcessSchema = Schema.TemplateLiteral([Schema.Literals(processesKeys), Schema.Literal('::'), Schema.String]).check(
24
+ Schema.makeFilter((val: string) => {
25
+ const [prefix, suffix] = val.split('::');
26
+ if (prefix === undefined || suffix === undefined) return false;
27
+ const info = processes[prefix as ProcessesKeys];
28
+ return info !== undefined && info.some(v => v === suffix);
29
+ })
30
+ );
@@ -1,8 +1,8 @@
1
1
  import { Schema } from 'effect';
2
2
 
3
- import type { PeppolDocumentType } from '#/effect/values/document-type-schema';
3
+ import type { PeppolDocumentType } from '#/effect/values/peppol-document-type-schema';
4
4
 
5
- import { processSchema } from '#/effect/values/process-schema';
5
+ import { peppolProcessSchema } from '#/effect/values/peppol-process-schema';
6
6
  import { documentTypesProcessIds } from '#/values/document-type.generated';
7
7
 
8
8
  /**
@@ -13,13 +13,13 @@ import { documentTypesProcessIds } from '#/values/document-type.generated';
13
13
  *
14
14
  * @returns An Effect schema that matches only processes allowed for the given document type.
15
15
  *
16
- * @see {@link processSchema}
16
+ * @see {@link peppolProcessSchema}
17
17
  * @see {@link documentTypesProcessIds}
18
18
  */
19
19
  export function processFromDocumentTypeSchema(documentType: PeppolDocumentType, error = 'invalid process type for document type') {
20
20
  const allowed = documentTypesProcessIds[documentType as keyof typeof documentTypesProcessIds];
21
21
  if (allowed === undefined) {
22
- return processSchema(error);
22
+ return peppolProcessSchema;
23
23
  }
24
24
  const values = allowed.map(p => `${p.scheme}::${p.value}`);
25
25
  return Schema.String.check(Schema.makeFilter((val: string) => values.includes(val as never))).annotate({ message: error });
@@ -23,7 +23,7 @@ export type PeppolVatexCode = VatexCodesKeys;
23
23
  *
24
24
  * @see https://docs.peppol.eu/poacc/billing/3.0/codelist/vatex/
25
25
  */
26
- export function vatexCodeschema(error?: string) {
26
+ export function vatexCodeSchema(error?: string) {
27
27
  const schema = Schema.Literals(vatexCodesKeys);
28
28
  return error === undefined ? schema : schema.annotate({ message: error });
29
29
  }
@@ -1,8 +1,6 @@
1
- import type { invoiceStatusCodesKeys } from '#/values/invoice-status-codes.generated';
1
+ import type { InvoiceStatusCodesKeys } from '#/values/invoice-status-codes.generated';
2
2
 
3
- type StatusCode = (typeof invoiceStatusCodesKeys)[number];
4
-
5
- export const invoiceResponseCodesOrder: Record<StatusCode, Array<StatusCode>> = {
3
+ export const invoiceResponseCodesOrder: Record<InvoiceStatusCodesKeys, Array<InvoiceStatusCodesKeys>> = {
6
4
  AB: ['IP', 'UQ', 'AP', 'CA', 'PD', 'RE'],
7
5
  AP: ['PD'],
8
6
  CA: ['PD'],
@@ -1 +0,0 @@
1
- {"version":3,"file":"billing-base.js","names":[],"sources":["../../src/effect/billing-base.ts"],"sourcesContent":["import { Effect, Schema } from 'effect';\n\nimport { additionalDocumentReferenceSchema } from './fields/additional-document-reference-schema';\nimport { allowanceChargeSchema } from './fields/allowance-charge-schema';\nimport { billingReferenceSchema } from './fields/billing-references-schema';\nimport { DEFAULT_CUSTOMIZATION_ID } from './fields/default-customization-id';\nimport { DEFAULT_PROFILE_ID } from './fields/default-profile-id';\nimport { deliverySchema } from './fields/delivery-schema';\nimport { invoicePeriodSchema } from './fields/invoice-period-schema';\nimport { legalMonetaryTotalSchema } from './fields/legal-monetary-total-schema';\nimport { orderReferenceSchema } from './fields/order-reference-schema';\nimport { partyBaseSchema } from './fields/party-base-schema';\nimport { payeePartySchema } from './fields/payee-party';\nimport { paymentMeansSchema } from './fields/payment-means-schema';\nimport { paymentTermsSchema } from './fields/payment-terms-schema';\nimport { taxRepresentativeSchema } from './fields/tax-representative-party-schema';\nimport { taxTotalsBaseSchema } from './fields/tax-totals';\nimport { IsoDateString } from './iso-date-string';\nimport { currencyCodeSchema } from './values/currency-codes';\n\n/**\n * @description Base schema for a billing document. Effect port of `billingBaseSchema` (`z.object(...)`): same keys and optionality (`z.optional` →\n * `Schema.optional`), ISO dates stay plain strings via `IsoDateString` (never `Date` objects), and `z._default` becomes\n * `Schema.withDecodingDefaultType`.\n *\n * @see {@link creditNoteSchema} - the credit note schema\n * @see {@link invoiceSchema} - the invoice schema\n */\nexport const billingBaseSchema = Schema.Struct({\n /**\n * @description An identification of the specification containing the total set of rules regarding semantic content, cardinalities, and business rules to which\n * the data contained in the intance document conforms.\n *\n * @default `urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0`\n *\n * @summary Specification identifier\n *\n * @cardinality 1..1\n *\n * @name `cbc:CustomizationID`\n */\n customizationId: Schema.String.check(\n Schema.isStartsWith('urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0', {\n message:\n \"PEPPOL-EN16931-R004: Specification identifier MUST have the value 'urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0'.\",\n })\n ).pipe(Schema.withDecodingDefaultType(Effect.succeed(DEFAULT_CUSTOMIZATION_ID))),\n /**\n * @description Identifies the business process context in which the transaction appears, to enable the Buyer to process the Invoice in an appropriate way.\n *\n * @default `urn:fdc:peppol.eu:2017:poacc:billing:01:1.0`\n *\n * @summary Business process type\n *\n * @name `cbc:ProfileID`\n */\n profileId: Schema.String.check(\n Schema.isPattern(/^urn:fdc:peppol.eu:2017:poacc:billing:(\\d{2}):1\\.0$/, {\n message:\n \"PEPPOL-EN16931-R007: Business process MUST be in the format 'urn:fdc:peppol.eu:2017:poacc:billing:NN:1.0' where NN indicates the process number.\",\n })\n ).pipe(Schema.withDecodingDefaultType(Effect.succeed(DEFAULT_PROFILE_ID))),\n /**\n * @description A using identification of the Invoice. The sequential number required in Article 226(2) of the directive 2006/112/EC [2], to uniquely identify\n * the Invoice within the business context, time-frame, operating systems and records of the Seller. No identification scheme is to be used.\n *\n * @example\n * 33445566;\n *\n * @summary Invoice number\n *\n * @name `cbc:ID`\n */\n id: Schema.String,\n /**\n * @description The date when the invoice was issued.\n *\n * @example\n * `2017-11-01`;\n *\n * @summary Invoice issue date\n *\n * @format `YYYY-MM-DD`\n *\n * @name `cbc:IssueDate`\n */\n issueDate: IsoDateString,\n /**\n * @description Invoice note A textual note that gives unstructured information that is relevant to the Credit Note as a whole.\n *\n * @example\n * Please note our new phone number 33 44 55 66\n *\n * @name `cbc:Note`\n */\n note: Schema.optional(Schema.String),\n /**\n * @description The date when the VAT becomes accountable for the Seller and for the Buyer in so far as that date can be determined and differs from the date of\n * issue of the invoice, according to the VAT directive.This element is required if the Value added tax point date is different from the Invoice\n * issue date.\n *\n * @example\n * 2017 - 11 - 01;\n *\n * @summary Value added tax point date\n *\n * @name `cbc:TaxPointDate`\n */\n taxPointDate: Schema.optional(IsoDateString),\n /**\n * @description The currency in which all Invoice amounts are given, except for the Total VAT amount in accounting currency. Only one currency shall be used in\n * the Invoice, except for the VAT accounting currency code (BT-6) and the invoice total VAT amount in accounting currency (BT-111).\n *\n * @example\n * EUR;\n *\n * @summary Invoice currency code\n *\n * @name `cbc:DocumentCurrencyCode`\n */\n documentCurrencyCode: currencyCodeSchema(),\n /**\n * @description The currency used for VAT accounting and reporting purposes as accepted or required in the country of the Seller. Shall be used in combination\n * with the Invoice total VAT amount in accounting currency (BT-111), when the VAT accounting currency code differs from the Invoice currency code.\n *\n * @example\n * SEK;\n *\n * @summary VAT accounting currency code\n *\n * @name `cbc:TaxCurrencyCode`\n */\n taxCurrencyCode: Schema.optional(currencyCodeSchema()),\n /**\n * @description A textual value that specifies where to book the relevant data into the Buyer's financial accounts.\n *\n * @example\n * `4217:2323:2323`;\n *\n * @summary Buyer accounting reference\n *\n * @name `cbc:AccountingCost`\n */\n accountingCost: Schema.optional(Schema.String),\n /**\n * @description An identifier assigned by the Buyer used for internal routing purposes. An invoice must have buyer reference or purchase order reference (BT-13).\n *\n * @example\n * `abs1234`;\n *\n * @summary Buyer reference\n *\n * @name `cbc:BuyerReference`\n */\n buyerReference: Schema.optional(Schema.String),\n /**\n * @description A group of business terms providing information on the invoice period. Also called delivery period. If the group is used, the invoiceing period\n * start date and/or end date must be used.\n *\n * @summary DELIVERY OR INVOICE PERIOD\n *\n * @name `cac:InvoicePeriod`\n */\n invoicePeriod: Schema.optional(invoicePeriodSchema),\n /**\n * @summary ORDER AND SALES ORDER REFERENCE\n *\n * @name `cac:OrderReference`\n */\n orderReference: Schema.optional(orderReferenceSchema),\n /**\n * @summary PRECEDING INVOICE REFERENCE (0..n)\n *\n * @name `cac:BillingReference`\n */\n billingReferences: Schema.optional(Schema.Array(billingReferenceSchema)),\n /**\n * @summary DESPATCH ADVICE REFERENCE\n *\n * @name `cac:DespatchDocumentReference`\n */\n despatchDocumentReference: Schema.optional(\n Schema.Struct({\n /**\n * @description An identifier of a referenced despatch advice.\n *\n * @example\n * `desp98`;\n *\n * @summary Despatch advice reference\n *\n * @name `cbc:ID`\n */\n id: Schema.String,\n })\n ),\n /**\n * @summary RECEIPT ADVICE REFERENCE\n *\n * @name `cac:ReceiptDocumentReference`\n */\n receiptDocumentReference: Schema.optional(\n Schema.Struct({\n /**\n * @description An identifier of a referenced receiving advice.\n *\n * @example\n * `rec98`;\n *\n * @summary Receiving advice reference\n *\n * @name `cbc:ID`\n */\n id: Schema.String,\n })\n ),\n /**\n * @summary TENDER OR LOT REFERENCE\n *\n * @name `cac:OriginatorDocumentReference`\n */\n originatorDocumentReference: Schema.optional(\n Schema.Struct({\n /**\n * @description The identification of the call for tender or lot the invoice relates to.\n *\n * @example\n * `PPID-123`;\n *\n * @summary Tender or lot reference\n *\n * @name `cbc:ID`\n */\n id: Schema.String,\n })\n ),\n\n /**\n * @summary CONTRACT REFERENCE\n *\n * @name `cac:ContractDocumentReference`\n */\n contractDocumentReference: Schema.optional(\n Schema.Struct({\n /**\n * @description An identifier of a referenced contract.\n *\n * @example\n * `123Contractref`;\n *\n * @summary Contract reference\n *\n * @name `cbc:ID`\n */\n id: Schema.String,\n })\n ),\n\n /**\n * @description A group of business terms providing information about additional supporting documents substantiating the claims made in the Invoice. The\n * additional supporting documents can be used for both referencing a document number which is expected to be known by the receiver, an external\n * document (referenced by a URL) or as an embedded document, Base64 encoded (such as a time report).\n *\n * @summary ADDITIONAL SUPPORTING DOCUMENTS\n *\n * @name `cac:AdditionalDocumentReference`\n */\n additionalDocumentReferences: Schema.optional(Schema.Array(additionalDocumentReferenceSchema)),\n\n /**\n * @description A group of business terms providing information about the seller.\n *\n * @summary SELLER\n *\n * @name `cac:AccountingSupplierParty`\n */\n accountingSupplierParty: partyBaseSchema,\n\n /**\n * @description A group of business terms providing information about the Buyer.\n *\n * @summary BUYER\n *\n * @name `cac:AccountingCustomerParty`\n */\n accountingCustomerParty: partyBaseSchema,\n\n /**\n * @description A group of business terms providing information about the Payee, i.e. the role that received the payment. Shall be used wwhen the payee is\n * different from the seller.\n *\n * @summary PAYEE\n *\n * @name cac:PayeeParty\n */\n payeeParty: Schema.optional(payeePartySchema),\n\n /**\n * @description SELLER TAX REPRESENTATIVE PARTY.\n *\n * @name cac:TaxRepresentativeParty\n */\n taxRepresentativeParty: Schema.optional(taxRepresentativeSchema),\n\n /**\n * @description DELIVERY INFORMATION.\n *\n * @name cac:Delivery\n */\n delivery: Schema.optional(deliverySchema),\n\n /**\n * @summary PAYMENT INSTRUCTIONS\n * @summary A group of business terms providing information about the payment.\n *\n * @name cac:PaymentMeans\n */\n paymentMeans: Schema.optional(Schema.Array(paymentMeansSchema)),\n\n /**\n * @example\n * Net within 30 days\n *\n * @summary PAYMENT TERMS\n *\n * @name cac:PaymentTerms\n */\n paymentTerms: Schema.optional(paymentTermsSchema),\n\n /**\n * @description A group of business terms providing information about allowances applicable to the Invoice as a whole. A group of business terms providing\n * information about charges and taxes other than VAT, applicable to the Invoice as a whole.\n *\n * @summary DOCUMENT LEVEL ALLOWANCES AND CHARGES\n *\n * @name cac:AllowanceCharge\n */\n allowanceCharges: Schema.optional(Schema.Array(allowanceChargeSchema)),\n\n /**\n * @description When tax currency code is provided, two instances of the tax total must be present, but only one with tax subtotal.\n *\n * @summary TAX TOTAL\n *\n * @name cac:TaxTotal\n */\n taxTotals: Schema.Array(taxTotalsBaseSchema).check(Schema.isMinLength(1), Schema.isMaxLength(2)),\n\n /**\n * @summary DOCUMENT TOTALS\n *\n * @name cac:LegalMonetaryTotal\n */\n legalMonetaryTotal: legalMonetaryTotalSchema,\n});\n\nexport type PeppolBillingBase = typeof billingBaseSchema.Type;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,MAAa,oBAAoB,OAAO,OAAO;;;;;;;;;;;;;CAa7C,iBAAiB,OAAO,OAAO,MAC7B,OAAO,aAAa,8EAA8E,EAChG,SACE,kJACJ,CAAC,CACH,CAAC,CAAC,KAAK,OAAO,wBAAwB,OAAO,QAAQ,wBAAwB,CAAC,CAAC;;;;;;;;;;CAU/E,WAAW,OAAO,OAAO,MACvB,OAAO,UAAU,uDAAuD,EACtE,SACE,mJACJ,CAAC,CACH,CAAC,CAAC,KAAK,OAAO,wBAAwB,OAAO,QAAQ,kBAAkB,CAAC,CAAC;;;;;;;;;;;;CAYzE,IAAI,OAAO;;;;;;;;;;;;;CAaX,WAAW;;;;;;;;;CASX,MAAM,OAAO,SAAS,OAAO,MAAM;;;;;;;;;;;;;CAanC,cAAc,OAAO,SAAS,aAAa;;;;;;;;;;;;CAY3C,sBAAsB,mBAAmB;;;;;;;;;;;;CAYzC,iBAAiB,OAAO,SAAS,mBAAmB,CAAC;;;;;;;;;;;CAWrD,gBAAgB,OAAO,SAAS,OAAO,MAAM;;;;;;;;;;;CAW7C,gBAAgB,OAAO,SAAS,OAAO,MAAM;;;;;;;;;CAS7C,eAAe,OAAO,SAAS,mBAAmB;;;;;;CAMlD,gBAAgB,OAAO,SAAS,oBAAoB;;;;;;CAMpD,mBAAmB,OAAO,SAAS,OAAO,MAAM,sBAAsB,CAAC;;;;;;CAMvE,2BAA2B,OAAO,SAChC,OAAO,OAAO;;;;;;;;;;;AAWZ,IAAI,OAAO,OACb,CAAC,CACH;;;;;;CAMA,0BAA0B,OAAO,SAC/B,OAAO,OAAO;;;;;;;;;;;AAWZ,IAAI,OAAO,OACb,CAAC,CACH;;;;;;CAMA,6BAA6B,OAAO,SAClC,OAAO,OAAO;;;;;;;;;;;AAWZ,IAAI,OAAO,OACb,CAAC,CACH;;;;;;CAOA,2BAA2B,OAAO,SAChC,OAAO,OAAO;;;;;;;;;;;AAWZ,IAAI,OAAO,OACb,CAAC,CACH;;;;;;;;;;CAWA,8BAA8B,OAAO,SAAS,OAAO,MAAM,iCAAiC,CAAC;;;;;;;;CAS7F,yBAAyB;;;;;;;;CASzB,yBAAyB;;;;;;;;;CAUzB,YAAY,OAAO,SAAS,gBAAgB;;;;;;CAO5C,wBAAwB,OAAO,SAAS,uBAAuB;;;;;;CAO/D,UAAU,OAAO,SAAS,cAAc;;;;;;;CAQxC,cAAc,OAAO,SAAS,OAAO,MAAM,kBAAkB,CAAC;;;;;;;;;CAU9D,cAAc,OAAO,SAAS,kBAAkB;;;;;;;;;CAUhD,kBAAkB,OAAO,SAAS,OAAO,MAAM,qBAAqB,CAAC;;;;;;;;CASrE,WAAW,OAAO,MAAM,mBAAmB,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,GAAG,OAAO,YAAY,CAAC,CAAC;;;;;;CAO/F,oBAAoB;AACtB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"credit-note.js","names":[],"sources":["../../src/effect/credit-note.ts"],"sourcesContent":["import { Schema } from 'effect';\n\nimport { billingBaseSchema } from './billing-base';\nimport { creditNoteLineSchema } from './fields/credit-note-line-schema';\nimport { creditNoteTypeCodeSchema } from './values/credit-note-type-code-schema';\n\n/**\n * @description Main UBL Credit Note schema (camelCase properties) Effect port of `creditNoteSchema` (`z.extend(billingBaseSchema, ...)` →\n * `billingBaseSchema.pipe(Schema.fieldsAssign(...))`).\n */\nexport const creditNoteSchema = billingBaseSchema.pipe(\n Schema.fieldsAssign({\n /**\n * @description CREDIT NOTE LINE.\n *\n * @name cac:CreditNoteLine (1..n)\n */\n creditNoteLines: Schema.Array(creditNoteLineSchema).check(Schema.isMinLength(1)),\n /**\n * @description Invoice type code A code specifying the functional type of the Credit Note.\n *\n * @example\n * 381;\n *\n * @name cbc:CreditNoteTypeCode\n */\n creditNoteTypeCode: creditNoteTypeCodeSchema(),\n })\n);\n\nexport type PeppolCreditNote = typeof creditNoteSchema.Type;\n"],"mappings":";;;;;;;;;AAUA,MAAa,mBAAmB,kBAAkB,KAChD,OAAO,aAAa;;;;;;CAMlB,iBAAiB,OAAO,MAAM,oBAAoB,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;;;;;;;;;CAS/E,oBAAoB,yBAAyB;AAC/C,CAAC,CACH"}
@@ -1,90 +0,0 @@
1
- import { invoiceSchema } from "./invoice.js";
2
- import { creditNoteSchema } from "./credit-note.js";
3
- import "../constants/message-level-response-profile-id.js";
4
- import { messageLevelResponse } from "./message-level-response-schema.js";
5
- import "../constants/invoice-response-profile-id.js";
6
- import { invoiceResponseSchema } from "./invoice-response-schema.js";
7
- import { strOrUnd } from "../helpers/str-or-und.js";
8
- import { decodeCreditNote } from "../decoders/decode-credit-note.js";
9
- import { decodeInvoice } from "../decoders/decode-invoice.js";
10
- import { decodeInvoiceResponse } from "../decoders/decode-invoice-response.js";
11
- import { decodeMessageLevelResponse } from "../decoders/decode-message-level-response.js";
12
- import { encodeCreditNote } from "../decoders/encode-credit-note.js";
13
- import { encodeInvoice } from "../decoders/encode-invoice.js";
14
- import { encodeInvoiceResponse } from "../decoders/encode-invoice-response.js";
15
- import { encodeMessageLevelResponse } from "../decoders/encode-message-level-response.js";
16
- import { builderOptions } from "../xml/builder-options.js";
17
- import { parserOptions } from "../xml/parser-options.js";
18
- import { Effect, Schema } from "effect";
19
- import XMLBuilder from "fast-xml-builder";
20
- import { XMLParser } from "fast-xml-parser";
21
- //#region src/effect/document-parser.ts
22
- /**
23
- * @description Union of every supported PEPPOL business document (Effect port of the `z.xor` side of `documentParser`). Members discriminate cleanly: invoice vs
24
- * credit note via `invoiceLines`/`creditNoteLines`, message-level vs invoice response via the `profileId` literal.
25
- */
26
- const PeppolDocumentSchema = Schema.Union([
27
- invoiceSchema,
28
- creditNoteSchema,
29
- messageLevelResponse,
30
- invoiceResponseSchema
31
- ]);
32
- /**
33
- * @description Parse an XML string into raw decoded JSON, branching exactly like `documentParser.decode`. ISO dates stay plain strings (the shared `decode*`
34
- * helpers never build `Date` objects).
35
- *
36
- * @throws When the root element is not a supported document type.
37
- */
38
- function parseXmlToRawDocument(xml) {
39
- const parsed = new XMLParser({
40
- ...parserOptions,
41
- removeNSPrefix: true
42
- }).parse(xml);
43
- if (parsed.Invoice) return decodeInvoice(parsed);
44
- else if (parsed.CreditNote) return decodeCreditNote(parsed);
45
- else if (parsed.ApplicationResponse) {
46
- const profile = strOrUnd(parsed.ApplicationResponse, "cbc:ProfileID");
47
- if (profile === "urn:fdc:peppol.eu:poacc:bis:mlr:3") return decodeMessageLevelResponse(parsed);
48
- else if (profile === "urn:fdc:peppol.eu:poacc:bis:invoice_response:3") return decodeInvoiceResponse(parsed);
49
- }
50
- throw new Error(`Unsupported document type: ${Object.keys(parsed).join(",")}`);
51
- }
52
- /**
53
- * @description Decode a PEPPOL XML string into a validated `PeppolDocument`. Throws on error.
54
- */
55
- function decodeDocumentSync(xml) {
56
- return Schema.decodeUnknownSync(PeppolDocumentSchema)(parseXmlToRawDocument(xml));
57
- }
58
- /**
59
- * @description Encode a `PeppolDocument` back into a PEPPOL XML string. Throws on error.
60
- */
61
- function encodeDocumentSync(document) {
62
- let content;
63
- if ("invoiceLines" in document) content = encodeInvoice(document);
64
- else if ("creditNoteLines" in document) content = encodeCreditNote(document);
65
- else if ("documentResponse" in document) {
66
- if (document.profileId === "urn:fdc:peppol.eu:poacc:bis:mlr:3") content = encodeMessageLevelResponse(document);
67
- else if (document.profileId === "urn:fdc:peppol.eu:poacc:bis:invoice_response:3") content = encodeInvoiceResponse(document);
68
- }
69
- return new XMLBuilder(builderOptions).build(content);
70
- }
71
- /**
72
- * @description Effect variant of {@link decodeDocumentSync}: parses and validates, capturing failures in the error channel.
73
- */
74
- function decodeDocumentEffect(xml) {
75
- return Effect.try(() => decodeDocumentSync(xml));
76
- }
77
- /**
78
- * @description Effect variant of {@link encodeDocumentSync}: serializes, capturing failures in the error channel.
79
- */
80
- function encodeDocumentEffect(document) {
81
- return Effect.try(() => encodeDocumentSync(document));
82
- }
83
- const decodeUnknownSync = decodeDocumentSync;
84
- const encodeSync = encodeDocumentSync;
85
- const decodeUnknownEffect = decodeDocumentEffect;
86
- const encodeEffect = encodeDocumentEffect;
87
- //#endregion
88
- export { PeppolDocumentSchema, decodeDocumentEffect, decodeDocumentSync, decodeUnknownEffect, decodeUnknownSync, encodeDocumentEffect, encodeDocumentSync, encodeEffect, encodeSync };
89
-
90
- //# sourceMappingURL=document-parser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"document-parser.js","names":[],"sources":["../../src/effect/document-parser.ts"],"sourcesContent":["import { Effect, Schema } from 'effect';\nimport XMLBuilder from 'fast-xml-builder';\nimport { XMLParser } from 'fast-xml-parser';\n\nimport type { XmlNode } from '#/helpers/get-prop';\nimport type { PeppolCreditNote as ZodPeppolCreditNote } from '#/schemas/credit-note';\nimport type { PeppolInvoice as ZodPeppolInvoice } from '#/schemas/invoice';\nimport type { PeppolInvoiceResponse as ZodPeppolInvoiceResponse } from '#/schemas/invoice-response-schema';\nimport type { PeppolMessageLevelResponse as ZodPeppolMessageLevelResponse } from '#/schemas/message-level-response-schema';\n\nimport { INVOICE_RESPONSE_PROFILE_ID } from '#/constants/invoice-response-profile-id';\nimport { MESSAGE_LEVEL_RESPONSE_PROFILE_ID } from '#/constants/message-level-response-profile-id';\nimport { decodeCreditNote } from '#/decoders/decode-credit-note';\nimport { decodeInvoice } from '#/decoders/decode-invoice';\nimport { decodeInvoiceResponse } from '#/decoders/decode-invoice-response';\nimport { decodeMessageLevelResponse } from '#/decoders/decode-message-level-response';\nimport { encodeCreditNote } from '#/decoders/encode-credit-note';\nimport { encodeInvoice } from '#/decoders/encode-invoice';\nimport { encodeInvoiceResponse } from '#/decoders/encode-invoice-response';\nimport { encodeMessageLevelResponse } from '#/decoders/encode-message-level-response';\nimport { strOrUnd } from '#/helpers/str-or-und';\nimport { builderOptions } from '#/xml/builder-options';\nimport { parserOptions } from '#/xml/parser-options';\n\nimport { creditNoteSchema } from './credit-note';\nimport { invoiceSchema } from './invoice';\nimport { invoiceResponseSchema } from './invoice-response-schema';\nimport { messageLevelResponse } from './message-level-response-schema';\n\n/**\n * @description Union of every supported PEPPOL business document (Effect port of the `z.xor` side of `documentParser`). Members discriminate cleanly: invoice vs\n * credit note via `invoiceLines`/`creditNoteLines`, message-level vs invoice response via the `profileId` literal.\n */\nexport const PeppolDocumentSchema = Schema.Union([invoiceSchema, creditNoteSchema, messageLevelResponse, invoiceResponseSchema]);\n\nexport type PeppolDocument = typeof PeppolDocumentSchema.Type;\n\n/**\n * @description Parse an XML string into raw decoded JSON, branching exactly like `documentParser.decode`. ISO dates stay plain strings (the shared `decode*`\n * helpers never build `Date` objects).\n *\n * @throws When the root element is not a supported document type.\n */\nfunction parseXmlToRawDocument(xml: string): unknown {\n const parser = new XMLParser({ ...parserOptions, removeNSPrefix: true });\n const parsed: XmlNode = parser.parse(xml);\n if (parsed.Invoice) {\n return decodeInvoice(parsed);\n } else if (parsed.CreditNote) {\n return decodeCreditNote(parsed);\n } else if (parsed.ApplicationResponse) {\n const profile = strOrUnd(parsed.ApplicationResponse, 'cbc:ProfileID');\n if (profile === MESSAGE_LEVEL_RESPONSE_PROFILE_ID) {\n return decodeMessageLevelResponse(parsed);\n } else if (profile === INVOICE_RESPONSE_PROFILE_ID) {\n return decodeInvoiceResponse(parsed);\n }\n }\n throw new Error(`Unsupported document type: ${Object.keys(parsed).join(',')}`);\n}\n\n/**\n * @description Decode a PEPPOL XML string into a validated `PeppolDocument`. Throws on error.\n */\nexport function decodeDocumentSync(xml: string): PeppolDocument {\n return Schema.decodeUnknownSync(PeppolDocumentSchema)(parseXmlToRawDocument(xml));\n}\n\n/**\n * @description Encode a `PeppolDocument` back into a PEPPOL XML string. Throws on error.\n */\nexport function encodeDocumentSync(document: PeppolDocument): string {\n let content: unknown;\n if ('invoiceLines' in document) {\n content = encodeInvoice(document as unknown as ZodPeppolInvoice);\n } else if ('creditNoteLines' in document) {\n content = encodeCreditNote(document as unknown as ZodPeppolCreditNote);\n } else if ('documentResponse' in document) {\n if (document.profileId === MESSAGE_LEVEL_RESPONSE_PROFILE_ID) {\n content = encodeMessageLevelResponse(document as unknown as ZodPeppolMessageLevelResponse);\n } else if (document.profileId === INVOICE_RESPONSE_PROFILE_ID) {\n content = encodeInvoiceResponse(document as unknown as ZodPeppolInvoiceResponse);\n }\n }\n\n const builder = new XMLBuilder(builderOptions);\n return builder.build(content);\n}\n\n/**\n * @description Effect variant of {@link decodeDocumentSync}: parses and validates, capturing failures in the error channel.\n */\nexport function decodeDocumentEffect(xml: string): Effect.Effect<PeppolDocument, unknown> {\n return Effect.try(() => decodeDocumentSync(xml));\n}\n\n/**\n * @description Effect variant of {@link encodeDocumentSync}: serializes, capturing failures in the error channel.\n */\nexport function encodeDocumentEffect(document: PeppolDocument): Effect.Effect<string, unknown> {\n return Effect.try(() => encodeDocumentSync(document));\n}\n\n// Aliases matching the `decodeUnknownSync`/`encodeSync` + `decodeUnknownEffect`/`encodeEffect` naming.\nexport const decodeUnknownSync = decodeDocumentSync;\nexport const encodeSync = encodeDocumentSync;\nexport const decodeUnknownEffect = decodeDocumentEffect;\nexport const encodeEffect = encodeDocumentEffect;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,MAAa,uBAAuB,OAAO,MAAM;CAAC;CAAe;CAAkB;CAAsB;AAAqB,CAAC;;;;;;;AAU/H,SAAS,sBAAsB,KAAsB;CAEnD,MAAM,SAAkB,IADL,UAAU;EAAE,GAAG;EAAe,gBAAgB;CAAK,CACzC,CAAC,CAAC,MAAM,GAAG;CACxC,IAAI,OAAO,SACT,OAAO,cAAc,MAAM;MACtB,IAAI,OAAO,YAChB,OAAO,iBAAiB,MAAM;MACzB,IAAI,OAAO,qBAAqB;EACrC,MAAM,UAAU,SAAS,OAAO,qBAAqB,eAAe;EACpE,IAAI,YAAA,qCACF,OAAO,2BAA2B,MAAM;OACnC,IAAI,YAAA,kDACT,OAAO,sBAAsB,MAAM;CAEvC;CACA,MAAM,IAAI,MAAM,8BAA8B,OAAO,KAAK,MAAM,CAAC,CAAC,KAAK,GAAG,GAAG;AAC/E;;;;AAKA,SAAgB,mBAAmB,KAA6B;CAC9D,OAAO,OAAO,kBAAkB,oBAAoB,CAAC,CAAC,sBAAsB,GAAG,CAAC;AAClF;;;;AAKA,SAAgB,mBAAmB,UAAkC;CACnE,IAAI;CACJ,IAAI,kBAAkB,UACpB,UAAU,cAAc,QAAuC;MAC1D,IAAI,qBAAqB,UAC9B,UAAU,iBAAiB,QAA0C;MAChE,IAAI,sBAAsB,UAAU;EACzC,IAAI,SAAS,cAAA,qCACX,UAAU,2BAA2B,QAAoD;OACpF,IAAI,SAAS,cAAA,kDAClB,UAAU,sBAAsB,QAA+C;CAEnF;CAGA,OAAO,IADa,WAAW,cAClB,CAAC,CAAC,MAAM,OAAO;AAC9B;;;;AAKA,SAAgB,qBAAqB,KAAqD;CACxF,OAAO,OAAO,UAAU,mBAAmB,GAAG,CAAC;AACjD;;;;AAKA,SAAgB,qBAAqB,UAA0D;CAC7F,OAAO,OAAO,UAAU,mBAAmB,QAAQ,CAAC;AACtD;AAGA,MAAa,oBAAoB;AACjC,MAAa,aAAa;AAC1B,MAAa,sBAAsB;AACnC,MAAa,eAAe"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"document-response-document-reference-schema.d.ts","names":[],"sources":["../../src/effect/document-response-document-reference-schema.ts"],"mappings":";;qBAIa,yCAAuC,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAiCxC,6DAA6D,wCAAwC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"document-response-document-reference-schema.js","names":[],"sources":["../../src/effect/document-response-document-reference-schema.ts"],"sourcesContent":["import { Schema } from 'effect';\n\nimport { documentTypeCodeSchema } from './values/document-type-codes';\n\nexport const documentResponseDocumentReferenceSchema = Schema.Struct({\n /**\n * @description Identifies the document on which the message level response is based.\n *\n * @example\n * `EnvelopeID-12345`;\n *\n * @summary Document identifier\n *\n * @name `cbc:ID`\n */\n id: Schema.String,\n /**\n * @description The type of the document being referred to, expressed as a code.\n *\n * @summary Document type code\n *\n * @name `cbc:DocumentTypeCode`\n */\n documentTypeCode: Schema.optional(documentTypeCodeSchema()),\n /**\n * @description The version of the document that has been identifier with the document identifier.\n *\n * @example\n * `2`;\n *\n * @summary Document version identifier\n *\n * @name `cbc:VersionID`\n */\n versionId: Schema.optional(Schema.String),\n});\n\nexport type PeppolMessageLevelDocumentResponseDocumentReference = typeof documentResponseDocumentReferenceSchema.Type;\n"],"mappings":";;;AAIA,MAAa,0CAA0C,OAAO,OAAO;;;;;;;;;;;CAWnE,IAAI,OAAO;;;;;;;;CAQX,kBAAkB,OAAO,SAAS,uBAAuB,CAAC;;;;;;;;;;;CAW1D,WAAW,OAAO,SAAS,OAAO,MAAM;AAC1C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"document-response-document-schema.d.ts","names":[],"sources":["../../src/effect/document-response-document-schema.ts"],"mappings":";;;;;;;;;;;qBAaa,gCAA8B,OAAA;;;;;;;;;;;;;;;;;;;;YAqB/B,4DAA4D,+BAA+B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"document-response-document-schema.js","names":[],"sources":["../../src/effect/document-response-document-schema.ts"],"sourcesContent":["import { Schema } from 'effect';\n\nimport { applicationResponseTypeCodeSchema } from './values/application-response-type-codes';\n\n/**\n * @summary Response information\n *\n * @name `cac:Response`\n *\n * @cardinality (1..1)\n *\n * @see {@link messageLevelResponseDocumentResponseSchema}\n */\nexport const documentResponseDocumentSchema = Schema.Struct({\n /**\n * @description An indicator stating whether the referenced message was cleared through validation and advanced to the next step in the process. A negative\n * response states that the document was not processed because of identified issues.\n *\n * @example\n * `RE`;\n *\n * @summary Message response code\n *\n * @name `cbc:ResponseCode`\n */\n responseCode: applicationResponseTypeCodeSchema(),\n /**\n * @description Used to meake any comments or instructions relevant to the response. The use of this element requires manual assessment by the receiver.\n *\n * @summary Response textual notes\n */\n description: Schema.optional(Schema.String),\n});\n\nexport type PeppolMessageLevelResponseDocumentResponseDocument = typeof documentResponseDocumentSchema.Type;\n"],"mappings":";;;;;;;;;;;;AAaA,MAAa,iCAAiC,OAAO,OAAO;;;;;;;;;;;;CAY1D,cAAc,kCAAkC;;;;;;CAMhD,aAAa,OAAO,SAAS,OAAO,MAAM;AAC5C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"document-response-line-response-content.d.ts","names":[],"sources":["../../src/effect/document-response-line-response-content.ts"],"mappings":";;qBAIa,qCAAmC,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAuCpC,6CAA6C,oCAAoC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"document-response-line-response-content.js","names":[],"sources":["../../src/effect/document-response-line-response-content.ts"],"sourcesContent":["import { Schema } from 'effect';\n\nimport { applicationResponseTypeCodeSchema } from './values/application-response-type-codes';\n\nexport const documentResponseLineResponseContent = Schema.Struct({\n /**\n * @description An indicator stating whether the referenced message was cleared through validation and advanced to the next step in the process. A negative\n * response states that the document was not processed because of identified issues.\n *\n * @example\n * `RE`;\n *\n * @summary Line response code\n *\n * @name `cbc:ResponseCode`\n */\n responseCode: applicationResponseTypeCodeSchema(),\n /**\n * @description The description of the issued identifier in the transaction document.\n *\n * @example\n * `Validation gives error [CL-T77-R0002]- Tax categories MUST be coded using UN/ECE 5305 code list`;\n *\n * @summary Issue description\n *\n * @name `cbc:Description`\n */\n description: Schema.String,\n /**\n * @name `cac:Status`\n */\n status: Schema.Struct({\n /**\n * @description A codified version of the issue description that describes the nature of the issue. e.g. Syntax violation, business rule violation, ...\n *\n * @summary Issue type coded\n *\n * @name `cbc:StatusReasonCode`\n */\n statusReasonCode: Schema.Literals(['BV', 'BW', 'SV']),\n }),\n});\n\nexport type DocumentResponseLineResponseContent = typeof documentResponseLineResponseContent.Type;\n"],"mappings":";;;AAIA,MAAa,sCAAsC,OAAO,OAAO;;;;;;;;;;;;CAY/D,cAAc,kCAAkC;;;;;;;;;;;CAWhD,aAAa,OAAO;;;;CAIpB,QAAQ,OAAO,OAAO;;;;;;;;AAQpB,kBAAkB,OAAO,SAAS;EAAC;EAAM;EAAM;CAAI,CAAC,EACtD,CAAC;AACH,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"document-response-line-response-schema.d.ts","names":[],"sources":["../../src/effect/document-response-line-response-schema.ts"],"mappings":";;qBAIa,oCAAkC,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA4BnC,wDAAwD,mCAAmC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"document-response-line-response-schema.js","names":[],"sources":["../../src/effect/document-response-line-response-schema.ts"],"sourcesContent":["import { Schema } from 'effect';\n\nimport { documentResponseLineResponseContent } from './document-response-line-response-content';\n\nexport const documentResponseLineResponseSchema = Schema.Struct({\n /**\n * @description Identifies the line in the business document to which the reported issue applies.\n *\n * @summary Line reference\n *\n * @name `cac:LineReference`\n */\n lineReference: Schema.Struct({\n /**\n * @description Identifies the section of the document to which the reported issue applied. The LineID element mustbe used to indicate where in the business\n * document the error occurred by using XPath to reference the element causing the error. To cater for scenarios where it is not possible to\n * provide XPath, a dummy value must be applied. The dummay value must consist of the characters NA. This is due to that the LineID element is\n * mendatory in the ApplicationResponse message in UBL 2.1 on which the MLR message is based.\n *\n * @example\n * `/Catalogue/cac:CatalogueLine[3]/cac:Item[1]/cac:ClassifiedTaxCategory[1]/cbc:ID[1]`;\n *\n * @summary Section identifier\n */\n lineId: Schema.String,\n }),\n /**\n * @summary Line response information\n */\n response: documentResponseLineResponseContent,\n});\n\nexport type PeppolMessageLevelDocumentResponseLineResponse = typeof documentResponseLineResponseSchema.Type;\n"],"mappings":";;;AAIA,MAAa,qCAAqC,OAAO,OAAO;;;;;;;;CAQ9D,eAAe,OAAO,OAAO;;;;;;;;;;;;AAY3B,QAAQ,OAAO,OACjB,CAAC;;;;CAID,UAAU;AACZ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"additional-document-reference-schema.d.ts","names":[],"sources":["../../../src/effect/fields/additional-document-reference-schema.ts"],"mappings":";;;;;;;;;;;qBAgBa,mCAAiC,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAkGlC,2CAA2C,kCAAkC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"additional-document-reference-schema.js","names":[],"sources":["../../../src/effect/fields/additional-document-reference-schema.ts"],"sourcesContent":["import { Schema } from 'effect';\n\nimport { additionalDocumentReferenceCodeSchema } from '#/effect/values/additional-document-reference-code';\n\nimport { binaryObjectSchema } from './binary-object-schema';\nimport { identifierSchema } from './identifier-schema';\n\n/**\n * @description A group of business terms providing information about additional supporting documents substantiating the claims made in the Invoice. The additional\n * supporting documents can be used for both referencing a document number which is expected to be known by the receiver, an external document\n * (referenced by a URL) or as an embedded document, Base64 encoded (such as a time report).\n *\n * @summary ADDITIONAL SUPPORTING DOCUMENTS\n *\n * @name `cac:AdditionalDocumentReference`\n */\nexport const additionalDocumentReferenceSchema = identifierSchema().pipe(\n Schema.fieldsAssign({\n /**\n * @description An identifier for an object on which the invoice is based (with DocumentTypeCode=130), given by the Seller, the identifier for the supporting\n * document or the project reference identifier (DocumentTypeCode=50).\n *\n * @summary Invoiced object identifier, Supporting document reference or project reference\n *\n * @name `cbc:ID`\n */\n id: Schema.Struct({\n /**\n * @description An identifier for an object on which the invoice is based (with DocumentTypeCode=130), given by the Seller, the identifier for the supporting\n * document or the project reference identifier (DocumentTypeCode=50).\n *\n * @summary Invoiced object identifier, Supporting document reference or project reference\n *\n * @name `#text`\n */\n id: Schema.String,\n /**\n * @description The identification scheme identifier of the Invoiced object identifier.\n *\n * @summary Scheme identifier\n *\n * @name `@schemeID`\n */\n schemeId: Schema.optional(additionalDocumentReferenceCodeSchema()),\n }),\n /**\n * @remarks\n * Code \"130\" MUST be used to indicate an invoice object reference and code \"50\" for project reference. Element is not used for other additional\n * documents.\n *\n * @default 130\n *\n * @summary Document type code\n *\n * @name `cbc:DocumentTypeCode`\n */\n documentTypeCode: Schema.optional(Schema.String),\n /**\n * @description A description of the supporting document, such as timesheet, usage report, etc.\n *\n * @example\n * Time list\n *\n * @summary Supporting document description\n *\n * @name `cbc:DocumentDescription`\n */\n documentDescription: Schema.optional(Schema.String),\n /**\n * @summary Attachment\n *\n * @name `cac:Attachment`\n */\n attachment: Schema.optional(\n Schema.Struct({\n /**\n * @description An attached document embedded as binary object (Base64) or sent together with the invoice.\n *\n * @example\n * ```base64\n * aHR0cHM6Ly90ZXN0LXZlZmEuZGlmaS5uby9wZXBwb2xiaXMvcG9hY2MvYmlsbGluZy8zLjAvYmlzLw==\n * ```;\n *\n * @summary Attached document\n *\n * @name `cbc:EmbeddedDocumentBinaryObject`\n */\n embeddedDocumentBinaryObject: Schema.optional(binaryObjectSchema),\n /**\n * @summary EXTERNAL REFERENCE\n *\n * @name `cac:ExternalReference`\n */\n externalReference: Schema.optional(\n Schema.Struct({\n /**\n * @description The URL (Uniform Resource Locator) that identifies where the external document is located. A means of locating the resource, including\n * its primary access mechanism, e.g. http:// or ftp://.\n *\n * @example\n * `http://www.example.com/index.html`;\n *\n * @summary External document location\n *\n * @name `cbc:URI`\n */\n uri: Schema.String,\n })\n ),\n })\n ),\n })\n);\n\nexport type PeppolAdditionalDocumentReference = typeof additionalDocumentReferenceSchema.Type;\n"],"mappings":";;;;;;;;;;;;;;AAgBA,MAAa,oCAAoC,iBAAiB,CAAC,CAAC,KAClE,OAAO,aAAa;;;;;;;;;CASlB,IAAI,OAAO,OAAO;;;;;;;;;EAShB,IAAI,OAAO;;;;;;;;EAQX,UAAU,OAAO,SAAS,sCAAsC,CAAC;CACnE,CAAC;;;;;;;;;;;;CAYD,kBAAkB,OAAO,SAAS,OAAO,MAAM;;;;;;;;;;;CAW/C,qBAAqB,OAAO,SAAS,OAAO,MAAM;;;;;;CAMlD,YAAY,OAAO,SACjB,OAAO,OAAO;;;;;;;;;;;;;EAaZ,8BAA8B,OAAO,SAAS,kBAAkB;;;;;;EAMhE,mBAAmB,OAAO,SACxB,OAAO,OAAO;;;;;;;;;;;;AAYZ,KAAK,OAAO,OACd,CAAC,CACH;CACF,CAAC,CACH;AACF,CAAC,CACH"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"address-schema.d.ts","names":[],"sources":["../../../src/effect/fields/address-schema.ts"],"mappings":";;;;;;;qBASa,eAAa,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA+Fd,uBAAuB,cAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"address-schema.js","names":[],"sources":["../../../src/effect/fields/address-schema.ts"],"sourcesContent":["import { Schema } from 'effect';\n\nimport { countryCodeSchema } from '#/effect/values/country-code';\n\n/**\n * @summary Postal address\n *\n * @name `cac:PostalAddress`\n */\nexport const addressSchema = Schema.Struct({\n /**\n * @description The main address line in an address.\n *\n * @example\n * Main Street 1\n *\n * @summary Address line 1\n *\n * @name `cbc:StreetName`\n */\n streetName: Schema.optional(Schema.String),\n /**\n * @description An additional address line in an address that can be used to give further details supplementing the main line.\n *\n * @example\n * Po Box 351\n *\n * @summary Address line 2\n *\n * @name `cbc:AdditionalStreetName`\n */\n additionalStreetName: Schema.optional(Schema.String),\n /**\n * @description The common name of the city, town or village, where the address is located.\n *\n * @example\n * London;\n *\n * @summary Seller city\n *\n * @name `cbc:CityName`\n */\n cityName: Schema.optional(Schema.String),\n /**\n * @description The identifier for an addressable group of properties according to the relevant postal service.\n *\n * @example\n * W1G 8LZ\n *\n * @summary post code\n *\n * @name `cbc:PostalZone`\n */\n postalZone: Schema.optional(Schema.String),\n /**\n * @description The subdivision of a country.\n *\n * @example\n * Region A\n *\n * @summary Seller country subdivision\n *\n * @name `cbc:CountrySubentity`\n */\n countrySubentity: Schema.optional(Schema.String),\n /**\n * @example\n * GB;\n *\n * @name `cac:Country`\n */\n countryCode: Schema.Struct({\n /**\n * @description A code that identifies the country.\n *\n * @example\n * GB;\n *\n * @summary Country code\n *\n * @name `cbc:IdentificationCode`\n */\n identificationCode: countryCodeSchema,\n }),\n /**\n * @example\n * Building 23\n *\n * @name `cac:AddressLine`\n */\n addressLine: Schema.optional(\n Schema.Struct({\n /**\n * @description An additional address line in an address that can be used to give further details supplementing the main line.\n *\n * @summary Address line 3\n *\n * @name `cbc:Line`\n */\n line: Schema.String,\n })\n ),\n});\n\nexport type PeppolAddress = typeof addressSchema.Type;\n"],"mappings":";;;;;;;;AASA,MAAa,gBAAgB,OAAO,OAAO;;;;;;;;;;;CAWzC,YAAY,OAAO,SAAS,OAAO,MAAM;;;;;;;;;;;CAWzC,sBAAsB,OAAO,SAAS,OAAO,MAAM;;;;;;;;;;;CAWnD,UAAU,OAAO,SAAS,OAAO,MAAM;;;;;;;;;;;CAWvC,YAAY,OAAO,SAAS,OAAO,MAAM;;;;;;;;;;;CAWzC,kBAAkB,OAAO,SAAS,OAAO,MAAM;;;;;;;CAO/C,aAAa,OAAO,OAAO;;;;;;;;;;;AAWzB,oBAAoB,kBACtB,CAAC;;;;;;;CAOD,aAAa,OAAO,SAClB,OAAO,OAAO;;;;;;;;AAQZ,MAAM,OAAO,OACf,CAAC,CACH;AACF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"allowance-charge-schema.d.ts","names":[],"sources":["../../../src/effect/fields/allowance-charge-schema.ts"],"mappings":";;;;;;;qBA2Da,uBAAqB,OAAA,gBAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAqCtB,+BAA+B,sBAAsB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"allowance-charge-schema.js","names":[],"sources":["../../../src/effect/fields/allowance-charge-schema.ts"],"sourcesContent":["import { Effect, Schema } from 'effect';\n\nimport { allowanceChargeReasonCodeSchema } from '#/effect/values/allowance-charge-reason-code';\nimport { chargeReasonCodeSchema } from '#/effect/values/charge-reason-code';\nimport { dutyTaxFeeCategorySchema } from '#/effect/values/duty-tax-fee-cateogries';\n\nimport { baseLineAllowanceChargeSchema } from './line-allowance-charge-schema';\nimport { taxCategorySchema } from './tax-category-schema';\n\nconst baseAllowanceChargeSchema = baseLineAllowanceChargeSchema.pipe(\n Schema.fieldsAssign({\n /**\n * @summary TAX CATEGORY\n *\n * @name cac:TaxCategory\n */\n taxCategory: Schema.optional(\n taxCategorySchema.pipe(\n Schema.fieldsAssign({\n /**\n * @description A coded identification of what VAT category applies to the document level allowance or charge.\n *\n * @summary Document level allowance or charge VAT category code\n *\n * @name `cbc:ID`\n */\n id: dutyTaxFeeCategorySchema(),\n /**\n * @description The VAT rate, represented as percentage that applies to the document level allowance or charge.\n *\n * @summary Document level allowance or charge VAT rate\n *\n * @name `cbc:Percent`\n */\n percent: Schema.optional(Schema.Number),\n /**\n * @default VAT\n *\n * @name `cac:TaxScheme`\n */\n taxSchemeId: Schema.Struct({\n /**\n * @description Mandatory element. Use \"VAT\"\n *\n * @name `cbc:ID`\n */\n id: Schema.String.pipe(Schema.withDecodingDefaultType(Effect.succeed('VAT'))),\n }),\n })\n )\n ),\n })\n);\n\n/**\n * @summary Allowance/Charge\n *\n * @name cac:AllowanceCharge\n */\nexport const allowanceChargeSchema = Schema.Union([\n baseAllowanceChargeSchema.pipe(\n Schema.fieldsAssign({\n /**\n * @name cbc:AllowanceChargeReasonCode\n */\n allowanceChargeReasonCode: Schema.optional(\n allowanceChargeReasonCodeSchema('PEPPOL-EN16931-CL002: Reason code MUST be according to subset of UNCL 5189 D.16B.')\n ),\n /**\n * @name cbc:ChargeIndicator\n *\n * @value false\n */\n chargeIndicator: Schema.Literal(false).annotate({\n message: \"PEPPOL-EN16931-R043: Allowance/charge ChargeIndicator value MUST equal 'true' or 'false'\",\n }),\n })\n ),\n baseAllowanceChargeSchema.pipe(\n Schema.fieldsAssign({\n /**\n * @name cbc:AllowanceChargeReasonCode\n */\n allowanceChargeReasonCode: Schema.optional(chargeReasonCodeSchema('PEPPOL-EN16931-CL003: Reason code MUST be according to UNCL 7161 D.16B.')),\n /**\n * @name cbc:ChargeIndicator\n *\n * @value false\n */\n chargeIndicator: Schema.Literal(true).annotate({\n message: \"PEPPOL-EN16931-R043: Allowance/charge ChargeIndicator value MUST equal 'true' or 'false'\",\n }),\n })\n ),\n]).annotate({ message: 'unable to decode allowance charge' });\n\nexport type PeppolAllowanceCharge = typeof allowanceChargeSchema.Type;\n"],"mappings":";;;;;;;AASA,MAAM,4BAA4B,8BAA8B,KAC9D,OAAO,aAAa;;;;;;AAMlB,aAAa,OAAO,SAClB,kBAAkB,KAChB,OAAO,aAAa;;;;;;;;CAQlB,IAAI,yBAAyB;;;;;;;;CAQ7B,SAAS,OAAO,SAAS,OAAO,MAAM;;;;;;CAMtC,aAAa,OAAO,OAAO;;;;;;AAMzB,IAAI,OAAO,OAAO,KAAK,OAAO,wBAAwB,OAAO,QAAQ,KAAK,CAAC,CAAC,EAC9E,CAAC;AACH,CAAC,CACH,CACF,EACF,CAAC,CACH;;;;;;AAOA,MAAa,wBAAwB,OAAO,MAAM,CAChD,0BAA0B,KACxB,OAAO,aAAa;;;;CAIlB,2BAA2B,OAAO,SAChC,gCAAgC,mFAAmF,CACrH;;;;;;CAMA,iBAAiB,OAAO,QAAQ,KAAK,CAAC,CAAC,SAAS,EAC9C,SAAS,2FACX,CAAC;AACH,CAAC,CACH,GACA,0BAA0B,KACxB,OAAO,aAAa;;;;CAIlB,2BAA2B,OAAO,SAAS,uBAAuB,yEAAyE,CAAC;;;;;;CAM5I,iBAAiB,OAAO,QAAQ,IAAI,CAAC,CAAC,SAAS,EAC7C,SAAS,2FACX,CAAC;AACH,CAAC,CACH,CACF,CAAC,CAAC,CAAC,SAAS,EAAE,SAAS,oCAAoC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"amount-schema.d.ts","names":[],"sources":["../../../src/effect/fields/amount-schema.ts"],"mappings":";;;;;;;qBASa,cAAY,OAAA;;;;;;;;;;YAWb,sBAAsB,aAAa"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"amount-schema.js","names":[],"sources":["../../../src/effect/fields/amount-schema.ts"],"sourcesContent":["import { Schema } from 'effect';\n\nimport { currencyCodeSchema } from '#/effect/values/currency-codes';\n\n/**\n * @summary Monetary amount with mandatory currency\n *\n * @name cbc:* (+ @currencyID)\n */\nexport const amountSchema = Schema.Struct({\n /**\n * @name \\@currencyID\n */\n currencyId: currencyCodeSchema(),\n /**\n * @name #text (value)\n */\n value: Schema.Number,\n});\n\nexport type PeppolAmount = typeof amountSchema.Type;\n"],"mappings":";;;;;;;;AASA,MAAa,eAAe,OAAO,OAAO;;;;CAIxC,YAAY,mBAAmB;;;;CAI/B,OAAO,OAAO;AAChB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-line-schema.d.ts","names":[],"sources":["../../../src/effect/fields/base-line-schema.ts"],"mappings":";;;;;qBAYa,gBAAc,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA6Hf,wBAAwB,eAAe"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-line-schema.js","names":[],"sources":["../../../src/effect/fields/base-line-schema.ts"],"sourcesContent":["import { Effect, Schema } from 'effect';\n\nimport { amountSchema } from './amount-schema';\nimport { identifierSchema } from './identifier-schema';\nimport { invoiceLinePeriodSchema } from './invoice-line-period-schema';\nimport { lineAllowanceChargeSchema } from './line-allowance-charge-schema';\nimport { lineItemSchema } from './line-item-schema';\nimport { linePriceSchema } from './price-schema';\n\n/**\n * @description Base of the invoice line and credit note line schemas.\n */\nexport const baseLineSchema = Schema.Struct({\n /**\n * @description A textual value that specifies where to book the relevant data into the Buyer's financial accounts.\n *\n * @example\n * `1287:65464`;\n *\n * @summary Invoice line Buyer accounting reference\n *\n * @name cbc:AccountingCost\n *\n * @cardinality 0..1\n */\n accountingCost: Schema.optional(Schema.String),\n /**\n * @description A group of business terms providing information about allowances or charges applicable to the individual Invoice line.\n *\n * @summary Invoice line allowances or charges\n *\n * @name cac:AllowanceCharge\n *\n * @cardinality 0..n\n */\n allowanceCharges: Schema.optional(Schema.Array(lineAllowanceChargeSchema)),\n /**\n * @summary Line object identifier\n *\n * @name cac:DocumentReference\n *\n * @cardinality 0..1\n */\n documentReference: Schema.optional(\n Schema.Array(\n identifierSchema().pipe(\n Schema.fieldsAssign({\n /**\n * @default 130\n *\n * @name cbc:DocumentTypeCode\n */\n documentTypeCode: Schema.String.pipe(Schema.withDecodingDefaultType(Effect.succeed('130'))),\n })\n )\n )\n ),\n /**\n * @description A unique identifier for the individual line within the Invoice.\n *\n * @example\n * 12;\n *\n * @summary Invoice line identifier\n *\n * @name cbc:ID\n *\n * @cardinality 1..1\n */\n id: Schema.String,\n /**\n * @description A group of business terms providing information about the period relevant for the Invoice line.\n *\n * @summary Invoice line period\n *\n * @name cac:InvoicePeriod\n *\n * @cardinality 0..1\n */\n invoicePeriod: Schema.optional(invoiceLinePeriodSchema),\n /**\n * @description A group of business terms providing information about the goods and services invoiced.\n *\n * @summary Item information\n *\n * @name cac:Item\n *\n * @cardinality 1..1\n */\n item: lineItemSchema,\n /**\n * @description The total amount of the Invoice line. The amount is “net” without VAT, i.e. inclusive of line level allowances and charges as well as other\n * relevant taxes. Must be rounded to maximum 2 decimals.\n *\n * @example\n * { value: 2145.0, currencyId: \"EUR\" }\n *\n * @summary Invoice line net amount\n *\n * @name cbc:LineExtensionAmount (+ @currencyID)\n *\n * @cardinality 1..1\n */\n lineExtensionAmount: amountSchema,\n /**\n * @description A textual note that gives unstructured information that is relevant to the Invoice line.\n *\n * @example\n * New article number 12345\n *\n * @summary Invoice line note\n *\n * @name cbc:Note\n *\n * @cardinality 0..1\n */\n note: Schema.optional(Schema.String),\n /**\n * @summary Order line reference\n *\n * @name cac:OrderLineReference\n *\n * @cardinality 0..1\n */\n orderLineReference: Schema.optional(Schema.Struct({ lineId: Schema.String })),\n /**\n * @description A group of business terms providing information about the price applied for the goods and services invoices on the Invoice line.\n *\n * @summary Price Details\n *\n * @name cac:Price\n *\n * @cardinality 1..1\n */\n price: linePriceSchema,\n});\n\nexport type PeppolBaseLine = typeof baseLineSchema.Type;\n"],"mappings":";;;;;;;;;;;AAYA,MAAa,iBAAiB,OAAO,OAAO;;;;;;;;;;;;;CAa1C,gBAAgB,OAAO,SAAS,OAAO,MAAM;;;;;;;;;;CAU7C,kBAAkB,OAAO,SAAS,OAAO,MAAM,yBAAyB,CAAC;;;;;;;;CAQzE,mBAAmB,OAAO,SACxB,OAAO,MACL,iBAAiB,CAAC,CAAC,KACjB,OAAO,aAAa;;;;;;AAMlB,kBAAkB,OAAO,OAAO,KAAK,OAAO,wBAAwB,OAAO,QAAQ,KAAK,CAAC,CAAC,EAC5F,CAAC,CACH,CACF,CACF;;;;;;;;;;;;;CAaA,IAAI,OAAO;;;;;;;;;;CAUX,eAAe,OAAO,SAAS,uBAAuB;;;;;;;;;;CAUtD,MAAM;;;;;;;;;;;;;;CAcN,qBAAqB;;;;;;;;;;;;;CAarB,MAAM,OAAO,SAAS,OAAO,MAAM;;;;;;;;CAQnC,oBAAoB,OAAO,SAAS,OAAO,OAAO,EAAE,QAAQ,OAAO,OAAO,CAAC,CAAC;;;;;;;;;;CAU5E,OAAO;AACT,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"billing-references-schema.d.ts","names":[],"sources":["../../../src/effect/fields/billing-references-schema.ts"],"mappings":";;;;;;;qBASa,wBAAsB,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAqCvB,gCAAgC,uBAAuB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"billing-references-schema.js","names":[],"sources":["../../../src/effect/fields/billing-references-schema.ts"],"sourcesContent":["import { Schema } from 'effect';\n\nimport { IsoDateString } from '#/effect/iso-date-string';\n\n/**\n * @summary PRECEDING INVOICE REFERENCE (0..n)\n *\n * @name cac:BillingReference\n */\nexport const billingReferenceSchema = Schema.Struct({\n /**\n * @example\n * inv123;\n *\n * @summary INVOICE DOCUMENT REFERENCE\n *\n * @name `cac:InvoiceDocumentReference`\n */\n invoiceDocumentReference: Schema.Struct({\n /**\n * @description The identification of an Invoice that was previously sent by the seller.\n *\n * @example\n * `inv123`;\n *\n * @summary Preceding invoice number\n *\n * @name `cbc:ID`\n */\n id: Schema.String,\n /**\n * @description The date when the preceding invoice was issued. Shall be provided in case the preceding invoice identifier is not unique.\n *\n * @example\n * `2017-09-15`;\n *\n * @summary Preceding invoice issue date\n *\n * @format `YYYY-MM-DD`\n *\n * @name `cbc:IssueDate`\n */\n issueDate: Schema.optional(IsoDateString),\n }),\n});\n\nexport type PeppolBillingReference = typeof billingReferenceSchema.Type;\n"],"mappings":";;;;;;;;AASA,MAAa,yBAAyB,OAAO,OAAO;;;;;;;;;AASlD,0BAA0B,OAAO,OAAO;;;;;;;;;;;CAWtC,IAAI,OAAO;;;;;;;;;;;;;CAaX,WAAW,OAAO,SAAS,aAAa;AAC1C,CAAC,EACH,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"binary-object-schema.d.ts","names":[],"sources":["../../../src/effect/fields/binary-object-schema.ts"],"mappings":";;;;;;;qBAca,oBAAkB,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAoCnB,4BAA4B,mBAAmB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"binary-object-schema.js","names":[],"sources":["../../../src/effect/fields/binary-object-schema.ts"],"sourcesContent":["import { Schema } from 'effect';\n\nimport { base64Schema } from '#/effect/utils/base-64';\nimport { mimeCodesSchema } from '#/effect/values/mime-code';\n\n// RFC 4648 §5 — Base64url Encoding: URL/file-safe alphabet (A-Z a-z 0-9 - _), optional `=` padding.\n// Effect port of `z.base64url()`: keeps the value as a plain string and only validates the shape.\nconst base64UrlSchema = Schema.String.check(Schema.isPattern(/^[A-Za-z0-9\\-_]+={0,2}$/)).annotate({ message: 'Invalid base64url' });\n\n/**\n * @summary Binary object for attachments\n *\n * @name cbc:EmbeddedDocumentBinaryObject (+ @mimeCode, @filename)\n */\nexport const binaryObjectSchema = Schema.Struct({\n /**\n * @description An attached document embedded as binary object (Base64) or sent together with the invoice.\n *\n * @example\n * aHR0cHM6Ly90ZXN0LXZlZmEuZGlmaS5uby9wZXBwb2xiaXMvcG9hY2MvYmlsbGluZy8zLjAvYmlzLw==\n *\n * @summary Attached document\n *\n * @name `#text` (Base64 content)\n */\n content: Schema.Union([base64Schema, base64UrlSchema]),\n /**\n * @description The mime code of the attached document.\n *\n * @example\n * text / csv;\n *\n * @summary Attached document Mime code\n *\n * @name `@mimeCode`\n */\n mimeCode: mimeCodesSchema('PEPPOL-EN16931-CL001: Mime code must be according to subset of IANA code list.'),\n /**\n * @description The file name of the attached document.\n *\n * @example\n * Hours - spent.csv;\n *\n * @summary Attached document Filename\n *\n * @name `@filename`\n */\n filename: Schema.String,\n});\n\nexport type PeppolBinaryObject = typeof binaryObjectSchema.Type;\n"],"mappings":";;;;AAOA,MAAM,kBAAkB,OAAO,OAAO,MAAM,OAAO,UAAU,yBAAyB,CAAC,CAAC,CAAC,SAAS,EAAE,SAAS,oBAAoB,CAAC;;;;;;AAOlI,MAAa,qBAAqB,OAAO,OAAO;;;;;;;;;;;CAW9C,SAAS,OAAO,MAAM,CAAC,cAAc,eAAe,CAAC;;;;;;;;;;;CAWrD,UAAU,gBAAgB,gFAAgF;;;;;;;;;;;CAW1G,UAAU,OAAO;AACnB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"contact-schema.d.ts","names":[],"sources":["../../../src/effect/fields/contact-schema.ts"],"mappings":";;qBAEa,eAAa,OAAA;;;;;;;;;;;;;;YAed,uBAAuB,cAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"contact-schema.js","names":[],"sources":["../../../src/effect/fields/contact-schema.ts"],"sourcesContent":["import { Schema } from 'effect';\n\nexport const contactSchema = Schema.Struct({\n /**\n * @name cbc:ElectronicMail\n */\n electronicMail: Schema.optional(Schema.String),\n /**\n * @name cbc:Name\n */\n name: Schema.optional(Schema.String),\n /**\n * @name cbc:Telephone\n */\n telephone: Schema.optional(Schema.String),\n});\n\nexport type PeppolContact = typeof contactSchema.Type;\n"],"mappings":";;AAEA,MAAa,gBAAgB,OAAO,OAAO;;;;CAIzC,gBAAgB,OAAO,SAAS,OAAO,MAAM;;;;CAI7C,MAAM,OAAO,SAAS,OAAO,MAAM;;;;CAInC,WAAW,OAAO,SAAS,OAAO,MAAM;AAC1C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"credit-note-line-schema.d.ts","names":[],"sources":["../../../src/effect/fields/credit-note-line-schema.ts"],"mappings":";;;;;qBAUa,sBAAoB,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA+BrB,8BAA8B,qBAAqB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"credit-note-line-schema.js","names":[],"sources":["../../../src/effect/fields/credit-note-line-schema.ts"],"sourcesContent":["import { Schema } from 'effect';\n\nimport { quantityUnitCodesSchema } from '#/effect/values/quantity-unit-codes-schema';\n\nimport { baseLineSchema } from './base-line-schema';\nimport { quantitySchema } from './quantity-schema';\n\n/**\n * @description Credit note line is identical to Invoice line except the quantity element name.\n */\nexport const creditNoteLineSchema = baseLineSchema.pipe(\n Schema.fieldsAssign({\n /**\n * @description Invoiced/Credited quantity.\n *\n * @example\n * { value: 40, unitCode: \"C62\" }\n *\n * @name cbc:CreditedQuantity (+ @unitCode)\n */\n creditedQuantity: quantitySchema.pipe(\n Schema.fieldsAssign({\n /**\n * @description The unit of measure that applies to the invoiced quantity. Codes for unit of packaging from UNECE Recommendation No. 21 can be used in\n * accordance with the descriptions in the \"Intro\" section of UN/ECE Recommendation 20, Revision 11 (2015): The 2 character alphanumeric code\n * values in UNECE Recommendation 21 shall be used. To avoid duplication with existing code values in UNECE Recommendation No. 20, each code\n * value from UNECE Recommendation 21 shall be prefixed with an “X”, resulting in a 3 alphanumeric code when used as a unit of measure.\n *\n * @example\n * `C62`;\n *\n * @summary Invoiced quantity unit of measure\n *\n * @see {@link quantityUnitCodes}\n */\n unitCode: quantityUnitCodesSchema(),\n })\n ),\n })\n);\n\nexport type PeppolCreditNoteLine = typeof creditNoteLineSchema.Type;\n"],"mappings":";;;;;;;;AAUA,MAAa,uBAAuB,eAAe,KACjD,OAAO,aAAa;;;;;;;;;AASlB,kBAAkB,eAAe,KAC/B,OAAO,aAAa;;;;;;;;;;;;;;AAclB,UAAU,wBAAwB,EACpC,CAAC,CACH,EACF,CAAC,CACH"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"delivery-schema.d.ts","names":[],"sources":["../../../src/effect/fields/delivery-schema.ts"],"mappings":";;qBAQa,gBAAc,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2Ff,wBAAwB,eAAe"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"delivery-schema.js","names":[],"sources":["../../../src/effect/fields/delivery-schema.ts"],"sourcesContent":["import { Schema } from 'effect';\n\nimport { IsoDateString } from '#/effect/iso-date-string';\nimport { icdCodesSchema } from '#/effect/values/icd-codes';\n\nimport { addressSchema } from './address-schema';\nimport { identifierSchema } from './identifier-schema';\n\nexport const deliverySchema = Schema.Struct({\n /**\n * @description Th edate on which the supply of goods or services was made or completed.\n *\n * @example\n * 2017 - 12 - 01;\n *\n * @summary Actual delivery date\n *\n * @format `YYYY-MM-DD`\n *\n * @name cbc:ActualDeliveryDate\n */\n actualDeliveryDate: Schema.optional(IsoDateString),\n /**\n * @name `cac:DeliveryLocation`\n */\n deliveryLocation: Schema.optional(\n Schema.Struct({\n /**\n * @description An identifier for the location at which the goods and services are delivered.\n *\n * @example\n * `83745498753497`;\n *\n * @summary Deliver to location identifier\n *\n * @name `cbc:ID`\n */\n id: Schema.optional(\n identifierSchema().pipe(\n Schema.fieldsAssign({\n /**\n * @description An identifier for the location at which the goods and services are delivered.\n *\n * @example\n * `83745498753497`;\n *\n * @summary Deliver to location identifier\n *\n * @name `#text`\n */\n id: Schema.String,\n /**\n * @description The identification scheme identifier of the Deliver to location identifier.\n *\n * @summary Deliver to location identifier identification scheme identifier\n *\n * @name `@schemeID`\n */\n schemeId: Schema.optional(icdCodesSchema()),\n })\n )\n ),\n /**\n * @description A groupd of business terms providing infomation about the address to which goods and services invoiced were or are delivered.\n *\n * @summary Deliver to address\n *\n * @name `cac:Address`\n */\n address: Schema.optional(addressSchema),\n })\n ),\n\n /**\n * @summary Delivery party\n *\n * @name `cac:DeliveryParty`\n */\n deliveryParty: Schema.optional(\n Schema.Struct({\n /**\n * @summary PARTY NAME\n *\n * @name `cac:PartyName`\n */\n partyName: Schema.Struct({\n /**\n * @description The name of the party to which the goods and services are delivered.\n *\n * @summary Deliver to party name\n *\n * @name `cbc:Name`\n */\n name: Schema.String,\n }),\n })\n ),\n});\n\nexport type PeppolDelivery = typeof deliverySchema.Type;\n"],"mappings":";;;;;;AAQA,MAAa,iBAAiB,OAAO,OAAO;;;;;;;;;;;;;CAa1C,oBAAoB,OAAO,SAAS,aAAa;;;;CAIjD,kBAAkB,OAAO,SACvB,OAAO,OAAO;;;;;;;;;;;EAWZ,IAAI,OAAO,SACT,iBAAiB,CAAC,CAAC,KACjB,OAAO,aAAa;;;;;;;;;;;GAWlB,IAAI,OAAO;;;;;;;;GAQX,UAAU,OAAO,SAAS,eAAe,CAAC;EAC5C,CAAC,CACH,CACF;;;;;;;;EAQA,SAAS,OAAO,SAAS,aAAa;CACxC,CAAC,CACH;;;;;;CAOA,eAAe,OAAO,SACpB,OAAO,OAAO;;;;;;AAMZ,WAAW,OAAO,OAAO;;;;;;;;AAQvB,MAAM,OAAO,OACf,CAAC,EACH,CAAC,CACH;AACF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"invoice-line-period-schema.d.ts","names":[],"sources":["../../../src/effect/fields/invoice-line-period-schema.ts"],"mappings":";;qBAIa,yBAAuB,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA6BxB,iCAAiC,wBAAwB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"invoice-line-period-schema.js","names":[],"sources":["../../../src/effect/fields/invoice-line-period-schema.ts"],"sourcesContent":["import { Schema } from 'effect';\n\nimport { IsoDateString } from '#/effect/iso-date-string';\n\nexport const invoiceLinePeriodSchema = Schema.Struct({\n /**\n * @description The date when the Invoice period for this Invoice line ends. Format =\"YYYY-MM-DD\"\n *\n * @example\n * `2017-10-31`;\n *\n * @summary Invoice line period end date\n *\n * @format \"YYYY-MM-DD\"\n *\n * @name `cbc:EndDate`\n */\n endDate: Schema.optional(IsoDateString),\n /**\n * @description The date when the Invoice period for this Invoice line starts.\n *\n * @example\n * `2017-10-01`;\n *\n * @summary Invoice line period start date\n *\n * @format \"YYYY-MM-DD\"\n *\n * @name `cbc:StartDate`\n */\n startDate: Schema.optional(IsoDateString),\n});\n\nexport type PeppolInvoiceLinePeriod = typeof invoiceLinePeriodSchema.Type;\n"],"mappings":";;;AAIA,MAAa,0BAA0B,OAAO,OAAO;;;;;;;;;;;;;CAanD,SAAS,OAAO,SAAS,aAAa;;;;;;;;;;;;;CAatC,WAAW,OAAO,SAAS,aAAa;AAC1C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"invoice-line-schema.d.ts","names":[],"sources":["../../../src/effect/fields/invoice-line-schema.ts"],"mappings":";;;;;;;qBAYa,mBAAiB,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAiClB,2BAA2B,kBAAkB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"invoice-line-schema.js","names":[],"sources":["../../../src/effect/fields/invoice-line-schema.ts"],"sourcesContent":["import { Schema } from 'effect';\n\nimport { quantityUnitCodesSchema } from '#/effect/values/quantity-unit-codes-schema';\n\nimport { baseLineSchema } from './base-line-schema';\nimport { quantitySchema } from './quantity-schema';\n\n/**\n * @summary Invoice line\n *\n * @name cac:InvoiceLine\n */\nexport const invoiceLineSchema = baseLineSchema.pipe(\n Schema.fieldsAssign({\n /**\n * @description The quantity of items (goods or services) that is charged in the Invoice line.\n *\n * @example\n * { value: 100, unitCode: \"C62\" }\n *\n * @summary Invoiced quantity\n *\n * @name cbc:InvoicedQuantity (+ @unitCode)\n */\n invoicedQuantity: quantitySchema.pipe(\n Schema.fieldsAssign({\n /**\n * @description The unit of measure that applies to the invoiced quantity. Codes for unit of packaging from UNECE Recommendation No. 21 can be used in\n * accordance with the descriptions in the \"Intro\" section of UN/ECE Recommendation 20, Revision 11 (2015): The 2 character alphanumeric code\n * values in UNECE Recommendation 21 shall be used. To avoid duplication with existing code values in UNECE Recommendation No. 20, each code\n * value from UNECE Recommendation 21 shall be prefixed with an “X”, resulting in a 3 alphanumeric code when used as a unit of measure.\n *\n * @example\n * `C62`;\n *\n * @summary Invoiced quantity unit of measure\n *\n * @see {@link quantityUnitCodes}\n */\n unitCode: quantityUnitCodesSchema(),\n })\n ),\n })\n);\n\nexport type PeppolInvoiceLine = typeof invoiceLineSchema.Type;\n"],"mappings":";;;;;;;;;;AAYA,MAAa,oBAAoB,eAAe,KAC9C,OAAO,aAAa;;;;;;;;;;;AAWlB,kBAAkB,eAAe,KAC/B,OAAO,aAAa;;;;;;;;;;;;;;AAclB,UAAU,wBAAwB,EACpC,CAAC,CACH,EACF,CAAC,CACH"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"invoice-period-schema.d.ts","names":[],"sources":["../../../src/effect/fields/invoice-period-schema.ts"],"mappings":";;;;;;;;;;qBAca,qBAAmB,OAAA;;;;;YAgBpB,6BAA6B,oBAAoB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"invoice-period-schema.js","names":[],"sources":["../../../src/effect/fields/invoice-period-schema.ts"],"sourcesContent":["import { Schema } from 'effect';\n\nimport { vatDateCodeSchema } from '#/effect/values/vat-date-code';\n\nimport { invoiceLinePeriodSchema } from './invoice-line-period-schema';\n\n/**\n * @description A group of business terms providing information on the invoice period. Also called delivery period. If the group is used, the invoiceing period\n * start date and/or end date must be used.\n *\n * @summary DELIVERY OR INVOICE PERIOD\n *\n * @name `cac:InvoicePeriod`\n */\nexport const invoicePeriodSchema = invoiceLinePeriodSchema.pipe(\n Schema.fieldsAssign({\n /**\n * @description The code of the date when the VAT becomes acccountable for the Seller and the Buyer.\n *\n * @example\n * `35`;\n *\n * @summary Value added tax point date code\n *\n * @name `cbc:DescriptionCode`\n */\n descriptionCode: Schema.optional(vatDateCodeSchema()),\n })\n);\n\nexport type PeppolInvoicePeriod = typeof invoicePeriodSchema.Type;\n"],"mappings":";;;;;;;;;;;;AAcA,MAAa,sBAAsB,wBAAwB,KACzD,OAAO,aAAa;;;;;;;;;;;AAWlB,iBAAiB,OAAO,SAAS,kBAAkB,CAAC,EACtD,CAAC,CACH"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"legal-monetary-total-schema.d.ts","names":[],"sources":["../../../src/effect/fields/legal-monetary-total-schema.ts"],"mappings":";;;;;;;;;qBAWa,0BAAwB,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAkHzB,kCAAkC,yBAAyB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"legal-monetary-total-schema.js","names":[],"sources":["../../../src/effect/fields/legal-monetary-total-schema.ts"],"sourcesContent":["import { Schema } from 'effect';\n\nimport { amountSchema } from './amount-schema';\n\n/**\n * @description A group of business terms providing the monetary totals for the Invoice.\n *\n * @summary Document totals\n *\n * @name cac:LegalMonetaryTotal\n */\nexport const legalMonetaryTotalSchema = Schema.Struct({\n /**\n * @description Sum of all allowances on document level in the Invoice.\n *\n * @remarks\n * Must be rounded to maxium 2 decimals.\n *\n * @example\n * 200.0;\n *\n * @summary Sum of allowances on document level\n *\n * @name `cbc:AllowanceTotalAmount (+ @currencyID)`\n */\n allowanceTotalAmount: Schema.optional(amountSchema),\n /**\n * @description Sum of all charges on document level in the Invoice.\n *\n * @remarks\n * Must be rounded to maximum 2 decimals.\n *\n * @example\n * 0.0;\n *\n * @summary Sum of charges on document level\n *\n * @name `cbc:ChargeTotalAmount (+ @currencyID)`\n */\n chargeTotalAmount: Schema.optional(amountSchema),\n /**\n * @description Sum of all Invoice line net amounts in the Invoice.\n *\n * @remarks\n * Must be rounded to maximum 2 decimals.\n *\n * @example\n * 3800.0;\n *\n * @summary Sum of Invoice line amount\n *\n * @name `cbc:LineExtensionAmount (+ @currencyID)`\n */\n lineExtensionAmount: amountSchema,\n /**\n * @description The amount due for payment on the Invoice, after accounting for all allowances, charges, prepayments, and rounding adjustments.\n *\n * @remarks\n * Must be rounded to maximum 2 decimals.\n *\n * @example\n * 4500.0;\n *\n * @summary Amount due for payment\n *\n * @name `cbc:PayableAmount (+ @currencyID)`\n */\n payableAmount: amountSchema,\n /**\n * @description The rounding amount applied to the Invoice total.\n *\n * @remarks\n * Must be rounded to maximum 2 decimals.\n *\n * @example\n * 0.0;\n *\n * @summary Rounding amount\n *\n * @name `cbc:PayableRoundingAmount (+ @currencyID)`\n */\n payableRoundingAmount: Schema.optional(amountSchema),\n /**\n * @description The sum of amounts which have been paid in advances.\n *\n * @remarks\n * Must be rounded to maximum 2 decimals.\n *\n * @example\n * 0.0;\n *\n * @summary Paid amount\n *\n * @name `cbc:PrepaidAmount (+ @currencyID)`\n */\n prepaidAmount: Schema.optional(amountSchema),\n /**\n * @description The total amount of the Invoice without VAT.\n *\n * @remarks\n * Must be rounded to maximum 2 decimals.\n *\n * @example\n * 3600.0;\n *\n * @summary Invoice total amount without VAT\n *\n * @name `cbc:TaxExclusiveAmount (+ @currencyID)`\n */\n taxExclusiveAmount: amountSchema,\n /**\n * @description The total amount of the Invoice with VAT.\n *\n * @example\n * 4500.0;\n *\n * @summary Invoice total amount with VAT\n *\n * @remark Must be rounded to maximum 2 decimals.\n *\n * @name `cbc:TaxInclusiveAmount (+ @currencyID)`\n */\n taxInclusiveAmount: amountSchema,\n});\n\nexport type PeppolLegalMonetaryTotal = typeof legalMonetaryTotalSchema.Type;\n"],"mappings":";;;;;;;;;;AAWA,MAAa,2BAA2B,OAAO,OAAO;;;;;;;;;;;;;;CAcpD,sBAAsB,OAAO,SAAS,YAAY;;;;;;;;;;;;;;CAclD,mBAAmB,OAAO,SAAS,YAAY;;;;;;;;;;;;;;CAc/C,qBAAqB;;;;;;;;;;;;;;CAcrB,eAAe;;;;;;;;;;;;;;CAcf,uBAAuB,OAAO,SAAS,YAAY;;;;;;;;;;;;;;CAcnD,eAAe,OAAO,SAAS,YAAY;;;;;;;;;;;;;;CAc3C,oBAAoB;;;;;;;;;;;;;CAapB,oBAAoB;AACtB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"line-allowance-charge-schema.d.ts","names":[],"sources":["../../../src/effect/fields/line-allowance-charge-schema.ts"],"mappings":";;cAOM,+BAA6B,OAAA;;;;;;;;;;;;;qBAmBtB,2BAAyB,OAAA,gBAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;YAqC1B,mCAAmC,0BAA0B"}