@endevops/peppol-schema 0.1.0-beta.2 → 0.1.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/NOTICE +17 -0
- package/README.md +7 -4
- package/dist/all-union-fields-CxoyKBpI.d.ts +445 -0
- package/dist/all-union-fields-CxoyKBpI.d.ts.map +1 -0
- package/dist/{document-parser.d.ts → document-DCcObB-a.d.ts} +443 -52
- package/dist/document-DCcObB-a.d.ts.map +1 -0
- package/dist/eas-codes.generated-D8jjHFij.js +2136 -0
- package/dist/eas-codes.generated-D8jjHFij.js.map +1 -0
- package/dist/effect.d.ts +6291 -93
- package/dist/effect.d.ts.map +1 -0
- package/dist/effect.js +3240 -93
- package/dist/effect.js.map +1 -0
- package/dist/index.d.ts +2613 -135
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3373 -134
- package/dist/index.js.map +1 -0
- package/dist/is-valid-abn-160i38PG.js +162 -0
- package/dist/is-valid-abn-160i38PG.js.map +1 -0
- package/dist/is-valid-mod97-0208-CzMOXMO-.js +27 -0
- package/dist/is-valid-mod97-0208-CzMOXMO-.js.map +1 -0
- package/dist/is-valid-process-CSWL-q9f.js +1590 -0
- package/dist/is-valid-process-CSWL-q9f.js.map +1 -0
- package/dist/parser-options-mbqEQPSY.js +27 -0
- package/dist/parser-options-mbqEQPSY.js.map +1 -0
- package/dist/quantity-unit-code-to-intl-unit-15EykjMe.d.ts +168 -0
- package/dist/quantity-unit-code-to-intl-unit-15EykjMe.d.ts.map +1 -0
- package/dist/schematron.d.ts +1113 -363
- package/dist/schematron.d.ts.map +1 -0
- package/dist/schematron.js +4882 -360
- package/dist/schematron.js.map +1 -0
- package/dist/validations.d.ts +91 -14
- package/dist/validations.d.ts.map +1 -0
- package/dist/validations.js +25 -13
- package/dist/validations.js.map +1 -0
- package/dist/values.d.ts +13567 -0
- package/dist/values.d.ts.map +1 -0
- package/dist/values.js +3 -0
- package/dist/{values/quantity-unit-codes.generated.d.ts → vat-dates.generated-DTVWQAdn.d.ts} +265 -4
- package/dist/vat-dates.generated-DTVWQAdn.d.ts.map +1 -0
- package/dist/vatex-codes.generated-BSgP3n5t.js +22762 -0
- package/dist/vatex-codes.generated-BSgP3n5t.js.map +1 -0
- package/dist/xml.d.ts +31 -3
- package/dist/xml.d.ts.map +1 -0
- package/dist/xml.js +1 -2
- package/package.json +17 -6
- package/src/decoders/decode-billing.ts +32 -30
- package/src/decoders/decode-credit-note.ts +9 -6
- package/src/decoders/decode-invoice-response.ts +83 -59
- package/src/decoders/decode-invoice.ts +11 -8
- package/src/decoders/decode-message-level-response.ts +64 -46
- package/src/decoders/encode-credit-note.ts +23 -21
- package/src/decoders/encode-invoice-response.ts +17 -15
- package/src/decoders/encode-invoice.ts +24 -22
- package/src/decoders/encode-message-level-response.ts +15 -7
- package/src/decoders/errors.ts +11 -0
- package/src/decoders/fields/decode-additional-document-references.ts +32 -25
- package/src/decoders/fields/decode-address.ts +32 -21
- package/src/decoders/fields/decode-allowance-charges.ts +16 -11
- package/src/decoders/fields/decode-amount.ts +12 -8
- package/src/decoders/fields/decode-base-allowance-charge.ts +10 -8
- package/src/decoders/fields/decode-billing-references.ts +20 -12
- package/src/decoders/fields/decode-contact.ts +12 -7
- package/src/decoders/fields/decode-credit-note-lines.ts +17 -8
- package/src/decoders/fields/decode-delivery.ts +29 -18
- package/src/decoders/fields/decode-electronic-address.ts +9 -4
- package/src/decoders/fields/decode-identifier.ts +11 -9
- package/src/decoders/fields/decode-invoice-line-period.ts +11 -6
- package/src/decoders/fields/decode-invoice-lines.ts +17 -8
- package/src/decoders/fields/decode-invoice-message-document-party.ts +10 -8
- package/src/decoders/fields/decode-invoice-message-party.ts +13 -8
- package/src/decoders/fields/decode-invoice-period.ts +12 -9
- package/src/decoders/fields/decode-legal-monetary-total.ts +17 -12
- package/src/decoders/fields/decode-line-allowance-charges.ts +14 -6
- package/src/decoders/fields/decode-line-price.ts +13 -7
- package/src/decoders/fields/decode-line-shared.ts +66 -45
- package/src/decoders/fields/decode-message-level-party.ts +10 -5
- package/src/decoders/fields/decode-order-reference.ts +10 -5
- package/src/decoders/fields/decode-parties-tax-scheme.ts +16 -11
- package/src/decoders/fields/decode-party-legal-entity.ts +12 -7
- package/src/decoders/fields/decode-party-tax-scheme.ts +10 -5
- package/src/decoders/fields/decode-party.ts +32 -23
- package/src/decoders/fields/decode-payee-party.ts +32 -24
- package/src/decoders/fields/decode-payment-means.ts +60 -44
- package/src/decoders/fields/decode-payment-terms.ts +11 -6
- package/src/decoders/fields/decode-price-allowance-charge.ts +11 -8
- package/src/decoders/fields/decode-quantity.ts +12 -9
- package/src/decoders/fields/decode-simple-identifier.ts +10 -5
- package/src/decoders/fields/decode-tax-category.ts +12 -7
- package/src/decoders/fields/decode-tax-representative-party.ts +12 -7
- package/src/decoders/fields/decode-tax-totals.ts +44 -23
- package/src/decoders/fields/encode-additional-document-references.ts +21 -13
- package/src/decoders/fields/encode-address.ts +5 -3
- package/src/decoders/fields/encode-allowance-charges.ts +19 -11
- package/src/decoders/fields/encode-amount.ts +5 -3
- package/src/decoders/fields/encode-billing-references.ts +4 -2
- package/src/decoders/fields/encode-contact.ts +5 -3
- package/src/decoders/fields/encode-credit-note-lines.ts +6 -4
- package/src/decoders/fields/encode-delivery.ts +11 -9
- package/src/decoders/fields/encode-identifier.ts +6 -4
- package/src/decoders/fields/encode-invoice-line-period.ts +5 -3
- package/src/decoders/fields/encode-invoice-lines.ts +6 -4
- package/src/decoders/fields/encode-invoice-period.ts +5 -3
- package/src/decoders/fields/encode-legal-monetary-total.ts +12 -10
- package/src/decoders/fields/encode-line-allowance-charges.ts +19 -10
- package/src/decoders/fields/encode-line-price.ts +8 -6
- package/src/decoders/fields/encode-line-shared.ts +22 -16
- package/src/decoders/fields/encode-message-party.ts +14 -8
- package/src/decoders/fields/encode-order-reference.ts +5 -3
- package/src/decoders/fields/encode-parties-tax-scheme.ts +11 -4
- package/src/decoders/fields/encode-party-legal-entity.ts +5 -3
- package/src/decoders/fields/encode-party-tax-scheme.ts +6 -4
- package/src/decoders/fields/encode-party.ts +19 -17
- package/src/decoders/fields/encode-payee-party.ts +18 -16
- package/src/decoders/fields/encode-payment-means.ts +36 -27
- package/src/decoders/fields/encode-payment-terms.ts +5 -3
- package/src/decoders/fields/encode-price-allowance-charges.ts +7 -5
- package/src/decoders/fields/encode-quantity.ts +5 -3
- package/src/decoders/fields/encode-simple-identifier.ts +7 -3
- package/src/decoders/fields/encode-tax-category.ts +6 -4
- package/src/decoders/fields/encode-tax-representative-party.ts +9 -5
- package/src/decoders/fields/encode-tax-totals.ts +32 -16
- package/src/document-parser.ts +15 -10
- package/src/effect/fields/peppol-additional-document-reference-schema.ts +5 -6
- package/src/effect/fields/peppol-allowance-charge-schema.ts +8 -10
- package/src/effect/fields/peppol-amount-schema.ts +4 -3
- package/src/effect/fields/peppol-base-line-schema.ts +7 -7
- package/src/effect/fields/peppol-binary-object-schema.ts +1 -1
- package/src/effect/fields/peppol-credit-note-line-schema.ts +5 -5
- package/src/effect/fields/peppol-delivery-schema.ts +3 -3
- package/src/effect/fields/{identifier-schema.ts → peppol-identifier-schema.ts} +7 -11
- package/src/effect/fields/peppol-invoice-line-schema.ts +5 -5
- package/src/effect/fields/peppol-invoice-period-schema.ts +2 -3
- package/src/effect/fields/peppol-item-classification-schema.ts +1 -1
- package/src/effect/fields/peppol-legal-monetary-total-schema.ts +1 -1
- package/src/effect/fields/peppol-line-allowance-charge-schema.ts +5 -7
- package/src/effect/fields/peppol-line-item-schema.ts +5 -6
- package/src/effect/fields/peppol-line-price-allowance-charge-schema.ts +1 -1
- package/src/effect/fields/peppol-line-price-schema.ts +3 -3
- package/src/effect/fields/peppol-party-base-schema.ts +31 -30
- package/src/effect/fields/peppol-party-legal-entity-schema.ts +2 -2
- package/src/effect/fields/peppol-payee-party-schema.ts +4 -5
- package/src/effect/fields/peppol-payment-means-schema.ts +1 -1
- package/src/effect/fields/peppol-quantity-schema.ts +2 -2
- package/src/effect/fields/peppol-tax-category-schema.ts +2 -2
- package/src/effect/fields/peppol-tax-representative-schema.ts +2 -2
- package/src/effect/fields/peppol-tax-subtotal-category-schema.ts +3 -2
- package/src/effect/fields/peppol-tax-subtotal-schema.ts +2 -2
- package/src/effect/fields/peppol-tax-totals-base-schema.ts +2 -2
- package/src/effect/index.ts +1 -1
- package/src/effect/peppol-billing-base-schema.ts +24 -26
- package/src/effect/peppol-credit-note-schema.ts +22 -23
- package/src/effect/peppol-document-response-document-reference-schema.ts +2 -2
- package/src/effect/peppol-document-response-document-schema.ts +2 -2
- package/src/effect/peppol-document-response-line-response-content-schema.ts +2 -2
- package/src/effect/peppol-document-response-line-response-schema.ts +1 -1
- package/src/effect/peppol-document-schema.ts +91 -56
- package/src/effect/peppol-invoice-response-document-actual-response-schema.ts +2 -3
- package/src/effect/peppol-invoice-response-document-actual-response-status-schema.ts +1 -1
- package/src/effect/peppol-invoice-response-schema.ts +11 -12
- package/src/effect/peppol-invoice-response-status-reason-code-schema.ts +4 -4
- package/src/effect/peppol-invoice-schema.ts +38 -44
- package/src/effect/peppol-iso-date-string-schema.ts +9 -3
- package/src/effect/peppol-message-level-response-document-response-schema.ts +3 -3
- package/src/effect/peppol-message-level-response-party-schema.ts +2 -2
- package/src/effect/peppol-message-level-response-schema.ts +4 -5
- package/src/effect/values/additional-document-reference-code-schema.ts +4 -7
- package/src/effect/values/allowance-charge-reason-code-schema.ts +4 -8
- package/src/effect/values/application-response-type-code-schema.ts +1 -4
- package/src/effect/values/charge-reason-code-schema.ts +4 -8
- package/src/effect/values/credit-note-type-code-schema.ts +1 -4
- package/src/effect/values/currency-code-schema.ts +8 -7
- package/src/effect/values/document-type-schemes-schema.ts +1 -3
- package/src/effect/values/document-type-values-schema.ts +4 -5
- package/src/effect/values/duty-tax-fee-category-schema.ts +3 -7
- package/src/effect/values/electronic-codes-schema.ts +2 -7
- package/src/effect/values/icd-codes-schema.ts +2 -6
- package/src/effect/values/index.ts +0 -1
- package/src/effect/values/invoice-status-code-schema.ts +2 -4
- package/src/effect/values/invoice-type-code-schema.ts +2 -7
- package/src/effect/values/item-classification-codes-schema.ts +2 -7
- package/src/effect/values/mime-codes-schema.ts +4 -7
- package/src/effect/values/op-status-action-schema.ts +2 -7
- package/src/effect/values/op-status-reason-schema.ts +2 -7
- package/src/effect/values/participant-identifier-code-schema.ts +4 -7
- package/src/effect/values/payment-means-code-schema.ts +2 -7
- package/src/effect/values/peppol-country-code-schema.ts +2 -4
- package/src/effect/values/peppol-document-type-code-schema.ts +2 -7
- package/src/effect/values/quantity-unit-codes-schema.ts +2 -7
- package/src/effect/values/vat-date-code-schema.ts +1 -4
- package/src/effect/values/vatex-code-schema.ts +2 -7
- package/src/helpers/bool.ts +15 -7
- package/src/helpers/errors.ts +6 -0
- package/src/helpers/get-array.ts +15 -7
- package/src/helpers/get-prop.ts +7 -5
- package/src/helpers/num-or-und.ts +6 -6
- package/src/helpers/str-or-array.ts +12 -7
- package/src/helpers/str-or-und.ts +12 -8
- package/src/helpers/str.ts +8 -7
- package/src/schemas/values/document-type-schema.ts +2 -2
- package/src/schemas/values/document-type-values-schema.ts +2 -2
- package/src/schemas/values/process-schema.ts +2 -2
- package/src/schemas/values/process-xml-identifier-schema.ts +2 -2
- package/dist/constants/credit-note-doctype-id.d.ts +0 -4
- package/dist/constants/credit-note-doctype-id.d.ts.map +0 -1
- package/dist/constants/credit-note-doctype-id.js +0 -7
- package/dist/constants/credit-note-doctype-id.js.map +0 -1
- package/dist/constants/credit-note-process-id.d.ts +0 -4
- package/dist/constants/credit-note-process-id.d.ts.map +0 -1
- package/dist/constants/credit-note-process-id.js +0 -7
- package/dist/constants/credit-note-process-id.js.map +0 -1
- package/dist/constants/document-scheme.d.ts +0 -4
- package/dist/constants/document-scheme.d.ts.map +0 -1
- package/dist/constants/document-scheme.js +0 -6
- package/dist/constants/document-scheme.js.map +0 -1
- package/dist/constants/index.js +0 -15
- package/dist/constants/invoice-doctype-id.d.ts +0 -4
- package/dist/constants/invoice-doctype-id.d.ts.map +0 -1
- package/dist/constants/invoice-doctype-id.js +0 -7
- package/dist/constants/invoice-doctype-id.js.map +0 -1
- package/dist/constants/invoice-process-id.d.ts +0 -4
- package/dist/constants/invoice-process-id.d.ts.map +0 -1
- package/dist/constants/invoice-process-id.js +0 -7
- package/dist/constants/invoice-process-id.js.map +0 -1
- package/dist/constants/invoice-response-doctype-id.d.ts +0 -4
- package/dist/constants/invoice-response-doctype-id.d.ts.map +0 -1
- package/dist/constants/invoice-response-doctype-id.js +0 -7
- package/dist/constants/invoice-response-doctype-id.js.map +0 -1
- package/dist/constants/invoice-response-process-id.d.ts +0 -4
- package/dist/constants/invoice-response-process-id.d.ts.map +0 -1
- package/dist/constants/invoice-response-process-id.js +0 -8
- package/dist/constants/invoice-response-process-id.js.map +0 -1
- package/dist/constants/invoice-response-profile-id.d.ts +0 -4
- package/dist/constants/invoice-response-profile-id.d.ts.map +0 -1
- package/dist/constants/invoice-response-profile-id.js +0 -6
- package/dist/constants/invoice-response-profile-id.js.map +0 -1
- package/dist/constants/message-level-response-doctype-id.d.ts +0 -4
- package/dist/constants/message-level-response-doctype-id.d.ts.map +0 -1
- package/dist/constants/message-level-response-doctype-id.js +0 -7
- package/dist/constants/message-level-response-doctype-id.js.map +0 -1
- package/dist/constants/message-level-response-process-id.d.ts +0 -4
- package/dist/constants/message-level-response-process-id.d.ts.map +0 -1
- package/dist/constants/message-level-response-process-id.js +0 -8
- package/dist/constants/message-level-response-process-id.js.map +0 -1
- package/dist/constants/message-level-response-profile-id.d.ts +0 -4
- package/dist/constants/message-level-response-profile-id.d.ts.map +0 -1
- package/dist/constants/message-level-response-profile-id.js +0 -6
- package/dist/constants/message-level-response-profile-id.js.map +0 -1
- package/dist/constants/participant-scheme.d.ts +0 -8
- package/dist/constants/participant-scheme.d.ts.map +0 -1
- package/dist/constants/participant-scheme.js +0 -10
- package/dist/constants/participant-scheme.js.map +0 -1
- package/dist/constants/process-scheme.d.ts +0 -4
- package/dist/constants/process-scheme.d.ts.map +0 -1
- package/dist/constants/process-scheme.js +0 -6
- package/dist/constants/process-scheme.js.map +0 -1
- package/dist/constants/transport-profile.d.ts +0 -4
- package/dist/constants/transport-profile.d.ts.map +0 -1
- package/dist/constants/transport-profile.js +0 -6
- package/dist/constants/transport-profile.js.map +0 -1
- package/dist/decoders/decode-billing.js +0 -52
- package/dist/decoders/decode-billing.js.map +0 -1
- package/dist/decoders/decode-credit-note.js +0 -18
- package/dist/decoders/decode-credit-note.js.map +0 -1
- package/dist/decoders/decode-invoice-response.js +0 -82
- package/dist/decoders/decode-invoice-response.js.map +0 -1
- package/dist/decoders/decode-invoice.js +0 -21
- package/dist/decoders/decode-invoice.js.map +0 -1
- package/dist/decoders/decode-message-level-response.js +0 -66
- package/dist/decoders/decode-message-level-response.js.map +0 -1
- package/dist/decoders/encode-credit-note.js +0 -65
- package/dist/decoders/encode-credit-note.js.map +0 -1
- package/dist/decoders/encode-invoice-response.js +0 -61
- package/dist/decoders/encode-invoice-response.js.map +0 -1
- package/dist/decoders/encode-invoice.js +0 -66
- package/dist/decoders/encode-invoice.js.map +0 -1
- package/dist/decoders/encode-message-level-response.js +0 -50
- package/dist/decoders/encode-message-level-response.js.map +0 -1
- package/dist/decoders/fields/decode-additional-document-references.js +0 -31
- package/dist/decoders/fields/decode-additional-document-references.js.map +0 -1
- package/dist/decoders/fields/decode-address.js +0 -30
- package/dist/decoders/fields/decode-address.js.map +0 -1
- package/dist/decoders/fields/decode-allowance-charges.js +0 -16
- package/dist/decoders/fields/decode-allowance-charges.js.map +0 -1
- package/dist/decoders/fields/decode-amount.js +0 -18
- package/dist/decoders/fields/decode-amount.js.map +0 -1
- package/dist/decoders/fields/decode-base-allowance-charge.js +0 -19
- package/dist/decoders/fields/decode-base-allowance-charge.js.map +0 -1
- package/dist/decoders/fields/decode-billing-references.js +0 -15
- package/dist/decoders/fields/decode-billing-references.js.map +0 -1
- package/dist/decoders/fields/decode-contact.js +0 -16
- package/dist/decoders/fields/decode-contact.js.map +0 -1
- package/dist/decoders/fields/decode-credit-note-lines.js +0 -18
- package/dist/decoders/fields/decode-credit-note-lines.js.map +0 -1
- package/dist/decoders/fields/decode-delivery.js +0 -33
- package/dist/decoders/fields/decode-delivery.js.map +0 -1
- package/dist/decoders/fields/decode-electronic-address.js +0 -11
- package/dist/decoders/fields/decode-electronic-address.js.map +0 -1
- package/dist/decoders/fields/decode-identifier.js +0 -18
- package/dist/decoders/fields/decode-identifier.js.map +0 -1
- package/dist/decoders/fields/decode-invoice-line-period.js +0 -14
- package/dist/decoders/fields/decode-invoice-line-period.js.map +0 -1
- package/dist/decoders/fields/decode-invoice-lines.js +0 -18
- package/dist/decoders/fields/decode-invoice-lines.js.map +0 -1
- package/dist/decoders/fields/decode-invoice-message-document-party.js +0 -17
- package/dist/decoders/fields/decode-invoice-message-document-party.js.map +0 -1
- package/dist/decoders/fields/decode-invoice-message-party.js +0 -20
- package/dist/decoders/fields/decode-invoice-message-party.js.map +0 -1
- package/dist/decoders/fields/decode-invoice-period.js +0 -15
- package/dist/decoders/fields/decode-invoice-period.js.map +0 -1
- package/dist/decoders/fields/decode-legal-monetary-total.js +0 -21
- package/dist/decoders/fields/decode-legal-monetary-total.js.map +0 -1
- package/dist/decoders/fields/decode-line-allowance-charges.js +0 -12
- package/dist/decoders/fields/decode-line-allowance-charges.js.map +0 -1
- package/dist/decoders/fields/decode-line-price.js +0 -18
- package/dist/decoders/fields/decode-line-price.js.map +0 -1
- package/dist/decoders/fields/decode-line-shared.js +0 -62
- package/dist/decoders/fields/decode-line-shared.js.map +0 -1
- package/dist/decoders/fields/decode-message-level-party.js +0 -12
- package/dist/decoders/fields/decode-message-level-party.js.map +0 -1
- package/dist/decoders/fields/decode-order-reference.js +0 -15
- package/dist/decoders/fields/decode-order-reference.js.map +0 -1
- package/dist/decoders/fields/decode-parties-tax-scheme.js +0 -16
- package/dist/decoders/fields/decode-parties-tax-scheme.js.map +0 -1
- package/dist/decoders/fields/decode-party-legal-entity.js +0 -17
- package/dist/decoders/fields/decode-party-legal-entity.js.map +0 -1
- package/dist/decoders/fields/decode-party-tax-scheme.js +0 -16
- package/dist/decoders/fields/decode-party-tax-scheme.js.map +0 -1
- package/dist/decoders/fields/decode-party.js +0 -36
- package/dist/decoders/fields/decode-party.js.map +0 -1
- package/dist/decoders/fields/decode-payee-party.js +0 -32
- package/dist/decoders/fields/decode-payee-party.js.map +0 -1
- package/dist/decoders/fields/decode-payment-means.js +0 -56
- package/dist/decoders/fields/decode-payment-means.js.map +0 -1
- package/dist/decoders/fields/decode-payment-terms.js +0 -13
- package/dist/decoders/fields/decode-payment-terms.js.map +0 -1
- package/dist/decoders/fields/decode-price-allowance-charge.js +0 -17
- package/dist/decoders/fields/decode-price-allowance-charge.js.map +0 -1
- package/dist/decoders/fields/decode-quantity.js +0 -16
- package/dist/decoders/fields/decode-quantity.js.map +0 -1
- package/dist/decoders/fields/decode-simple-identifier.js +0 -12
- package/dist/decoders/fields/decode-simple-identifier.js.map +0 -1
- package/dist/decoders/fields/decode-tax-category.js +0 -18
- package/dist/decoders/fields/decode-tax-category.js.map +0 -1
- package/dist/decoders/fields/decode-tax-representative-party.js +0 -18
- package/dist/decoders/fields/decode-tax-representative-party.js.map +0 -1
- package/dist/decoders/fields/decode-tax-totals.js +0 -39
- package/dist/decoders/fields/decode-tax-totals.js.map +0 -1
- package/dist/decoders/fields/encode-additional-document-references.js +0 -25
- package/dist/decoders/fields/encode-additional-document-references.js.map +0 -1
- package/dist/decoders/fields/encode-address.js +0 -17
- package/dist/decoders/fields/encode-address.js.map +0 -1
- package/dist/decoders/fields/encode-allowance-charges.js +0 -18
- package/dist/decoders/fields/encode-allowance-charges.js.map +0 -1
- package/dist/decoders/fields/encode-amount.js +0 -12
- package/dist/decoders/fields/encode-amount.js.map +0 -1
- package/dist/decoders/fields/encode-billing-references.js +0 -11
- package/dist/decoders/fields/encode-billing-references.js.map +0 -1
- package/dist/decoders/fields/encode-contact.js +0 -13
- package/dist/decoders/fields/encode-contact.js.map +0 -1
- package/dist/decoders/fields/encode-credit-note-lines.js +0 -10
- package/dist/decoders/fields/encode-credit-note-lines.js.map +0 -1
- package/dist/decoders/fields/encode-delivery.js +0 -22
- package/dist/decoders/fields/encode-delivery.js.map +0 -1
- package/dist/decoders/fields/encode-identifier.js +0 -13
- package/dist/decoders/fields/encode-identifier.js.map +0 -1
- package/dist/decoders/fields/encode-invoice-line-period.js +0 -11
- package/dist/decoders/fields/encode-invoice-line-period.js.map +0 -1
- package/dist/decoders/fields/encode-invoice-lines.js +0 -10
- package/dist/decoders/fields/encode-invoice-lines.js.map +0 -1
- package/dist/decoders/fields/encode-invoice-period.js +0 -12
- package/dist/decoders/fields/encode-invoice-period.js.map +0 -1
- package/dist/decoders/fields/encode-legal-monetary-total.js +0 -18
- package/dist/decoders/fields/encode-legal-monetary-total.js.map +0 -1
- package/dist/decoders/fields/encode-line-allowance-charges.js +0 -16
- package/dist/decoders/fields/encode-line-allowance-charges.js.map +0 -1
- package/dist/decoders/fields/encode-line-price.js +0 -16
- package/dist/decoders/fields/encode-line-price.js.map +0 -1
- package/dist/decoders/fields/encode-line-shared.js +0 -49
- package/dist/decoders/fields/encode-line-shared.js.map +0 -1
- package/dist/decoders/fields/encode-message-party.js +0 -18
- package/dist/decoders/fields/encode-message-party.js.map +0 -1
- package/dist/decoders/fields/encode-order-reference.js +0 -12
- package/dist/decoders/fields/encode-order-reference.js.map +0 -1
- package/dist/decoders/fields/encode-parties-tax-scheme.js +0 -10
- package/dist/decoders/fields/encode-parties-tax-scheme.js.map +0 -1
- package/dist/decoders/fields/encode-party-legal-entity.js +0 -13
- package/dist/decoders/fields/encode-party-legal-entity.js.map +0 -1
- package/dist/decoders/fields/encode-party-tax-scheme.js +0 -13
- package/dist/decoders/fields/encode-party-tax-scheme.js.map +0 -1
- package/dist/decoders/fields/encode-party.js +0 -30
- package/dist/decoders/fields/encode-party.js.map +0 -1
- package/dist/decoders/fields/encode-payee-party.js +0 -25
- package/dist/decoders/fields/encode-payee-party.js.map +0 -1
- package/dist/decoders/fields/encode-payment-means.js +0 -42
- package/dist/decoders/fields/encode-payment-means.js.map +0 -1
- package/dist/decoders/fields/encode-payment-terms.js +0 -9
- package/dist/decoders/fields/encode-payment-terms.js.map +0 -1
- package/dist/decoders/fields/encode-price-allowance-charges.js +0 -14
- package/dist/decoders/fields/encode-price-allowance-charges.js.map +0 -1
- package/dist/decoders/fields/encode-quantity.js +0 -12
- package/dist/decoders/fields/encode-quantity.js.map +0 -1
- package/dist/decoders/fields/encode-simple-identifier.js +0 -9
- package/dist/decoders/fields/encode-simple-identifier.js.map +0 -1
- package/dist/decoders/fields/encode-tax-category.js +0 -14
- package/dist/decoders/fields/encode-tax-category.js.map +0 -1
- package/dist/decoders/fields/encode-tax-representative-party.js +0 -15
- package/dist/decoders/fields/encode-tax-representative-party.js.map +0 -1
- package/dist/decoders/fields/encode-tax-totals.js +0 -23
- package/dist/decoders/fields/encode-tax-totals.js.map +0 -1
- package/dist/document-parser.d.ts.map +0 -1
- package/dist/document-parser.js +0 -56
- package/dist/document-parser.js.map +0 -1
- package/dist/document.d.ts +0 -20
- package/dist/document.d.ts.map +0 -1
- package/dist/effect/fields/default-customization-id.d.ts +0 -4
- package/dist/effect/fields/default-customization-id.d.ts.map +0 -1
- package/dist/effect/fields/default-customization-id.js +0 -6
- package/dist/effect/fields/default-customization-id.js.map +0 -1
- package/dist/effect/fields/default-profile-id.d.ts +0 -4
- package/dist/effect/fields/default-profile-id.d.ts.map +0 -1
- package/dist/effect/fields/default-profile-id.js +0 -6
- package/dist/effect/fields/default-profile-id.js.map +0 -1
- package/dist/effect/fields/identifier-schema.d.ts +0 -30
- package/dist/effect/fields/identifier-schema.d.ts.map +0 -1
- package/dist/effect/fields/identifier-schema.js +0 -24
- package/dist/effect/fields/identifier-schema.js.map +0 -1
- package/dist/effect/fields/peppol-additional-document-reference-schema.d.ts +0 -76
- package/dist/effect/fields/peppol-additional-document-reference-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-additional-document-reference-schema.js +0 -108
- package/dist/effect/fields/peppol-additional-document-reference-schema.js.map +0 -1
- package/dist/effect/fields/peppol-address-schema.d.ts +0 -102
- package/dist/effect/fields/peppol-address-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-address-schema.js +0 -102
- package/dist/effect/fields/peppol-address-schema.js.map +0 -1
- package/dist/effect/fields/peppol-allowance-charge-schema.d.ts +0 -61
- package/dist/effect/fields/peppol-allowance-charge-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-allowance-charge-schema.js +0 -75
- package/dist/effect/fields/peppol-allowance-charge-schema.js.map +0 -1
- package/dist/effect/fields/peppol-amount-schema.d.ts +0 -20
- package/dist/effect/fields/peppol-amount-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-amount-schema.js +0 -22
- package/dist/effect/fields/peppol-amount-schema.js.map +0 -1
- package/dist/effect/fields/peppol-base-line-schema.d.ts +0 -213
- package/dist/effect/fields/peppol-base-line-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-base-line-schema.js +0 -132
- package/dist/effect/fields/peppol-base-line-schema.js.map +0 -1
- package/dist/effect/fields/peppol-billing-reference-schema.d.ts +0 -46
- package/dist/effect/fields/peppol-billing-reference-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-billing-reference-schema.js +0 -47
- package/dist/effect/fields/peppol-billing-reference-schema.js.map +0 -1
- package/dist/effect/fields/peppol-binary-object-schema.d.ts +0 -45
- package/dist/effect/fields/peppol-binary-object-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-binary-object-schema.js +0 -49
- package/dist/effect/fields/peppol-binary-object-schema.js.map +0 -1
- package/dist/effect/fields/peppol-contact-schema.d.ts +0 -19
- package/dist/effect/fields/peppol-contact-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-contact-schema.js +0 -20
- package/dist/effect/fields/peppol-contact-schema.js.map +0 -1
- package/dist/effect/fields/peppol-credit-note-line-schema.d.ts +0 -118
- package/dist/effect/fields/peppol-credit-note-line-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-credit-note-line-schema.js +0 -36
- package/dist/effect/fields/peppol-credit-note-line-schema.js.map +0 -1
- package/dist/effect/fields/peppol-delivery-schema.d.ts +0 -81
- package/dist/effect/fields/peppol-delivery-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-delivery-schema.js +0 -89
- package/dist/effect/fields/peppol-delivery-schema.js.map +0 -1
- package/dist/effect/fields/peppol-invoice-line-period-schema.d.ts +0 -33
- package/dist/effect/fields/peppol-invoice-line-period-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-invoice-line-period-schema.js +0 -35
- package/dist/effect/fields/peppol-invoice-line-period-schema.js.map +0 -1
- package/dist/effect/fields/peppol-invoice-line-schema.d.ts +0 -120
- package/dist/effect/fields/peppol-invoice-line-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-invoice-line-schema.js +0 -40
- package/dist/effect/fields/peppol-invoice-line-schema.js.map +0 -1
- package/dist/effect/fields/peppol-invoice-period-schema.d.ts +0 -18
- package/dist/effect/fields/peppol-invoice-period-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-invoice-period-schema.js +0 -28
- package/dist/effect/fields/peppol-invoice-period-schema.js.map +0 -1
- package/dist/effect/fields/peppol-item-classification-schema.d.ts +0 -44
- package/dist/effect/fields/peppol-item-classification-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-item-classification-schema.js +0 -46
- package/dist/effect/fields/peppol-item-classification-schema.js.map +0 -1
- package/dist/effect/fields/peppol-legal-monetary-total-schema.d.ts +0 -149
- package/dist/effect/fields/peppol-legal-monetary-total-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-legal-monetary-total-schema.js +0 -127
- package/dist/effect/fields/peppol-legal-monetary-total-schema.js.map +0 -1
- package/dist/effect/fields/peppol-line-allowance-charge-schema.d.ts +0 -46
- package/dist/effect/fields/peppol-line-allowance-charge-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-line-allowance-charge-schema.js +0 -48
- package/dist/effect/fields/peppol-line-allowance-charge-schema.js.map +0 -1
- package/dist/effect/fields/peppol-line-item-schema.d.ts +0 -158
- package/dist/effect/fields/peppol-line-item-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-line-item-schema.js +0 -163
- package/dist/effect/fields/peppol-line-item-schema.js.map +0 -1
- package/dist/effect/fields/peppol-line-price-allowance-charge-schema.d.ts +0 -45
- package/dist/effect/fields/peppol-line-price-allowance-charge-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-line-price-allowance-charge-schema.js +0 -30
- package/dist/effect/fields/peppol-line-price-allowance-charge-schema.js.map +0 -1
- package/dist/effect/fields/peppol-line-price-schema.d.ts +0 -44
- package/dist/effect/fields/peppol-line-price-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-line-price-schema.js +0 -32
- package/dist/effect/fields/peppol-line-price-schema.js.map +0 -1
- package/dist/effect/fields/peppol-order-reference-schema.d.ts +0 -37
- package/dist/effect/fields/peppol-order-reference-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-order-reference-schema.js +0 -38
- package/dist/effect/fields/peppol-order-reference-schema.js.map +0 -1
- package/dist/effect/fields/peppol-party-base-schema.d.ts +0 -115
- package/dist/effect/fields/peppol-party-base-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-party-base-schema.js +0 -127
- package/dist/effect/fields/peppol-party-base-schema.js.map +0 -1
- package/dist/effect/fields/peppol-party-legal-entity-schema.d.ts +0 -31
- package/dist/effect/fields/peppol-party-legal-entity-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-party-legal-entity-schema.js +0 -30
- package/dist/effect/fields/peppol-party-legal-entity-schema.js.map +0 -1
- package/dist/effect/fields/peppol-party-tax-scheme-schema.d.ts +0 -34
- package/dist/effect/fields/peppol-party-tax-scheme-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-party-tax-scheme-schema.js +0 -34
- package/dist/effect/fields/peppol-party-tax-scheme-schema.js.map +0 -1
- package/dist/effect/fields/peppol-payee-party-schema.d.ts +0 -68
- package/dist/effect/fields/peppol-payee-party-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-payee-party-schema.js +0 -99
- package/dist/effect/fields/peppol-payee-party-schema.js.map +0 -1
- package/dist/effect/fields/peppol-payment-means-schema.d.ts +0 -198
- package/dist/effect/fields/peppol-payment-means-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-payment-means-schema.js +0 -199
- package/dist/effect/fields/peppol-payment-means-schema.js.map +0 -1
- package/dist/effect/fields/peppol-payment-terms-schema.d.ts +0 -24
- package/dist/effect/fields/peppol-payment-terms-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-payment-terms-schema.js +0 -24
- package/dist/effect/fields/peppol-payment-terms-schema.js.map +0 -1
- package/dist/effect/fields/peppol-quantity-schema.d.ts +0 -20
- package/dist/effect/fields/peppol-quantity-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-quantity-schema.js +0 -22
- package/dist/effect/fields/peppol-quantity-schema.js.map +0 -1
- package/dist/effect/fields/peppol-reference-schema.d.ts +0 -8
- package/dist/effect/fields/peppol-reference-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-reference-schema.js +0 -7
- package/dist/effect/fields/peppol-reference-schema.js.map +0 -1
- package/dist/effect/fields/peppol-tax-category-schema.d.ts +0 -41
- package/dist/effect/fields/peppol-tax-category-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-tax-category-schema.js +0 -42
- package/dist/effect/fields/peppol-tax-category-schema.js.map +0 -1
- package/dist/effect/fields/peppol-tax-representative-schema.d.ts +0 -38
- package/dist/effect/fields/peppol-tax-representative-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-tax-representative-schema.js +0 -24
- package/dist/effect/fields/peppol-tax-representative-schema.js.map +0 -1
- package/dist/effect/fields/peppol-tax-subtotal-category-schema.d.ts +0 -21
- package/dist/effect/fields/peppol-tax-subtotal-category-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-tax-subtotal-category-schema.js +0 -28
- package/dist/effect/fields/peppol-tax-subtotal-category-schema.js.map +0 -1
- package/dist/effect/fields/peppol-tax-subtotal-schema.d.ts +0 -44
- package/dist/effect/fields/peppol-tax-subtotal-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-tax-subtotal-schema.js +0 -33
- package/dist/effect/fields/peppol-tax-subtotal-schema.js.map +0 -1
- package/dist/effect/fields/peppol-tax-totals-base-schema.d.ts +0 -44
- package/dist/effect/fields/peppol-tax-totals-base-schema.d.ts.map +0 -1
- package/dist/effect/fields/peppol-tax-totals-base-schema.js +0 -26
- package/dist/effect/fields/peppol-tax-totals-base-schema.js.map +0 -1
- package/dist/effect/peppol-billing-base-schema.d.ts +0 -619
- package/dist/effect/peppol-billing-base-schema.d.ts.map +0 -1
- package/dist/effect/peppol-billing-base-schema.js +0 -324
- package/dist/effect/peppol-billing-base-schema.js.map +0 -1
- package/dist/effect/peppol-credit-note-schema.d.ts +0 -467
- package/dist/effect/peppol-credit-note-schema.d.ts.map +0 -1
- package/dist/effect/peppol-credit-note-schema.js +0 -30
- package/dist/effect/peppol-credit-note-schema.js.map +0 -1
- package/dist/effect/peppol-document-response-document-reference-schema.d.ts +0 -37
- package/dist/effect/peppol-document-response-document-reference-schema.d.ts.map +0 -1
- package/dist/effect/peppol-document-response-document-reference-schema.js +0 -39
- package/dist/effect/peppol-document-response-document-reference-schema.js.map +0 -1
- package/dist/effect/peppol-document-response-document-schema.d.ts +0 -34
- package/dist/effect/peppol-document-response-document-schema.d.ts.map +0 -1
- package/dist/effect/peppol-document-response-document-schema.js +0 -36
- package/dist/effect/peppol-document-response-document-schema.js.map +0 -1
- package/dist/effect/peppol-document-response-line-response-content-schema.d.ts +0 -43
- package/dist/effect/peppol-document-response-line-response-content-schema.d.ts.map +0 -1
- package/dist/effect/peppol-document-response-line-response-content-schema.js +0 -48
- package/dist/effect/peppol-document-response-line-response-content-schema.js.map +0 -1
- package/dist/effect/peppol-document-response-line-response-schema.d.ts +0 -38
- package/dist/effect/peppol-document-response-line-response-schema.d.ts.map +0 -1
- package/dist/effect/peppol-document-response-line-response-schema.js +0 -33
- package/dist/effect/peppol-document-response-line-response-schema.js.map +0 -1
- package/dist/effect/peppol-document-schema.d.ts +0 -1090
- package/dist/effect/peppol-document-schema.d.ts.map +0 -1
- package/dist/effect/peppol-document-schema.js +0 -64
- package/dist/effect/peppol-document-schema.js.map +0 -1
- package/dist/effect/peppol-invoice-response-document-actual-response-schema.d.ts +0 -89
- package/dist/effect/peppol-invoice-response-document-actual-response-schema.d.ts.map +0 -1
- package/dist/effect/peppol-invoice-response-document-actual-response-schema.js +0 -70
- package/dist/effect/peppol-invoice-response-document-actual-response-schema.js.map +0 -1
- package/dist/effect/peppol-invoice-response-document-actual-response-status-schema.d.ts +0 -86
- package/dist/effect/peppol-invoice-response-document-actual-response-status-schema.d.ts.map +0 -1
- package/dist/effect/peppol-invoice-response-document-actual-response-status-schema.js +0 -58
- package/dist/effect/peppol-invoice-response-document-actual-response-status-schema.js.map +0 -1
- package/dist/effect/peppol-invoice-response-schema.d.ts +0 -431
- package/dist/effect/peppol-invoice-response-schema.d.ts.map +0 -1
- package/dist/effect/peppol-invoice-response-schema.js +0 -148
- package/dist/effect/peppol-invoice-response-schema.js.map +0 -1
- package/dist/effect/peppol-invoice-response-status-reason-code-schema.d.ts +0 -26
- package/dist/effect/peppol-invoice-response-status-reason-code-schema.d.ts.map +0 -1
- package/dist/effect/peppol-invoice-response-status-reason-code-schema.js +0 -29
- package/dist/effect/peppol-invoice-response-status-reason-code-schema.js.map +0 -1
- package/dist/effect/peppol-invoice-schema.d.ts +0 -472
- package/dist/effect/peppol-invoice-schema.d.ts.map +0 -1
- package/dist/effect/peppol-invoice-schema.js +0 -47
- package/dist/effect/peppol-invoice-schema.js.map +0 -1
- package/dist/effect/peppol-iso-date-string-schema.d.ts +0 -14
- package/dist/effect/peppol-iso-date-string-schema.d.ts.map +0 -1
- package/dist/effect/peppol-iso-date-string-schema.js +0 -15
- package/dist/effect/peppol-iso-date-string-schema.js.map +0 -1
- package/dist/effect/peppol-message-level-response-document-response-schema.d.ts +0 -48
- package/dist/effect/peppol-message-level-response-document-response-schema.d.ts.map +0 -1
- package/dist/effect/peppol-message-level-response-document-response-schema.js +0 -34
- package/dist/effect/peppol-message-level-response-document-response-schema.js.map +0 -1
- package/dist/effect/peppol-message-level-response-party-schema.d.ts +0 -21
- package/dist/effect/peppol-message-level-response-party-schema.d.ts.map +0 -1
- package/dist/effect/peppol-message-level-response-party-schema.js +0 -19
- package/dist/effect/peppol-message-level-response-party-schema.js.map +0 -1
- package/dist/effect/peppol-message-level-response-schema.d.ts +0 -124
- package/dist/effect/peppol-message-level-response-schema.d.ts.map +0 -1
- package/dist/effect/peppol-message-level-response-schema.js +0 -98
- package/dist/effect/peppol-message-level-response-schema.js.map +0 -1
- package/dist/effect/utils/get-credit-note-type-code-description.d.ts +0 -2
- package/dist/effect/utils/get-invoice-type-code-description.d.ts +0 -2
- package/dist/effect/utils/index.d.ts +0 -17
- package/dist/effect/utils/index.js +0 -11
- package/dist/effect/utils/is-valid-credit-note-type-code.d.ts +0 -2
- package/dist/effect/utils/is-valid-invoice-type-code.d.ts +0 -2
- package/dist/effect/utils/is-valid-process.d.ts +0 -2
- package/dist/effect/utils/peppol-base-64-schema.d.ts +0 -10
- package/dist/effect/utils/peppol-base-64-schema.d.ts.map +0 -1
- package/dist/effect/utils/peppol-base-64-schema.js +0 -12
- package/dist/effect/utils/peppol-base-64-schema.js.map +0 -1
- package/dist/effect/utils/peppol-vat-regex-schema.d.ts +0 -10
- package/dist/effect/utils/peppol-vat-regex-schema.d.ts.map +0 -1
- package/dist/effect/utils/peppol-vat-regex-schema.js +0 -46
- package/dist/effect/utils/peppol-vat-regex-schema.js.map +0 -1
- package/dist/effect/utils/peppol-xsd-time-schema.d.ts +0 -10
- package/dist/effect/utils/peppol-xsd-time-schema.d.ts.map +0 -1
- package/dist/effect/utils/peppol-xsd-time-schema.js +0 -11
- package/dist/effect/utils/peppol-xsd-time-schema.js.map +0 -1
- package/dist/effect/utils/quantity-unit-code-to-intl-unit.d.ts +0 -2
- package/dist/effect/values/additional-document-reference-code-schema.d.ts +0 -23
- package/dist/effect/values/additional-document-reference-code-schema.d.ts.map +0 -1
- package/dist/effect/values/additional-document-reference-code-schema.js +0 -21
- package/dist/effect/values/additional-document-reference-code-schema.js.map +0 -1
- package/dist/effect/values/allowance-charge-reason-code-schema.d.ts +0 -24
- package/dist/effect/values/allowance-charge-reason-code-schema.d.ts.map +0 -1
- package/dist/effect/values/allowance-charge-reason-code-schema.js +0 -23
- package/dist/effect/values/allowance-charge-reason-code-schema.js.map +0 -1
- package/dist/effect/values/application-response-type-code-schema.d.ts +0 -21
- package/dist/effect/values/application-response-type-code-schema.d.ts.map +0 -1
- package/dist/effect/values/application-response-type-code-schema.js +0 -20
- package/dist/effect/values/application-response-type-code-schema.js.map +0 -1
- package/dist/effect/values/charge-reason-code-schema.d.ts +0 -24
- package/dist/effect/values/charge-reason-code-schema.d.ts.map +0 -1
- package/dist/effect/values/charge-reason-code-schema.js +0 -23
- package/dist/effect/values/charge-reason-code-schema.js.map +0 -1
- package/dist/effect/values/credit-note-type-code-schema.d.ts +0 -21
- package/dist/effect/values/credit-note-type-code-schema.d.ts.map +0 -1
- package/dist/effect/values/credit-note-type-code-schema.js +0 -20
- package/dist/effect/values/credit-note-type-code-schema.js.map +0 -1
- package/dist/effect/values/currency-code-schema.d.ts +0 -24
- package/dist/effect/values/currency-code-schema.d.ts.map +0 -1
- package/dist/effect/values/currency-code-schema.js +0 -29
- package/dist/effect/values/currency-code-schema.js.map +0 -1
- package/dist/effect/values/document-type-schemes-schema.d.ts +0 -14
- package/dist/effect/values/document-type-schemes-schema.d.ts.map +0 -1
- package/dist/effect/values/document-type-schemes-schema.js +0 -19
- package/dist/effect/values/document-type-schemes-schema.js.map +0 -1
- package/dist/effect/values/document-type-values-schema.d.ts +0 -14
- package/dist/effect/values/document-type-values-schema.d.ts.map +0 -1
- package/dist/effect/values/document-type-values-schema.js +0 -20
- package/dist/effect/values/document-type-values-schema.js.map +0 -1
- package/dist/effect/values/duty-tax-fee-category-schema.d.ts +0 -24
- package/dist/effect/values/duty-tax-fee-category-schema.d.ts.map +0 -1
- package/dist/effect/values/duty-tax-fee-category-schema.js +0 -23
- package/dist/effect/values/duty-tax-fee-category-schema.js.map +0 -1
- package/dist/effect/values/electronic-codes-schema.d.ts +0 -24
- package/dist/effect/values/electronic-codes-schema.d.ts.map +0 -1
- package/dist/effect/values/electronic-codes-schema.js +0 -30
- package/dist/effect/values/electronic-codes-schema.js.map +0 -1
- package/dist/effect/values/icd-codes-schema.d.ts +0 -24
- package/dist/effect/values/icd-codes-schema.d.ts.map +0 -1
- package/dist/effect/values/icd-codes-schema.js +0 -22
- package/dist/effect/values/icd-codes-schema.js.map +0 -1
- package/dist/effect/values/index.d.ts +0 -29
- package/dist/effect/values/index.js +0 -29
- package/dist/effect/values/invoice-status-code-schema.d.ts +0 -21
- package/dist/effect/values/invoice-status-code-schema.d.ts.map +0 -1
- package/dist/effect/values/invoice-status-code-schema.js +0 -17
- package/dist/effect/values/invoice-status-code-schema.js.map +0 -1
- package/dist/effect/values/invoice-type-code-schema.d.ts +0 -21
- package/dist/effect/values/invoice-type-code-schema.d.ts.map +0 -1
- package/dist/effect/values/invoice-type-code-schema.js +0 -20
- package/dist/effect/values/invoice-type-code-schema.js.map +0 -1
- package/dist/effect/values/item-classification-codes-schema.d.ts +0 -24
- package/dist/effect/values/item-classification-codes-schema.d.ts.map +0 -1
- package/dist/effect/values/item-classification-codes-schema.js +0 -23
- package/dist/effect/values/item-classification-codes-schema.js.map +0 -1
- package/dist/effect/values/mime-codes-schema.d.ts +0 -24
- package/dist/effect/values/mime-codes-schema.d.ts.map +0 -1
- package/dist/effect/values/mime-codes-schema.js +0 -23
- package/dist/effect/values/mime-codes-schema.js.map +0 -1
- package/dist/effect/values/op-status-action-schema.d.ts +0 -21
- package/dist/effect/values/op-status-action-schema.d.ts.map +0 -1
- package/dist/effect/values/op-status-action-schema.js +0 -20
- package/dist/effect/values/op-status-action-schema.js.map +0 -1
- package/dist/effect/values/op-status-reason-schema.d.ts +0 -21
- package/dist/effect/values/op-status-reason-schema.d.ts.map +0 -1
- package/dist/effect/values/op-status-reason-schema.js +0 -20
- package/dist/effect/values/op-status-reason-schema.js.map +0 -1
- package/dist/effect/values/participant-identifier-code-schema.d.ts +0 -19
- package/dist/effect/values/participant-identifier-code-schema.d.ts.map +0 -1
- package/dist/effect/values/participant-identifier-code-schema.js +0 -18
- package/dist/effect/values/participant-identifier-code-schema.js.map +0 -1
- package/dist/effect/values/payment-means-code-schema.d.ts +0 -24
- package/dist/effect/values/payment-means-code-schema.d.ts.map +0 -1
- package/dist/effect/values/payment-means-code-schema.js +0 -30
- package/dist/effect/values/payment-means-code-schema.js.map +0 -1
- package/dist/effect/values/peppol-country-code-schema.d.ts +0 -21
- package/dist/effect/values/peppol-country-code-schema.d.ts.map +0 -1
- package/dist/effect/values/peppol-country-code-schema.js +0 -25
- package/dist/effect/values/peppol-country-code-schema.js.map +0 -1
- package/dist/effect/values/peppol-document-type-code-schema.d.ts +0 -21
- package/dist/effect/values/peppol-document-type-code-schema.d.ts.map +0 -1
- package/dist/effect/values/peppol-document-type-code-schema.js +0 -20
- package/dist/effect/values/peppol-document-type-code-schema.js.map +0 -1
- package/dist/effect/values/peppol-document-type-schema.d.ts +0 -21
- package/dist/effect/values/peppol-document-type-schema.d.ts.map +0 -1
- package/dist/effect/values/peppol-document-type-schema.js +0 -27
- package/dist/effect/values/peppol-document-type-schema.js.map +0 -1
- package/dist/effect/values/peppol-process-schema.d.ts +0 -20
- package/dist/effect/values/peppol-process-schema.d.ts.map +0 -1
- package/dist/effect/values/peppol-process-schema.js +0 -26
- package/dist/effect/values/peppol-process-schema.js.map +0 -1
- package/dist/effect/values/process-from-document-type-schema.d.ts +0 -17
- package/dist/effect/values/process-from-document-type-schema.d.ts.map +0 -1
- package/dist/effect/values/process-from-document-type-schema.js +0 -25
- package/dist/effect/values/process-from-document-type-schema.js.map +0 -1
- package/dist/effect/values/process-xml-identifier-schema.d.ts +0 -20
- package/dist/effect/values/process-xml-identifier-schema.d.ts.map +0 -1
- package/dist/effect/values/process-xml-identifier-schema.js +0 -26
- package/dist/effect/values/process-xml-identifier-schema.js.map +0 -1
- package/dist/effect/values/quantity-unit-codes-schema.d.ts +0 -24
- package/dist/effect/values/quantity-unit-codes-schema.d.ts.map +0 -1
- package/dist/effect/values/quantity-unit-codes-schema.js +0 -23
- package/dist/effect/values/quantity-unit-codes-schema.js.map +0 -1
- package/dist/effect/values/vat-date-code-schema.d.ts +0 -11
- package/dist/effect/values/vat-date-code-schema.d.ts.map +0 -1
- package/dist/effect/values/vat-date-code-schema.js +0 -15
- package/dist/effect/values/vat-date-code-schema.js.map +0 -1
- package/dist/effect/values/vatex-code-schema.d.ts +0 -24
- package/dist/effect/values/vatex-code-schema.d.ts.map +0 -1
- package/dist/effect/values/vatex-code-schema.js +0 -23
- package/dist/effect/values/vatex-code-schema.js.map +0 -1
- package/dist/helpers/bool.js +0 -14
- package/dist/helpers/bool.js.map +0 -1
- package/dist/helpers/get-array.js +0 -17
- package/dist/helpers/get-array.js.map +0 -1
- package/dist/helpers/get-prop.js +0 -24
- package/dist/helpers/get-prop.js.map +0 -1
- package/dist/helpers/is-defined.js +0 -8
- package/dist/helpers/is-defined.js.map +0 -1
- package/dist/helpers/num-or-und.js +0 -10
- package/dist/helpers/num-or-und.js.map +0 -1
- package/dist/helpers/str-or-und.js +0 -14
- package/dist/helpers/str-or-und.js.map +0 -1
- package/dist/invoice-response-codes/invoice-response-code-needs-schema.d.ts +0 -4
- package/dist/invoice-response-codes/invoice-response-code-needs-schema.d.ts.map +0 -1
- package/dist/invoice-response-codes/invoice-response-code-needs-schema.js +0 -10
- package/dist/invoice-response-codes/invoice-response-code-needs-schema.js.map +0 -1
- package/dist/invoice-response-codes/invoice-response-code-not-needs-schema.d.ts +0 -4
- package/dist/invoice-response-codes/invoice-response-code-not-needs-schema.d.ts.map +0 -1
- package/dist/invoice-response-codes/invoice-response-code-not-needs-schema.js +0 -11
- package/dist/invoice-response-codes/invoice-response-code-not-needs-schema.js.map +0 -1
- package/dist/invoice-response-codes/invoice-response-codes-order.d.ts +0 -5
- package/dist/invoice-response-codes/invoice-response-codes-order.d.ts.map +0 -1
- package/dist/invoice-response-codes/invoice-response-codes-order.js +0 -31
- package/dist/invoice-response-codes/invoice-response-codes-order.js.map +0 -1
- package/dist/node_modules/.pnpm/ts-extras@1.3.0/node_modules/ts-extras/distribution/object-entries.js +0 -26
- package/dist/node_modules/.pnpm/ts-extras@1.3.0/node_modules/ts-extras/distribution/object-entries.js.map +0 -1
- package/dist/node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/all-union-fields.d.ts +0 -82
- package/dist/node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/all-union-fields.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/internal/object.d.ts +0 -36
- package/dist/node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/internal/object.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/internal/type.d.ts +0 -12
- package/dist/node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/internal/type.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/is-equal.d.ts +0 -32
- package/dist/node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/is-equal.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/is-never.d.ts +0 -57
- package/dist/node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/is-never.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/keys-of-union.d.ts +0 -44
- package/dist/node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/keys-of-union.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/primitive.d.ts +0 -9
- package/dist/node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/primitive.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/shared-union-fields.d.ts +0 -71
- package/dist/node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/shared-union-fields.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/simplify.d.ts +0 -62
- package/dist/node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/simplify.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/union-to-intersection.d.ts +0 -35
- package/dist/node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/union-to-intersection.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/unknown-array.d.ts +0 -28
- package/dist/node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/unknown-array.d.ts.map +0 -1
- package/dist/peppol-validations/add-piva.d.ts +0 -7
- package/dist/peppol-validations/add-piva.d.ts.map +0 -1
- package/dist/peppol-validations/add-piva.js +0 -15
- package/dist/peppol-validations/add-piva.js.map +0 -1
- package/dist/peppol-validations/check-cf.d.ts +0 -7
- package/dist/peppol-validations/check-cf.d.ts.map +0 -1
- package/dist/peppol-validations/check-cf.js +0 -16
- package/dist/peppol-validations/check-cf.js.map +0 -1
- package/dist/peppol-validations/check-cf16.d.ts +0 -7
- package/dist/peppol-validations/check-cf16.d.ts.map +0 -1
- package/dist/peppol-validations/check-cf16.js +0 -15
- package/dist/peppol-validations/check-cf16.js.map +0 -1
- package/dist/peppol-validations/check-piva-se-it.d.ts +0 -7
- package/dist/peppol-validations/check-piva-se-it.d.ts.map +0 -1
- package/dist/peppol-validations/check-piva-se-it.js +0 -15
- package/dist/peppol-validations/check-piva-se-it.js.map +0 -1
- package/dist/peppol-validations/check-piva.d.ts +0 -7
- package/dist/peppol-validations/check-piva.d.ts.map +0 -1
- package/dist/peppol-validations/check-piva.js +0 -13
- package/dist/peppol-validations/check-piva.js.map +0 -1
- package/dist/peppol-validations/check-se-orgnr.d.ts +0 -7
- package/dist/peppol-validations/check-se-orgnr.d.ts.map +0 -1
- package/dist/peppol-validations/check-se-orgnr.js +0 -24
- package/dist/peppol-validations/check-se-orgnr.js.map +0 -1
- package/dist/peppol-validations/greek-tin-verification.d.ts +0 -7
- package/dist/peppol-validations/greek-tin-verification.d.ts.map +0 -1
- package/dist/peppol-validations/greek-tin-verification.js +0 -13
- package/dist/peppol-validations/greek-tin-verification.js.map +0 -1
- package/dist/peppol-validations/is-valid-abn.d.ts +0 -7
- package/dist/peppol-validations/is-valid-abn.d.ts.map +0 -1
- package/dist/peppol-validations/is-valid-abn.js +0 -29
- package/dist/peppol-validations/is-valid-abn.js.map +0 -1
- package/dist/peppol-validations/is-valid-gln.d.ts +0 -13
- package/dist/peppol-validations/is-valid-gln.d.ts.map +0 -1
- package/dist/peppol-validations/is-valid-gln.js +0 -19
- package/dist/peppol-validations/is-valid-gln.js.map +0 -1
- package/dist/peppol-validations/is-valid-iban.d.ts +0 -7
- package/dist/peppol-validations/is-valid-iban.d.ts.map +0 -1
- package/dist/peppol-validations/is-valid-iban.js +0 -20
- package/dist/peppol-validations/is-valid-iban.js.map +0 -1
- package/dist/peppol-validations/is-valid-mod11.d.ts +0 -7
- package/dist/peppol-validations/is-valid-mod11.d.ts.map +0 -1
- package/dist/peppol-validations/is-valid-mod11.js +0 -21
- package/dist/peppol-validations/is-valid-mod11.js.map +0 -1
- package/dist/peppol-validations/is-valid-mod97-0208.d.ts +0 -13
- package/dist/peppol-validations/is-valid-mod97-0208.d.ts.map +0 -1
- package/dist/peppol-validations/is-valid-mod97-0208.js +0 -20
- package/dist/peppol-validations/is-valid-mod97-0208.js.map +0 -1
- package/dist/peppol-validations/luhn-check.d.ts +0 -7
- package/dist/peppol-validations/luhn-check.d.ts.map +0 -1
- package/dist/peppol-validations/luhn-check.js +0 -25
- package/dist/peppol-validations/luhn-check.js.map +0 -1
- package/dist/peppol-validations/normalize-space.js +0 -11
- package/dist/peppol-validations/normalize-space.js.map +0 -1
- package/dist/schemas/billing-base.js +0 -321
- package/dist/schemas/billing-base.js.map +0 -1
- package/dist/schemas/credit-note.d.ts +0 -466
- package/dist/schemas/credit-note.d.ts.map +0 -1
- package/dist/schemas/credit-note.js +0 -29
- package/dist/schemas/credit-note.js.map +0 -1
- package/dist/schemas/document-response-document-reference-schema.d.ts +0 -10
- package/dist/schemas/document-response-document-reference-schema.d.ts.map +0 -1
- package/dist/schemas/document-response-document-reference-schema.js +0 -39
- package/dist/schemas/document-response-document-reference-schema.js.map +0 -1
- package/dist/schemas/document-response-document-schema.d.ts +0 -18
- package/dist/schemas/document-response-document-schema.d.ts.map +0 -1
- package/dist/schemas/document-response-document-schema.js +0 -36
- package/dist/schemas/document-response-document-schema.js.map +0 -1
- package/dist/schemas/document-response-line-response-content.d.ts +0 -16
- package/dist/schemas/document-response-line-response-content.d.ts.map +0 -1
- package/dist/schemas/document-response-line-response-content.js +0 -48
- package/dist/schemas/document-response-line-response-content.js.map +0 -1
- package/dist/schemas/document-response-line-response-schema.d.ts +0 -21
- package/dist/schemas/document-response-line-response-schema.d.ts.map +0 -1
- package/dist/schemas/document-response-line-response-schema.js +0 -33
- package/dist/schemas/document-response-line-response-schema.js.map +0 -1
- package/dist/schemas/fields/additional-document-reference-schema.d.ts +0 -33
- package/dist/schemas/fields/additional-document-reference-schema.d.ts.map +0 -1
- package/dist/schemas/fields/additional-document-reference-schema.js +0 -108
- package/dist/schemas/fields/additional-document-reference-schema.js.map +0 -1
- package/dist/schemas/fields/address-schema.d.ts +0 -23
- package/dist/schemas/fields/address-schema.d.ts.map +0 -1
- package/dist/schemas/fields/address-schema.js +0 -102
- package/dist/schemas/fields/address-schema.js.map +0 -1
- package/dist/schemas/fields/allowance-charge-schema.d.ts +0 -51
- package/dist/schemas/fields/allowance-charge-schema.d.ts.map +0 -1
- package/dist/schemas/fields/allowance-charge-schema.js +0 -75
- package/dist/schemas/fields/allowance-charge-schema.js.map +0 -1
- package/dist/schemas/fields/amount-schema.d.ts +0 -14
- package/dist/schemas/fields/amount-schema.d.ts.map +0 -1
- package/dist/schemas/fields/amount-schema.js +0 -22
- package/dist/schemas/fields/amount-schema.js.map +0 -1
- package/dist/schemas/fields/base-line-schema.d.ts +0 -114
- package/dist/schemas/fields/base-line-schema.d.ts.map +0 -1
- package/dist/schemas/fields/base-line-schema.js +0 -132
- package/dist/schemas/fields/base-line-schema.js.map +0 -1
- package/dist/schemas/fields/billing-references-schema.d.ts +0 -16
- package/dist/schemas/fields/billing-references-schema.d.ts.map +0 -1
- package/dist/schemas/fields/billing-references-schema.js +0 -46
- package/dist/schemas/fields/billing-references-schema.js.map +0 -1
- package/dist/schemas/fields/binary-object-schema.d.ts +0 -14
- package/dist/schemas/fields/binary-object-schema.d.ts.map +0 -1
- package/dist/schemas/fields/binary-object-schema.js +0 -52
- package/dist/schemas/fields/binary-object-schema.js.map +0 -1
- package/dist/schemas/fields/contact-schema.d.ts +0 -10
- package/dist/schemas/fields/contact-schema.d.ts.map +0 -1
- package/dist/schemas/fields/contact-schema.js +0 -20
- package/dist/schemas/fields/contact-schema.js.map +0 -1
- package/dist/schemas/fields/credit-note-line-schema.d.ts +0 -118
- package/dist/schemas/fields/credit-note-line-schema.d.ts.map +0 -1
- package/dist/schemas/fields/credit-note-line-schema.js +0 -36
- package/dist/schemas/fields/credit-note-line-schema.js.map +0 -1
- package/dist/schemas/fields/date-only-fn.d.ts +0 -8
- package/dist/schemas/fields/date-only-fn.d.ts.map +0 -1
- package/dist/schemas/fields/date-only-fn.js +0 -10
- package/dist/schemas/fields/date-only-fn.js.map +0 -1
- package/dist/schemas/fields/date-only-parser.d.ts +0 -5
- package/dist/schemas/fields/date-only-parser.d.ts.map +0 -1
- package/dist/schemas/fields/date-only-parser.js +0 -20
- package/dist/schemas/fields/date-only-parser.js.map +0 -1
- package/dist/schemas/fields/default-customization-id.d.ts +0 -4
- package/dist/schemas/fields/default-customization-id.d.ts.map +0 -1
- package/dist/schemas/fields/default-customization-id.js +0 -6
- package/dist/schemas/fields/default-customization-id.js.map +0 -1
- package/dist/schemas/fields/default-profile-id.d.ts +0 -4
- package/dist/schemas/fields/default-profile-id.d.ts.map +0 -1
- package/dist/schemas/fields/default-profile-id.js +0 -6
- package/dist/schemas/fields/default-profile-id.js.map +0 -1
- package/dist/schemas/fields/delivery-schema.d.ts +0 -32
- package/dist/schemas/fields/delivery-schema.d.ts.map +0 -1
- package/dist/schemas/fields/delivery-schema.js +0 -88
- package/dist/schemas/fields/delivery-schema.js.map +0 -1
- package/dist/schemas/fields/identifier-schema.d.ts +0 -14
- package/dist/schemas/fields/identifier-schema.d.ts.map +0 -1
- package/dist/schemas/fields/identifier-schema.js +0 -23
- package/dist/schemas/fields/identifier-schema.js.map +0 -1
- package/dist/schemas/fields/invoice-line-period-schema.d.ts +0 -9
- package/dist/schemas/fields/invoice-line-period-schema.d.ts.map +0 -1
- package/dist/schemas/fields/invoice-line-period-schema.js +0 -34
- package/dist/schemas/fields/invoice-line-period-schema.js.map +0 -1
- package/dist/schemas/fields/invoice-line-schema.d.ts +0 -120
- package/dist/schemas/fields/invoice-line-schema.d.ts.map +0 -1
- package/dist/schemas/fields/invoice-line-schema.js +0 -40
- package/dist/schemas/fields/invoice-line-schema.js.map +0 -1
- package/dist/schemas/fields/invoice-period-schema.d.ts +0 -18
- package/dist/schemas/fields/invoice-period-schema.d.ts.map +0 -1
- package/dist/schemas/fields/invoice-period-schema.js +0 -28
- package/dist/schemas/fields/invoice-period-schema.js.map +0 -1
- package/dist/schemas/fields/legal-monetary-total-schema.d.ts +0 -46
- package/dist/schemas/fields/legal-monetary-total-schema.d.ts.map +0 -1
- package/dist/schemas/fields/legal-monetary-total-schema.js +0 -127
- package/dist/schemas/fields/legal-monetary-total-schema.js.map +0 -1
- package/dist/schemas/fields/line-allowance-charge-schema.d.ts +0 -46
- package/dist/schemas/fields/line-allowance-charge-schema.d.ts.map +0 -1
- package/dist/schemas/fields/line-allowance-charge-schema.js +0 -48
- package/dist/schemas/fields/line-allowance-charge-schema.js.map +0 -1
- package/dist/schemas/fields/line-item-schema.d.ts +0 -47
- package/dist/schemas/fields/line-item-schema.d.ts.map +0 -1
- package/dist/schemas/fields/line-item-schema.js +0 -163
- package/dist/schemas/fields/line-item-schema.js.map +0 -1
- package/dist/schemas/fields/line-price-allowance-charge-schema.d.ts +0 -28
- package/dist/schemas/fields/line-price-allowance-charge-schema.d.ts.map +0 -1
- package/dist/schemas/fields/line-price-allowance-charge-schema.js +0 -30
- package/dist/schemas/fields/line-price-allowance-charge-schema.js.map +0 -1
- package/dist/schemas/fields/list-identifier-schema.d.ts +0 -19
- package/dist/schemas/fields/list-identifier-schema.d.ts.map +0 -1
- package/dist/schemas/fields/list-identifier-schema.js +0 -46
- package/dist/schemas/fields/list-identifier-schema.js.map +0 -1
- package/dist/schemas/fields/order-reference-schema.d.ts +0 -14
- package/dist/schemas/fields/order-reference-schema.d.ts.map +0 -1
- package/dist/schemas/fields/order-reference-schema.js +0 -38
- package/dist/schemas/fields/order-reference-schema.js.map +0 -1
- package/dist/schemas/fields/party-base-schema.d.ts +0 -57
- package/dist/schemas/fields/party-base-schema.d.ts.map +0 -1
- package/dist/schemas/fields/party-base-schema.js +0 -127
- package/dist/schemas/fields/party-base-schema.js.map +0 -1
- package/dist/schemas/fields/party-legal-entity-schema.d.ts +0 -13
- package/dist/schemas/fields/party-legal-entity-schema.d.ts.map +0 -1
- package/dist/schemas/fields/party-legal-entity-schema.js +0 -30
- package/dist/schemas/fields/party-legal-entity-schema.js.map +0 -1
- package/dist/schemas/fields/party-tax-schema.d.ts +0 -14
- package/dist/schemas/fields/party-tax-schema.d.ts.map +0 -1
- package/dist/schemas/fields/party-tax-schema.js +0 -34
- package/dist/schemas/fields/party-tax-schema.js.map +0 -1
- package/dist/schemas/fields/payee-party.d.ts +0 -30
- package/dist/schemas/fields/payee-party.d.ts.map +0 -1
- package/dist/schemas/fields/payee-party.js +0 -99
- package/dist/schemas/fields/payee-party.js.map +0 -1
- package/dist/schemas/fields/payment-means-schema.d.ts +0 -38
- package/dist/schemas/fields/payment-means-schema.d.ts.map +0 -1
- package/dist/schemas/fields/payment-means-schema.js +0 -198
- package/dist/schemas/fields/payment-means-schema.js.map +0 -1
- package/dist/schemas/fields/payment-terms-schema.d.ts +0 -13
- package/dist/schemas/fields/payment-terms-schema.d.ts.map +0 -1
- package/dist/schemas/fields/payment-terms-schema.js +0 -24
- package/dist/schemas/fields/payment-terms-schema.js.map +0 -1
- package/dist/schemas/fields/price-schema.d.ts +0 -31
- package/dist/schemas/fields/price-schema.d.ts.map +0 -1
- package/dist/schemas/fields/price-schema.js +0 -32
- package/dist/schemas/fields/price-schema.js.map +0 -1
- package/dist/schemas/fields/quantity-schema.d.ts +0 -14
- package/dist/schemas/fields/quantity-schema.d.ts.map +0 -1
- package/dist/schemas/fields/quantity-schema.js +0 -22
- package/dist/schemas/fields/quantity-schema.js.map +0 -1
- package/dist/schemas/fields/reference-schema.d.ts +0 -8
- package/dist/schemas/fields/reference-schema.d.ts.map +0 -1
- package/dist/schemas/fields/reference-schema.js +0 -7
- package/dist/schemas/fields/reference-schema.js.map +0 -1
- package/dist/schemas/fields/tax-category-schema.d.ts +0 -19
- package/dist/schemas/fields/tax-category-schema.d.ts.map +0 -1
- package/dist/schemas/fields/tax-category-schema.js +0 -41
- package/dist/schemas/fields/tax-category-schema.js.map +0 -1
- package/dist/schemas/fields/tax-representative-party-schema.d.ts +0 -32
- package/dist/schemas/fields/tax-representative-party-schema.d.ts.map +0 -1
- package/dist/schemas/fields/tax-representative-party-schema.js +0 -24
- package/dist/schemas/fields/tax-representative-party-schema.js.map +0 -1
- package/dist/schemas/fields/tax-subtotal-category-schema.d.ts +0 -21
- package/dist/schemas/fields/tax-subtotal-category-schema.d.ts.map +0 -1
- package/dist/schemas/fields/tax-subtotal-category-schema.js +0 -28
- package/dist/schemas/fields/tax-subtotal-category-schema.js.map +0 -1
- package/dist/schemas/fields/tax-subtotal-schema.d.ts +0 -29
- package/dist/schemas/fields/tax-subtotal-schema.d.ts.map +0 -1
- package/dist/schemas/fields/tax-subtotal-schema.js +0 -33
- package/dist/schemas/fields/tax-subtotal-schema.js.map +0 -1
- package/dist/schemas/fields/tax-totals.d.ts +0 -35
- package/dist/schemas/fields/tax-totals.d.ts.map +0 -1
- package/dist/schemas/fields/tax-totals.js +0 -26
- package/dist/schemas/fields/tax-totals.js.map +0 -1
- package/dist/schemas/fields/time-only.d.ts +0 -8
- package/dist/schemas/fields/time-only.d.ts.map +0 -1
- package/dist/schemas/fields/time-only.js +0 -23
- package/dist/schemas/fields/time-only.js.map +0 -1
- package/dist/schemas/invoice-response-document-actual-response-status.d.ts +0 -24
- package/dist/schemas/invoice-response-document-actual-response-status.d.ts.map +0 -1
- package/dist/schemas/invoice-response-document-actual-response-status.js +0 -58
- package/dist/schemas/invoice-response-document-actual-response-status.js.map +0 -1
- package/dist/schemas/invoice-response-document-actual-response.d.ts +0 -49
- package/dist/schemas/invoice-response-document-actual-response.d.ts.map +0 -1
- package/dist/schemas/invoice-response-document-actual-response.js +0 -70
- package/dist/schemas/invoice-response-document-actual-response.js.map +0 -1
- package/dist/schemas/invoice-response-schema.d.ts +0 -237
- package/dist/schemas/invoice-response-schema.d.ts.map +0 -1
- package/dist/schemas/invoice-response-schema.js +0 -145
- package/dist/schemas/invoice-response-schema.js.map +0 -1
- package/dist/schemas/invoice-response-status-reason-code.d.ts +0 -12
- package/dist/schemas/invoice-response-status-reason-code.d.ts.map +0 -1
- package/dist/schemas/invoice-response-status-reason-code.js +0 -29
- package/dist/schemas/invoice-response-status-reason-code.js.map +0 -1
- package/dist/schemas/invoice.d.ts +0 -470
- package/dist/schemas/invoice.d.ts.map +0 -1
- package/dist/schemas/invoice.js +0 -44
- package/dist/schemas/invoice.js.map +0 -1
- package/dist/schemas/message-level-response-document-response-schema.d.ts +0 -32
- package/dist/schemas/message-level-response-document-response-schema.d.ts.map +0 -1
- package/dist/schemas/message-level-response-document-response-schema.js +0 -34
- package/dist/schemas/message-level-response-document-response-schema.js.map +0 -1
- package/dist/schemas/message-level-response-party-schema.d.ts +0 -11
- package/dist/schemas/message-level-response-party-schema.d.ts.map +0 -1
- package/dist/schemas/message-level-response-party-schema.js +0 -19
- package/dist/schemas/message-level-response-party-schema.js.map +0 -1
- package/dist/schemas/message-level-response-schema.d.ts +0 -51
- package/dist/schemas/message-level-response-schema.d.ts.map +0 -1
- package/dist/schemas/message-level-response-schema.js +0 -97
- package/dist/schemas/message-level-response-schema.js.map +0 -1
- package/dist/schemas/utils/base-64.d.ts +0 -5
- package/dist/schemas/utils/base-64.d.ts.map +0 -1
- package/dist/schemas/utils/base-64.js +0 -11
- package/dist/schemas/utils/base-64.js.map +0 -1
- package/dist/schemas/utils/format-quantity-with-unit.d.ts +0 -4
- package/dist/schemas/utils/format-quantity-with-unit.d.ts.map +0 -1
- package/dist/schemas/utils/format-quantity-with-unit.js +0 -18
- package/dist/schemas/utils/format-quantity-with-unit.js.map +0 -1
- package/dist/schemas/utils/get-credit-note-type-code-description.d.ts +0 -5
- package/dist/schemas/utils/get-credit-note-type-code-description.d.ts.map +0 -1
- package/dist/schemas/utils/get-credit-note-type-code-description.js +0 -9
- package/dist/schemas/utils/get-credit-note-type-code-description.js.map +0 -1
- package/dist/schemas/utils/get-invoice-type-code-description.d.ts +0 -5
- package/dist/schemas/utils/get-invoice-type-code-description.d.ts.map +0 -1
- package/dist/schemas/utils/get-invoice-type-code-description.js +0 -9
- package/dist/schemas/utils/get-invoice-type-code-description.js.map +0 -1
- package/dist/schemas/utils/is-valid-credit-note-type-code.d.ts +0 -5
- package/dist/schemas/utils/is-valid-credit-note-type-code.d.ts.map +0 -1
- package/dist/schemas/utils/is-valid-credit-note-type-code.js +0 -9
- package/dist/schemas/utils/is-valid-credit-note-type-code.js.map +0 -1
- package/dist/schemas/utils/is-valid-invoice-type-code.d.ts +0 -5
- package/dist/schemas/utils/is-valid-invoice-type-code.d.ts.map +0 -1
- package/dist/schemas/utils/is-valid-invoice-type-code.js +0 -9
- package/dist/schemas/utils/is-valid-invoice-type-code.js.map +0 -1
- package/dist/schemas/utils/is-valid-process.d.ts +0 -5
- package/dist/schemas/utils/is-valid-process.d.ts.map +0 -1
- package/dist/schemas/utils/is-valid-process.js +0 -9
- package/dist/schemas/utils/is-valid-process.js.map +0 -1
- package/dist/schemas/utils/quantity-unit-code-to-intl-unit.d.ts +0 -73
- package/dist/schemas/utils/quantity-unit-code-to-intl-unit.d.ts.map +0 -1
- package/dist/schemas/utils/quantity-unit-code-to-intl-unit.js +0 -73
- package/dist/schemas/utils/quantity-unit-code-to-intl-unit.js.map +0 -1
- package/dist/schemas/utils/vat-regex.d.ts +0 -5
- package/dist/schemas/utils/vat-regex.d.ts.map +0 -1
- package/dist/schemas/utils/vat-regex.js +0 -52
- package/dist/schemas/utils/vat-regex.js.map +0 -1
- package/dist/schemas/utils/xsd-time.d.ts +0 -5
- package/dist/schemas/utils/xsd-time.d.ts.map +0 -1
- package/dist/schemas/utils/xsd-time.js +0 -7
- package/dist/schemas/utils/xsd-time.js.map +0 -1
- package/dist/schemas/values/additional-document-reference-code.d.ts +0 -23
- package/dist/schemas/values/additional-document-reference-code.d.ts.map +0 -1
- package/dist/schemas/values/additional-document-reference-code.js +0 -20
- package/dist/schemas/values/additional-document-reference-code.js.map +0 -1
- package/dist/schemas/values/allowance-charge-reason-code.d.ts +0 -24
- package/dist/schemas/values/allowance-charge-reason-code.d.ts.map +0 -1
- package/dist/schemas/values/allowance-charge-reason-code.js +0 -22
- package/dist/schemas/values/allowance-charge-reason-code.js.map +0 -1
- package/dist/schemas/values/application-response-type-codes.d.ts +0 -21
- package/dist/schemas/values/application-response-type-codes.d.ts.map +0 -1
- package/dist/schemas/values/application-response-type-codes.js +0 -19
- package/dist/schemas/values/application-response-type-codes.js.map +0 -1
- package/dist/schemas/values/charge-reason-code.d.ts +0 -24
- package/dist/schemas/values/charge-reason-code.d.ts.map +0 -1
- package/dist/schemas/values/charge-reason-code.js +0 -22
- package/dist/schemas/values/charge-reason-code.js.map +0 -1
- package/dist/schemas/values/country-code.d.ts +0 -22
- package/dist/schemas/values/country-code.d.ts.map +0 -1
- package/dist/schemas/values/country-code.js +0 -26
- package/dist/schemas/values/country-code.js.map +0 -1
- package/dist/schemas/values/credit-note-type-code-schema.d.ts +0 -21
- package/dist/schemas/values/credit-note-type-code-schema.d.ts.map +0 -1
- package/dist/schemas/values/credit-note-type-code-schema.js +0 -19
- package/dist/schemas/values/credit-note-type-code-schema.js.map +0 -1
- package/dist/schemas/values/currency-codes.d.ts +0 -24
- package/dist/schemas/values/currency-codes.d.ts.map +0 -1
- package/dist/schemas/values/currency-codes.js +0 -28
- package/dist/schemas/values/currency-codes.js.map +0 -1
- package/dist/schemas/values/document-type-codes.d.ts +0 -21
- package/dist/schemas/values/document-type-codes.d.ts.map +0 -1
- package/dist/schemas/values/document-type-codes.js +0 -19
- package/dist/schemas/values/document-type-codes.js.map +0 -1
- package/dist/schemas/values/document-type-schema.d.ts +0 -21
- package/dist/schemas/values/document-type-schema.d.ts.map +0 -1
- package/dist/schemas/values/document-type-schema.js +0 -29
- package/dist/schemas/values/document-type-schema.js.map +0 -1
- package/dist/schemas/values/document-type-schemes-schema.d.ts +0 -14
- package/dist/schemas/values/document-type-schemes-schema.d.ts.map +0 -1
- package/dist/schemas/values/document-type-schemes-schema.js +0 -19
- package/dist/schemas/values/document-type-schemes-schema.js.map +0 -1
- package/dist/schemas/values/document-type-values-schema.d.ts +0 -14
- package/dist/schemas/values/document-type-values-schema.d.ts.map +0 -1
- package/dist/schemas/values/document-type-values-schema.js +0 -21
- package/dist/schemas/values/document-type-values-schema.js.map +0 -1
- package/dist/schemas/values/duty-tax-fee-cateogries.d.ts +0 -24
- package/dist/schemas/values/duty-tax-fee-cateogries.d.ts.map +0 -1
- package/dist/schemas/values/duty-tax-fee-cateogries.js +0 -22
- package/dist/schemas/values/duty-tax-fee-cateogries.js.map +0 -1
- package/dist/schemas/values/eas-codes.d.ts +0 -24
- package/dist/schemas/values/eas-codes.d.ts.map +0 -1
- package/dist/schemas/values/eas-codes.js +0 -29
- package/dist/schemas/values/eas-codes.js.map +0 -1
- package/dist/schemas/values/icd-codes.d.ts +0 -24
- package/dist/schemas/values/icd-codes.d.ts.map +0 -1
- package/dist/schemas/values/icd-codes.js +0 -22
- package/dist/schemas/values/icd-codes.js.map +0 -1
- package/dist/schemas/values/invoice-status-codes.d.ts +0 -21
- package/dist/schemas/values/invoice-status-codes.d.ts.map +0 -1
- package/dist/schemas/values/invoice-status-codes.js +0 -19
- package/dist/schemas/values/invoice-status-codes.js.map +0 -1
- package/dist/schemas/values/invoice-type-code-schema.d.ts +0 -21
- package/dist/schemas/values/invoice-type-code-schema.d.ts.map +0 -1
- package/dist/schemas/values/invoice-type-code-schema.js +0 -19
- package/dist/schemas/values/invoice-type-code-schema.js.map +0 -1
- package/dist/schemas/values/item-classification-code-schema.d.ts +0 -24
- package/dist/schemas/values/item-classification-code-schema.d.ts.map +0 -1
- package/dist/schemas/values/item-classification-code-schema.js +0 -22
- package/dist/schemas/values/item-classification-code-schema.js.map +0 -1
- package/dist/schemas/values/mime-code.d.ts +0 -24
- package/dist/schemas/values/mime-code.d.ts.map +0 -1
- package/dist/schemas/values/mime-code.js +0 -22
- package/dist/schemas/values/mime-code.js.map +0 -1
- package/dist/schemas/values/op-status-action.d.ts +0 -21
- package/dist/schemas/values/op-status-action.d.ts.map +0 -1
- package/dist/schemas/values/op-status-action.js +0 -19
- package/dist/schemas/values/op-status-action.js.map +0 -1
- package/dist/schemas/values/op-status-reason.d.ts +0 -21
- package/dist/schemas/values/op-status-reason.d.ts.map +0 -1
- package/dist/schemas/values/op-status-reason.js +0 -19
- package/dist/schemas/values/op-status-reason.js.map +0 -1
- package/dist/schemas/values/participant-identifier-code.d.ts +0 -19
- package/dist/schemas/values/participant-identifier-code.d.ts.map +0 -1
- package/dist/schemas/values/participant-identifier-code.js +0 -17
- package/dist/schemas/values/participant-identifier-code.js.map +0 -1
- package/dist/schemas/values/payment-means-codes-schema.d.ts +0 -24
- package/dist/schemas/values/payment-means-codes-schema.d.ts.map +0 -1
- package/dist/schemas/values/payment-means-codes-schema.js +0 -29
- package/dist/schemas/values/payment-means-codes-schema.js.map +0 -1
- package/dist/schemas/values/process-from-document-type-schema.d.ts +0 -17
- package/dist/schemas/values/process-from-document-type-schema.d.ts.map +0 -1
- package/dist/schemas/values/process-from-document-type-schema.js +0 -28
- package/dist/schemas/values/process-from-document-type-schema.js.map +0 -1
- package/dist/schemas/values/process-schema.d.ts +0 -21
- package/dist/schemas/values/process-schema.d.ts.map +0 -1
- package/dist/schemas/values/process-schema.js +0 -28
- package/dist/schemas/values/process-schema.js.map +0 -1
- package/dist/schemas/values/process-xml-identifier-schema.d.ts +0 -17
- package/dist/schemas/values/process-xml-identifier-schema.d.ts.map +0 -1
- package/dist/schemas/values/process-xml-identifier-schema.js +0 -24
- package/dist/schemas/values/process-xml-identifier-schema.js.map +0 -1
- package/dist/schemas/values/quantity-unit-codes-schema.d.ts +0 -24
- package/dist/schemas/values/quantity-unit-codes-schema.d.ts.map +0 -1
- package/dist/schemas/values/quantity-unit-codes-schema.js +0 -22
- package/dist/schemas/values/quantity-unit-codes-schema.js.map +0 -1
- package/dist/schemas/values/vat-date-code.d.ts +0 -11
- package/dist/schemas/values/vat-date-code.d.ts.map +0 -1
- package/dist/schemas/values/vat-date-code.js +0 -14
- package/dist/schemas/values/vat-date-code.js.map +0 -1
- package/dist/schemas/values/vatex-code.d.ts +0 -24
- package/dist/schemas/values/vatex-code.d.ts.map +0 -1
- package/dist/schemas/values/vatex-code.js +0 -22
- package/dist/schemas/values/vatex-code.js.map +0 -1
- package/dist/schemas.d.ts +0 -91
- package/dist/schemas.js +0 -91
- package/dist/schematron/cen/ae/cen-en16931-br-ae-01.d.ts +0 -6
- package/dist/schematron/cen/ae/cen-en16931-br-ae-01.d.ts.map +0 -1
- package/dist/schematron/cen/ae/cen-en16931-br-ae-01.js +0 -15
- package/dist/schematron/cen/ae/cen-en16931-br-ae-01.js.map +0 -1
- package/dist/schematron/cen/ae/cen-en16931-br-ae-02.d.ts +0 -6
- package/dist/schematron/cen/ae/cen-en16931-br-ae-02.d.ts.map +0 -1
- package/dist/schematron/cen/ae/cen-en16931-br-ae-02.js +0 -15
- package/dist/schematron/cen/ae/cen-en16931-br-ae-02.js.map +0 -1
- package/dist/schematron/cen/ae/cen-en16931-br-ae-03.d.ts +0 -6
- package/dist/schematron/cen/ae/cen-en16931-br-ae-03.d.ts.map +0 -1
- package/dist/schematron/cen/ae/cen-en16931-br-ae-03.js +0 -15
- package/dist/schematron/cen/ae/cen-en16931-br-ae-03.js.map +0 -1
- package/dist/schematron/cen/ae/cen-en16931-br-ae-04.d.ts +0 -6
- package/dist/schematron/cen/ae/cen-en16931-br-ae-04.d.ts.map +0 -1
- package/dist/schematron/cen/ae/cen-en16931-br-ae-04.js +0 -15
- package/dist/schematron/cen/ae/cen-en16931-br-ae-04.js.map +0 -1
- package/dist/schematron/cen/ae/cen-en16931-br-ae-05.d.ts +0 -6
- package/dist/schematron/cen/ae/cen-en16931-br-ae-05.d.ts.map +0 -1
- package/dist/schematron/cen/ae/cen-en16931-br-ae-05.js +0 -15
- package/dist/schematron/cen/ae/cen-en16931-br-ae-05.js.map +0 -1
- package/dist/schematron/cen/ae/cen-en16931-br-ae-06.d.ts +0 -6
- package/dist/schematron/cen/ae/cen-en16931-br-ae-06.d.ts.map +0 -1
- package/dist/schematron/cen/ae/cen-en16931-br-ae-06.js +0 -15
- package/dist/schematron/cen/ae/cen-en16931-br-ae-06.js.map +0 -1
- package/dist/schematron/cen/ae/cen-en16931-br-ae-07.d.ts +0 -6
- package/dist/schematron/cen/ae/cen-en16931-br-ae-07.d.ts.map +0 -1
- package/dist/schematron/cen/ae/cen-en16931-br-ae-07.js +0 -15
- package/dist/schematron/cen/ae/cen-en16931-br-ae-07.js.map +0 -1
- package/dist/schematron/cen/ae/cen-en16931-br-ae-08.d.ts +0 -6
- package/dist/schematron/cen/ae/cen-en16931-br-ae-08.d.ts.map +0 -1
- package/dist/schematron/cen/ae/cen-en16931-br-ae-08.js +0 -15
- package/dist/schematron/cen/ae/cen-en16931-br-ae-08.js.map +0 -1
- package/dist/schematron/cen/ae/cen-en16931-br-ae-09.d.ts +0 -6
- package/dist/schematron/cen/ae/cen-en16931-br-ae-09.d.ts.map +0 -1
- package/dist/schematron/cen/ae/cen-en16931-br-ae-09.js +0 -15
- package/dist/schematron/cen/ae/cen-en16931-br-ae-09.js.map +0 -1
- package/dist/schematron/cen/ae/cen-en16931-br-ae-10.d.ts +0 -6
- package/dist/schematron/cen/ae/cen-en16931-br-ae-10.d.ts.map +0 -1
- package/dist/schematron/cen/ae/cen-en16931-br-ae-10.js +0 -15
- package/dist/schematron/cen/ae/cen-en16931-br-ae-10.js.map +0 -1
- package/dist/schematron/cen/af/cen-en16931-br-af-01.d.ts +0 -6
- package/dist/schematron/cen/af/cen-en16931-br-af-01.d.ts.map +0 -1
- package/dist/schematron/cen/af/cen-en16931-br-af-01.js +0 -15
- package/dist/schematron/cen/af/cen-en16931-br-af-01.js.map +0 -1
- package/dist/schematron/cen/af/cen-en16931-br-af-02.d.ts +0 -6
- package/dist/schematron/cen/af/cen-en16931-br-af-02.d.ts.map +0 -1
- package/dist/schematron/cen/af/cen-en16931-br-af-02.js +0 -15
- package/dist/schematron/cen/af/cen-en16931-br-af-02.js.map +0 -1
- package/dist/schematron/cen/af/cen-en16931-br-af-03.d.ts +0 -6
- package/dist/schematron/cen/af/cen-en16931-br-af-03.d.ts.map +0 -1
- package/dist/schematron/cen/af/cen-en16931-br-af-03.js +0 -15
- package/dist/schematron/cen/af/cen-en16931-br-af-03.js.map +0 -1
- package/dist/schematron/cen/af/cen-en16931-br-af-04.d.ts +0 -6
- package/dist/schematron/cen/af/cen-en16931-br-af-04.d.ts.map +0 -1
- package/dist/schematron/cen/af/cen-en16931-br-af-04.js +0 -15
- package/dist/schematron/cen/af/cen-en16931-br-af-04.js.map +0 -1
- package/dist/schematron/cen/af/cen-en16931-br-af-05.d.ts +0 -6
- package/dist/schematron/cen/af/cen-en16931-br-af-05.d.ts.map +0 -1
- package/dist/schematron/cen/af/cen-en16931-br-af-05.js +0 -15
- package/dist/schematron/cen/af/cen-en16931-br-af-05.js.map +0 -1
- package/dist/schematron/cen/af/cen-en16931-br-af-06.d.ts +0 -6
- package/dist/schematron/cen/af/cen-en16931-br-af-06.d.ts.map +0 -1
- package/dist/schematron/cen/af/cen-en16931-br-af-06.js +0 -15
- package/dist/schematron/cen/af/cen-en16931-br-af-06.js.map +0 -1
- package/dist/schematron/cen/af/cen-en16931-br-af-07.d.ts +0 -6
- package/dist/schematron/cen/af/cen-en16931-br-af-07.d.ts.map +0 -1
- package/dist/schematron/cen/af/cen-en16931-br-af-07.js +0 -15
- package/dist/schematron/cen/af/cen-en16931-br-af-07.js.map +0 -1
- package/dist/schematron/cen/af/cen-en16931-br-af-08.d.ts +0 -6
- package/dist/schematron/cen/af/cen-en16931-br-af-08.d.ts.map +0 -1
- package/dist/schematron/cen/af/cen-en16931-br-af-08.js +0 -15
- package/dist/schematron/cen/af/cen-en16931-br-af-08.js.map +0 -1
- package/dist/schematron/cen/af/cen-en16931-br-af-09.d.ts +0 -6
- package/dist/schematron/cen/af/cen-en16931-br-af-09.d.ts.map +0 -1
- package/dist/schematron/cen/af/cen-en16931-br-af-09.js +0 -15
- package/dist/schematron/cen/af/cen-en16931-br-af-09.js.map +0 -1
- package/dist/schematron/cen/af/cen-en16931-br-af-10.d.ts +0 -6
- package/dist/schematron/cen/af/cen-en16931-br-af-10.d.ts.map +0 -1
- package/dist/schematron/cen/af/cen-en16931-br-af-10.js +0 -15
- package/dist/schematron/cen/af/cen-en16931-br-af-10.js.map +0 -1
- package/dist/schematron/cen/ag/cen-en16931-br-ag-01.d.ts +0 -6
- package/dist/schematron/cen/ag/cen-en16931-br-ag-01.d.ts.map +0 -1
- package/dist/schematron/cen/ag/cen-en16931-br-ag-01.js +0 -15
- package/dist/schematron/cen/ag/cen-en16931-br-ag-01.js.map +0 -1
- package/dist/schematron/cen/ag/cen-en16931-br-ag-02.d.ts +0 -6
- package/dist/schematron/cen/ag/cen-en16931-br-ag-02.d.ts.map +0 -1
- package/dist/schematron/cen/ag/cen-en16931-br-ag-02.js +0 -15
- package/dist/schematron/cen/ag/cen-en16931-br-ag-02.js.map +0 -1
- package/dist/schematron/cen/ag/cen-en16931-br-ag-03.d.ts +0 -6
- package/dist/schematron/cen/ag/cen-en16931-br-ag-03.d.ts.map +0 -1
- package/dist/schematron/cen/ag/cen-en16931-br-ag-03.js +0 -15
- package/dist/schematron/cen/ag/cen-en16931-br-ag-03.js.map +0 -1
- package/dist/schematron/cen/ag/cen-en16931-br-ag-04.d.ts +0 -6
- package/dist/schematron/cen/ag/cen-en16931-br-ag-04.d.ts.map +0 -1
- package/dist/schematron/cen/ag/cen-en16931-br-ag-04.js +0 -15
- package/dist/schematron/cen/ag/cen-en16931-br-ag-04.js.map +0 -1
- package/dist/schematron/cen/ag/cen-en16931-br-ag-05.d.ts +0 -6
- package/dist/schematron/cen/ag/cen-en16931-br-ag-05.d.ts.map +0 -1
- package/dist/schematron/cen/ag/cen-en16931-br-ag-05.js +0 -15
- package/dist/schematron/cen/ag/cen-en16931-br-ag-05.js.map +0 -1
- package/dist/schematron/cen/ag/cen-en16931-br-ag-06.d.ts +0 -6
- package/dist/schematron/cen/ag/cen-en16931-br-ag-06.d.ts.map +0 -1
- package/dist/schematron/cen/ag/cen-en16931-br-ag-06.js +0 -15
- package/dist/schematron/cen/ag/cen-en16931-br-ag-06.js.map +0 -1
- package/dist/schematron/cen/ag/cen-en16931-br-ag-07.d.ts +0 -6
- package/dist/schematron/cen/ag/cen-en16931-br-ag-07.d.ts.map +0 -1
- package/dist/schematron/cen/ag/cen-en16931-br-ag-07.js +0 -15
- package/dist/schematron/cen/ag/cen-en16931-br-ag-07.js.map +0 -1
- package/dist/schematron/cen/ag/cen-en16931-br-ag-08.d.ts +0 -6
- package/dist/schematron/cen/ag/cen-en16931-br-ag-08.d.ts.map +0 -1
- package/dist/schematron/cen/ag/cen-en16931-br-ag-08.js +0 -15
- package/dist/schematron/cen/ag/cen-en16931-br-ag-08.js.map +0 -1
- package/dist/schematron/cen/ag/cen-en16931-br-ag-09.d.ts +0 -6
- package/dist/schematron/cen/ag/cen-en16931-br-ag-09.d.ts.map +0 -1
- package/dist/schematron/cen/ag/cen-en16931-br-ag-09.js +0 -15
- package/dist/schematron/cen/ag/cen-en16931-br-ag-09.js.map +0 -1
- package/dist/schematron/cen/ag/cen-en16931-br-ag-10.d.ts +0 -6
- package/dist/schematron/cen/ag/cen-en16931-br-ag-10.d.ts.map +0 -1
- package/dist/schematron/cen/ag/cen-en16931-br-ag-10.js +0 -15
- package/dist/schematron/cen/ag/cen-en16931-br-ag-10.js.map +0 -1
- package/dist/schematron/cen/b/cen-en16931-br-b-01.d.ts +0 -6
- package/dist/schematron/cen/b/cen-en16931-br-b-01.d.ts.map +0 -1
- package/dist/schematron/cen/b/cen-en16931-br-b-01.js +0 -15
- package/dist/schematron/cen/b/cen-en16931-br-b-01.js.map +0 -1
- package/dist/schematron/cen/b/cen-en16931-br-b-02.d.ts +0 -6
- package/dist/schematron/cen/b/cen-en16931-br-b-02.d.ts.map +0 -1
- package/dist/schematron/cen/b/cen-en16931-br-b-02.js +0 -15
- package/dist/schematron/cen/b/cen-en16931-br-b-02.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-01.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-01.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-01.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-01.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-02.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-02.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-02.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-02.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-03.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-03.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-03.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-03.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-04.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-04.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-04.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-04.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-05.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-05.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-05.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-05.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-06.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-06.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-06.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-06.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-07.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-07.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-07.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-07.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-08.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-08.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-08.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-08.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-09.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-09.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-09.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-09.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-10.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-10.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-10.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-10.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-11.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-11.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-11.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-11.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-12.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-12.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-12.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-12.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-13.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-13.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-13.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-13.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-14.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-14.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-14.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-14.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-15.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-15.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-15.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-15.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-16.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-16.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-16.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-16.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-17.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-17.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-17.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-17.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-18.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-18.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-18.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-18.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-19.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-19.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-19.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-19.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-20.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-20.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-20.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-20.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-21.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-21.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-21.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-21.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-22.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-22.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-22.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-22.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-23.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-23.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-23.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-23.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-24.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-24.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-24.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-24.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-25.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-25.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-25.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-25.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-26.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-26.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-26.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-26.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-27.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-27.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-27.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-27.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-28.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-28.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-28.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-28.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-29.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-29.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-29.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-29.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-30.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-30.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-30.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-30.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-31.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-31.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-31.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-31.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-32.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-32.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-32.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-32.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-33.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-33.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-33.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-33.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-36.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-36.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-36.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-36.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-37.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-37.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-37.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-37.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-38.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-38.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-38.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-38.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-41.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-41.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-41.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-41.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-42.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-42.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-42.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-42.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-43.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-43.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-43.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-43.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-44.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-44.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-44.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-44.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-45.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-45.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-45.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-45.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-46.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-46.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-46.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-46.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-47.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-47.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-47.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-47.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-48.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-48.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-48.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-48.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-49.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-49.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-49.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-49.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-50.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-50.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-50.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-50.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-51.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-51.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-51.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-51.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-52.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-52.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-52.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-52.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-53.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-53.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-53.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-53.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-54.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-54.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-54.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-54.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-55.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-55.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-55.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-55.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-56.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-56.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-56.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-56.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-57.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-57.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-57.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-57.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-61.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-61.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-61.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-61.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-62.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-62.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-62.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-62.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-63.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-63.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-63.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-63.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-64.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-64.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-64.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-64.js.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-65.d.ts +0 -6
- package/dist/schematron/cen/cen-en16931-br-65.d.ts.map +0 -1
- package/dist/schematron/cen/cen-en16931-br-65.js +0 -15
- package/dist/schematron/cen/cen-en16931-br-65.js.map +0 -1
- package/dist/schematron/cen/cl/cen-en16931-br-cl-08.d.ts +0 -6
- package/dist/schematron/cen/cl/cen-en16931-br-cl-08.d.ts.map +0 -1
- package/dist/schematron/cen/cl/cen-en16931-br-cl-08.js +0 -15
- package/dist/schematron/cen/cl/cen-en16931-br-cl-08.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-03.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-03.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-03.js +0 -15
- package/dist/schematron/cen/co/cen-en16931-br-co-03.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-04.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-04.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-04.js +0 -15
- package/dist/schematron/cen/co/cen-en16931-br-co-04.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-05.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-05.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-05.js +0 -14
- package/dist/schematron/cen/co/cen-en16931-br-co-05.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-06.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-06.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-06.js +0 -14
- package/dist/schematron/cen/co/cen-en16931-br-co-06.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-07.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-07.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-07.js +0 -14
- package/dist/schematron/cen/co/cen-en16931-br-co-07.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-08.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-08.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-08.js +0 -14
- package/dist/schematron/cen/co/cen-en16931-br-co-08.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-09.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-09.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-09.js +0 -15
- package/dist/schematron/cen/co/cen-en16931-br-co-09.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-10.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-10.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-10.js +0 -15
- package/dist/schematron/cen/co/cen-en16931-br-co-10.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-11.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-11.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-11.js +0 -19
- package/dist/schematron/cen/co/cen-en16931-br-co-11.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-12.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-12.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-12.js +0 -19
- package/dist/schematron/cen/co/cen-en16931-br-co-12.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-13.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-13.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-13.js +0 -20
- package/dist/schematron/cen/co/cen-en16931-br-co-13.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-14.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-14.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-14.js +0 -15
- package/dist/schematron/cen/co/cen-en16931-br-co-14.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-15.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-15.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-15.js +0 -20
- package/dist/schematron/cen/co/cen-en16931-br-co-15.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-16.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-16.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-16.js +0 -20
- package/dist/schematron/cen/co/cen-en16931-br-co-16.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-17.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-17.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-17.js +0 -15
- package/dist/schematron/cen/co/cen-en16931-br-co-17.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-18.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-18.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-18.js +0 -15
- package/dist/schematron/cen/co/cen-en16931-br-co-18.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-19.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-19.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-19.js +0 -15
- package/dist/schematron/cen/co/cen-en16931-br-co-19.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-20.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-20.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-20.js +0 -15
- package/dist/schematron/cen/co/cen-en16931-br-co-20.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-21.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-21.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-21.js +0 -15
- package/dist/schematron/cen/co/cen-en16931-br-co-21.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-22.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-22.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-22.js +0 -15
- package/dist/schematron/cen/co/cen-en16931-br-co-22.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-23.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-23.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-23.js +0 -15
- package/dist/schematron/cen/co/cen-en16931-br-co-23.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-24.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-24.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-24.js +0 -15
- package/dist/schematron/cen/co/cen-en16931-br-co-24.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-25.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-25.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-25.js +0 -15
- package/dist/schematron/cen/co/cen-en16931-br-co-25.js.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-26.d.ts +0 -6
- package/dist/schematron/cen/co/cen-en16931-br-co-26.d.ts.map +0 -1
- package/dist/schematron/cen/co/cen-en16931-br-co-26.js +0 -15
- package/dist/schematron/cen/co/cen-en16931-br-co-26.js.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-01.d.ts +0 -6
- package/dist/schematron/cen/dec/cen-en16931-br-dec-01.d.ts.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-01.js +0 -15
- package/dist/schematron/cen/dec/cen-en16931-br-dec-01.js.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-02.d.ts +0 -6
- package/dist/schematron/cen/dec/cen-en16931-br-dec-02.d.ts.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-02.js +0 -15
- package/dist/schematron/cen/dec/cen-en16931-br-dec-02.js.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-05.d.ts +0 -6
- package/dist/schematron/cen/dec/cen-en16931-br-dec-05.d.ts.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-05.js +0 -15
- package/dist/schematron/cen/dec/cen-en16931-br-dec-05.js.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-06.d.ts +0 -6
- package/dist/schematron/cen/dec/cen-en16931-br-dec-06.d.ts.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-06.js +0 -15
- package/dist/schematron/cen/dec/cen-en16931-br-dec-06.js.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-09.d.ts +0 -6
- package/dist/schematron/cen/dec/cen-en16931-br-dec-09.d.ts.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-09.js +0 -15
- package/dist/schematron/cen/dec/cen-en16931-br-dec-09.js.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-10.d.ts +0 -6
- package/dist/schematron/cen/dec/cen-en16931-br-dec-10.d.ts.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-10.js +0 -15
- package/dist/schematron/cen/dec/cen-en16931-br-dec-10.js.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-11.d.ts +0 -6
- package/dist/schematron/cen/dec/cen-en16931-br-dec-11.d.ts.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-11.js +0 -15
- package/dist/schematron/cen/dec/cen-en16931-br-dec-11.js.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-12.d.ts +0 -6
- package/dist/schematron/cen/dec/cen-en16931-br-dec-12.d.ts.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-12.js +0 -15
- package/dist/schematron/cen/dec/cen-en16931-br-dec-12.js.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-13.d.ts +0 -6
- package/dist/schematron/cen/dec/cen-en16931-br-dec-13.d.ts.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-13.js +0 -15
- package/dist/schematron/cen/dec/cen-en16931-br-dec-13.js.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-14.d.ts +0 -6
- package/dist/schematron/cen/dec/cen-en16931-br-dec-14.d.ts.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-14.js +0 -15
- package/dist/schematron/cen/dec/cen-en16931-br-dec-14.js.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-15.d.ts +0 -6
- package/dist/schematron/cen/dec/cen-en16931-br-dec-15.d.ts.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-15.js +0 -15
- package/dist/schematron/cen/dec/cen-en16931-br-dec-15.js.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-16.d.ts +0 -6
- package/dist/schematron/cen/dec/cen-en16931-br-dec-16.d.ts.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-16.js +0 -15
- package/dist/schematron/cen/dec/cen-en16931-br-dec-16.js.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-17.d.ts +0 -6
- package/dist/schematron/cen/dec/cen-en16931-br-dec-17.d.ts.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-17.js +0 -15
- package/dist/schematron/cen/dec/cen-en16931-br-dec-17.js.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-18.d.ts +0 -6
- package/dist/schematron/cen/dec/cen-en16931-br-dec-18.d.ts.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-18.js +0 -15
- package/dist/schematron/cen/dec/cen-en16931-br-dec-18.js.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-19.d.ts +0 -6
- package/dist/schematron/cen/dec/cen-en16931-br-dec-19.d.ts.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-19.js +0 -15
- package/dist/schematron/cen/dec/cen-en16931-br-dec-19.js.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-20.d.ts +0 -6
- package/dist/schematron/cen/dec/cen-en16931-br-dec-20.d.ts.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-20.js +0 -15
- package/dist/schematron/cen/dec/cen-en16931-br-dec-20.js.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-23.d.ts +0 -6
- package/dist/schematron/cen/dec/cen-en16931-br-dec-23.d.ts.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-23.js +0 -15
- package/dist/schematron/cen/dec/cen-en16931-br-dec-23.js.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-24.d.ts +0 -6
- package/dist/schematron/cen/dec/cen-en16931-br-dec-24.d.ts.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-24.js +0 -15
- package/dist/schematron/cen/dec/cen-en16931-br-dec-24.js.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-25.d.ts +0 -6
- package/dist/schematron/cen/dec/cen-en16931-br-dec-25.d.ts.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-25.js +0 -15
- package/dist/schematron/cen/dec/cen-en16931-br-dec-25.js.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-27.d.ts +0 -6
- package/dist/schematron/cen/dec/cen-en16931-br-dec-27.d.ts.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-27.js +0 -15
- package/dist/schematron/cen/dec/cen-en16931-br-dec-27.js.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-28.d.ts +0 -6
- package/dist/schematron/cen/dec/cen-en16931-br-dec-28.d.ts.map +0 -1
- package/dist/schematron/cen/dec/cen-en16931-br-dec-28.js +0 -15
- package/dist/schematron/cen/dec/cen-en16931-br-dec-28.js.map +0 -1
- package/dist/schematron/cen/e/cen-en16931-br-e-01.d.ts +0 -6
- package/dist/schematron/cen/e/cen-en16931-br-e-01.d.ts.map +0 -1
- package/dist/schematron/cen/e/cen-en16931-br-e-01.js +0 -15
- package/dist/schematron/cen/e/cen-en16931-br-e-01.js.map +0 -1
- package/dist/schematron/cen/e/cen-en16931-br-e-02.d.ts +0 -6
- package/dist/schematron/cen/e/cen-en16931-br-e-02.d.ts.map +0 -1
- package/dist/schematron/cen/e/cen-en16931-br-e-02.js +0 -15
- package/dist/schematron/cen/e/cen-en16931-br-e-02.js.map +0 -1
- package/dist/schematron/cen/e/cen-en16931-br-e-03.d.ts +0 -6
- package/dist/schematron/cen/e/cen-en16931-br-e-03.d.ts.map +0 -1
- package/dist/schematron/cen/e/cen-en16931-br-e-03.js +0 -15
- package/dist/schematron/cen/e/cen-en16931-br-e-03.js.map +0 -1
- package/dist/schematron/cen/e/cen-en16931-br-e-04.d.ts +0 -6
- package/dist/schematron/cen/e/cen-en16931-br-e-04.d.ts.map +0 -1
- package/dist/schematron/cen/e/cen-en16931-br-e-04.js +0 -15
- package/dist/schematron/cen/e/cen-en16931-br-e-04.js.map +0 -1
- package/dist/schematron/cen/e/cen-en16931-br-e-05.d.ts +0 -6
- package/dist/schematron/cen/e/cen-en16931-br-e-05.d.ts.map +0 -1
- package/dist/schematron/cen/e/cen-en16931-br-e-05.js +0 -15
- package/dist/schematron/cen/e/cen-en16931-br-e-05.js.map +0 -1
- package/dist/schematron/cen/e/cen-en16931-br-e-06.d.ts +0 -6
- package/dist/schematron/cen/e/cen-en16931-br-e-06.d.ts.map +0 -1
- package/dist/schematron/cen/e/cen-en16931-br-e-06.js +0 -15
- package/dist/schematron/cen/e/cen-en16931-br-e-06.js.map +0 -1
- package/dist/schematron/cen/e/cen-en16931-br-e-07.d.ts +0 -6
- package/dist/schematron/cen/e/cen-en16931-br-e-07.d.ts.map +0 -1
- package/dist/schematron/cen/e/cen-en16931-br-e-07.js +0 -15
- package/dist/schematron/cen/e/cen-en16931-br-e-07.js.map +0 -1
- package/dist/schematron/cen/e/cen-en16931-br-e-08.d.ts +0 -6
- package/dist/schematron/cen/e/cen-en16931-br-e-08.d.ts.map +0 -1
- package/dist/schematron/cen/e/cen-en16931-br-e-08.js +0 -15
- package/dist/schematron/cen/e/cen-en16931-br-e-08.js.map +0 -1
- package/dist/schematron/cen/e/cen-en16931-br-e-09.d.ts +0 -6
- package/dist/schematron/cen/e/cen-en16931-br-e-09.d.ts.map +0 -1
- package/dist/schematron/cen/e/cen-en16931-br-e-09.js +0 -15
- package/dist/schematron/cen/e/cen-en16931-br-e-09.js.map +0 -1
- package/dist/schematron/cen/e/cen-en16931-br-e-10.d.ts +0 -6
- package/dist/schematron/cen/e/cen-en16931-br-e-10.d.ts.map +0 -1
- package/dist/schematron/cen/e/cen-en16931-br-e-10.js +0 -15
- package/dist/schematron/cen/e/cen-en16931-br-e-10.js.map +0 -1
- package/dist/schematron/cen/g/cen-en16931-br-g-01.d.ts +0 -6
- package/dist/schematron/cen/g/cen-en16931-br-g-01.d.ts.map +0 -1
- package/dist/schematron/cen/g/cen-en16931-br-g-01.js +0 -15
- package/dist/schematron/cen/g/cen-en16931-br-g-01.js.map +0 -1
- package/dist/schematron/cen/g/cen-en16931-br-g-02.d.ts +0 -6
- package/dist/schematron/cen/g/cen-en16931-br-g-02.d.ts.map +0 -1
- package/dist/schematron/cen/g/cen-en16931-br-g-02.js +0 -15
- package/dist/schematron/cen/g/cen-en16931-br-g-02.js.map +0 -1
- package/dist/schematron/cen/g/cen-en16931-br-g-03.d.ts +0 -6
- package/dist/schematron/cen/g/cen-en16931-br-g-03.d.ts.map +0 -1
- package/dist/schematron/cen/g/cen-en16931-br-g-03.js +0 -15
- package/dist/schematron/cen/g/cen-en16931-br-g-03.js.map +0 -1
- package/dist/schematron/cen/g/cen-en16931-br-g-04.d.ts +0 -6
- package/dist/schematron/cen/g/cen-en16931-br-g-04.d.ts.map +0 -1
- package/dist/schematron/cen/g/cen-en16931-br-g-04.js +0 -15
- package/dist/schematron/cen/g/cen-en16931-br-g-04.js.map +0 -1
- package/dist/schematron/cen/g/cen-en16931-br-g-05.d.ts +0 -6
- package/dist/schematron/cen/g/cen-en16931-br-g-05.d.ts.map +0 -1
- package/dist/schematron/cen/g/cen-en16931-br-g-05.js +0 -15
- package/dist/schematron/cen/g/cen-en16931-br-g-05.js.map +0 -1
- package/dist/schematron/cen/g/cen-en16931-br-g-06.d.ts +0 -6
- package/dist/schematron/cen/g/cen-en16931-br-g-06.d.ts.map +0 -1
- package/dist/schematron/cen/g/cen-en16931-br-g-06.js +0 -15
- package/dist/schematron/cen/g/cen-en16931-br-g-06.js.map +0 -1
- package/dist/schematron/cen/g/cen-en16931-br-g-07.d.ts +0 -6
- package/dist/schematron/cen/g/cen-en16931-br-g-07.d.ts.map +0 -1
- package/dist/schematron/cen/g/cen-en16931-br-g-07.js +0 -15
- package/dist/schematron/cen/g/cen-en16931-br-g-07.js.map +0 -1
- package/dist/schematron/cen/g/cen-en16931-br-g-08.d.ts +0 -6
- package/dist/schematron/cen/g/cen-en16931-br-g-08.d.ts.map +0 -1
- package/dist/schematron/cen/g/cen-en16931-br-g-08.js +0 -15
- package/dist/schematron/cen/g/cen-en16931-br-g-08.js.map +0 -1
- package/dist/schematron/cen/g/cen-en16931-br-g-09.d.ts +0 -6
- package/dist/schematron/cen/g/cen-en16931-br-g-09.d.ts.map +0 -1
- package/dist/schematron/cen/g/cen-en16931-br-g-09.js +0 -15
- package/dist/schematron/cen/g/cen-en16931-br-g-09.js.map +0 -1
- package/dist/schematron/cen/g/cen-en16931-br-g-10.d.ts +0 -6
- package/dist/schematron/cen/g/cen-en16931-br-g-10.d.ts.map +0 -1
- package/dist/schematron/cen/g/cen-en16931-br-g-10.js +0 -15
- package/dist/schematron/cen/g/cen-en16931-br-g-10.js.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-01.d.ts +0 -6
- package/dist/schematron/cen/ic/cen-en16931-br-ic-01.d.ts.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-01.js +0 -15
- package/dist/schematron/cen/ic/cen-en16931-br-ic-01.js.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-02.d.ts +0 -6
- package/dist/schematron/cen/ic/cen-en16931-br-ic-02.d.ts.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-02.js +0 -15
- package/dist/schematron/cen/ic/cen-en16931-br-ic-02.js.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-03.d.ts +0 -6
- package/dist/schematron/cen/ic/cen-en16931-br-ic-03.d.ts.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-03.js +0 -15
- package/dist/schematron/cen/ic/cen-en16931-br-ic-03.js.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-04.d.ts +0 -6
- package/dist/schematron/cen/ic/cen-en16931-br-ic-04.d.ts.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-04.js +0 -15
- package/dist/schematron/cen/ic/cen-en16931-br-ic-04.js.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-05.d.ts +0 -6
- package/dist/schematron/cen/ic/cen-en16931-br-ic-05.d.ts.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-05.js +0 -15
- package/dist/schematron/cen/ic/cen-en16931-br-ic-05.js.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-06.d.ts +0 -6
- package/dist/schematron/cen/ic/cen-en16931-br-ic-06.d.ts.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-06.js +0 -15
- package/dist/schematron/cen/ic/cen-en16931-br-ic-06.js.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-07.d.ts +0 -6
- package/dist/schematron/cen/ic/cen-en16931-br-ic-07.d.ts.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-07.js +0 -15
- package/dist/schematron/cen/ic/cen-en16931-br-ic-07.js.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-08.d.ts +0 -6
- package/dist/schematron/cen/ic/cen-en16931-br-ic-08.d.ts.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-08.js +0 -15
- package/dist/schematron/cen/ic/cen-en16931-br-ic-08.js.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-09.d.ts +0 -6
- package/dist/schematron/cen/ic/cen-en16931-br-ic-09.d.ts.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-09.js +0 -15
- package/dist/schematron/cen/ic/cen-en16931-br-ic-09.js.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-10.d.ts +0 -6
- package/dist/schematron/cen/ic/cen-en16931-br-ic-10.d.ts.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-10.js +0 -15
- package/dist/schematron/cen/ic/cen-en16931-br-ic-10.js.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-11.d.ts +0 -6
- package/dist/schematron/cen/ic/cen-en16931-br-ic-11.d.ts.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-11.js +0 -15
- package/dist/schematron/cen/ic/cen-en16931-br-ic-11.js.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-12.d.ts +0 -6
- package/dist/schematron/cen/ic/cen-en16931-br-ic-12.d.ts.map +0 -1
- package/dist/schematron/cen/ic/cen-en16931-br-ic-12.js +0 -15
- package/dist/schematron/cen/ic/cen-en16931-br-ic-12.js.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-01.d.ts +0 -6
- package/dist/schematron/cen/o/cen-en16931-br-o-01.d.ts.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-01.js +0 -15
- package/dist/schematron/cen/o/cen-en16931-br-o-01.js.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-02.d.ts +0 -6
- package/dist/schematron/cen/o/cen-en16931-br-o-02.d.ts.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-02.js +0 -15
- package/dist/schematron/cen/o/cen-en16931-br-o-02.js.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-03.d.ts +0 -6
- package/dist/schematron/cen/o/cen-en16931-br-o-03.d.ts.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-03.js +0 -15
- package/dist/schematron/cen/o/cen-en16931-br-o-03.js.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-04.d.ts +0 -6
- package/dist/schematron/cen/o/cen-en16931-br-o-04.d.ts.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-04.js +0 -15
- package/dist/schematron/cen/o/cen-en16931-br-o-04.js.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-05.d.ts +0 -6
- package/dist/schematron/cen/o/cen-en16931-br-o-05.d.ts.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-05.js +0 -15
- package/dist/schematron/cen/o/cen-en16931-br-o-05.js.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-06.d.ts +0 -6
- package/dist/schematron/cen/o/cen-en16931-br-o-06.d.ts.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-06.js +0 -15
- package/dist/schematron/cen/o/cen-en16931-br-o-06.js.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-07.d.ts +0 -6
- package/dist/schematron/cen/o/cen-en16931-br-o-07.d.ts.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-07.js +0 -15
- package/dist/schematron/cen/o/cen-en16931-br-o-07.js.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-08.d.ts +0 -6
- package/dist/schematron/cen/o/cen-en16931-br-o-08.d.ts.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-08.js +0 -15
- package/dist/schematron/cen/o/cen-en16931-br-o-08.js.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-09.d.ts +0 -6
- package/dist/schematron/cen/o/cen-en16931-br-o-09.d.ts.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-09.js +0 -15
- package/dist/schematron/cen/o/cen-en16931-br-o-09.js.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-10.d.ts +0 -6
- package/dist/schematron/cen/o/cen-en16931-br-o-10.d.ts.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-10.js +0 -15
- package/dist/schematron/cen/o/cen-en16931-br-o-10.js.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-11.d.ts +0 -6
- package/dist/schematron/cen/o/cen-en16931-br-o-11.d.ts.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-11.js +0 -15
- package/dist/schematron/cen/o/cen-en16931-br-o-11.js.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-12.d.ts +0 -6
- package/dist/schematron/cen/o/cen-en16931-br-o-12.d.ts.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-12.js +0 -15
- package/dist/schematron/cen/o/cen-en16931-br-o-12.js.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-13.d.ts +0 -6
- package/dist/schematron/cen/o/cen-en16931-br-o-13.d.ts.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-13.js +0 -15
- package/dist/schematron/cen/o/cen-en16931-br-o-13.js.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-14.d.ts +0 -6
- package/dist/schematron/cen/o/cen-en16931-br-o-14.d.ts.map +0 -1
- package/dist/schematron/cen/o/cen-en16931-br-o-14.js +0 -15
- package/dist/schematron/cen/o/cen-en16931-br-o-14.js.map +0 -1
- package/dist/schematron/cen/s/cen-en16931-br-s-01.d.ts +0 -6
- package/dist/schematron/cen/s/cen-en16931-br-s-01.d.ts.map +0 -1
- package/dist/schematron/cen/s/cen-en16931-br-s-01.js +0 -15
- package/dist/schematron/cen/s/cen-en16931-br-s-01.js.map +0 -1
- package/dist/schematron/cen/s/cen-en16931-br-s-02.d.ts +0 -6
- package/dist/schematron/cen/s/cen-en16931-br-s-02.d.ts.map +0 -1
- package/dist/schematron/cen/s/cen-en16931-br-s-02.js +0 -15
- package/dist/schematron/cen/s/cen-en16931-br-s-02.js.map +0 -1
- package/dist/schematron/cen/s/cen-en16931-br-s-03.d.ts +0 -6
- package/dist/schematron/cen/s/cen-en16931-br-s-03.d.ts.map +0 -1
- package/dist/schematron/cen/s/cen-en16931-br-s-03.js +0 -15
- package/dist/schematron/cen/s/cen-en16931-br-s-03.js.map +0 -1
- package/dist/schematron/cen/s/cen-en16931-br-s-04.d.ts +0 -6
- package/dist/schematron/cen/s/cen-en16931-br-s-04.d.ts.map +0 -1
- package/dist/schematron/cen/s/cen-en16931-br-s-04.js +0 -15
- package/dist/schematron/cen/s/cen-en16931-br-s-04.js.map +0 -1
- package/dist/schematron/cen/s/cen-en16931-br-s-05.d.ts +0 -6
- package/dist/schematron/cen/s/cen-en16931-br-s-05.d.ts.map +0 -1
- package/dist/schematron/cen/s/cen-en16931-br-s-05.js +0 -15
- package/dist/schematron/cen/s/cen-en16931-br-s-05.js.map +0 -1
- package/dist/schematron/cen/s/cen-en16931-br-s-06.d.ts +0 -6
- package/dist/schematron/cen/s/cen-en16931-br-s-06.d.ts.map +0 -1
- package/dist/schematron/cen/s/cen-en16931-br-s-06.js +0 -15
- package/dist/schematron/cen/s/cen-en16931-br-s-06.js.map +0 -1
- package/dist/schematron/cen/s/cen-en16931-br-s-07.d.ts +0 -6
- package/dist/schematron/cen/s/cen-en16931-br-s-07.d.ts.map +0 -1
- package/dist/schematron/cen/s/cen-en16931-br-s-07.js +0 -15
- package/dist/schematron/cen/s/cen-en16931-br-s-07.js.map +0 -1
- package/dist/schematron/cen/s/cen-en16931-br-s-08.d.ts +0 -6
- package/dist/schematron/cen/s/cen-en16931-br-s-08.d.ts.map +0 -1
- package/dist/schematron/cen/s/cen-en16931-br-s-08.js +0 -15
- package/dist/schematron/cen/s/cen-en16931-br-s-08.js.map +0 -1
- package/dist/schematron/cen/s/cen-en16931-br-s-09.d.ts +0 -6
- package/dist/schematron/cen/s/cen-en16931-br-s-09.d.ts.map +0 -1
- package/dist/schematron/cen/s/cen-en16931-br-s-09.js +0 -15
- package/dist/schematron/cen/s/cen-en16931-br-s-09.js.map +0 -1
- package/dist/schematron/cen/s/cen-en16931-br-s-10.d.ts +0 -6
- package/dist/schematron/cen/s/cen-en16931-br-s-10.d.ts.map +0 -1
- package/dist/schematron/cen/s/cen-en16931-br-s-10.js +0 -15
- package/dist/schematron/cen/s/cen-en16931-br-s-10.js.map +0 -1
- package/dist/schematron/cen/z/cen-en16931-br-z-01.d.ts +0 -6
- package/dist/schematron/cen/z/cen-en16931-br-z-01.d.ts.map +0 -1
- package/dist/schematron/cen/z/cen-en16931-br-z-01.js +0 -15
- package/dist/schematron/cen/z/cen-en16931-br-z-01.js.map +0 -1
- package/dist/schematron/cen/z/cen-en16931-br-z-02.d.ts +0 -6
- package/dist/schematron/cen/z/cen-en16931-br-z-02.d.ts.map +0 -1
- package/dist/schematron/cen/z/cen-en16931-br-z-02.js +0 -15
- package/dist/schematron/cen/z/cen-en16931-br-z-02.js.map +0 -1
- package/dist/schematron/cen/z/cen-en16931-br-z-03.d.ts +0 -6
- package/dist/schematron/cen/z/cen-en16931-br-z-03.d.ts.map +0 -1
- package/dist/schematron/cen/z/cen-en16931-br-z-03.js +0 -15
- package/dist/schematron/cen/z/cen-en16931-br-z-03.js.map +0 -1
- package/dist/schematron/cen/z/cen-en16931-br-z-04.d.ts +0 -6
- package/dist/schematron/cen/z/cen-en16931-br-z-04.d.ts.map +0 -1
- package/dist/schematron/cen/z/cen-en16931-br-z-04.js +0 -15
- package/dist/schematron/cen/z/cen-en16931-br-z-04.js.map +0 -1
- package/dist/schematron/cen/z/cen-en16931-br-z-05.d.ts +0 -6
- package/dist/schematron/cen/z/cen-en16931-br-z-05.d.ts.map +0 -1
- package/dist/schematron/cen/z/cen-en16931-br-z-05.js +0 -15
- package/dist/schematron/cen/z/cen-en16931-br-z-05.js.map +0 -1
- package/dist/schematron/cen/z/cen-en16931-br-z-06.d.ts +0 -6
- package/dist/schematron/cen/z/cen-en16931-br-z-06.d.ts.map +0 -1
- package/dist/schematron/cen/z/cen-en16931-br-z-06.js +0 -15
- package/dist/schematron/cen/z/cen-en16931-br-z-06.js.map +0 -1
- package/dist/schematron/cen/z/cen-en16931-br-z-07.d.ts +0 -6
- package/dist/schematron/cen/z/cen-en16931-br-z-07.d.ts.map +0 -1
- package/dist/schematron/cen/z/cen-en16931-br-z-07.js +0 -15
- package/dist/schematron/cen/z/cen-en16931-br-z-07.js.map +0 -1
- package/dist/schematron/cen/z/cen-en16931-br-z-08.d.ts +0 -6
- package/dist/schematron/cen/z/cen-en16931-br-z-08.d.ts.map +0 -1
- package/dist/schematron/cen/z/cen-en16931-br-z-08.js +0 -15
- package/dist/schematron/cen/z/cen-en16931-br-z-08.js.map +0 -1
- package/dist/schematron/cen/z/cen-en16931-br-z-09.d.ts +0 -6
- package/dist/schematron/cen/z/cen-en16931-br-z-09.d.ts.map +0 -1
- package/dist/schematron/cen/z/cen-en16931-br-z-09.js +0 -15
- package/dist/schematron/cen/z/cen-en16931-br-z-09.js.map +0 -1
- package/dist/schematron/cen/z/cen-en16931-br-z-10.d.ts +0 -6
- package/dist/schematron/cen/z/cen-en16931-br-z-10.d.ts.map +0 -1
- package/dist/schematron/cen/z/cen-en16931-br-z-10.js +0 -15
- package/dist/schematron/cen/z/cen-en16931-br-z-10.js.map +0 -1
- package/dist/schematron/de/de-r-001.d.ts +0 -6
- package/dist/schematron/de/de-r-001.d.ts.map +0 -1
- package/dist/schematron/de/de-r-001.js +0 -15
- package/dist/schematron/de/de-r-001.js.map +0 -1
- package/dist/schematron/de/de-r-002.d.ts +0 -6
- package/dist/schematron/de/de-r-002.d.ts.map +0 -1
- package/dist/schematron/de/de-r-002.js +0 -15
- package/dist/schematron/de/de-r-002.js.map +0 -1
- package/dist/schematron/de/de-r-003.d.ts +0 -6
- package/dist/schematron/de/de-r-003.d.ts.map +0 -1
- package/dist/schematron/de/de-r-003.js +0 -16
- package/dist/schematron/de/de-r-003.js.map +0 -1
- package/dist/schematron/de/de-r-004.d.ts +0 -6
- package/dist/schematron/de/de-r-004.d.ts.map +0 -1
- package/dist/schematron/de/de-r-004.js +0 -16
- package/dist/schematron/de/de-r-004.js.map +0 -1
- package/dist/schematron/de/de-r-005.d.ts +0 -6
- package/dist/schematron/de/de-r-005.d.ts.map +0 -1
- package/dist/schematron/de/de-r-005.js +0 -16
- package/dist/schematron/de/de-r-005.js.map +0 -1
- package/dist/schematron/de/de-r-006.d.ts +0 -6
- package/dist/schematron/de/de-r-006.d.ts.map +0 -1
- package/dist/schematron/de/de-r-006.js +0 -16
- package/dist/schematron/de/de-r-006.js.map +0 -1
- package/dist/schematron/de/de-r-007.d.ts +0 -6
- package/dist/schematron/de/de-r-007.d.ts.map +0 -1
- package/dist/schematron/de/de-r-007.js +0 -16
- package/dist/schematron/de/de-r-007.js.map +0 -1
- package/dist/schematron/de/de-r-008.d.ts +0 -6
- package/dist/schematron/de/de-r-008.d.ts.map +0 -1
- package/dist/schematron/de/de-r-008.js +0 -16
- package/dist/schematron/de/de-r-008.js.map +0 -1
- package/dist/schematron/de/de-r-009.d.ts +0 -6
- package/dist/schematron/de/de-r-009.d.ts.map +0 -1
- package/dist/schematron/de/de-r-009.js +0 -16
- package/dist/schematron/de/de-r-009.js.map +0 -1
- package/dist/schematron/de/de-r-010.d.ts +0 -6
- package/dist/schematron/de/de-r-010.d.ts.map +0 -1
- package/dist/schematron/de/de-r-010.js +0 -18
- package/dist/schematron/de/de-r-010.js.map +0 -1
- package/dist/schematron/de/de-r-011.d.ts +0 -6
- package/dist/schematron/de/de-r-011.d.ts.map +0 -1
- package/dist/schematron/de/de-r-011.js +0 -18
- package/dist/schematron/de/de-r-011.js.map +0 -1
- package/dist/schematron/de/de-r-014.d.ts +0 -6
- package/dist/schematron/de/de-r-014.d.ts.map +0 -1
- package/dist/schematron/de/de-r-014.js +0 -16
- package/dist/schematron/de/de-r-014.js.map +0 -1
- package/dist/schematron/de/de-r-015.d.ts +0 -6
- package/dist/schematron/de/de-r-015.d.ts.map +0 -1
- package/dist/schematron/de/de-r-015.js +0 -16
- package/dist/schematron/de/de-r-015.js.map +0 -1
- package/dist/schematron/de/de-r-016.d.ts +0 -6
- package/dist/schematron/de/de-r-016.d.ts.map +0 -1
- package/dist/schematron/de/de-r-016.js +0 -30
- package/dist/schematron/de/de-r-016.js.map +0 -1
- package/dist/schematron/de/de-r-017.d.ts +0 -6
- package/dist/schematron/de/de-r-017.d.ts.map +0 -1
- package/dist/schematron/de/de-r-017.js +0 -26
- package/dist/schematron/de/de-r-017.js.map +0 -1
- package/dist/schematron/de/de-r-018.d.ts +0 -6
- package/dist/schematron/de/de-r-018.d.ts.map +0 -1
- package/dist/schematron/de/de-r-018.js +0 -21
- package/dist/schematron/de/de-r-018.js.map +0 -1
- package/dist/schematron/de/de-r-019.d.ts +0 -6
- package/dist/schematron/de/de-r-019.d.ts.map +0 -1
- package/dist/schematron/de/de-r-019.js +0 -21
- package/dist/schematron/de/de-r-019.js.map +0 -1
- package/dist/schematron/de/de-r-020.d.ts +0 -6
- package/dist/schematron/de/de-r-020.d.ts.map +0 -1
- package/dist/schematron/de/de-r-020.js +0 -21
- package/dist/schematron/de/de-r-020.js.map +0 -1
- package/dist/schematron/de/de-r-022.d.ts +0 -6
- package/dist/schematron/de/de-r-022.d.ts.map +0 -1
- package/dist/schematron/de/de-r-022.js +0 -16
- package/dist/schematron/de/de-r-022.js.map +0 -1
- package/dist/schematron/de/de-r-023-1.d.ts +0 -6
- package/dist/schematron/de/de-r-023-1.d.ts.map +0 -1
- package/dist/schematron/de/de-r-023-1.js +0 -20
- package/dist/schematron/de/de-r-023-1.js.map +0 -1
- package/dist/schematron/de/de-r-023-2.d.ts +0 -6
- package/dist/schematron/de/de-r-023-2.d.ts.map +0 -1
- package/dist/schematron/de/de-r-023-2.js +0 -20
- package/dist/schematron/de/de-r-023-2.js.map +0 -1
- package/dist/schematron/de/de-r-024-1.d.ts +0 -6
- package/dist/schematron/de/de-r-024-1.d.ts.map +0 -1
- package/dist/schematron/de/de-r-024-1.js +0 -24
- package/dist/schematron/de/de-r-024-1.js.map +0 -1
- package/dist/schematron/de/de-r-024-2.d.ts +0 -6
- package/dist/schematron/de/de-r-024-2.d.ts.map +0 -1
- package/dist/schematron/de/de-r-024-2.js +0 -24
- package/dist/schematron/de/de-r-024-2.js.map +0 -1
- package/dist/schematron/de/de-r-025-1.d.ts +0 -6
- package/dist/schematron/de/de-r-025-1.d.ts.map +0 -1
- package/dist/schematron/de/de-r-025-1.js +0 -19
- package/dist/schematron/de/de-r-025-1.js.map +0 -1
- package/dist/schematron/de/de-r-025-2.d.ts +0 -6
- package/dist/schematron/de/de-r-025-2.d.ts.map +0 -1
- package/dist/schematron/de/de-r-025-2.js +0 -19
- package/dist/schematron/de/de-r-025-2.js.map +0 -1
- package/dist/schematron/de/de-r-026.d.ts +0 -6
- package/dist/schematron/de/de-r-026.d.ts.map +0 -1
- package/dist/schematron/de/de-r-026.js +0 -19
- package/dist/schematron/de/de-r-026.js.map +0 -1
- package/dist/schematron/de/de-r-027.d.ts +0 -6
- package/dist/schematron/de/de-r-027.d.ts.map +0 -1
- package/dist/schematron/de/de-r-027.js +0 -17
- package/dist/schematron/de/de-r-027.js.map +0 -1
- package/dist/schematron/de/de-r-028.d.ts +0 -6
- package/dist/schematron/de/de-r-028.d.ts.map +0 -1
- package/dist/schematron/de/de-r-028.js +0 -17
- package/dist/schematron/de/de-r-028.js.map +0 -1
- package/dist/schematron/de/de-r-030.d.ts +0 -6
- package/dist/schematron/de/de-r-030.d.ts.map +0 -1
- package/dist/schematron/de/de-r-030.js +0 -17
- package/dist/schematron/de/de-r-030.js.map +0 -1
- package/dist/schematron/de/de-r-031.d.ts +0 -6
- package/dist/schematron/de/de-r-031.d.ts.map +0 -1
- package/dist/schematron/de/de-r-031.js +0 -19
- package/dist/schematron/de/de-r-031.js.map +0 -1
- package/dist/schematron/dk/dk-r-002.d.ts +0 -6
- package/dist/schematron/dk/dk-r-002.d.ts.map +0 -1
- package/dist/schematron/dk/dk-r-002.js +0 -16
- package/dist/schematron/dk/dk-r-002.js.map +0 -1
- package/dist/schematron/dk/dk-r-003.d.ts +0 -6
- package/dist/schematron/dk/dk-r-003.d.ts.map +0 -1
- package/dist/schematron/dk/dk-r-003.js +0 -25
- package/dist/schematron/dk/dk-r-003.js.map +0 -1
- package/dist/schematron/dk/dk-r-004.d.ts +0 -6
- package/dist/schematron/dk/dk-r-004.d.ts.map +0 -1
- package/dist/schematron/dk/dk-r-004.js +0 -23
- package/dist/schematron/dk/dk-r-004.js.map +0 -1
- package/dist/schematron/dk/dk-r-005.d.ts +0 -6
- package/dist/schematron/dk/dk-r-005.d.ts.map +0 -1
- package/dist/schematron/dk/dk-r-005.js +0 -29
- package/dist/schematron/dk/dk-r-005.js.map +0 -1
- package/dist/schematron/dk/dk-r-006.d.ts +0 -6
- package/dist/schematron/dk/dk-r-006.d.ts.map +0 -1
- package/dist/schematron/dk/dk-r-006.js +0 -22
- package/dist/schematron/dk/dk-r-006.js.map +0 -1
- package/dist/schematron/dk/dk-r-007.d.ts +0 -6
- package/dist/schematron/dk/dk-r-007.d.ts.map +0 -1
- package/dist/schematron/dk/dk-r-007.js +0 -21
- package/dist/schematron/dk/dk-r-007.js.map +0 -1
- package/dist/schematron/dk/dk-r-008.d.ts +0 -6
- package/dist/schematron/dk/dk-r-008.d.ts.map +0 -1
- package/dist/schematron/dk/dk-r-008.js +0 -25
- package/dist/schematron/dk/dk-r-008.js.map +0 -1
- package/dist/schematron/dk/dk-r-009.d.ts +0 -6
- package/dist/schematron/dk/dk-r-009.d.ts.map +0 -1
- package/dist/schematron/dk/dk-r-009.js +0 -21
- package/dist/schematron/dk/dk-r-009.js.map +0 -1
- package/dist/schematron/dk/dk-r-010.d.ts +0 -6
- package/dist/schematron/dk/dk-r-010.d.ts.map +0 -1
- package/dist/schematron/dk/dk-r-010.js +0 -26
- package/dist/schematron/dk/dk-r-010.js.map +0 -1
- package/dist/schematron/dk/dk-r-011.d.ts +0 -6
- package/dist/schematron/dk/dk-r-011.d.ts.map +0 -1
- package/dist/schematron/dk/dk-r-011.js +0 -21
- package/dist/schematron/dk/dk-r-011.js.map +0 -1
- package/dist/schematron/dk/dk-r-013.d.ts +0 -6
- package/dist/schematron/dk/dk-r-013.d.ts.map +0 -1
- package/dist/schematron/dk/dk-r-013.js +0 -19
- package/dist/schematron/dk/dk-r-013.js.map +0 -1
- package/dist/schematron/dk/dk-r-014.d.ts +0 -6
- package/dist/schematron/dk/dk-r-014.d.ts.map +0 -1
- package/dist/schematron/dk/dk-r-014.js +0 -17
- package/dist/schematron/dk/dk-r-014.js.map +0 -1
- package/dist/schematron/dk/dk-r-016.d.ts +0 -6
- package/dist/schematron/dk/dk-r-016.d.ts.map +0 -1
- package/dist/schematron/dk/dk-r-016.js +0 -15
- package/dist/schematron/dk/dk-r-016.js.map +0 -1
- package/dist/schematron/dk/dk-r-017.d.ts +0 -6
- package/dist/schematron/dk/dk-r-017.d.ts.map +0 -1
- package/dist/schematron/dk/dk-r-017.js +0 -17
- package/dist/schematron/dk/dk-r-017.js.map +0 -1
- package/dist/schematron/gr/gr-r-001-1.d.ts +0 -6
- package/dist/schematron/gr/gr-r-001-1.d.ts.map +0 -1
- package/dist/schematron/gr/gr-r-001-1.js +0 -16
- package/dist/schematron/gr/gr-r-001-1.js.map +0 -1
- package/dist/schematron/gr/gr-r-001-2.d.ts +0 -6
- package/dist/schematron/gr/gr-r-001-2.d.ts.map +0 -1
- package/dist/schematron/gr/gr-r-001-2.js +0 -21
- package/dist/schematron/gr/gr-r-001-2.js.map +0 -1
- package/dist/schematron/gr/gr-r-001-3.d.ts +0 -6
- package/dist/schematron/gr/gr-r-001-3.d.ts.map +0 -1
- package/dist/schematron/gr/gr-r-001-3.js +0 -22
- package/dist/schematron/gr/gr-r-001-3.js.map +0 -1
- package/dist/schematron/gr/gr-r-001-4.d.ts +0 -6
- package/dist/schematron/gr/gr-r-001-4.d.ts.map +0 -1
- package/dist/schematron/gr/gr-r-001-4.js +0 -17
- package/dist/schematron/gr/gr-r-001-4.js.map +0 -1
- package/dist/schematron/gr/gr-r-001-5.d.ts +0 -6
- package/dist/schematron/gr/gr-r-001-5.d.ts.map +0 -1
- package/dist/schematron/gr/gr-r-001-5.js +0 -25
- package/dist/schematron/gr/gr-r-001-5.js.map +0 -1
- package/dist/schematron/gr/gr-r-001-6.d.ts +0 -6
- package/dist/schematron/gr/gr-r-001-6.d.ts.map +0 -1
- package/dist/schematron/gr/gr-r-001-6.js +0 -16
- package/dist/schematron/gr/gr-r-001-6.js.map +0 -1
- package/dist/schematron/gr/gr-r-001-7.d.ts +0 -6
- package/dist/schematron/gr/gr-r-001-7.d.ts.map +0 -1
- package/dist/schematron/gr/gr-r-001-7.js +0 -16
- package/dist/schematron/gr/gr-r-001-7.js.map +0 -1
- package/dist/schematron/gr/gr-r-002.d.ts +0 -6
- package/dist/schematron/gr/gr-r-002.d.ts.map +0 -1
- package/dist/schematron/gr/gr-r-002.js +0 -16
- package/dist/schematron/gr/gr-r-002.js.map +0 -1
- package/dist/schematron/gr/gr-r-003.d.ts +0 -6
- package/dist/schematron/gr/gr-r-003.d.ts.map +0 -1
- package/dist/schematron/gr/gr-r-003.js +0 -18
- package/dist/schematron/gr/gr-r-003.js.map +0 -1
- package/dist/schematron/gr/gr-r-004-1.d.ts +0 -6
- package/dist/schematron/gr/gr-r-004-1.d.ts.map +0 -1
- package/dist/schematron/gr/gr-r-004-1.js +0 -16
- package/dist/schematron/gr/gr-r-004-1.js.map +0 -1
- package/dist/schematron/gr/gr-r-004-2.d.ts +0 -6
- package/dist/schematron/gr/gr-r-004-2.d.ts.map +0 -1
- package/dist/schematron/gr/gr-r-004-2.js +0 -16
- package/dist/schematron/gr/gr-r-004-2.js.map +0 -1
- package/dist/schematron/gr/gr-r-005.d.ts +0 -6
- package/dist/schematron/gr/gr-r-005.d.ts.map +0 -1
- package/dist/schematron/gr/gr-r-005.js +0 -16
- package/dist/schematron/gr/gr-r-005.js.map +0 -1
- package/dist/schematron/gr/gr-r-006.d.ts +0 -6
- package/dist/schematron/gr/gr-r-006.d.ts.map +0 -1
- package/dist/schematron/gr/gr-r-006.js +0 -21
- package/dist/schematron/gr/gr-r-006.js.map +0 -1
- package/dist/schematron/gr/gr-r-008-2.d.ts +0 -6
- package/dist/schematron/gr/gr-r-008-2.d.ts.map +0 -1
- package/dist/schematron/gr/gr-r-008-2.js +0 -16
- package/dist/schematron/gr/gr-r-008-2.js.map +0 -1
- package/dist/schematron/gr/gr-r-008-3.d.ts +0 -6
- package/dist/schematron/gr/gr-r-008-3.d.ts.map +0 -1
- package/dist/schematron/gr/gr-r-008-3.js +0 -19
- package/dist/schematron/gr/gr-r-008-3.js.map +0 -1
- package/dist/schematron/gr/gr-r-009.d.ts +0 -6
- package/dist/schematron/gr/gr-r-009.d.ts.map +0 -1
- package/dist/schematron/gr/gr-r-009.js +0 -18
- package/dist/schematron/gr/gr-r-009.js.map +0 -1
- package/dist/schematron/gr/gr-r-010.d.ts +0 -6
- package/dist/schematron/gr/gr-r-010.d.ts.map +0 -1
- package/dist/schematron/gr/gr-r-010.js +0 -19
- package/dist/schematron/gr/gr-r-010.js.map +0 -1
- package/dist/schematron/gr/gr-s-008-1.d.ts +0 -6
- package/dist/schematron/gr/gr-s-008-1.d.ts.map +0 -1
- package/dist/schematron/gr/gr-s-008-1.js +0 -16
- package/dist/schematron/gr/gr-s-008-1.js.map +0 -1
- package/dist/schematron/gr/gr-s-011.d.ts +0 -6
- package/dist/schematron/gr/gr-s-011.d.ts.map +0 -1
- package/dist/schematron/gr/gr-s-011.js +0 -18
- package/dist/schematron/gr/gr-s-011.js.map +0 -1
- package/dist/schematron/helpers.js +0 -382
- package/dist/schematron/helpers.js.map +0 -1
- package/dist/schematron/is/is-r-001.d.ts +0 -6
- package/dist/schematron/is/is-r-001.d.ts.map +0 -1
- package/dist/schematron/is/is-r-001.js +0 -17
- package/dist/schematron/is/is-r-001.js.map +0 -1
- package/dist/schematron/is/is-r-002.d.ts +0 -6
- package/dist/schematron/is/is-r-002.d.ts.map +0 -1
- package/dist/schematron/is/is-r-002.js +0 -16
- package/dist/schematron/is/is-r-002.js.map +0 -1
- package/dist/schematron/is/is-r-003.d.ts +0 -6
- package/dist/schematron/is/is-r-003.d.ts.map +0 -1
- package/dist/schematron/is/is-r-003.js +0 -16
- package/dist/schematron/is/is-r-003.js.map +0 -1
- package/dist/schematron/is/is-r-004.d.ts +0 -6
- package/dist/schematron/is/is-r-004.d.ts.map +0 -1
- package/dist/schematron/is/is-r-004.js +0 -16
- package/dist/schematron/is/is-r-004.js.map +0 -1
- package/dist/schematron/is/is-r-005.d.ts +0 -6
- package/dist/schematron/is/is-r-005.d.ts.map +0 -1
- package/dist/schematron/is/is-r-005.js +0 -16
- package/dist/schematron/is/is-r-005.js.map +0 -1
- package/dist/schematron/is/is-r-006.d.ts +0 -6
- package/dist/schematron/is/is-r-006.d.ts.map +0 -1
- package/dist/schematron/is/is-r-006.js +0 -21
- package/dist/schematron/is/is-r-006.js.map +0 -1
- package/dist/schematron/is/is-r-007.d.ts +0 -6
- package/dist/schematron/is/is-r-007.d.ts.map +0 -1
- package/dist/schematron/is/is-r-007.js +0 -21
- package/dist/schematron/is/is-r-007.js.map +0 -1
- package/dist/schematron/is/is-r-008.d.ts +0 -6
- package/dist/schematron/is/is-r-008.d.ts.map +0 -1
- package/dist/schematron/is/is-r-008.js +0 -22
- package/dist/schematron/is/is-r-008.js.map +0 -1
- package/dist/schematron/is/is-r-009.d.ts +0 -6
- package/dist/schematron/is/is-r-009.d.ts.map +0 -1
- package/dist/schematron/is/is-r-009.js +0 -16
- package/dist/schematron/is/is-r-009.js.map +0 -1
- package/dist/schematron/is/is-r-010.d.ts +0 -6
- package/dist/schematron/is/is-r-010.d.ts.map +0 -1
- package/dist/schematron/is/is-r-010.js +0 -22
- package/dist/schematron/is/is-r-010.js.map +0 -1
- package/dist/schematron/it/it-r-001.d.ts +0 -6
- package/dist/schematron/it/it-r-001.d.ts.map +0 -1
- package/dist/schematron/it/it-r-001.js +0 -16
- package/dist/schematron/it/it-r-001.js.map +0 -1
- package/dist/schematron/it/it-r-002.d.ts +0 -6
- package/dist/schematron/it/it-r-002.d.ts.map +0 -1
- package/dist/schematron/it/it-r-002.js +0 -16
- package/dist/schematron/it/it-r-002.js.map +0 -1
- package/dist/schematron/it/it-r-003.d.ts +0 -6
- package/dist/schematron/it/it-r-003.d.ts.map +0 -1
- package/dist/schematron/it/it-r-003.js +0 -16
- package/dist/schematron/it/it-r-003.js.map +0 -1
- package/dist/schematron/it/it-r-004.d.ts +0 -6
- package/dist/schematron/it/it-r-004.d.ts.map +0 -1
- package/dist/schematron/it/it-r-004.js +0 -16
- package/dist/schematron/it/it-r-004.js.map +0 -1
- package/dist/schematron/nl/nl-r-001.d.ts +0 -6
- package/dist/schematron/nl/nl-r-001.d.ts.map +0 -1
- package/dist/schematron/nl/nl-r-001.js +0 -16
- package/dist/schematron/nl/nl-r-001.js.map +0 -1
- package/dist/schematron/nl/nl-r-002.d.ts +0 -6
- package/dist/schematron/nl/nl-r-002.d.ts.map +0 -1
- package/dist/schematron/nl/nl-r-002.js +0 -16
- package/dist/schematron/nl/nl-r-002.js.map +0 -1
- package/dist/schematron/nl/nl-r-003.d.ts +0 -6
- package/dist/schematron/nl/nl-r-003.d.ts.map +0 -1
- package/dist/schematron/nl/nl-r-003.js +0 -18
- package/dist/schematron/nl/nl-r-003.js.map +0 -1
- package/dist/schematron/nl/nl-r-004.d.ts +0 -6
- package/dist/schematron/nl/nl-r-004.d.ts.map +0 -1
- package/dist/schematron/nl/nl-r-004.js +0 -16
- package/dist/schematron/nl/nl-r-004.js.map +0 -1
- package/dist/schematron/nl/nl-r-005.d.ts +0 -6
- package/dist/schematron/nl/nl-r-005.d.ts.map +0 -1
- package/dist/schematron/nl/nl-r-005.js +0 -18
- package/dist/schematron/nl/nl-r-005.js.map +0 -1
- package/dist/schematron/nl/nl-r-006.d.ts +0 -6
- package/dist/schematron/nl/nl-r-006.d.ts.map +0 -1
- package/dist/schematron/nl/nl-r-006.js +0 -18
- package/dist/schematron/nl/nl-r-006.js.map +0 -1
- package/dist/schematron/nl/nl-r-007.d.ts +0 -6
- package/dist/schematron/nl/nl-r-007.d.ts.map +0 -1
- package/dist/schematron/nl/nl-r-007.js +0 -19
- package/dist/schematron/nl/nl-r-007.js.map +0 -1
- package/dist/schematron/nl/nl-r-008.d.ts +0 -6
- package/dist/schematron/nl/nl-r-008.d.ts.map +0 -1
- package/dist/schematron/nl/nl-r-008.js +0 -24
- package/dist/schematron/nl/nl-r-008.js.map +0 -1
- package/dist/schematron/nl/nl-r-009.d.ts +0 -6
- package/dist/schematron/nl/nl-r-009.d.ts.map +0 -1
- package/dist/schematron/nl/nl-r-009.js +0 -16
- package/dist/schematron/nl/nl-r-009.js.map +0 -1
- package/dist/schematron/no/no-r-001.d.ts +0 -6
- package/dist/schematron/no/no-r-001.d.ts.map +0 -1
- package/dist/schematron/no/no-r-001.js +0 -20
- package/dist/schematron/no/no-r-001.js.map +0 -1
- package/dist/schematron/no/no-r-002.d.ts +0 -6
- package/dist/schematron/no/no-r-002.d.ts.map +0 -1
- package/dist/schematron/no/no-r-002.js +0 -16
- package/dist/schematron/no/no-r-002.js.map +0 -1
- package/dist/schematron/peppol/cl/peppol-en16931-cl001.d.ts +0 -6
- package/dist/schematron/peppol/cl/peppol-en16931-cl001.d.ts.map +0 -1
- package/dist/schematron/peppol/cl/peppol-en16931-cl001.js +0 -19
- package/dist/schematron/peppol/cl/peppol-en16931-cl001.js.map +0 -1
- package/dist/schematron/peppol/cl/peppol-en16931-cl002.d.ts +0 -6
- package/dist/schematron/peppol/cl/peppol-en16931-cl002.d.ts.map +0 -1
- package/dist/schematron/peppol/cl/peppol-en16931-cl002.js +0 -16
- package/dist/schematron/peppol/cl/peppol-en16931-cl002.js.map +0 -1
- package/dist/schematron/peppol/cl/peppol-en16931-cl003.d.ts +0 -6
- package/dist/schematron/peppol/cl/peppol-en16931-cl003.d.ts.map +0 -1
- package/dist/schematron/peppol/cl/peppol-en16931-cl003.js +0 -16
- package/dist/schematron/peppol/cl/peppol-en16931-cl003.js.map +0 -1
- package/dist/schematron/peppol/cl/peppol-en16931-cl006.d.ts +0 -6
- package/dist/schematron/peppol/cl/peppol-en16931-cl006.d.ts.map +0 -1
- package/dist/schematron/peppol/cl/peppol-en16931-cl006.js +0 -17
- package/dist/schematron/peppol/cl/peppol-en16931-cl006.js.map +0 -1
- package/dist/schematron/peppol/cl/peppol-en16931-cl007.d.ts +0 -6
- package/dist/schematron/peppol/cl/peppol-en16931-cl007.d.ts.map +0 -1
- package/dist/schematron/peppol/cl/peppol-en16931-cl007.js +0 -32
- package/dist/schematron/peppol/cl/peppol-en16931-cl007.js.map +0 -1
- package/dist/schematron/peppol/cl/peppol-en16931-cl008.d.ts +0 -6
- package/dist/schematron/peppol/cl/peppol-en16931-cl008.d.ts.map +0 -1
- package/dist/schematron/peppol/cl/peppol-en16931-cl008.js +0 -16
- package/dist/schematron/peppol/cl/peppol-en16931-cl008.js.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r040.d.ts +0 -6
- package/dist/schematron/peppol/common/peppol-common-r040.d.ts.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r040.js +0 -18
- package/dist/schematron/peppol/common/peppol-common-r040.js.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r041.d.ts +0 -6
- package/dist/schematron/peppol/common/peppol-common-r041.d.ts.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r041.js +0 -18
- package/dist/schematron/peppol/common/peppol-common-r041.js.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r042.d.ts +0 -6
- package/dist/schematron/peppol/common/peppol-common-r042.d.ts.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r042.js +0 -21
- package/dist/schematron/peppol/common/peppol-common-r042.js.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r043.d.ts +0 -6
- package/dist/schematron/peppol/common/peppol-common-r043.d.ts.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r043.js +0 -18
- package/dist/schematron/peppol/common/peppol-common-r043.js.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r044.d.ts +0 -6
- package/dist/schematron/peppol/common/peppol-common-r044.d.ts.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r044.js +0 -17
- package/dist/schematron/peppol/common/peppol-common-r044.js.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r045.d.ts +0 -6
- package/dist/schematron/peppol/common/peppol-common-r045.d.ts.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r045.js +0 -17
- package/dist/schematron/peppol/common/peppol-common-r045.js.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r046.d.ts +0 -6
- package/dist/schematron/peppol/common/peppol-common-r046.d.ts.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r046.js +0 -17
- package/dist/schematron/peppol/common/peppol-common-r046.js.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r047.d.ts +0 -6
- package/dist/schematron/peppol/common/peppol-common-r047.d.ts.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r047.js +0 -17
- package/dist/schematron/peppol/common/peppol-common-r047.js.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r049.d.ts +0 -6
- package/dist/schematron/peppol/common/peppol-common-r049.d.ts.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r049.js +0 -17
- package/dist/schematron/peppol/common/peppol-common-r049.js.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r050.d.ts +0 -6
- package/dist/schematron/peppol/common/peppol-common-r050.d.ts.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r050.js +0 -18
- package/dist/schematron/peppol/common/peppol-common-r050.js.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r052.d.ts +0 -6
- package/dist/schematron/peppol/common/peppol-common-r052.d.ts.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r052.js +0 -16
- package/dist/schematron/peppol/common/peppol-common-r052.js.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r053.d.ts +0 -6
- package/dist/schematron/peppol/common/peppol-common-r053.d.ts.map +0 -1
- package/dist/schematron/peppol/common/peppol-common-r053.js +0 -16
- package/dist/schematron/peppol/common/peppol-common-r053.js.map +0 -1
- package/dist/schematron/peppol/f/peppol-en16931-f001.d.ts +0 -6
- package/dist/schematron/peppol/f/peppol-en16931-f001.d.ts.map +0 -1
- package/dist/schematron/peppol/f/peppol-en16931-f001.js +0 -26
- package/dist/schematron/peppol/f/peppol-en16931-f001.js.map +0 -1
- package/dist/schematron/peppol/p/peppol-en16931-p0100.d.ts +0 -6
- package/dist/schematron/peppol/p/peppol-en16931-p0100.d.ts.map +0 -1
- package/dist/schematron/peppol/p/peppol-en16931-p0100.js +0 -46
- package/dist/schematron/peppol/p/peppol-en16931-p0100.js.map +0 -1
- package/dist/schematron/peppol/p/peppol-en16931-p0101.d.ts +0 -6
- package/dist/schematron/peppol/p/peppol-en16931-p0101.d.ts.map +0 -1
- package/dist/schematron/peppol/p/peppol-en16931-p0101.js +0 -25
- package/dist/schematron/peppol/p/peppol-en16931-p0101.js.map +0 -1
- package/dist/schematron/peppol/p/peppol-en16931-p0104.d.ts +0 -6
- package/dist/schematron/peppol/p/peppol-en16931-p0104.d.ts.map +0 -1
- package/dist/schematron/peppol/p/peppol-en16931-p0104.js +0 -15
- package/dist/schematron/peppol/p/peppol-en16931-p0104.js.map +0 -1
- package/dist/schematron/peppol/p/peppol-en16931-p0105.d.ts +0 -6
- package/dist/schematron/peppol/p/peppol-en16931-p0105.d.ts.map +0 -1
- package/dist/schematron/peppol/p/peppol-en16931-p0105.js +0 -15
- package/dist/schematron/peppol/p/peppol-en16931-p0105.js.map +0 -1
- package/dist/schematron/peppol/p/peppol-en16931-p0106.d.ts +0 -6
- package/dist/schematron/peppol/p/peppol-en16931-p0106.d.ts.map +0 -1
- package/dist/schematron/peppol/p/peppol-en16931-p0106.js +0 -15
- package/dist/schematron/peppol/p/peppol-en16931-p0106.js.map +0 -1
- package/dist/schematron/peppol/p/peppol-en16931-p0107.d.ts +0 -6
- package/dist/schematron/peppol/p/peppol-en16931-p0107.d.ts.map +0 -1
- package/dist/schematron/peppol/p/peppol-en16931-p0107.js +0 -15
- package/dist/schematron/peppol/p/peppol-en16931-p0107.js.map +0 -1
- package/dist/schematron/peppol/p/peppol-en16931-p0108.d.ts +0 -6
- package/dist/schematron/peppol/p/peppol-en16931-p0108.d.ts.map +0 -1
- package/dist/schematron/peppol/p/peppol-en16931-p0108.js +0 -15
- package/dist/schematron/peppol/p/peppol-en16931-p0108.js.map +0 -1
- package/dist/schematron/peppol/p/peppol-en16931-p0109.d.ts +0 -6
- package/dist/schematron/peppol/p/peppol-en16931-p0109.d.ts.map +0 -1
- package/dist/schematron/peppol/p/peppol-en16931-p0109.js +0 -15
- package/dist/schematron/peppol/p/peppol-en16931-p0109.js.map +0 -1
- package/dist/schematron/peppol/p/peppol-en16931-p0110.d.ts +0 -6
- package/dist/schematron/peppol/p/peppol-en16931-p0110.d.ts.map +0 -1
- package/dist/schematron/peppol/p/peppol-en16931-p0110.js +0 -15
- package/dist/schematron/peppol/p/peppol-en16931-p0110.js.map +0 -1
- package/dist/schematron/peppol/p/peppol-en16931-p0111.d.ts +0 -6
- package/dist/schematron/peppol/p/peppol-en16931-p0111.d.ts.map +0 -1
- package/dist/schematron/peppol/p/peppol-en16931-p0111.js +0 -15
- package/dist/schematron/peppol/p/peppol-en16931-p0111.js.map +0 -1
- package/dist/schematron/peppol/p/peppol-en16931-p0112.d.ts +0 -6
- package/dist/schematron/peppol/p/peppol-en16931-p0112.d.ts.map +0 -1
- package/dist/schematron/peppol/p/peppol-en16931-p0112.js +0 -19
- package/dist/schematron/peppol/p/peppol-en16931-p0112.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r001.d.ts +0 -9
- package/dist/schematron/peppol/r/peppol-en16931-r001.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r001.js +0 -20
- package/dist/schematron/peppol/r/peppol-en16931-r001.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r002.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r002.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r002.js +0 -15
- package/dist/schematron/peppol/r/peppol-en16931-r002.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r003.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r003.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r003.js +0 -15
- package/dist/schematron/peppol/r/peppol-en16931-r003.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r004.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r004.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r004.js +0 -16
- package/dist/schematron/peppol/r/peppol-en16931-r004.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r005.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r005.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r005.js +0 -15
- package/dist/schematron/peppol/r/peppol-en16931-r005.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r007.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r007.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r007.js +0 -14
- package/dist/schematron/peppol/r/peppol-en16931-r007.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r008.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r008.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r008.js +0 -21
- package/dist/schematron/peppol/r/peppol-en16931-r008.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r010.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r010.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r010.js +0 -15
- package/dist/schematron/peppol/r/peppol-en16931-r010.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r020.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r020.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r020.js +0 -15
- package/dist/schematron/peppol/r/peppol-en16931-r020.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r040.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r040.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r040.js +0 -19
- package/dist/schematron/peppol/r/peppol-en16931-r040.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r041.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r041.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r041.js +0 -15
- package/dist/schematron/peppol/r/peppol-en16931-r041.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r042.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r042.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r042.js +0 -15
- package/dist/schematron/peppol/r/peppol-en16931-r042.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r043.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r043.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r043.js +0 -15
- package/dist/schematron/peppol/r/peppol-en16931-r043.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r044.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r044.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r044.js +0 -15
- package/dist/schematron/peppol/r/peppol-en16931-r044.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r046.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r046.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r046.js +0 -20
- package/dist/schematron/peppol/r/peppol-en16931-r046.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r051.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r051.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r051.js +0 -27
- package/dist/schematron/peppol/r/peppol-en16931-r051.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r053.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r053.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r053.js +0 -15
- package/dist/schematron/peppol/r/peppol-en16931-r053.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r054.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r054.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r054.js +0 -16
- package/dist/schematron/peppol/r/peppol-en16931-r054.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r055.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r055.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r055.js +0 -19
- package/dist/schematron/peppol/r/peppol-en16931-r055.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r061.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r061.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r061.js +0 -20
- package/dist/schematron/peppol/r/peppol-en16931-r061.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r100.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r100.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r100.js +0 -15
- package/dist/schematron/peppol/r/peppol-en16931-r100.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r101.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r101.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r101.js +0 -17
- package/dist/schematron/peppol/r/peppol-en16931-r101.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r110.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r110.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r110.js +0 -20
- package/dist/schematron/peppol/r/peppol-en16931-r110.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r111.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r111.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r111.js +0 -20
- package/dist/schematron/peppol/r/peppol-en16931-r111.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r120.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r120.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r120.js +0 -24
- package/dist/schematron/peppol/r/peppol-en16931-r120.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r121.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r121.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r121.js +0 -18
- package/dist/schematron/peppol/r/peppol-en16931-r121.js.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r130.d.ts +0 -6
- package/dist/schematron/peppol/r/peppol-en16931-r130.d.ts.map +0 -1
- package/dist/schematron/peppol/r/peppol-en16931-r130.js +0 -21
- package/dist/schematron/peppol/r/peppol-en16931-r130.js.map +0 -1
- package/dist/schematron/se/se-r-001.d.ts +0 -6
- package/dist/schematron/se/se-r-001.d.ts.map +0 -1
- package/dist/schematron/se/se-r-001.js +0 -16
- package/dist/schematron/se/se-r-001.js.map +0 -1
- package/dist/schematron/se/se-r-002.d.ts +0 -6
- package/dist/schematron/se/se-r-002.d.ts.map +0 -1
- package/dist/schematron/se/se-r-002.js +0 -16
- package/dist/schematron/se/se-r-002.js.map +0 -1
- package/dist/schematron/se/se-r-003.d.ts +0 -6
- package/dist/schematron/se/se-r-003.d.ts.map +0 -1
- package/dist/schematron/se/se-r-003.js +0 -16
- package/dist/schematron/se/se-r-003.js.map +0 -1
- package/dist/schematron/se/se-r-004.d.ts +0 -6
- package/dist/schematron/se/se-r-004.d.ts.map +0 -1
- package/dist/schematron/se/se-r-004.js +0 -16
- package/dist/schematron/se/se-r-004.js.map +0 -1
- package/dist/schematron/se/se-r-005.d.ts +0 -6
- package/dist/schematron/se/se-r-005.d.ts.map +0 -1
- package/dist/schematron/se/se-r-005.js +0 -17
- package/dist/schematron/se/se-r-005.js.map +0 -1
- package/dist/schematron/se/se-r-006.d.ts +0 -6
- package/dist/schematron/se/se-r-006.d.ts.map +0 -1
- package/dist/schematron/se/se-r-006.js +0 -24
- package/dist/schematron/se/se-r-006.js.map +0 -1
- package/dist/schematron/se/se-r-007.d.ts +0 -6
- package/dist/schematron/se/se-r-007.d.ts.map +0 -1
- package/dist/schematron/se/se-r-007.js +0 -20
- package/dist/schematron/se/se-r-007.js.map +0 -1
- package/dist/schematron/se/se-r-008.d.ts +0 -6
- package/dist/schematron/se/se-r-008.d.ts.map +0 -1
- package/dist/schematron/se/se-r-008.js +0 -20
- package/dist/schematron/se/se-r-008.js.map +0 -1
- package/dist/schematron/se/se-r-009.d.ts +0 -6
- package/dist/schematron/se/se-r-009.d.ts.map +0 -1
- package/dist/schematron/se/se-r-009.js +0 -20
- package/dist/schematron/se/se-r-009.js.map +0 -1
- package/dist/schematron/se/se-r-010.d.ts +0 -6
- package/dist/schematron/se/se-r-010.d.ts.map +0 -1
- package/dist/schematron/se/se-r-010.js +0 -20
- package/dist/schematron/se/se-r-010.js.map +0 -1
- package/dist/schematron/se/se-r-011.d.ts +0 -6
- package/dist/schematron/se/se-r-011.d.ts.map +0 -1
- package/dist/schematron/se/se-r-011.js +0 -19
- package/dist/schematron/se/se-r-011.js.map +0 -1
- package/dist/schematron/se/se-r-012.d.ts +0 -6
- package/dist/schematron/se/se-r-012.d.ts.map +0 -1
- package/dist/schematron/se/se-r-012.js +0 -16
- package/dist/schematron/se/se-r-012.js.map +0 -1
- package/dist/schematron/se/se-r-013.d.ts +0 -6
- package/dist/schematron/se/se-r-013.d.ts.map +0 -1
- package/dist/schematron/se/se-r-013.js +0 -17
- package/dist/schematron/se/se-r-013.js.map +0 -1
- package/dist/schematron/types.d.ts +0 -28
- package/dist/schematron/types.d.ts.map +0 -1
- package/dist/values/additional-document-reference-codes.generated.d.ts +0 -3332
- package/dist/values/additional-document-reference-codes.generated.d.ts.map +0 -1
- package/dist/values/additional-document-reference-codes.generated.js +0 -4149
- package/dist/values/additional-document-reference-codes.generated.js.map +0 -1
- package/dist/values/allowance-charge-reason-codes.generated.d.ts +0 -43
- package/dist/values/allowance-charge-reason-codes.generated.d.ts.map +0 -1
- package/dist/values/allowance-charge-reason-codes.generated.js +0 -61
- package/dist/values/allowance-charge-reason-codes.generated.js.map +0 -1
- package/dist/values/application-response-type-codes.generated.d.ts +0 -27
- package/dist/values/application-response-type-codes.generated.d.ts.map +0 -1
- package/dist/values/application-response-type-codes.generated.js +0 -29
- package/dist/values/application-response-type-codes.generated.js.map +0 -1
- package/dist/values/charge-reason-codes.generated.d.ts +0 -737
- package/dist/values/charge-reason-codes.generated.d.ts.map +0 -1
- package/dist/values/charge-reason-codes.generated.js +0 -914
- package/dist/values/charge-reason-codes.generated.js.map +0 -1
- package/dist/values/country-code.generated.d.ts +0 -275
- package/dist/values/country-code.generated.d.ts.map +0 -1
- package/dist/values/country-code.generated.js +0 -525
- package/dist/values/country-code.generated.js.map +0 -1
- package/dist/values/credit-notes-type-codes.generated.d.ts +0 -44
- package/dist/values/credit-notes-type-codes.generated.d.ts.map +0 -1
- package/dist/values/credit-notes-type-codes.generated.js +0 -48
- package/dist/values/credit-notes-type-codes.generated.js.map +0 -1
- package/dist/values/currency-code.generated.d.ts +0 -203
- package/dist/values/currency-code.generated.d.ts.map +0 -1
- package/dist/values/currency-code.generated.js +0 -381
- package/dist/values/currency-code.generated.js.map +0 -1
- package/dist/values/document-type-codes.generated.d.ts +0 -3172
- package/dist/values/document-type-codes.generated.d.ts.map +0 -1
- package/dist/values/document-type-codes.generated.js +0 -3899
- package/dist/values/document-type-codes.generated.js.map +0 -1
- package/dist/values/document-type.generated.d.ts +0 -1307
- package/dist/values/document-type.generated.d.ts.map +0 -1
- package/dist/values/document-type.generated.js +0 -2425
- package/dist/values/document-type.generated.js.map +0 -1
- package/dist/values/duty-tax-fee-categories.generated.d.ts +0 -68
- package/dist/values/duty-tax-fee-categories.generated.d.ts.map +0 -1
- package/dist/values/duty-tax-fee-categories.generated.js +0 -77
- package/dist/values/duty-tax-fee-categories.generated.js.map +0 -1
- package/dist/values/eas-codes.generated.d.ts +0 -116
- package/dist/values/eas-codes.generated.d.ts.map +0 -1
- package/dist/values/eas-codes.generated.js +0 -209
- package/dist/values/eas-codes.generated.js.map +0 -1
- package/dist/values/icd-codes.generated.d.ts +0 -1229
- package/dist/values/icd-codes.generated.d.ts.map +0 -1
- package/dist/values/icd-codes.generated.js +0 -1468
- package/dist/values/icd-codes.generated.js.map +0 -1
- package/dist/values/invoice-status-codes.generated.d.ts +0 -60
- package/dist/values/invoice-status-codes.generated.d.ts.map +0 -1
- package/dist/values/invoice-status-codes.generated.js +0 -66
- package/dist/values/invoice-status-codes.generated.js.map +0 -1
- package/dist/values/invoice-type-codes.generated.d.ts +0 -137
- package/dist/values/invoice-type-codes.generated.d.ts.map +0 -1
- package/dist/values/invoice-type-codes.generated.js +0 -163
- package/dist/values/invoice-type-codes.generated.js.map +0 -1
- package/dist/values/item-classification-code.generated.d.ts +0 -771
- package/dist/values/item-classification-code.generated.d.ts.map +0 -1
- package/dist/values/item-classification-code.generated.js +0 -955
- package/dist/values/item-classification-code.generated.js.map +0 -1
- package/dist/values/mime-codes.generated.d.ts +0 -30
- package/dist/values/mime-codes.generated.d.ts.map +0 -1
- package/dist/values/mime-codes.generated.js +0 -35
- package/dist/values/mime-codes.generated.js.map +0 -1
- package/dist/values/op-status-action.generated.d.ts +0 -52
- package/dist/values/op-status-action.generated.d.ts.map +0 -1
- package/dist/values/op-status-action.generated.js +0 -58
- package/dist/values/op-status-action.generated.js.map +0 -1
- package/dist/values/op-status-reason.generated.d.ts +0 -81
- package/dist/values/op-status-reason.generated.d.ts.map +0 -1
- package/dist/values/op-status-reason.generated.js +0 -94
- package/dist/values/op-status-reason.generated.js.map +0 -1
- package/dist/values/participant-identifier-schemes.generated.d.ts +0 -1387
- package/dist/values/participant-identifier-schemes.generated.d.ts.map +0 -1
- package/dist/values/participant-identifier-schemes.generated.js +0 -1513
- package/dist/values/participant-identifier-schemes.generated.js.map +0 -1
- package/dist/values/payment-means-codes.generated.d.ts +0 -375
- package/dist/values/payment-means-codes.generated.d.ts.map +0 -1
- package/dist/values/payment-means-codes.generated.js +0 -458
- package/dist/values/payment-means-codes.generated.js.map +0 -1
- package/dist/values/processes.generated.d.ts +0 -30
- package/dist/values/processes.generated.d.ts.map +0 -1
- package/dist/values/processes.generated.js +0 -265
- package/dist/values/processes.generated.js.map +0 -1
- package/dist/values/quantity-unit-codes.generated.d.ts.map +0 -1
- package/dist/values/quantity-unit-codes.generated.js +0 -6712
- package/dist/values/quantity-unit-codes.generated.js.map +0 -1
- package/dist/values/vat-dates.generated.d.ts +0 -27
- package/dist/values/vat-dates.generated.d.ts.map +0 -1
- package/dist/values/vat-dates.generated.js +0 -29
- package/dist/values/vat-dates.generated.js.map +0 -1
- package/dist/values/vatex-codes.generated.d.ts +0 -344
- package/dist/values/vatex-codes.generated.d.ts.map +0 -1
- package/dist/values/vatex-codes.generated.js +0 -431
- package/dist/values/vatex-codes.generated.js.map +0 -1
- package/dist/xml/builder-options.d.ts +0 -16
- package/dist/xml/builder-options.d.ts.map +0 -1
- package/dist/xml/builder-options.js +0 -10
- package/dist/xml/builder-options.js.map +0 -1
- package/dist/xml/common-xml-options.js +0 -18
- package/dist/xml/common-xml-options.js.map +0 -1
- package/dist/xml/parser-options.d.ts +0 -16
- package/dist/xml/parser-options.d.ts.map +0 -1
- package/dist/xml/parser-options.js +0 -7
- package/dist/xml/parser-options.js.map +0 -1
- package/src/effect/values/process-xml-identifier-schema.ts +0 -21
package/dist/index.js
CHANGED
|
@@ -1,135 +1,3374 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
1
|
+
import { a as countryCodes, c as chargeReasonCodesKeys, d as currencyCodes, f as currencyCodesKeys, i as vatDateCodesKeys, l as allowanceChargeReasonCodes, m as mimeCodesKeys, n as electronicAddressCodesKeys, o as countryCodesKeys, p as mimeCodes, r as vatDateCodes, s as chargeReasonCodes, t as electronicAddressCodes, u as allowanceChargeReasonCodesKeys } from "./eas-codes.generated-D8jjHFij.js";
|
|
2
|
+
import { A as invoiceTypeCodes, B as dutyTaxFeeCategories, C as opStatusActionKeys, D as documentTypeCodesKeys, E as documentTypeCodes, F as itemClassificationCodesKeys, H as additionalDocumentReferenceCodes, I as paymentMeansCodes, L as paymentMeansCodesKeys, M as quantityUnitCodes, N as quantityUnitCodesKeys, O as creditNoteTypeCodes, P as itemClassificationCodes, R as icdCodes, S as opStatusAction, T as applicationResponseTypeCodesKeys, U as additionalDocumentReferenceCodesKeys, V as dutyTaxFeeCategoriesKeys, _ as processesKeys, a as participantIdentifierSchemesKeys, b as opStatusReason, c as invoiceStatusCodesKeys, d as documentTypesProcessIds, f as documentTypesScheme, g as processes, h as deprecatedProcesses, i as participantIdentifierSchemes, j as invoiceTypeCodesKeys, k as creditNoteTypeCodesKeys, l as deprecatedDocumentTypes, m as documentTypesTableKeys, n as vatexCodesKeys, o as participantIdentifierSchemesValidations, p as documentTypesTable, r as deprecatedParticipantIdentifierSchemes, s as invoiceStatusCodes, t as vatexCodes, u as documentTypesList, v as processesList, w as applicationResponseTypeCodes, x as opStatusReasonKeys, y as processesScheme, z as icdCodesKeys } from "./vatex-codes.generated-BSgP3n5t.js";
|
|
3
|
+
import { S as MESSAGE_LEVEL_RESPONSE_PROFILE_ID, _ as decodeCreditNote, a as getCreditNoteTypeCodeDescription, b as invoiceResponseCodeNotNeedsSchema, c as quantityUnitCodeToIntlUnit, d as encodeInvoiceResponse, f as encodeInvoice, g as decodeInvoice, h as decodeInvoiceResponse, i as getInvoiceTypeCodeDescription, l as encodeMessageLevelResponse, m as decodeMessageLevelResponse, n as isValidInvoiceTypeCode, o as formatQuantityWithUnit, p as encodeCreditNote, r as isValidCreditNoteTypeCode, s as quantityToIntlUnitMap, t as isValidProcess, u as PeppolDecodeError, v as strOrUnd, x as invoiceResponseCodeNeedsSchema, y as INVOICE_RESPONSE_PROFILE_ID } from "./is-valid-process-CSWL-q9f.js";
|
|
4
|
+
import { n as builderOptions, t as parserOptions } from "./parser-options-mbqEQPSY.js";
|
|
5
|
+
import { t as isValidMod97_0208 } from "./is-valid-mod97-0208-CzMOXMO-.js";
|
|
6
|
+
import "./values.js";
|
|
7
|
+
import { Effect, Record } from "effect";
|
|
8
|
+
import XMLBuilder from "fast-xml-builder";
|
|
9
|
+
import { XMLParser } from "fast-xml-parser";
|
|
10
|
+
import * as z from "zod/mini";
|
|
11
|
+
import { tz } from "@date-fns/tz";
|
|
12
|
+
import { format, parse } from "date-fns";
|
|
13
|
+
//#region src/constants/document-scheme.ts
|
|
14
|
+
const documentScheme = "busdox-docid-qns";
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/constants/credit-note-doctype-id.ts
|
|
17
|
+
const CREDIT_NOTE_DOCTYPE_ID = `${documentScheme}::urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2::CreditNote##urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0::2.1`;
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/constants/process-scheme.ts
|
|
20
|
+
const processScheme = "cenbii-procid-ubl";
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/constants/credit-note-process-id.ts
|
|
23
|
+
const CREDIT_NOTE_PROCESS_ID = `${processScheme}::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0`;
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/constants/invoice-doctype-id.ts
|
|
26
|
+
const INVOICE_DOCTYPE_ID = `${documentScheme}::urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0::2.1`;
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/constants/invoice-process-id.ts
|
|
29
|
+
const INVOICE_PROCESS_ID = `${processScheme}::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0`;
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/constants/invoice-response-doctype-id.ts
|
|
32
|
+
const INVOICE_RESPONSE_DOCTYPE_ID = `${documentScheme}::urn:oasis:names:specification:ubl:schema:xsd:ApplicationResponse-2::ApplicationResponse##urn:fdc:peppol.eu:poacc:trns:invoice_response:3::2.1`;
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/constants/invoice-response-process-id.ts
|
|
35
|
+
const INVOICE_RESPONSE_PROCESS_ID = `${processScheme}::${INVOICE_RESPONSE_PROFILE_ID}`;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/constants/message-level-response-doctype-id.ts
|
|
38
|
+
const MESSAGE_LEVEL_RESPONSE_DOCTYPE_ID = `${documentScheme}::urn:oasis:names:specification:ubl:schema:xsd:ApplicationResponse-2::ApplicationResponse##urn:fdc:peppol.eu:poacc:trns:mlr:3::2.1`;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/constants/message-level-response-process-id.ts
|
|
41
|
+
const MESSAGE_LEVEL_RESPONSE_PROCESS_ID = `${processScheme}::${MESSAGE_LEVEL_RESPONSE_PROFILE_ID}`;
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/constants/participant-scheme.ts
|
|
44
|
+
const PARTICIPANT_SCHEME = "iso6523-actorid-upis";
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated use `PARTICIPANT_SCHEME` instead.
|
|
47
|
+
*/
|
|
48
|
+
const participantScheme = PARTICIPANT_SCHEME;
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/constants/transport-profile.ts
|
|
51
|
+
const transportProfile = "peppol-transport-as4-v2_0";
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/invoice-response-codes/invoice-response-codes-order.ts
|
|
54
|
+
const invoiceResponseCodesOrder = {
|
|
55
|
+
AB: [
|
|
56
|
+
"IP",
|
|
57
|
+
"UQ",
|
|
58
|
+
"AP",
|
|
59
|
+
"CA",
|
|
60
|
+
"PD",
|
|
61
|
+
"RE"
|
|
62
|
+
],
|
|
63
|
+
AP: ["PD"],
|
|
64
|
+
CA: ["PD"],
|
|
65
|
+
IP: [
|
|
66
|
+
"UQ",
|
|
67
|
+
"CA",
|
|
68
|
+
"AP",
|
|
69
|
+
"PD",
|
|
70
|
+
"RE"
|
|
71
|
+
],
|
|
72
|
+
PD: [],
|
|
73
|
+
RE: [],
|
|
74
|
+
UQ: [
|
|
75
|
+
"CA",
|
|
76
|
+
"AP",
|
|
77
|
+
"RE"
|
|
78
|
+
]
|
|
79
|
+
};
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/schemas/utils/base-64.ts
|
|
82
|
+
const BASE64_RE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;
|
|
83
|
+
const base64Schema = z.string().check(z.refine((val) => {
|
|
84
|
+
const stripped = val.replace(/\r?\n/g, "");
|
|
85
|
+
return BASE64_RE.test(stripped);
|
|
86
|
+
}, { error: "Invalid base64" }));
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region src/schemas/values/mime-code.ts
|
|
89
|
+
/**
|
|
90
|
+
* @description Validates a MIME media type against the PEPPOL MIME code list.
|
|
91
|
+
*
|
|
92
|
+
* @param error - The custom error message to use when validation fails.
|
|
93
|
+
*
|
|
94
|
+
* @returns A Zod string schema that accepts only valid MIME types.
|
|
95
|
+
*
|
|
96
|
+
* @validations
|
|
97
|
+
* - PEPPOL-EN16931-CL001: Attachment (MIME) type MUST come from the allowed list.
|
|
98
|
+
*
|
|
99
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/MimeCode/
|
|
100
|
+
*/
|
|
101
|
+
function mimeCodesSchema(error) {
|
|
102
|
+
return z.string().check(z.refine((val) => mimeCodesKeys.includes(val), error));
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/schemas/fields/binary-object-schema.ts
|
|
106
|
+
/**
|
|
107
|
+
* @summary Binary object for attachments
|
|
108
|
+
*
|
|
109
|
+
* @name cbc:EmbeddedDocumentBinaryObject (+ @mimeCode, @filename)
|
|
110
|
+
*/
|
|
111
|
+
const binaryObjectSchema = z.object({
|
|
112
|
+
/**
|
|
113
|
+
* @description An attached document embedded as binary object (Base64) or sent together with the invoice.
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* aHR0cHM6Ly90ZXN0LXZlZmEuZGlmaS5uby9wZXBwb2xiaXMvcG9hY2MvYmlsbGluZy8zLjAvYmlzLw==
|
|
117
|
+
*
|
|
118
|
+
* @summary Attached document
|
|
119
|
+
*
|
|
120
|
+
* @name `#text` (Base64 content)
|
|
121
|
+
*/
|
|
122
|
+
content: z.union([
|
|
123
|
+
z.base64(),
|
|
124
|
+
z.base64url(),
|
|
125
|
+
base64Schema
|
|
126
|
+
]),
|
|
127
|
+
/**
|
|
128
|
+
* @description The mime code of the attached document.
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* text / csv;
|
|
132
|
+
*
|
|
133
|
+
* @summary Attached document Mime code
|
|
134
|
+
*
|
|
135
|
+
* @name `@mimeCode`
|
|
136
|
+
*/
|
|
137
|
+
mimeCode: mimeCodesSchema("PEPPOL-EN16931-CL001: Mime code must be according to subset of IANA code list."),
|
|
138
|
+
/**
|
|
139
|
+
* @description The file name of the attached document.
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* Hours - spent.csv;
|
|
143
|
+
*
|
|
144
|
+
* @summary Attached document Filename
|
|
145
|
+
*
|
|
146
|
+
* @name `@filename`
|
|
147
|
+
*/
|
|
148
|
+
filename: z.string()
|
|
149
|
+
});
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region src/schemas/fields/identifier-schema.ts
|
|
152
|
+
/**
|
|
153
|
+
* @summary Identifier with optional scheme
|
|
154
|
+
*
|
|
155
|
+
* @name `cbc:ID (+ optional @schemeID)`
|
|
156
|
+
*/
|
|
157
|
+
function identifierSchema(message) {
|
|
158
|
+
return z.object({
|
|
159
|
+
/**
|
|
160
|
+
* @name cbc:ID
|
|
161
|
+
*/
|
|
162
|
+
id: z.string(),
|
|
163
|
+
/**
|
|
164
|
+
* @name `@schemeID`
|
|
165
|
+
*/
|
|
166
|
+
schemeId: z.optional(z.string())
|
|
167
|
+
}, message);
|
|
168
|
+
}
|
|
169
|
+
//#endregion
|
|
170
|
+
//#region src/schemas/values/additional-document-reference-code.ts
|
|
171
|
+
/**
|
|
172
|
+
* @description Validates an additional document reference code against the PEPPOL subset of UNCL 1153 (reference qualifiers).
|
|
173
|
+
*
|
|
174
|
+
* @param error - The custom error message to use when validation fails. Defaults to Zod's generic message.
|
|
175
|
+
*
|
|
176
|
+
* @returns A Zod string schema that accepts only valid additional document reference codes.
|
|
177
|
+
*
|
|
178
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL1153/
|
|
179
|
+
* @see {@link additionalDocumentReferenceCodesKeys}
|
|
180
|
+
*/
|
|
181
|
+
function additionalDocumentReferenceCodeSchema(error) {
|
|
182
|
+
return z.string(error).check(z.refine((val) => additionalDocumentReferenceCodesKeys.includes(val), error));
|
|
183
|
+
}
|
|
184
|
+
//#endregion
|
|
185
|
+
//#region src/schemas/fields/additional-document-reference-schema.ts
|
|
186
|
+
/**
|
|
187
|
+
* @description A group of business terms providing information about additional supporting documents substantiating the claims made in the Invoice. The additional
|
|
188
|
+
* supporting documents can be used for both referencing a document number which is expected to be known by the receiver, an external document
|
|
189
|
+
* (referenced by a URL) or as an embedded document, Base64 encoded (such as a time report).
|
|
190
|
+
*
|
|
191
|
+
* @summary ADDITIONAL SUPPORTING DOCUMENTS
|
|
192
|
+
*
|
|
193
|
+
* @name `cac:AdditionalDocumentReference`
|
|
194
|
+
*/
|
|
195
|
+
const additionalDocumentReferenceSchema = z.extend(identifierSchema(), {
|
|
196
|
+
/**
|
|
197
|
+
* @description An identifier for an object on which the invoice is based (with DocumentTypeCode=130), given by the Seller, the identifier for the supporting
|
|
198
|
+
* document or the project reference identifier (DocumentTypeCode=50).
|
|
199
|
+
*
|
|
200
|
+
* @summary Invoiced object identifier, Supporting document reference or project reference
|
|
201
|
+
*
|
|
202
|
+
* @name `cbc:ID`
|
|
203
|
+
*/
|
|
204
|
+
id: z.object({
|
|
205
|
+
/**
|
|
206
|
+
* @description An identifier for an object on which the invoice is based (with DocumentTypeCode=130), given by the Seller, the identifier for the supporting
|
|
207
|
+
* document or the project reference identifier (DocumentTypeCode=50).
|
|
208
|
+
*
|
|
209
|
+
* @summary Invoiced object identifier, Supporting document reference or project reference
|
|
210
|
+
*
|
|
211
|
+
* @name `#text`
|
|
212
|
+
*/
|
|
213
|
+
id: z.string(),
|
|
214
|
+
/**
|
|
215
|
+
* @description The identification scheme identifier of the Invoiced object identifier.
|
|
216
|
+
*
|
|
217
|
+
* @summary Scheme identifier
|
|
218
|
+
*
|
|
219
|
+
* @name `@schemeID`
|
|
220
|
+
*/
|
|
221
|
+
schemeId: z.optional(additionalDocumentReferenceCodeSchema())
|
|
222
|
+
}),
|
|
223
|
+
/**
|
|
224
|
+
* @remarks
|
|
225
|
+
* Code "130" MUST be used to indicate an invoice object reference and code "50" for project reference. Element is not used for other additional
|
|
226
|
+
* documents.
|
|
227
|
+
*
|
|
228
|
+
* @default 130
|
|
229
|
+
*
|
|
230
|
+
* @summary Document type code
|
|
231
|
+
*
|
|
232
|
+
* @name `cbc:DocumentTypeCode`
|
|
233
|
+
*/
|
|
234
|
+
documentTypeCode: z.optional(z.string()),
|
|
235
|
+
/**
|
|
236
|
+
* @description A description of the supporting document, such as timesheet, usage report, etc.
|
|
237
|
+
*
|
|
238
|
+
* @example
|
|
239
|
+
* Time list
|
|
240
|
+
*
|
|
241
|
+
* @summary Supporting document description
|
|
242
|
+
*
|
|
243
|
+
* @name `cbc:DocumentDescription`
|
|
244
|
+
*/
|
|
245
|
+
documentDescription: z.optional(z.string()),
|
|
246
|
+
/**
|
|
247
|
+
* @summary Attachment
|
|
248
|
+
*
|
|
249
|
+
* @name `cac:Attachment`
|
|
250
|
+
*/
|
|
251
|
+
attachment: z.optional(z.object({
|
|
252
|
+
/**
|
|
253
|
+
* @description An attached document embedded as binary object (Base64) or sent together with the invoice.
|
|
254
|
+
*
|
|
255
|
+
* @example
|
|
256
|
+
* ```base64
|
|
257
|
+
* aHR0cHM6Ly90ZXN0LXZlZmEuZGlmaS5uby9wZXBwb2xiaXMvcG9hY2MvYmlsbGluZy8zLjAvYmlzLw==
|
|
258
|
+
* ```;
|
|
259
|
+
*
|
|
260
|
+
* @summary Attached document
|
|
261
|
+
*
|
|
262
|
+
* @name `cbc:EmbeddedDocumentBinaryObject`
|
|
263
|
+
*/
|
|
264
|
+
embeddedDocumentBinaryObject: z.optional(binaryObjectSchema),
|
|
265
|
+
/**
|
|
266
|
+
* @summary EXTERNAL REFERENCE
|
|
267
|
+
*
|
|
268
|
+
* @name `cac:ExternalReference`
|
|
269
|
+
*/
|
|
270
|
+
externalReference: z.optional(z.object({
|
|
271
|
+
/**
|
|
272
|
+
* @description The URL (Uniform Resource Locator) that identifies where the external document is located. A means of locating the resource, including
|
|
273
|
+
* its primary access mechanism, e.g. http:// or ftp://.
|
|
274
|
+
*
|
|
275
|
+
* @example
|
|
276
|
+
* `http://www.example.com/index.html`;
|
|
277
|
+
*
|
|
278
|
+
* @summary External document location
|
|
279
|
+
*
|
|
280
|
+
* @name `cbc:URI`
|
|
281
|
+
*/
|
|
282
|
+
uri: z.string() }))
|
|
283
|
+
}))
|
|
284
|
+
});
|
|
285
|
+
//#endregion
|
|
286
|
+
//#region src/schemas/values/currency-codes.ts
|
|
287
|
+
/**
|
|
288
|
+
* @description Currency codes as defined by ISO 4217.
|
|
289
|
+
*
|
|
290
|
+
* @see https://www.iso.org/iso-4217-currency-codes.html
|
|
291
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/ISO4217/
|
|
292
|
+
*/
|
|
293
|
+
/**
|
|
294
|
+
* @description Validates an ISO 4217 currency code against the PEPPOL codelist.
|
|
295
|
+
*
|
|
296
|
+
* @param error - The custom error message to use when validation fails.
|
|
297
|
+
*
|
|
298
|
+
* @returns A Zod string schema that accepts only valid currency codes.
|
|
299
|
+
*
|
|
300
|
+
* @validations
|
|
301
|
+
* - PEPPOL-EN16931-CL007: Currency codes MUST be valid ISO 4217 codes.
|
|
302
|
+
*
|
|
303
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/ISO4217/
|
|
304
|
+
*/
|
|
305
|
+
function currencyCodeSchema(error) {
|
|
306
|
+
return z.string().check(z.refine((val) => currencyCodesKeys.includes(val), error));
|
|
307
|
+
}
|
|
308
|
+
//#endregion
|
|
309
|
+
//#region src/schemas/fields/amount-schema.ts
|
|
310
|
+
/**
|
|
311
|
+
* @summary Monetary amount with mandatory currency
|
|
312
|
+
*
|
|
313
|
+
* @name cbc:* (+ @currencyID)
|
|
314
|
+
*/
|
|
315
|
+
const amountSchema = z.object({
|
|
316
|
+
/**
|
|
317
|
+
* @name \@currencyID
|
|
318
|
+
*/
|
|
319
|
+
currencyId: currencyCodeSchema(),
|
|
320
|
+
/**
|
|
321
|
+
* @name #text (value)
|
|
322
|
+
*/
|
|
323
|
+
value: z.number()
|
|
324
|
+
});
|
|
325
|
+
//#endregion
|
|
326
|
+
//#region src/schemas/fields/line-price-allowance-charge-schema.ts
|
|
327
|
+
const priceAllowanceChargeSchema = z.object({
|
|
328
|
+
/**
|
|
329
|
+
* @example
|
|
330
|
+
* 200;
|
|
331
|
+
*
|
|
332
|
+
* @name cbc:Amount (+ @currencyID)
|
|
333
|
+
*/
|
|
334
|
+
amount: amountSchema,
|
|
335
|
+
/**
|
|
336
|
+
* @example
|
|
337
|
+
* 1000;
|
|
338
|
+
*
|
|
339
|
+
* @name cbc:BaseAmount (+ @currencyID)
|
|
340
|
+
*/
|
|
341
|
+
baseAmount: z.optional(amountSchema),
|
|
342
|
+
/**
|
|
343
|
+
* @name cbc:ChargeIndicator
|
|
344
|
+
*
|
|
345
|
+
* @value false
|
|
346
|
+
*/
|
|
347
|
+
chargeIndicator: z.boolean()
|
|
348
|
+
});
|
|
349
|
+
const linePriceAllowanceChargeSchema = z.safeExtend(priceAllowanceChargeSchema, { chargeIndicator: z.literal(false, "PEPPOL-EN16931-R044: Charge on price level is NOT allowed. Only value 'false' allowed.") });
|
|
350
|
+
//#endregion
|
|
351
|
+
//#region src/schemas/values/allowance-charge-reason-code.ts
|
|
352
|
+
/**
|
|
353
|
+
* @description Validates an allowance or charge reason code against the PEPPOL subset of UNCL 5189 (D.16B).
|
|
354
|
+
*
|
|
355
|
+
* @param error - The custom error message to use when validation fails.
|
|
356
|
+
*
|
|
357
|
+
* @returns A Zod string schema that accepts only valid allowance/charge reason codes.
|
|
358
|
+
*
|
|
359
|
+
* @validations
|
|
360
|
+
* - PEPPOL-EN16931-CL002: Document allowance reason code MUST be according to the subset of UNCL 5189 D.16B.
|
|
361
|
+
*
|
|
362
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL5189/
|
|
363
|
+
*/
|
|
364
|
+
function allowanceChargeReasonCodeSchema(error) {
|
|
365
|
+
return z.string(error).check(z.refine((val) => allowanceChargeReasonCodesKeys.includes(val), error));
|
|
366
|
+
}
|
|
367
|
+
//#endregion
|
|
368
|
+
//#region src/schemas/values/charge-reason-code.ts
|
|
369
|
+
/**
|
|
370
|
+
* @description Validates a charge reason code against the PEPPOL subset of UNCL 7161 (D.16B).
|
|
371
|
+
*
|
|
372
|
+
* @param error - The custom error message to use when validation fails.
|
|
373
|
+
*
|
|
374
|
+
* @returns A Zod string schema that accepts only valid charge reason codes.
|
|
375
|
+
*
|
|
376
|
+
* @validations
|
|
377
|
+
* - PEPPOL-EN16931-CL003: Charge reason code MUST be according to UNCL 7161 D.16B.
|
|
378
|
+
*
|
|
379
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL7161/
|
|
380
|
+
*/
|
|
381
|
+
function chargeReasonCodeSchema(error) {
|
|
382
|
+
return z.string(error).check(z.refine((val) => chargeReasonCodesKeys.includes(val), error));
|
|
383
|
+
}
|
|
384
|
+
//#endregion
|
|
385
|
+
//#region src/schemas/fields/line-allowance-charge-schema.ts
|
|
386
|
+
const baseLineAllowanceChargeSchema = z.extend(priceAllowanceChargeSchema, {
|
|
387
|
+
/**
|
|
388
|
+
* @example
|
|
389
|
+
* Discount;
|
|
390
|
+
*
|
|
391
|
+
* @name cbc:AllowanceChargeReason
|
|
392
|
+
*/
|
|
393
|
+
allowanceChargeReason: z.optional(z.string()),
|
|
394
|
+
/**
|
|
395
|
+
* @example
|
|
396
|
+
* 20;
|
|
397
|
+
*
|
|
398
|
+
* @name cbc:MultiplierFactorNumeric
|
|
399
|
+
*/
|
|
400
|
+
multiplierFactorNumeric: z.optional(z.number())
|
|
401
|
+
});
|
|
402
|
+
const lineAllowanceChargeSchema = z.discriminatedUnion("chargeIndicator", [z.extend(baseLineAllowanceChargeSchema, {
|
|
403
|
+
/**
|
|
404
|
+
* @name cbc:AllowanceChargeReasonCode
|
|
405
|
+
*/
|
|
406
|
+
allowanceChargeReasonCode: z.optional(allowanceChargeReasonCodeSchema("PEPPOL-EN16931-CL002: Reason code MUST be according to subset of UNCL 5189 D.16B.")),
|
|
407
|
+
/**
|
|
408
|
+
* @name cbc:ChargeIndicator
|
|
409
|
+
*
|
|
410
|
+
* @value false
|
|
411
|
+
*/
|
|
412
|
+
chargeIndicator: z.literal(false, "PEPPOL-EN16931-R043: Allowance/charge ChargeIndicator value MUST equal 'true' or 'false'")
|
|
413
|
+
}), z.extend(baseLineAllowanceChargeSchema, {
|
|
414
|
+
/**
|
|
415
|
+
* @name cbc:AllowanceChargeReasonCode
|
|
416
|
+
*/
|
|
417
|
+
allowanceChargeReasonCode: z.optional(chargeReasonCodeSchema("PEPPOL-EN16931-CL003: Reason code MUST be according to UNCL 7161 D.16B.")),
|
|
418
|
+
/**
|
|
419
|
+
* @name cbc:ChargeIndicator
|
|
420
|
+
*
|
|
421
|
+
* @value false
|
|
422
|
+
*/
|
|
423
|
+
chargeIndicator: z.literal(true, "PEPPOL-EN16931-R043: Allowance/charge ChargeIndicator value MUST equal 'true' or 'false'")
|
|
424
|
+
})], "unable to decode line allowance charge");
|
|
425
|
+
//#endregion
|
|
426
|
+
//#region src/schemas/values/duty-tax-fee-cateogries.ts
|
|
427
|
+
/**
|
|
428
|
+
* @description Validates a duty, tax or fee category code against the PEPPOL subset of UNCL 5305 (VAT category code).
|
|
429
|
+
*
|
|
430
|
+
* @param error - The custom error message to use when validation fails.
|
|
431
|
+
*
|
|
432
|
+
* @returns A Zod string schema that accepts only valid duty/tax/fee category codes.
|
|
433
|
+
*
|
|
434
|
+
* @validations
|
|
435
|
+
* - BR-CL-17 / BR-CL-18: VAT category code MUST be a valid UNCL 5305 code.
|
|
436
|
+
*
|
|
437
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL5305/
|
|
438
|
+
*/
|
|
439
|
+
function dutyTaxFeeCategorySchema(error) {
|
|
440
|
+
return z.string().check(z.refine((val) => dutyTaxFeeCategoriesKeys.includes(val), error));
|
|
441
|
+
}
|
|
442
|
+
//#endregion
|
|
443
|
+
//#region src/schemas/fields/tax-category-schema.ts
|
|
444
|
+
/**
|
|
445
|
+
* @description A group of business terms providing information about the VAT applicable for the goods and services invoiced on the Invoice line.
|
|
446
|
+
*
|
|
447
|
+
* @summary LINE VAT INFORMATION
|
|
448
|
+
*
|
|
449
|
+
* @name `cac:TaxCategory`
|
|
450
|
+
*/
|
|
451
|
+
const taxCategorySchema = z.object({
|
|
452
|
+
/**
|
|
453
|
+
* @description The VAT category code for the invoiced item.
|
|
454
|
+
*
|
|
455
|
+
* @summary Invoiced item VAT category code
|
|
456
|
+
*
|
|
457
|
+
* @name `cbc:ID`
|
|
458
|
+
*/ id: dutyTaxFeeCategorySchema(),
|
|
459
|
+
/**
|
|
460
|
+
* @description The VAT rate, represented as percentage that applies to the invoiced item.
|
|
461
|
+
*
|
|
462
|
+
* @summary Invoiced item VAT rate
|
|
463
|
+
*
|
|
464
|
+
* @name `cbc:Percent`
|
|
465
|
+
*/
|
|
466
|
+
percent: z.optional(z.number()),
|
|
467
|
+
/**
|
|
468
|
+
* @default VAT
|
|
469
|
+
*
|
|
470
|
+
* @name `cac:TaxScheme`
|
|
471
|
+
*/
|
|
472
|
+
taxSchemeId: z.object({
|
|
473
|
+
/**
|
|
474
|
+
* @name `cbc:ID`
|
|
475
|
+
*/
|
|
476
|
+
id: z._default(z.string(), "VAT") })
|
|
477
|
+
});
|
|
478
|
+
//#endregion
|
|
479
|
+
//#region src/schemas/fields/allowance-charge-schema.ts
|
|
480
|
+
const baseAllowanceChargeSchema = z.extend(baseLineAllowanceChargeSchema, {
|
|
481
|
+
/**
|
|
482
|
+
* @summary TAX CATEGORY
|
|
483
|
+
*
|
|
484
|
+
* @name cac:TaxCategory
|
|
485
|
+
*/
|
|
486
|
+
taxCategory: z.optional(z.extend(taxCategorySchema, {
|
|
487
|
+
/**
|
|
488
|
+
* @description A coded identification of what VAT category applies to the document level allowance or charge.
|
|
489
|
+
*
|
|
490
|
+
* @summary Document level allowance or charge VAT category code
|
|
491
|
+
*
|
|
492
|
+
* @name `cbc:ID`
|
|
493
|
+
*/
|
|
494
|
+
id: dutyTaxFeeCategorySchema(),
|
|
495
|
+
/**
|
|
496
|
+
* @description The VAT rate, represented as percentage that applies to the document level allowance or charge.
|
|
497
|
+
*
|
|
498
|
+
* @summary Document level allowance or charge VAT rate
|
|
499
|
+
*
|
|
500
|
+
* @name `cbc:Percent`
|
|
501
|
+
*/
|
|
502
|
+
percent: z.optional(z.number()),
|
|
503
|
+
/**
|
|
504
|
+
* @default VAT
|
|
505
|
+
*
|
|
506
|
+
* @name `cac:TaxScheme`
|
|
507
|
+
*/
|
|
508
|
+
taxSchemeId: z.object({
|
|
509
|
+
/**
|
|
510
|
+
* @description Mandatory element. Use "VAT"
|
|
511
|
+
*
|
|
512
|
+
* @name `cbc:ID`
|
|
513
|
+
*/
|
|
514
|
+
id: z._default(z.string(), "VAT") })
|
|
515
|
+
})) });
|
|
516
|
+
/**
|
|
517
|
+
* @summary Allowance/Charge
|
|
518
|
+
*
|
|
519
|
+
* @name cac:AllowanceCharge
|
|
520
|
+
*/
|
|
521
|
+
const allowanceChargeSchema = z.discriminatedUnion("chargeIndicator", [z.extend(baseAllowanceChargeSchema, {
|
|
522
|
+
/**
|
|
523
|
+
* @name cbc:AllowanceChargeReasonCode
|
|
524
|
+
*/
|
|
525
|
+
allowanceChargeReasonCode: z.optional(allowanceChargeReasonCodeSchema("PEPPOL-EN16931-CL002: Reason code MUST be according to subset of UNCL 5189 D.16B.")),
|
|
526
|
+
/**
|
|
527
|
+
* @name cbc:ChargeIndicator
|
|
528
|
+
*
|
|
529
|
+
* @value false
|
|
530
|
+
*/
|
|
531
|
+
chargeIndicator: z.literal(false, "PEPPOL-EN16931-R043: Allowance/charge ChargeIndicator value MUST equal 'true' or 'false'")
|
|
532
|
+
}), z.extend(baseAllowanceChargeSchema, {
|
|
533
|
+
/**
|
|
534
|
+
* @name cbc:AllowanceChargeReasonCode
|
|
535
|
+
*/
|
|
536
|
+
allowanceChargeReasonCode: z.optional(chargeReasonCodeSchema("PEPPOL-EN16931-CL003: Reason code MUST be according to UNCL 7161 D.16B.")),
|
|
537
|
+
/**
|
|
538
|
+
* @name cbc:ChargeIndicator
|
|
539
|
+
*
|
|
540
|
+
* @value false
|
|
541
|
+
*/
|
|
542
|
+
chargeIndicator: z.literal(true, "PEPPOL-EN16931-R043: Allowance/charge ChargeIndicator value MUST equal 'true' or 'false'")
|
|
543
|
+
})], "unable to decode allowance charge");
|
|
544
|
+
//#endregion
|
|
545
|
+
//#region src/schemas/fields/billing-references-schema.ts
|
|
546
|
+
/**
|
|
547
|
+
* @summary PRECEDING INVOICE REFERENCE (0..n)
|
|
548
|
+
*
|
|
549
|
+
* @name cac:BillingReference
|
|
550
|
+
*/
|
|
551
|
+
const billingReferenceSchema = z.object({
|
|
552
|
+
/**
|
|
553
|
+
* @example
|
|
554
|
+
* inv123;
|
|
555
|
+
*
|
|
556
|
+
* @summary INVOICE DOCUMENT REFERENCE
|
|
557
|
+
*
|
|
558
|
+
* @name `cac:InvoiceDocumentReference`
|
|
559
|
+
*/
|
|
560
|
+
invoiceDocumentReference: z.object({
|
|
561
|
+
/**
|
|
562
|
+
* @description The identification of an Invoice that was previously sent by the seller.
|
|
563
|
+
*
|
|
564
|
+
* @example
|
|
565
|
+
* `inv123`;
|
|
566
|
+
*
|
|
567
|
+
* @summary Preceding invoice number
|
|
568
|
+
*
|
|
569
|
+
* @name `cbc:ID`
|
|
570
|
+
*/
|
|
571
|
+
id: z.string(),
|
|
572
|
+
/**
|
|
573
|
+
* @description The date when the preceding invoice was issued. Shall be provided in case the preceding invoice identifier is not unique.
|
|
574
|
+
*
|
|
575
|
+
* @example
|
|
576
|
+
* `2017-09-15`;
|
|
577
|
+
*
|
|
578
|
+
* @summary Preceding invoice issue date
|
|
579
|
+
*
|
|
580
|
+
* @format `YYYY-MM-DD`
|
|
581
|
+
*
|
|
582
|
+
* @name `cbc:IssueDate`
|
|
583
|
+
*/
|
|
584
|
+
issueDate: z.optional(z.iso.date())
|
|
585
|
+
}) });
|
|
586
|
+
//#endregion
|
|
587
|
+
//#region src/schemas/fields/default-customization-id.ts
|
|
588
|
+
const DEFAULT_CUSTOMIZATION_ID = "urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0";
|
|
589
|
+
//#endregion
|
|
590
|
+
//#region src/schemas/fields/default-profile-id.ts
|
|
591
|
+
const DEFAULT_PROFILE_ID = "urn:fdc:peppol.eu:2017:poacc:billing:01:1.0";
|
|
592
|
+
//#endregion
|
|
593
|
+
//#region src/schemas/values/country-code.ts
|
|
594
|
+
/**
|
|
595
|
+
* @description ISO 3166-1 alpha-2 country codes with additional entries These codes identify countries and territories worldwide.
|
|
596
|
+
*
|
|
597
|
+
* @module schemas/values/country-code
|
|
598
|
+
*
|
|
599
|
+
* @see https://www.iso.org/iso-3166-country-codes.html
|
|
600
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/ISO3166/
|
|
601
|
+
*/
|
|
602
|
+
/**
|
|
603
|
+
* @description Validates a two character ISO 3166-1 alpha-2 country code against the PEPPOL codelist.
|
|
604
|
+
*
|
|
605
|
+
* @returns A Zod string schema that accepts only valid country codes.
|
|
606
|
+
*
|
|
607
|
+
* @validations
|
|
608
|
+
* - BR-CL-14 / BR-CL-15: Country code MUST be a valid ISO 3166-1 alpha-2 code.
|
|
609
|
+
*
|
|
610
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/ISO3166/
|
|
611
|
+
*/
|
|
612
|
+
const countryCodeSchema = z.string().check(z.length(2), z.refine((val) => countryCodesKeys.includes(val)));
|
|
613
|
+
//#endregion
|
|
614
|
+
//#region src/schemas/fields/address-schema.ts
|
|
615
|
+
/**
|
|
616
|
+
* @summary Postal address
|
|
617
|
+
*
|
|
618
|
+
* @name `cac:PostalAddress`
|
|
619
|
+
*/
|
|
620
|
+
const addressSchema = z.object({
|
|
621
|
+
/**
|
|
622
|
+
* @description The main address line in an address.
|
|
623
|
+
*
|
|
624
|
+
* @example
|
|
625
|
+
* Main Street 1
|
|
626
|
+
*
|
|
627
|
+
* @summary Address line 1
|
|
628
|
+
*
|
|
629
|
+
* @name `cbc:StreetName`
|
|
630
|
+
*/
|
|
631
|
+
streetName: z.optional(z.string()),
|
|
632
|
+
/**
|
|
633
|
+
* @description An additional address line in an address that can be used to give further details supplementing the main line.
|
|
634
|
+
*
|
|
635
|
+
* @example
|
|
636
|
+
* Po Box 351
|
|
637
|
+
*
|
|
638
|
+
* @summary Address line 2
|
|
639
|
+
*
|
|
640
|
+
* @name `cbc:AdditionalStreetName`
|
|
641
|
+
*/
|
|
642
|
+
additionalStreetName: z.optional(z.string()),
|
|
643
|
+
/**
|
|
644
|
+
* @description The common name of the city, town or village, where the address is located.
|
|
645
|
+
*
|
|
646
|
+
* @example
|
|
647
|
+
* London;
|
|
648
|
+
*
|
|
649
|
+
* @summary Seller city
|
|
650
|
+
*
|
|
651
|
+
* @name `cbc:CityName`
|
|
652
|
+
*/
|
|
653
|
+
cityName: z.optional(z.string()),
|
|
654
|
+
/**
|
|
655
|
+
* @description The identifier for an addressable group of properties according to the relevant postal service.
|
|
656
|
+
*
|
|
657
|
+
* @example
|
|
658
|
+
* W1G 8LZ
|
|
659
|
+
*
|
|
660
|
+
* @summary post code
|
|
661
|
+
*
|
|
662
|
+
* @name `cbc:PostalZone`
|
|
663
|
+
*/
|
|
664
|
+
postalZone: z.optional(z.string()),
|
|
665
|
+
/**
|
|
666
|
+
* @description The subdivision of a country.
|
|
667
|
+
*
|
|
668
|
+
* @example
|
|
669
|
+
* Region A
|
|
670
|
+
*
|
|
671
|
+
* @summary Seller country subdivision
|
|
672
|
+
*
|
|
673
|
+
* @name `cbc:CountrySubentity`
|
|
674
|
+
*/
|
|
675
|
+
countrySubentity: z.optional(z.string()),
|
|
676
|
+
/**
|
|
677
|
+
* @example
|
|
678
|
+
* GB;
|
|
679
|
+
*
|
|
680
|
+
* @name `cac:Country`
|
|
681
|
+
*/
|
|
682
|
+
countryCode: z.object({
|
|
683
|
+
/**
|
|
684
|
+
* @description A code that identifies the country.
|
|
685
|
+
*
|
|
686
|
+
* @example
|
|
687
|
+
* GB;
|
|
688
|
+
*
|
|
689
|
+
* @summary Country code
|
|
690
|
+
*
|
|
691
|
+
* @name `cbc:IdentificationCode`
|
|
692
|
+
*/
|
|
693
|
+
identificationCode: countryCodeSchema }),
|
|
694
|
+
/**
|
|
695
|
+
* @example
|
|
696
|
+
* Building 23
|
|
697
|
+
*
|
|
698
|
+
* @name `cac:AddressLine`
|
|
699
|
+
*/
|
|
700
|
+
addressLine: z.optional(z.object({
|
|
701
|
+
/**
|
|
702
|
+
* @description An additional address line in an address that can be used to give further details supplementing the main line.
|
|
703
|
+
*
|
|
704
|
+
* @summary Address line 3
|
|
705
|
+
*
|
|
706
|
+
* @name `cbc:Line`
|
|
707
|
+
*/
|
|
708
|
+
line: z.string() }))
|
|
709
|
+
});
|
|
710
|
+
//#endregion
|
|
711
|
+
//#region src/schemas/values/icd-codes.ts
|
|
712
|
+
/**
|
|
713
|
+
* @description Validates an ISO 6523 ICD code against the PEPPOL codelist.
|
|
714
|
+
*
|
|
715
|
+
* @param error - The custom error message to use when validation fails. Defaults to `'Invalid ICD code provided'`.
|
|
716
|
+
*
|
|
717
|
+
* @returns A Zod string schema that accepts only valid ICD codes.
|
|
718
|
+
*
|
|
719
|
+
* @validations
|
|
720
|
+
* - BR-CL-10 / BR-CL-11 / BR-CL-21: Identifier scheme MUST be a valid ISO 6523 ICD code.
|
|
721
|
+
*
|
|
722
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/ICD/
|
|
723
|
+
*/
|
|
724
|
+
function icdCodesSchema(error = "Invalid ICD code provided") {
|
|
725
|
+
return z.string(error).check(z.refine((val) => icdCodesKeys.includes(val), error));
|
|
726
|
+
}
|
|
727
|
+
//#endregion
|
|
728
|
+
//#region src/schemas/fields/delivery-schema.ts
|
|
729
|
+
const deliverySchema = z.object({
|
|
730
|
+
/**
|
|
731
|
+
* @description Th edate on which the supply of goods or services was made or completed.
|
|
732
|
+
*
|
|
733
|
+
* @example
|
|
734
|
+
* 2017 - 12 - 01;
|
|
735
|
+
*
|
|
736
|
+
* @summary Actual delivery date
|
|
737
|
+
*
|
|
738
|
+
* @format `YYYY-MM-DD`
|
|
739
|
+
*
|
|
740
|
+
* @name cbc:ActualDeliveryDate
|
|
741
|
+
*/
|
|
742
|
+
actualDeliveryDate: z.optional(z.iso.date()),
|
|
743
|
+
/**
|
|
744
|
+
* @name `cac:DeliveryLocation`
|
|
745
|
+
*/
|
|
746
|
+
deliveryLocation: z.optional(z.object({
|
|
747
|
+
/**
|
|
748
|
+
* @description An identifier for the location at which the goods and services are delivered.
|
|
749
|
+
*
|
|
750
|
+
* @example
|
|
751
|
+
* `83745498753497`;
|
|
752
|
+
*
|
|
753
|
+
* @summary Deliver to location identifier
|
|
754
|
+
*
|
|
755
|
+
* @name `cbc:ID`
|
|
756
|
+
*/
|
|
757
|
+
id: z.optional(z.safeExtend(identifierSchema(), {
|
|
758
|
+
/**
|
|
759
|
+
* @description An identifier for the location at which the goods and services are delivered.
|
|
760
|
+
*
|
|
761
|
+
* @example
|
|
762
|
+
* `83745498753497`;
|
|
763
|
+
*
|
|
764
|
+
* @summary Deliver to location identifier
|
|
765
|
+
*
|
|
766
|
+
* @name `#text`
|
|
767
|
+
*/
|
|
768
|
+
id: z.string(),
|
|
769
|
+
/**
|
|
770
|
+
* @description The identification scheme identifier of the Deliver to location identifier.
|
|
771
|
+
*
|
|
772
|
+
* @summary Deliver to location identifier identification scheme identifier
|
|
773
|
+
*
|
|
774
|
+
* @name `@schemeID`
|
|
775
|
+
*/
|
|
776
|
+
schemeId: z.optional(icdCodesSchema())
|
|
777
|
+
})),
|
|
778
|
+
/**
|
|
779
|
+
* @description A groupd of business terms providing infomation about the address to which goods and services invoiced were or are delivered.
|
|
780
|
+
*
|
|
781
|
+
* @summary Deliver to address
|
|
782
|
+
*
|
|
783
|
+
* @name `cac:Address`
|
|
784
|
+
*/
|
|
785
|
+
address: z.optional(addressSchema)
|
|
786
|
+
})),
|
|
787
|
+
/**
|
|
788
|
+
* @summary Delivery party
|
|
789
|
+
*
|
|
790
|
+
* @name `cac:DeliveryParty`
|
|
791
|
+
*/
|
|
792
|
+
deliveryParty: z.optional(z.object({
|
|
793
|
+
/**
|
|
794
|
+
* @summary PARTY NAME
|
|
795
|
+
*
|
|
796
|
+
* @name `cac:PartyName`
|
|
797
|
+
*/
|
|
798
|
+
partyName: z.object({
|
|
799
|
+
/**
|
|
800
|
+
* @description The name of the party to which the goods and services are delivered.
|
|
801
|
+
*
|
|
802
|
+
* @summary Deliver to party name
|
|
803
|
+
*
|
|
804
|
+
* @name `cbc:Name`
|
|
805
|
+
*/
|
|
806
|
+
name: z.string() }) }))
|
|
807
|
+
});
|
|
808
|
+
//#endregion
|
|
809
|
+
//#region src/schemas/fields/invoice-line-period-schema.ts
|
|
810
|
+
const invoiceLinePeriodSchema = z.object({
|
|
811
|
+
/**
|
|
812
|
+
* @description The date when the Invoice period for this Invoice line ends. Format ="YYYY-MM-DD"
|
|
813
|
+
*
|
|
814
|
+
* @example
|
|
815
|
+
* `2017-10-31`;
|
|
816
|
+
*
|
|
817
|
+
* @summary Invoice line period end date
|
|
818
|
+
*
|
|
819
|
+
* @format "YYYY-MM-DD"
|
|
820
|
+
*
|
|
821
|
+
* @name `cbc:EndDate`
|
|
822
|
+
*/
|
|
823
|
+
endDate: z.optional(z.iso.date()),
|
|
824
|
+
/**
|
|
825
|
+
* @description The date when the Invoice period for this Invoice line starts.
|
|
826
|
+
*
|
|
827
|
+
* @example
|
|
828
|
+
* `2017-10-01`;
|
|
829
|
+
*
|
|
830
|
+
* @summary Invoice line period start date
|
|
831
|
+
*
|
|
832
|
+
* @format "YYYY-MM-DD"
|
|
833
|
+
*
|
|
834
|
+
* @name `cbc:StartDate`
|
|
835
|
+
*/
|
|
836
|
+
startDate: z.optional(z.iso.date())
|
|
837
|
+
});
|
|
838
|
+
//#endregion
|
|
839
|
+
//#region src/schemas/values/vat-date-code.ts
|
|
840
|
+
/**
|
|
841
|
+
* @validations
|
|
842
|
+
* - PEPPOL-EN16931-CL006: Invoice period description code must be according to UNCL 2005 D.16B.
|
|
843
|
+
*/
|
|
844
|
+
function vatDateCodeSchema(error) {
|
|
845
|
+
return z.string().check(z.refine((val) => vatDateCodesKeys.includes(val), error));
|
|
846
|
+
}
|
|
847
|
+
//#endregion
|
|
848
|
+
//#region src/schemas/fields/invoice-period-schema.ts
|
|
849
|
+
/**
|
|
850
|
+
* @description A group of business terms providing information on the invoice period. Also called delivery period. If the group is used, the invoiceing period
|
|
851
|
+
* start date and/or end date must be used.
|
|
852
|
+
*
|
|
853
|
+
* @summary DELIVERY OR INVOICE PERIOD
|
|
854
|
+
*
|
|
855
|
+
* @name `cac:InvoicePeriod`
|
|
856
|
+
*/
|
|
857
|
+
const invoicePeriodSchema = z.extend(invoiceLinePeriodSchema, {
|
|
858
|
+
/**
|
|
859
|
+
* @description The code of the date when the VAT becomes acccountable for the Seller and the Buyer.
|
|
860
|
+
*
|
|
861
|
+
* @example
|
|
862
|
+
* `35`;
|
|
863
|
+
*
|
|
864
|
+
* @summary Value added tax point date code
|
|
865
|
+
*
|
|
866
|
+
* @name `cbc:DescriptionCode`
|
|
867
|
+
*/
|
|
868
|
+
descriptionCode: z.optional(vatDateCodeSchema()) });
|
|
869
|
+
//#endregion
|
|
870
|
+
//#region src/schemas/fields/legal-monetary-total-schema.ts
|
|
871
|
+
/**
|
|
872
|
+
* @description A group of business terms providing the monetary totals for the Invoice.
|
|
873
|
+
*
|
|
874
|
+
* @summary Document totals
|
|
875
|
+
*
|
|
876
|
+
* @name cac:LegalMonetaryTotal
|
|
877
|
+
*/
|
|
878
|
+
const legalMonetaryTotalSchema = z.object({
|
|
879
|
+
/**
|
|
880
|
+
* @description Sum of all allowances on document level in the Invoice.
|
|
881
|
+
*
|
|
882
|
+
* @remarks
|
|
883
|
+
* Must be rounded to maxium 2 decimals.
|
|
884
|
+
*
|
|
885
|
+
* @example
|
|
886
|
+
* 200.0;
|
|
887
|
+
*
|
|
888
|
+
* @summary Sum of allowances on document level
|
|
889
|
+
*
|
|
890
|
+
* @name `cbc:AllowanceTotalAmount (+ @currencyID)`
|
|
891
|
+
*/
|
|
892
|
+
allowanceTotalAmount: z.optional(amountSchema),
|
|
893
|
+
/**
|
|
894
|
+
* @description Sum of all charges on document level in the Invoice.
|
|
895
|
+
*
|
|
896
|
+
* @remarks
|
|
897
|
+
* Must be rounded to maximum 2 decimals.
|
|
898
|
+
*
|
|
899
|
+
* @example
|
|
900
|
+
* 0.0;
|
|
901
|
+
*
|
|
902
|
+
* @summary Sum of charges on document level
|
|
903
|
+
*
|
|
904
|
+
* @name `cbc:ChargeTotalAmount (+ @currencyID)`
|
|
905
|
+
*/
|
|
906
|
+
chargeTotalAmount: z.optional(amountSchema),
|
|
907
|
+
/**
|
|
908
|
+
* @description Sum of all Invoice line net amounts in the Invoice.
|
|
909
|
+
*
|
|
910
|
+
* @remarks
|
|
911
|
+
* Must be rounded to maximum 2 decimals.
|
|
912
|
+
*
|
|
913
|
+
* @example
|
|
914
|
+
* 3800.0;
|
|
915
|
+
*
|
|
916
|
+
* @summary Sum of Invoice line amount
|
|
917
|
+
*
|
|
918
|
+
* @name `cbc:LineExtensionAmount (+ @currencyID)`
|
|
919
|
+
*/
|
|
920
|
+
lineExtensionAmount: amountSchema,
|
|
921
|
+
/**
|
|
922
|
+
* @description The amount due for payment on the Invoice, after accounting for all allowances, charges, prepayments, and rounding adjustments.
|
|
923
|
+
*
|
|
924
|
+
* @remarks
|
|
925
|
+
* Must be rounded to maximum 2 decimals.
|
|
926
|
+
*
|
|
927
|
+
* @example
|
|
928
|
+
* 4500.0;
|
|
929
|
+
*
|
|
930
|
+
* @summary Amount due for payment
|
|
931
|
+
*
|
|
932
|
+
* @name `cbc:PayableAmount (+ @currencyID)`
|
|
933
|
+
*/
|
|
934
|
+
payableAmount: amountSchema,
|
|
935
|
+
/**
|
|
936
|
+
* @description The rounding amount applied to the Invoice total.
|
|
937
|
+
*
|
|
938
|
+
* @remarks
|
|
939
|
+
* Must be rounded to maximum 2 decimals.
|
|
940
|
+
*
|
|
941
|
+
* @example
|
|
942
|
+
* 0.0;
|
|
943
|
+
*
|
|
944
|
+
* @summary Rounding amount
|
|
945
|
+
*
|
|
946
|
+
* @name `cbc:PayableRoundingAmount (+ @currencyID)`
|
|
947
|
+
*/
|
|
948
|
+
payableRoundingAmount: z.optional(amountSchema),
|
|
949
|
+
/**
|
|
950
|
+
* @description The sum of amounts which have been paid in advances.
|
|
951
|
+
*
|
|
952
|
+
* @remarks
|
|
953
|
+
* Must be rounded to maximum 2 decimals.
|
|
954
|
+
*
|
|
955
|
+
* @example
|
|
956
|
+
* 0.0;
|
|
957
|
+
*
|
|
958
|
+
* @summary Paid amount
|
|
959
|
+
*
|
|
960
|
+
* @name `cbc:PrepaidAmount (+ @currencyID)`
|
|
961
|
+
*/
|
|
962
|
+
prepaidAmount: z.optional(amountSchema),
|
|
963
|
+
/**
|
|
964
|
+
* @description The total amount of the Invoice without VAT.
|
|
965
|
+
*
|
|
966
|
+
* @remarks
|
|
967
|
+
* Must be rounded to maximum 2 decimals.
|
|
968
|
+
*
|
|
969
|
+
* @example
|
|
970
|
+
* 3600.0;
|
|
971
|
+
*
|
|
972
|
+
* @summary Invoice total amount without VAT
|
|
973
|
+
*
|
|
974
|
+
* @name `cbc:TaxExclusiveAmount (+ @currencyID)`
|
|
975
|
+
*/
|
|
976
|
+
taxExclusiveAmount: amountSchema,
|
|
977
|
+
/**
|
|
978
|
+
* @description The total amount of the Invoice with VAT.
|
|
979
|
+
*
|
|
980
|
+
* @example
|
|
981
|
+
* 4500.0;
|
|
982
|
+
*
|
|
983
|
+
* @summary Invoice total amount with VAT
|
|
984
|
+
*
|
|
985
|
+
* @remark Must be rounded to maximum 2 decimals.
|
|
986
|
+
*
|
|
987
|
+
* @name `cbc:TaxInclusiveAmount (+ @currencyID)`
|
|
988
|
+
*/
|
|
989
|
+
taxInclusiveAmount: amountSchema
|
|
990
|
+
});
|
|
991
|
+
//#endregion
|
|
992
|
+
//#region src/schemas/fields/order-reference-schema.ts
|
|
993
|
+
/**
|
|
994
|
+
* @summary ORDER AND SALES ORDER REFERENCE
|
|
995
|
+
*
|
|
996
|
+
* @name cac:OrderReference
|
|
997
|
+
*/
|
|
998
|
+
const orderReferenceSchema = z.object({
|
|
999
|
+
/**
|
|
1000
|
+
* @description An identifier of a referenced purchase order, issued by the Buyer. An identifier of a referenced purchase order, issued by the Buyer. An invoice
|
|
1001
|
+
* must have buyer reference (BT-10) or purchase order reference. In cases where sales order reference is provided, but there's no purchase order
|
|
1002
|
+
* reference, then use value "NA" as this element is mandatory in UBL.
|
|
1003
|
+
*
|
|
1004
|
+
* @example
|
|
1005
|
+
* `98776`;
|
|
1006
|
+
*
|
|
1007
|
+
* @summary Purchase order reference
|
|
1008
|
+
*
|
|
1009
|
+
* @name `cbc:ID`
|
|
1010
|
+
*/
|
|
1011
|
+
id: z.string(),
|
|
1012
|
+
/**
|
|
1013
|
+
* @description An identifier of a referenced Sales order, issued by the Seller. In cases where sales order reference is provided, but there's no purchase order
|
|
1014
|
+
* reference, then set cac:OrderReference/cbc:ID to value "NA" as this element is mandatory in UBL.
|
|
1015
|
+
*
|
|
1016
|
+
* @example
|
|
1017
|
+
* `112233`;
|
|
1018
|
+
*
|
|
1019
|
+
* @summary Sales order reference
|
|
1020
|
+
*
|
|
1021
|
+
* @name `cbc:SalesOrderID`
|
|
1022
|
+
*/
|
|
1023
|
+
salesOrderId: z.optional(z.string())
|
|
1024
|
+
});
|
|
1025
|
+
//#endregion
|
|
1026
|
+
//#region src/schemas/fields/contact-schema.ts
|
|
1027
|
+
const contactSchema = z.object({
|
|
1028
|
+
/**
|
|
1029
|
+
* @name cbc:ElectronicMail
|
|
1030
|
+
*/
|
|
1031
|
+
electronicMail: z.optional(z.string()),
|
|
1032
|
+
/**
|
|
1033
|
+
* @name cbc:Name
|
|
1034
|
+
*/
|
|
1035
|
+
name: z.optional(z.string()),
|
|
1036
|
+
/**
|
|
1037
|
+
* @name cbc:Telephone
|
|
1038
|
+
*/
|
|
1039
|
+
telephone: z.optional(z.string())
|
|
1040
|
+
});
|
|
1041
|
+
//#endregion
|
|
1042
|
+
//#region src/schemas/fields/party-legal-entity-schema.ts
|
|
1043
|
+
const partyLegalEntitySchema = z.object({
|
|
1044
|
+
/**
|
|
1045
|
+
* @example
|
|
1046
|
+
* 987654321;
|
|
1047
|
+
*
|
|
1048
|
+
* @name cbc:CompanyID (+ @schemeID)
|
|
1049
|
+
*/
|
|
1050
|
+
companyId: z.optional(identifierSchema()),
|
|
1051
|
+
/**
|
|
1052
|
+
* @example
|
|
1053
|
+
* Share capital
|
|
1054
|
+
*
|
|
1055
|
+
* @name cbc:CompanyLegalForm
|
|
1056
|
+
*/
|
|
1057
|
+
companyLegalForm: z.optional(z.string()),
|
|
1058
|
+
/**
|
|
1059
|
+
* @example
|
|
1060
|
+
* Full Formal Seller Name LTD.
|
|
1061
|
+
*
|
|
1062
|
+
* @name cbc:RegistrationName
|
|
1063
|
+
*/
|
|
1064
|
+
registrationName: z.string()
|
|
1065
|
+
});
|
|
1066
|
+
//#endregion
|
|
1067
|
+
//#region src/schemas/fields/party-tax-schema.ts
|
|
1068
|
+
/**
|
|
1069
|
+
* @name cac:PartyTaxScheme (0..2)
|
|
1070
|
+
*/
|
|
1071
|
+
const partyTaxSchemeSchema = z.object({
|
|
1072
|
+
/**
|
|
1073
|
+
* @description The Seller's VAT identifier (also known as Seller VAT identification number) or the local identification (defined by the Seller’s address) of the
|
|
1074
|
+
* Seller for tax purposes or a reference that enables the Seller to state his registered tax status. In order for the buyer to automatically
|
|
1075
|
+
* identify a supplier, the Seller identifier (BT-29), the Seller legal registration identifier (BT-30) and/or the Seller VAT identifier (BT-31)
|
|
1076
|
+
* shall be present.
|
|
1077
|
+
*
|
|
1078
|
+
* @summary Seller VAT identifier, Seller tax registration identifier
|
|
1079
|
+
*
|
|
1080
|
+
* @name `cbc:CompanyID`
|
|
1081
|
+
*/
|
|
1082
|
+
companyId: z.string(),
|
|
1083
|
+
/**
|
|
1084
|
+
* @description Mandatory element. For Seller VAT identifier (BT-31), use value “VAT”, for the seller tax registration identifier (BT-32), use != "VAT"
|
|
1085
|
+
*
|
|
1086
|
+
* @name `cac:TaxScheme`
|
|
1087
|
+
*/
|
|
1088
|
+
taxSchemeId: z.object({
|
|
1089
|
+
/**
|
|
1090
|
+
* @description Mandatory element. For Seller VAT identifier (BT-31), use value “VAT”, for the seller tax registration identifier (BT-32), use != "VAT"
|
|
1091
|
+
*
|
|
1092
|
+
* @name cbc:ID
|
|
1093
|
+
*/
|
|
1094
|
+
id: z._default(z.string(), "VAT") })
|
|
1095
|
+
});
|
|
1096
|
+
//#endregion
|
|
1097
|
+
//#region src/schemas/values/eas-codes.ts
|
|
1098
|
+
/**
|
|
1099
|
+
* @module schemas/values/eas-codes
|
|
1100
|
+
* Electronic Address Scheme (EAS) codes as used in PEPPOL networks
|
|
1101
|
+
* These codes identify the scheme used for electronic addresses of parties
|
|
1102
|
+
*
|
|
1103
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/eas/
|
|
1104
|
+
*/
|
|
1105
|
+
/**
|
|
1106
|
+
* @description Validates an electronic address scheme (EAS) code against the PEPPOL Electronic Address Identifier Scheme codelist.
|
|
1107
|
+
*
|
|
1108
|
+
* @param error - The custom error message to use when validation fails.
|
|
1109
|
+
*
|
|
1110
|
+
* @returns A Zod string schema that accepts only valid electronic address scheme codes.
|
|
1111
|
+
*
|
|
1112
|
+
* @validations
|
|
1113
|
+
* - PEPPOL-EN16931-CL008: Electronic address identifier scheme MUST be from the codelist "Electronic Address Identifier Scheme".
|
|
1114
|
+
*
|
|
1115
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/eas/
|
|
1116
|
+
*/
|
|
1117
|
+
function electronicCodesSchema(error) {
|
|
1118
|
+
return z.string().check(z.refine((val) => electronicAddressCodesKeys.includes(val), error));
|
|
1119
|
+
}
|
|
1120
|
+
//#endregion
|
|
1121
|
+
//#region src/schemas/fields/party-base-schema.ts
|
|
1122
|
+
/**
|
|
1123
|
+
* @summary Party common substructure
|
|
1124
|
+
*
|
|
1125
|
+
* @name cac:Party
|
|
1126
|
+
*/
|
|
1127
|
+
const partyBaseSchema = z.object({
|
|
1128
|
+
/**
|
|
1129
|
+
* @description Identifies the Seller/buyer's electronic address to which the application level response to the invoice may be delivered.
|
|
1130
|
+
*
|
|
1131
|
+
* @example
|
|
1132
|
+
* 7300010000001;
|
|
1133
|
+
*
|
|
1134
|
+
* @summary Seller/Buyer electronic address
|
|
1135
|
+
*
|
|
1136
|
+
* @name `cbc:EndpointID`
|
|
1137
|
+
*/
|
|
1138
|
+
endpointId: z.safeExtend(identifierSchema(), {
|
|
1139
|
+
/**
|
|
1140
|
+
* @description Identifies the Seller/buyer's electronic address to which the application level response to the invoice may be delivered.
|
|
1141
|
+
*
|
|
1142
|
+
* @example
|
|
1143
|
+
* 7300010000001;
|
|
1144
|
+
*
|
|
1145
|
+
* @summary Seller/Buyer electronic address
|
|
1146
|
+
*
|
|
1147
|
+
* @name `#text`
|
|
1148
|
+
*/
|
|
1149
|
+
id: z.string(),
|
|
1150
|
+
/**
|
|
1151
|
+
* @description The identification scheme identifier of the Seller/Buyer electronic address.
|
|
1152
|
+
*
|
|
1153
|
+
* @summary Seller/Buyer electronic address identification scheme identifier
|
|
1154
|
+
*
|
|
1155
|
+
* @name `@schemeID`
|
|
1156
|
+
*/
|
|
1157
|
+
schemeId: electronicCodesSchema()
|
|
1158
|
+
}),
|
|
1159
|
+
/**
|
|
1160
|
+
* @example
|
|
1161
|
+
* 5060012349998;
|
|
1162
|
+
*
|
|
1163
|
+
* @summary PARTY IDENTIFICATION
|
|
1164
|
+
*
|
|
1165
|
+
* @name `cac:PartyIdentification`
|
|
1166
|
+
*/
|
|
1167
|
+
partyIdentification: z.optional(z.object({
|
|
1168
|
+
/**
|
|
1169
|
+
* @description An identifier of the Buyer/seller.
|
|
1170
|
+
*
|
|
1171
|
+
* @summary Buyer/seller identifier
|
|
1172
|
+
*
|
|
1173
|
+
* @name `cbc:ID`
|
|
1174
|
+
*/
|
|
1175
|
+
id: z.safeExtend(identifierSchema(), {
|
|
1176
|
+
/**
|
|
1177
|
+
* @description Identifies the Seller/buyer's electronic address to which the application level response to the invoice may be delivered.
|
|
1178
|
+
*
|
|
1179
|
+
* @example
|
|
1180
|
+
* 7300010000001;
|
|
1181
|
+
*
|
|
1182
|
+
* @summary Seller/Buyer electronic address
|
|
1183
|
+
*
|
|
1184
|
+
* @name `#text`
|
|
1185
|
+
*/
|
|
1186
|
+
id: z.string(),
|
|
1187
|
+
/**
|
|
1188
|
+
* @description The identification scheme identifier of the Seller/Buyer electronic address.
|
|
1189
|
+
*
|
|
1190
|
+
* @summary Seller/Buyer electronic address identification scheme identifier
|
|
1191
|
+
*
|
|
1192
|
+
* @name `@schemeID`
|
|
1193
|
+
*/
|
|
1194
|
+
schemeId: z.optional(icdCodesSchema())
|
|
1195
|
+
}) })),
|
|
1196
|
+
/**
|
|
1197
|
+
* @example
|
|
1198
|
+
* Seller Business Name AS
|
|
1199
|
+
*
|
|
1200
|
+
* @summary PARTY NAME
|
|
1201
|
+
*
|
|
1202
|
+
* @name cac:PartyName
|
|
1203
|
+
*/
|
|
1204
|
+
partyName: z.optional(z.object({
|
|
1205
|
+
/**
|
|
1206
|
+
* @description A name by which the Buyer/Seller is known, other than Buyer/Seller name (also known as Business name).
|
|
1207
|
+
*
|
|
1208
|
+
* @example
|
|
1209
|
+
* `Trading Name`;
|
|
1210
|
+
*
|
|
1211
|
+
* @summary Buyer/Seller trading name
|
|
1212
|
+
*/
|
|
1213
|
+
name: z.string() })),
|
|
1214
|
+
/**
|
|
1215
|
+
* @name cac:PostalAddress
|
|
1216
|
+
*/
|
|
1217
|
+
postalAddress: addressSchema,
|
|
1218
|
+
/**
|
|
1219
|
+
* @remarks
|
|
1220
|
+
* Max 1 for a buyer, max 2 for a seller.
|
|
1221
|
+
*
|
|
1222
|
+
* @name cac:PartyTaxScheme
|
|
1223
|
+
*
|
|
1224
|
+
* @cardinality (0..2)
|
|
1225
|
+
*/
|
|
1226
|
+
partyTaxSchemes: z.optional(z.array(partyTaxSchemeSchema).check(z.maxLength(2))),
|
|
1227
|
+
/**
|
|
1228
|
+
* @name cac:PartyLegalEntity
|
|
1229
|
+
*/
|
|
1230
|
+
partyLegalEntity: partyLegalEntitySchema,
|
|
1231
|
+
/**
|
|
1232
|
+
* @name cac:Contact
|
|
1233
|
+
*/
|
|
1234
|
+
contact: z.optional(contactSchema)
|
|
1235
|
+
});
|
|
1236
|
+
//#endregion
|
|
1237
|
+
//#region src/schemas/fields/payee-party.ts
|
|
1238
|
+
/**
|
|
1239
|
+
* @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
|
|
1240
|
+
* different from the seller.
|
|
1241
|
+
*
|
|
1242
|
+
* @summary PAYEE
|
|
1243
|
+
*
|
|
1244
|
+
* @name cac:PayeeParty
|
|
1245
|
+
*/
|
|
1246
|
+
const payeePartySchema = z.object({
|
|
1247
|
+
/**
|
|
1248
|
+
* @summary PARTY IDENTIFICATION
|
|
1249
|
+
*
|
|
1250
|
+
* @name `cac:PartyIdentification`
|
|
1251
|
+
*/
|
|
1252
|
+
partyIdentification: z.optional(z.object({
|
|
1253
|
+
/**
|
|
1254
|
+
* @description This element is used for both the identification of the Payee, or the unique banking reference identifier of Payee (assigned by the Payee
|
|
1255
|
+
* bank.) For payee identification use ICD code list, for SEPA bank assigned creditor reference, use SEPA.
|
|
1256
|
+
*
|
|
1257
|
+
* @summary Payee identifier or bank assigned crditor identifier
|
|
1258
|
+
*
|
|
1259
|
+
* @name `cbc:ID`
|
|
1260
|
+
*/
|
|
1261
|
+
id: z.optional(z.extend(identifierSchema(), {
|
|
1262
|
+
/**
|
|
1263
|
+
* @description This element is used for both the identification of the Payee, or the unique banking reference identifier of Payee (assigned by the Payee
|
|
1264
|
+
* bank.) For payee identification use ICD code list, for SEPA bank assigned creditor reference, use SEPA.
|
|
1265
|
+
*
|
|
1266
|
+
* @summary Payee identifier or bank assigned crditor identifier
|
|
1267
|
+
*
|
|
1268
|
+
* @name `#text`
|
|
1269
|
+
*/
|
|
1270
|
+
id: z.string(),
|
|
1271
|
+
/**
|
|
1272
|
+
* @description The identification scheme identifier of the payee identifier. For bank assigned creditor identifier (BT-90), value MUST be "SEPA"
|
|
1273
|
+
*
|
|
1274
|
+
* @summary Payee or bank assigned creditor identifier identification scheme identifier
|
|
1275
|
+
*
|
|
1276
|
+
* @name `@schemeID`
|
|
1277
|
+
*/
|
|
1278
|
+
schemeId: z.optional(z.string())
|
|
1279
|
+
})) })),
|
|
1280
|
+
/**
|
|
1281
|
+
* @summary PARTY LEGAL ENTITY
|
|
1282
|
+
*
|
|
1283
|
+
* @name `cac:PartyLegalEntity`
|
|
1284
|
+
*/
|
|
1285
|
+
partyLegalEntity: z.optional(z.object({
|
|
1286
|
+
/**
|
|
1287
|
+
* @description An identifier issued by an official registrar that identifies the payee as a legal entity or person.
|
|
1288
|
+
*
|
|
1289
|
+
* @example
|
|
1290
|
+
* `FR932874294`;
|
|
1291
|
+
*
|
|
1292
|
+
* @summary Payee legal registration identifier
|
|
1293
|
+
*
|
|
1294
|
+
* @name `cbc:CompanyID`
|
|
1295
|
+
*/
|
|
1296
|
+
companyId: z.optional(z.safeExtend(identifierSchema(), {
|
|
1297
|
+
/**
|
|
1298
|
+
* @description An identifier issued by an official registrar that identifies the payee as a legal entity or person.
|
|
1299
|
+
*
|
|
1300
|
+
* @example
|
|
1301
|
+
* `FR932874294`;
|
|
1302
|
+
*
|
|
1303
|
+
* @summary Payee legal registration identifier
|
|
1304
|
+
*
|
|
1305
|
+
* @name `#text`
|
|
1306
|
+
*/
|
|
1307
|
+
id: z.string(),
|
|
1308
|
+
/**
|
|
1309
|
+
* @description The identification scheme identifier of the Payee legal registration identifier.
|
|
1310
|
+
*
|
|
1311
|
+
* @summary Payee legal registration identifier identification scheme identifier
|
|
1312
|
+
*
|
|
1313
|
+
* @name `@schemeID`
|
|
1314
|
+
*/
|
|
1315
|
+
schemeId: z.optional(icdCodesSchema())
|
|
1316
|
+
})) })),
|
|
1317
|
+
/**
|
|
1318
|
+
* @description The name of the payee.
|
|
1319
|
+
*
|
|
1320
|
+
* @example
|
|
1321
|
+
* `Payee Name Ltd`;
|
|
1322
|
+
*
|
|
1323
|
+
* @summary Payee name
|
|
1324
|
+
*
|
|
1325
|
+
* @name `cac:PartyName`
|
|
1326
|
+
*/
|
|
1327
|
+
partyName: z.object({ name: z.string() })
|
|
1328
|
+
});
|
|
1329
|
+
//#endregion
|
|
1330
|
+
//#region src/schemas/values/payment-means-codes-schema.ts
|
|
1331
|
+
/**
|
|
1332
|
+
* @module schemas/values/payment-means-codes-schema
|
|
1333
|
+
*
|
|
1334
|
+
* Payment means codes as defined by UN/CEFACT UNCL4461.
|
|
1335
|
+
*
|
|
1336
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL4461/
|
|
1337
|
+
*/
|
|
1338
|
+
/**
|
|
1339
|
+
* @description Validates a payment means code against the PEPPOL subset of UNCL 4461.
|
|
1340
|
+
*
|
|
1341
|
+
* @param error - The custom error message to use when validation fails.
|
|
1342
|
+
*
|
|
1343
|
+
* @returns A Zod string schema that accepts only valid payment means codes.
|
|
1344
|
+
*
|
|
1345
|
+
* @validations
|
|
1346
|
+
* - BR-CL-16: Payment means code MUST be a valid UNCL 4461 code.
|
|
1347
|
+
*
|
|
1348
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL4461/
|
|
1349
|
+
*/
|
|
1350
|
+
function paymentMeansCodeSchema(error) {
|
|
1351
|
+
return z.string().check(z.refine((val) => paymentMeansCodesKeys.includes(val), error));
|
|
1352
|
+
}
|
|
1353
|
+
//#endregion
|
|
1354
|
+
//#region src/schemas/fields/payment-means-schema.ts
|
|
1355
|
+
/**
|
|
1356
|
+
* @description A group of business terms providing information about the payment.
|
|
1357
|
+
*
|
|
1358
|
+
* @summary Payment means (credit transfer/direct debit/card)
|
|
1359
|
+
*
|
|
1360
|
+
* @name cac:PaymentMeans
|
|
1361
|
+
*/
|
|
1362
|
+
const paymentMeansSchema = z.object({
|
|
1363
|
+
/**
|
|
1364
|
+
* @description The means, expressed as code, for how a payment is expected to be or has been settled.
|
|
1365
|
+
*
|
|
1366
|
+
* @example
|
|
1367
|
+
* 30;
|
|
1368
|
+
*
|
|
1369
|
+
* @summary Payment means type code
|
|
1370
|
+
*
|
|
1371
|
+
* @name `cbc:PaymentMeansCode`
|
|
1372
|
+
*/
|
|
1373
|
+
paymentMeansCode: z.object({
|
|
1374
|
+
/**
|
|
1375
|
+
* @description The means, expressed as code, for how a payment is expected to be or has been settled.
|
|
1376
|
+
*
|
|
1377
|
+
* @example
|
|
1378
|
+
* 30;
|
|
1379
|
+
*
|
|
1380
|
+
* @summary Payment means type code
|
|
1381
|
+
*
|
|
1382
|
+
* @name `#text`
|
|
1383
|
+
*/
|
|
1384
|
+
code: paymentMeansCodeSchema(),
|
|
1385
|
+
/**
|
|
1386
|
+
* @description The means, expressed as text, for how a payment is expected to be or has been settled.
|
|
1387
|
+
*
|
|
1388
|
+
* @example
|
|
1389
|
+
* Credit transfer
|
|
1390
|
+
*
|
|
1391
|
+
* @summary Payment means text
|
|
1392
|
+
*
|
|
1393
|
+
* @name `@name`
|
|
1394
|
+
*/
|
|
1395
|
+
name: z.optional(z.string())
|
|
1396
|
+
}),
|
|
1397
|
+
/**
|
|
1398
|
+
* @description The date when the payment is due.Format "YYYY-MM-DD". In case the Amount due for payment (BT-115) is positive, either the Payment due date (BT-9)
|
|
1399
|
+
* or the Payment terms (BT-20) shall be present.
|
|
1400
|
+
*
|
|
1401
|
+
* @remarks
|
|
1402
|
+
* This should only be used with a credit note.
|
|
1403
|
+
*
|
|
1404
|
+
* @summary Payment due date
|
|
1405
|
+
*
|
|
1406
|
+
* @name `cbc:PaymentDueDate`
|
|
1407
|
+
*/
|
|
1408
|
+
paymentDueDate: z.optional(z.iso.date()),
|
|
1409
|
+
/**
|
|
1410
|
+
* @description A textual value used to establish a link between the payment and the Invoice, issued by the Seller. Used for creditor's critical reconciliation
|
|
1411
|
+
* information. This information element helps the Seller to assign an incoming payment to the relevant payment process.
|
|
1412
|
+
*
|
|
1413
|
+
* @example
|
|
1414
|
+
* `432948234234234`;
|
|
1415
|
+
*
|
|
1416
|
+
* @summary Remittance information
|
|
1417
|
+
*
|
|
1418
|
+
* @name cbc:PaymentID
|
|
1419
|
+
*/
|
|
1420
|
+
paymentId: z.optional(z.string()),
|
|
1421
|
+
/**
|
|
1422
|
+
* @description A group of business terms providing information about card used for payment contemporaneous with invoice issuance.
|
|
1423
|
+
*
|
|
1424
|
+
* @summary PAYMENT CARD INFORMATION
|
|
1425
|
+
*
|
|
1426
|
+
* @name cac:CardAccount
|
|
1427
|
+
*/
|
|
1428
|
+
cardAccount: z.optional(z.object({
|
|
1429
|
+
/**
|
|
1430
|
+
* @description The name of the payment card holder.
|
|
1431
|
+
*
|
|
1432
|
+
* @summary Payment card holder name
|
|
1433
|
+
*
|
|
1434
|
+
* @name cbc:HolderName
|
|
1435
|
+
*/
|
|
1436
|
+
holderName: z.optional(z.string()),
|
|
1437
|
+
/**
|
|
1438
|
+
* @summary Syntax required element not related to a business term.
|
|
1439
|
+
*
|
|
1440
|
+
* @name cbc:NetworkID
|
|
1441
|
+
*/
|
|
1442
|
+
networkId: z.string(),
|
|
1443
|
+
/**
|
|
1444
|
+
* @description The Primary Account Number (PAN) of the card used for payment. In accordance with card payments security standards, an invoice should never
|
|
1445
|
+
* include a full card primary account number.
|
|
1446
|
+
*
|
|
1447
|
+
* @example
|
|
1448
|
+
* `1234`;
|
|
1449
|
+
*
|
|
1450
|
+
* @summary Payment card primary account number
|
|
1451
|
+
*
|
|
1452
|
+
* @name cbc:PrimaryAccountNumberID
|
|
1453
|
+
*/
|
|
1454
|
+
primaryAccountNumberId: z.string()
|
|
1455
|
+
})),
|
|
1456
|
+
/**
|
|
1457
|
+
* @description A group of business terms to specify credit transfer payments.
|
|
1458
|
+
*
|
|
1459
|
+
* @summary CREDIT TRANSFER
|
|
1460
|
+
*
|
|
1461
|
+
* @name cac:PayeeFinancialAccount
|
|
1462
|
+
*/
|
|
1463
|
+
payeeFinancialAccount: z.optional(z.object({
|
|
1464
|
+
/**
|
|
1465
|
+
* @description An identifier for the payment service provider where a payment account is located. Such as a BIC or a national clearing code where required.
|
|
1466
|
+
* No identification scheme Identifier to be used.
|
|
1467
|
+
*
|
|
1468
|
+
* @example
|
|
1469
|
+
* `9998`;
|
|
1470
|
+
*
|
|
1471
|
+
* @summary Payment service provider identifier
|
|
1472
|
+
*
|
|
1473
|
+
* @name `cac:FinancialInstitutionBranch`
|
|
1474
|
+
*/
|
|
1475
|
+
financialInstitutionBranch: z.optional(z.object({
|
|
1476
|
+
/**
|
|
1477
|
+
* @description An identifier for the payment service provider where a payment account is located. Such as a BIC or a national clearing code where
|
|
1478
|
+
* required. No identification scheme Identifier to be used.
|
|
1479
|
+
*
|
|
1480
|
+
* @example
|
|
1481
|
+
* `9998`;
|
|
1482
|
+
*
|
|
1483
|
+
* @summary Payment service provider identifier
|
|
1484
|
+
*
|
|
1485
|
+
* @name `cac:FinancialInstitutionBranch`
|
|
1486
|
+
*/
|
|
1487
|
+
id: z.string() })),
|
|
1488
|
+
/**
|
|
1489
|
+
* @description A unique identifier of the financial payment account, at a payment service provider, to which payment should be made. Such as IBAN or BBAN.
|
|
1490
|
+
*
|
|
1491
|
+
* @summary Payment account identifier
|
|
1492
|
+
*
|
|
1493
|
+
* @name cbc:ID
|
|
1494
|
+
*/
|
|
1495
|
+
id: z.string(),
|
|
1496
|
+
/**
|
|
1497
|
+
* @description The name of the payment account, at a payment service provider, to which payment should be made.
|
|
1498
|
+
*
|
|
1499
|
+
* @summary Payment account name
|
|
1500
|
+
*
|
|
1501
|
+
* @name cbc:Name
|
|
1502
|
+
*/
|
|
1503
|
+
name: z.optional(z.string())
|
|
1504
|
+
})),
|
|
1505
|
+
/**
|
|
1506
|
+
* @description A group of business terms to specify a direct debit.
|
|
1507
|
+
*
|
|
1508
|
+
* @summary DIRECT DEBIT
|
|
1509
|
+
*
|
|
1510
|
+
* @name cac:PaymentMandate
|
|
1511
|
+
*/
|
|
1512
|
+
paymentMandate: z.optional(z.object({
|
|
1513
|
+
/**
|
|
1514
|
+
* @description Unique identifier assigned by the Payee for referencing the direct debit mandate. Used in order to pre-notify the Buyer of a SEPA direct
|
|
1515
|
+
* debit.
|
|
1516
|
+
*
|
|
1517
|
+
* @summary Mandate reference identifier
|
|
1518
|
+
*
|
|
1519
|
+
* @name cbc:ID
|
|
1520
|
+
*/
|
|
1521
|
+
id: z.optional(z.string()),
|
|
1522
|
+
/**
|
|
1523
|
+
* @description The account to be debited by the direct debit.
|
|
1524
|
+
*
|
|
1525
|
+
* @example
|
|
1526
|
+
* `12345676543`;
|
|
1527
|
+
*
|
|
1528
|
+
* @summary Debited account identifier
|
|
1529
|
+
*
|
|
1530
|
+
* @name `cac:PayerFinancialAccount`
|
|
1531
|
+
*/
|
|
1532
|
+
payerFinancialAccountId: z.optional(z.object({
|
|
1533
|
+
/**
|
|
1534
|
+
* @description The account to be debited by the direct debit.
|
|
1535
|
+
*
|
|
1536
|
+
* @example
|
|
1537
|
+
* `12345676543`;
|
|
1538
|
+
*
|
|
1539
|
+
* @summary Debited account identifier
|
|
1540
|
+
*
|
|
1541
|
+
* @name `cbc:ID`
|
|
1542
|
+
*/
|
|
1543
|
+
id: z.string() }))
|
|
1544
|
+
}))
|
|
1545
|
+
});
|
|
1546
|
+
//#endregion
|
|
1547
|
+
//#region src/schemas/fields/payment-terms-schema.ts
|
|
1548
|
+
/**
|
|
1549
|
+
* @summary PAYMENT TERMS
|
|
1550
|
+
*
|
|
1551
|
+
* @name cac:PaymentTerms
|
|
1552
|
+
*/
|
|
1553
|
+
const paymentTermsSchema = z.object({
|
|
1554
|
+
/**
|
|
1555
|
+
* @description A textual description of the payment terms that apply to the amount due for payment (Including description of possible penalties). In case the
|
|
1556
|
+
* Amount due for payment (BT-115) is positive, either the Payment due date (BT-9) or the Payment terms (BT-20) shall be present.
|
|
1557
|
+
*
|
|
1558
|
+
* @example
|
|
1559
|
+
* Net within 30 days
|
|
1560
|
+
*
|
|
1561
|
+
* @summary Payment terms
|
|
1562
|
+
*
|
|
1563
|
+
* @name cbc:Note
|
|
1564
|
+
*/
|
|
1565
|
+
note: z.string() });
|
|
1566
|
+
//#endregion
|
|
1567
|
+
//#region src/schemas/fields/tax-representative-party-schema.ts
|
|
1568
|
+
/**
|
|
1569
|
+
* @summary SELLER TAX REPRESENTATIVE PARTY
|
|
1570
|
+
*
|
|
1571
|
+
* @name cac:TaxRepresentativeParty
|
|
1572
|
+
*/
|
|
1573
|
+
const taxRepresentativeSchema = z.object({
|
|
1574
|
+
/**
|
|
1575
|
+
* @name cac:PartyName/cbc:Name
|
|
1576
|
+
*/
|
|
1577
|
+
name: z.string(),
|
|
1578
|
+
/**
|
|
1579
|
+
* @name cac:PostalAddress
|
|
1580
|
+
*/
|
|
1581
|
+
postalAddress: addressSchema,
|
|
1582
|
+
partyTaxScheme: partyTaxSchemeSchema
|
|
1583
|
+
});
|
|
1584
|
+
//#endregion
|
|
1585
|
+
//#region src/schemas/fields/tax-subtotal-category-schema.ts
|
|
1586
|
+
/**
|
|
1587
|
+
* @description This one is specific for TaxSubtotal since it includes more fields.
|
|
1588
|
+
*
|
|
1589
|
+
* @summary Tax Category for Tax Subtotal
|
|
1590
|
+
*
|
|
1591
|
+
* @name cac:TaxCategory
|
|
1592
|
+
*/
|
|
1593
|
+
const taxSubtotalCategorySchema = z.extend(taxCategorySchema, {
|
|
1594
|
+
/**
|
|
1595
|
+
* @description The reason for the tax exemption.
|
|
1596
|
+
*
|
|
1597
|
+
* @name cbc:TaxExemptionReason
|
|
1598
|
+
*/
|
|
1599
|
+
taxExemptionReason: z.optional(z.string()),
|
|
1600
|
+
/**
|
|
1601
|
+
* @description The code for the reason of the tax exemption.
|
|
1602
|
+
*
|
|
1603
|
+
* @name cbc:TaxExemptionReasonCode
|
|
1604
|
+
*/
|
|
1605
|
+
taxExemptionReasonCode: z.optional(z.string())
|
|
1606
|
+
});
|
|
1607
|
+
//#endregion
|
|
1608
|
+
//#region src/schemas/fields/tax-subtotal-schema.ts
|
|
1609
|
+
/**
|
|
1610
|
+
* @summary VAT breakdown (TaxSubtotal)
|
|
1611
|
+
*
|
|
1612
|
+
* @name cac:TaxSubtotal
|
|
1613
|
+
*/
|
|
1614
|
+
const taxSubtotalSchema = z.object({
|
|
1615
|
+
/**
|
|
1616
|
+
* @description The amount of tax for the tax subtotal.
|
|
1617
|
+
*
|
|
1618
|
+
* @name `cbc:TaxAmount (+ @currencyID)`
|
|
1619
|
+
*/
|
|
1620
|
+
taxAmount: amountSchema,
|
|
1621
|
+
/**
|
|
1622
|
+
* @description The tax category associated with this tax subtotal.
|
|
1623
|
+
*
|
|
1624
|
+
* @name cac:TaxCategory
|
|
1625
|
+
*/
|
|
1626
|
+
taxCategory: taxSubtotalCategorySchema,
|
|
1627
|
+
/**
|
|
1628
|
+
* @description The taxable amount for the tax subtotal.
|
|
1629
|
+
*
|
|
1630
|
+
* @name `cbc:TaxableAmount (+ @currencyID)`
|
|
1631
|
+
*/
|
|
1632
|
+
taxableAmount: amountSchema
|
|
1633
|
+
});
|
|
1634
|
+
//#endregion
|
|
1635
|
+
//#region src/schemas/fields/tax-totals.ts
|
|
1636
|
+
/**
|
|
1637
|
+
* @summary TAX TOTAL
|
|
1638
|
+
*
|
|
1639
|
+
* @name cac:TaxTotal (1..2)
|
|
1640
|
+
*/
|
|
1641
|
+
const taxTotalsBaseSchema = z.object({
|
|
1642
|
+
/**
|
|
1643
|
+
* @example
|
|
1644
|
+
* 200;
|
|
1645
|
+
*
|
|
1646
|
+
* @name cbc:TaxAmount (+ @currencyID)
|
|
1647
|
+
*/
|
|
1648
|
+
taxAmount: amountSchema,
|
|
1649
|
+
/**
|
|
1650
|
+
* @name cac:TaxSubtotal (0..n)
|
|
1651
|
+
*/
|
|
1652
|
+
taxSubtotals: z.optional(z.array(taxSubtotalSchema))
|
|
1653
|
+
});
|
|
1654
|
+
//#endregion
|
|
1655
|
+
//#region src/schemas/billing-base.ts
|
|
1656
|
+
/**
|
|
1657
|
+
* @description Base schema for a billing document.
|
|
1658
|
+
*
|
|
1659
|
+
* @see {@link creditNoteSchema} - the credit note schema
|
|
1660
|
+
* @see {@link invoiceSchema} - the invoice schema
|
|
1661
|
+
*/
|
|
1662
|
+
const billingBaseSchema = z.object({
|
|
1663
|
+
/**
|
|
1664
|
+
* @description An identification of the specification containing the total set of rules regarding semantic content, cardinalities, and business rules to which
|
|
1665
|
+
* the data contained in the intance document conforms.
|
|
1666
|
+
*
|
|
1667
|
+
* @default `urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0`
|
|
1668
|
+
*
|
|
1669
|
+
* @summary Specification identifier
|
|
1670
|
+
*
|
|
1671
|
+
* @cardinality 1..1
|
|
1672
|
+
*
|
|
1673
|
+
* @name `cbc:CustomizationID`
|
|
1674
|
+
*/
|
|
1675
|
+
customizationId: z._default(z.string().check(z.startsWith("urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0", { error: "PEPPOL-EN16931-R004: Specification identifier MUST have the value 'urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0'." })), DEFAULT_CUSTOMIZATION_ID),
|
|
1676
|
+
/**
|
|
1677
|
+
* @description Identifies the business process context in which the transaction appears, to enable the Buyer to process the Invoice in an appropriate way.
|
|
1678
|
+
*
|
|
1679
|
+
* @default `urn:fdc:peppol.eu:2017:poacc:billing:01:1.0`
|
|
1680
|
+
*
|
|
1681
|
+
* @summary Business process type
|
|
1682
|
+
*
|
|
1683
|
+
* @name `cbc:ProfileID`
|
|
1684
|
+
*/
|
|
1685
|
+
profileId: z._default(z.string().check(z.regex(/^urn:fdc:peppol.eu:2017:poacc:billing:(\d{2}):1\.0$/, "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.")), DEFAULT_PROFILE_ID),
|
|
1686
|
+
/**
|
|
1687
|
+
* @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
|
|
1688
|
+
* the Invoice within the business context, time-frame, operating systems and records of the Seller. No identification scheme is to be used.
|
|
1689
|
+
*
|
|
1690
|
+
* @example
|
|
1691
|
+
* 33445566;
|
|
1692
|
+
*
|
|
1693
|
+
* @summary Invoice number
|
|
1694
|
+
*
|
|
1695
|
+
* @name `cbc:ID`
|
|
1696
|
+
*/
|
|
1697
|
+
id: z.string(),
|
|
1698
|
+
/**
|
|
1699
|
+
* @description The date when the invoice was issued.
|
|
1700
|
+
*
|
|
1701
|
+
* @example
|
|
1702
|
+
* `2017-11-01`;
|
|
1703
|
+
*
|
|
1704
|
+
* @summary Invoice issue date
|
|
1705
|
+
*
|
|
1706
|
+
* @format `YYYY-MM-DD`
|
|
1707
|
+
*
|
|
1708
|
+
* @name `cbc:IssueDate`
|
|
1709
|
+
*/
|
|
1710
|
+
issueDate: z.iso.date(),
|
|
1711
|
+
/**
|
|
1712
|
+
* @description Invoice note A textual note that gives unstructured information that is relevant to the Credit Note as a whole.
|
|
1713
|
+
*
|
|
1714
|
+
* @example
|
|
1715
|
+
* Please note our new phone number 33 44 55 66
|
|
1716
|
+
*
|
|
1717
|
+
* @name `cbc:Note`
|
|
1718
|
+
*/
|
|
1719
|
+
note: z.optional(z.string()),
|
|
1720
|
+
/**
|
|
1721
|
+
* @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
|
|
1722
|
+
* 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
|
|
1723
|
+
* issue date.
|
|
1724
|
+
*
|
|
1725
|
+
* @example
|
|
1726
|
+
* 2017 - 11 - 01;
|
|
1727
|
+
*
|
|
1728
|
+
* @summary Value added tax point date
|
|
1729
|
+
*
|
|
1730
|
+
* @name `cbc:TaxPointDate`
|
|
1731
|
+
*/
|
|
1732
|
+
taxPointDate: z.optional(z.iso.date()),
|
|
1733
|
+
/**
|
|
1734
|
+
* @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
|
|
1735
|
+
* the Invoice, except for the VAT accounting currency code (BT-6) and the invoice total VAT amount in accounting currency (BT-111).
|
|
1736
|
+
*
|
|
1737
|
+
* @example
|
|
1738
|
+
* EUR;
|
|
1739
|
+
*
|
|
1740
|
+
* @summary Invoice currency code
|
|
1741
|
+
*
|
|
1742
|
+
* @name `cbc:DocumentCurrencyCode`
|
|
1743
|
+
*/
|
|
1744
|
+
documentCurrencyCode: currencyCodeSchema(),
|
|
1745
|
+
/**
|
|
1746
|
+
* @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
|
|
1747
|
+
* with the Invoice total VAT amount in accounting currency (BT-111), when the VAT accounting currency code differs from the Invoice currency code.
|
|
1748
|
+
*
|
|
1749
|
+
* @example
|
|
1750
|
+
* SEK;
|
|
1751
|
+
*
|
|
1752
|
+
* @summary VAT accounting currency code
|
|
1753
|
+
*
|
|
1754
|
+
* @name `cbc:TaxCurrencyCode`
|
|
1755
|
+
*/
|
|
1756
|
+
taxCurrencyCode: z.optional(currencyCodeSchema()),
|
|
1757
|
+
/**
|
|
1758
|
+
* @description A textual value that specifies where to book the relevant data into the Buyer's financial accounts.
|
|
1759
|
+
*
|
|
1760
|
+
* @example
|
|
1761
|
+
* `4217:2323:2323`;
|
|
1762
|
+
*
|
|
1763
|
+
* @summary Buyer accounting reference
|
|
1764
|
+
*
|
|
1765
|
+
* @name `cbc:AccountingCost`
|
|
1766
|
+
*/
|
|
1767
|
+
accountingCost: z.optional(z.string()),
|
|
1768
|
+
/**
|
|
1769
|
+
* @description An identifier assigned by the Buyer used for internal routing purposes. An invoice must have buyer reference or purchase order reference (BT-13).
|
|
1770
|
+
*
|
|
1771
|
+
* @example
|
|
1772
|
+
* `abs1234`;
|
|
1773
|
+
*
|
|
1774
|
+
* @summary Buyer reference
|
|
1775
|
+
*
|
|
1776
|
+
* @name `cbc:BuyerReference`
|
|
1777
|
+
*/
|
|
1778
|
+
buyerReference: z.optional(z.string()),
|
|
1779
|
+
/**
|
|
1780
|
+
* @description A group of business terms providing information on the invoice period. Also called delivery period. If the group is used, the invoiceing period
|
|
1781
|
+
* start date and/or end date must be used.
|
|
1782
|
+
*
|
|
1783
|
+
* @summary DELIVERY OR INVOICE PERIOD
|
|
1784
|
+
*
|
|
1785
|
+
* @name `cac:InvoicePeriod`
|
|
1786
|
+
*/
|
|
1787
|
+
invoicePeriod: z.optional(invoicePeriodSchema),
|
|
1788
|
+
/**
|
|
1789
|
+
* @summary ORDER AND SALES ORDER REFERENCE
|
|
1790
|
+
*
|
|
1791
|
+
* @name `cac:OrderReference`
|
|
1792
|
+
*/
|
|
1793
|
+
orderReference: z.optional(orderReferenceSchema),
|
|
1794
|
+
/**
|
|
1795
|
+
* @summary PRECEDING INVOICE REFERENCE (0..n)
|
|
1796
|
+
*
|
|
1797
|
+
* @name `cac:BillingReference`
|
|
1798
|
+
*/
|
|
1799
|
+
billingReferences: z.optional(z.array(billingReferenceSchema)),
|
|
1800
|
+
/**
|
|
1801
|
+
* @summary DESPATCH ADVICE REFERENCE
|
|
1802
|
+
*
|
|
1803
|
+
* @name `cac:DespatchDocumentReference`
|
|
1804
|
+
*/
|
|
1805
|
+
despatchDocumentReference: z.optional(z.object({
|
|
1806
|
+
/**
|
|
1807
|
+
* @description An identifier of a referenced despatch advice.
|
|
1808
|
+
*
|
|
1809
|
+
* @example
|
|
1810
|
+
* `desp98`;
|
|
1811
|
+
*
|
|
1812
|
+
* @summary Despatch advice reference
|
|
1813
|
+
*
|
|
1814
|
+
* @name `cbc:ID`
|
|
1815
|
+
*/
|
|
1816
|
+
id: z.string() })),
|
|
1817
|
+
/**
|
|
1818
|
+
* @summary RECEIPT ADVICE REFERENCE
|
|
1819
|
+
*
|
|
1820
|
+
* @name `cac:ReceiptDocumentReference`
|
|
1821
|
+
*/
|
|
1822
|
+
receiptDocumentReference: z.optional(z.object({
|
|
1823
|
+
/**
|
|
1824
|
+
* @description An identifier of a referenced receiving advice.
|
|
1825
|
+
*
|
|
1826
|
+
* @example
|
|
1827
|
+
* `rec98`;
|
|
1828
|
+
*
|
|
1829
|
+
* @summary Receiving advice reference
|
|
1830
|
+
*
|
|
1831
|
+
* @name `cbc:ID`
|
|
1832
|
+
*/
|
|
1833
|
+
id: z.string() })),
|
|
1834
|
+
/**
|
|
1835
|
+
* @summary TENDER OR LOT REFERENCE
|
|
1836
|
+
*
|
|
1837
|
+
* @name `cac:OriginatorDocumentReference`
|
|
1838
|
+
*/
|
|
1839
|
+
originatorDocumentReference: z.optional(z.object({
|
|
1840
|
+
/**
|
|
1841
|
+
* @description The identification of the call for tender or lot the invoice relates to.
|
|
1842
|
+
*
|
|
1843
|
+
* @example
|
|
1844
|
+
* `PPID-123`;
|
|
1845
|
+
*
|
|
1846
|
+
* @summary Tender or lot reference
|
|
1847
|
+
*
|
|
1848
|
+
* @name `cbc:ID`
|
|
1849
|
+
*/
|
|
1850
|
+
id: z.string() })),
|
|
1851
|
+
/**
|
|
1852
|
+
* @summary CONTRACT REFERENCE
|
|
1853
|
+
*
|
|
1854
|
+
* @name `cac:ContractDocumentReference`
|
|
1855
|
+
*/
|
|
1856
|
+
contractDocumentReference: z.optional(z.object({
|
|
1857
|
+
/**
|
|
1858
|
+
* @description An identifier of a referenced contract.
|
|
1859
|
+
*
|
|
1860
|
+
* @example
|
|
1861
|
+
* `123Contractref`;
|
|
1862
|
+
*
|
|
1863
|
+
* @summary Contract reference
|
|
1864
|
+
*
|
|
1865
|
+
* @name `cbc:ID`
|
|
1866
|
+
*/
|
|
1867
|
+
id: z.string() })),
|
|
1868
|
+
/**
|
|
1869
|
+
* @description A group of business terms providing information about additional supporting documents substantiating the claims made in the Invoice. The
|
|
1870
|
+
* additional supporting documents can be used for both referencing a document number which is expected to be known by the receiver, an external
|
|
1871
|
+
* document (referenced by a URL) or as an embedded document, Base64 encoded (such as a time report).
|
|
1872
|
+
*
|
|
1873
|
+
* @summary ADDITIONAL SUPPORTING DOCUMENTS
|
|
1874
|
+
*
|
|
1875
|
+
* @name `cac:AdditionalDocumentReference`
|
|
1876
|
+
*/
|
|
1877
|
+
additionalDocumentReferences: z.optional(z.array(additionalDocumentReferenceSchema)),
|
|
1878
|
+
/**
|
|
1879
|
+
* @description A group of business terms providing information about the seller.
|
|
1880
|
+
*
|
|
1881
|
+
* @summary SELLER
|
|
1882
|
+
*
|
|
1883
|
+
* @name `cac:AccountingSupplierParty`
|
|
1884
|
+
*/
|
|
1885
|
+
accountingSupplierParty: partyBaseSchema,
|
|
1886
|
+
/**
|
|
1887
|
+
* @description A group of business terms providing information about the Buyer.
|
|
1888
|
+
*
|
|
1889
|
+
* @summary BUYER
|
|
1890
|
+
*
|
|
1891
|
+
* @name `cac:AccountingCustomerParty`
|
|
1892
|
+
*/
|
|
1893
|
+
accountingCustomerParty: partyBaseSchema,
|
|
1894
|
+
/**
|
|
1895
|
+
* @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
|
|
1896
|
+
* different from the seller.
|
|
1897
|
+
*
|
|
1898
|
+
* @summary PAYEE
|
|
1899
|
+
*
|
|
1900
|
+
* @name cac:PayeeParty
|
|
1901
|
+
*/
|
|
1902
|
+
payeeParty: z.optional(payeePartySchema),
|
|
1903
|
+
/**
|
|
1904
|
+
* @description SELLER TAX REPRESENTATIVE PARTY.
|
|
1905
|
+
*
|
|
1906
|
+
* @name cac:TaxRepresentativeParty
|
|
1907
|
+
*/
|
|
1908
|
+
taxRepresentativeParty: z.optional(taxRepresentativeSchema),
|
|
1909
|
+
/**
|
|
1910
|
+
* @description DELIVERY INFORMATION.
|
|
1911
|
+
*
|
|
1912
|
+
* @name cac:Delivery
|
|
1913
|
+
*/
|
|
1914
|
+
delivery: z.optional(deliverySchema),
|
|
1915
|
+
/**
|
|
1916
|
+
* @summary PAYMENT INSTRUCTIONS
|
|
1917
|
+
* @summary A group of business terms providing information about the payment.
|
|
1918
|
+
*
|
|
1919
|
+
* @name cac:PaymentMeans
|
|
1920
|
+
*/
|
|
1921
|
+
paymentMeans: z.optional(z.array(paymentMeansSchema)),
|
|
1922
|
+
/**
|
|
1923
|
+
* @example
|
|
1924
|
+
* Net within 30 days
|
|
1925
|
+
*
|
|
1926
|
+
* @summary PAYMENT TERMS
|
|
1927
|
+
*
|
|
1928
|
+
* @name cac:PaymentTerms
|
|
1929
|
+
*/
|
|
1930
|
+
paymentTerms: z.optional(paymentTermsSchema),
|
|
1931
|
+
/**
|
|
1932
|
+
* @description A group of business terms providing information about allowances applicable to the Invoice as a whole. A group of business terms providing
|
|
1933
|
+
* information about charges and taxes other than VAT, applicable to the Invoice as a whole.
|
|
1934
|
+
*
|
|
1935
|
+
* @summary DOCUMENT LEVEL ALLOWANCES AND CHARGES
|
|
1936
|
+
*
|
|
1937
|
+
* @name cac:AllowanceCharge
|
|
1938
|
+
*/
|
|
1939
|
+
allowanceCharges: z.optional(z.array(allowanceChargeSchema)),
|
|
1940
|
+
/**
|
|
1941
|
+
* @description When tax currency code is provided, two instances of the tax total must be present, but only one with tax subtotal.
|
|
1942
|
+
*
|
|
1943
|
+
* @summary TAX TOTAL
|
|
1944
|
+
*
|
|
1945
|
+
* @name cac:TaxTotal
|
|
1946
|
+
*/
|
|
1947
|
+
taxTotals: z.array(taxTotalsBaseSchema).check(z.minLength(1), z.maxLength(2)),
|
|
1948
|
+
/**
|
|
1949
|
+
* @summary DOCUMENT TOTALS
|
|
1950
|
+
*
|
|
1951
|
+
* @name cac:LegalMonetaryTotal
|
|
1952
|
+
*/
|
|
1953
|
+
legalMonetaryTotal: legalMonetaryTotalSchema
|
|
1954
|
+
});
|
|
1955
|
+
//#endregion
|
|
1956
|
+
//#region src/schemas/values/item-classification-code-schema.ts
|
|
1957
|
+
/**
|
|
1958
|
+
* @description Validates an item classification code against the PEPPOL subset of UNCL 7143.
|
|
1959
|
+
*
|
|
1960
|
+
* @param error - The custom error message to use when validation fails.
|
|
1961
|
+
*
|
|
1962
|
+
* @returns A Zod string schema that accepts only valid item classification codes.
|
|
1963
|
+
*
|
|
1964
|
+
* @validations
|
|
1965
|
+
* - BR-CL-13: Item classification scheme MUST be a valid UNTDID 7143 code.
|
|
1966
|
+
*
|
|
1967
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL7143/
|
|
1968
|
+
*/
|
|
1969
|
+
function itemClassificationCodesSchema(error) {
|
|
1970
|
+
return z.string().check(z.refine((val) => itemClassificationCodesKeys.includes(val), error));
|
|
1971
|
+
}
|
|
1972
|
+
//#endregion
|
|
1973
|
+
//#region src/schemas/fields/list-identifier-schema.ts
|
|
1974
|
+
/**
|
|
1975
|
+
* @description A code for classifying the item by its type or nature.
|
|
1976
|
+
*
|
|
1977
|
+
* @example
|
|
1978
|
+
* `9873242`;
|
|
1979
|
+
*
|
|
1980
|
+
* @summary Item classification identifier
|
|
1981
|
+
*
|
|
1982
|
+
* @name `cbc:ItemClassificationCode`
|
|
1983
|
+
*/
|
|
1984
|
+
const itemClassificationSchema = z.object({
|
|
1985
|
+
/**
|
|
1986
|
+
* @description A code for classifying the item by its type or nature.
|
|
1987
|
+
*
|
|
1988
|
+
* @summary Item classification identifier
|
|
1989
|
+
*
|
|
1990
|
+
* @name `#text`
|
|
1991
|
+
*/
|
|
1992
|
+
id: z.string(),
|
|
1993
|
+
/**
|
|
1994
|
+
* @description The identification scheme identifier of the item classification identifier.
|
|
1995
|
+
*
|
|
1996
|
+
* @summary Item classification identifier identification scheme identifier
|
|
1997
|
+
*
|
|
1998
|
+
* @name `@listID`
|
|
1999
|
+
*/
|
|
2000
|
+
listId: itemClassificationCodesSchema(),
|
|
2001
|
+
/**
|
|
2002
|
+
* @description The identification scheme version identifier of the Item classification identifier.
|
|
2003
|
+
*
|
|
2004
|
+
* @remarks
|
|
2005
|
+
* Only used with danish.
|
|
2006
|
+
*
|
|
2007
|
+
* @summary Item classification identifier version identification scheme identifier
|
|
2008
|
+
*
|
|
2009
|
+
* @name `@listVersionID`
|
|
2010
|
+
*/
|
|
2011
|
+
listVersionId: z.optional(z.string())
|
|
2012
|
+
});
|
|
2013
|
+
//#endregion
|
|
2014
|
+
//#region src/schemas/fields/line-item-schema.ts
|
|
2015
|
+
/**
|
|
2016
|
+
* @summary Item details on invoice/credit-note line
|
|
2017
|
+
*
|
|
2018
|
+
* @name cac:Item
|
|
2019
|
+
*/
|
|
2020
|
+
const lineItemSchema = z.object({
|
|
2021
|
+
/**
|
|
2022
|
+
* @description A description for an item. The item description allows for descibing the item and its features in more detail than the item name.
|
|
2023
|
+
*
|
|
2024
|
+
* @summary Item description
|
|
2025
|
+
*
|
|
2026
|
+
* @name cbc:Description
|
|
2027
|
+
*/
|
|
2028
|
+
description: z.optional(z.string()),
|
|
2029
|
+
/**
|
|
2030
|
+
* @description A name for an item.
|
|
2031
|
+
*
|
|
2032
|
+
* @summary Item name
|
|
2033
|
+
*
|
|
2034
|
+
* @name cbc:Name
|
|
2035
|
+
*/
|
|
2036
|
+
name: z.string(),
|
|
2037
|
+
/**
|
|
2038
|
+
* @summary BUYERS ITEM IDENTIFICATION
|
|
2039
|
+
*
|
|
2040
|
+
* @name cac:BuyersItemIdentification
|
|
2041
|
+
*/
|
|
2042
|
+
buyersItemIdentification: z.optional(z.object({
|
|
2043
|
+
/**
|
|
2044
|
+
* @description An identifier, assigned by the Buyer, for the item.
|
|
2045
|
+
*
|
|
2046
|
+
* @example
|
|
2047
|
+
* `12345`;
|
|
2048
|
+
*
|
|
2049
|
+
* @summary Item Buyer's identifier
|
|
2050
|
+
*
|
|
2051
|
+
* @name `cbc:ID`
|
|
2052
|
+
*/
|
|
2053
|
+
id: z.string() })),
|
|
2054
|
+
/**
|
|
2055
|
+
* @summary Sellers item identification
|
|
2056
|
+
*
|
|
2057
|
+
* @name cac:SellersItemIdentification
|
|
2058
|
+
*/
|
|
2059
|
+
sellersItemIdentification: z.optional(z.object({
|
|
2060
|
+
/**
|
|
2061
|
+
* @description An identifier, assigned by the Seller, for the item.
|
|
2062
|
+
*
|
|
2063
|
+
* @example
|
|
2064
|
+
* `987323`;
|
|
2065
|
+
*
|
|
2066
|
+
* @summary Item Seller's identifier
|
|
2067
|
+
*
|
|
2068
|
+
* @name `cbc:ID`
|
|
2069
|
+
*/
|
|
2070
|
+
id: z.string() })),
|
|
2071
|
+
/**
|
|
2072
|
+
* @summary Standard item identification
|
|
2073
|
+
*
|
|
2074
|
+
* @name cac:StandardItemIdentification
|
|
2075
|
+
*/
|
|
2076
|
+
standardItemIdentification: z.optional(z.object({
|
|
2077
|
+
/**
|
|
2078
|
+
* @description An item identifier based on a registered scheme.
|
|
2079
|
+
*
|
|
2080
|
+
* @summary Item standard identifier
|
|
2081
|
+
*
|
|
2082
|
+
* @name `cbc:ID`
|
|
2083
|
+
*/
|
|
2084
|
+
id: z.safeExtend(identifierSchema(), {
|
|
2085
|
+
/**
|
|
2086
|
+
* @description An item identifier based on a registered scheme.
|
|
2087
|
+
*
|
|
2088
|
+
* @summary Item standard identifier
|
|
2089
|
+
*
|
|
2090
|
+
* @name `#text`
|
|
2091
|
+
*/
|
|
2092
|
+
id: z.string(),
|
|
2093
|
+
/**
|
|
2094
|
+
* @description The identification scheme identifier of the Item standard identifier.
|
|
2095
|
+
*
|
|
2096
|
+
* @summary Item standard identifier identification scheme identifier
|
|
2097
|
+
*
|
|
2098
|
+
* @name `@schemeID`
|
|
2099
|
+
*/
|
|
2100
|
+
schemeId: icdCodesSchema()
|
|
2101
|
+
}) })),
|
|
2102
|
+
/**
|
|
2103
|
+
* @summary ORIGIN COUNTRY
|
|
2104
|
+
*
|
|
2105
|
+
* @name `cac:OriginCountry`
|
|
2106
|
+
*/
|
|
2107
|
+
originCountryCode: z.optional(z.object({
|
|
2108
|
+
/**
|
|
2109
|
+
* @description The code identifying the country from which the item originates.
|
|
2110
|
+
*
|
|
2111
|
+
* @summary Item country of origin
|
|
2112
|
+
*
|
|
2113
|
+
* @name `cbc:IdentificationCode`
|
|
2114
|
+
*/
|
|
2115
|
+
identificationCode: countryCodeSchema })),
|
|
2116
|
+
/**
|
|
2117
|
+
* @summary COMMODITY CLASSIFICATION
|
|
2118
|
+
*
|
|
2119
|
+
* @name cac:CommodityClassification (0..n)
|
|
2120
|
+
*/
|
|
2121
|
+
commodityClassifications: z.optional(z.array(z.object({
|
|
2122
|
+
/**
|
|
2123
|
+
* @description A code for classifying the item by its type or nature.
|
|
2124
|
+
*
|
|
2125
|
+
* @example
|
|
2126
|
+
* `9873242`;
|
|
2127
|
+
*
|
|
2128
|
+
* @summary Item classification identifier
|
|
2129
|
+
*
|
|
2130
|
+
* @name `cbc:ItemClassificationCode`
|
|
2131
|
+
*/
|
|
2132
|
+
itemClassification: itemClassificationSchema }))),
|
|
2133
|
+
/**
|
|
2134
|
+
* @description A group of business terms providing information about the VAT applicable for the goods and services invoiced on the Invoice line.
|
|
2135
|
+
*
|
|
2136
|
+
* @summary LINE VAT INFORMATION
|
|
2137
|
+
*
|
|
2138
|
+
* @name cac:ClassifiedTaxCategory
|
|
2139
|
+
*/
|
|
2140
|
+
classifiedTaxCategory: taxCategorySchema,
|
|
2141
|
+
/**
|
|
2142
|
+
* @description A group of business terms providing information about properties of the goods and services invoiced.
|
|
2143
|
+
*
|
|
2144
|
+
* @summary ITEM ATTRIBUTES
|
|
2145
|
+
*
|
|
2146
|
+
* @name cac:AdditionalItemProperty
|
|
2147
|
+
*/
|
|
2148
|
+
additionalItemProperties: z.optional(z.array(z.object({
|
|
2149
|
+
/**
|
|
2150
|
+
* @description The name of the attribute or property of the item.
|
|
2151
|
+
*
|
|
2152
|
+
* @summary Item attribute name
|
|
2153
|
+
*
|
|
2154
|
+
* @name cbc:Name
|
|
2155
|
+
*/
|
|
2156
|
+
name: z.string(),
|
|
2157
|
+
/**
|
|
2158
|
+
* @description The value of the attribute or property of the item.
|
|
2159
|
+
*
|
|
2160
|
+
* @summary Item attribute value
|
|
2161
|
+
*
|
|
2162
|
+
* @name cbc:Value
|
|
2163
|
+
*/
|
|
2164
|
+
value: z.string()
|
|
2165
|
+
})))
|
|
2166
|
+
});
|
|
2167
|
+
//#endregion
|
|
2168
|
+
//#region src/schemas/values/quantity-unit-codes-schema.ts
|
|
2169
|
+
/**
|
|
2170
|
+
* @description Validates a unit of measure code against the PEPPOL subset of UN/ECE Recommendation 20.
|
|
2171
|
+
*
|
|
2172
|
+
* @param error - The custom error message to use when validation fails.
|
|
2173
|
+
*
|
|
2174
|
+
* @returns A Zod string schema that accepts only valid quantity unit codes.
|
|
2175
|
+
*
|
|
2176
|
+
* @validations
|
|
2177
|
+
* - BR-CL-23: Unit of measure code MUST be a valid UN/ECE Rec 20 code.
|
|
2178
|
+
*
|
|
2179
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/UNECERec20/
|
|
2180
|
+
*/
|
|
2181
|
+
function quantityUnitCodesSchema(error) {
|
|
2182
|
+
return z.string(error).check(z.refine((val) => quantityUnitCodesKeys.includes(val)));
|
|
2183
|
+
}
|
|
2184
|
+
//#endregion
|
|
2185
|
+
//#region src/schemas/fields/quantity-schema.ts
|
|
2186
|
+
/**
|
|
2187
|
+
* @summary Quantity with optional unit code
|
|
2188
|
+
*
|
|
2189
|
+
* @name `cbc:* (+ @unitCode)`
|
|
2190
|
+
*/
|
|
2191
|
+
const quantitySchema = z.object({
|
|
2192
|
+
/**
|
|
2193
|
+
* @name `@unitCode`
|
|
2194
|
+
*/
|
|
2195
|
+
unitCode: z.optional(quantityUnitCodesSchema()),
|
|
2196
|
+
/**
|
|
2197
|
+
* @name `#text (value)`
|
|
2198
|
+
*/
|
|
2199
|
+
value: z.number()
|
|
2200
|
+
});
|
|
2201
|
+
//#endregion
|
|
2202
|
+
//#region src/schemas/fields/price-schema.ts
|
|
2203
|
+
/**
|
|
2204
|
+
* @summary Price details on invoice line
|
|
2205
|
+
*
|
|
2206
|
+
* @name cac:Price
|
|
2207
|
+
*/
|
|
2208
|
+
const linePriceSchema = z.object({
|
|
2209
|
+
/**
|
|
2210
|
+
* @name cac:AllowanceCharge
|
|
2211
|
+
*
|
|
2212
|
+
* @cardinality 0..1
|
|
2213
|
+
*/
|
|
2214
|
+
allowanceCharge: z.optional(linePriceAllowanceChargeSchema),
|
|
2215
|
+
/**
|
|
2216
|
+
* @name cbc:BaseQuantity (+ @unitCode)
|
|
2217
|
+
*
|
|
2218
|
+
* @cardinality 0..1
|
|
2219
|
+
*/
|
|
2220
|
+
baseQuantity: z.optional(quantitySchema),
|
|
2221
|
+
/**
|
|
2222
|
+
* @name cbc:PriceAmount (+ @currencyID)
|
|
2223
|
+
*/
|
|
2224
|
+
priceAmount: amountSchema
|
|
2225
|
+
});
|
|
2226
|
+
//#endregion
|
|
2227
|
+
//#region src/schemas/fields/base-line-schema.ts
|
|
2228
|
+
/**
|
|
2229
|
+
* @description Base of the invoice line and credit note line schemas.
|
|
2230
|
+
*/
|
|
2231
|
+
const baseLineSchema = z.object({
|
|
2232
|
+
/**
|
|
2233
|
+
* @description A textual value that specifies where to book the relevant data into the Buyer's financial accounts.
|
|
2234
|
+
*
|
|
2235
|
+
* @example
|
|
2236
|
+
* `1287:65464`;
|
|
2237
|
+
*
|
|
2238
|
+
* @summary Invoice line Buyer accounting reference
|
|
2239
|
+
*
|
|
2240
|
+
* @name cbc:AccountingCost
|
|
2241
|
+
*
|
|
2242
|
+
* @cardinality 0..1
|
|
2243
|
+
*/
|
|
2244
|
+
accountingCost: z.optional(z.string()),
|
|
2245
|
+
/**
|
|
2246
|
+
* @description A group of business terms providing information about allowances or charges applicable to the individual Invoice line.
|
|
2247
|
+
*
|
|
2248
|
+
* @summary Invoice line allowances or charges
|
|
2249
|
+
*
|
|
2250
|
+
* @name cac:AllowanceCharge
|
|
2251
|
+
*
|
|
2252
|
+
* @cardinality 0..n
|
|
2253
|
+
*/
|
|
2254
|
+
allowanceCharges: z.optional(z.array(lineAllowanceChargeSchema)),
|
|
2255
|
+
/**
|
|
2256
|
+
* @summary Line object identifier
|
|
2257
|
+
*
|
|
2258
|
+
* @name cac:DocumentReference
|
|
2259
|
+
*
|
|
2260
|
+
* @cardinality 0..1
|
|
2261
|
+
*/
|
|
2262
|
+
documentReference: z.optional(z.array(z.extend(identifierSchema(), {
|
|
2263
|
+
/**
|
|
2264
|
+
* @default 130
|
|
2265
|
+
*
|
|
2266
|
+
* @name cbc:DocumentTypeCode
|
|
2267
|
+
*/
|
|
2268
|
+
documentTypeCode: z._default(z.string(), "130") }))),
|
|
2269
|
+
/**
|
|
2270
|
+
* @description A unique identifier for the individual line within the Invoice.
|
|
2271
|
+
*
|
|
2272
|
+
* @example
|
|
2273
|
+
* 12;
|
|
2274
|
+
*
|
|
2275
|
+
* @summary Invoice line identifier
|
|
2276
|
+
*
|
|
2277
|
+
* @name cbc:ID
|
|
2278
|
+
*
|
|
2279
|
+
* @cardinality 1..1
|
|
2280
|
+
*/
|
|
2281
|
+
id: z.string(),
|
|
2282
|
+
/**
|
|
2283
|
+
* @description A group of business terms providing information about the period relevant for the Invoice line.
|
|
2284
|
+
*
|
|
2285
|
+
* @summary Invoice line period
|
|
2286
|
+
*
|
|
2287
|
+
* @name cac:InvoicePeriod
|
|
2288
|
+
*
|
|
2289
|
+
* @cardinality 0..1
|
|
2290
|
+
*/
|
|
2291
|
+
invoicePeriod: z.optional(invoiceLinePeriodSchema),
|
|
2292
|
+
/**
|
|
2293
|
+
* @description A group of business terms providing information about the goods and services invoiced.
|
|
2294
|
+
*
|
|
2295
|
+
* @summary Item information
|
|
2296
|
+
*
|
|
2297
|
+
* @name cac:Item
|
|
2298
|
+
*
|
|
2299
|
+
* @cardinality 1..1
|
|
2300
|
+
*/
|
|
2301
|
+
item: lineItemSchema,
|
|
2302
|
+
/**
|
|
2303
|
+
* @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
|
|
2304
|
+
* relevant taxes. Must be rounded to maximum 2 decimals.
|
|
2305
|
+
*
|
|
2306
|
+
* @example
|
|
2307
|
+
* { value: 2145.0, currencyId: "EUR" }
|
|
2308
|
+
*
|
|
2309
|
+
* @summary Invoice line net amount
|
|
2310
|
+
*
|
|
2311
|
+
* @name cbc:LineExtensionAmount (+ @currencyID)
|
|
2312
|
+
*
|
|
2313
|
+
* @cardinality 1..1
|
|
2314
|
+
*/
|
|
2315
|
+
lineExtensionAmount: amountSchema,
|
|
2316
|
+
/**
|
|
2317
|
+
* @description A textual note that gives unstructured information that is relevant to the Invoice line.
|
|
2318
|
+
*
|
|
2319
|
+
* @example
|
|
2320
|
+
* New article number 12345
|
|
2321
|
+
*
|
|
2322
|
+
* @summary Invoice line note
|
|
2323
|
+
*
|
|
2324
|
+
* @name cbc:Note
|
|
2325
|
+
*
|
|
2326
|
+
* @cardinality 0..1
|
|
2327
|
+
*/
|
|
2328
|
+
note: z.optional(z.string()),
|
|
2329
|
+
/**
|
|
2330
|
+
* @summary Order line reference
|
|
2331
|
+
*
|
|
2332
|
+
* @name cac:OrderLineReference
|
|
2333
|
+
*
|
|
2334
|
+
* @cardinality 0..1
|
|
2335
|
+
*/
|
|
2336
|
+
orderLineReference: z.optional(z.object({ lineId: z.string() })),
|
|
2337
|
+
/**
|
|
2338
|
+
* @description A group of business terms providing information about the price applied for the goods and services invoices on the Invoice line.
|
|
2339
|
+
*
|
|
2340
|
+
* @summary Price Details
|
|
2341
|
+
*
|
|
2342
|
+
* @name cac:Price
|
|
2343
|
+
*
|
|
2344
|
+
* @cardinality 1..1
|
|
2345
|
+
*/
|
|
2346
|
+
price: linePriceSchema
|
|
2347
|
+
});
|
|
2348
|
+
//#endregion
|
|
2349
|
+
//#region src/schemas/fields/credit-note-line-schema.ts
|
|
2350
|
+
/**
|
|
2351
|
+
* @description Credit note line is identical to Invoice line except the quantity element name.
|
|
2352
|
+
*/
|
|
2353
|
+
const creditNoteLineSchema = z.extend(baseLineSchema, {
|
|
2354
|
+
/**
|
|
2355
|
+
* @description Invoiced/Credited quantity.
|
|
2356
|
+
*
|
|
2357
|
+
* @example
|
|
2358
|
+
* { value: 40, unitCode: "C62" }
|
|
2359
|
+
*
|
|
2360
|
+
* @name cbc:CreditedQuantity (+ @unitCode)
|
|
2361
|
+
*/
|
|
2362
|
+
creditedQuantity: z.safeExtend(quantitySchema, {
|
|
2363
|
+
/**
|
|
2364
|
+
* @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
|
|
2365
|
+
* accordance with the descriptions in the "Intro" section of UN/ECE Recommendation 20, Revision 11 (2015): The 2 character alphanumeric code
|
|
2366
|
+
* values in UNECE Recommendation 21 shall be used. To avoid duplication with existing code values in UNECE Recommendation No. 20, each code value
|
|
2367
|
+
* from UNECE Recommendation 21 shall be prefixed with an “X”, resulting in a 3 alphanumeric code when used as a unit of measure.
|
|
2368
|
+
*
|
|
2369
|
+
* @example
|
|
2370
|
+
* `C62`;
|
|
2371
|
+
*
|
|
2372
|
+
* @summary Invoiced quantity unit of measure
|
|
2373
|
+
*
|
|
2374
|
+
* @see {@link quantityUnitCodes}
|
|
2375
|
+
*/
|
|
2376
|
+
unitCode: quantityUnitCodesSchema() }) });
|
|
2377
|
+
//#endregion
|
|
2378
|
+
//#region src/schemas/values/credit-note-type-code-schema.ts
|
|
2379
|
+
/**
|
|
2380
|
+
* @description Validates a credit note type code against the PEPPOL subset of UNCL 1001 (credit note).
|
|
2381
|
+
*
|
|
2382
|
+
* @param error - The custom error message to use when validation fails.
|
|
2383
|
+
*
|
|
2384
|
+
* @returns A Zod string schema that accepts only valid credit note type codes.
|
|
2385
|
+
*
|
|
2386
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL1001-cn/
|
|
2387
|
+
*/
|
|
2388
|
+
function creditNoteTypeCodeSchema(error) {
|
|
2389
|
+
return z.string().check(z.refine((val) => creditNoteTypeCodesKeys.includes(val), error));
|
|
2390
|
+
}
|
|
2391
|
+
//#endregion
|
|
2392
|
+
//#region src/schemas/credit-note.ts
|
|
2393
|
+
/**
|
|
2394
|
+
* @description Main UBL Credit Note schema (camelCase properties)
|
|
2395
|
+
*/
|
|
2396
|
+
const creditNoteSchema = z.extend(billingBaseSchema, {
|
|
2397
|
+
/**
|
|
2398
|
+
* @description CREDIT NOTE LINE.
|
|
2399
|
+
*
|
|
2400
|
+
* @name cac:CreditNoteLine (1..n)
|
|
2401
|
+
*/
|
|
2402
|
+
creditNoteLines: z.array(creditNoteLineSchema).check(z.minLength(1)),
|
|
2403
|
+
/**
|
|
2404
|
+
* @description Invoice type code A code specifying the functional type of the Credit Note.
|
|
2405
|
+
*
|
|
2406
|
+
* @example
|
|
2407
|
+
* 381;
|
|
2408
|
+
*
|
|
2409
|
+
* @name cbc:CreditNoteTypeCode
|
|
2410
|
+
*/
|
|
2411
|
+
creditNoteTypeCode: creditNoteTypeCodeSchema()
|
|
2412
|
+
});
|
|
2413
|
+
//#endregion
|
|
2414
|
+
//#region src/schemas/fields/invoice-line-schema.ts
|
|
2415
|
+
/**
|
|
2416
|
+
* @summary Invoice line
|
|
2417
|
+
*
|
|
2418
|
+
* @name cac:InvoiceLine
|
|
2419
|
+
*/
|
|
2420
|
+
const invoiceLineSchema = z.extend(baseLineSchema, {
|
|
2421
|
+
/**
|
|
2422
|
+
* @description The quantity of items (goods or services) that is charged in the Invoice line.
|
|
2423
|
+
*
|
|
2424
|
+
* @example
|
|
2425
|
+
* { value: 100, unitCode: "C62" }
|
|
2426
|
+
*
|
|
2427
|
+
* @summary Invoiced quantity
|
|
2428
|
+
*
|
|
2429
|
+
* @name cbc:InvoicedQuantity (+ @unitCode)
|
|
2430
|
+
*/
|
|
2431
|
+
invoicedQuantity: z.safeExtend(quantitySchema, {
|
|
2432
|
+
/**
|
|
2433
|
+
* @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
|
|
2434
|
+
* accordance with the descriptions in the "Intro" section of UN/ECE Recommendation 20, Revision 11 (2015): The 2 character alphanumeric code
|
|
2435
|
+
* values in UNECE Recommendation 21 shall be used. To avoid duplication with existing code values in UNECE Recommendation No. 20, each code value
|
|
2436
|
+
* from UNECE Recommendation 21 shall be prefixed with an “X”, resulting in a 3 alphanumeric code when used as a unit of measure.
|
|
2437
|
+
*
|
|
2438
|
+
* @example
|
|
2439
|
+
* `C62`;
|
|
2440
|
+
*
|
|
2441
|
+
* @summary Invoiced quantity unit of measure
|
|
2442
|
+
*
|
|
2443
|
+
* @see {@link quantityUnitCodes}
|
|
2444
|
+
*/
|
|
2445
|
+
unitCode: quantityUnitCodesSchema() }) });
|
|
2446
|
+
//#endregion
|
|
2447
|
+
//#region src/schemas/values/invoice-type-code-schema.ts
|
|
2448
|
+
/**
|
|
2449
|
+
* @description Validates an invoice type code against the PEPPOL subset of UNCL 1001 (invoice).
|
|
2450
|
+
*
|
|
2451
|
+
* @param error - The custom error message to use when validation fails.
|
|
2452
|
+
*
|
|
2453
|
+
* @returns A Zod string schema that accepts only valid invoice type codes.
|
|
2454
|
+
*
|
|
2455
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL1001-inv/
|
|
2456
|
+
*/
|
|
2457
|
+
function invoiceTypeCodeSchema(error) {
|
|
2458
|
+
return z.string(error).check(z.refine((val) => invoiceTypeCodesKeys.includes(val), error));
|
|
2459
|
+
}
|
|
2460
|
+
//#endregion
|
|
2461
|
+
//#region src/schemas/invoice.ts
|
|
2462
|
+
/**
|
|
2463
|
+
* @description Main UBL Invoice schema (camelCase properties)
|
|
2464
|
+
*/
|
|
2465
|
+
const invoiceSchema = z.extend(billingBaseSchema, {
|
|
2466
|
+
/**
|
|
2467
|
+
* @example
|
|
2468
|
+
* 2017 - 11 - 01;
|
|
2469
|
+
*
|
|
2470
|
+
* @summary Payment due date
|
|
2471
|
+
*
|
|
2472
|
+
* @name cbc:DueDate
|
|
2473
|
+
*/
|
|
2474
|
+
dueDate: z.optional(z.iso.date()),
|
|
2475
|
+
/**
|
|
2476
|
+
* @summary INVOICE LINE
|
|
2477
|
+
*
|
|
2478
|
+
* @name cac:InvoiceLine
|
|
2479
|
+
*/
|
|
2480
|
+
invoiceLines: z.array(invoiceLineSchema).check(z.minLength(1)),
|
|
2481
|
+
/**
|
|
2482
|
+
* @example
|
|
2483
|
+
* 380;
|
|
2484
|
+
*
|
|
2485
|
+
* @summary Invoice type code
|
|
2486
|
+
*
|
|
2487
|
+
* @name cbc:InvoiceTypeCode
|
|
2488
|
+
*/
|
|
2489
|
+
invoiceTypeCode: invoiceTypeCodeSchema(),
|
|
2490
|
+
/**
|
|
2491
|
+
* @summary PROJECT REFERENCE
|
|
2492
|
+
*
|
|
2493
|
+
* @name cac:ProjectReference
|
|
2494
|
+
*/
|
|
2495
|
+
projectReference: z.optional(z.object({ id: z.string() }))
|
|
2496
|
+
});
|
|
2497
|
+
//#endregion
|
|
2498
|
+
//#region src/schemas/fields/date-only-fn.ts
|
|
2499
|
+
function dateOnly(error) {
|
|
2500
|
+
return z.iso.date(error);
|
|
2501
|
+
}
|
|
2502
|
+
dateOnly.error = "PEPPOL-EN16931-F001: A date MUST be formatted YYYY-MM-DD.";
|
|
2503
|
+
//#endregion
|
|
2504
|
+
//#region src/schemas/fields/date-only-parser.ts
|
|
2505
|
+
const dateFnsOptions$1 = { in: tz("UTC") };
|
|
2506
|
+
function dateOnlyParser() {
|
|
2507
|
+
return z.codec(z.date(), z.iso.date(dateOnly.error), {
|
|
2508
|
+
decode(value) {
|
|
2509
|
+
return typeof value === "string" ? value : format(value, "yyyy-MM-dd", dateFnsOptions$1);
|
|
2510
|
+
},
|
|
2511
|
+
encode(value) {
|
|
2512
|
+
return parse(value, "yyyy-MM-dd", /* @__PURE__ */ new Date(), dateFnsOptions$1);
|
|
2513
|
+
}
|
|
2514
|
+
});
|
|
2515
|
+
}
|
|
2516
|
+
//#endregion
|
|
2517
|
+
//#region src/schemas/values/op-status-action.ts
|
|
2518
|
+
/**
|
|
2519
|
+
* @description Validates an OpenPeppol operation status action code against the OPStatusAction codelist.
|
|
2520
|
+
*
|
|
2521
|
+
* @param error - The custom error message to use when validation fails.
|
|
2522
|
+
*
|
|
2523
|
+
* @returns A Zod string schema that accepts only valid operation status action codes.
|
|
2524
|
+
*
|
|
2525
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/OPStatusAction/
|
|
2526
|
+
*/
|
|
2527
|
+
function opStatusActionSchema(error) {
|
|
2528
|
+
return z.string().check(z.refine((val) => opStatusActionKeys.includes(val), error));
|
|
2529
|
+
}
|
|
2530
|
+
//#endregion
|
|
2531
|
+
//#region src/schemas/values/op-status-reason.ts
|
|
2532
|
+
/**
|
|
2533
|
+
* @description Validates an OpenPeppol operation status reason code against the OPStatusReason codelist.
|
|
2534
|
+
*
|
|
2535
|
+
* @param error - The custom error message to use when validation fails.
|
|
2536
|
+
*
|
|
2537
|
+
* @returns A Zod string schema that accepts only valid operation status reason codes.
|
|
2538
|
+
*
|
|
2539
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/OPStatusReason/
|
|
2540
|
+
*/
|
|
2541
|
+
function opStatusReasonSchema(error) {
|
|
2542
|
+
return z.string().check(z.refine((val) => opStatusReasonKeys.includes(val), error));
|
|
2543
|
+
}
|
|
2544
|
+
//#endregion
|
|
2545
|
+
//#region src/schemas/invoice-response-status-reason-code.ts
|
|
2546
|
+
const invoiceResponseStatusReasonCode = z.discriminatedUnion("listId", [z.object({
|
|
2547
|
+
value: opStatusActionSchema(),
|
|
2548
|
+
/**
|
|
2549
|
+
* @description List identifier for clarification.
|
|
2550
|
+
*
|
|
2551
|
+
* @summary List identifier
|
|
2552
|
+
*
|
|
2553
|
+
* @name `@listId`
|
|
2554
|
+
*/
|
|
2555
|
+
listId: z.literal("OPStatusAction")
|
|
2556
|
+
}), z.object({
|
|
2557
|
+
value: opStatusReasonSchema(),
|
|
2558
|
+
/**
|
|
2559
|
+
* @description List identifier for clarification.
|
|
2560
|
+
*
|
|
2561
|
+
* @summary List identifier
|
|
2562
|
+
*
|
|
2563
|
+
* @name `@listId`
|
|
2564
|
+
*/
|
|
2565
|
+
listId: z.literal("OPStatusReason")
|
|
2566
|
+
})]);
|
|
2567
|
+
//#endregion
|
|
2568
|
+
//#region src/schemas/invoice-response-document-actual-response-status.ts
|
|
2569
|
+
const invoiceResponseCondition = z.object({
|
|
2570
|
+
/**
|
|
2571
|
+
* @description A code defining the type of the detail.
|
|
2572
|
+
*
|
|
2573
|
+
* @example
|
|
2574
|
+
* `BT-75`;
|
|
2575
|
+
*
|
|
2576
|
+
* @summary Detail type code
|
|
2577
|
+
*
|
|
2578
|
+
* @name `cbc:AttributeId`
|
|
2579
|
+
*/
|
|
2580
|
+
attributeId: z.string(),
|
|
2581
|
+
/**
|
|
2582
|
+
* @description The value of the detail.
|
|
2583
|
+
*
|
|
2584
|
+
* @example
|
|
2585
|
+
* `EU123456789`;
|
|
2586
|
+
*
|
|
2587
|
+
* @summary Detail value
|
|
2588
|
+
*
|
|
2589
|
+
* @name `cbc:Description`
|
|
2590
|
+
*/
|
|
2591
|
+
description: z.optional(z.string())
|
|
2592
|
+
});
|
|
2593
|
+
const invoiceReponseDocumentActualResponseStatus = z.object({
|
|
2594
|
+
/**
|
|
2595
|
+
* @description A code defining a clarification given for the invoice status.
|
|
2596
|
+
*
|
|
2597
|
+
* @summary Clarification code
|
|
2598
|
+
*
|
|
2599
|
+
* @name `cbc:StatusReasonCode`
|
|
2600
|
+
*/
|
|
2601
|
+
statusReasonCode: z.optional(invoiceResponseStatusReasonCode),
|
|
2602
|
+
/**
|
|
2603
|
+
* @description The description of the clarification given for the invoice status.
|
|
2604
|
+
*
|
|
2605
|
+
* @example
|
|
2606
|
+
* `TAX reference not found`;
|
|
2607
|
+
*
|
|
2608
|
+
* @summary Clarification description
|
|
2609
|
+
*
|
|
2610
|
+
* @name `cbc:StatusReason
|
|
2611
|
+
*/
|
|
2612
|
+
statusReason: z.optional(z.string()),
|
|
2613
|
+
/**
|
|
2614
|
+
* @summary Condition
|
|
2615
|
+
*
|
|
2616
|
+
* @name `cac:Condition`
|
|
2617
|
+
*/
|
|
2618
|
+
condition: z.optional(z.array(invoiceResponseCondition))
|
|
2619
|
+
});
|
|
2620
|
+
//#endregion
|
|
2621
|
+
//#region src/schemas/invoice-response-document-actual-response.ts
|
|
2622
|
+
const withStatusCodes = z.enum(invoiceResponseCodeNeedsSchema);
|
|
2623
|
+
const withoutStatusCodes = z.enum(invoiceResponseCodeNotNeedsSchema);
|
|
2624
|
+
const invoiceResponseDocumentActualResponse = z.discriminatedUnion("responseCode", [z.object({
|
|
2625
|
+
/**
|
|
2626
|
+
* @remarks
|
|
2627
|
+
* This is a rejection code that needs clarification in {@link status}
|
|
2628
|
+
*
|
|
2629
|
+
* @summary A code stating the status of the invoice in the process.
|
|
2630
|
+
*
|
|
2631
|
+
* @name `cbc:ResponseCode`
|
|
2632
|
+
*/
|
|
2633
|
+
responseCode: withStatusCodes,
|
|
2634
|
+
/**
|
|
2635
|
+
* @description The date when the status became effective.
|
|
2636
|
+
*
|
|
2637
|
+
* @example
|
|
2638
|
+
* `2018-08-02`;
|
|
2639
|
+
*
|
|
2640
|
+
* @summary Status date
|
|
2641
|
+
*
|
|
2642
|
+
* @name `cbc:EffectiveDate`
|
|
2643
|
+
*/
|
|
2644
|
+
effectiveDate: z.optional(z.union([z.iso.date(), dateOnlyParser()], "invalid effective date")),
|
|
2645
|
+
/**
|
|
2646
|
+
* @description Clarification is mendatory when the status is UQ-`under query`,RE-`rejected` and `CA`-Conditionally accepted. Clarification may be given as a
|
|
2647
|
+
* code, a description or both. If both are used, they must indicate the same clarification.
|
|
2648
|
+
*
|
|
2649
|
+
* @summary Clarification information
|
|
2650
|
+
*
|
|
2651
|
+
* @name `cac:Status`
|
|
2652
|
+
*/
|
|
2653
|
+
status: z.array(invoiceReponseDocumentActualResponseStatus).check(z.minLength(1))
|
|
2654
|
+
}), z.object({
|
|
2655
|
+
/**
|
|
2656
|
+
* @summary A code stating the status of the invoice in the process.
|
|
2657
|
+
*
|
|
2658
|
+
* @name `cbc:ResponseCode`
|
|
2659
|
+
*/
|
|
2660
|
+
responseCode: withoutStatusCodes,
|
|
2661
|
+
/**
|
|
2662
|
+
* @description The date when the status became effective.
|
|
2663
|
+
*
|
|
2664
|
+
* @example
|
|
2665
|
+
* `2018-08-02`;
|
|
2666
|
+
*
|
|
2667
|
+
* @summary Status date
|
|
2668
|
+
*
|
|
2669
|
+
* @name `cbc:EffectiveDate`
|
|
2670
|
+
*/
|
|
2671
|
+
effectiveDate: z.optional(z.union([z.iso.date(), dateOnlyParser()], "invalid effective date")),
|
|
2672
|
+
/**
|
|
2673
|
+
* @description Clarification is mendatory when the status is UQ-`under query`,RE-`rejected` and `CA`-Conditionally accepted. Clarification may be given as a
|
|
2674
|
+
* code, a description or both. If both are used, they must indicate the same clarification.
|
|
2675
|
+
*
|
|
2676
|
+
* @summary Clarification information
|
|
2677
|
+
*
|
|
2678
|
+
* @name `cac:Status`
|
|
2679
|
+
*/
|
|
2680
|
+
status: z.optional(z.array(invoiceReponseDocumentActualResponseStatus))
|
|
2681
|
+
})]);
|
|
2682
|
+
//#endregion
|
|
2683
|
+
//#region src/schemas/message-level-response-party-schema.ts
|
|
2684
|
+
const messageLevelResponsePartySchema = z.object({
|
|
2685
|
+
/**
|
|
2686
|
+
* @description Identifies the sender party's electronic address.
|
|
2687
|
+
*
|
|
2688
|
+
* @example
|
|
2689
|
+
* 7300010000001;
|
|
2690
|
+
*
|
|
2691
|
+
* @summary Sender/Receiver party's electronic address
|
|
2692
|
+
*
|
|
2693
|
+
* @name `cbc:EndpointID (+ @schemeID)`
|
|
2694
|
+
*/
|
|
2695
|
+
endpointId: z.optional(identifierSchema()) });
|
|
2696
|
+
//#endregion
|
|
2697
|
+
//#region src/schemas/values/document-type-codes.ts
|
|
2698
|
+
/**
|
|
2699
|
+
* @description Validates a document type code against the PEPPOL subset of UNCL 1001.
|
|
2700
|
+
*
|
|
2701
|
+
* @param error - The custom error message to use when validation fails.
|
|
2702
|
+
*
|
|
2703
|
+
* @returns A Zod string schema that accepts only valid document type codes.
|
|
2704
|
+
*
|
|
2705
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL1001/
|
|
2706
|
+
*/
|
|
2707
|
+
function documentTypeCodeSchema(error) {
|
|
2708
|
+
return z.string().check(z.refine((val) => documentTypeCodesKeys.includes(val), error));
|
|
2709
|
+
}
|
|
2710
|
+
//#endregion
|
|
2711
|
+
//#region src/schemas/document-response-document-reference-schema.ts
|
|
2712
|
+
const documentResponseDocumentReferenceSchema = z.object({
|
|
2713
|
+
/**
|
|
2714
|
+
* @description Identifies the document on which the message level response is based.
|
|
2715
|
+
*
|
|
2716
|
+
* @example
|
|
2717
|
+
* `EnvelopeID-12345`;
|
|
2718
|
+
*
|
|
2719
|
+
* @summary Document identifier
|
|
2720
|
+
*
|
|
2721
|
+
* @name `cbc:ID`
|
|
2722
|
+
*/
|
|
2723
|
+
id: z.string(),
|
|
2724
|
+
/**
|
|
2725
|
+
* @description The type of the document being referred to, expressed as a code.
|
|
2726
|
+
*
|
|
2727
|
+
* @summary Document type code
|
|
2728
|
+
*
|
|
2729
|
+
* @name `cbc:DocumentTypeCode`
|
|
2730
|
+
*/
|
|
2731
|
+
documentTypeCode: z.optional(documentTypeCodeSchema()),
|
|
2732
|
+
/**
|
|
2733
|
+
* @description The version of the document that has been identifier with the document identifier.
|
|
2734
|
+
*
|
|
2735
|
+
* @example
|
|
2736
|
+
* `2`;
|
|
2737
|
+
*
|
|
2738
|
+
* @summary Document version identifier
|
|
2739
|
+
*
|
|
2740
|
+
* @name `cbc:VersionID`
|
|
2741
|
+
*/
|
|
2742
|
+
versionId: z.optional(z.string())
|
|
2743
|
+
});
|
|
2744
|
+
//#endregion
|
|
2745
|
+
//#region src/schemas/values/application-response-type-codes.ts
|
|
2746
|
+
/**
|
|
2747
|
+
* @description Validates an application response type code against the PEPPOL subset of UNCL 4343.
|
|
2748
|
+
*
|
|
2749
|
+
* @param error - The custom error message to use when validation fails.
|
|
2750
|
+
*
|
|
2751
|
+
* @returns A Zod string schema that accepts only valid application response type codes.
|
|
2752
|
+
*
|
|
2753
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL4343/
|
|
2754
|
+
*/
|
|
2755
|
+
function applicationResponseTypeCodeSchema(error) {
|
|
2756
|
+
return z.string(error).check(z.refine((val) => applicationResponseTypeCodesKeys.includes(val), error));
|
|
2757
|
+
}
|
|
2758
|
+
//#endregion
|
|
2759
|
+
//#region src/schemas/document-response-document-schema.ts
|
|
2760
|
+
/**
|
|
2761
|
+
* @summary Response information
|
|
2762
|
+
*
|
|
2763
|
+
* @name `cac:Response`
|
|
2764
|
+
*
|
|
2765
|
+
* @cardinality (1..1)
|
|
2766
|
+
*
|
|
2767
|
+
* @see {@link messageLevelResponseDocumentResponseSchema}
|
|
2768
|
+
*/
|
|
2769
|
+
const documentResponseDocumentSchema = z.object({
|
|
2770
|
+
/**
|
|
2771
|
+
* @description An indicator stating whether the referenced message was cleared through validation and advanced to the next step in the process. A negative
|
|
2772
|
+
* response states that the document was not processed because of identified issues.
|
|
2773
|
+
*
|
|
2774
|
+
* @example
|
|
2775
|
+
* `RE`;
|
|
2776
|
+
*
|
|
2777
|
+
* @summary Message response code
|
|
2778
|
+
*
|
|
2779
|
+
* @name `cbc:ResponseCode`
|
|
2780
|
+
*/
|
|
2781
|
+
responseCode: applicationResponseTypeCodeSchema(),
|
|
2782
|
+
/**
|
|
2783
|
+
* @description Used to meake any comments or instructions relevant to the response. The use of this element requires manual assessment by the receiver.
|
|
2784
|
+
*
|
|
2785
|
+
* @summary Response textual notes
|
|
2786
|
+
*/
|
|
2787
|
+
description: z.optional(z.string())
|
|
2788
|
+
});
|
|
2789
|
+
//#endregion
|
|
2790
|
+
//#region src/schemas/document-response-line-response-content.ts
|
|
2791
|
+
const documentResponseLineResponseContent = z.object({
|
|
2792
|
+
/**
|
|
2793
|
+
* @description An indicator stating whether the referenced message was cleared through validation and advanced to the next step in the process. A negative
|
|
2794
|
+
* response states that the document was not processed because of identified issues.
|
|
2795
|
+
*
|
|
2796
|
+
* @example
|
|
2797
|
+
* `RE`;
|
|
2798
|
+
*
|
|
2799
|
+
* @summary Line response code
|
|
2800
|
+
*
|
|
2801
|
+
* @name `cbc:ResponseCode`
|
|
2802
|
+
*/
|
|
2803
|
+
responseCode: applicationResponseTypeCodeSchema(),
|
|
2804
|
+
/**
|
|
2805
|
+
* @description The description of the issued identifier in the transaction document.
|
|
2806
|
+
*
|
|
2807
|
+
* @example
|
|
2808
|
+
* `Validation gives error [CL-T77-R0002]- Tax categories MUST be coded using UN/ECE 5305 code list`;
|
|
2809
|
+
*
|
|
2810
|
+
* @summary Issue description
|
|
2811
|
+
*
|
|
2812
|
+
* @name `cbc:Description`
|
|
2813
|
+
*/
|
|
2814
|
+
description: z.string(),
|
|
2815
|
+
/**
|
|
2816
|
+
* @name `cac:Status`
|
|
2817
|
+
*/
|
|
2818
|
+
status: z.object({
|
|
2819
|
+
/**
|
|
2820
|
+
* @description A codified version of the issue description that describes the nature of the issue. e.g. Syntax violation, business rule violation, ...
|
|
2821
|
+
*
|
|
2822
|
+
* @summary Issue type coded
|
|
2823
|
+
*
|
|
2824
|
+
* @name `cbc:StatusReasonCode`
|
|
2825
|
+
*/
|
|
2826
|
+
statusReasonCode: z.enum([
|
|
2827
|
+
"BV",
|
|
2828
|
+
"BW",
|
|
2829
|
+
"SV"
|
|
2830
|
+
]) })
|
|
2831
|
+
});
|
|
2832
|
+
//#endregion
|
|
2833
|
+
//#region src/schemas/document-response-line-response-schema.ts
|
|
2834
|
+
const documentResponseLineResponseSchema = z.object({
|
|
2835
|
+
/**
|
|
2836
|
+
* @description Identifies the line in the business document to which the reported issue applies.
|
|
2837
|
+
*
|
|
2838
|
+
* @summary Line reference
|
|
2839
|
+
*
|
|
2840
|
+
* @name `cac:LineReference`
|
|
2841
|
+
*/
|
|
2842
|
+
lineReference: z.object({
|
|
2843
|
+
/**
|
|
2844
|
+
* @description Identifies the section of the document to which the reported issue applied. The LineID element mustbe used to indicate where in the business
|
|
2845
|
+
* document the error occurred by using XPath to reference the element causing the error. To cater for scenarios where it is not possible to
|
|
2846
|
+
* 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
|
|
2847
|
+
* mendatory in the ApplicationResponse message in UBL 2.1 on which the MLR message is based.
|
|
2848
|
+
*
|
|
2849
|
+
* @example
|
|
2850
|
+
* `/Catalogue/cac:CatalogueLine[3]/cac:Item[1]/cac:ClassifiedTaxCategory[1]/cbc:ID[1]`;
|
|
2851
|
+
*
|
|
2852
|
+
* @summary Section identifier
|
|
2853
|
+
*/
|
|
2854
|
+
lineId: z.string() }),
|
|
2855
|
+
/**
|
|
2856
|
+
* @summary Line response information
|
|
2857
|
+
*/
|
|
2858
|
+
response: documentResponseLineResponseContent
|
|
2859
|
+
});
|
|
2860
|
+
//#endregion
|
|
2861
|
+
//#region src/schemas/message-level-response-document-response-schema.ts
|
|
2862
|
+
const messageLevelResponseDocumentResponseSchema = z.object({
|
|
2863
|
+
/**
|
|
2864
|
+
* @summary Response information
|
|
2865
|
+
*
|
|
2866
|
+
* @name `cac:Response`
|
|
2867
|
+
*
|
|
2868
|
+
* @cardinality (1..1)
|
|
2869
|
+
*/
|
|
2870
|
+
response: documentResponseDocumentSchema,
|
|
2871
|
+
/**
|
|
2872
|
+
* @description The document reference is used to provide a reference to the envelope of the business document on which the message level response is based. The
|
|
2873
|
+
* message level response message may only cover exactly one business document. The element `cac:DocumentResponse/cac:DocumentReference/cbc:ID`
|
|
2874
|
+
* **MUST** contain the instance identifier of the envelope of the original business document.
|
|
2875
|
+
*
|
|
2876
|
+
* @summary Document reference
|
|
2877
|
+
*/
|
|
2878
|
+
documentReference: documentResponseDocumentReferenceSchema,
|
|
2879
|
+
/**
|
|
2880
|
+
* @description A response to a particular line in the document. If the document response is negative (code='RE'), the line response element is used to specify
|
|
2881
|
+
* the errors in the business document.
|
|
2882
|
+
*
|
|
2883
|
+
* @summary Line response information
|
|
2884
|
+
*/
|
|
2885
|
+
lineResponse: z.array(documentResponseLineResponseSchema)
|
|
2886
|
+
});
|
|
2887
|
+
//#endregion
|
|
2888
|
+
//#region src/schemas/utils/xsd-time.ts
|
|
2889
|
+
const xsdTime = z.string().check(z.regex(/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d{1,9})?(?:Z|-0[1-9]|-1\d|-2[0-3]|-00:?(?:0[1-9]|[1-5]\d)|\+[01]\d|\+2[0-3])?(?:|:?[0-5]\d)$/, { error: "Invalid ISO time" }));
|
|
2890
|
+
//#endregion
|
|
2891
|
+
//#region src/schemas/message-level-response-schema.ts
|
|
2892
|
+
const messageLevelResponse = z.object({
|
|
2893
|
+
/**
|
|
2894
|
+
* @description Identifies the specification of content and rules that apply to the transaction.
|
|
2895
|
+
*
|
|
2896
|
+
* @default `urn:fdc:peppol.eu:poacc:trns:mlr:3`
|
|
2897
|
+
*
|
|
2898
|
+
* @summary Specification identification
|
|
2899
|
+
*
|
|
2900
|
+
* @name `cbc:CustomizationID`
|
|
2901
|
+
*
|
|
2902
|
+
* @cardinality 1..1
|
|
2903
|
+
*/
|
|
2904
|
+
customizationId: z.string(),
|
|
2905
|
+
/**
|
|
2906
|
+
* @description Identifies the BII profile or business process context in which the transaction appears.
|
|
2907
|
+
*
|
|
2908
|
+
* @remarks
|
|
2909
|
+
* Fixed value to `urn:fdc:peppol.eu:poacc:bis:mlr:3`
|
|
2910
|
+
*
|
|
2911
|
+
* @default `urn:fdc:peppol.eu:poacc:bis:mlr:3`
|
|
2912
|
+
*
|
|
2913
|
+
* @summary Business process type identifier
|
|
2914
|
+
*
|
|
2915
|
+
* @name `cbc:ProfileID`
|
|
2916
|
+
*/
|
|
2917
|
+
profileId: z.literal(MESSAGE_LEVEL_RESPONSE_PROFILE_ID),
|
|
2918
|
+
/**
|
|
2919
|
+
* @description A transaction instance must contain an identifier. The identifier enables positive referencing the transaction instance for various puropses
|
|
2920
|
+
* including referencing between transactions that are part of the same process.
|
|
2921
|
+
*
|
|
2922
|
+
* @example
|
|
2923
|
+
* 23;
|
|
2924
|
+
*
|
|
2925
|
+
* @summary Response identifier
|
|
2926
|
+
*
|
|
2927
|
+
* @name cbc:ID
|
|
2928
|
+
*/
|
|
2929
|
+
id: z.string(),
|
|
2930
|
+
/**
|
|
2931
|
+
* @description The date on which the transaction instance was issued.
|
|
2932
|
+
*
|
|
2933
|
+
* @example
|
|
2934
|
+
* 2017 - 11 - 01;
|
|
2935
|
+
*
|
|
2936
|
+
* @summary Response issue date
|
|
2937
|
+
*
|
|
2938
|
+
* @format `YYYY-MM-DD`
|
|
2939
|
+
*
|
|
2940
|
+
* @name cbc:IssueDate
|
|
2941
|
+
*/
|
|
2942
|
+
issueDate: z.iso.date(),
|
|
2943
|
+
/**
|
|
2944
|
+
* @description The time at which the transaction instance was issued.
|
|
2945
|
+
*
|
|
2946
|
+
* @example
|
|
2947
|
+
* 12:01:34
|
|
2948
|
+
*
|
|
2949
|
+
* @summary Response issue time
|
|
2950
|
+
*
|
|
2951
|
+
* @format `hh:mm:ss`
|
|
2952
|
+
*
|
|
2953
|
+
* @name cbc:IssueDate
|
|
2954
|
+
*/
|
|
2955
|
+
issueTime: z.optional(xsdTime),
|
|
2956
|
+
/**
|
|
2957
|
+
* @description The party sending an electronic message level response message back to the sending party of the business document.
|
|
2958
|
+
*
|
|
2959
|
+
* @summary Sender information
|
|
2960
|
+
*/
|
|
2961
|
+
senderParty: messageLevelResponsePartySchema,
|
|
2962
|
+
/**
|
|
2963
|
+
* @description The party, an electronic message level response was addressed to, and who is supposed to process the message level response. This is the same
|
|
2964
|
+
* party as the sender of the business document.
|
|
2965
|
+
*
|
|
2966
|
+
* @summary Receiver information
|
|
2967
|
+
*/
|
|
2968
|
+
receiverParty: messageLevelResponsePartySchema,
|
|
2969
|
+
/**
|
|
2970
|
+
* @description The document response is used to indicate the result of business document validation. The element
|
|
2971
|
+
* `cac:DocumentResponse/cac:Response/cbc:ResponseCode` MUST contain the overall result code.
|
|
2972
|
+
*
|
|
2973
|
+
* @summary Document response
|
|
2974
|
+
*
|
|
2975
|
+
* @name `cac:DocumentResponse`
|
|
2976
|
+
*/
|
|
2977
|
+
documentResponse: messageLevelResponseDocumentResponseSchema
|
|
2978
|
+
});
|
|
2979
|
+
//#endregion
|
|
2980
|
+
//#region src/schemas/invoice-response-schema.ts
|
|
2981
|
+
const invoiceResponsePartySchema = z.extend(messageLevelResponsePartySchema, {
|
|
2982
|
+
/**
|
|
2983
|
+
* @summary Party partyIdentification
|
|
2984
|
+
*/
|
|
2985
|
+
partyIdentification: z.optional(identifierSchema()),
|
|
2986
|
+
partyLegalEntity: z.pick(partyLegalEntitySchema, { registrationName: true })
|
|
2987
|
+
});
|
|
2988
|
+
const invoiceResponseSenderPartySchema = z.extend(invoiceResponsePartySchema, {
|
|
2989
|
+
/**
|
|
2990
|
+
* @summary Contact information
|
|
2991
|
+
*
|
|
2992
|
+
* @name `cac:Contact`
|
|
2993
|
+
*/
|
|
2994
|
+
contact: z.optional(contactSchema) });
|
|
2995
|
+
/**
|
|
2996
|
+
* @description Party schema used under `cac:DocumentReference/(cac:IssuerParty|cac:RecipientParty)`
|
|
2997
|
+
*/
|
|
2998
|
+
const invoiceResponseDocumentResponseParty = z.object({
|
|
2999
|
+
/**
|
|
3000
|
+
* @summary Party partyIdentification
|
|
3001
|
+
*/
|
|
3002
|
+
partyIdentification: z.optional(identifierSchema()),
|
|
3003
|
+
/**
|
|
3004
|
+
* @example
|
|
3005
|
+
* Seller Business Name AS
|
|
3006
|
+
*
|
|
3007
|
+
* @name cac:PartyName
|
|
3008
|
+
*/
|
|
3009
|
+
partyName: z.object({
|
|
3010
|
+
/**
|
|
3011
|
+
* @description - The party that issued the reference invoice
|
|
3012
|
+
* - The party who the referenced invoice is issued.
|
|
3013
|
+
*
|
|
3014
|
+
* @summary Seller/Buyer party name
|
|
3015
|
+
*
|
|
3016
|
+
* @name `cbc:Name`
|
|
3017
|
+
*/
|
|
3018
|
+
name: z.string() })
|
|
3019
|
+
});
|
|
3020
|
+
const invoiceResponseDocumentReferenceSchema = z.object({
|
|
3021
|
+
/**
|
|
3022
|
+
* @description An identifier for the invoice that the status applies to. The invoice identifier must be of the main invoice number that appears in the invoice
|
|
3023
|
+
* itself.
|
|
3024
|
+
*
|
|
3025
|
+
* @example
|
|
3026
|
+
* `inv-99876`;
|
|
3027
|
+
*
|
|
3028
|
+
* @summary Invoice identifier
|
|
3029
|
+
*
|
|
3030
|
+
* @name `cbc:ID`
|
|
3031
|
+
*/
|
|
3032
|
+
id: z.string(),
|
|
3033
|
+
/**
|
|
3034
|
+
* @description The date on which the referenced invoice was issued.
|
|
3035
|
+
*
|
|
3036
|
+
* @example
|
|
3037
|
+
* `2018-08-01`;
|
|
3038
|
+
*
|
|
3039
|
+
* @summary Invoice issue date
|
|
3040
|
+
*
|
|
3041
|
+
* @name `cbc:IssueDate`
|
|
3042
|
+
*/
|
|
3043
|
+
issueDate: z.optional(z.iso.date()),
|
|
3044
|
+
/**
|
|
3045
|
+
* @example
|
|
3046
|
+
* `380`;
|
|
3047
|
+
*
|
|
3048
|
+
* @summary Identifier type code
|
|
3049
|
+
*/
|
|
3050
|
+
documentTypeCode: documentTypeCodeSchema()
|
|
3051
|
+
});
|
|
3052
|
+
const invoiceResponseDocumentResponseSchema = z.object({
|
|
3053
|
+
/**
|
|
3054
|
+
* @summary Response information
|
|
3055
|
+
*
|
|
3056
|
+
* @name `cac:Response`
|
|
3057
|
+
*
|
|
3058
|
+
* @cardinality (1..1)
|
|
3059
|
+
*/
|
|
3060
|
+
response: invoiceResponseDocumentActualResponse,
|
|
3061
|
+
/**
|
|
3062
|
+
* @summary Document reference
|
|
3063
|
+
*
|
|
3064
|
+
* @name `cac:DocumentReference`
|
|
3065
|
+
*/
|
|
3066
|
+
documentReference: invoiceResponseDocumentReferenceSchema,
|
|
3067
|
+
/**
|
|
3068
|
+
* @summary Seller party information
|
|
3069
|
+
*
|
|
3070
|
+
* @name `cac:IssuerParty`
|
|
3071
|
+
*/
|
|
3072
|
+
issuerParty: z.optional(invoiceResponseDocumentResponseParty),
|
|
3073
|
+
/**
|
|
3074
|
+
* @summary Buyer party information
|
|
3075
|
+
*
|
|
3076
|
+
* @name `cac:RecipientParty`
|
|
3077
|
+
*/
|
|
3078
|
+
recipientParty: z.optional(invoiceResponseDocumentResponseParty)
|
|
3079
|
+
});
|
|
3080
|
+
/**
|
|
3081
|
+
* @description The invoice response is a descendant of the message level response with more fields.
|
|
3082
|
+
*/
|
|
3083
|
+
const invoiceResponseSchema = z.extend(messageLevelResponse, {
|
|
3084
|
+
profileId: z.literal(INVOICE_RESPONSE_PROFILE_ID),
|
|
3085
|
+
/**
|
|
3086
|
+
* @description The party sending an electronic message level response message back to the sending party of the business document.
|
|
3087
|
+
*
|
|
3088
|
+
* @summary Sender information
|
|
3089
|
+
*/
|
|
3090
|
+
senderParty: invoiceResponseSenderPartySchema,
|
|
3091
|
+
/**
|
|
3092
|
+
* @description The party, an electronic message level response was addressed to, and who is supposed to process the message level response. This is the same
|
|
3093
|
+
* party as the sender of the business document.
|
|
3094
|
+
*
|
|
3095
|
+
* @summary Receiver information
|
|
3096
|
+
*/
|
|
3097
|
+
receiverParty: invoiceResponsePartySchema,
|
|
3098
|
+
/**
|
|
3099
|
+
* @description General comments or instructions that are revelant to the response as a whole.
|
|
3100
|
+
*
|
|
3101
|
+
* @example
|
|
3102
|
+
* `Please refere to previous email exchange regarding this invoice.`;
|
|
3103
|
+
*
|
|
3104
|
+
* @summary Invoice response note
|
|
3105
|
+
*/
|
|
3106
|
+
note: z.optional(z.string()),
|
|
3107
|
+
/**
|
|
3108
|
+
* @summary Document response
|
|
3109
|
+
*/
|
|
3110
|
+
documentResponse: invoiceResponseDocumentResponseSchema
|
|
3111
|
+
});
|
|
3112
|
+
//#endregion
|
|
3113
|
+
//#region src/document-parser.ts
|
|
3114
|
+
/**
|
|
3115
|
+
* @deprecated use `PeppolDocumentParser` instead
|
|
3116
|
+
*/
|
|
3117
|
+
const documentParser = z.codec(z.string(), z.xor([
|
|
3118
|
+
invoiceSchema,
|
|
3119
|
+
creditNoteSchema,
|
|
3120
|
+
messageLevelResponse,
|
|
3121
|
+
invoiceResponseSchema
|
|
3122
|
+
], "invalid document"), {
|
|
3123
|
+
decode(value) {
|
|
3124
|
+
const parsed = new XMLParser({
|
|
3125
|
+
...parserOptions,
|
|
3126
|
+
removeNSPrefix: true
|
|
3127
|
+
}).parse(value);
|
|
3128
|
+
if (parsed.Invoice) return Effect.runSync(decodeInvoice(parsed));
|
|
3129
|
+
else if (parsed.CreditNote) return Effect.runSync(decodeCreditNote(parsed));
|
|
3130
|
+
else if (parsed.ApplicationResponse) {
|
|
3131
|
+
const profile = Effect.runSync(strOrUnd(parsed.ApplicationResponse, "cbc:ProfileID"));
|
|
3132
|
+
if (profile === "urn:fdc:peppol.eu:poacc:bis:mlr:3") return Effect.runSync(decodeMessageLevelResponse(parsed));
|
|
3133
|
+
else if (profile === "urn:fdc:peppol.eu:poacc:bis:invoice_response:3") return Effect.runSync(decodeInvoiceResponse(parsed));
|
|
3134
|
+
}
|
|
3135
|
+
throw new PeppolDecodeError({ message: `Unsupported document type: ${Object.keys(parsed).join(",")}` });
|
|
3136
|
+
},
|
|
3137
|
+
encode(value) {
|
|
3138
|
+
let content;
|
|
3139
|
+
if ("invoiceLines" in value) content = Effect.runSync(encodeInvoice(value));
|
|
3140
|
+
else if ("creditNoteLines" in value) content = Effect.runSync(encodeCreditNote(value));
|
|
3141
|
+
else if ("documentResponse" in value) {
|
|
3142
|
+
if (value.profileId === "urn:fdc:peppol.eu:poacc:bis:mlr:3") content = Effect.runSync(encodeMessageLevelResponse(value));
|
|
3143
|
+
else if (value.profileId === "urn:fdc:peppol.eu:poacc:bis:invoice_response:3") content = Effect.runSync(encodeInvoiceResponse(value));
|
|
3144
|
+
}
|
|
3145
|
+
return new XMLBuilder(builderOptions).build(content);
|
|
3146
|
+
}
|
|
3147
|
+
});
|
|
3148
|
+
//#endregion
|
|
3149
|
+
//#region src/schemas/values/document-type-schema.ts
|
|
3150
|
+
const entries$3 = /* @__PURE__ */ Record.toEntries(documentTypesTable);
|
|
3151
|
+
/**
|
|
3152
|
+
* @description Validates a full PEPPOL document type identifier (`<scheme>::<root>::…`) against the known document type table.
|
|
3153
|
+
*
|
|
3154
|
+
* @param error - The custom error message to use when validation fails. Defaults to `'invalid peppol document type'`.
|
|
3155
|
+
*
|
|
3156
|
+
* @returns A Zod template-literal schema that matches a valid `scheme::value` document type identifier.
|
|
3157
|
+
*
|
|
3158
|
+
* @see {@link documentTypesTable}
|
|
3159
|
+
*/
|
|
3160
|
+
function documentTypeSchema(error = "invalid peppol document type") {
|
|
3161
|
+
return z.templateLiteral([
|
|
3162
|
+
z.enum(documentTypesTableKeys),
|
|
3163
|
+
z.literal("::"),
|
|
3164
|
+
z.string()
|
|
3165
|
+
], error).check(z.refine((val) => {
|
|
3166
|
+
const [prefix, ...suffix] = val.split("::");
|
|
3167
|
+
const [, info] = entries$3.find(([code]) => code === prefix) ?? [];
|
|
3168
|
+
return info?.some((v) => v === suffix.join("::"));
|
|
3169
|
+
}, { error }));
|
|
3170
|
+
}
|
|
3171
|
+
//#endregion
|
|
3172
|
+
//#region src/schemas/values/document-type-schemes-schema.ts
|
|
3173
|
+
/**
|
|
3174
|
+
* @description Validates a PEPPOL document type scheme (e.g. `busdox-docid-qns`, `peppol-doctype-wildcard`).
|
|
3175
|
+
*
|
|
3176
|
+
* @param error - The error message to use when validation fails. Defaults to `'invalid Peppol document type scheme'`.
|
|
3177
|
+
*
|
|
3178
|
+
* @returns A Zod string schema that accepts only valid document type schemes.
|
|
3179
|
+
*
|
|
3180
|
+
* @see {@link documentTypesScheme}
|
|
3181
|
+
*/
|
|
3182
|
+
function documentTypeSchemesSchema(error = "invalid Peppol document type scheme") {
|
|
3183
|
+
return z.string(error).check(z.refine((val) => documentTypesScheme.includes(val), error));
|
|
3184
|
+
}
|
|
3185
|
+
//#endregion
|
|
3186
|
+
//#region src/schemas/values/document-type-values-schema.ts
|
|
3187
|
+
const entries$2 = /* @__PURE__ */ Record.toEntries(documentTypesTable);
|
|
3188
|
+
/**
|
|
3189
|
+
* @description Validates the value part of a PEPPOL document type identifier (the portion after the scheme prefix) against the known document type table.
|
|
3190
|
+
*
|
|
3191
|
+
* @param error - The error message to use when validation fails. Defaults to `'invalid Peppol document type value'`.
|
|
3192
|
+
*
|
|
3193
|
+
* @returns A Zod string schema that accepts only valid document type values.
|
|
3194
|
+
*
|
|
3195
|
+
* @see {@link documentTypesTable}
|
|
3196
|
+
*/
|
|
3197
|
+
function documentTypeValuesSchema(error = "invalid Peppol document type value") {
|
|
3198
|
+
return z.string(error).check(z.refine((val) => entries$2.flatMap(([, value]) => value).includes(val)));
|
|
3199
|
+
}
|
|
3200
|
+
//#endregion
|
|
3201
|
+
//#region src/schemas/values/invoice-status-codes.ts
|
|
3202
|
+
/**
|
|
3203
|
+
* @description Validates an invoice status code against the PEPPOL subset of UNCL 4343 (T111).
|
|
3204
|
+
*
|
|
3205
|
+
* @param error - The custom error message to use when validation fails.
|
|
3206
|
+
*
|
|
3207
|
+
* @returns A Zod string schema that accepts only valid invoice status codes.
|
|
3208
|
+
*
|
|
3209
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL4343-T111/
|
|
3210
|
+
*/
|
|
3211
|
+
function invoiceStatusCodeSchema(error) {
|
|
3212
|
+
return z.string(error).check(z.refine((val) => invoiceStatusCodesKeys.includes(val), error));
|
|
3213
|
+
}
|
|
3214
|
+
//#endregion
|
|
3215
|
+
//#region src/schemas/values/participant-identifier-code.ts
|
|
3216
|
+
/**
|
|
3217
|
+
* @description Validates a PEPPOL participant identifier scheme against the participant identifier schemes list.
|
|
3218
|
+
*
|
|
3219
|
+
* @param error - The custom error message to use when validation fails.
|
|
3220
|
+
*
|
|
3221
|
+
* @returns A Zod string schema that accepts only valid participant identifier schemes.
|
|
3222
|
+
*/
|
|
3223
|
+
function participantIdentifierCodeSchema(error) {
|
|
3224
|
+
return z.string().check(z.refine((val) => participantIdentifierSchemesKeys.includes(val), error));
|
|
3225
|
+
}
|
|
3226
|
+
//#endregion
|
|
3227
|
+
//#region src/schemas/values/process-schema.ts
|
|
3228
|
+
const entries$1 = /* @__PURE__ */ Record.toEntries(processes);
|
|
3229
|
+
/**
|
|
3230
|
+
* @description Validates a full PEPPOL business process identifier (`<scheme>::<value>`) against the known processes.
|
|
3231
|
+
*
|
|
3232
|
+
* @param error - The custom error message to use when validation fails. Defaults to `'invalid peppol process identifier'`.
|
|
3233
|
+
*
|
|
3234
|
+
* @returns A Zod template-literal schema that matches a valid `scheme::value` process identifier.
|
|
3235
|
+
*
|
|
3236
|
+
* @see {@link processes}
|
|
3237
|
+
*/
|
|
3238
|
+
function processSchema(error = "invalid peppol process identifier") {
|
|
3239
|
+
return z.templateLiteral([
|
|
3240
|
+
z.string(),
|
|
3241
|
+
z.literal("::"),
|
|
3242
|
+
z.string()
|
|
3243
|
+
], error).check(z.refine((val) => {
|
|
3244
|
+
const [prefix, suffix] = val.split("::");
|
|
3245
|
+
return entries$1.filter(([code]) => code === prefix).some(([, info]) => info.some((v) => v === suffix));
|
|
3246
|
+
}));
|
|
3247
|
+
}
|
|
3248
|
+
//#endregion
|
|
3249
|
+
//#region src/schemas/values/process-from-document-type-schema.ts
|
|
3250
|
+
/**
|
|
3251
|
+
* @description Validates a business process identifier (`<scheme>::<value>`) against the processes allowed for a given document type.
|
|
3252
|
+
*
|
|
3253
|
+
* @param documentType - The PEPPOL document type scheme whose allowed processes should be used.
|
|
3254
|
+
* @param error - The custom error message to use when validation fails. Defaults to `'invalid process type for document type'`.
|
|
3255
|
+
*
|
|
3256
|
+
* @returns A Zod template-literal schema that matches only processes allowed for the given document type.
|
|
3257
|
+
*
|
|
3258
|
+
* @see {@link processSchema}
|
|
3259
|
+
* @see {@link documentTypesProcessIds}
|
|
3260
|
+
*/
|
|
3261
|
+
function processFromDocumentTypeSchema(documentType, error = "invalid process type for document type") {
|
|
3262
|
+
const processes = documentTypesProcessIds[documentType];
|
|
3263
|
+
if (!processes) return processSchema(error);
|
|
3264
|
+
return z.templateLiteral([
|
|
3265
|
+
z.string(),
|
|
3266
|
+
z.literal("::"),
|
|
3267
|
+
z.string()
|
|
3268
|
+
], error).check(z.refine((val) => processes.map((p) => `${p.scheme}::${p.value}`).includes(val)));
|
|
3269
|
+
}
|
|
3270
|
+
//#endregion
|
|
3271
|
+
//#region src/schemas/values/process-xml-identifier-schema.ts
|
|
3272
|
+
const entries = /* @__PURE__ */ Record.toEntries(processes);
|
|
3273
|
+
/**
|
|
3274
|
+
* @description Validates a raw XML process identifier object with `#text` and `@scheme` fields against the known processes.
|
|
3275
|
+
*
|
|
3276
|
+
* @param error - The custom error message to use when validation fails. Defaults to `'invalid Peppol document identifier'`.
|
|
3277
|
+
*
|
|
3278
|
+
* @returns A Zod union schema accepting objects whose `#text` value is valid for the given `@scheme`.
|
|
3279
|
+
*
|
|
3280
|
+
* @see {@link processes}
|
|
3281
|
+
*/
|
|
3282
|
+
function processXmlIdentifierSchema(error = "invalid Peppol document identifier") {
|
|
3283
|
+
return z.union(entries.map(([key, values]) => z.object({
|
|
3284
|
+
"#text": z.string().check(z.refine((val) => values.includes(val))),
|
|
3285
|
+
"@scheme": z.string().check(z.refine((val) => val === key))
|
|
3286
|
+
})), error);
|
|
3287
|
+
}
|
|
3288
|
+
//#endregion
|
|
3289
|
+
//#region src/schemas/values/vatex-code.ts
|
|
3290
|
+
/**
|
|
3291
|
+
* @description Validates a VAT exemption reason code against the CEF VATEX codelist.
|
|
3292
|
+
*
|
|
3293
|
+
* @param error - The custom error message to use when validation fails.
|
|
3294
|
+
*
|
|
3295
|
+
* @returns A Zod string schema that accepts only valid VAT exemption reason codes.
|
|
3296
|
+
*
|
|
3297
|
+
* @validations
|
|
3298
|
+
* - BR-CL-22: VAT exemption reason code MUST be a valid CEF VATEX code.
|
|
3299
|
+
*
|
|
3300
|
+
* @see https://docs.peppol.eu/poacc/billing/3.0/codelist/vatex/
|
|
3301
|
+
*/
|
|
3302
|
+
function vatexCodeschema(error) {
|
|
3303
|
+
return z.string(error).check(z.refine((val) => vatexCodesKeys.includes(val), error));
|
|
3304
|
+
}
|
|
3305
|
+
//#endregion
|
|
3306
|
+
//#region src/schemas/fields/reference-schema.ts
|
|
3307
|
+
const referenceSchema = z.optional(z.object({ id: z.string() }));
|
|
3308
|
+
//#endregion
|
|
3309
|
+
//#region src/schemas/fields/time-only.ts
|
|
3310
|
+
const dateFnsOptions = { in: tz("UTC") };
|
|
3311
|
+
/**
|
|
3312
|
+
* @description Parser function for date-only values.
|
|
3313
|
+
*/
|
|
3314
|
+
function timeOnlyParser() {
|
|
3315
|
+
return z.codec(z.date(), xsdTime, {
|
|
3316
|
+
decode(value) {
|
|
3317
|
+
return typeof value === "string" ? value : format(value, "HH:mm:ssXXX", dateFnsOptions);
|
|
3318
|
+
},
|
|
3319
|
+
encode(value) {
|
|
3320
|
+
return parse(value, "HH:mm:ssXXX", /* @__PURE__ */ new Date(), dateFnsOptions);
|
|
3321
|
+
}
|
|
3322
|
+
});
|
|
3323
|
+
}
|
|
3324
|
+
//#endregion
|
|
3325
|
+
//#region src/schemas/utils/vat-regex.ts
|
|
3326
|
+
const vatRegexSchema = z.union([
|
|
3327
|
+
z.string().check(z.startsWith("BE"), z.length(12), z.regex(/^BE[01]\d{9}$/, { error: () => "Invalid belgian vat number" }), z.superRefine((value, ctx) => {
|
|
3328
|
+
const result = isValidMod97_0208(value.substring(2));
|
|
3329
|
+
if (!result.success) {
|
|
3330
|
+
const message = "Invalid belgian vat number";
|
|
3331
|
+
if (import.meta.env["DEV"] && !import.meta.env["TEST"]) {
|
|
3332
|
+
console.log(`Validation ${result.actual} != ${result.expected}`);
|
|
3333
|
+
message.concat(`(Validation ${result.actual} != ${result.expected})`);
|
|
3334
|
+
}
|
|
3335
|
+
ctx.addIssue({
|
|
3336
|
+
code: "custom",
|
|
3337
|
+
continue: false,
|
|
3338
|
+
input: value,
|
|
3339
|
+
message
|
|
3340
|
+
});
|
|
3341
|
+
}
|
|
3342
|
+
})),
|
|
3343
|
+
z.string().check(z.startsWith("AT"), z.regex(/^ATU\d{8}$/)),
|
|
3344
|
+
z.string().check(z.startsWith("BG"), z.regex(/^BG\d{9,10}$/)),
|
|
3345
|
+
z.string().check(z.startsWith("CY"), z.regex(/^CY\d{8}L$/)),
|
|
3346
|
+
z.string().check(z.startsWith("CZ"), z.regex(/^CZ\d{8,10}$/)),
|
|
3347
|
+
z.string().check(z.startsWith("DE"), z.regex(/^DE\d{9}$/)),
|
|
3348
|
+
z.string().check(z.startsWith("DK"), z.regex(/^DK\d{8}$/)),
|
|
3349
|
+
z.string().check(z.startsWith("EE"), z.regex(/^EE\d{9}$/)),
|
|
3350
|
+
z.string().check(z.startsWith("EL"), z.regex(/^EL\d{9}$/)),
|
|
3351
|
+
z.string().check(z.startsWith("GR"), z.regex(/^GR\d{9}$/)),
|
|
3352
|
+
z.string().check(z.startsWith("ES"), z.regex(/^ES[0-9A-Z]\d{7}[0-9A-Z]$/)),
|
|
3353
|
+
z.string().check(z.startsWith("FI"), z.regex(/^FI\d{8}$/)),
|
|
3354
|
+
z.string().check(z.startsWith("FR"), z.regex(/^FR[0-9A-Z]{2}\d{9}$/)),
|
|
3355
|
+
z.string().check(z.startsWith("GB"), z.regex(/^GB(\d{9}(\d{3})?|[A-Z]{2}\d{3})$/)),
|
|
3356
|
+
z.string().check(z.startsWith("HU"), z.regex(/^HU\d{8}$/)),
|
|
3357
|
+
z.string().check(z.startsWith("IE"), z.regex(/^IE\dS\d{5}L$/)),
|
|
3358
|
+
z.string().check(z.startsWith("IT"), z.regex(/^IT\d{11}$/)),
|
|
3359
|
+
z.string().check(z.startsWith("LT"), z.regex(/^LT(\d{9}|\d{12})$/)),
|
|
3360
|
+
z.string().check(z.startsWith("LU"), z.regex(/^LU\d{8}$/)),
|
|
3361
|
+
z.string().check(z.startsWith("LV"), z.regex(/^LV\d{11}$/)),
|
|
3362
|
+
z.string().check(z.startsWith("MT"), z.regex(/^MT\d{8}$/)),
|
|
3363
|
+
z.string().check(z.startsWith("NL"), z.regex(/^NL\d{9}B\d{2}$/)),
|
|
3364
|
+
z.string().check(z.startsWith("PL"), z.regex(/^PL\d{10}$/)),
|
|
3365
|
+
z.string().check(z.startsWith("PT"), z.regex(/^PT\d{9}$/)),
|
|
3366
|
+
z.string().check(z.startsWith("RO"), z.regex(/^RO\d{2,10}$/)),
|
|
3367
|
+
z.string().check(z.startsWith("SE"), z.regex(/^SE\d{12}$/)),
|
|
3368
|
+
z.string().check(z.startsWith("SI"), z.regex(/^SI\d{8}$/)),
|
|
3369
|
+
z.string().check(z.startsWith("SK"), z.regex(/^SK\d{10}$/))
|
|
3370
|
+
]);
|
|
3371
|
+
//#endregion
|
|
135
3372
|
export { CREDIT_NOTE_DOCTYPE_ID, CREDIT_NOTE_PROCESS_ID, DEFAULT_CUSTOMIZATION_ID, DEFAULT_PROFILE_ID, INVOICE_DOCTYPE_ID, INVOICE_PROCESS_ID, INVOICE_RESPONSE_DOCTYPE_ID, INVOICE_RESPONSE_PROCESS_ID, INVOICE_RESPONSE_PROFILE_ID, MESSAGE_LEVEL_RESPONSE_DOCTYPE_ID, MESSAGE_LEVEL_RESPONSE_PROCESS_ID, MESSAGE_LEVEL_RESPONSE_PROFILE_ID, PARTICIPANT_SCHEME, additionalDocumentReferenceCodeSchema, additionalDocumentReferenceCodes, additionalDocumentReferenceCodesKeys, additionalDocumentReferenceSchema, addressSchema, allowanceChargeReasonCodeSchema, allowanceChargeReasonCodes, allowanceChargeReasonCodesKeys, allowanceChargeSchema, amountSchema, applicationResponseTypeCodeSchema, applicationResponseTypeCodes, applicationResponseTypeCodesKeys, base64Schema, baseLineAllowanceChargeSchema, baseLineSchema, billingReferenceSchema, binaryObjectSchema, chargeReasonCodeSchema, chargeReasonCodes, chargeReasonCodesKeys, contactSchema, countryCodeSchema, countryCodes, countryCodesKeys, creditNoteLineSchema, creditNoteSchema, creditNoteTypeCodeSchema, creditNoteTypeCodes, creditNoteTypeCodesKeys, currencyCodeSchema, currencyCodes, currencyCodesKeys, dateOnly, dateOnlyParser, deliverySchema, deprecatedDocumentTypes, deprecatedParticipantIdentifierSchemes, deprecatedProcesses, documentParser, documentResponseDocumentReferenceSchema, documentResponseDocumentSchema, documentResponseLineResponseContent, documentResponseLineResponseSchema, documentScheme, documentTypeCodeSchema, documentTypeCodes, documentTypeCodesKeys, documentTypeSchema, documentTypeSchemesSchema, documentTypeValuesSchema, documentTypesList, documentTypesProcessIds, documentTypesScheme, documentTypesTable, documentTypesTableKeys, dutyTaxFeeCategories, dutyTaxFeeCategoriesKeys, dutyTaxFeeCategorySchema, electronicAddressCodes, electronicAddressCodesKeys, electronicCodesSchema, formatQuantityWithUnit, getCreditNoteTypeCodeDescription, getInvoiceTypeCodeDescription, icdCodes, icdCodesKeys, icdCodesSchema, identifierSchema, invoiceLinePeriodSchema, invoiceLineSchema, invoicePeriodSchema, invoiceReponseDocumentActualResponseStatus, invoiceResponseCodeNeedsSchema, invoiceResponseCodeNotNeedsSchema, invoiceResponseCodesOrder, invoiceResponseDocumentActualResponse, invoiceResponseSchema, invoiceResponseStatusReasonCode, invoiceSchema, invoiceStatusCodeSchema, invoiceStatusCodes, invoiceStatusCodesKeys, invoiceTypeCodeSchema, invoiceTypeCodes, invoiceTypeCodesKeys, isValidCreditNoteTypeCode, isValidInvoiceTypeCode, isValidProcess, itemClassificationCodes, itemClassificationCodesKeys, itemClassificationCodesSchema, itemClassificationSchema, legalMonetaryTotalSchema, lineAllowanceChargeSchema, lineItemSchema, linePriceAllowanceChargeSchema, linePriceSchema, messageLevelResponse, messageLevelResponseDocumentResponseSchema, messageLevelResponsePartySchema, mimeCodes, mimeCodesKeys, mimeCodesSchema, opStatusAction, opStatusActionKeys, opStatusActionSchema, opStatusReason, opStatusReasonKeys, opStatusReasonSchema, orderReferenceSchema, participantIdentifierCodeSchema, participantIdentifierSchemes, participantIdentifierSchemesKeys, participantIdentifierSchemesValidations, participantScheme, partyBaseSchema, partyLegalEntitySchema, partyTaxSchemeSchema, payeePartySchema, paymentMeansCodeSchema, paymentMeansCodes, paymentMeansCodesKeys, paymentMeansSchema, paymentTermsSchema, priceAllowanceChargeSchema, processFromDocumentTypeSchema, processSchema, processScheme, processXmlIdentifierSchema, processes, processesKeys, processesList, processesScheme, quantitySchema, quantityToIntlUnitMap, quantityUnitCodeToIntlUnit, quantityUnitCodes, quantityUnitCodesKeys, quantityUnitCodesSchema, referenceSchema, taxCategorySchema, taxRepresentativeSchema, taxSubtotalCategorySchema, taxSubtotalSchema, taxTotalsBaseSchema, timeOnlyParser, transportProfile, vatDateCodeSchema, vatDateCodes, vatDateCodesKeys, vatRegexSchema, vatexCodes, vatexCodesKeys, vatexCodeschema, xsdTime };
|
|
3373
|
+
|
|
3374
|
+
//# sourceMappingURL=index.js.map
|