@formfeed/engine 0.3.15 → 0.3.17
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/index.cjs +639 -4
- package/index.js +639 -4
- package/package.json +1 -1
- package/types/index.d.cts +2 -2
- package/types/index.d.ts +2 -2
- package/types/lib/einvoice/check.d.cts +1 -1
- package/types/lib/einvoice/check.d.ts +1 -1
- package/types/lib/einvoice/coverage.d.cts +28 -0
- package/types/lib/einvoice/coverage.d.ts +28 -0
- package/types/lib/einvoice/index.d.cts +1 -0
- package/types/lib/einvoice/index.d.ts +1 -0
- package/types/lib/einvoice/report.d.cts +14 -0
- package/types/lib/einvoice/report.d.ts +14 -0
package/package.json
CHANGED
package/types/index.d.cts
CHANGED
|
@@ -30,8 +30,8 @@ export type { ApplyResult, ChipKind, EditableRegion, EditItem, RegionChip, Regio
|
|
|
30
30
|
export { resolveTranslation, translationTarget } from './lib/translation.cjs';
|
|
31
31
|
export { DESIGN_LIMITS, DESIGN_VERSION, dataPathPattern, defaultLayer, designBytes, designOutputHash, designStarters, emitDesign, emptyDesign, genericFamily, googleFont, googleFonts, googleFontsUrl, imageIsEmpty, layerIdPattern, nearestWeight, nextLayerId, parseDesign, } from './lib/design/index.cjs';
|
|
32
32
|
export type { BarcodeLayer, BarcodeSymbology, Binding, CanvasSize, DesignDocument, DesignLayer, DesignStarter, EmittedDesign, FontChoice, GoogleFont, ImageLayer, ImageSource, LayerBase, LayerType, Paint, ParsedDesign, QrLayer, Shadow, ShapeLayer, Stroke, TextFormat, TextItem, TextLayer, TextStyle, } from './lib/design/index.cjs';
|
|
33
|
-
export { CII_GUIDELINES, CODE_LIST_RELEASE, DISPLAY_TERMS, EINVOICE_FLAVOURS, EINVOICE_FLAVOUR_NAMES, EINVOICE_MAX_MESSAGES, EINVOICE_PROFILES, EINVOICE_PROFILE_NAMES, EINVOICE_SPEC_VERSIONS, EINVOICE_XML_NAME, INVOICE_DATA_KEY, VAT_CATEGORIES, capMessages, checkInvoice, defaultEinvoiceOptions, displayCheck, displayMissingText, einvoiceOptionsSchema, einvoiceResult, einvoiceXml, htmlText, invoiceAmountText, invoiceLineOf, invoicePathSegments, invoiceSchema, invoiceSkeleton, invoiceToCii, locateJsonPath, resolveEinvoiceOptions, shownAmounts, } from './lib/einvoice/index.cjs';
|
|
34
|
-
export type { CheckOptions, DisplayCheck, DisplayValue, EinvoiceDisplay, EinvoiceFlavour, EinvoiceMessage, EinvoiceOptions, EinvoiceOptionsInput, EinvoiceProfile, EinvoiceResult, EinvoiceValidation, EinvoiceXml, Identifier, Invoice, InvoiceAddress, InvoiceAllowance, InvoiceBreakdown, InvoiceCheck, InvoiceInput, InvoiceLine, InvoiceParty, InvoiceProblem, InvoiceProblemCode, InvoiceTax, JsonLocation, ResolvedEinvoice, VatCategory, } from './lib/einvoice/index.cjs';
|
|
33
|
+
export { CII_GUIDELINES, CODE_LIST_RELEASE, DISPLAY_TERMS, EINVOICE_FLAVOURS, EINVOICE_FLAVOUR_NAMES, EINVOICE_MAX_MESSAGES, EINVOICE_PROFILES, EINVOICE_PROFILE_NAMES, EINVOICE_SPEC_VERSIONS, EINVOICE_XML_NAME, EN16931_TERMS, INVOICE_DATA_KEY, VAT_CATEGORIES, capMessages, carriesTerm, checkInvoice, defaultEinvoiceOptions, displayCheck, displayMissingText, einvoiceOptionsSchema, einvoiceResult, einvoiceXml, htmlText, invoiceAmountText, invoiceLineOf, invoicePathSegments, invoiceSchema, invoiceSkeleton, invoiceToCii, locateJsonPath, resolveEinvoiceOptions, shownAmounts, } from './lib/einvoice/index.cjs';
|
|
34
|
+
export type { CheckOptions, DisplayCheck, DisplayValue, EinvoiceDisplay, EinvoiceFlavour, EinvoiceMessage, EinvoiceOptions, EinvoiceOptionsInput, EinvoiceProfile, EinvoiceResult, EinvoiceTerm, EinvoiceValidation, EinvoiceXml, Identifier, Invoice, InvoiceAddress, InvoiceAllowance, InvoiceBreakdown, InvoiceCheck, InvoiceInput, InvoiceLine, InvoiceParty, InvoiceProblem, InvoiceProblemCode, InvoiceTax, JsonLocation, ResolvedEinvoice, VatCategory, } from './lib/einvoice/index.cjs';
|
|
35
35
|
export { ACCESSIBILITY_HEADER_LENGTH, ACCESSIBILITY_MAX_ELEMENTS, ACCESSIBILITY_MAX_FAILURES, AUDIT_CODES, AUDIT_RULES, AUDIT_SEVERITY, AUDIT_SNIPPET_LENGTH, AUDIT_TITLES, PDFUA_STANDARD, UA_CHECKS, UA_REFUSALS, accessibilityHeader, accessibilityHeaderValue, accessibilityResult, auditMessage, isUaSetting, resolveUa, } from './lib/accessibility/index.cjs';
|
|
36
36
|
export type { AccessibilityFailure, AccessibilityResult, AccessibilityWarning, AuditArgs, AuditCode, AuditFinding, AuditLink, AuditOptions, AuditReport, AuditSeverity, UaCheck, UaOptions, UaSetting, ValidatorFailure, ValidatorVerdict, } from './lib/accessibility/index.cjs';
|
|
37
37
|
export { staticAudit, staticAuditDiagnostics, } from './lib/accessibility/static.cjs';
|
package/types/index.d.ts
CHANGED
|
@@ -30,8 +30,8 @@ export type { ApplyResult, ChipKind, EditableRegion, EditItem, RegionChip, Regio
|
|
|
30
30
|
export { resolveTranslation, translationTarget } from './lib/translation.js';
|
|
31
31
|
export { DESIGN_LIMITS, DESIGN_VERSION, dataPathPattern, defaultLayer, designBytes, designOutputHash, designStarters, emitDesign, emptyDesign, genericFamily, googleFont, googleFonts, googleFontsUrl, imageIsEmpty, layerIdPattern, nearestWeight, nextLayerId, parseDesign, } from './lib/design/index.js';
|
|
32
32
|
export type { BarcodeLayer, BarcodeSymbology, Binding, CanvasSize, DesignDocument, DesignLayer, DesignStarter, EmittedDesign, FontChoice, GoogleFont, ImageLayer, ImageSource, LayerBase, LayerType, Paint, ParsedDesign, QrLayer, Shadow, ShapeLayer, Stroke, TextFormat, TextItem, TextLayer, TextStyle, } from './lib/design/index.js';
|
|
33
|
-
export { CII_GUIDELINES, CODE_LIST_RELEASE, DISPLAY_TERMS, EINVOICE_FLAVOURS, EINVOICE_FLAVOUR_NAMES, EINVOICE_MAX_MESSAGES, EINVOICE_PROFILES, EINVOICE_PROFILE_NAMES, EINVOICE_SPEC_VERSIONS, EINVOICE_XML_NAME, INVOICE_DATA_KEY, VAT_CATEGORIES, capMessages, checkInvoice, defaultEinvoiceOptions, displayCheck, displayMissingText, einvoiceOptionsSchema, einvoiceResult, einvoiceXml, htmlText, invoiceAmountText, invoiceLineOf, invoicePathSegments, invoiceSchema, invoiceSkeleton, invoiceToCii, locateJsonPath, resolveEinvoiceOptions, shownAmounts, } from './lib/einvoice/index.js';
|
|
34
|
-
export type { CheckOptions, DisplayCheck, DisplayValue, EinvoiceDisplay, EinvoiceFlavour, EinvoiceMessage, EinvoiceOptions, EinvoiceOptionsInput, EinvoiceProfile, EinvoiceResult, EinvoiceValidation, EinvoiceXml, Identifier, Invoice, InvoiceAddress, InvoiceAllowance, InvoiceBreakdown, InvoiceCheck, InvoiceInput, InvoiceLine, InvoiceParty, InvoiceProblem, InvoiceProblemCode, InvoiceTax, JsonLocation, ResolvedEinvoice, VatCategory, } from './lib/einvoice/index.js';
|
|
33
|
+
export { CII_GUIDELINES, CODE_LIST_RELEASE, DISPLAY_TERMS, EINVOICE_FLAVOURS, EINVOICE_FLAVOUR_NAMES, EINVOICE_MAX_MESSAGES, EINVOICE_PROFILES, EINVOICE_PROFILE_NAMES, EINVOICE_SPEC_VERSIONS, EINVOICE_XML_NAME, EN16931_TERMS, INVOICE_DATA_KEY, VAT_CATEGORIES, capMessages, carriesTerm, checkInvoice, defaultEinvoiceOptions, displayCheck, displayMissingText, einvoiceOptionsSchema, einvoiceResult, einvoiceXml, htmlText, invoiceAmountText, invoiceLineOf, invoicePathSegments, invoiceSchema, invoiceSkeleton, invoiceToCii, locateJsonPath, resolveEinvoiceOptions, shownAmounts, } from './lib/einvoice/index.js';
|
|
34
|
+
export type { CheckOptions, DisplayCheck, DisplayValue, EinvoiceDisplay, EinvoiceFlavour, EinvoiceMessage, EinvoiceOptions, EinvoiceOptionsInput, EinvoiceProfile, EinvoiceResult, EinvoiceTerm, EinvoiceValidation, EinvoiceXml, Identifier, Invoice, InvoiceAddress, InvoiceAllowance, InvoiceBreakdown, InvoiceCheck, InvoiceInput, InvoiceLine, InvoiceParty, InvoiceProblem, InvoiceProblemCode, InvoiceTax, JsonLocation, ResolvedEinvoice, VatCategory, } from './lib/einvoice/index.js';
|
|
35
35
|
export { ACCESSIBILITY_HEADER_LENGTH, ACCESSIBILITY_MAX_ELEMENTS, ACCESSIBILITY_MAX_FAILURES, AUDIT_CODES, AUDIT_RULES, AUDIT_SEVERITY, AUDIT_SNIPPET_LENGTH, AUDIT_TITLES, PDFUA_STANDARD, UA_CHECKS, UA_REFUSALS, accessibilityHeader, accessibilityHeaderValue, accessibilityResult, auditMessage, isUaSetting, resolveUa, } from './lib/accessibility/index.js';
|
|
36
36
|
export type { AccessibilityFailure, AccessibilityResult, AccessibilityWarning, AuditArgs, AuditCode, AuditFinding, AuditLink, AuditOptions, AuditReport, AuditSeverity, UaCheck, UaOptions, UaSetting, ValidatorFailure, ValidatorVerdict, } from './lib/accessibility/index.js';
|
|
37
37
|
export { staticAudit, staticAuditDiagnostics, } from './lib/accessibility/static.js';
|
|
@@ -25,7 +25,7 @@ export interface InvoiceProblem {
|
|
|
25
25
|
/** The values `message` was built from. */
|
|
26
26
|
args: Record<string, string | number>;
|
|
27
27
|
}
|
|
28
|
-
export type InvoiceProblemCode = 'missing' | 'invalid' | 'not_a_number' | 'decimals' | 'negative' | 'code_list' | 'date' | 'date_order' | 'scheme_required' | 'vat_id_prefix' | 'iban' | 'sum' | 'breakdown_missing' | 'breakdown_duplicate' | 'rate_required' | 'rate_positive' | 'rate_zero' | 'rate_forbidden' | 'amount_zero' | 'exemption_reason_required' | 'exemption_reason_forbidden' | 'seller_tax_id_required' | 'buyer_tax_id_required' | 'vat_id_forbidden' | 'only_category' | 'delivery_required' | 'account_required' | 'means_code_required' | 'due_or_terms_required' | 'seller_identifier_required' | 'siren_mismatch' | 'fr_seller_siren' | 'fr_buyer_siren' | 'fr_operation' | 'fr_vat_on_debits' | 'profile';
|
|
28
|
+
export type InvoiceProblemCode = 'missing' | 'invalid' | 'not_a_number' | 'decimals' | 'negative' | 'code_list' | 'date' | 'date_order' | 'scheme_required' | 'vat_id_prefix' | 'iban' | 'sum' | 'breakdown_missing' | 'breakdown_duplicate' | 'rate_required' | 'rate_positive' | 'rate_zero' | 'rate_forbidden' | 'amount_zero' | 'exemption_reason_required' | 'exemption_reason_forbidden' | 'seller_tax_id_required' | 'buyer_tax_id_required' | 'vat_id_forbidden' | 'only_category' | 'delivery_required' | 'account_required' | 'means_code_required' | 'due_or_terms_required' | 'seller_identifier_required' | 'siren_mismatch' | 'fr_seller_siren' | 'fr_buyer_siren' | 'fr_operation' | 'fr_vat_on_debits' | 'fr_note' | 'fr_electronic_address' | 'fr_profile' | 'profile';
|
|
29
29
|
export interface Identifier {
|
|
30
30
|
value: string;
|
|
31
31
|
scheme?: string;
|
|
@@ -25,7 +25,7 @@ export interface InvoiceProblem {
|
|
|
25
25
|
/** The values `message` was built from. */
|
|
26
26
|
args: Record<string, string | number>;
|
|
27
27
|
}
|
|
28
|
-
export type InvoiceProblemCode = 'missing' | 'invalid' | 'not_a_number' | 'decimals' | 'negative' | 'code_list' | 'date' | 'date_order' | 'scheme_required' | 'vat_id_prefix' | 'iban' | 'sum' | 'breakdown_missing' | 'breakdown_duplicate' | 'rate_required' | 'rate_positive' | 'rate_zero' | 'rate_forbidden' | 'amount_zero' | 'exemption_reason_required' | 'exemption_reason_forbidden' | 'seller_tax_id_required' | 'buyer_tax_id_required' | 'vat_id_forbidden' | 'only_category' | 'delivery_required' | 'account_required' | 'means_code_required' | 'due_or_terms_required' | 'seller_identifier_required' | 'siren_mismatch' | 'fr_seller_siren' | 'fr_buyer_siren' | 'fr_operation' | 'fr_vat_on_debits' | 'profile';
|
|
28
|
+
export type InvoiceProblemCode = 'missing' | 'invalid' | 'not_a_number' | 'decimals' | 'negative' | 'code_list' | 'date' | 'date_order' | 'scheme_required' | 'vat_id_prefix' | 'iban' | 'sum' | 'breakdown_missing' | 'breakdown_duplicate' | 'rate_required' | 'rate_positive' | 'rate_zero' | 'rate_forbidden' | 'amount_zero' | 'exemption_reason_required' | 'exemption_reason_forbidden' | 'seller_tax_id_required' | 'buyer_tax_id_required' | 'vat_id_forbidden' | 'only_category' | 'delivery_required' | 'account_required' | 'means_code_required' | 'due_or_terms_required' | 'seller_identifier_required' | 'siren_mismatch' | 'fr_seller_siren' | 'fr_buyer_siren' | 'fr_operation' | 'fr_vat_on_debits' | 'fr_note' | 'fr_electronic_address' | 'fr_profile' | 'profile';
|
|
29
29
|
export interface Identifier {
|
|
30
30
|
value: string;
|
|
31
31
|
scheme?: string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which business terms of EN 16931 the `_invoice` block carries into the e-invoice, term by term
|
|
3
|
+
* (spec 17 §4.3): the fields of the block each one is written from, or none where the block does
|
|
4
|
+
* not carry it. The documentation's coverage page is generated from this list
|
|
5
|
+
* (`apps/docs/scripts/gen-einvoice.ts`), and `coverage.spec.ts` holds it to the schema both ways, so
|
|
6
|
+
* a field added to the block without its term fails there, and to what the profile `basic` leaves out.
|
|
7
|
+
*
|
|
8
|
+
* The 164 terms and their names are those of the English edition of EN 16931-1 (2017): BT-1 to BT-165,
|
|
9
|
+
* the standard has no BT-4. The names were taken from KoSIT's XRechnung semantic model
|
|
10
|
+
* (`itplr-kosit/xrechnung-visualization`, `src/xsd/xrechnung-semantic-model.xsd`, Apache-2.0), read on
|
|
11
|
+
* 9 October 2026, without the terms XRechnung adds of its own.
|
|
12
|
+
*/
|
|
13
|
+
/** A business term of EN 16931 and what the `_invoice` block writes it from. */
|
|
14
|
+
export interface EinvoiceTerm {
|
|
15
|
+
/** `BT-1` to `BT-165`. */
|
|
16
|
+
term: string;
|
|
17
|
+
/** Its name in the English edition of the standard. */
|
|
18
|
+
name: string;
|
|
19
|
+
/** Where the block takes it from, dotted, `[]` for every item of a list; empty where it does not. */
|
|
20
|
+
fields: readonly string[];
|
|
21
|
+
/** Written from an e-invoice option rather than a field of the block. */
|
|
22
|
+
option?: 'profile';
|
|
23
|
+
/** Written in the profile `en16931` only: `basic` leaves it out. */
|
|
24
|
+
en16931Only?: true;
|
|
25
|
+
}
|
|
26
|
+
export declare const EN16931_TERMS: readonly EinvoiceTerm[];
|
|
27
|
+
/** Whether an e-invoice from the block can carry the term. */
|
|
28
|
+
export declare const carriesTerm: (term: EinvoiceTerm) => boolean;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which business terms of EN 16931 the `_invoice` block carries into the e-invoice, term by term
|
|
3
|
+
* (spec 17 §4.3): the fields of the block each one is written from, or none where the block does
|
|
4
|
+
* not carry it. The documentation's coverage page is generated from this list
|
|
5
|
+
* (`apps/docs/scripts/gen-einvoice.ts`), and `coverage.spec.ts` holds it to the schema both ways, so
|
|
6
|
+
* a field added to the block without its term fails there, and to what the profile `basic` leaves out.
|
|
7
|
+
*
|
|
8
|
+
* The 164 terms and their names are those of the English edition of EN 16931-1 (2017): BT-1 to BT-165,
|
|
9
|
+
* the standard has no BT-4. The names were taken from KoSIT's XRechnung semantic model
|
|
10
|
+
* (`itplr-kosit/xrechnung-visualization`, `src/xsd/xrechnung-semantic-model.xsd`, Apache-2.0), read on
|
|
11
|
+
* 9 October 2026, without the terms XRechnung adds of its own.
|
|
12
|
+
*/
|
|
13
|
+
/** A business term of EN 16931 and what the `_invoice` block writes it from. */
|
|
14
|
+
export interface EinvoiceTerm {
|
|
15
|
+
/** `BT-1` to `BT-165`. */
|
|
16
|
+
term: string;
|
|
17
|
+
/** Its name in the English edition of the standard. */
|
|
18
|
+
name: string;
|
|
19
|
+
/** Where the block takes it from, dotted, `[]` for every item of a list; empty where it does not. */
|
|
20
|
+
fields: readonly string[];
|
|
21
|
+
/** Written from an e-invoice option rather than a field of the block. */
|
|
22
|
+
option?: 'profile';
|
|
23
|
+
/** Written in the profile `en16931` only: `basic` leaves it out. */
|
|
24
|
+
en16931Only?: true;
|
|
25
|
+
}
|
|
26
|
+
export declare const EN16931_TERMS: readonly EinvoiceTerm[];
|
|
27
|
+
/** Whether an e-invoice from the block can carry the term. */
|
|
28
|
+
export declare const carriesTerm: (term: EinvoiceTerm) => boolean;
|
|
@@ -8,6 +8,7 @@ import { type Invoice, type InvoiceProblem } from './check.cjs';
|
|
|
8
8
|
import type { EinvoiceFlavour, EinvoiceProfile } from './schema.cjs';
|
|
9
9
|
export { checkInvoice, type CheckOptions, type Identifier, type Invoice, type InvoiceAddress, type InvoiceAllowance, type InvoiceBreakdown, type InvoiceCheck, type InvoiceLine, type InvoiceParty, type InvoiceProblem, type InvoiceProblemCode, type InvoiceTax, } from './check.cjs';
|
|
10
10
|
export { CII_GUIDELINES, EINVOICE_XML_NAME, invoiceToCii } from './cii.cjs';
|
|
11
|
+
export { EN16931_TERMS, carriesTerm, type EinvoiceTerm } from './coverage.cjs';
|
|
11
12
|
export { CODE_LIST_RELEASE } from './codes.generated.cjs';
|
|
12
13
|
export { DISPLAY_TERMS, displayCheck, displayMissingText, shownAmounts, type DisplayCheck, type DisplayValue, } from './display.cjs';
|
|
13
14
|
export { EINVOICE_FLAVOURS, EINVOICE_PROFILES, VAT_CATEGORIES, defaultEinvoiceOptions, einvoiceOptionsSchema, invoiceSchema, resolveEinvoiceOptions, type EinvoiceFlavour, type EinvoiceOptions, type EinvoiceOptionsInput, type EinvoiceProfile, type InvoiceInput, type ResolvedEinvoice, type VatCategory, } from './schema.cjs';
|
|
@@ -8,6 +8,7 @@ import { type Invoice, type InvoiceProblem } from './check.js';
|
|
|
8
8
|
import type { EinvoiceFlavour, EinvoiceProfile } from './schema.js';
|
|
9
9
|
export { checkInvoice, type CheckOptions, type Identifier, type Invoice, type InvoiceAddress, type InvoiceAllowance, type InvoiceBreakdown, type InvoiceCheck, type InvoiceLine, type InvoiceParty, type InvoiceProblem, type InvoiceProblemCode, type InvoiceTax, } from './check.js';
|
|
10
10
|
export { CII_GUIDELINES, EINVOICE_XML_NAME, invoiceToCii } from './cii.js';
|
|
11
|
+
export { EN16931_TERMS, carriesTerm, type EinvoiceTerm } from './coverage.js';
|
|
11
12
|
export { CODE_LIST_RELEASE } from './codes.generated.js';
|
|
12
13
|
export { DISPLAY_TERMS, displayCheck, displayMissingText, shownAmounts, type DisplayCheck, type DisplayValue, } from './display.js';
|
|
13
14
|
export { EINVOICE_FLAVOURS, EINVOICE_PROFILES, VAT_CATEGORIES, defaultEinvoiceOptions, einvoiceOptionsSchema, invoiceSchema, resolveEinvoiceOptions, type EinvoiceFlavour, type EinvoiceOptions, type EinvoiceOptionsInput, type EinvoiceProfile, type InvoiceInput, type ResolvedEinvoice, type VatCategory, } from './schema.js';
|
|
@@ -24,6 +24,20 @@ export interface EinvoiceValidation {
|
|
|
24
24
|
messages: EinvoiceMessage[];
|
|
25
25
|
/** More findings than the render keeps. */
|
|
26
26
|
truncated?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The validator's own id for this report, which its log names too. Absent in reports from before
|
|
29
|
+
* 2026-10-09, like the three fields below.
|
|
30
|
+
*/
|
|
31
|
+
id?: string;
|
|
32
|
+
/** The versions of the validator's parts that judged the file: `mustang`, `verapdf`, `pdfbox`. */
|
|
33
|
+
versions?: Record<string, string>;
|
|
34
|
+
/** SHA-256 of the XML that was judged, which is the XML inside the PDF. */
|
|
35
|
+
xml_sha256?: string;
|
|
36
|
+
/**
|
|
37
|
+
* SHA-256 of the PDF that was judged: the delivered file when the render succeeded. `null` when the
|
|
38
|
+
* validator ended before there was a converted file.
|
|
39
|
+
*/
|
|
40
|
+
pdf_sha256?: string | null;
|
|
27
41
|
}
|
|
28
42
|
export interface EinvoiceDisplay {
|
|
29
43
|
/** The business terms looked for in the text of the PDF (`BT-1`, `BT-112`). */
|
|
@@ -24,6 +24,20 @@ export interface EinvoiceValidation {
|
|
|
24
24
|
messages: EinvoiceMessage[];
|
|
25
25
|
/** More findings than the render keeps. */
|
|
26
26
|
truncated?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The validator's own id for this report, which its log names too. Absent in reports from before
|
|
29
|
+
* 2026-10-09, like the three fields below.
|
|
30
|
+
*/
|
|
31
|
+
id?: string;
|
|
32
|
+
/** The versions of the validator's parts that judged the file: `mustang`, `verapdf`, `pdfbox`. */
|
|
33
|
+
versions?: Record<string, string>;
|
|
34
|
+
/** SHA-256 of the XML that was judged, which is the XML inside the PDF. */
|
|
35
|
+
xml_sha256?: string;
|
|
36
|
+
/**
|
|
37
|
+
* SHA-256 of the PDF that was judged: the delivered file when the render succeeded. `null` when the
|
|
38
|
+
* validator ended before there was a converted file.
|
|
39
|
+
*/
|
|
40
|
+
pdf_sha256?: string | null;
|
|
27
41
|
}
|
|
28
42
|
export interface EinvoiceDisplay {
|
|
29
43
|
/** The business terms looked for in the text of the PDF (`BT-1`, `BT-112`). */
|