@formancy/report-data-provider 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.
Files changed (3) hide show
  1. package/NOTICE +8 -0
  2. package/README.md +5 -2
  3. package/package.json +3 -3
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
@@ -28,12 +28,15 @@ const client = createDataClient({ token: () => session.token(), base: dataServer
28
28
  const binding: DataBinding = { header: { form: 'quotation', record: quotationToken }, detail: { form: 'quotation-line', parent: 'header' } }
29
29
  const provided: ProviderRead = await readReportData(client, quotation, binding, { cap: 5000 })
30
30
  if (!provided.ok) throw new Error(provided.errors.map((error) => `${error.code} at ${error.path}`).join('; '))
31
- const resolution = resolveReport(quotation, provided.data, { mode: 'final', creationDate: '2026-10-16T08:00:00Z' })
31
+ const resolution = resolveReport(quotation, provided.data, { mode: 'final', images, creationDate: '2026-10-16T08:00:00Z' })
32
32
  ```
33
33
 
34
34
  The install gate runs these lines from the packed packages, against a
35
35
  server that answers Data 0.1.0's routes, and they are held to it
36
- (`scripts/readme-example.test.mjs`).
36
+ (`scripts/readme-example.test.mjs`). Data hands over the data and nothing
37
+ else: `images` is the host's own lookup of its approved assets, as in
38
+ [the repository's README](../../README.md#render-a-report), here for the
39
+ quotation's mark, which the template names and no record holds.
37
40
 
38
41
  **The binding** says which published form each dataset reads:
39
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formancy/report-data-provider",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Formancy Report's Formancy Data provider: reads a published Data form's records, through @formancy/data-client 0.1.0 and the person's own token, into the data a report renders from, labelled best-effort. No framework, no Node.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "type": "module",
@@ -18,8 +18,8 @@
18
18
  ],
19
19
  "dependencies": {
20
20
  "@formancy/data-client": "0.1.0",
21
- "@formancy/report-runtime": "0.1.0",
22
- "@formancy/report-spec": "0.1.0"
21
+ "@formancy/report-runtime": "0.2.0",
22
+ "@formancy/report-spec": "0.2.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@arethetypeswrong/cli": "^0.18.5",