@formancy/report-runtime 0.1.0 → 0.2.0
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/NOTICE +8 -0
- package/README.md +192 -10
- package/dist/index.d.mts +138 -12
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1633 -74
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/NOTICE
CHANGED
|
@@ -7,3 +7,11 @@ This product is distributed under the Formancy Report Source-Available Licence
|
|
|
7
7
|
This product includes software developed by the formancy project
|
|
8
8
|
(https://github.com/sharkysan/formancy.ai), licensed under the Apache License,
|
|
9
9
|
Version 2.0. Those packages keep their licence; nothing here changes it.
|
|
10
|
+
|
|
11
|
+
@formancy/report-render-pdf includes the Liberation Sans fonts, version
|
|
12
|
+
2.1.5, Regular and Bold, in its fonts directory and, as base64, in its
|
|
13
|
+
browser build. Digitized data copyright (c) 2010 Google Corporation, with
|
|
14
|
+
Reserved Font Arimo, Tinos and Cousine. Copyright (c) 2012 Red Hat, Inc.,
|
|
15
|
+
with Reserved Font Name Liberation. They are licensed under the SIL Open
|
|
16
|
+
Font License, Version 1.1, whose text travels with them as
|
|
17
|
+
fonts/LICENSE-LiberationSans.txt; nothing here changes it.
|
package/README.md
CHANGED
|
@@ -43,8 +43,23 @@ if (resolution.ok) {
|
|
|
43
43
|
the column or the aggregate and the row;
|
|
44
44
|
- a value a format cannot show, a locale or time zone the engine lacks
|
|
45
45
|
(`format`);
|
|
46
|
-
- an image the host has no bytes for, or bytes past 20 MB
|
|
47
|
-
cannot be computed
|
|
46
|
+
- an image the host has no bytes for, or bytes past 20 MB -- an SVG's past
|
|
47
|
+
1 MiB, `MAX_SVG_BYTES` -- and a total that cannot be computed
|
|
48
|
+
(`resolve`);
|
|
49
|
+
- a QR-bill that breaks one of SIX's rules once its data has resolved it
|
|
50
|
+
(`resolve`, `invalid-qr-bill`): an account, a reference, an address part,
|
|
51
|
+
a message or an amount, named by the field and the rule, never by the
|
|
52
|
+
value;
|
|
53
|
+
- an EPC QR code that breaks one of the EPC's rules once its data has
|
|
54
|
+
resolved it (`resolve`, `invalid-epc-qr-code`): an IBAN, a BIC or none
|
|
55
|
+
where the account needs one, a name, a reference, a text, an amount, or a
|
|
56
|
+
payload past 331 bytes, named by the code, the field and the rule, never
|
|
57
|
+
by the value;
|
|
58
|
+
- an e-invoice that breaks one of EN 16931's rules once its data has
|
|
59
|
+
resolved it (`resolve`, `invalid-e-invoice`): a text, a date, a line's
|
|
60
|
+
term, a table of no rows in a final render, or a payment code that asks
|
|
61
|
+
for another amount or account than the e-invoice names, each named by
|
|
62
|
+
where it stands, its business term and its rule, never by the value.
|
|
48
63
|
|
|
49
64
|
It never returns part of a document.
|
|
50
65
|
|
|
@@ -60,15 +75,133 @@ them. Every value is held to its field's type before anything reads it:
|
|
|
60
75
|
| `date` | `YYYY-MM-DD`, a day on the calendar from 0001 to 9999 |
|
|
61
76
|
| `datetime` | `YYYY-MM-DDTHH:mm:ss`, with up to nine digits of a second, no zone |
|
|
62
77
|
| `instant` | an ISO 8601 date-time with its zone, held in UTC |
|
|
63
|
-
| `image` | `{ asset, digest }`, an approved asset, never an address |
|
|
78
|
+
| `image` | `{ asset, digest }`, an approved asset, never an address: a PNG, a JPEG or an SVG |
|
|
64
79
|
|
|
65
80
|
A field the report does not declare is refused: a report never carries what
|
|
66
81
|
it does not print. Null prints as nothing; a field the data lacks is an
|
|
67
|
-
error in a final render, never an empty cell. A
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
82
|
+
error in a final render, never an empty cell. A code is the exception: a
|
|
83
|
+
final render refuses a value that is null in a QR code's content or in a
|
|
84
|
+
QR-bill's or an EPC QR code's text (`no-qr-value`) -- but in an EPC QR
|
|
85
|
+
code's optional text that prints nothing else, which is that text left
|
|
86
|
+
out -- and a QR code whose content prints nothing
|
|
87
|
+
(`empty-qr-code`), since a scanner cannot see the gap a reader would. A
|
|
88
|
+
final render refuses data the provider calls incomplete. A **preview**
|
|
89
|
+
prints what it has, encodes a QR code as its content resolves, warns once
|
|
90
|
+
for each field it lacks, labels every page as a preview of incomplete
|
|
91
|
+
data, and says so in its manifest. A QR-bill is held to SIX's rules in a
|
|
92
|
+
preview too, and an EPC QR code to the EPC's: one that a missing value
|
|
93
|
+
leaves without a text its rules require is refused, and the error says the
|
|
94
|
+
preview lacked a value for it, since its code would scan as a payment no
|
|
95
|
+
bank makes. The host's objects are read
|
|
96
|
+
once, as data: a getter is never run, and a proxy that throws is refused.
|
|
97
|
+
|
|
98
|
+
## A QR-bill
|
|
99
|
+
|
|
100
|
+
A report's payment part resolves to the document's `paymentPart`
|
|
101
|
+
([0022](../../docs/decisions/0022-a-report-carries-one-swiss-qr-bill-at-the-foot-of-its-last-page.md)): the
|
|
102
|
+
Swiss QR Code's payload, in the order of SIX's Table 8, and every text its
|
|
103
|
+
slip prints -- the headings in its language, the account, the reference
|
|
104
|
+
and the amount grouped as SIX prints them, the addresses line by line. The
|
|
105
|
+
rules a text is held to are report-spec's, the same functions its
|
|
106
|
+
validator applies to a literal. An amount is a decimal, or null for the
|
|
107
|
+
payer to fill in, and is never rounded: one with a third decimal is
|
|
108
|
+
refused. The bill has no "do not use for payment" variant and no
|
|
109
|
+
alternative procedure, and its ultimate creditor is empty, as SIX keeps it
|
|
110
|
+
for later use.
|
|
111
|
+
|
|
112
|
+
## An EPC QR code
|
|
113
|
+
|
|
114
|
+
An `epcQrCode` component resolves to an `epcQrCode` block
|
|
115
|
+
([0025](../../docs/decisions/0025-a-report-prints-an-epc-qr-code-held-to-the-epc-rules-beside-the-qr-bill.md)): its id, its
|
|
116
|
+
square, Austria's caption when the template asks for it, and the payload
|
|
117
|
+
of EPC069-12 version 3.1, section 2.2 -- `BCD`, the version, character set
|
|
118
|
+
`1` for UTF-8, `SCT`, then the BIC, the name, the IBAN, the amount in euro,
|
|
119
|
+
the purpose, the reference, the text and the information, each on its own
|
|
120
|
+
line, every element up to the last the code holds a line, empty when it is
|
|
121
|
+
unused, and nothing after the last. A code with a BIC is version `001`, as
|
|
122
|
+
the EPC's first example is: version 3.1 of the guidelines keeps both
|
|
123
|
+
versions, and a code with a BIC is what `001` asks for. One without is
|
|
124
|
+
`002`, the version that lets the BIC be left empty. The EPC's first
|
|
125
|
+
example is written byte for byte; its second, which is in ISO 8859-1, is
|
|
126
|
+
written in UTF-8: character set `1` where the example has
|
|
127
|
+
`2`, and one byte longer for its ç. No other character set is written.
|
|
128
|
+
|
|
129
|
+
Every text is read as a paragraph with the same runs prints it, and held to
|
|
130
|
+
report-spec's rules, the same functions its validator applies to a
|
|
131
|
+
literal: the IBAN's spaces are dropped and its letters made capitals, and
|
|
132
|
+
it must be of a country of SEPA, of that country's length, its check
|
|
133
|
+
digits right, and no QR-IBAN; the BIC, when there is one, a BIC of the
|
|
134
|
+
account's country, and required for an account outside the EEA; the
|
|
135
|
+
reference a creditor reference (ISO 11649), checked as a QR-bill's is and
|
|
136
|
+
written in capitals. Which texts are optional, and what a refusal calls
|
|
137
|
+
each, is report-spec's `EPC_TEXT_FIELDS`. An optional text the data gives
|
|
138
|
+
empty, blank or null is an element the code leaves unused, in a final
|
|
139
|
+
render as in a preview: a nullable field's null is how data says "none".
|
|
140
|
+
A null among runs that print something is refused, as a text cut short. The amount is a decimal,
|
|
141
|
+
or null for the payer to fill in, written as short as it can be --
|
|
142
|
+
`EUR12.3`, `EUR45` -- from 0.01 to 999999999.99, and never rounded: one
|
|
143
|
+
with a third decimal is refused. The whole payload is at most 331 bytes in
|
|
144
|
+
UTF-8, counted in bytes, not in characters.
|
|
145
|
+
|
|
146
|
+
## An e-invoice
|
|
147
|
+
|
|
148
|
+
A report's `eInvoice` (report-spec's, [0027](../../docs/decisions/0027-a-report-carries-one-en-16931-invoice-written-from-the-values-its-page-prints.md)) resolves to the document's
|
|
149
|
+
`eInvoice`: the CII XML of a Factur-X 1.09.2 / ZUGFeRD 2.5.2 invoice in the
|
|
150
|
+
EN 16931 profile, and what the renderer embeds it as, `fileName`,
|
|
151
|
+
`relationship` and `conformanceLevel`, report-spec's `FACTUR_X` and
|
|
152
|
+
`FACTUR_X_PROFILES` [S].
|
|
153
|
+
|
|
154
|
+
- **The lines are the table's.** Each row of the table the e-invoice names
|
|
155
|
+
is a line. The four columns it names -- the item, the quantity, the net
|
|
156
|
+
price and the net amount -- are read once for every row, before the
|
|
157
|
+
totals, and the table prints the value kept, so the page and the XML read
|
|
158
|
+
one evaluation of each line, in the order the table prints them. The
|
|
159
|
+
line's identifier, unit and VAT category are read from each row. A net
|
|
160
|
+
amount is refused unless it is its quantity times its net price, rounded
|
|
161
|
+
once to the cent, as EN 16931 defines it and Mustang recomputes it; a
|
|
162
|
+
line identifier unless no earlier line has it; and a quantity or a net
|
|
163
|
+
price that its column's format prints at fewer places than it has.
|
|
164
|
+
- **The totals are computed once, here** (`e-invoice-totals.ts`), in
|
|
165
|
+
`Decimal`: the sum of the lines, each category's basis, its tax -- the
|
|
166
|
+
basis times the rate over 100, rounded once to two places, half away from
|
|
167
|
+
zero, per category and never per line -- the VAT, the total with it, and
|
|
168
|
+
the amount due: the total less what was paid. The page reads them as
|
|
169
|
+
`invoice`, `vatBasis` and `vatAmount`, the very values the XML is written
|
|
170
|
+
from; a category no line is in is null, and has no breakdown in the XML.
|
|
171
|
+
- **Every text is held to EN 16931's rules**, report-spec's functions, the
|
|
172
|
+
ones its validator applies to a literal, once the data has resolved it:
|
|
173
|
+
a code from its closed list, a VAT identifier's prefix, an IBAN and a
|
|
174
|
+
BIC, a day on the calendar, a net price not below zero, a net amount of
|
|
175
|
+
whole cents, never rounded, a category the invoice declares, a character
|
|
176
|
+
XML can hold, and no white space a token collapses in an identifier or a
|
|
177
|
+
code the XML writes as one. An optional text that prints nothing is left out; a needed one is
|
|
178
|
+
refused by the rule that needs it; one that prints something around a
|
|
179
|
+
null is refused as cut short. What only the whole says -- the seller's
|
|
180
|
+
and the buyer's identifiers, the time of supply, an exempt category's
|
|
181
|
+
reason -- is said of the categories the lines are in.
|
|
182
|
+
- **A payment code printed with it** -- the QR-bill, an EPC QR code -- asks
|
|
183
|
+
for the amount due, or leaves the amount to the payer, and to be paid to
|
|
184
|
+
the e-invoice's account, compared by value once both have resolved.
|
|
185
|
+
- **The XML** is written one way (`xml.ts`, `cii.ts`, `cii-parties.ts`):
|
|
186
|
+
its declaration, no byte order mark, a line feed after each line, two
|
|
187
|
+
spaces a level, each element in the profile XSD's order at the path
|
|
188
|
+
CEN's binding gives its term, amounts at two places from their own
|
|
189
|
+
digits, dates as format 102. Text is escaped, a carriage return as a
|
|
190
|
+
reference so that a parser gives it back; a character XML 1.0 cannot hold
|
|
191
|
+
is refused where it is read. The same report and data are the same
|
|
192
|
+
bytes.
|
|
193
|
+
- **A preview is not the invoice.** It prints the totals of what it has,
|
|
194
|
+
takes a term it has no value for as one it lacks and holds what the data
|
|
195
|
+
does give to the rules; it writes no XML, warns `e-invoice-preview`, and
|
|
196
|
+
labels every page, `E_INVOICE_PREVIEW_LABEL` where nothing else is
|
|
197
|
+
lacking and `PREVIEW_LABEL` where data is.
|
|
198
|
+
|
|
199
|
+
At `MAX_DETAIL_ROWS` the XML is large: 100,000 lines of short names wrote
|
|
200
|
+
117,280,919 bytes, 1,173 a line, and `resolveReport` took a median of 5.4
|
|
201
|
+
seconds, against 2.0 for the same report and rows without the e-invoice;
|
|
202
|
+
10,000 lines wrote 11,710,910 bytes in a median of 0.44 seconds, against
|
|
203
|
+
0.23 (five runs each, from the built package, Node 24.21.0, an Intel
|
|
204
|
+
i9-10900K, 17 October 2026). The e-invoice has no bound of its own yet.
|
|
72
205
|
|
|
73
206
|
## What else is exported
|
|
74
207
|
|
|
@@ -77,16 +210,65 @@ Each stage is exported for a host or a tool that needs one alone:
|
|
|
77
210
|
`prepareExpressions`, `createFormatter`, `orderTable` and the decimal
|
|
78
211
|
arithmetic. The document's types, `RenderRefusal` and `REFUSAL_CODES` are
|
|
79
212
|
the renderer's contract, declared here so that no engine defines them.
|
|
213
|
+
What report-spec decides of a QR-bill that an engine needs to draw its
|
|
214
|
+
slip is handed on as report-spec's own objects: `QR_BILL_SIZE` and
|
|
215
|
+
`QR_BILL_TOP`, the slip's size and place; `qrBillPageBreak` and its type
|
|
216
|
+
`QrBillPageBreak`, the page it is printed on; `QR_BILL_CURRENCIES`;
|
|
217
|
+
`checkQrBillAmount`, the amounts a bill pays; and
|
|
218
|
+
`MAX_QR_BILL_ADDITIONAL_INFORMATION`, the longest value SIX allows. So is
|
|
219
|
+
what report-spec decides of how an EPC QR code is printed:
|
|
220
|
+
`EPC_MAX_BYTES` and `EPC_MAX_VERSION`, the most bytes and the largest
|
|
221
|
+
version the EPC allows; `qrSymbolModules`
|
|
222
|
+
and `epcModule`, the modules a symbol has and the side of one in a square;
|
|
223
|
+
and `EPC_FRAME`, `EPC_CAPTION`, `EPC_CAPTION_MODULE`, `epcLeastVersion`
|
|
224
|
+
and `epcCaptionBreak`, Austria's frame and caption, the modules' widths
|
|
225
|
+
they are printed at and the least version that prints them. And of how an
|
|
226
|
+
e-invoice is embedded: `FACTUR_X`, the file's name and media type and the
|
|
227
|
+
XMP's namespace, prefix, document type and version, and
|
|
228
|
+
`FACTUR_X_PROFILES`, each profile's specification identifier,
|
|
229
|
+
conformance level and relationship [S]. And of an SVG asset
|
|
230
|
+
([0030](../../docs/decisions/0030-an-image-asset-may-be-an-svg-of-drawing-elements-alone-cleaned-once-and-refused-at-print-in-any-other-form.md)):
|
|
231
|
+
`checkSvg`, which accepts only the drawing `cleanSvg` writes and says what
|
|
232
|
+
it costs to draw and how far the numbers the converter writes for it reach
|
|
233
|
+
(`SvgExtent`); `cleanSvg` itself, for a host that approves assets beside
|
|
234
|
+
its render code; `SVG_REFUSAL_CODES`; `SVG_ELEMENTS`, the elements an
|
|
235
|
+
approved drawing is written with, which an engine's own guard is held to;
|
|
236
|
+
`MAX_SVG_BYTES`; `MAX_SVG_SEGMENTS` and `MAX_SVG_GROUPS`, what a page
|
|
237
|
+
may cost a reader to paint; and `MAX_SVG_COORDINATE` and `MAX_SVG_DEPTH`,
|
|
238
|
+
from which an engine derives how far its arithmetic may stray from that
|
|
239
|
+
extent. And of an image's bytes, where a builder reads them when a person
|
|
240
|
+
adds an image (0033): `MAX_ASSET_BYTES`, the most an asset may have, which
|
|
241
|
+
this package held before and report-spec holds now, exported under the same
|
|
242
|
+
name; `MAX_ASSET_SIDE`, the most pixels a side of a PNG or a JPEG;
|
|
243
|
+
`sniffImage`, what bytes are by their first bytes; and `imageHeader` with
|
|
244
|
+
`IMAGE_REFUSAL_CODES`, a PNG's or a JPEG's structure, read whole but for a
|
|
245
|
+
PNG's image data, which an engine inflates itself. An engine
|
|
246
|
+
depends on the runtime alone, and draws and refuses by the one decision the
|
|
247
|
+
editor refuses by.
|
|
80
248
|
|
|
81
249
|
## What it does not do
|
|
82
250
|
|
|
83
251
|
- **Fetch anything.** The data and the asset bytes are the host's to hand
|
|
84
252
|
over; the runtime reads no database and follows no address.
|
|
85
|
-
- **Check an image's digest.**
|
|
86
|
-
|
|
253
|
+
- **Check an image's digest.** The host's lookup is trusted to return the
|
|
254
|
+
bytes the digest pins. Not for want of a hash: a pure SHA-256,
|
|
255
|
+
`@noble/hashes`', reaches the runtime through `@formancy/spec`, and
|
|
256
|
+
report-spec's `assetDigest` names an added image by it; checking
|
|
257
|
+
digests changes what every host's resolver must satisfy, and is a
|
|
258
|
+
decision of its own
|
|
259
|
+
([0030](../../docs/decisions/0030-an-image-asset-may-be-an-svg-of-drawing-elements-alone-cleaned-once-and-refused-at-print-in-any-other-form.md)).
|
|
260
|
+
So what prints of an SVG is in the approved form, and that it is the
|
|
261
|
+
approved drawing is the host's to keep.
|
|
87
262
|
- **Format with one engine's results everywhere.** Grouping marks, month
|
|
88
263
|
names and currency symbols are the engine's ICU's, so the same report can
|
|
89
264
|
print differently on two engines.
|
|
265
|
+
- **Embed an e-invoice, or make a PDF/A.** It writes the XML and names the
|
|
266
|
+
file; the engine embeds it, changed in nothing, in the PDF/A-3b it draws
|
|
267
|
+
([0031](../../docs/decisions/0031-an-e-invoice-is-drawn-as-a-pdf-a-3b-that-embeds-its-xml.md)).
|
|
268
|
+
- **Encode a QR code.** It hands the engine the text a QR code's content
|
|
269
|
+
prints, formatted as a paragraph with the same content prints it, and a
|
|
270
|
+
QR-bill's and an EPC QR code's payloads; the engine encodes and draws
|
|
271
|
+
them, lays the slip out, and frames and captions the EPC QR code.
|
|
90
272
|
- **Compile once per render.** Each expression is compiled twice: once by
|
|
91
273
|
`diagnose`, once to evaluate.
|
|
92
274
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Alignment, AssetMediaType, Border, FieldType, FontFamily, Format, ImageFit, Margins, Orientation, PageSizeName, ReportDefinition, ReportDefinition as ReportDefinition$1, ReportErrorCode, Rounding, SortDirection, TableComponent, Width } from "@formancy/report-spec";
|
|
1
|
+
import { Alignment, AssetMediaType, Border, CheckedSvg, CleanSvg, EPC_CAPTION, EPC_CAPTION_MODULE, EPC_FRAME, EPC_MAX_BYTES, EPC_MAX_VERSION, EpcCaption, EpcCaption as EpcCaption$1, FACTUR_X, FACTUR_X_PROFILES, FacturXProfileTerms, FacturXProfileTerms as FacturXProfileTerms$1, FieldType, FontFamily, Format, IMAGE_REFUSAL_CODES, ImageFit, ImageRefusal, ImageRefusalCode, JpegHeader, MAX_ASSET_BYTES, MAX_ASSET_SIDE, MAX_QR_BILL_ADDITIONAL_INFORMATION, MAX_SVG_BYTES, MAX_SVG_COORDINATE, MAX_SVG_DEPTH, MAX_SVG_GROUPS, MAX_SVG_SEGMENTS, Margins, Orientation, PageSizeName, PngHeader, QR_BILL_CURRENCIES, QR_BILL_SIZE, QR_BILL_TOP, QrBillCurrency, QrBillPageBreak, QrErrorCorrection, RasterHeader, ReportDefinition, ReportDefinition as ReportDefinition$1, ReportErrorCode, Rounding, SVG_ELEMENTS, SVG_REFUSAL_CODES, SortDirection, SvgExtent, SvgRefusal, SvgRefusalCode, SvgRemoval, SvgRemovalKind, SvgViewBox, TableComponent, Width, checkQrBillAmount, checkSvg, cleanSvg, epcCaptionBreak, epcLeastVersion, epcModule, imageHeader, qrBillPageBreak, qrSymbolModules, sniffImage } from "@formancy/report-spec";
|
|
2
2
|
import { Capabilities, Decimal } from "@formancy/expressions";
|
|
3
3
|
import { Diagnostic, DiagnosticCode, ExpressionValues, ReportCompilation } from "@formancy/report-core";
|
|
4
4
|
//#region src/document.d.ts
|
|
@@ -87,17 +87,11 @@ interface Table {
|
|
|
87
87
|
/** Printed under the header, in place of detail rows, when there are none. Group and total rows still print. */
|
|
88
88
|
readonly emptyText: string;
|
|
89
89
|
}
|
|
90
|
-
/**
|
|
91
|
-
* The most bytes one image asset may have: 20 MB, the renderer trial's
|
|
92
|
-
* limit, the plan's "enforced limits" made a number to test. The runtime
|
|
93
|
-
* refuses an answer past it before copying it, and the renderer before
|
|
94
|
-
* decoding it, from this one constant.
|
|
95
|
-
*/
|
|
96
|
-
export declare const MAX_ASSET_BYTES: number;
|
|
97
90
|
/**
|
|
98
91
|
* An approved asset's bytes, already fetched by the host: an engine never
|
|
99
92
|
* resolves an address. Every image that draws the same asset shares one
|
|
100
|
-
* object, which an engine embeds once
|
|
93
|
+
* object, which an engine embeds once for a PNG or a JPEG, and draws again
|
|
94
|
+
* wherever an SVG prints (0030).
|
|
101
95
|
*/
|
|
102
96
|
interface ImageAsset {
|
|
103
97
|
readonly id: string;
|
|
@@ -121,6 +115,60 @@ interface Image {
|
|
|
121
115
|
readonly height: number;
|
|
122
116
|
readonly fit: ImageFit;
|
|
123
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* A QR code (ISO/IEC 18004): `text`, encoded as UTF-8 at the error
|
|
120
|
+
* correction level asked for, drawn dark on white in a square `size` points
|
|
121
|
+
* a side, whose quiet zone of four modules lies inside that square. `text`
|
|
122
|
+
* is what the component's content prints, formatted as a paragraph's runs
|
|
123
|
+
* are; it never holds a page number or count, which report-spec refuses in
|
|
124
|
+
* a QR code. In a final render it holds every value its content reads and
|
|
125
|
+
* is never empty: the runtime refuses a run whose value is null, and
|
|
126
|
+
* content that prints nothing, as `no-qr-value` and `empty-qr-code`. In a
|
|
127
|
+
* preview it is what the content resolves to, a value that is null as
|
|
128
|
+
* nothing, and it can be empty, which an engine draws as a symbol of no
|
|
129
|
+
* data. Which version of the symbol holds the text, and so how large a
|
|
130
|
+
* module is, is the engine's to work out: text no version holds at the
|
|
131
|
+
* level, or modules too small to print, are refused as `content-too-large`,
|
|
132
|
+
* naming the code by `id`, never drawn as a code that does not scan.
|
|
133
|
+
*/
|
|
134
|
+
interface QrCode {
|
|
135
|
+
readonly kind: 'qrCode';
|
|
136
|
+
/** The component's id, which a refusal names as its subject. */
|
|
137
|
+
readonly id: string;
|
|
138
|
+
readonly text: string;
|
|
139
|
+
/** Points: the side of the square, quiet zone included. */
|
|
140
|
+
readonly size: number;
|
|
141
|
+
readonly errorCorrection: QrErrorCorrection;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* An EPC QR code (EPC069-12 v3.1): the code a SEPA credit transfer is
|
|
145
|
+
* initiated from, drawn dark on white in a square `size` points a side.
|
|
146
|
+
* `payload` is its text, every element resolved and held to the EPC's
|
|
147
|
+
* rules (report-spec's `epc-payload.ts`): the engine encodes it as UTF-8
|
|
148
|
+
* at level M, in a symbol of version 13 at most (EPC069-12 2.1), and
|
|
149
|
+
* formats, checks and changes nothing of it. A payload no such symbol
|
|
150
|
+
* holds, or modules too small to print, are refused as
|
|
151
|
+
* `content-too-large`, naming the code by `id`, never drawn at another
|
|
152
|
+
* level or in a larger version, which a bank's app need not read.
|
|
153
|
+
*
|
|
154
|
+
* Without a caption the code is drawn as a QR code is, its quiet zone of
|
|
155
|
+
* four modules inside its square. With one, Austria's frame and the words
|
|
156
|
+
* "Zahlen mit Code" are drawn inside the square too (PSA v3.0 5), as
|
|
157
|
+
* report-spec's `epc-print.ts` lays them out and bounds the modules'
|
|
158
|
+
* width; the engine, which knows the version, refuses a code whose
|
|
159
|
+
* modules are outside those bounds.
|
|
160
|
+
*/
|
|
161
|
+
interface EpcQrCode {
|
|
162
|
+
readonly kind: 'epcQrCode';
|
|
163
|
+
/** The component's id, which a refusal names as its subject. */
|
|
164
|
+
readonly id: string;
|
|
165
|
+
/** The EPC's elements in EPC069-12 2.2's order, each on its own line, separated by a line feed and not ended by one: at most 331 bytes in UTF-8. */
|
|
166
|
+
readonly payload: string;
|
|
167
|
+
/** Points: the side of the square, the quiet zone, and the frame and caption when there are any, inside it. */
|
|
168
|
+
readonly size: number;
|
|
169
|
+
/** Austria's frame and caption; absent, the code is drawn alone. */
|
|
170
|
+
readonly caption?: EpcCaption$1;
|
|
171
|
+
}
|
|
124
172
|
/** A horizontal line across the width it is given: the printable area's, or its column's. */
|
|
125
173
|
interface Rule {
|
|
126
174
|
readonly kind: 'rule';
|
|
@@ -190,7 +238,7 @@ interface Section {
|
|
|
190
238
|
/** Points, on every side. */
|
|
191
239
|
readonly padding?: number;
|
|
192
240
|
}
|
|
193
|
-
type Block = Paragraph | Table | Image | Rule | Rectangle | Spacer | PageBreak | KeepTogether | Columns | Section;
|
|
241
|
+
type Block = Paragraph | Table | Image | QrCode | EpcQrCode | Rule | Rectangle | Spacer | PageBreak | KeepTogether | Columns | Section;
|
|
194
242
|
interface PageSetup {
|
|
195
243
|
readonly size: PageSizeName;
|
|
196
244
|
readonly orientation: Orientation;
|
|
@@ -201,6 +249,78 @@ interface PageSetup {
|
|
|
201
249
|
*/
|
|
202
250
|
readonly margins: Margins;
|
|
203
251
|
}
|
|
252
|
+
/**
|
|
253
|
+
* The headings a QR-bill's slip prints, in its language: SIX's own words
|
|
254
|
+
* (IG Annex C), which "must not be changed".
|
|
255
|
+
*/
|
|
256
|
+
interface QrBillHeadings {
|
|
257
|
+
readonly paymentPart: string;
|
|
258
|
+
readonly receipt: string;
|
|
259
|
+
/** "Account / Payable to". */
|
|
260
|
+
readonly account: string;
|
|
261
|
+
readonly reference: string;
|
|
262
|
+
readonly additionalInformation: string;
|
|
263
|
+
/** "Payable by", or, for a bill without a debtor, "Payable by (name/address)" over the blank field. */
|
|
264
|
+
readonly payableBy: string;
|
|
265
|
+
readonly currency: string;
|
|
266
|
+
readonly amount: string;
|
|
267
|
+
readonly acceptancePoint: string;
|
|
268
|
+
/** "Separate before paying in": the instruction above the line a PDF's slip is cut along. */
|
|
269
|
+
readonly separate: string;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* A Swiss QR-bill: its receipt and its payment part, 210 by 105 mm across
|
|
273
|
+
* the foot of an A4 page, the report's last (report-spec's `QR_BILL_SIZE`).
|
|
274
|
+
* Where it falls, and a page of its own when the body leaves no room for
|
|
275
|
+
* it, is the engine's to lay out.
|
|
276
|
+
*
|
|
277
|
+
* Everything in it is resolved and checked by SIX's rules (report-spec's
|
|
278
|
+
* `qr-bill.ts`): `payload` is the Swiss QR Code's text, which the engine
|
|
279
|
+
* encodes at level M, and every other text is what the slip prints, exactly
|
|
280
|
+
* as it prints, the values grouped as SIX groups them. An engine formats,
|
|
281
|
+
* groups, translates and checks nothing of it; it draws the headings, the
|
|
282
|
+
* values, the blank fields where a value is null, the code and the cross.
|
|
283
|
+
* The engine draws the receipt's texts from the same values, but for
|
|
284
|
+
* `additionalInformation`, which a receipt never prints (IG 3.6).
|
|
285
|
+
*/
|
|
286
|
+
interface QrBill {
|
|
287
|
+
readonly kind: 'swissQrBill';
|
|
288
|
+
/** The Swiss QR Code's elements in IG Table 8's order, each on its own line, separated by a line feed and not ended by one: at most 997 characters. */
|
|
289
|
+
readonly payload: string;
|
|
290
|
+
readonly headings: QrBillHeadings;
|
|
291
|
+
/** The IBAN in blocks of four: "CH44 3199 9123 0008 8901 2". */
|
|
292
|
+
readonly account: string;
|
|
293
|
+
/** The creditor's address, line by line: the name, the street and building number, the postal code and town. */
|
|
294
|
+
readonly creditor: readonly string[];
|
|
295
|
+
/** The QR reference or creditor reference in SIX's blocks, or null for a bill without one. */
|
|
296
|
+
readonly reference: string | null;
|
|
297
|
+
/** The message, then the billing information, each that is there, on a line of its own; empty prints no heading. */
|
|
298
|
+
readonly additionalInformation: readonly string[];
|
|
299
|
+
/** The debtor's address, line by line; null prints the blank field for the payer to write in. */
|
|
300
|
+
readonly debtor: readonly string[] | null;
|
|
301
|
+
readonly currency: QrBillCurrency;
|
|
302
|
+
/** The amount with a space between thousands and two decimals: "1 949.75"; null prints the blank field for the payer to write in. */
|
|
303
|
+
readonly amount: string | null;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* The e-invoice a PDF carries: its XML, which the runtime wrote from the
|
|
307
|
+
* very values the page prints (0027), and what the renderer embeds it as
|
|
308
|
+
* [S] -- the file's name, its `/AFRelationship` and the XMP's
|
|
309
|
+
* `fx:ConformanceLevel`. The values are report-spec's `FACTUR_X` and
|
|
310
|
+
* `FACTUR_X_PROFILES`, handed on so an engine reads the one decision; one
|
|
311
|
+
* an engine does not know it refuses as `unsupported`, never embedded
|
|
312
|
+
* under another name. Only a final render writes one: a preview is not the
|
|
313
|
+
* invoice. An engine encodes the XML as UTF-8 and changes nothing of it.
|
|
314
|
+
*/
|
|
315
|
+
interface EInvoiceFile {
|
|
316
|
+
/** The CII XML, with its declaration: the invoice itself. */
|
|
317
|
+
readonly xml: string;
|
|
318
|
+
/** The embedded file's name: `factur-x.xml`. */
|
|
319
|
+
readonly fileName: string;
|
|
320
|
+
readonly relationship: FacturXProfileTerms$1['relationship'];
|
|
321
|
+
/** `EN 16931`. */
|
|
322
|
+
readonly conformanceLevel: string;
|
|
323
|
+
}
|
|
204
324
|
interface ResolvedDocument {
|
|
205
325
|
readonly info: {
|
|
206
326
|
readonly title: string;
|
|
@@ -219,6 +339,10 @@ interface ResolvedDocument {
|
|
|
219
339
|
* summary that must stay on one page is a keep-together block.
|
|
220
340
|
*/
|
|
221
341
|
readonly body: readonly Block[];
|
|
342
|
+
/** The slip the report is paid by, at the foot of its last page; absent, it has none. Never a block: it stands at a place SIX fixes, outside the printable area. */
|
|
343
|
+
readonly paymentPart?: QrBill;
|
|
344
|
+
/** The e-invoice the PDF embeds, in a final render of a report that is one; absent, the PDF carries none. */
|
|
345
|
+
readonly eInvoice?: EInvoiceFile;
|
|
222
346
|
}
|
|
223
347
|
export declare const REFUSAL_CODES: readonly ["too-many-pages", "content-too-large", "invalid-asset", "cancelled", "unsupported"];
|
|
224
348
|
type RefusalCode = (typeof REFUSAL_CODES)[number];
|
|
@@ -621,7 +745,7 @@ export declare function prepareExpressions(report: ReportDefinition$1): Expressi
|
|
|
621
745
|
//#endregion
|
|
622
746
|
//#region src/resolve-errors.d.ts
|
|
623
747
|
/** What lowering a report can find wrong besides what each earlier stage finds. */
|
|
624
|
-
export declare const RESOLVE_ERROR_CODES: readonly ["invalid-creation-date", "missing-asset", "invalid-asset", "asset-lookup-failed", "rounding-not-decimal", "aggregate-value-type", "too-many-errors"];
|
|
748
|
+
export declare const RESOLVE_ERROR_CODES: readonly ["invalid-creation-date", "missing-asset", "invalid-asset", "asset-lookup-failed", "rounding-not-decimal", "aggregate-value-type", "no-qr-value", "empty-qr-code", "invalid-qr-bill", "invalid-epc-qr-code", "invalid-e-invoice", "e-invoice-preview", "too-many-errors"];
|
|
625
749
|
type ResolveErrorCode = (typeof RESOLVE_ERROR_CODES)[number];
|
|
626
750
|
/** Where in the report an error is, when it is in a component, a table column or a row. */
|
|
627
751
|
interface Place {
|
|
@@ -719,6 +843,8 @@ type Resolution = {
|
|
|
719
843
|
};
|
|
720
844
|
/** What every page of a preview that lacks data says, at the top of its page header. */
|
|
721
845
|
export declare const PREVIEW_LABEL = "Preview of incomplete data: not a final report";
|
|
846
|
+
/** What every page of a preview of an e-invoice says when it lacks nothing else: it writes no XML, and is not the invoice. */
|
|
847
|
+
export declare const E_INVOICE_PREVIEW_LABEL = "Preview: not an e-invoice, and not a final report";
|
|
722
848
|
/**
|
|
723
849
|
* `report` resolved against `data`: the document to render and its
|
|
724
850
|
* manifest, or every reason it is refused, up to a bound. Nothing is read
|
|
@@ -743,5 +869,5 @@ type ReportCheck = {
|
|
|
743
869
|
*/
|
|
744
870
|
export declare function checkReport(report: unknown): ReportCheck;
|
|
745
871
|
//#endregion
|
|
746
|
-
export type
|
|
872
|
+
export { type Block, type CheckedData, type CheckedParameters, type CheckedRecord, type CheckedSvg, type CheckedValue, type CleanSvg, type ColumnSlot, type Columns, type Completeness, type ConditionEvaluation, type Consistency, type CurrencyScope, type DataCheck, type DataCheckOptions, type DataError, type DataErrorCode, type DataMode, type EInvoiceFile, EPC_CAPTION, EPC_CAPTION_MODULE, EPC_FRAME, EPC_MAX_BYTES, EPC_MAX_VERSION, type EpcCaption, type EpcQrCode, type Evaluation, type EvaluationError, type EvaluationErrorCode, type ExpressionsPreparation, FACTUR_X, FACTUR_X_PROFILES, type FacturXProfileTerms, type FieldValues, type FormatContext, type FormatErrorCode, type Formatted, type Formatter, IMAGE_REFUSAL_CODES, type Image, type ImageAsset, type ImageBytes, type ImageRef, type ImageRefusal, type ImageRefusalCode, type ImageResolver, type ImageValue, type Inline, type JpegHeader, type KeepTogether, MAX_ASSET_BYTES, MAX_ASSET_SIDE, MAX_QR_BILL_ADDITIONAL_INFORMATION, MAX_SVG_BYTES, MAX_SVG_COORDINATE, MAX_SVG_DEPTH, MAX_SVG_GROUPS, MAX_SVG_SEGMENTS, type OrderKey, type OrderedRow, type OrderedTable, type PageBreak, type PageSetup, type Paragraph, type ParameterCheck, type PngHeader, type PrintableType, QR_BILL_CURRENCIES, QR_BILL_SIZE, QR_BILL_TOP, type QrBill, type QrBillHeadings, type QrBillPageBreak, type QrCode, type RasterHeader, type Rectangle, type RefusalCode, type RenderManifest, type ReportCheck, type ReportData, type ReportDefinition, type ReportExpressions, type Resolution, type ResolveErrorCode, type ResolveOptions, type ResolvedDocument, type RowGroup, type Rule, type RuntimeError, type RuntimeStage, SVG_ELEMENTS, SVG_REFUSAL_CODES, type Section, type Spacer, type SvgExtent, type SvgRefusal, type SvgRefusalCode, type SvgRemoval, type SvgRemovalKind, type SvgViewBox, type Table, type TableColumn, type TableRow, type TextStyle, type TypedValue, type ValueErrorCode, type ValueRead, checkQrBillAmount, checkSvg, cleanSvg, epcCaptionBreak, epcLeastVersion, epcModule, imageHeader, qrBillPageBreak, qrSymbolModules, sniffImage };
|
|
747
873
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":["ReportDefinition","ReportDefinition","ReportDefinition","ReportDefinition","ReportDefinition","ReportDefinition"],"sources":["../src/document.ts","../src/data-errors.ts","../src/values.ts","../src/data.ts","../src/parameters.ts","../src/decimal.ts","../src/format.ts","../src/sort-group.ts","../src/evaluate.ts","../src/resolve-errors.ts","../src/render-context.ts","../src/resolve.ts","../src/report-check.ts"],"mappings":";;;;;;;;;;KAqCY;WAAoB;WAAuB;;WAA8B;;WAAmC;;;;;;;;UAQvG;;WAEN,OAAO;;WAEP;WACA;WACA;;WAEA;WACA,QAAQ;;;UAIF;WACN;WACA,eAAe;WACf,QAAQ;;WAER;;UAGM;;WAEN,OAAO;;WAEP,OAAO;;;;;;;;;;;UAYD;WACN;;WAEA;;;;;WAKA;;WAEA,QAAQ;;;;;;;WAOR,uBAAuB;;UAGjB;WACN;WACA;WACA,kBAAkB;;WAElB;;WAEA,cAAc;WACd,eAAe;;WAEf;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":["EpcCaption","FacturXProfileTerms","ReportDefinition","ReportDefinition","ReportDefinition","ReportDefinition","ReportDefinition","ReportDefinition"],"sources":["../src/document.ts","../src/data-errors.ts","../src/values.ts","../src/data.ts","../src/parameters.ts","../src/decimal.ts","../src/format.ts","../src/sort-group.ts","../src/evaluate.ts","../src/resolve-errors.ts","../src/render-context.ts","../src/resolve.ts","../src/report-check.ts"],"mappings":";;;;;;;;;;KAqCY;WAAoB;WAAuB;;WAA8B;;WAAmC;;;;;;;;UAQvG;;WAE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