@endevops/peppol-schema 0.1.0-beta.7 → 0.1.1-alpha.1
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/README.md +70 -19
- package/dist/index-CiW698HY.d.ts.map +1 -1
- package/dist/index.js +2 -6
- package/dist/index.js.map +1 -1
- package/dist/nodable-parser-CyDZtLCK.js +74 -0
- package/dist/nodable-parser-CyDZtLCK.js.map +1 -0
- package/dist/xml.d.ts +7 -0
- package/dist/xml.d.ts.map +1 -1
- package/dist/xml.js +7 -2
- package/dist/xml.js.map +1 -0
- package/package.json +22 -2
- package/src/schemas/peppol-document-schema.ts +2 -3
- package/src/xml/nodable-parser.ts +36 -0
- package/src/xml.ts +1 -0
- package/dist/parser-options-mbqEQPSY.js +0 -27
- package/dist/parser-options-mbqEQPSY.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @endevops/peppol-schema
|
|
2
2
|
|
|
3
|
-
TypeScript
|
|
3
|
+
TypeScript Effect Schema models for **PEPPOL BIS Billing 3.0** — decode, validate and encode **Invoice, Credit Note, Invoice Response and Message Level Response** XML, with generated PEPPOL code lists, Schematron rules and identifier validations (IBAN, GLN, VAT, fiscal codes).
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -8,26 +8,77 @@ TypeScript library for PEPPOL schema validation and parsing.
|
|
|
8
8
|
pnpm add @endevops/peppol-schema
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
Requires `effect`, `fast-xml-parser` and `fast-xml-builder` as peer dependencies — pnpm installs them automatically unless you opt out.
|
|
12
|
+
|
|
11
13
|
## Usage
|
|
12
14
|
|
|
15
|
+
Decode any PEPPOL document from an XML string (dispatches on the root element; `ApplicationResponse` is split by `cbc:ProfileID`):
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { Schema } from 'effect';
|
|
19
|
+
import { PeppolCreditNote, PeppolInvoice, PeppolInvoiceResponse, PeppolMessageLevelResponse, peppolDocumentSchema } from '@endevops/peppol-schema';
|
|
20
|
+
|
|
21
|
+
const doc = Schema.decodeUnknownSync(peppolDocumentSchema)(xmlString);
|
|
22
|
+
if (Schema.is(PeppolInvoice)(doc)) {
|
|
23
|
+
/* doc.invoiceLines … */
|
|
24
|
+
} else if (Schema.is(PeppolCreditNote)(doc)) {
|
|
25
|
+
/* doc.creditNoteLines … */
|
|
26
|
+
} else if (Schema.is(PeppolInvoiceResponse)(doc)) {
|
|
27
|
+
/* invoice response … */
|
|
28
|
+
} else if (Schema.is(PeppolMessageLevelResponse)(doc)) {
|
|
29
|
+
/* message-level response … */
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Round-trip back to XML:
|
|
33
|
+
const xml = Schema.encodeUnknownSync(peppolDocumentSchema)(doc);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Run the Schematron rule set or a single rule:
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
import { Effect } from 'effect';
|
|
40
|
+
import { Schematron, validateCenEn16931Br01 } from '@endevops/peppol-schema/schematron';
|
|
41
|
+
|
|
42
|
+
const program = Effect.gen(function* () {
|
|
43
|
+
yield* (yield* Schematron).run(doc); // fails with SchematronValidationError listing every failed rule
|
|
44
|
+
yield* validateCenEn16931Br01(doc); // or run one rule directly
|
|
45
|
+
}).pipe(Effect.provide(Schematron.layer));
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Validate identifiers:
|
|
49
|
+
|
|
13
50
|
```ts
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
51
|
+
import { checkPIVA, isValidGLN, isValidIBAN } from '@endevops/peppol-schema/validations';
|
|
52
|
+
import { invoiceTypeCodes } from '@endevops/peppol-schema/values';
|
|
53
|
+
|
|
54
|
+
isValidIBAN('IT60X0542811101000000123456'); // boolean
|
|
55
|
+
isValidGLN('7300010000001'); // { success: true } | { success: false; expected; actual }
|
|
56
|
+
checkPIVA('01234567890'); // 0 means valid
|
|
57
|
+
invoiceTypeCodes['380']; // 'Commercial invoice'
|
|
18
58
|
```
|
|
19
59
|
|
|
60
|
+
## Features
|
|
61
|
+
|
|
62
|
+
- **4 document types**: Invoice, Credit Note, Invoice Response, Message Level Response (UBL 2.1, BIS Billing 3.0) with XML round-trip via `peppolDocumentSchema`
|
|
63
|
+
- **Effect Schema** models with typed decode/encode and `isPeppol*` type guards
|
|
64
|
+
- **Generated code lists** (`/values`): currencies, countries, tax schemes, UNCL, UNTDID, EAS, ICD etc. from OpenPEPPOL
|
|
65
|
+
- **Schematron rules** (`/schematron`): shared PEPPOL + CEN rules and per-country overlays (`de`, `dk`, `gr`, `is`, `it`, `nl`, `no`, `se`), runnable as an Effect service or one rule at a time
|
|
66
|
+
- **Identifier validations** (`/validations`): IBAN, GLN, MOD97/MOD11, Luhn, ABN, plus country checks (IT Partita IVA / Codice Fiscale, SE orgnr, GR TIN)
|
|
67
|
+
- **XML options** (`/xml`): `fast-xml-parser` / `fast-xml-builder` options tuned for PEPPOL
|
|
68
|
+
- **Translation generator CLI** (`/generate-translations`) for localized field labels
|
|
69
|
+
|
|
20
70
|
## Entry Points
|
|
21
71
|
|
|
22
|
-
| Import path
|
|
23
|
-
|
|
|
24
|
-
| `@endevops/peppol-schema`
|
|
25
|
-
| `@endevops/peppol-schema/
|
|
26
|
-
| `@endevops/peppol-schema/
|
|
27
|
-
| `@endevops/peppol-schema/
|
|
28
|
-
| `@endevops/peppol-schema/
|
|
29
|
-
| `@endevops/peppol-schema/
|
|
30
|
-
| `@endevops/peppol-schema/
|
|
72
|
+
| Import path | Description |
|
|
73
|
+
| ------------------------------------------------ | -------------------------------------------------------- |
|
|
74
|
+
| `@endevops/peppol-schema` | Document schemas, `peppolDocumentSchema`, types |
|
|
75
|
+
| `@endevops/peppol-schema/generate-translations` | CLI that generates translation files |
|
|
76
|
+
| `@endevops/peppol-schema/schematron` | PEPPOL + CEN + per-country Schematron rules |
|
|
77
|
+
| `@endevops/peppol-schema/validations` | Identifier and checksum validation rules |
|
|
78
|
+
| `@endevops/peppol-schema/values` | Generated value maps from PEPPOL code lists |
|
|
79
|
+
| `@endevops/peppol-schema/xml` | XML parser and builder options |
|
|
80
|
+
| `@endevops/peppol-schema/constants` | Doctype ids, process ids, profile ids, transport profile |
|
|
81
|
+
| `@endevops/peppol-schema/invoice-response-codes` | Invoice Response status/reason codes |
|
|
31
82
|
|
|
32
83
|
## Development
|
|
33
84
|
|
|
@@ -35,9 +86,10 @@ import { InvoiceTypeCode } from '@endevops/peppol-schema/values';
|
|
|
35
86
|
pnpm install
|
|
36
87
|
pnpm build # Build with tsdown
|
|
37
88
|
pnpm dev # Watch mode
|
|
38
|
-
pnpm
|
|
39
|
-
pnpm
|
|
40
|
-
pnpm vitest run
|
|
89
|
+
pnpm lint # Lint (oxlint --type-aware)
|
|
90
|
+
pnpm format # Format (oxfmt)
|
|
91
|
+
pnpm test # Test (vitest run)
|
|
92
|
+
pnpm generate # Regenerate code lists (bun scripts/values.ts)
|
|
41
93
|
tsc --noEmit # Typecheck
|
|
42
94
|
```
|
|
43
95
|
|
|
@@ -61,8 +113,7 @@ See [docs/versioning.md](docs/versioning.md) for the full strategy.
|
|
|
61
113
|
|
|
62
114
|
## Tech Stack
|
|
63
115
|
|
|
64
|
-
- [Effect](https://effect.website/) - Typed effects & Schema
|
|
65
|
-
- [Zod v4](https://zod.dev/) - Runtime validation
|
|
116
|
+
- [Effect](https://effect.website/) - Typed effects & Schema models
|
|
66
117
|
- [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) / [fast-xml-builder](https://github.com/NaturalIntelligence/fast-xml-builder) - XML parsing
|
|
67
118
|
- [tsdown](https://tsdown.dev/) - Bundling (unbundled ESM)
|
|
68
119
|
- [oxlint](https://oxc.rs/) / [oxfmt](https://oxc.rs/) - Linting & formatting
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-CiW698HY.d.ts","names":[],"sources":["../src/schemas/utils/opaque.ts","../src/schemas/peppol-iso-date-string.ts","../src/schemas/fields/peppol-amount-schema.ts","../src/schemas/fields/peppol-allowance-charge-schema.ts","../src/schemas/fields/peppol-binary-object-schema.ts","../src/schemas/fields/peppol-additional-document-reference-schema.ts","../src/schemas/fields/peppol-billing-reference-schema.ts","../src/schemas/fields/peppol-address-schema.ts","../src/schemas/fields/peppol-delivery-schema.ts","../src/schemas/fields/peppol-invoice-period-schema.ts","../src/schemas/fields/peppol-legal-monetary-total-schema.ts","../src/schemas/fields/peppol-order-reference-schema.ts","../src/schemas/fields/peppol-contact-schema.ts","../src/schemas/fields/peppol-identifier-schema.ts","../src/schemas/fields/peppol-party-legal-entity-schema.ts","../src/schemas/fields/peppol-party-tax-scheme-schema.ts","../src/schemas/fields/peppol-party-base-schema.ts","../src/schemas/fields/peppol-payee-party-schema.ts","../src/schemas/fields/peppol-payment-means-schema.ts","../src/schemas/fields/peppol-payment-terms-schema.ts","../src/schemas/fields/peppol-tax-representative-schema.ts","../src/schemas/fields/peppol-tax-category-schema.ts","../src/schemas/fields/peppol-tax-subtotal-category-schema.ts","../src/schemas/fields/peppol-tax-subtotal-schema.ts","../src/schemas/fields/peppol-tax-totals-base-schema.ts","../src/schemas/peppol-billing-base-schema.ts","../src/schemas/fields/peppol-line-allowance-charge-schema.ts","../src/schemas/fields/peppol-invoice-line-period-schema.ts","../src/schemas/fields/peppol-item-classification-schema.ts","../src/schemas/fields/peppol-line-item-schema.ts","../src/schemas/fields/peppol-line-price-allowance-charge-schema.ts","../src/schemas/fields/peppol-quantity-schema.ts","../src/schemas/fields/peppol-line-price-schema.ts","../src/schemas/fields/peppol-base-line-schema.ts","../src/schemas/fields/peppol-invoice-line-schema.ts","../src/schemas/peppol-invoice-schema.ts","../src/schemas/fields/peppol-credit-note-line-schema.ts","../src/schemas/peppol-credit-note-schema.ts","../src/schemas/peppol-message-level-response-party-schema.ts","../src/schemas/peppol-document-response-document-reference-schema.ts","../src/schemas/peppol-document-response-document-schema.ts","../src/schemas/peppol-document-response-line-response-content-schema.ts","../src/schemas/peppol-document-response-line-response-schema.ts","../src/schemas/peppol-message-level-response-document-response-schema.ts","../src/schemas/utils/peppol-xsd-time-schema.ts","../src/schemas/peppol-message-level-response-schema.ts","../src/schemas/peppol-invoice-response-status-reason-code-schema.ts","../src/schemas/peppol-invoice-response-document-actual-response-status-schema.ts","../src/schemas/peppol-invoice-response-document-actual-response-schema.ts","../src/schemas/utils/peppol-base-64-schema.ts","../src/schemas/utils/format-quantity-with-unit.ts","../src/schemas/values/credit-note-type-code-schema.ts","../src/schemas/utils/get-credit-note-type-code-description.ts","../src/schemas/values/invoice-type-code-schema.ts","../src/schemas/utils/get-invoice-type-code-description.ts","../src/schemas/utils/is-valid-credit-note-type-code.ts","../src/schemas/utils/is-valid-invoice-type-code.ts","../src/schemas/values/peppol-process-schema.ts","../src/schemas/utils/is-valid-process.ts","../src/schemas/values/quantity-unit-codes-schema.ts","../src/schemas/utils/quantity-unit-code-to-intl-unit.ts","../src/schemas/utils/peppol-vat-regex-schema.ts","../src/schemas/peppol-invoice-response-schema.ts","../src/schemas/peppol-document-schema.ts","../src/schemas/fields/default-customization-id.ts","../src/schemas/fields/default-profile-id.ts","../src/schemas/fields/peppol-reference-schema.ts","../src/schemas/values/additional-document-reference-code-schema.ts","../src/schemas/values/allowance-charge-reason-code-schema.ts","../src/schemas/values/application-response-type-code-schema.ts","../src/schemas/values/charge-reason-code-schema.ts","../src/schemas/values/peppol-country-code-schema.ts","../src/schemas/values/currency-code-schema.ts","../src/schemas/values/peppol-document-type-code-schema.ts","../src/schemas/values/peppol-document-type-schema.ts","../src/schemas/values/document-type-schemes-schema.ts","../src/schemas/values/document-type-values-schema.ts","../src/schemas/values/duty-tax-fee-category-schema.ts","../src/schemas/values/electronic-codes-schema.ts","../src/schemas/values/icd-codes-schema.ts","../src/schemas/values/invoice-status-code-schema.ts","../src/schemas/values/item-classification-codes-schema.ts","../src/schemas/values/mime-codes-schema.ts","../src/schemas/values/op-status-action-schema.ts","../src/schemas/values/op-status-reason-schema.ts","../src/schemas/values/participant-identifier-code-schema.ts","../src/schemas/values/payment-means-code-schema.ts","../src/schemas/values/process-from-document-type-schema.ts","../src/schemas/values/vatex-code-schema.ts","../src/schemas/values/vat-date-code-schema.ts"],"mappings":";;;;;;;;KAOY,aAAa,MAAM,UAAU,OAAO,OAAO,OAAO,OAAO,MAAM,SAAS,KAAK,SAAS,OAAO;;;;;;;;;;;;cCK5F,4BAA4B;;;;;;;;;;;;;;;;;;cCF5B,qBAAqB;UAYjB,4BAA4B,OAAO,MAAM,eAAe;;;;;;;;;;;cCb5D,qCAAqC;;;;;;;;;;;;;;;;;;cAWrC,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuC5B,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkBxB,qBAAqB;;;;;;cAuBrB,6BAA2B,OAAA,uBAAA,wBAAA;KAE5B,wBAAwB,OAAO,OAAO,YAAY;KAClD,+BAA+B,OAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cCxF1D,2BAA2B;;;;;;;;;;;;;;;;;cCRlC,0CAA0C;;;;;;;;;;;;;;;;;;;;;;cAiB1C,yBAAyB;;;;;;;;;;;;;;;;;;;;cAwBzB,iBAAiB;;;;;;;;;;;;;;;;;cA+BV,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cC1EjD,uCAAuC;;;;;;;;;;;;;;;;;cAkChC,+BAA+B;;;;;;;;;;;;;cClCtC,0BAA0B;;;;;;;;;;;;;;cAa1B,4BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqBnB,sBAAsB;;;;;;;;;;;;;cC9B7B,qCAAqC;;;;;;;;;cAarC,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;cAW5B,+BAA+B;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;;;;;;;;;;;cAcnE,+BAA6B,OAAA,MAAA,OAAA;;;;;;;;KCd9B,wBAAwB,gBAAgB;;;;;;;;;;;;;cAcvC,iBAAe,OAAA,MAAA,OAAA;;;;;;;;KCdhB,8BAA8B,qBAAqB;;;;;;;;;;cAWlD,sBAAoB,OAAA,MAAA,OAAA;;;;;;;;KCXrB,8BAA8B,qBAAqB;;;;;;;;;;cAWlD,sBAAoB,OAAA,MAAA,OAAA;;;;;;;;KCXrB,yCAAyC,gCAAgC;;;;;;;;cASxE,iCAA+B,OAAA,MAAA,OAAA;;;;;;;;KCDhC,gCAAgC,uBAAuB;;;;;;;;;;;;;cActD,wBAAsB,OAAA,MAAA,OAAA;;;;;;;;;;;;;;iBCbnB,8BAA8B,cAAc,oBAAoB,iBAAgD,OAAA,SAAA,OAAA,0BAAA,OAAA,+DAAA,OAAA,eAAA,OAAA;;;;;;;;KCTpH,yBAAyB,gBAAgB;;;;;;;;;;;;;cAcxC,iBAAe,OAAA,MAAA,OAAA;;;KCjBhB,oBAAoB;;;;;cAMnB,mBAAiB,OAAA"}
|
|
1
|
+
{"version":3,"file":"index-CiW698HY.d.ts","names":[],"sources":["../src/schemas/utils/opaque.ts","../src/schemas/peppol-iso-date-string.ts","../src/schemas/fields/peppol-amount-schema.ts","../src/schemas/fields/peppol-allowance-charge-schema.ts","../src/schemas/fields/peppol-binary-object-schema.ts","../src/schemas/fields/peppol-additional-document-reference-schema.ts","../src/schemas/fields/peppol-billing-reference-schema.ts","../src/schemas/fields/peppol-address-schema.ts","../src/schemas/fields/peppol-delivery-schema.ts","../src/schemas/fields/peppol-invoice-period-schema.ts","../src/schemas/fields/peppol-legal-monetary-total-schema.ts","../src/schemas/fields/peppol-order-reference-schema.ts","../src/schemas/fields/peppol-contact-schema.ts","../src/schemas/fields/peppol-identifier-schema.ts","../src/schemas/fields/peppol-party-legal-entity-schema.ts","../src/schemas/fields/peppol-party-tax-scheme-schema.ts","../src/schemas/fields/peppol-party-base-schema.ts","../src/schemas/fields/peppol-payee-party-schema.ts","../src/schemas/fields/peppol-payment-means-schema.ts","../src/schemas/fields/peppol-payment-terms-schema.ts","../src/schemas/fields/peppol-tax-representative-schema.ts","../src/schemas/fields/peppol-tax-category-schema.ts","../src/schemas/fields/peppol-tax-subtotal-category-schema.ts","../src/schemas/fields/peppol-tax-subtotal-schema.ts","../src/schemas/fields/peppol-tax-totals-base-schema.ts","../src/schemas/peppol-billing-base-schema.ts","../src/schemas/fields/peppol-line-allowance-charge-schema.ts","../src/schemas/fields/peppol-invoice-line-period-schema.ts","../src/schemas/fields/peppol-item-classification-schema.ts","../src/schemas/fields/peppol-line-item-schema.ts","../src/schemas/fields/peppol-line-price-allowance-charge-schema.ts","../src/schemas/fields/peppol-quantity-schema.ts","../src/schemas/fields/peppol-line-price-schema.ts","../src/schemas/fields/peppol-base-line-schema.ts","../src/schemas/fields/peppol-invoice-line-schema.ts","../src/schemas/peppol-invoice-schema.ts","../src/schemas/fields/peppol-credit-note-line-schema.ts","../src/schemas/peppol-credit-note-schema.ts","../src/schemas/peppol-message-level-response-party-schema.ts","../src/schemas/peppol-document-response-document-reference-schema.ts","../src/schemas/peppol-document-response-document-schema.ts","../src/schemas/peppol-document-response-line-response-content-schema.ts","../src/schemas/peppol-document-response-line-response-schema.ts","../src/schemas/peppol-message-level-response-document-response-schema.ts","../src/schemas/utils/peppol-xsd-time-schema.ts","../src/schemas/peppol-message-level-response-schema.ts","../src/schemas/peppol-invoice-response-status-reason-code-schema.ts","../src/schemas/peppol-invoice-response-document-actual-response-status-schema.ts","../src/schemas/peppol-invoice-response-document-actual-response-schema.ts","../src/schemas/utils/peppol-base-64-schema.ts","../src/schemas/utils/format-quantity-with-unit.ts","../src/schemas/values/credit-note-type-code-schema.ts","../src/schemas/utils/get-credit-note-type-code-description.ts","../src/schemas/values/invoice-type-code-schema.ts","../src/schemas/utils/get-invoice-type-code-description.ts","../src/schemas/utils/is-valid-credit-note-type-code.ts","../src/schemas/utils/is-valid-invoice-type-code.ts","../src/schemas/values/peppol-process-schema.ts","../src/schemas/utils/is-valid-process.ts","../src/schemas/values/quantity-unit-codes-schema.ts","../src/schemas/utils/quantity-unit-code-to-intl-unit.ts","../src/schemas/utils/peppol-vat-regex-schema.ts","../src/schemas/peppol-invoice-response-schema.ts","../src/schemas/peppol-document-schema.ts","../src/schemas/fields/default-customization-id.ts","../src/schemas/fields/default-profile-id.ts","../src/schemas/fields/peppol-reference-schema.ts","../src/schemas/values/additional-document-reference-code-schema.ts","../src/schemas/values/allowance-charge-reason-code-schema.ts","../src/schemas/values/application-response-type-code-schema.ts","../src/schemas/values/charge-reason-code-schema.ts","../src/schemas/values/peppol-country-code-schema.ts","../src/schemas/values/currency-code-schema.ts","../src/schemas/values/peppol-document-type-code-schema.ts","../src/schemas/values/peppol-document-type-schema.ts","../src/schemas/values/document-type-schemes-schema.ts","../src/schemas/values/document-type-values-schema.ts","../src/schemas/values/duty-tax-fee-category-schema.ts","../src/schemas/values/electronic-codes-schema.ts","../src/schemas/values/icd-codes-schema.ts","../src/schemas/values/invoice-status-code-schema.ts","../src/schemas/values/item-classification-codes-schema.ts","../src/schemas/values/mime-codes-schema.ts","../src/schemas/values/op-status-action-schema.ts","../src/schemas/values/op-status-reason-schema.ts","../src/schemas/values/participant-identifier-code-schema.ts","../src/schemas/values/payment-means-code-schema.ts","../src/schemas/values/process-from-document-type-schema.ts","../src/schemas/values/vatex-code-schema.ts","../src/schemas/values/vat-date-code-schema.ts"],"mappings":";;;;;;;;KAOY,aAAa,MAAM,UAAU,OAAO,OAAO,OAAO,OAAO,MAAM,SAAS,KAAK,SAAS,OAAO;;;;;;;;;;;;cCK5F,4BAA4B;;;;;;;;;;;;;;;;;;cCF5B,qBAAqB;UAYjB,4BAA4B,OAAO,MAAM,eAAe;;;;;;;;;;;cCb5D,qCAAqC;;;;;;;;;;;;;;;;;;cAWrC,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuC5B,wBAAwB;;;;;;;;;;;;;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AA,+DAAA,OAAA,eAAA,OAAA;;;;;;;;KCTpH,yBAAyB,gBAAgB;;;;;;;;;;;;;cAcxC,iBAAe,OAAA,MAAA,OAAA;;;KCjBhB,oBAAoB;;;;;cAMnB,mBAAiB,OAAA"}
|
package/dist/index.js
CHANGED
|
@@ -3,11 +3,10 @@ import { n as opaque, t as PeppolIsoDateString } from "./peppol-iso-date-string-
|
|
|
3
3
|
import { c as chargeReasonCodesKeys, f as currencyCodesKeys, i as vatDateCodesKeys, m as mimeCodesKeys, n as electronicAddressCodesKeys, o as countryCodesKeys, u as allowanceChargeReasonCodesKeys } from "./eas-codes.generated-D8jjHFij.js";
|
|
4
4
|
import { A as invoiceTypeCodes, C as opStatusActionKeys, D as documentTypeCodesKeys, F as itemClassificationCodesKeys, L as paymentMeansCodesKeys, M as quantityUnitCodes, N as quantityUnitCodesKeys, O as creditNoteTypeCodes, T as applicationResponseTypeCodesKeys, U as additionalDocumentReferenceCodesKeys, V as dutyTaxFeeCategoriesKeys, _ as processesKeys, a as participantIdentifierSchemesKeys, c as invoiceStatusCodesKeys, d as documentTypesProcessIds, f as documentTypesScheme, g as processes, j as invoiceTypeCodesKeys, k as creditNoteTypeCodesKeys, m as documentTypesTableKeys, n as vatexCodesKeys, p as documentTypesTable, v as processesList, x as opStatusReasonKeys, z as icdCodesKeys } from "./vatex-codes.generated-N7wsUrLh.js";
|
|
5
5
|
import { n as invoiceResponseCodeNeedsSchema, t as invoiceResponseCodeNotNeedsSchema } from "./invoice-response-code-not-needs-schema-p_RKKNLc.js";
|
|
6
|
-
import { n as builderOptions, t as
|
|
6
|
+
import { n as builderOptions, t as parseXmlNodable } from "./nodable-parser-CyDZtLCK.js";
|
|
7
7
|
import { t as isValidMod97_0208 } from "./is-valid-mod97-0208-CzMOXMO-.js";
|
|
8
8
|
import { Clock, DateTime, Effect, Option, Predicate, Record, Schema, SchemaGetter, SchemaIssue, SchemaParser, Struct } from "effect";
|
|
9
9
|
import XMLBuilder from "fast-xml-builder";
|
|
10
|
-
import { XMLParser } from "fast-xml-parser";
|
|
11
10
|
//#region src/schemas/fields/default-customization-id.ts
|
|
12
11
|
const DEFAULT_CUSTOMIZATION_ID = "urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0";
|
|
13
12
|
//#endregion
|
|
@@ -4603,10 +4602,7 @@ const peppolDocumentObjectSchema = Schema.Union([
|
|
|
4603
4602
|
PeppolMessageLevelResponse,
|
|
4604
4603
|
PeppolInvoiceResponse
|
|
4605
4604
|
], { mode: "oneOf" });
|
|
4606
|
-
const parseXml = (value) =>
|
|
4607
|
-
...parserOptions,
|
|
4608
|
-
removeNSPrefix: true
|
|
4609
|
-
}).parse(value);
|
|
4605
|
+
const parseXml = (value) => parseXmlNodable(value);
|
|
4610
4606
|
const isPeppolInvoice = Schema.is(PeppolInvoice);
|
|
4611
4607
|
const isPeppolCreditNote = Schema.is(PeppolCreditNote);
|
|
4612
4608
|
const isPeppolMessageLevelResponse = Schema.is(PeppolMessageLevelResponse);
|