@dudousxd/nestjs-catalog 0.3.1 → 0.4.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/dist/catalog.types.d.ts +14 -1
- package/package.json +1 -1
package/dist/catalog.types.d.ts
CHANGED
|
@@ -23,7 +23,20 @@ export interface CatalogPropertyDef {
|
|
|
23
23
|
name: string;
|
|
24
24
|
/** Human label. Tier 0: editable at runtime, no migration. */
|
|
25
25
|
displayName: string;
|
|
26
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* What this field means in the business. Tier 0.
|
|
28
|
+
*
|
|
29
|
+
* **Markdown**, since the console started editing it as rich text. Plain text
|
|
30
|
+
* is still valid markdown, so anything written before — or declared by a
|
|
31
|
+
* decorator — is unchanged and renders as itself.
|
|
32
|
+
*
|
|
33
|
+
* Consumers that print it raw keep working: the worst they will see is
|
|
34
|
+
* `**bold**`, which reads. That is the whole reason it is not HTML — `<strong>`
|
|
35
|
+
* in a tooltip is noise, and a consumer that decided to render it as HTML
|
|
36
|
+
* would have an injection point. Render it with a markdown renderer if you
|
|
37
|
+
* want the formatting; `RichTextView` in `@dudousxd/nestjs-catalog-react` is
|
|
38
|
+
* the one this console uses.
|
|
39
|
+
*/
|
|
27
40
|
description?: string;
|
|
28
41
|
type: ScalarType;
|
|
29
42
|
/** The physical column. Derived from the ORM; shown so engineers can trace it. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dudousxd/nestjs-catalog",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "A metadata registry for NestJS: object types, properties and relations, derived from your ORM and enriched with decorators.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Davide Carvalho",
|