// SPDX-License-Identifier: EUPL-1.2 // Versions and coverage statement. This module has no imports, so pages can show these // facts without pulling the rule engine into the browser bundle. export const ENGINE_VERSION = "1.0.0"; export const RULESET_RELEASES = { en16931: { id: "EN16931-UBL", title: "CEN EN 16931 validation artefacts (UBL)", release: "1.3.17", source: "https://github.com/ConnectingEurope/eInvoicing-EN16931/releases/tag/validation-1.3.17", assertionCount: 981, assertionIdsSha256: "7181a52210e2af33aa854bdd79b4f12d2247892981676d508972a7fe5c8849aa" }, /** The CEN artefact that OpenPeppol ships inside Peppol BIS Billing 3.0.22 (rules/sch/CEN-EN16931-UBL.sch). */ en16931Peppol: { id: "EN16931-UBL", title: "CEN EN 16931 validation artefacts (UBL), as bundled in Peppol BIS Billing 3.0.22", release: "1.3.16", source: "https://github.com/OpenPEPPOL/peppol-bis-invoice-3/blob/3.0.22/rules/sch/CEN-EN16931-UBL.sch", assertionCount: 979, assertionIdsSha256: "e8bb6b8aed110106350c06aedc6b2f7ba542a614359360fe2dc577f5f7f92506" }, peppol: { id: "PEPPOL-BIS-BILLING-3", title: "Peppol BIS Billing 3.0 rules", release: "3.0.22", source: "https://github.com/OpenPEPPOL/peppol-bis-invoice-3/tree/3.0.22", /** Active assertions; PEPPOL-COMMON-R048 is commented out in the published file. */ assertionCount: 165, assertionIdsSha256: "0c6cd117baca32284713c4b33acf78dc6c13f0f340d970f3bb24b735206d5952" } } as const; /** Date after which the operator re-checks for newer CEN and Peppol releases (RUNBOOK). */ export const RULESET_REVIEW_AFTER = "2027-05-01"; /** Number of UBL 2.1 schema types in ubl-xsd-table.ts; a test keeps this equal to the table. */ export const STRUCTURE_TYPE_COUNT = 42; /** What the engine does and does not check. Shown on the site and on every report. */ export const COVERAGE = { checked: [ "XML well-formedness, UTF-8 encoding, no DOCTYPE or custom entities", `UBL 2.1 structure for ${STRUCTURE_TYPE_COUNT} schema types used by EN 16931: allowed elements, order, required children, single occurrence, decimal/date/boolean lexical form`, `EN 16931 rule set: all ${RULESET_RELEASES.en16931.assertionCount} assertions of the CEN EN 16931 UBL validation artefacts ${RULESET_RELEASES.en16931.release}`, `Peppol rule set: all ${RULESET_RELEASES.en16931Peppol.assertionCount} assertions of CEN ${RULESET_RELEASES.en16931Peppol.release} as bundled by OpenPeppol, plus all ${RULESET_RELEASES.peppol.assertionCount} assertions of Peppol BIS Billing 3.0 ${RULESET_RELEASES.peppol.release}` ], notChecked: [ "Full W3C XML Schema validation (attribute declarations, facets, types below elements that EN 16931 does not use)", "UN/CEFACT CII syntax, ZUGFeRD and Factur-X PDF containers", "National CIUS rule sets that are not part of the Peppol BIS Billing 3.0 rules (for example XRechnung)", "Whether identifiers, tax numbers, bank accounts or parties exist", "Digital signatures and the content of attachments" ] } as const;