@dforge-core/metadata 0.0.12 → 0.0.13
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 +22 -0
- package/dist/index.d.ts +1221 -28
- package/dist/index.js +418 -32
- package/dist/index.js.map +1 -1
- package/package.json +6 -4
- package/schemas/data_views.schema.json +16 -3
- package/schemas/folders.schema.json +18 -2
- package/schemas/reports.schema.json +18 -2
- package/src/filter.ts +35 -3
- package/src/index.ts +9 -1
- package/dist/actions.d.ts +0 -31
- package/dist/actions.d.ts.map +0 -1
- package/dist/actions.js +0 -7
- package/dist/actions.js.map +0 -1
- package/dist/aggregation.d.ts +0 -13
- package/dist/aggregation.d.ts.map +0 -1
- package/dist/aggregation.js +0 -17
- package/dist/aggregation.js.map +0 -1
- package/dist/base-datatypes.d.ts +0 -5
- package/dist/base-datatypes.d.ts.map +0 -1
- package/dist/base-datatypes.js +0 -49
- package/dist/base-datatypes.js.map +0 -1
- package/dist/column-types.d.ts +0 -5
- package/dist/column-types.d.ts.map +0 -1
- package/dist/column-types.js +0 -18
- package/dist/column-types.js.map +0 -1
- package/dist/data-views.d.ts +0 -95
- package/dist/data-views.d.ts.map +0 -1
- package/dist/data-views.js +0 -18
- package/dist/data-views.js.map +0 -1
- package/dist/deps.d.ts +0 -55
- package/dist/deps.d.ts.map +0 -1
- package/dist/deps.js +0 -23
- package/dist/deps.js.map +0 -1
- package/dist/derive.d.ts +0 -19
- package/dist/derive.d.ts.map +0 -1
- package/dist/derive.js +0 -68
- package/dist/derive.js.map +0 -1
- package/dist/domains.d.ts +0 -32
- package/dist/domains.d.ts.map +0 -1
- package/dist/domains.js +0 -10
- package/dist/domains.js.map +0 -1
- package/dist/entity-meta.d.ts +0 -18
- package/dist/entity-meta.d.ts.map +0 -1
- package/dist/entity-meta.js +0 -45
- package/dist/entity-meta.js.map +0 -1
- package/dist/entity.d.ts +0 -116
- package/dist/entity.d.ts.map +0 -1
- package/dist/entity.js +0 -7
- package/dist/entity.js.map +0 -1
- package/dist/field-types.d.ts +0 -287
- package/dist/field-types.d.ts.map +0 -1
- package/dist/field-types.js +0 -58
- package/dist/field-types.js.map +0 -1
- package/dist/filter.d.ts +0 -26
- package/dist/filter.d.ts.map +0 -1
- package/dist/filter.js +0 -7
- package/dist/filter.js.map +0 -1
- package/dist/folders.d.ts +0 -32
- package/dist/folders.d.ts.map +0 -1
- package/dist/folders.js +0 -6
- package/dist/folders.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/jobs.d.ts +0 -32
- package/dist/jobs.d.ts.map +0 -1
- package/dist/jobs.js +0 -3
- package/dist/jobs.js.map +0 -1
- package/dist/manifest.d.ts +0 -53
- package/dist/manifest.d.ts.map +0 -1
- package/dist/manifest.js +0 -4
- package/dist/manifest.js.map +0 -1
- package/dist/menus.d.ts +0 -32
- package/dist/menus.d.ts.map +0 -1
- package/dist/menus.js +0 -3
- package/dist/menus.js.map +0 -1
- package/dist/print-templates.d.ts +0 -36
- package/dist/print-templates.d.ts.map +0 -1
- package/dist/print-templates.js +0 -4
- package/dist/print-templates.js.map +0 -1
- package/dist/reports.d.ts +0 -84
- package/dist/reports.d.ts.map +0 -1
- package/dist/reports.js +0 -24
- package/dist/reports.js.map +0 -1
- package/dist/roles.d.ts +0 -10
- package/dist/roles.d.ts.map +0 -1
- package/dist/roles.js +0 -3
- package/dist/roles.js.map +0 -1
- package/dist/seed-data.d.ts +0 -8
- package/dist/seed-data.d.ts.map +0 -1
- package/dist/seed-data.js +0 -4
- package/dist/seed-data.js.map +0 -1
- package/dist/settings.d.ts +0 -26
- package/dist/settings.d.ts.map +0 -1
- package/dist/settings.js +0 -3
- package/dist/settings.js.map +0 -1
- package/dist/traits.d.ts +0 -14
- package/dist/traits.d.ts.map +0 -1
- package/dist/traits.js +0 -121
- package/dist/traits.js.map +0 -1
- package/dist/triggers.d.ts +0 -28
- package/dist/triggers.d.ts.map +0 -1
- package/dist/triggers.js +0 -3
- package/dist/triggers.js.map +0 -1
- package/dist/types.d.ts +0 -128
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -7
- package/dist/types.js.map +0 -1
- package/dist/webhooks.d.ts +0 -31
- package/dist/webhooks.d.ts.map +0 -1
- package/dist/webhooks.js +0 -3
- package/dist/webhooks.js.map +0 -1
package/dist/field-types.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
// Field-type registry — mirror of
|
|
2
|
-
// server/database/system-modules/metadata/seed-data/field_types.json
|
|
3
|
-
//
|
|
4
|
-
// This is the authoring source of truth: an author picks a `fieldTypeCd` and the
|
|
5
|
-
// editor derives `baseDatatypeCd` + `dbDatatype` from the entry here. Kept in
|
|
6
|
-
// sync with the server seed by the parity test in test/registries.test.ts —
|
|
7
|
-
// if that test fails after a seed change, regenerate this list.
|
|
8
|
-
// `satisfies` (not `: readonly FieldTypeDef[]`) so the literal `cd` values are
|
|
9
|
-
// preserved in the type — that powers the compile-time coverage guard below.
|
|
10
|
-
export const fieldTypes = [
|
|
11
|
-
{ cd: "text", name: "Text", columnType: "D", baseDatatypeCd: "string", supportedAgg: null, maxLen: null, precision: null, useStringInFilter: true },
|
|
12
|
-
{ cd: "avatar", name: "Avatar Name", columnType: "D", baseDatatypeCd: "string", supportedAgg: null, maxLen: null, precision: null, useStringInFilter: true },
|
|
13
|
-
{ cd: "email", name: "Email", columnType: "D", baseDatatypeCd: "string", supportedAgg: null, maxLen: null, precision: null, useStringInFilter: true },
|
|
14
|
-
{ cd: "phone", name: "Phone", columnType: "D", baseDatatypeCd: "string", supportedAgg: null, maxLen: null, precision: null, useStringInFilter: true },
|
|
15
|
-
{ cd: "url", name: "URL", columnType: "D", baseDatatypeCd: "string", supportedAgg: null, maxLen: null, precision: null, useStringInFilter: true },
|
|
16
|
-
{ cd: "textarea", name: "Multiline Text", columnType: "D", baseDatatypeCd: "string", supportedAgg: null, maxLen: null, precision: null, useStringInFilter: true },
|
|
17
|
-
{ cd: "number", name: "Number", columnType: "D", baseDatatypeCd: "number", supportedAgg: "SCAM", maxLen: null, precision: null, useStringInFilter: false, defParams: { min: 0, max: 10000 } },
|
|
18
|
-
{ cd: "currency", name: "Currency", columnType: "D", baseDatatypeCd: "number", supportedAgg: "SCAM", maxLen: null, precision: 2, useStringInFilter: false, defParams: { min: 0, max: 1000000 } },
|
|
19
|
-
{ cd: "percent", name: "Percent", columnType: "D", baseDatatypeCd: "number", supportedAgg: "CAM", maxLen: null, precision: 2, useStringInFilter: false, defParams: { min: 0, max: 100 } },
|
|
20
|
-
{ cd: "checkbox", name: "Checkbox", columnType: "D", baseDatatypeCd: "bool", supportedAgg: "C", maxLen: null, precision: null, useStringInFilter: false },
|
|
21
|
-
{ cd: "date", name: "Date", columnType: "D", baseDatatypeCd: "date", supportedAgg: "CM", maxLen: null, precision: null, useStringInFilter: false },
|
|
22
|
-
{ cd: "datetime", name: "Date & Time", columnType: "D", baseDatatypeCd: "timestamp", supportedAgg: "CM", maxLen: null, precision: null, useStringInFilter: false },
|
|
23
|
-
{ cd: "time", name: "Time", columnType: "D", baseDatatypeCd: "time", supportedAgg: null, maxLen: null, precision: null, useStringInFilter: false },
|
|
24
|
-
{ cd: "dropdown", name: "Dropdown", columnType: "D", baseDatatypeCd: "string", supportedAgg: "C", maxLen: null, precision: null, useStringInFilter: true },
|
|
25
|
-
{ cd: "flags", name: "Flags", columnType: "D", baseDatatypeCd: "string", supportedAgg: "C", maxLen: null, precision: null, useStringInFilter: true, defParams: { style: "buttons" } },
|
|
26
|
-
{ cd: "json", name: "JSON Editor", columnType: "D", baseDatatypeCd: "json", supportedAgg: null, maxLen: null, precision: null, useStringInFilter: false },
|
|
27
|
-
{ cd: "hidden", name: "Hidden", columnType: "D", baseDatatypeCd: "string", supportedAgg: null, maxLen: null, precision: null, useStringInFilter: false },
|
|
28
|
-
{ cd: "color", name: "Color Picker", columnType: "D", baseDatatypeCd: "string", supportedAgg: null, maxLen: 20, precision: null, useStringInFilter: false },
|
|
29
|
-
{ cd: "image", name: "Image", columnType: "D", baseDatatypeCd: "binary", supportedAgg: null, maxLen: null, precision: null, useStringInFilter: false },
|
|
30
|
-
{ cd: "file", name: "File", columnType: "D", baseDatatypeCd: "binary", supportedAgg: null, maxLen: null, precision: null, useStringInFilter: false },
|
|
31
|
-
{ cd: "markdown", name: "Markdown", columnType: "D", baseDatatypeCd: "string", supportedAgg: null, maxLen: null, precision: null, useStringInFilter: true },
|
|
32
|
-
{ cd: "richtext", name: "Rich Text Editor", columnType: "D", baseDatatypeCd: "string", supportedAgg: null, maxLen: null, precision: null, useStringInFilter: true },
|
|
33
|
-
{ cd: "lookup", name: "Lookup", columnType: "R", baseDatatypeCd: "guid", supportedAgg: "C", maxLen: null, precision: null, useStringInFilter: true },
|
|
34
|
-
{ cd: "user", name: "User Picker", columnType: "D", baseDatatypeCd: "cuid", supportedAgg: "C", maxLen: null, precision: null, useStringInFilter: false },
|
|
35
|
-
{ cd: "grid", name: "Detail Grid", columnType: "S", baseDatatypeCd: "set", supportedAgg: "C", maxLen: null, precision: null, useStringInFilter: false },
|
|
36
|
-
{ cd: "list", name: "Detail List", columnType: "S", baseDatatypeCd: "set", supportedAgg: "C", maxLen: null, precision: null, useStringInFilter: false },
|
|
37
|
-
{ cd: "tags", name: "Tags", columnType: "D", baseDatatypeCd: "string", supportedAgg: "C", maxLen: null, precision: null, useStringInFilter: true },
|
|
38
|
-
{ cd: "entitylink", name: "Entity Link", columnType: "D", baseDatatypeCd: "json", supportedAgg: "C", maxLen: null, precision: null, useStringInFilter: false },
|
|
39
|
-
{ cd: "code", name: "Code Editor", columnType: "D", baseDatatypeCd: "string", supportedAgg: "C", maxLen: null, precision: null, useStringInFilter: false },
|
|
40
|
-
];
|
|
41
|
-
const _coverageOk = [undefined, undefined];
|
|
42
|
-
void _coverageOk;
|
|
43
|
-
const byCd = new Map(fieldTypes.map((ft) => [ft.cd, ft]));
|
|
44
|
-
/** Set of all known field type codes, for membership checks. */
|
|
45
|
-
export const fieldTypeCds = new Set(fieldTypes.map((ft) => ft.cd));
|
|
46
|
-
/** Type guard: is `cd` one of the known field type codes? */
|
|
47
|
-
export function isFieldTypeCd(cd) {
|
|
48
|
-
return cd != null && fieldTypeCds.has(cd);
|
|
49
|
-
}
|
|
50
|
-
/** Look up a field type by code, or `undefined` if unknown. */
|
|
51
|
-
export function getFieldType(cd) {
|
|
52
|
-
return byCd.get(cd);
|
|
53
|
-
}
|
|
54
|
-
/** Field types whose default column kind is `columnType` (e.g. "D" value types). */
|
|
55
|
-
export function fieldTypesByColumnType(columnType) {
|
|
56
|
-
return fieldTypes.filter((ft) => ft.columnType === columnType);
|
|
57
|
-
}
|
|
58
|
-
//# sourceMappingURL=field-types.js.map
|
package/dist/field-types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"field-types.js","sourceRoot":"","sources":["../src/field-types.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,uEAAuE;AACvE,EAAE;AACF,iFAAiF;AACjF,8EAA8E;AAC9E,4EAA4E;AAC5E,gEAAgE;AAIhE,+EAA+E;AAC/E,6EAA6E;AAC7E,MAAM,CAAC,MAAM,UAAU,GAAG;IACzB,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,cAAc,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE;IACnJ,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,EAAE,cAAc,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE;IAC5J,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE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AU,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAExF,6DAA6D;AAC7D,MAAM,UAAU,aAAa,CAAC,EAAsB;IACnD,OAAO,EAAE,IAAI,IAAI,IAAI,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAC3C,CAAC;AAED,+DAA+D;AAC/D,MAAM,UAAU,YAAY,CAAC,EAAU;IACtC,OAAO,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AACrB,CAAC;AAED,oFAAoF;AACpF,MAAM,UAAU,sBAAsB,CAAC,UAAkB;IACxD,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,UAAU,KAAK,UAAU,CAAC,CAAC;AAChE,CAAC"}
|
package/dist/filter.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/** A single filter condition. */
|
|
2
|
-
export interface FilterCondition {
|
|
3
|
-
/** Column code (supports dot navigation: 'customer.name'). */
|
|
4
|
-
c: string;
|
|
5
|
-
/** Operator: eq, neq, =, !=, gt, gtEq, lt, ltEq, in, nIn, like, isNull, … */
|
|
6
|
-
o: string;
|
|
7
|
-
/** Comparison value: scalar, array (in/nIn) or a `@param_code` reference. */
|
|
8
|
-
v?: unknown;
|
|
9
|
-
}
|
|
10
|
-
/** A boolean group of nested conditions/sub-groups. */
|
|
11
|
-
export interface FilterGroup {
|
|
12
|
-
/** Group combinator. */
|
|
13
|
-
g: "and" | "or";
|
|
14
|
-
/** Group items: nested conditions or sub-groups. */
|
|
15
|
-
i: Filter[];
|
|
16
|
-
}
|
|
17
|
-
/** A filter is either a single condition or a group. */
|
|
18
|
-
export type Filter = FilterCondition | FilterGroup;
|
|
19
|
-
/** A sort clause `{ c, d }` as used by reports / per-source order. */
|
|
20
|
-
export interface SortClause {
|
|
21
|
-
/** Column code. */
|
|
22
|
-
c: string;
|
|
23
|
-
/** Sort direction (default: asc). */
|
|
24
|
-
d?: "asc" | "desc";
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=filter.d.ts.map
|
package/dist/filter.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../src/filter.ts"],"names":[],"mappings":"AAMA,iCAAiC;AACjC,MAAM,WAAW,eAAe;IAC/B,8DAA8D;IAC9D,CAAC,EAAE,MAAM,CAAC;IACV,6EAA6E;IAC7E,CAAC,EAAE,MAAM,CAAC;IACV,6EAA6E;IAC7E,CAAC,CAAC,EAAE,OAAO,CAAC;CACZ;AAED,uDAAuD;AACvD,MAAM,WAAW,WAAW;IAC3B,wBAAwB;IACxB,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAChB,oDAAoD;IACpD,CAAC,EAAE,MAAM,EAAE,CAAC;CACZ;AAED,wDAAwD;AACxD,MAAM,MAAM,MAAM,GAAG,eAAe,GAAG,WAAW,CAAC;AAEnD,sEAAsE;AACtE,MAAM,WAAW,UAAU;IAC1B,mBAAmB;IACnB,CAAC,EAAE,MAAM,CAAC;IACV,qCAAqC;IACrC,CAAC,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACnB"}
|
package/dist/filter.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
// Canonical dForge filter expression.
|
|
2
|
-
//
|
|
3
|
-
// One shape shared by data views, reports, folders (row-level security) and the
|
|
4
|
-
// API: either a single condition `{c, o, v}` or a group `{g, i: [...]}`. Mirror
|
|
5
|
-
// of the `filter` $def repeated across data_views / reports / folders schemas.
|
|
6
|
-
export {};
|
|
7
|
-
//# sourceMappingURL=filter.js.map
|
package/dist/filter.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../src/filter.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAChF,+EAA+E"}
|
package/dist/folders.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { Filter } from "./filter";
|
|
2
|
-
/** Per-entity binding within a folder. */
|
|
3
|
-
export interface FolderEntityBinding {
|
|
4
|
-
/** Data view code to use in this folder (commonly 'default'). */
|
|
5
|
-
viewName?: string;
|
|
6
|
-
/** Enable the quick-add (+) button for this entity here. */
|
|
7
|
-
quickAdd?: boolean;
|
|
8
|
-
/** Row-level filter: a SQL expression string or a canonical filter object. */
|
|
9
|
-
rowFilter?: string | Filter;
|
|
10
|
-
}
|
|
11
|
-
/** A folder node (the folders.json root, and each entry under `children`). */
|
|
12
|
-
export interface FolderDef {
|
|
13
|
-
label?: string;
|
|
14
|
-
description?: string;
|
|
15
|
-
/** Parent folder code (only used by sparse-tree imports; usually omitted). */
|
|
16
|
-
parentCode?: string | null;
|
|
17
|
-
/** URL-friendly folder path override. */
|
|
18
|
-
folderPath?: string;
|
|
19
|
-
/** Accent color (hex, e.g. '#2196F3'). */
|
|
20
|
-
color?: string;
|
|
21
|
-
/** Bootstrap icon class (e.g. 'bi-folder'). */
|
|
22
|
-
icon?: string;
|
|
23
|
-
/** Inherit security rights from the parent folder (default true). */
|
|
24
|
-
inheritSecurity?: boolean;
|
|
25
|
-
/** Entity code → folder-entity binding. */
|
|
26
|
-
entities?: Record<string, FolderEntityBinding>;
|
|
27
|
-
/** Nested folders keyed by sub-folder code (recursive). */
|
|
28
|
-
children?: Record<string, FolderDef>;
|
|
29
|
-
}
|
|
30
|
-
/** A `folders.json` file: the root folder itself. */
|
|
31
|
-
export type FoldersFile = FolderDef;
|
|
32
|
-
//# sourceMappingURL=folders.d.ts.map
|
package/dist/folders.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"folders.d.ts","sourceRoot":"","sources":["../src/folders.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,0CAA0C;AAC1C,MAAM,WAAW,mBAAmB;IACnC,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED,8EAA8E;AAC9E,MAAM,WAAW,SAAS;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,yCAAyC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IAC/C,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACrC;AAED,qDAAqD;AACrD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC"}
|
package/dist/folders.js
DELETED
package/dist/folders.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"folders.js","sourceRoot":"","sources":["../src/folders.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,EAAE;AACF,gFAAgF;AAChF,oCAAoC"}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAeA,YAAY,EACX,SAAS,EACT,cAAc,EACd,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,SAAS,EACT,WAAW,EACX,WA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AAG,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAM3E,CAAC"}
|
package/dist/jobs.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/** A single scheduled-job declaration. */
|
|
2
|
-
export interface JobDef {
|
|
3
|
-
/** Unique identifier within the module. */
|
|
4
|
-
code: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
/** Action code in this module the scheduler fires. */
|
|
7
|
-
action: string;
|
|
8
|
-
/** Five-field cron expression (minute granularity). */
|
|
9
|
-
schedule: string;
|
|
10
|
-
/** Static parameters passed to the action as `__params`. */
|
|
11
|
-
params?: Record<string, unknown>;
|
|
12
|
-
/** Hard timeout in seconds (1–3600; > 300 requires class 'long_running'). */
|
|
13
|
-
timeout: number;
|
|
14
|
-
/** Max parallel runs (1–5; default 1). */
|
|
15
|
-
concurrency?: number;
|
|
16
|
-
/** Idempotency key template, e.g. '{job_cd}:{run.month}'. */
|
|
17
|
-
idempotencyKey?: string;
|
|
18
|
-
/** Routing class ('long_running' required for any timeout > 300s). */
|
|
19
|
-
class?: "standard" | "long_running";
|
|
20
|
-
/** IANA tz name overriding the tenant default. */
|
|
21
|
-
timeZone?: string;
|
|
22
|
-
/** Master switch (default true). */
|
|
23
|
-
enabled?: boolean;
|
|
24
|
-
/** Soft pause; admin 'trigger now' still works (default false). */
|
|
25
|
-
paused?: boolean;
|
|
26
|
-
}
|
|
27
|
-
/** A `logic/jobs.json` file. */
|
|
28
|
-
export interface JobsFile {
|
|
29
|
-
/** At most 50 jobs per module. */
|
|
30
|
-
jobs: JobDef[];
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=jobs.d.ts.map
|
package/dist/jobs.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../src/jobs.ts"],"names":[],"mappings":"AAEA,0CAA0C;AAC1C,MAAM,WAAW,MAAM;IACtB,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sDAAsD;IACtD,MAAM,EAAE,MAAM,CAAC;IACf,uDAAuD;IACvD,QAAQ,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,6EAA6E;IAC7E,OAAO,EAAE,MAAM,CAAC;IAChB,0CAA0C;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6DAA6D;IAC7D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sEAAsE;IACtE,KAAK,CAAC,EAAE,UAAU,GAAG,cAAc,CAAC;IACpC,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oCAAoC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mEAAmE;IACnE,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,gCAAgC;AAChC,MAAM,WAAW,QAAQ;IACxB,kCAAkC;IAClC,IAAI,EAAE,MAAM,EAAE,CAAC;CACf"}
|
package/dist/jobs.js
DELETED
package/dist/jobs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../src/jobs.ts"],"names":[],"mappings":"AAAA,qFAAqF"}
|
package/dist/manifest.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/** Author block on a manifest. */
|
|
2
|
-
export interface ManifestAuthor {
|
|
3
|
-
name: string;
|
|
4
|
-
url?: string;
|
|
5
|
-
}
|
|
6
|
-
/** A dependency value: a semver range, or a partial-dep object. */
|
|
7
|
-
export type ModuleDependency = string | {
|
|
8
|
-
version: string;
|
|
9
|
-
entities?: string[];
|
|
10
|
-
};
|
|
11
|
-
/** A module package manifest (`manifest.json`). */
|
|
12
|
-
export interface ManifestDef {
|
|
13
|
-
/** Package format version (currently 1). */
|
|
14
|
-
packageFormat: number;
|
|
15
|
-
/** Globally unique module UUID. */
|
|
16
|
-
moduleId: string;
|
|
17
|
-
/** Human-readable module code (becomes the schema name and `module_cd`). */
|
|
18
|
-
code: string;
|
|
19
|
-
/** 'module' (default) or 'pack' (a dependency bundle owning no entities). */
|
|
20
|
-
kind?: "module" | "pack";
|
|
21
|
-
/** Module version (semver). */
|
|
22
|
-
version: string;
|
|
23
|
-
/** Database schema version (semver). */
|
|
24
|
-
dbSchemaVersion: string;
|
|
25
|
-
displayName: string;
|
|
26
|
-
description?: string;
|
|
27
|
-
/** Schema name override (defaults to `code`; system modules use 'dForge'). */
|
|
28
|
-
schemaName?: string;
|
|
29
|
-
/** System module flag (cannot be uninstalled, admin-only). Omit for regular modules. */
|
|
30
|
-
system?: boolean;
|
|
31
|
-
author?: ManifestAuthor;
|
|
32
|
-
/** License identifier (e.g. 'proprietary', 'MIT'). */
|
|
33
|
-
license?: string;
|
|
34
|
-
/** Module code → semver range or partial-dep object. */
|
|
35
|
-
dependencies?: Record<string, ModuleDependency>;
|
|
36
|
-
/** Default audit history mode for this module's entities. */
|
|
37
|
-
auditHistory?: "none" | "minimal" | "full";
|
|
38
|
-
/** Entity code → relative path of its JSON file (dotted keys = extensions). */
|
|
39
|
-
entities?: Record<string, string>;
|
|
40
|
-
/** Module category for display (e.g. 'Integration', 'Finance'). */
|
|
41
|
-
category?: string;
|
|
42
|
-
/** Free-form tags for search/discovery. */
|
|
43
|
-
tags?: string[];
|
|
44
|
-
/** Bootstrap icon class (e.g. 'bi-link-45deg'). */
|
|
45
|
-
icon?: string;
|
|
46
|
-
/** Non-English locales the package promises to translate. */
|
|
47
|
-
supportedLocales?: string[];
|
|
48
|
-
/** Initial creation date (YYYY-MM-DD). Informational. */
|
|
49
|
-
created?: string;
|
|
50
|
-
/** Last manifest edit date (YYYY-MM-DD). Informational. */
|
|
51
|
-
updated?: string;
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=manifest.d.ts.map
|
package/dist/manifest.d.ts.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AM,CAAC;IAClB,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,yDAAyD;IACzD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
package/dist/manifest.js
DELETED
package/dist/manifest.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,kCAAkC"}
|
package/dist/menus.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/** Menu item type: V=Data View, D=Document, R=Report, null=folder/section. */
|
|
2
|
-
export type MenuItemType = "V" | "D" | "R" | null;
|
|
3
|
-
/** A menu item; folder/section nodes nest children and omit `itemType`. */
|
|
4
|
-
export interface MenuItemDef {
|
|
5
|
-
itemType?: MenuItemType;
|
|
6
|
-
/** Data view code (when `itemType` is 'V'). */
|
|
7
|
-
dataViewCode?: string;
|
|
8
|
-
/** Document code (when `itemType` is 'D'). */
|
|
9
|
-
documentCode?: string;
|
|
10
|
-
/** Report code (when `itemType` is 'R'). */
|
|
11
|
-
reportCode?: string;
|
|
12
|
-
orderNum?: number;
|
|
13
|
-
/** Display text. */
|
|
14
|
-
label: string;
|
|
15
|
-
description?: string;
|
|
16
|
-
/** Bootstrap icon name. */
|
|
17
|
-
icon?: string;
|
|
18
|
-
/** Child items keyed by item code (folder/section nodes). */
|
|
19
|
-
children?: Record<string, MenuItemDef>;
|
|
20
|
-
}
|
|
21
|
-
/** A menu (value in the `ui/menus.json` map). */
|
|
22
|
-
export interface MenuDef {
|
|
23
|
-
label: string;
|
|
24
|
-
description?: string;
|
|
25
|
-
/** Folder codes where this menu is available. */
|
|
26
|
-
folders?: string[];
|
|
27
|
-
/** Menu items keyed by item code. */
|
|
28
|
-
items: Record<string, MenuItemDef>;
|
|
29
|
-
}
|
|
30
|
-
/** A `ui/menus.json` file: menu code → definition. */
|
|
31
|
-
export type MenusFile = Record<string, MenuDef>;
|
|
32
|
-
//# sourceMappingURL=menus.d.ts.map
|
package/dist/menus.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menus.d.ts","sourceRoot":"","sources":["../src/menus.ts"],"names":[],"mappings":"AAEA,8EAA8E;AAC9E,MAAM,MAAM,YAAY,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;AAElD,2EAA2E;AAC3E,MAAM,WAAW,WAAW;IAC3B,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,+CAA+C;IAC/C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8CAA8C;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2BAA2B;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;CACvC;AAED,iDAAiD;AACjD,MAAM,WAAW,OAAO;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;CACnC;AAED,sDAAsD;AACtD,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC"}
|
package/dist/menus.js
DELETED
package/dist/menus.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menus.js","sourceRoot":"","sources":["../src/menus.ts"],"names":[],"mappings":"AAAA,2EAA2E"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/** Page margins (CSS lengths, e.g. '15mm'). */
|
|
2
|
-
export interface PrintMargins {
|
|
3
|
-
top?: string;
|
|
4
|
-
right?: string;
|
|
5
|
-
bottom?: string;
|
|
6
|
-
left?: string;
|
|
7
|
-
}
|
|
8
|
-
/** Default page geometry applied when printing from the UI. */
|
|
9
|
-
export interface PrintPageSettings {
|
|
10
|
-
size?: "A4" | "letter" | "legal";
|
|
11
|
-
orientation?: "portrait" | "landscape";
|
|
12
|
-
margins?: PrintMargins;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* A print template or snippet (value in the print_templates map).
|
|
16
|
-
* `type: 'template'` (default) is entity-bound; `type: 'snippet'` is a
|
|
17
|
-
* module-scoped Liquid partial included via {% include 'module.snippet' %}.
|
|
18
|
-
* Either `file` or `template` must be set (`file` wins when both are present).
|
|
19
|
-
*/
|
|
20
|
-
export interface PrintTemplateDef {
|
|
21
|
-
type?: "template" | "snippet";
|
|
22
|
-
/** Entity code rendered. Required for templates; ignored for snippets. */
|
|
23
|
-
entityCd?: string;
|
|
24
|
-
/** Human-readable label shown in the print menu. */
|
|
25
|
-
description?: string;
|
|
26
|
-
/** Inline Liquid HTML. */
|
|
27
|
-
template?: string;
|
|
28
|
-
/** Relative path under the module's `print_templates/` directory. */
|
|
29
|
-
file?: string;
|
|
30
|
-
/** Inline CSS, or a `.css` filename resolved relative to `print_templates/`. */
|
|
31
|
-
css?: string;
|
|
32
|
-
pageSettings?: PrintPageSettings;
|
|
33
|
-
}
|
|
34
|
-
/** A `ui/print_templates.json` file: template_cd → definition. */
|
|
35
|
-
export type PrintTemplatesFile = Record<string, PrintTemplateDef>;
|
|
36
|
-
//# sourceMappingURL=print-templates.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"print-templates.d.ts","sourceRoot":"","sources":["../src/print-templates.ts"],"names":[],"mappings":"AAGA,+CAA+C;AAC/C,MAAM,WAAW,YAAY;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;AAED,+DAA+D;AAC/D,MAAM,WAAW,iBAAiB;IACjC,IAAI,CAAC,EAAE,IAAI,GAAG,QAAQ,GAAG,OAAO,CAAC;IACjC,WAAW,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC;IACvC,OAAO,CAAC,EAAE,YAAY,CAAC;CACvB;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAChC,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC9B,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oDAAoD;IACpD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gFAAgF;IAChF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,iBAAiB,CAAC;CACjC;AAED,kEAAkE;AAClE,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC"}
|
package/dist/print-templates.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"print-templates.js","sourceRoot":"","sources":["../src/print-templates.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,yCAAyC"}
|
package/dist/reports.d.ts
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import type { Filter, SortClause } from "./filter";
|
|
2
|
-
import type { NamedKind } from "./types";
|
|
3
|
-
/** Report visualization types. Source: reports.schema.json (`vizType`). */
|
|
4
|
-
export type VizType = "table" | "chart" | "metric" | "pivot";
|
|
5
|
-
/** Friendly picker list of report visualization types. */
|
|
6
|
-
export declare const vizTypes: readonly NamedKind[];
|
|
7
|
-
/** Chart kinds used by report `config.chartType` (curated; rendered via Chart.js). */
|
|
8
|
-
export declare const chartTypes: readonly NamedKind[];
|
|
9
|
-
/** A report parameter definition (report- or dataset-level). */
|
|
10
|
-
export interface ParamDef {
|
|
11
|
-
/** Field type code (see settings for the common list). */
|
|
12
|
-
fieldTypeCd: string;
|
|
13
|
-
label?: string;
|
|
14
|
-
/** Display order in the parameter form (falls back to declaration order). */
|
|
15
|
-
orderNum?: number;
|
|
16
|
-
/** Whether the user must provide a value. */
|
|
17
|
-
required?: boolean;
|
|
18
|
-
/** Alternate spelling of `required` used by some modules. Prefer `required`. */
|
|
19
|
-
isRequired?: boolean;
|
|
20
|
-
/** Default value applied when the user doesn't provide one. */
|
|
21
|
-
default?: unknown;
|
|
22
|
-
/** Entity link for lookup-type params. */
|
|
23
|
-
link?: {
|
|
24
|
-
entity: string;
|
|
25
|
-
otherKey?: string;
|
|
26
|
-
};
|
|
27
|
-
/** Field-type-specific params. */
|
|
28
|
-
params?: Record<string, unknown>;
|
|
29
|
-
}
|
|
30
|
-
/** SQL/entity query for a `datasetType: 'Q'` dataset. */
|
|
31
|
-
export interface ReportQuery {
|
|
32
|
-
/** Source entity code. */
|
|
33
|
-
entityCd: string;
|
|
34
|
-
/** Column codes to select (supports dot navigation: 'customer.name'). */
|
|
35
|
-
columns?: string[];
|
|
36
|
-
filter?: Filter;
|
|
37
|
-
sort?: SortClause[];
|
|
38
|
-
}
|
|
39
|
-
/** Per-column metadata override on a dataset. */
|
|
40
|
-
export interface ColumnDef {
|
|
41
|
-
label?: string;
|
|
42
|
-
visible?: boolean;
|
|
43
|
-
width?: number;
|
|
44
|
-
}
|
|
45
|
-
/** A report dataset (value in the report's `datasets` map). */
|
|
46
|
-
export interface Dataset {
|
|
47
|
-
/** Display label (used in panel headings if no `title`). */
|
|
48
|
-
caption?: string;
|
|
49
|
-
/** Q = SQL/entity query, S = stored procedure. */
|
|
50
|
-
datasetType: "Q" | "S";
|
|
51
|
-
/** Used when `datasetType` is 'Q'. */
|
|
52
|
-
query?: ReportQuery;
|
|
53
|
-
/** Used when `datasetType` is 'S'. */
|
|
54
|
-
procedureName?: string;
|
|
55
|
-
/** Optional column metadata overrides: field code → override. */
|
|
56
|
-
columnsDef?: Record<string, ColumnDef>;
|
|
57
|
-
/** Dataset-level parameters (alternative to report-level `parameters`). */
|
|
58
|
-
params?: Record<string, ParamDef>;
|
|
59
|
-
}
|
|
60
|
-
/** A single visualization panel within the report layout. */
|
|
61
|
-
export interface ReportPanel {
|
|
62
|
-
vizType: VizType;
|
|
63
|
-
/** Dataset code (key in the report's `datasets` map). */
|
|
64
|
-
datasetCd: string;
|
|
65
|
-
title?: string;
|
|
66
|
-
/** Viz-type-specific config (chart → { chartType, categoryCol, … }). */
|
|
67
|
-
config?: Record<string, unknown>;
|
|
68
|
-
}
|
|
69
|
-
export interface ReportLayout {
|
|
70
|
-
panels: ReportPanel[];
|
|
71
|
-
}
|
|
72
|
-
/** A single report (value in the `ui/reports.json` map). */
|
|
73
|
-
export interface ReportDef {
|
|
74
|
-
/** Human-readable report title. */
|
|
75
|
-
description: string;
|
|
76
|
-
layout: ReportLayout;
|
|
77
|
-
/** Dataset code → dataset definition. */
|
|
78
|
-
datasets: Record<string, Dataset>;
|
|
79
|
-
/** Report-level parameters (alternative to per-dataset `params`). */
|
|
80
|
-
parameters?: Record<string, ParamDef>;
|
|
81
|
-
}
|
|
82
|
-
/** A `ui/reports.json` file: report code → definition. */
|
|
83
|
-
export type ReportsFile = Record<string, ReportDef>;
|
|
84
|
-
//# sourceMappingURL=reports.d.ts.map
|
package/dist/reports.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
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
|
|
1
|
-
// Report registries + the authoring shape of a `ui/reports.json` file.
|
|
2
|
-
//
|
|
3
|
-
// `vizTypes` / `chartTypes` are the friendly picker lists; `ReportDef` and
|
|
4
|
-
// friends mirror reports.schema.json so editors/MCP/CLI can build reports.
|
|
5
|
-
/** Friendly picker list of report visualization types. */
|
|
6
|
-
export const vizTypes = [
|
|
7
|
-
{ cd: "table", name: "Table" },
|
|
8
|
-
{ cd: "chart", name: "Chart" },
|
|
9
|
-
{ cd: "metric", name: "Metric" },
|
|
10
|
-
{ cd: "pivot", name: "Pivot" },
|
|
11
|
-
];
|
|
12
|
-
/** Chart kinds used by report `config.chartType` (curated; rendered via Chart.js). */
|
|
13
|
-
export const chartTypes = [
|
|
14
|
-
{ cd: "bar", name: "Bar" },
|
|
15
|
-
{ cd: "line", name: "Line" },
|
|
16
|
-
{ cd: "area", name: "Area" },
|
|
17
|
-
{ cd: "pie", name: "Pie" },
|
|
18
|
-
{ cd: "donut", name: "Donut" },
|
|
19
|
-
{ cd: "scatter", name: "Scatter" },
|
|
20
|
-
{ cd: "bubble", name: "Bubble" },
|
|
21
|
-
{ cd: "heatmap", name: "Heatmap" },
|
|
22
|
-
{ cd: "funnel", name: "Funnel" },
|
|
23
|
-
];
|
|
24
|
-
//# sourceMappingURL=reports.js.map
|
package/dist/reports.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reports.js","sourceRoot":"","sources":["../src/reports.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,EAAE;AACF,2EAA2E;AAC3E,2EAA2E;AAQ3E,0DAA0D;AAC1D,MAAM,CAAC,MAAM,QAAQ,GAAyB;IAC7C,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;IAC9B,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;IAC9B,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;IAChC,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;CACrB,CAAC;AAEX,sFAAsF;AACtF,MAAM,CAAC,MAAM,UAAU,GAAyB;IAC/C,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE;IAC1B,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE;IAC5B,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE;IAC5B,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE;IAC1B,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;IAC9B,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;IAClC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;IAChC,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;IAClC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;CACvB,CAAC"}
|
package/dist/roles.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/** A role with its entity rights (value in the roles map). */
|
|
2
|
-
export interface RoleDef {
|
|
3
|
-
/** Role display name. */
|
|
4
|
-
description: string;
|
|
5
|
-
/** Entity code → rights string. Rights: S/I/U/D/C/E (pattern ^[SIUDCE]*$). */
|
|
6
|
-
rights: Record<string, string>;
|
|
7
|
-
}
|
|
8
|
-
/** A `roles.json` file: role code → definition. */
|
|
9
|
-
export type RolesFile = Record<string, RoleDef>;
|
|
10
|
-
//# sourceMappingURL=roles.d.ts.map
|
package/dist/roles.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../src/roles.ts"],"names":[],"mappings":"AAEA,8DAA8D;AAC9D,MAAM,WAAW,OAAO;IACvB,yBAAyB;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,8EAA8E;IAC9E,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/B;AAED,mDAAmD;AACnD,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC"}
|
package/dist/roles.js
DELETED
package/dist/roles.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"roles.js","sourceRoot":"","sources":["../src/roles.ts"],"names":[],"mappings":"AAAA,iFAAiF"}
|
package/dist/seed-data.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** A seed-data file: records to insert into one entity. */
|
|
2
|
-
export interface SeedDataFile {
|
|
3
|
-
/** Target entity code. */
|
|
4
|
-
entityCode: string;
|
|
5
|
-
/** Records to insert; each is a `column_code → value` map. */
|
|
6
|
-
records: Record<string, unknown>[];
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=seed-data.d.ts.map
|
package/dist/seed-data.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"seed-data.d.ts","sourceRoot":"","sources":["../src/seed-data.ts"],"names":[],"mappings":"AAGA,2DAA2D;AAC3D,MAAM,WAAW,YAAY;IAC5B,0BAA0B;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,8DAA8D;IAC9D,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CACnC"}
|
package/dist/seed-data.js
DELETED
package/dist/seed-data.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"seed-data.js","sourceRoot":"","sources":["../src/seed-data.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,mCAAmC"}
|
package/dist/settings.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/** Underlying primitive datatype for a setting. */
|
|
2
|
-
export type SettingBaseDatatype = "string" | "number" | "bool" | "date" | "dateTime" | "time" | "json";
|
|
3
|
-
/** A single setting definition (value in the settings map). */
|
|
4
|
-
export interface SettingDef {
|
|
5
|
-
/** Field type code (must match a `dforge.field_type` code). */
|
|
6
|
-
fieldTypeCd: string;
|
|
7
|
-
/** Underlying primitive datatype (older settings declare this explicitly). */
|
|
8
|
-
baseDatatypeCd?: SettingBaseDatatype;
|
|
9
|
-
/** Display label (preferred for new settings). */
|
|
10
|
-
label?: string;
|
|
11
|
-
/** Display label (older style). Prefer `label`. */
|
|
12
|
-
description?: string;
|
|
13
|
-
/** Alternative older label key. Prefer `label`. */
|
|
14
|
-
desc?: string;
|
|
15
|
-
/** Default value before the user sets one. */
|
|
16
|
-
defaultValue?: unknown;
|
|
17
|
-
/** Formula to evaluate the default (alternative to `defaultValue`). */
|
|
18
|
-
formula?: string;
|
|
19
|
-
/** If true, must be set somewhere in the folder chain for install to proceed. */
|
|
20
|
-
required?: boolean;
|
|
21
|
-
/** Field-type-specific parameters (dropdown options, min/max, lookup link, …). */
|
|
22
|
-
params?: Record<string, unknown>;
|
|
23
|
-
}
|
|
24
|
-
/** A `settings.json` file: setting code → definition. */
|
|
25
|
-
export type SettingsFile = Record<string, SettingDef>;
|
|
26
|
-
//# sourceMappingURL=settings.d.ts.map
|
package/dist/settings.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":"AAEA,mDAAmD;AACnD,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvG,+DAA+D;AAC/D,MAAM,WAAW,UAAU;IAC1B,+DAA+D;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB,8EAA8E;IAC9E,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,uEAAuE;IACvE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iFAAiF;IACjF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kFAAkF;IAClF,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AAED,yDAAyD;AACzD,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC"}
|
package/dist/settings.js
DELETED
package/dist/settings.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":"AAAA,wFAAwF"}
|
package/dist/traits.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { FieldDef, TraitDef } from "./types";
|
|
2
|
-
export declare const traits: readonly TraitDef[];
|
|
3
|
-
/** Look up a trait by code. */
|
|
4
|
-
export declare function getTrait(cd: string): TraitDef | undefined;
|
|
5
|
-
/**
|
|
6
|
-
* Expand a trait (and any traits it includes) into the concrete fields it adds
|
|
7
|
-
* for `entityName`, with `{entity}` / `{Entity}` tokens resolved. Returns an
|
|
8
|
-
* empty object for unknown or marker traits. Field order follows include-depth
|
|
9
|
-
* first, then declaration order; later definitions win on key collisions.
|
|
10
|
-
*/
|
|
11
|
-
export declare function expandTrait(traitCd: string, entityName: string): Record<string, FieldDef>;
|
|
12
|
-
/** Expand several traits in order into one merged field map. */
|
|
13
|
-
export declare function expandTraits(traitCds: readonly string[], entityName: string): Record<string, FieldDef>;
|
|
14
|
-
//# sourceMappingURL=traits.d.ts.map
|