@endevops/peppol-schema 0.1.2 → 0.1.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/README.md +5 -5
- package/dist/constants.d.ts +131 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +114 -1
- package/dist/constants.js.map +1 -1
- package/dist/{index-BBzPjq7o.d.ts → index-CILtZytZ.d.ts} +1710 -669
- package/dist/index-CILtZytZ.d.ts.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1234 -187
- package/dist/index.js.map +1 -1
- package/dist/invoice-response-code-not-needs-schema-DNrfKYLh.js +36 -0
- package/dist/invoice-response-code-not-needs-schema-DNrfKYLh.js.map +1 -0
- package/dist/invoice-response-codes.d.ts +28 -0
- package/dist/invoice-response-codes.d.ts.map +1 -1
- package/dist/invoice-response-codes.js +11 -1
- package/dist/invoice-response-codes.js.map +1 -1
- package/dist/{is-valid-abn-160i38PG.js → is-valid-abn-D7eSygBG.js} +115 -2
- package/dist/is-valid-abn-D7eSygBG.js.map +1 -0
- package/dist/{is-valid-mod97-0208-CzMOXMO-.js → is-valid-mod97-0208-CjR324eG.js} +11 -1
- package/dist/is-valid-mod97-0208-CjR324eG.js.map +1 -0
- package/dist/message-level-response-profile-id-B9c0A7S_.js +27 -0
- package/dist/message-level-response-profile-id-B9c0A7S_.js.map +1 -0
- package/dist/{nodable-parser-CyDZtLCK.js → nodable-parser-CupS2H55.js} +31 -1
- package/dist/nodable-parser-CupS2H55.js.map +1 -0
- package/dist/schematron.d.ts +57 -1
- package/dist/schematron.d.ts.map +1 -1
- package/dist/schematron.js +453 -2
- package/dist/schematron.js.map +1 -1
- package/dist/validations.d.ts +132 -0
- package/dist/validations.d.ts.map +1 -1
- package/dist/validations.js +11 -2
- package/dist/validations.js.map +1 -1
- package/dist/values.d.ts +67 -2
- package/dist/values.d.ts.map +1 -1
- package/dist/xml.d.ts +30 -0
- package/dist/xml.d.ts.map +1 -1
- package/dist/xml.js +10 -1
- package/dist/xml.js.map +1 -1
- package/package.json +3 -2
- package/src/constants/credit-note-doctype-id.ts +9 -0
- package/src/constants/credit-note-process-id.ts +9 -0
- package/src/constants/document-scheme.ts +9 -0
- package/src/constants/invoice-doctype-id.ts +9 -0
- package/src/constants/invoice-process-id.ts +10 -0
- package/src/constants/invoice-response-doctype-id.ts +10 -0
- package/src/constants/invoice-response-process-id.ts +9 -0
- package/src/constants/invoice-response-profile-id.ts +9 -0
- package/src/constants/message-level-response-doctype-id.ts +10 -0
- package/src/constants/message-level-response-process-id.ts +9 -0
- package/src/constants/message-level-response-profile-id.ts +9 -0
- package/src/constants/participant-scheme.ts +10 -0
- package/src/constants/process-scheme.ts +9 -0
- package/src/constants/transport-profile.ts +10 -0
- package/src/invoice-response-codes/invoice-response-code-needs-schema.ts +9 -0
- package/src/invoice-response-codes/invoice-response-code-not-needs-schema.ts +9 -0
- package/src/invoice-response-codes/invoice-response-codes-order.ts +10 -0
- package/src/peppol-validations/add-piva.ts +12 -0
- package/src/peppol-validations/check-cf.ts +11 -0
- package/src/peppol-validations/check-cf16.ts +12 -0
- package/src/peppol-validations/check-piva-se-it.ts +11 -0
- package/src/peppol-validations/check-piva.ts +11 -0
- package/src/peppol-validations/check-se-orgnr.ts +9 -0
- package/src/peppol-validations/greek-tin-verification.ts +9 -0
- package/src/peppol-validations/is-valid-abn.ts +9 -0
- package/src/peppol-validations/is-valid-gln.ts +10 -0
- package/src/peppol-validations/is-valid-iban.ts +10 -0
- package/src/peppol-validations/is-valid-mod11.ts +9 -0
- package/src/peppol-validations/is-valid-mod97-0208.ts +10 -0
- package/src/peppol-validations/luhn-check.ts +9 -0
- package/src/schemas/fields/default-customization-id.ts +9 -0
- package/src/schemas/fields/default-profile-id.ts +9 -0
- package/src/schemas/fields/peppol-additional-document-reference-schema.ts +41 -2
- package/src/schemas/fields/peppol-address-schema.ts +25 -2
- package/src/schemas/fields/peppol-allowance-charge-schema.ts +65 -9
- package/src/schemas/fields/peppol-amount-schema.ts +15 -2
- package/src/schemas/fields/peppol-base-line-schema.ts +12 -2
- package/src/schemas/fields/peppol-billing-reference-schema.ts +13 -0
- package/src/schemas/fields/peppol-binary-object-schema.ts +12 -4
- package/src/schemas/fields/peppol-contact-schema.ts +11 -0
- package/src/schemas/fields/peppol-credit-note-line-schema.ts +7 -2
- package/src/schemas/fields/peppol-delivery-schema.ts +44 -2
- package/src/schemas/fields/peppol-identifier-schema.ts +8 -0
- package/src/schemas/fields/peppol-invoice-line-period-schema.ts +11 -0
- package/src/schemas/fields/peppol-invoice-line-schema.ts +9 -2
- package/src/schemas/fields/peppol-invoice-period-schema.ts +2 -2
- package/src/schemas/fields/peppol-item-classification-schema.ts +2 -2
- package/src/schemas/fields/peppol-line-allowance-charge-schema.ts +57 -9
- package/src/schemas/fields/peppol-line-item-schema.ts +69 -4
- package/src/schemas/fields/peppol-line-price-allowance-charge-schema.ts +20 -0
- package/src/schemas/fields/peppol-line-price-schema.ts +2 -0
- package/src/schemas/fields/peppol-order-reference-schema.ts +2 -0
- package/src/schemas/fields/peppol-party-base-schema.ts +36 -4
- package/src/schemas/fields/peppol-party-legal-entity-schema.ts +13 -0
- package/src/schemas/fields/peppol-party-tax-scheme-schema.ts +5 -0
- package/src/schemas/fields/peppol-payee-party-schema.ts +2 -2
- package/src/schemas/fields/peppol-payment-means-schema.ts +62 -2
- package/src/schemas/fields/peppol-payment-terms-schema.ts +2 -0
- package/src/schemas/fields/peppol-quantity-schema.ts +4 -2
- package/src/schemas/fields/peppol-reference-schema.ts +20 -1
- package/src/schemas/fields/peppol-tax-category-schema.ts +12 -2
- package/src/schemas/fields/peppol-tax-representative-schema.ts +5 -0
- package/src/schemas/fields/peppol-tax-subtotal-category-schema.ts +3 -0
- package/src/schemas/fields/peppol-tax-subtotal-schema.ts +2 -0
- package/src/schemas/fields/peppol-tax-totals-base-schema.ts +5 -0
- package/src/schemas/peppol-billing-base-schema.ts +47 -7
- package/src/schemas/peppol-credit-note-schema.ts +2 -2
- package/src/schemas/peppol-document-response-document-reference-schema.ts +15 -2
- package/src/schemas/peppol-document-response-document-schema.ts +8 -3
- package/src/schemas/peppol-document-response-line-response-content-schema.ts +22 -2
- package/src/schemas/peppol-document-response-line-response-schema.ts +26 -0
- package/src/schemas/peppol-document-schema.ts +74 -9
- package/src/schemas/peppol-invoice-response-document-actual-response-schema.ts +58 -5
- package/src/schemas/peppol-invoice-response-document-actual-response-status-schema.ts +25 -2
- package/src/schemas/peppol-invoice-response-schema.ts +57 -4
- package/src/schemas/peppol-invoice-response-status-reason-code-schema.ts +37 -10
- package/src/schemas/peppol-invoice-schema.ts +30 -2
- package/src/schemas/peppol-message-level-response-document-response-schema.ts +10 -0
- package/src/schemas/peppol-message-level-response-party-schema.ts +10 -0
- package/src/schemas/peppol-message-level-response-schema.ts +18 -0
- package/src/schemas/utils/format-quantity-with-unit.ts +19 -0
- package/src/schemas/utils/get-credit-note-type-code-description.ts +12 -0
- package/src/schemas/utils/get-invoice-type-code-description.ts +12 -0
- package/src/schemas/utils/is-valid-credit-note-type-code.ts +13 -0
- package/src/schemas/utils/is-valid-invoice-type-code.ts +13 -0
- package/src/schemas/utils/is-valid-process.ts +13 -0
- package/src/schemas/utils/peppol-base-64-schema.ts +14 -4
- package/src/schemas/utils/peppol-vat-regex-schema.ts +38 -30
- package/src/schemas/utils/peppol-xsd-time-schema.ts +12 -2
- package/src/schemas/utils/quantity-unit-code-to-intl-unit.ts +34 -0
- package/src/schemas/values/additional-document-reference-code-schema.ts +9 -15
- package/src/schemas/values/allowance-charge-reason-code-schema.ts +12 -14
- package/src/schemas/values/application-response-type-code-schema.ts +10 -14
- package/src/schemas/values/charge-reason-code-schema.ts +12 -14
- package/src/schemas/values/credit-note-type-code-schema.ts +8 -14
- package/src/schemas/values/currency-code-schema.ts +13 -16
- package/src/schemas/values/document-type-schemes-schema.ts +9 -5
- package/src/schemas/values/document-type-values-schema.ts +5 -6
- package/src/schemas/values/duty-tax-fee-category-schema.ts +15 -13
- package/src/schemas/values/electronic-codes-schema.ts +10 -12
- package/src/schemas/values/icd-codes-schema.ts +8 -12
- package/src/schemas/values/invoice-status-code-schema.ts +10 -12
- package/src/schemas/values/invoice-type-code-schema.ts +10 -12
- package/src/schemas/values/item-classification-codes-schema.ts +10 -12
- package/src/schemas/values/mime-codes-schema.ts +12 -14
- package/src/schemas/values/op-status-action-schema.ts +10 -12
- package/src/schemas/values/op-status-reason-schema.ts +10 -12
- package/src/schemas/values/participant-identifier-code-schema.ts +10 -13
- package/src/schemas/values/payment-means-code-schema.ts +10 -12
- package/src/schemas/values/peppol-country-code-schema.ts +10 -9
- package/src/schemas/values/peppol-document-type-code-schema.ts +10 -12
- package/src/schemas/values/peppol-document-type-schema.ts +12 -21
- package/src/schemas/values/peppol-process-schema.ts +19 -15
- package/src/schemas/values/process-from-document-type-schema.ts +3 -3
- package/src/schemas/values/quantity-unit-codes-schema.ts +10 -12
- package/src/schemas/values/vat-date-code-schema.ts +12 -5
- package/src/schemas/values/vatex-code-schema.ts +8 -12
- package/src/schematron/errors.ts +14 -0
- package/src/schematron/helpers.ts +451 -0
- package/src/schematron/run-all-rules.ts +10 -0
- package/src/schematron/schematron.ts +25 -0
- package/src/xml/builder-options.ts +9 -0
- package/src/xml/common-xml-options.ts +9 -0
- package/src/xml/nodable-parser.ts +12 -0
- package/src/xml/parser-options.ts +9 -0
- package/dist/index-BBzPjq7o.d.ts.map +0 -1
- package/dist/invoice-response-code-not-needs-schema-p_RKKNLc.js +0 -18
- package/dist/invoice-response-code-not-needs-schema-p_RKKNLc.js.map +0 -1
- package/dist/is-valid-abn-160i38PG.js.map +0 -1
- package/dist/is-valid-mod97-0208-CzMOXMO-.js.map +0 -1
- package/dist/message-level-response-profile-id-DBpOW91B.js +0 -9
- package/dist/message-level-response-profile-id-DBpOW91B.js.map +0 -1
- package/dist/nodable-parser-CyDZtLCK.js.map +0 -1
- package/dist/vat-dates.generated-CxFvt7m3.d.ts +0 -68
- package/dist/vat-dates.generated-CxFvt7m3.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -16,9 +16,9 @@ Decode any PEPPOL document from an XML string (dispatches on the root element; `
|
|
|
16
16
|
|
|
17
17
|
```ts
|
|
18
18
|
import { Schema } from 'effect';
|
|
19
|
-
import { PeppolCreditNote, PeppolInvoice, PeppolInvoiceResponse, PeppolMessageLevelResponse
|
|
19
|
+
import { PeppolCreditNote, PeppolDocumentSchema, PeppolInvoice, PeppolInvoiceResponse, PeppolMessageLevelResponse } from '@endevops/peppol-schema';
|
|
20
20
|
|
|
21
|
-
const doc = Schema.decodeUnknownSync(
|
|
21
|
+
const doc = Schema.decodeUnknownSync(PeppolDocumentSchema)(xmlString);
|
|
22
22
|
if (Schema.is(PeppolInvoice)(doc)) {
|
|
23
23
|
/* doc.invoiceLines … */
|
|
24
24
|
} else if (Schema.is(PeppolCreditNote)(doc)) {
|
|
@@ -30,7 +30,7 @@ if (Schema.is(PeppolInvoice)(doc)) {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
// Round-trip back to XML:
|
|
33
|
-
const xml = Schema.encodeUnknownSync(
|
|
33
|
+
const xml = Schema.encodeUnknownSync(PeppolDocumentSchema)(doc);
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
Run the Schematron rule set or a single rule:
|
|
@@ -59,7 +59,7 @@ invoiceTypeCodes['380']; // 'Commercial invoice'
|
|
|
59
59
|
|
|
60
60
|
## Features
|
|
61
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 `
|
|
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
63
|
- **Effect Schema** models with typed decode/encode and `isPeppol*` type guards
|
|
64
64
|
- **Generated code lists** (`/values`): currencies, countries, tax schemes, UNCL, UNTDID, EAS, ICD etc. from OpenPEPPOL
|
|
65
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
|
|
@@ -71,7 +71,7 @@ invoiceTypeCodes['380']; // 'Commercial invoice'
|
|
|
71
71
|
|
|
72
72
|
| Import path | Description |
|
|
73
73
|
| ------------------------------------------------ | -------------------------------------------------------- |
|
|
74
|
-
| `@endevops/peppol-schema` | Document schemas, `
|
|
74
|
+
| `@endevops/peppol-schema` | Document schemas, `PeppolDocumentSchema`, types |
|
|
75
75
|
| `@endevops/peppol-schema/generate-translations` | CLI that generates translation files |
|
|
76
76
|
| `@endevops/peppol-schema/schematron` | PEPPOL + CEN + per-country Schematron rules |
|
|
77
77
|
| `@endevops/peppol-schema/validations` | Identifier and checksum validation rules |
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,49 +1,180 @@
|
|
|
1
1
|
//#region src/constants/credit-note-doctype-id.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* @description PEPPOL document type identifier for a UBL CreditNote. It combines the {@link documentScheme} scheme with the UBL `CreditNote-2` root element, the EN
|
|
4
|
+
* 16931 / PEPPOL BIS Billing 3.0 customization id, and version 2.1. The document schema it identifies is {@link PeppolCreditNote}.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* CREDIT_NOTE_DOCTYPE_ID; // 'busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2::CreditNote##...::2.1'
|
|
9
|
+
* ```;
|
|
10
|
+
*/
|
|
2
11
|
export declare const CREDIT_NOTE_DOCTYPE_ID: "busdox-docid-qns::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";
|
|
3
12
|
//#endregion
|
|
4
13
|
//#region src/constants/credit-note-process-id.d.ts
|
|
14
|
+
/**
|
|
15
|
+
* @description PEPPOL business process identifier for the billing process used by credit notes. It combines the {@link processScheme} scheme with the
|
|
16
|
+
* `urn:fdc:peppol.eu:2017:poacc:billing:01:1.0` business process id, the same value used by {@link INVOICE_PROCESS_ID}.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* CREDIT_NOTE_PROCESS_ID; // 'cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0'
|
|
21
|
+
* ```;
|
|
22
|
+
*/
|
|
5
23
|
export declare const CREDIT_NOTE_PROCESS_ID: "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0";
|
|
6
24
|
//#endregion
|
|
7
25
|
//#region src/constants/document-scheme.d.ts
|
|
26
|
+
/**
|
|
27
|
+
* @description Scheme id for PEPPOL document type identifiers. It forms the `<scheme>::` prefix of {@link INVOICE_DOCTYPE_ID}, {@link CREDIT_NOTE_DOCTYPE_ID},
|
|
28
|
+
* {@link INVOICE_RESPONSE_DOCTYPE_ID}, and {@link MESSAGE_LEVEL_RESPONSE_DOCTYPE_ID}.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* documentScheme; // 'busdox-docid-qns'
|
|
33
|
+
* ```;
|
|
34
|
+
*/
|
|
8
35
|
export declare const documentScheme: 'busdox-docid-qns';
|
|
9
36
|
//#endregion
|
|
10
37
|
//#region src/constants/invoice-doctype-id.d.ts
|
|
38
|
+
/**
|
|
39
|
+
* @description PEPPOL document type identifier for a UBL Invoice. It combines the {@link documentScheme} scheme with the UBL `Invoice-2` root element, the EN 16931
|
|
40
|
+
* / PEPPOL BIS Billing 3.0 customization id, and version 2.1. The document schema it identifies is {@link PeppolInvoice}.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* INVOICE_DOCTYPE_ID; // 'busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##...::2.1'
|
|
45
|
+
* ```;
|
|
46
|
+
*/
|
|
11
47
|
export declare const INVOICE_DOCTYPE_ID: "busdox-docid-qns::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";
|
|
12
48
|
//#endregion
|
|
13
49
|
//#region src/constants/invoice-process-id.d.ts
|
|
50
|
+
/**
|
|
51
|
+
* @description PEPPOL business process identifier for the billing process. It combines the {@link processScheme} scheme with the
|
|
52
|
+
* `urn:fdc:peppol.eu:2017:poacc:billing:01:1.0` business process id, which is the `cbc:ProfileID` value defaulted by the billing document schemas
|
|
53
|
+
* such as {@link PeppolInvoice}.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* INVOICE_PROCESS_ID; // 'cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0'
|
|
58
|
+
* ```;
|
|
59
|
+
*/
|
|
14
60
|
export declare const INVOICE_PROCESS_ID: "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0";
|
|
15
61
|
//#endregion
|
|
16
62
|
//#region src/constants/invoice-response-doctype-id.d.ts
|
|
63
|
+
/**
|
|
64
|
+
* @description PEPPOL document type identifier for a UBL ApplicationResponse carrying an invoice response. It combines the {@link documentScheme} scheme with the
|
|
65
|
+
* UBL `ApplicationResponse-2` root element, the `urn:fdc:peppol.eu:poacc:trns:invoice_response:3` customization id, and version 2.1. The document
|
|
66
|
+
* schema it identifies is {@link PeppolInvoiceResponse}.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* INVOICE_RESPONSE_DOCTYPE_ID; // 'busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:ApplicationResponse-2::...::2.1'
|
|
71
|
+
* ```;
|
|
72
|
+
*/
|
|
17
73
|
export declare const INVOICE_RESPONSE_DOCTYPE_ID: "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:ApplicationResponse-2::ApplicationResponse##urn:fdc:peppol.eu:poacc:trns:invoice_response:3::2.1";
|
|
18
74
|
//#endregion
|
|
19
75
|
//#region src/constants/invoice-response-process-id.d.ts
|
|
76
|
+
/**
|
|
77
|
+
* @description PEPPOL business process identifier for the invoice response process. It combines the {@link processScheme} scheme with
|
|
78
|
+
* {@link INVOICE_RESPONSE_PROFILE_ID}, which is the `cbc:ProfileID` value fixed by {@link PeppolInvoiceResponse}.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```ts
|
|
82
|
+
* INVOICE_RESPONSE_PROCESS_ID; // 'cenbii-procid-ubl::urn:fdc:peppol.eu:poacc:bis:invoice_response:3'
|
|
83
|
+
* ```;
|
|
84
|
+
*/
|
|
20
85
|
export declare const INVOICE_RESPONSE_PROCESS_ID: "cenbii-procid-ubl::urn:fdc:peppol.eu:poacc:bis:invoice_response:3";
|
|
21
86
|
//#endregion
|
|
22
87
|
//#region src/constants/invoice-response-profile-id.d.ts
|
|
88
|
+
/**
|
|
89
|
+
* @description PEPPOL profile id for the invoice response, version 3. It is the `cbc:ProfileID` value fixed by {@link PeppolInvoiceResponse} and is matched when
|
|
90
|
+
* dispatching `ApplicationResponse` documents to that schema.
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```ts
|
|
94
|
+
* INVOICE_RESPONSE_PROFILE_ID; // 'urn:fdc:peppol.eu:poacc:bis:invoice_response:3'
|
|
95
|
+
* ```;
|
|
96
|
+
*/
|
|
23
97
|
export declare const INVOICE_RESPONSE_PROFILE_ID: 'urn:fdc:peppol.eu:poacc:bis:invoice_response:3';
|
|
24
98
|
//#endregion
|
|
25
99
|
//#region src/constants/message-level-response-doctype-id.d.ts
|
|
100
|
+
/**
|
|
101
|
+
* @description PEPPOL document type identifier for a UBL ApplicationResponse carrying a message level response. It combines the {@link documentScheme} scheme with
|
|
102
|
+
* the UBL `ApplicationResponse-2` root element, the `urn:fdc:peppol.eu:poacc:trns:mlr:3` customization id, and version 2.1. The document schema it
|
|
103
|
+
* identifies is {@link PeppolMessageLevelResponse}.
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```ts
|
|
107
|
+
* MESSAGE_LEVEL_RESPONSE_DOCTYPE_ID; // 'busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:ApplicationResponse-2::...::2.1'
|
|
108
|
+
* ```;
|
|
109
|
+
*/
|
|
26
110
|
export declare const MESSAGE_LEVEL_RESPONSE_DOCTYPE_ID: "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:ApplicationResponse-2::ApplicationResponse##urn:fdc:peppol.eu:poacc:trns:mlr:3::2.1";
|
|
27
111
|
//#endregion
|
|
28
112
|
//#region src/constants/message-level-response-process-id.d.ts
|
|
113
|
+
/**
|
|
114
|
+
* @description PEPPOL business process identifier for the message level response process. It combines the {@link processScheme} scheme with
|
|
115
|
+
* {@link MESSAGE_LEVEL_RESPONSE_PROFILE_ID}, which is the `cbc:ProfileID` value fixed by {@link PeppolMessageLevelResponse}.
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* ```ts
|
|
119
|
+
* MESSAGE_LEVEL_RESPONSE_PROCESS_ID; // 'cenbii-procid-ubl::urn:fdc:peppol.eu:poacc:bis:mlr:3'
|
|
120
|
+
* ```;
|
|
121
|
+
*/
|
|
29
122
|
export declare const MESSAGE_LEVEL_RESPONSE_PROCESS_ID: "cenbii-procid-ubl::urn:fdc:peppol.eu:poacc:bis:mlr:3";
|
|
30
123
|
//#endregion
|
|
31
124
|
//#region src/constants/message-level-response-profile-id.d.ts
|
|
125
|
+
/**
|
|
126
|
+
* @description PEPPOL profile id for the message level response, version 3. It is the `cbc:ProfileID` value fixed by {@link PeppolMessageLevelResponse} and is
|
|
127
|
+
* matched when dispatching `ApplicationResponse` documents to that schema.
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* ```ts
|
|
131
|
+
* MESSAGE_LEVEL_RESPONSE_PROFILE_ID; // 'urn:fdc:peppol.eu:poacc:bis:mlr:3'
|
|
132
|
+
* ```;
|
|
133
|
+
*/
|
|
32
134
|
export declare const MESSAGE_LEVEL_RESPONSE_PROFILE_ID: 'urn:fdc:peppol.eu:poacc:bis:mlr:3';
|
|
33
135
|
//#endregion
|
|
34
136
|
//#region src/constants/participant-scheme.d.ts
|
|
137
|
+
/**
|
|
138
|
+
* @description Scheme id for ISO 6523 actor identifiers, used to qualify PEPPOL participant and endpoint identifiers.
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* ```ts
|
|
142
|
+
* PARTICIPANT_SCHEME; // 'iso6523-actorid-upis'
|
|
143
|
+
* ```;
|
|
144
|
+
*/
|
|
35
145
|
export declare const PARTICIPANT_SCHEME: 'iso6523-actorid-upis';
|
|
36
146
|
/**
|
|
147
|
+
* @description Deprecated alias of {@link PARTICIPANT_SCHEME}.
|
|
148
|
+
*
|
|
37
149
|
* @deprecated use `PARTICIPANT_SCHEME` instead.
|
|
38
150
|
*/
|
|
39
151
|
export declare const participantScheme: "iso6523-actorid-upis";
|
|
40
152
|
//#endregion
|
|
41
153
|
//#region src/constants/process-scheme.d.ts
|
|
154
|
+
/**
|
|
155
|
+
* @description Process scheme id for PEPPOL UBL business process identifiers. It forms the `<scheme>::` prefix of {@link INVOICE_PROCESS_ID},
|
|
156
|
+
* {@link CREDIT_NOTE_PROCESS_ID}, {@link INVOICE_RESPONSE_PROCESS_ID}, and {@link MESSAGE_LEVEL_RESPONSE_PROCESS_ID}.
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* ```ts
|
|
160
|
+
* processScheme; // 'cenbii-procid-ubl'
|
|
161
|
+
* ```;
|
|
162
|
+
*/
|
|
42
163
|
export declare const processScheme: 'cenbii-procid-ubl';
|
|
43
164
|
//#endregion
|
|
44
165
|
//#region src/constants/transport-profile.d.ts
|
|
166
|
+
/**
|
|
167
|
+
* @description PEPPOL AS4 transport profile identifier for transport profile version 2.0.
|
|
168
|
+
*
|
|
169
|
+
* @example
|
|
170
|
+
* ```ts
|
|
171
|
+
* TRANSPORT_PROFILE; // 'peppol-transport-as4-v2_0'
|
|
172
|
+
* ```;
|
|
173
|
+
*/
|
|
45
174
|
export declare const TRANSPORT_PROFILE: 'peppol-transport-as4-v2_0';
|
|
46
175
|
/**
|
|
176
|
+
* @description Deprecated alias of {@link TRANSPORT_PROFILE}.
|
|
177
|
+
*
|
|
47
178
|
* @deprecated
|
|
48
179
|
*/
|
|
49
180
|
export declare const transportProfile: "peppol-transport-as4-v2_0";
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","names":[],"sources":["../src/constants/credit-note-doctype-id.ts","../src/constants/credit-note-process-id.ts","../src/constants/document-scheme.ts","../src/constants/invoice-doctype-id.ts","../src/constants/invoice-process-id.ts","../src/constants/invoice-response-doctype-id.ts","../src/constants/invoice-response-process-id.ts","../src/constants/invoice-response-profile-id.ts","../src/constants/message-level-response-doctype-id.ts","../src/constants/message-level-response-process-id.ts","../src/constants/message-level-response-profile-id.ts","../src/constants/participant-scheme.ts","../src/constants/process-scheme.ts","../src/constants/transport-profile.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","names":[],"sources":["../src/constants/credit-note-doctype-id.ts","../src/constants/credit-note-process-id.ts","../src/constants/document-scheme.ts","../src/constants/invoice-doctype-id.ts","../src/constants/invoice-process-id.ts","../src/constants/invoice-response-doctype-id.ts","../src/constants/invoice-response-process-id.ts","../src/constants/invoice-response-profile-id.ts","../src/constants/message-level-response-doctype-id.ts","../src/constants/message-level-response-process-id.ts","../src/constants/message-level-response-profile-id.ts","../src/constants/participant-scheme.ts","../src/constants/process-scheme.ts","../src/constants/transport-profile.ts"],"mappings":";;;;;;;;;;qBAWa;;;;;;;;;;;;qBCAA;;;;;;;;;;;;qBCFA;;;;;;;;;;;;qBCEA;;;;;;;;;;;;;qBCCA;;;;;;;;;;;;;qBCAA;;;;;;;;;;;;qBCAA;;;;;;;;;;;;qBCHA;;;;;;;;;;;;;qBCGA;;;;;;;;;;;;qBCAA;;;;;;;;;;;;qBCHA;;;;;;;;;;;qBCDA;;;;;;qBAMA;;;;;;;;;;;;qBCLA;;;;;;;;;;;qBCDA;;;;;;qBAMA"}
|
package/dist/constants.js
CHANGED
|
@@ -1,44 +1,157 @@
|
|
|
1
|
-
import { n as INVOICE_RESPONSE_PROFILE_ID, t as MESSAGE_LEVEL_RESPONSE_PROFILE_ID } from "./message-level-response-profile-id-
|
|
1
|
+
import { n as INVOICE_RESPONSE_PROFILE_ID, t as MESSAGE_LEVEL_RESPONSE_PROFILE_ID } from "./message-level-response-profile-id-B9c0A7S_.js";
|
|
2
2
|
//#region src/constants/document-scheme.ts
|
|
3
|
+
/**
|
|
4
|
+
* @description Scheme id for PEPPOL document type identifiers. It forms the `<scheme>::` prefix of {@link INVOICE_DOCTYPE_ID}, {@link CREDIT_NOTE_DOCTYPE_ID},
|
|
5
|
+
* {@link INVOICE_RESPONSE_DOCTYPE_ID}, and {@link MESSAGE_LEVEL_RESPONSE_DOCTYPE_ID}.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* documentScheme; // 'busdox-docid-qns'
|
|
10
|
+
* ```;
|
|
11
|
+
*/
|
|
3
12
|
const documentScheme = "busdox-docid-qns";
|
|
4
13
|
//#endregion
|
|
5
14
|
//#region src/constants/credit-note-doctype-id.ts
|
|
15
|
+
/**
|
|
16
|
+
* @description PEPPOL document type identifier for a UBL CreditNote. It combines the {@link documentScheme} scheme with the UBL `CreditNote-2` root element, the EN
|
|
17
|
+
* 16931 / PEPPOL BIS Billing 3.0 customization id, and version 2.1. The document schema it identifies is {@link PeppolCreditNote}.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* CREDIT_NOTE_DOCTYPE_ID; // 'busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2::CreditNote##...::2.1'
|
|
22
|
+
* ```;
|
|
23
|
+
*/
|
|
6
24
|
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`;
|
|
7
25
|
//#endregion
|
|
8
26
|
//#region src/constants/process-scheme.ts
|
|
27
|
+
/**
|
|
28
|
+
* @description Process scheme id for PEPPOL UBL business process identifiers. It forms the `<scheme>::` prefix of {@link INVOICE_PROCESS_ID},
|
|
29
|
+
* {@link CREDIT_NOTE_PROCESS_ID}, {@link INVOICE_RESPONSE_PROCESS_ID}, and {@link MESSAGE_LEVEL_RESPONSE_PROCESS_ID}.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* processScheme; // 'cenbii-procid-ubl'
|
|
34
|
+
* ```;
|
|
35
|
+
*/
|
|
9
36
|
const processScheme = "cenbii-procid-ubl";
|
|
10
37
|
//#endregion
|
|
11
38
|
//#region src/constants/credit-note-process-id.ts
|
|
39
|
+
/**
|
|
40
|
+
* @description PEPPOL business process identifier for the billing process used by credit notes. It combines the {@link processScheme} scheme with the
|
|
41
|
+
* `urn:fdc:peppol.eu:2017:poacc:billing:01:1.0` business process id, the same value used by {@link INVOICE_PROCESS_ID}.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* CREDIT_NOTE_PROCESS_ID; // 'cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0'
|
|
46
|
+
* ```;
|
|
47
|
+
*/
|
|
12
48
|
const CREDIT_NOTE_PROCESS_ID = `${processScheme}::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0`;
|
|
13
49
|
//#endregion
|
|
14
50
|
//#region src/constants/invoice-doctype-id.ts
|
|
51
|
+
/**
|
|
52
|
+
* @description PEPPOL document type identifier for a UBL Invoice. It combines the {@link documentScheme} scheme with the UBL `Invoice-2` root element, the EN 16931
|
|
53
|
+
* / PEPPOL BIS Billing 3.0 customization id, and version 2.1. The document schema it identifies is {@link PeppolInvoice}.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* INVOICE_DOCTYPE_ID; // 'busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##...::2.1'
|
|
58
|
+
* ```;
|
|
59
|
+
*/
|
|
15
60
|
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`;
|
|
16
61
|
//#endregion
|
|
17
62
|
//#region src/constants/invoice-process-id.ts
|
|
63
|
+
/**
|
|
64
|
+
* @description PEPPOL business process identifier for the billing process. It combines the {@link processScheme} scheme with the
|
|
65
|
+
* `urn:fdc:peppol.eu:2017:poacc:billing:01:1.0` business process id, which is the `cbc:ProfileID` value defaulted by the billing document schemas
|
|
66
|
+
* such as {@link PeppolInvoice}.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* INVOICE_PROCESS_ID; // 'cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0'
|
|
71
|
+
* ```;
|
|
72
|
+
*/
|
|
18
73
|
const INVOICE_PROCESS_ID = `${processScheme}::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0`;
|
|
19
74
|
//#endregion
|
|
20
75
|
//#region src/constants/invoice-response-doctype-id.ts
|
|
76
|
+
/**
|
|
77
|
+
* @description PEPPOL document type identifier for a UBL ApplicationResponse carrying an invoice response. It combines the {@link documentScheme} scheme with the
|
|
78
|
+
* UBL `ApplicationResponse-2` root element, the `urn:fdc:peppol.eu:poacc:trns:invoice_response:3` customization id, and version 2.1. The document
|
|
79
|
+
* schema it identifies is {@link PeppolInvoiceResponse}.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* INVOICE_RESPONSE_DOCTYPE_ID; // 'busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:ApplicationResponse-2::...::2.1'
|
|
84
|
+
* ```;
|
|
85
|
+
*/
|
|
21
86
|
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`;
|
|
22
87
|
//#endregion
|
|
23
88
|
//#region src/constants/invoice-response-process-id.ts
|
|
89
|
+
/**
|
|
90
|
+
* @description PEPPOL business process identifier for the invoice response process. It combines the {@link processScheme} scheme with
|
|
91
|
+
* {@link INVOICE_RESPONSE_PROFILE_ID}, which is the `cbc:ProfileID` value fixed by {@link PeppolInvoiceResponse}.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```ts
|
|
95
|
+
* INVOICE_RESPONSE_PROCESS_ID; // 'cenbii-procid-ubl::urn:fdc:peppol.eu:poacc:bis:invoice_response:3'
|
|
96
|
+
* ```;
|
|
97
|
+
*/
|
|
24
98
|
const INVOICE_RESPONSE_PROCESS_ID = `${processScheme}::${INVOICE_RESPONSE_PROFILE_ID}`;
|
|
25
99
|
//#endregion
|
|
26
100
|
//#region src/constants/message-level-response-doctype-id.ts
|
|
101
|
+
/**
|
|
102
|
+
* @description PEPPOL document type identifier for a UBL ApplicationResponse carrying a message level response. It combines the {@link documentScheme} scheme with
|
|
103
|
+
* the UBL `ApplicationResponse-2` root element, the `urn:fdc:peppol.eu:poacc:trns:mlr:3` customization id, and version 2.1. The document schema it
|
|
104
|
+
* identifies is {@link PeppolMessageLevelResponse}.
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* ```ts
|
|
108
|
+
* MESSAGE_LEVEL_RESPONSE_DOCTYPE_ID; // 'busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:ApplicationResponse-2::...::2.1'
|
|
109
|
+
* ```;
|
|
110
|
+
*/
|
|
27
111
|
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`;
|
|
28
112
|
//#endregion
|
|
29
113
|
//#region src/constants/message-level-response-process-id.ts
|
|
114
|
+
/**
|
|
115
|
+
* @description PEPPOL business process identifier for the message level response process. It combines the {@link processScheme} scheme with
|
|
116
|
+
* {@link MESSAGE_LEVEL_RESPONSE_PROFILE_ID}, which is the `cbc:ProfileID` value fixed by {@link PeppolMessageLevelResponse}.
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* ```ts
|
|
120
|
+
* MESSAGE_LEVEL_RESPONSE_PROCESS_ID; // 'cenbii-procid-ubl::urn:fdc:peppol.eu:poacc:bis:mlr:3'
|
|
121
|
+
* ```;
|
|
122
|
+
*/
|
|
30
123
|
const MESSAGE_LEVEL_RESPONSE_PROCESS_ID = `${processScheme}::${MESSAGE_LEVEL_RESPONSE_PROFILE_ID}`;
|
|
31
124
|
//#endregion
|
|
32
125
|
//#region src/constants/participant-scheme.ts
|
|
126
|
+
/**
|
|
127
|
+
* @description Scheme id for ISO 6523 actor identifiers, used to qualify PEPPOL participant and endpoint identifiers.
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* ```ts
|
|
131
|
+
* PARTICIPANT_SCHEME; // 'iso6523-actorid-upis'
|
|
132
|
+
* ```;
|
|
133
|
+
*/
|
|
33
134
|
const PARTICIPANT_SCHEME = "iso6523-actorid-upis";
|
|
34
135
|
/**
|
|
136
|
+
* @description Deprecated alias of {@link PARTICIPANT_SCHEME}.
|
|
137
|
+
*
|
|
35
138
|
* @deprecated use `PARTICIPANT_SCHEME` instead.
|
|
36
139
|
*/
|
|
37
140
|
const participantScheme = PARTICIPANT_SCHEME;
|
|
38
141
|
//#endregion
|
|
39
142
|
//#region src/constants/transport-profile.ts
|
|
143
|
+
/**
|
|
144
|
+
* @description PEPPOL AS4 transport profile identifier for transport profile version 2.0.
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* ```ts
|
|
148
|
+
* TRANSPORT_PROFILE; // 'peppol-transport-as4-v2_0'
|
|
149
|
+
* ```;
|
|
150
|
+
*/
|
|
40
151
|
const TRANSPORT_PROFILE = "peppol-transport-as4-v2_0";
|
|
41
152
|
/**
|
|
153
|
+
* @description Deprecated alias of {@link TRANSPORT_PROFILE}.
|
|
154
|
+
*
|
|
42
155
|
* @deprecated
|
|
43
156
|
*/
|
|
44
157
|
const transportProfile = TRANSPORT_PROFILE;
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":[],"sources":["../src/constants/document-scheme.ts","../src/constants/credit-note-doctype-id.ts","../src/constants/process-scheme.ts","../src/constants/credit-note-process-id.ts","../src/constants/invoice-doctype-id.ts","../src/constants/invoice-process-id.ts","../src/constants/invoice-response-doctype-id.ts","../src/constants/invoice-response-process-id.ts","../src/constants/message-level-response-doctype-id.ts","../src/constants/message-level-response-process-id.ts","../src/constants/participant-scheme.ts","../src/constants/transport-profile.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"constants.js","names":[],"sources":["../src/constants/document-scheme.ts","../src/constants/credit-note-doctype-id.ts","../src/constants/process-scheme.ts","../src/constants/credit-note-process-id.ts","../src/constants/invoice-doctype-id.ts","../src/constants/invoice-process-id.ts","../src/constants/invoice-response-doctype-id.ts","../src/constants/invoice-response-process-id.ts","../src/constants/message-level-response-doctype-id.ts","../src/constants/message-level-response-process-id.ts","../src/constants/participant-scheme.ts","../src/constants/transport-profile.ts"],"sourcesContent":["/**\n * @description Scheme id for PEPPOL document type identifiers. It forms the `<scheme>::` prefix of {@link INVOICE_DOCTYPE_ID}, {@link CREDIT_NOTE_DOCTYPE_ID},\n * {@link INVOICE_RESPONSE_DOCTYPE_ID}, and {@link MESSAGE_LEVEL_RESPONSE_DOCTYPE_ID}.\n *\n * @example\n * ```ts\n * documentScheme; // 'busdox-docid-qns'\n * ```;\n */\nexport const documentScheme = 'busdox-docid-qns' as const;\n","import { documentScheme } from '#/constants/document-scheme.ts';\n\n/**\n * @description PEPPOL document type identifier for a UBL CreditNote. It combines the {@link documentScheme} scheme with the UBL `CreditNote-2` root element, the EN\n * 16931 / PEPPOL BIS Billing 3.0 customization id, and version 2.1. The document schema it identifies is {@link PeppolCreditNote}.\n *\n * @example\n * ```ts\n * CREDIT_NOTE_DOCTYPE_ID; // 'busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2::CreditNote##...::2.1'\n * ```;\n */\nexport const CREDIT_NOTE_DOCTYPE_ID =\n `${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` as const;\n","/**\n * @description Process scheme id for PEPPOL UBL business process identifiers. It forms the `<scheme>::` prefix of {@link INVOICE_PROCESS_ID},\n * {@link CREDIT_NOTE_PROCESS_ID}, {@link INVOICE_RESPONSE_PROCESS_ID}, and {@link MESSAGE_LEVEL_RESPONSE_PROCESS_ID}.\n *\n * @example\n * ```ts\n * processScheme; // 'cenbii-procid-ubl'\n * ```;\n */\nexport const processScheme = 'cenbii-procid-ubl' as const;\n","import { processScheme } from '#/constants/process-scheme.ts';\n\n/**\n * @description PEPPOL business process identifier for the billing process used by credit notes. It combines the {@link processScheme} scheme with the\n * `urn:fdc:peppol.eu:2017:poacc:billing:01:1.0` business process id, the same value used by {@link INVOICE_PROCESS_ID}.\n *\n * @example\n * ```ts\n * CREDIT_NOTE_PROCESS_ID; // 'cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0'\n * ```;\n */\nexport const CREDIT_NOTE_PROCESS_ID = `${processScheme}::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0` as const;\n","import { documentScheme } from '#/constants/document-scheme.ts';\n\n/**\n * @description PEPPOL document type identifier for a UBL Invoice. It combines the {@link documentScheme} scheme with the UBL `Invoice-2` root element, the EN 16931\n * / PEPPOL BIS Billing 3.0 customization id, and version 2.1. The document schema it identifies is {@link PeppolInvoice}.\n *\n * @example\n * ```ts\n * INVOICE_DOCTYPE_ID; // 'busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##...::2.1'\n * ```;\n */\nexport const INVOICE_DOCTYPE_ID =\n `${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` as const;\n","import { processScheme } from '#/constants/process-scheme.ts';\n\n/**\n * @description PEPPOL business process identifier for the billing process. It combines the {@link processScheme} scheme with the\n * `urn:fdc:peppol.eu:2017:poacc:billing:01:1.0` business process id, which is the `cbc:ProfileID` value defaulted by the billing document schemas\n * such as {@link PeppolInvoice}.\n *\n * @example\n * ```ts\n * INVOICE_PROCESS_ID; // 'cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0'\n * ```;\n */\nexport const INVOICE_PROCESS_ID = `${processScheme}::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0` as const;\n","import { documentScheme } from '#/constants/document-scheme.ts';\n\n/**\n * @description PEPPOL document type identifier for a UBL ApplicationResponse carrying an invoice response. It combines the {@link documentScheme} scheme with the\n * UBL `ApplicationResponse-2` root element, the `urn:fdc:peppol.eu:poacc:trns:invoice_response:3` customization id, and version 2.1. The document\n * schema it identifies is {@link PeppolInvoiceResponse}.\n *\n * @example\n * ```ts\n * INVOICE_RESPONSE_DOCTYPE_ID; // 'busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:ApplicationResponse-2::...::2.1'\n * ```;\n */\nexport const INVOICE_RESPONSE_DOCTYPE_ID =\n `${documentScheme}::urn:oasis:names:specification:ubl:schema:xsd:ApplicationResponse-2::ApplicationResponse##urn:fdc:peppol.eu:poacc:trns:invoice_response:3::2.1` as const;\n","import { INVOICE_RESPONSE_PROFILE_ID } from '#/constants/invoice-response-profile-id.ts';\nimport { processScheme } from '#/constants/process-scheme.ts';\n\n/**\n * @description PEPPOL business process identifier for the invoice response process. It combines the {@link processScheme} scheme with\n * {@link INVOICE_RESPONSE_PROFILE_ID}, which is the `cbc:ProfileID` value fixed by {@link PeppolInvoiceResponse}.\n *\n * @example\n * ```ts\n * INVOICE_RESPONSE_PROCESS_ID; // 'cenbii-procid-ubl::urn:fdc:peppol.eu:poacc:bis:invoice_response:3'\n * ```;\n */\nexport const INVOICE_RESPONSE_PROCESS_ID = `${processScheme}::${INVOICE_RESPONSE_PROFILE_ID}` as const;\n","import { documentScheme } from '#/constants/document-scheme.ts';\n\n/**\n * @description PEPPOL document type identifier for a UBL ApplicationResponse carrying a message level response. It combines the {@link documentScheme} scheme with\n * the UBL `ApplicationResponse-2` root element, the `urn:fdc:peppol.eu:poacc:trns:mlr:3` customization id, and version 2.1. The document schema it\n * identifies is {@link PeppolMessageLevelResponse}.\n *\n * @example\n * ```ts\n * MESSAGE_LEVEL_RESPONSE_DOCTYPE_ID; // 'busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:ApplicationResponse-2::...::2.1'\n * ```;\n */\nexport const MESSAGE_LEVEL_RESPONSE_DOCTYPE_ID =\n `${documentScheme}::urn:oasis:names:specification:ubl:schema:xsd:ApplicationResponse-2::ApplicationResponse##urn:fdc:peppol.eu:poacc:trns:mlr:3::2.1` as const;\n","import { MESSAGE_LEVEL_RESPONSE_PROFILE_ID } from '#/constants/message-level-response-profile-id.ts';\nimport { processScheme } from '#/constants/process-scheme.ts';\n\n/**\n * @description PEPPOL business process identifier for the message level response process. It combines the {@link processScheme} scheme with\n * {@link MESSAGE_LEVEL_RESPONSE_PROFILE_ID}, which is the `cbc:ProfileID` value fixed by {@link PeppolMessageLevelResponse}.\n *\n * @example\n * ```ts\n * MESSAGE_LEVEL_RESPONSE_PROCESS_ID; // 'cenbii-procid-ubl::urn:fdc:peppol.eu:poacc:bis:mlr:3'\n * ```;\n */\nexport const MESSAGE_LEVEL_RESPONSE_PROCESS_ID = `${processScheme}::${MESSAGE_LEVEL_RESPONSE_PROFILE_ID}` as const;\n","/**\n * @description Scheme id for ISO 6523 actor identifiers, used to qualify PEPPOL participant and endpoint identifiers.\n *\n * @example\n * ```ts\n * PARTICIPANT_SCHEME; // 'iso6523-actorid-upis'\n * ```;\n */\nexport const PARTICIPANT_SCHEME = 'iso6523-actorid-upis' as const;\n/**\n * @description Deprecated alias of {@link PARTICIPANT_SCHEME}.\n *\n * @deprecated use `PARTICIPANT_SCHEME` instead.\n */\nexport const participantScheme = PARTICIPANT_SCHEME;\n","/**\n * @description PEPPOL AS4 transport profile identifier for transport profile version 2.0.\n *\n * @example\n * ```ts\n * TRANSPORT_PROFILE; // 'peppol-transport-as4-v2_0'\n * ```;\n */\nexport const TRANSPORT_PROFILE = 'peppol-transport-as4-v2_0' as const;\n/**\n * @description Deprecated alias of {@link TRANSPORT_PROFILE}.\n *\n * @deprecated\n */\nexport const transportProfile = TRANSPORT_PROFILE;\n"],"mappings":";;;;;;;;;;;AASA,MAAa,iBAAiB;;;;;;;;;;;;ACE9B,MAAa,yBACX,GAAG,eAAe;;;;;;;;;;;;ACHpB,MAAa,gBAAgB;;;;;;;;;;;;ACE7B,MAAa,yBAAyB,GAAG,cAAc;;;;;;;;;;;;ACAvD,MAAa,qBACX,GAAG,eAAe;;;;;;;;;;;;;ACApB,MAAa,qBAAqB,GAAG,cAAc;;;;;;;;;;;;;ACAnD,MAAa,8BACX,GAAG,eAAe;;;;;;;;;;;;ACDpB,MAAa,8BAA8B,GAAG,cAAc,IAAI;;;;;;;;;;;;;ACAhE,MAAa,oCACX,GAAG,eAAe;;;;;;;;;;;;ACDpB,MAAa,oCAAoC,GAAG,cAAc,IAAI;;;;;;;;;;;ACJtE,MAAa,qBAAqB;;;;;;AAMlC,MAAa,oBAAoB;;;;;;;;;;;ACNjC,MAAa,oBAAoB;;;;;;AAMjC,MAAa,mBAAmB"}
|