@dforge-core/metadata 0.0.54 → 0.0.56
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/CHANGELOG.md +20 -0
- package/dist/dsl/index.js +6 -0
- package/dist/dsl/index.js.map +1 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schemas/export_templates.schema.json +25 -0
- package/schemas/manifest.schema.json +6 -1
- package/src/dsl/builtins.ts +6 -0
- package/src/export-templates.ts +19 -0
- package/src/index.ts +1 -0
- package/src/manifest.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,26 @@ All notable changes to `@dforge-core/metadata` are documented here.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this package adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.0.56] — 2026-11-14
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **`export_templates.schema.json`:** `ui/export_templates.json`, the Excel export templates of a module (`entityCd`,
|
|
13
|
+
`description`, `file` under `export_templates/`). `ExportTemplateDef` and its map type are exported from the package root.
|
|
14
|
+
- **DSL built-in `exportXlsx(entity, templateCd, options?)`:** in the built-in list for completion, hover and the
|
|
15
|
+
function-name drift check. Fills an export template and hands the workbook over as the action's download.
|
|
16
|
+
|
|
17
|
+
## [0.0.55] — 2026-11-14
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- **`manifest.schema.json`:** `shortDescription` (at most 1000 characters), the marketplace card text. Optional; the card
|
|
22
|
+
shows it, else the start of `description` cut at a sentence. `ManifestDef` has the field.
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- **`manifest.schema.json`:** `description` says the marketplace module page shows it whole when the package has no README.
|
|
27
|
+
|
|
8
28
|
## [0.0.54] — 2026-11-12
|
|
9
29
|
|
|
10
30
|
### Changed
|
package/dist/dsl/index.js
CHANGED
|
@@ -915,6 +915,12 @@ var BUILTINS = [
|
|
|
915
915
|
returns: "string",
|
|
916
916
|
doc: "`downloadText()` for bytes: decodes `base64` and hands it to the user as `fileName` (`application/octet-stream` unless `mimeType` says otherwise). Returns the signed download URL."
|
|
917
917
|
},
|
|
918
|
+
{
|
|
919
|
+
name: "exportXlsx",
|
|
920
|
+
signature: "exportXlsx(entity, templateCd, options?)",
|
|
921
|
+
returns: "object",
|
|
922
|
+
doc: "Fill an Excel export template of `entity` with its rows and hand the user the workbook as the action's download. `options`: `filter` (`{c,o,v}` / `{g,i}` as in `select()`, `v` a scalar), `orderBy` (as in `select()`), `fileName` (default: the template's description). The rows are read as `data.export` reads them, under the current user's rights. Returns `{ url, fileName, recordCount }`. Counts as a download; not available in a scheduled or background run."
|
|
923
|
+
},
|
|
918
924
|
{
|
|
919
925
|
name: "attachText",
|
|
920
926
|
signature: "attachText(content, fileName, encoding?, mimeType?)",
|