@luzmo/dashboard-contents-types 1.0.35 → 1.0.37
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/package.json +17 -1
- package/schemas.cjs +2 -0
- package/schemas.cjs.map +1 -0
- package/schemas.d.ts +2 -0
- package/schemas.d.ts.map +1 -0
- package/schemas.js +16 -0
- package/schemas.js.map +1 -0
- package/scripts/chart-schemas.d.ts +4 -0
- package/scripts/chart-schemas.d.ts.map +1 -0
- package/scripts/generate-zod-json-schemas.d.ts +2 -0
- package/scripts/generate-zod-json-schemas.d.ts.map +1 -0
- package/scripts/zod-to-json-schema.d.ts +6 -0
- package/scripts/zod-to-json-schema.d.ts.map +1 -0
- package/src/lib/shared/schemas/custom-chart-manifest.schema.cjs +2 -0
- package/src/lib/shared/schemas/custom-chart-manifest.schema.cjs.map +1 -0
- package/src/lib/shared/schemas/custom-chart-manifest.schema.d.ts +89 -0
- package/src/lib/shared/schemas/custom-chart-manifest.schema.d.ts.map +1 -0
- package/src/lib/shared/schemas/custom-chart-manifest.schema.js +9 -0
- package/src/lib/shared/schemas/custom-chart-manifest.schema.js.map +1 -0
- package/src/lib/shared/schemas/dashboard-state.schema.cjs +2 -0
- package/src/lib/shared/schemas/dashboard-state.schema.cjs.map +1 -0
- package/src/lib/shared/schemas/dashboard-state.schema.d.ts +55 -0
- package/src/lib/shared/schemas/dashboard-state.schema.d.ts.map +1 -0
- package/src/lib/shared/schemas/dashboard-state.schema.js +44 -0
- package/src/lib/shared/schemas/dashboard-state.schema.js.map +1 -0
- package/src/lib/shared/schemas/index.d.ts +5 -0
- package/src/lib/shared/schemas/index.d.ts.map +1 -0
- package/src/lib/shared/schemas/screen-mode.schema.cjs +2 -0
- package/src/lib/shared/schemas/screen-mode.schema.cjs.map +1 -0
- package/src/lib/shared/schemas/screen-mode.schema.d.ts +28 -0
- package/src/lib/shared/schemas/screen-mode.schema.d.ts.map +1 -0
- package/src/lib/shared/schemas/screen-mode.schema.js +13 -0
- package/src/lib/shared/schemas/screen-mode.schema.js.map +1 -0
- package/src/lib/shared/schemas/slot-config.schema.cjs +2 -0
- package/src/lib/shared/schemas/slot-config.schema.cjs.map +1 -0
- package/src/lib/shared/schemas/slot-config.schema.d.ts +178 -0
- package/src/lib/shared/schemas/slot-config.schema.d.ts.map +1 -0
- package/src/lib/shared/schemas/slot-config.schema.js +57 -0
- package/src/lib/shared/schemas/slot-config.schema.js.map +1 -0
- package/src/lib/shared/types/item-filter-group.d.ts +10 -3
- package/src/lib/shared/types/item-filter-group.d.ts.map +1 -1
- package/vite.config.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
All notable changes to this project will be documented in this file.
|
|
2
2
|
|
|
3
|
+
## [1.0.37] - 2026-08-11
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Added the camelCase `formulaId` alias to filter parameter references.
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Allowed the existing runtime `ignore: null` targeting sentinel in `ItemFilterProperties`.
|
|
12
|
+
|
|
13
|
+
## [1.0.36] - 2026-08-06
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- Released the array-specific filter expressions on `ItemQueryFilterExpression` (and its `FilterExpression` alias). The expressions were added to the source type together with the query engine support, but no published version carried them yet, so consumers such as Flex hit a type error when using them:
|
|
18
|
+
- `? includes ?`, `? excludes ?`, `? includes all ?`, `? includes any ?`, `? includes only ?`
|
|
19
|
+
- `? has value starting with ?`, `? has value ending with ?`, `? has value containing ?`, `? does not have value containing ?`
|
|
20
|
+
- `? length = ?`, `? length >= ?`, `? length <= ?`
|
|
21
|
+
- Type and unit tests covering the complete array-specific expression set, the value shape each expression expects, and the unchanged scalar and datetime expressions.
|
|
22
|
+
|
|
3
23
|
## [1.0.35] - 2026-07-31
|
|
4
24
|
|
|
5
25
|
### Added
|
package/package.json
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luzmo/dashboard-contents-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.37",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"tslib": "^2.3.0",
|
|
6
6
|
"colorjs.io": "^0.5.2"
|
|
7
7
|
},
|
|
8
|
+
"peerDependencies": {
|
|
9
|
+
"zod": "^4"
|
|
10
|
+
},
|
|
11
|
+
"peerDependenciesMeta": {
|
|
12
|
+
"zod": {
|
|
13
|
+
"optional": true
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"zod": "4.4.3"
|
|
18
|
+
},
|
|
8
19
|
"main": "./index.cjs",
|
|
9
20
|
"module": "./index.js",
|
|
10
21
|
"typings": "./index.d.ts",
|
|
@@ -19,6 +30,11 @@
|
|
|
19
30
|
"import": "./json-schemas.js",
|
|
20
31
|
"require": "./json-schemas.cjs"
|
|
21
32
|
},
|
|
33
|
+
"./schemas": {
|
|
34
|
+
"types": "./schemas.d.ts",
|
|
35
|
+
"import": "./schemas.js",
|
|
36
|
+
"require": "./schemas.cjs"
|
|
37
|
+
},
|
|
22
38
|
"./*": {
|
|
23
39
|
"types": "./*.d.ts",
|
|
24
40
|
"import": "./*.js",
|
package/schemas.cjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("./src/lib/shared/schemas/screen-mode.schema.cjs"),o=require("./src/lib/shared/schemas/custom-chart-manifest.schema.cjs"),c=require("./src/lib/shared/schemas/dashboard-state.schema.cjs"),a=require("./src/lib/shared/schemas/slot-config.schema.cjs");exports.AUTHORED_SCREEN_MODES=e.AUTHORED_SCREEN_MODES;exports.INCOMING_SCREEN_MODES=e.INCOMING_SCREEN_MODES;exports.authoredScreenModeSchema=e.authoredScreenModeSchema;exports.incomingScreenModeSchema=e.incomingScreenModeSchema;exports.toAuthoredScreenMode=e.toAuthoredScreenMode;exports.customChartManifestSchema=o.customChartManifestSchema;exports.dashboardStatePayloadSchema=c.dashboardStatePayloadSchema;exports.slotConfigSchema=a.slotConfigSchema;exports.slotsConfigSchema=a.slotsConfigSchema;
|
|
2
|
+
//# sourceMappingURL=schemas.cjs.map
|
package/schemas.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/schemas.d.ts
ADDED
package/schemas.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../libs/dashboard-contents-types/schemas.ts"],"names":[],"mappings":"AAEA,cAAc,0BAA0B,CAAC"}
|
package/schemas.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AUTHORED_SCREEN_MODES as r, INCOMING_SCREEN_MODES as a, authoredScreenModeSchema as t, incomingScreenModeSchema as S, toAuthoredScreenMode as m } from "./src/lib/shared/schemas/screen-mode.schema.js";
|
|
2
|
+
import { customChartManifestSchema as h } from "./src/lib/shared/schemas/custom-chart-manifest.schema.js";
|
|
3
|
+
import { dashboardStatePayloadSchema as n } from "./src/lib/shared/schemas/dashboard-state.schema.js";
|
|
4
|
+
import { slotConfigSchema as E, slotsConfigSchema as M } from "./src/lib/shared/schemas/slot-config.schema.js";
|
|
5
|
+
export {
|
|
6
|
+
r as AUTHORED_SCREEN_MODES,
|
|
7
|
+
a as INCOMING_SCREEN_MODES,
|
|
8
|
+
t as authoredScreenModeSchema,
|
|
9
|
+
h as customChartManifestSchema,
|
|
10
|
+
n as dashboardStatePayloadSchema,
|
|
11
|
+
S as incomingScreenModeSchema,
|
|
12
|
+
E as slotConfigSchema,
|
|
13
|
+
M as slotsConfigSchema,
|
|
14
|
+
m as toAuthoredScreenMode
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=schemas.js.map
|
package/schemas.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chart-schemas.d.ts","sourceRoot":"","sources":["../../../../libs/dashboard-contents-types/scripts/chart-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgHxB,mEAAmE;AACnE,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAGjD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-zod-json-schemas.d.ts","sourceRoot":"","sources":["../../../../libs/dashboard-contents-types/scripts/generate-zod-json-schemas.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** DCT-style JSON schema(s) for named Zod schemas, keyed by id. */
|
|
3
|
+
export declare function generateJsonSchemas(entries: Record<string, z.ZodType>): Record<string, unknown>;
|
|
4
|
+
/** Serialize as the TJS pipeline does (safe-stable-stringify, 4-space, two trailing newlines) -> byte-identical files. */
|
|
5
|
+
export declare function serializeDctSchema(schema: unknown): string;
|
|
6
|
+
//# sourceMappingURL=zod-to-json-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zod-to-json-schema.d.ts","sourceRoot":"","sources":["../../../../libs/dashboard-contents-types/scripts/zod-to-json-schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgDxB,mEAAmE;AACnE,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAc/F;AAED,0HAA0H;AAC1H,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAE1D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-chart-manifest.schema.cjs","sources":["../../../../../../../libs/dashboard-contents-types/src/lib/shared/schemas/custom-chart-manifest.schema.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { slotsConfigSchema } from './slot-config.schema';\n\n// Zod source-of-truth for a custom-chart manifest; replaces the backend's `CustomChartManifestSchema` wrapper.\nexport const customChartManifestSchema = z.object({\n slots: slotsConfigSchema\n});\n\nexport type CustomChartManifest = z.infer<typeof customChartManifestSchema>;\n"],"names":["zod","slotConfig_schema","customChartManifestSchema","z","slotsConfigSchema"],"mappings":"aAKO,MAAAA,EAAA,QAAA,KAAA,EAAAC,EAAA,QAAA,0BAAA,EAAMC,EAA4BC,EAAAA,EAAE,OAAO,CAChD,MAAOC,EAAAA,iBACT,CAAC,EAAA,QAAA,0BAAAF"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const customChartManifestSchema: z.ZodObject<{
|
|
3
|
+
slots: z.ZodArray<z.ZodObject<{
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
left: "left";
|
|
7
|
+
right: "right";
|
|
8
|
+
top: "top";
|
|
9
|
+
bottom: "bottom";
|
|
10
|
+
"top-left": "top-left";
|
|
11
|
+
"top-right": "top-right";
|
|
12
|
+
"bottom-right": "bottom-right";
|
|
13
|
+
"bottom-left": "bottom-left";
|
|
14
|
+
middle: "middle";
|
|
15
|
+
}>>;
|
|
16
|
+
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
17
|
+
description: z.ZodOptional<z.ZodString>;
|
|
18
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
19
|
+
numeric: "numeric";
|
|
20
|
+
categorical: "categorical";
|
|
21
|
+
mixed: "mixed";
|
|
22
|
+
}>>;
|
|
23
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
acceptableDataFieldTypes: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
25
|
+
hierarchy: "hierarchy";
|
|
26
|
+
numeric: "numeric";
|
|
27
|
+
datetime: "datetime";
|
|
28
|
+
"array[datetime]": "array[datetime]";
|
|
29
|
+
"array[hierarchy]": "array[hierarchy]";
|
|
30
|
+
"array[numeric]": "array[numeric]";
|
|
31
|
+
"array[spatial]": "array[spatial]";
|
|
32
|
+
spatial: "spatial";
|
|
33
|
+
}>, z.ZodEnum<{
|
|
34
|
+
hierarchy: "hierarchy";
|
|
35
|
+
numeric: "numeric";
|
|
36
|
+
datetime: "datetime";
|
|
37
|
+
}>]>>>;
|
|
38
|
+
acceptableColumnTypes: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
39
|
+
hierarchy: "hierarchy";
|
|
40
|
+
numeric: "numeric";
|
|
41
|
+
datetime: "datetime";
|
|
42
|
+
"array[datetime]": "array[datetime]";
|
|
43
|
+
"array[hierarchy]": "array[hierarchy]";
|
|
44
|
+
"array[numeric]": "array[numeric]";
|
|
45
|
+
"array[spatial]": "array[spatial]";
|
|
46
|
+
spatial: "spatial";
|
|
47
|
+
}>, z.ZodEnum<{
|
|
48
|
+
hierarchy: "hierarchy";
|
|
49
|
+
numeric: "numeric";
|
|
50
|
+
datetime: "datetime";
|
|
51
|
+
}>]>>>;
|
|
52
|
+
acceptableColumnSubtypes: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
53
|
+
duration: "duration";
|
|
54
|
+
currency: "currency";
|
|
55
|
+
interval: "interval";
|
|
56
|
+
coordinates: "coordinates";
|
|
57
|
+
hierarchy_element_expression: "hierarchy_element_expression";
|
|
58
|
+
ip_address: "ip_address";
|
|
59
|
+
topography: "topography";
|
|
60
|
+
}>, z.ZodEnum<{
|
|
61
|
+
duration: "duration";
|
|
62
|
+
currency: "currency";
|
|
63
|
+
interval: "interval";
|
|
64
|
+
}>]>>>;
|
|
65
|
+
canAcceptFormula: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
+
rotate: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
canAcceptMultipleDataFields: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
canAcceptMultipleColumns: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
requiredMinimumColumnsCount: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
isRequired: z.ZodOptional<z.ZodBoolean>;
|
|
71
|
+
isHidden: z.ZodOptional<z.ZodBoolean>;
|
|
72
|
+
keepOnlyFirstWhenOtherSlotFilled: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
73
|
+
clearWhenOtherSlotHasMultipleItems: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
74
|
+
noMultipleIfSlotsFilled: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
75
|
+
canAcceptDataIndependentOf: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
76
|
+
activeWhenSubtype: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
77
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
78
|
+
isBinningDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
+
isAggregationDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
+
areGrandTotalsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
+
showOnlyFirstSlotGrandTotals: z.ZodOptional<z.ZodBoolean>;
|
|
82
|
+
isCumulativeSumEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
+
areDatetimeOptionsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
84
|
+
showOnlyFirstSlotContentOptions: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
export type CustomChartManifest = z.infer<typeof customChartManifestSchema>;
|
|
89
|
+
//# sourceMappingURL=custom-chart-manifest.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-chart-manifest.schema.d.ts","sourceRoot":"","sources":["../../../../../../../libs/dashboard-contents-types/src/lib/shared/schemas/custom-chart-manifest.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-chart-manifest.schema.js","sources":["../../../../../../../libs/dashboard-contents-types/src/lib/shared/schemas/custom-chart-manifest.schema.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { slotsConfigSchema } from './slot-config.schema';\n\n// Zod source-of-truth for a custom-chart manifest; replaces the backend's `CustomChartManifestSchema` wrapper.\nexport const customChartManifestSchema = z.object({\n slots: slotsConfigSchema\n});\n\nexport type CustomChartManifest = z.infer<typeof customChartManifestSchema>;\n"],"names":["z","slotsConfigSchema","customChartManifestSchema"],"mappings":"AAKO,SAAA,KAAAA,SAAA;AAAA,SAAA,qBAAAC,SAAA;AAAA,MAAMC,IAA4BF,EAAE,OAAO;AAAA,EAChD,OAAOC;AACT,CAAC;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const o=require("zod"),n=require("./screen-mode.schema.cjs"),a=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),i=t=>typeof t=="string",e=o.z.custom(a),r=o.z.object({col:o.z.number(),row:o.z.number(),sizeX:o.z.number(),sizeY:o.z.number()}),s=o.z.object({id:o.z.string().optional(),source:o.z.string().optional(),type:o.z.custom(i),options:e.optional(),slots:o.z.array(e).optional(),filters:o.z.array(e).optional(),position:r.optional(),slot:o.z.number().optional()}).passthrough(),c=o.z.object({screenModus:n.incomingScreenModeSchema,options:e.optional(),filterGroups:o.z.array(e).optional(),items:o.z.array(s).optional()}).passthrough(),l=o.z.object({mode:o.z.enum(["light","dark"]).optional(),primaryColor:o.z.string().optional(),fontFamily:o.z.string().optional()}).passthrough(),p=o.z.record(o.z.string(),o.z.string()),z=o.z.object({title:o.z.string().optional(),description:o.z.string().optional()}),m=o.z.object({id:o.z.string().optional(),views:o.z.array(c).optional(),syncScreenModes:o.z.boolean().optional(),currentScreenMode:n.incomingScreenModeSchema.optional(),theme:l.optional(),name:p.optional(),runtimeFilters:o.z.array(o.z.unknown()).optional(),meta:z.optional()}).passthrough();exports.dashboardStatePayloadSchema=m;
|
|
2
|
+
//# sourceMappingURL=dashboard-state.schema.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard-state.schema.cjs","sources":["../../../../../../../libs/dashboard-contents-types/src/lib/shared/schemas/dashboard-state.schema.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { incomingScreenModeSchema } from './screen-mode.schema';\n\n// DCT can't import backend helpers, so mirror `backend/core/types`' isObject/isString locally.\nconst isObject = (v: unknown): v is Record<PropertyKey, unknown> => typeof v === 'object' && v !== null && !Array.isArray(v);\nconst isString = (v: unknown): v is string => typeof v === 'string';\n\n// Intentionally LOOSE API-boundary validator: opaque leaves (item options/slots/filters, view options,\n// filter groups) are only checked as object/string; iq-v2's dashboard-state-adapter owns their rich shape.\nconst opaqueObjectSchema = z.custom<Record<string, unknown>>(isObject);\n\nconst positionSchema = z.object({\n col: z.number(),\n row: z.number(),\n sizeX: z.number(),\n sizeY: z.number()\n});\n\nconst itemSchema = z\n .object({\n id: z.string().optional(),\n source: z.string().optional(),\n type: z.custom<string>(isString),\n options: opaqueObjectSchema.optional(),\n slots: z.array(opaqueObjectSchema).optional(),\n filters: z.array(opaqueObjectSchema).optional(),\n position: positionSchema.optional(),\n slot: z.number().optional()\n })\n .passthrough();\n\nconst viewSchema = z\n .object({\n screenModus: incomingScreenModeSchema,\n options: opaqueObjectSchema.optional(),\n filterGroups: z.array(opaqueObjectSchema).optional(),\n items: z.array(itemSchema).optional()\n })\n .passthrough();\n\nconst themeSchema = z\n .object({\n mode: z.enum(['light', 'dark']).optional(),\n primaryColor: z.string().optional(),\n fontFamily: z.string().optional()\n })\n .passthrough();\n\nconst nameSchema = z.record(z.string(), z.string());\n\nconst metaSchema = z.object({\n title: z.string().optional(),\n description: z.string().optional()\n});\n\nexport const dashboardStatePayloadSchema = z\n .object({\n id: z.string().optional(),\n views: z.array(viewSchema).optional(),\n syncScreenModes: z.boolean().optional(),\n currentScreenMode: incomingScreenModeSchema.optional(),\n theme: themeSchema.optional(),\n name: nameSchema.optional(),\n // Analyst-only read context: live runtime filters + dashboard meta (title/description). The dashboard\n // agent ignores these; they ride along on the unified `dashboard` input so the analyst can ground answers.\n runtimeFilters: z.array(z.unknown()).optional(),\n meta: metaSchema.optional()\n })\n .passthrough();\n\n/** The payload as validated at the API boundary. iq-v2 casts this to its richer `DashboardStatePayload`. */\nexport type DashboardStatePayloadInput = z.infer<typeof dashboardStatePayloadSchema>;\n"],"names":["isObject","v","isString","opaqueObjectSchema","z","positionSchema","itemSchema","viewSchema","incomingScreenModeSchema","themeSchema","nameSchema","metaSchema","dashboardStatePayloadSchema"],"mappings":"0EAKMA,EAAYC,GAAkD,OAAOA,GAAM,UAAYA,IAAM,MAAQ,CAAC,MAAM,QAAQA,CAAC,EACrHC,EAAYD,GAA4B,OAAOA,GAAM,SAIrDE,EAAqBC,EAAAA,EAAE,OAAgCJ,CAAQ,EAE/DK,EAAiBD,EAAAA,EAAE,OAAO,CAC9B,IAAKA,EAAAA,EAAE,OAAA,EACP,IAAKA,EAAAA,EAAE,OAAA,EACP,MAAOA,EAA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,EAAE,QAAA,EAAU,SAAA,EAC7B,kBAAmBI,EAAAA,yBAAyB,SAAA,EAC5C,MAAOC,EAAY,SAAA,EACnB,KAAMC,EAAW,SAAA,EAGjB,eAAgBN,EAAAA,EAAE,MAAMA,EAAAA,EAAE,QAAA,CAAS,EAAE,SAAA,EACrC,KAAMO,EAAW,SAAA,CACnB,CAAC,EACA,YAAA,EAAA,QAAA,4BAAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const dashboardStatePayloadSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4
|
+
views: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5
|
+
screenModus: z.ZodEnum<{
|
|
6
|
+
fixed: "fixed";
|
|
7
|
+
desktop: "desktop";
|
|
8
|
+
tablet: "tablet";
|
|
9
|
+
mobile: "mobile";
|
|
10
|
+
largeScreen: "largeScreen";
|
|
11
|
+
}>;
|
|
12
|
+
options: z.ZodOptional<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>>;
|
|
13
|
+
filterGroups: z.ZodOptional<z.ZodArray<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>>>;
|
|
14
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15
|
+
id: z.ZodOptional<z.ZodString>;
|
|
16
|
+
source: z.ZodOptional<z.ZodString>;
|
|
17
|
+
type: z.ZodCustom<string, string>;
|
|
18
|
+
options: z.ZodOptional<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>>;
|
|
19
|
+
slots: z.ZodOptional<z.ZodArray<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>>>;
|
|
20
|
+
filters: z.ZodOptional<z.ZodArray<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>>>;
|
|
21
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
col: z.ZodNumber;
|
|
23
|
+
row: z.ZodNumber;
|
|
24
|
+
sizeX: z.ZodNumber;
|
|
25
|
+
sizeY: z.ZodNumber;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
slot: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
}, z.core.$loose>>>;
|
|
29
|
+
}, z.core.$loose>>>;
|
|
30
|
+
syncScreenModes: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
currentScreenMode: z.ZodOptional<z.ZodEnum<{
|
|
32
|
+
fixed: "fixed";
|
|
33
|
+
desktop: "desktop";
|
|
34
|
+
tablet: "tablet";
|
|
35
|
+
mobile: "mobile";
|
|
36
|
+
largeScreen: "largeScreen";
|
|
37
|
+
}>>;
|
|
38
|
+
theme: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
40
|
+
dark: "dark";
|
|
41
|
+
light: "light";
|
|
42
|
+
}>>;
|
|
43
|
+
primaryColor: z.ZodOptional<z.ZodString>;
|
|
44
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
45
|
+
}, z.core.$loose>>;
|
|
46
|
+
name: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
47
|
+
runtimeFilters: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
48
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
49
|
+
title: z.ZodOptional<z.ZodString>;
|
|
50
|
+
description: z.ZodOptional<z.ZodString>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
}, z.core.$loose>;
|
|
53
|
+
/** The payload as validated at the API boundary. iq-v2 casts this to its richer `DashboardStatePayload`. */
|
|
54
|
+
export type DashboardStatePayloadInput = z.infer<typeof dashboardStatePayloadSchema>;
|
|
55
|
+
//# sourceMappingURL=dashboard-state.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard-state.schema.d.ts","sourceRoot":"","sources":["../../../../../../../libs/dashboard-contents-types/src/lib/shared/schemas/dashboard-state.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwDxB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAaxB,CAAC;AAEjB,4GAA4G;AAC5G,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { z as o } from "zod";
|
|
2
|
+
import { incomingScreenModeSchema as e } from "./screen-mode.schema.js";
|
|
3
|
+
const i = (t) => typeof t == "object" && t !== null && !Array.isArray(t), a = (t) => typeof t == "string", n = o.custom(i), r = o.object({
|
|
4
|
+
col: o.number(),
|
|
5
|
+
row: o.number(),
|
|
6
|
+
sizeX: o.number(),
|
|
7
|
+
sizeY: o.number()
|
|
8
|
+
}), s = o.object({
|
|
9
|
+
id: o.string().optional(),
|
|
10
|
+
source: o.string().optional(),
|
|
11
|
+
type: o.custom(a),
|
|
12
|
+
options: n.optional(),
|
|
13
|
+
slots: o.array(n).optional(),
|
|
14
|
+
filters: o.array(n).optional(),
|
|
15
|
+
position: r.optional(),
|
|
16
|
+
slot: o.number().optional()
|
|
17
|
+
}).passthrough(), c = o.object({
|
|
18
|
+
screenModus: e,
|
|
19
|
+
options: n.optional(),
|
|
20
|
+
filterGroups: o.array(n).optional(),
|
|
21
|
+
items: o.array(s).optional()
|
|
22
|
+
}).passthrough(), p = o.object({
|
|
23
|
+
mode: o.enum(["light", "dark"]).optional(),
|
|
24
|
+
primaryColor: o.string().optional(),
|
|
25
|
+
fontFamily: o.string().optional()
|
|
26
|
+
}).passthrough(), l = o.record(o.string(), o.string()), m = o.object({
|
|
27
|
+
title: o.string().optional(),
|
|
28
|
+
description: o.string().optional()
|
|
29
|
+
}), g = o.object({
|
|
30
|
+
id: o.string().optional(),
|
|
31
|
+
views: o.array(c).optional(),
|
|
32
|
+
syncScreenModes: o.boolean().optional(),
|
|
33
|
+
currentScreenMode: e.optional(),
|
|
34
|
+
theme: p.optional(),
|
|
35
|
+
name: l.optional(),
|
|
36
|
+
// Analyst-only read context: live runtime filters + dashboard meta (title/description). The dashboard
|
|
37
|
+
// agent ignores these; they ride along on the unified `dashboard` input so the analyst can ground answers.
|
|
38
|
+
runtimeFilters: o.array(o.unknown()).optional(),
|
|
39
|
+
meta: m.optional()
|
|
40
|
+
}).passthrough();
|
|
41
|
+
export {
|
|
42
|
+
g as dashboardStatePayloadSchema
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=dashboard-state.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard-state.schema.js","sources":["../../../../../../../libs/dashboard-contents-types/src/lib/shared/schemas/dashboard-state.schema.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { incomingScreenModeSchema } from './screen-mode.schema';\n\n// DCT can't import backend helpers, so mirror `backend/core/types`' isObject/isString locally.\nconst isObject = (v: unknown): v is Record<PropertyKey, unknown> => typeof v === 'object' && v !== null && !Array.isArray(v);\nconst isString = (v: unknown): v is string => typeof v === 'string';\n\n// Intentionally LOOSE API-boundary validator: opaque leaves (item options/slots/filters, view options,\n// filter groups) are only checked as object/string; iq-v2's dashboard-state-adapter owns their rich shape.\nconst opaqueObjectSchema = z.custom<Record<string, unknown>>(isObject);\n\nconst positionSchema = z.object({\n col: z.number(),\n row: z.number(),\n sizeX: z.number(),\n sizeY: z.number()\n});\n\nconst itemSchema = z\n .object({\n id: z.string().optional(),\n source: z.string().optional(),\n type: z.custom<string>(isString),\n options: opaqueObjectSchema.optional(),\n slots: z.array(opaqueObjectSchema).optional(),\n filters: z.array(opaqueObjectSchema).optional(),\n position: positionSchema.optional(),\n slot: z.number().optional()\n })\n .passthrough();\n\nconst viewSchema = z\n .object({\n screenModus: incomingScreenModeSchema,\n options: opaqueObjectSchema.optional(),\n filterGroups: z.array(opaqueObjectSchema).optional(),\n items: z.array(itemSchema).optional()\n })\n .passthrough();\n\nconst themeSchema = z\n .object({\n mode: z.enum(['light', 'dark']).optional(),\n primaryColor: z.string().optional(),\n fontFamily: z.string().optional()\n })\n .passthrough();\n\nconst nameSchema = z.record(z.string(), z.string());\n\nconst metaSchema = z.object({\n title: z.string().optional(),\n description: z.string().optional()\n});\n\nexport const dashboardStatePayloadSchema = z\n .object({\n id: z.string().optional(),\n views: z.array(viewSchema).optional(),\n syncScreenModes: z.boolean().optional(),\n currentScreenMode: incomingScreenModeSchema.optional(),\n theme: themeSchema.optional(),\n name: nameSchema.optional(),\n // Analyst-only read context: live runtime filters + dashboard meta (title/description). The dashboard\n // agent ignores these; they ride along on the unified `dashboard` input so the analyst can ground answers.\n runtimeFilters: z.array(z.unknown()).optional(),\n meta: metaSchema.optional()\n })\n .passthrough();\n\n/** The payload as validated at the API boundary. iq-v2 casts this to its richer `DashboardStatePayload`. */\nexport type DashboardStatePayloadInput = z.infer<typeof dashboardStatePayloadSchema>;\n"],"names":["isObject","v","isString","opaqueObjectSchema","z","positionSchema","itemSchema","viewSchema","incomingScreenModeSchema","themeSchema","nameSchema","metaSchema","dashboardStatePayloadSchema"],"mappings":";;AAKA,MAAMA,IAAW,CAACC,MAAkD,OAAOA,KAAM,YAAYA,MAAM,QAAQ,CAAC,MAAM,QAAQA,CAAC,GACrHC,IAAW,CAACD,MAA4B,OAAOA,KAAM,UAIrDE,IAAqBC,EAAE,OAAgCJ,CAAQ,GAE/DK,IAAiBD,EAAE,OAAO;AAAA,EAC9B,KAAKA,EAAE,OAAA;AAAA,EACP,KAAKA,EAAE,OAAA;AAAA,EACP,OAAOA,EAAE,OAAA;AAAA,EACT,OAAOA,EAAE,OAAA;AACX,CAAC,GAEKE,IAAaF,EAChB,OAAO;AAAA,EACN,IAAIA,EAAE,OAAA,EAAS,SAAA;AAAA,EACf,QAAQA,EAAE,OAAA,EAAS,SAAA;AAAA,EACnB,MAAMA,EAAE,OAAeF,CAAQ;AAAA,EAC/B,SA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|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/dashboard-contents-types/src/lib/shared/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AAErC,cAAc,sBAAsB,CAAC;AAErC,cAAc,gCAAgC,CAAC;AAE/C,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const n=require("zod"),o=["desktop","tablet","mobile"],c=n.z.enum(o),t=[...o,"largeScreen","fixed"],S=n.z.enum(t);function r(e){return e==="tablet"||e==="mobile"?e:"desktop"}exports.AUTHORED_SCREEN_MODES=o;exports.INCOMING_SCREEN_MODES=t;exports.authoredScreenModeSchema=c;exports.incomingScreenModeSchema=S;exports.toAuthoredScreenMode=r;
|
|
2
|
+
//# sourceMappingURL=screen-mode.schema.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screen-mode.schema.cjs","sources":["../../../../../../../libs/dashboard-contents-types/src/lib/shared/schemas/screen-mode.schema.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport type { ScreenMode } from '../types/screen';\n\n// Zod source-of-truth for dashboard screen modes (previously in the backend's dashboard-state.ts).\n// `incoming` = full set a payload may use (= DCT ScreenMode); `authored` = the subset the agent produces.\n\n/** The subset of screen modes the dashboard agent authors. */\nexport const AUTHORED_SCREEN_MODES = ['desktop', 'tablet', 'mobile'] as const satisfies readonly ScreenMode[];\n\nexport const authoredScreenModeSchema = z.enum(AUTHORED_SCREEN_MODES);\n\nexport type AuthoredScreenMode = z.infer<typeof authoredScreenModeSchema>;\n\n/** The full set of screen modes an incoming dashboard payload may use. */\nexport const INCOMING_SCREEN_MODES = [...AUTHORED_SCREEN_MODES, 'largeScreen', 'fixed'] as const satisfies readonly ScreenMode[];\n\nexport const incomingScreenModeSchema = z.enum(INCOMING_SCREEN_MODES);\n\nexport type IncomingScreenMode = z.infer<typeof incomingScreenModeSchema>;\n\n/** Collapse any incoming breakpoint onto the authored subset (largeScreen/fixed → desktop). */\nexport function toAuthoredScreenMode(mode: IncomingScreenMode): AuthoredScreenMode {\n return mode === 'tablet' || mode === 'mobile' ? mode : 'desktop';\n}\n\n/** Compile-time assertion — fails to build unless `A` is assignable to `B`. */\ntype AssignableTo<A extends B, B> = A;\n\n// Drift guard: the incoming set and DCT's `ScreenMode` union must stay mutually assignable.\nexport type IncomingScreenModeAssignableToDct = AssignableTo<IncomingScreenMode, ScreenMode>;\n\nexport type DctScreenModeAssignableToIncoming = AssignableTo<ScreenMode, IncomingScreenMode>;\n"],"names":["zod","AUTHORED_SCREEN_MODES","authoredScreenModeSchema","z","INCOMING_SCREEN_MODES","incomingScreenModeSchema","toAuthoredScreenMode","mode"],"mappings":"aAQO,MAAAA,EAAA,QAAA,KAAA,EAAMC,EAAwB,CAAC,UAAW,SAAU,QAAQ,EAEtDC,EAA2BC,EAAAA,EAAE,KAAKF,CAAqB,EAKvDG,EAAwB,CAAC,GAAGH,EAAuB,cAAe,OAAO,EAEzEI,EAA2BF,EAAAA,EAAE,KAAKC,CAAqB,EAK7D,SAASE,EAAqBC,EAA8C,CACjF,OAAOA,IAAS,UAAYA,IAAS,SAAWA,EAAO,SACzD,CAAA,QAAA,sBAAAN,EAAA,QAAA,sBAAAG,EAAA,QAAA,yBAAAF,EAAA,QAAA,yBAAAG,EAAA,QAAA,qBAAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ScreenMode } from '../types/screen';
|
|
3
|
+
/** The subset of screen modes the dashboard agent authors. */
|
|
4
|
+
export declare const AUTHORED_SCREEN_MODES: readonly ["desktop", "tablet", "mobile"];
|
|
5
|
+
export declare const authoredScreenModeSchema: z.ZodEnum<{
|
|
6
|
+
desktop: "desktop";
|
|
7
|
+
tablet: "tablet";
|
|
8
|
+
mobile: "mobile";
|
|
9
|
+
}>;
|
|
10
|
+
export type AuthoredScreenMode = z.infer<typeof authoredScreenModeSchema>;
|
|
11
|
+
/** The full set of screen modes an incoming dashboard payload may use. */
|
|
12
|
+
export declare const INCOMING_SCREEN_MODES: readonly ["desktop", "tablet", "mobile", "largeScreen", "fixed"];
|
|
13
|
+
export declare const incomingScreenModeSchema: z.ZodEnum<{
|
|
14
|
+
fixed: "fixed";
|
|
15
|
+
desktop: "desktop";
|
|
16
|
+
tablet: "tablet";
|
|
17
|
+
mobile: "mobile";
|
|
18
|
+
largeScreen: "largeScreen";
|
|
19
|
+
}>;
|
|
20
|
+
export type IncomingScreenMode = z.infer<typeof incomingScreenModeSchema>;
|
|
21
|
+
/** Collapse any incoming breakpoint onto the authored subset (largeScreen/fixed → desktop). */
|
|
22
|
+
export declare function toAuthoredScreenMode(mode: IncomingScreenMode): AuthoredScreenMode;
|
|
23
|
+
/** Compile-time assertion — fails to build unless `A` is assignable to `B`. */
|
|
24
|
+
type AssignableTo<A extends B, B> = A;
|
|
25
|
+
export type IncomingScreenModeAssignableToDct = AssignableTo<IncomingScreenMode, ScreenMode>;
|
|
26
|
+
export type DctScreenModeAssignableToIncoming = AssignableTo<ScreenMode, IncomingScreenMode>;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=screen-mode.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screen-mode.schema.d.ts","sourceRoot":"","sources":["../../../../../../../libs/dashboard-contents-types/src/lib/shared/schemas/screen-mode.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAKlD,8DAA8D;AAC9D,eAAO,MAAM,qBAAqB,0CAA2E,CAAC;AAE9G,eAAO,MAAM,wBAAwB;;;;EAAgC,CAAC;AAEtE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,0EAA0E;AAC1E,eAAO,MAAM,qBAAqB,kEAA8F,CAAC;AAEjI,eAAO,MAAM,wBAAwB;;;;;;EAAgC,CAAC;AAEtE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,+FAA+F;AAC/F,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,kBAAkB,GAAG,kBAAkB,CAEjF;AAED,+EAA+E;AAC/E,KAAK,YAAY,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;AAGtC,MAAM,MAAM,iCAAiC,GAAG,YAAY,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC;AAE7F,MAAM,MAAM,iCAAiC,GAAG,YAAY,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z as o } from "zod";
|
|
2
|
+
const t = ["desktop", "tablet", "mobile"], r = o.enum(t), n = [...t, "largeScreen", "fixed"], S = o.enum(n);
|
|
3
|
+
function i(e) {
|
|
4
|
+
return e === "tablet" || e === "mobile" ? e : "desktop";
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
t as AUTHORED_SCREEN_MODES,
|
|
8
|
+
n as INCOMING_SCREEN_MODES,
|
|
9
|
+
r as authoredScreenModeSchema,
|
|
10
|
+
S as incomingScreenModeSchema,
|
|
11
|
+
i as toAuthoredScreenMode
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=screen-mode.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screen-mode.schema.js","sources":["../../../../../../../libs/dashboard-contents-types/src/lib/shared/schemas/screen-mode.schema.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport type { ScreenMode } from '../types/screen';\n\n// Zod source-of-truth for dashboard screen modes (previously in the backend's dashboard-state.ts).\n// `incoming` = full set a payload may use (= DCT ScreenMode); `authored` = the subset the agent produces.\n\n/** The subset of screen modes the dashboard agent authors. */\nexport const AUTHORED_SCREEN_MODES = ['desktop', 'tablet', 'mobile'] as const satisfies readonly ScreenMode[];\n\nexport const authoredScreenModeSchema = z.enum(AUTHORED_SCREEN_MODES);\n\nexport type AuthoredScreenMode = z.infer<typeof authoredScreenModeSchema>;\n\n/** The full set of screen modes an incoming dashboard payload may use. */\nexport const INCOMING_SCREEN_MODES = [...AUTHORED_SCREEN_MODES, 'largeScreen', 'fixed'] as const satisfies readonly ScreenMode[];\n\nexport const incomingScreenModeSchema = z.enum(INCOMING_SCREEN_MODES);\n\nexport type IncomingScreenMode = z.infer<typeof incomingScreenModeSchema>;\n\n/** Collapse any incoming breakpoint onto the authored subset (largeScreen/fixed → desktop). */\nexport function toAuthoredScreenMode(mode: IncomingScreenMode): AuthoredScreenMode {\n return mode === 'tablet' || mode === 'mobile' ? mode : 'desktop';\n}\n\n/** Compile-time assertion — fails to build unless `A` is assignable to `B`. */\ntype AssignableTo<A extends B, B> = A;\n\n// Drift guard: the incoming set and DCT's `ScreenMode` union must stay mutually assignable.\nexport type IncomingScreenModeAssignableToDct = AssignableTo<IncomingScreenMode, ScreenMode>;\n\nexport type DctScreenModeAssignableToIncoming = AssignableTo<ScreenMode, IncomingScreenMode>;\n"],"names":["z","AUTHORED_SCREEN_MODES","authoredScreenModeSchema","INCOMING_SCREEN_MODES","incomingScreenModeSchema","toAuthoredScreenMode","mode"],"mappings":"AAQO,SAAA,KAAAA,SAAA;AAAA,MAAMC,IAAwB,CAAC,WAAW,UAAU,QAAQ,GAEtDC,IAA2BF,EAAE,KAAKC,CAAqB,GAKvDE,IAAwB,CAAC,GAAGF,GAAuB,eAAe,OAAO,GAEzEG,IAA2BJ,EAAE,KAAKG,CAAqB;AAK7D,SAASE,EAAqBC,GAA8C;AACjF,SAAOA,MAAS,YAAYA,MAAS,WAAWA,IAAO;AACzD;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const o=require("zod"),a=o.z.string().max(50),e=o.z.enum(["numeric","hierarchy","datetime","spatial","array[datetime]","array[hierarchy]","array[numeric]","array[spatial]"]),t=o.z.enum(["hierarchy","numeric","datetime"]),i=o.z.enum(["duration","currency","coordinates","hierarchy_element_expression","topography","ip_address","interval"]),l=o.z.enum(["duration","currency","interval"]),n=o.z.object({name:a,position:o.z.enum(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left","middle"]).optional(),label:o.z.union([o.z.string(),o.z.record(o.z.string(),o.z.string())]).optional(),description:o.z.string().optional(),type:o.z.enum(["numeric","categorical","mixed"]).optional(),order:o.z.number().optional(),acceptableDataFieldTypes:o.z.array(o.z.union([e,t])).optional(),acceptableColumnTypes:o.z.array(o.z.union([e,t])).optional(),acceptableColumnSubtypes:o.z.array(o.z.union([i,l])).optional(),canAcceptFormula:o.z.boolean().optional(),rotate:o.z.boolean().optional(),canAcceptMultipleDataFields:o.z.boolean().optional(),canAcceptMultipleColumns:o.z.boolean().optional(),requiredMinimumColumnsCount:o.z.number().optional(),isRequired:o.z.boolean().optional(),isHidden:o.z.boolean().optional(),keepOnlyFirstWhenOtherSlotFilled:o.z.array(a).optional(),clearWhenOtherSlotHasMultipleItems:o.z.array(a).optional(),noMultipleIfSlotsFilled:o.z.array(a).optional(),canAcceptDataIndependentOf:o.z.array(a).optional(),activeWhenSubtype:o.z.array(o.z.string()).optional(),options:o.z.object({isBinningDisabled:o.z.boolean().optional(),isAggregationDisabled:o.z.boolean().optional(),areGrandTotalsEnabled:o.z.boolean().optional(),showOnlyFirstSlotGrandTotals:o.z.boolean().optional(),isCumulativeSumEnabled:o.z.boolean().optional(),areDatetimeOptionsEnabled:o.z.boolean().optional(),showOnlyFirstSlotContentOptions:o.z.boolean().optional()}).optional()}),r=o.z.array(n);exports.slotConfigSchema=n;exports.slotsConfigSchema=r;
|
|
2
|
+
//# sourceMappingURL=slot-config.schema.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slot-config.schema.cjs","sources":["../../../../../../../libs/dashboard-contents-types/src/lib/shared/schemas/slot-config.schema.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport type { SlotConfig } from '../types/slots';\n\n// Zod source-of-truth for `SlotConfig` (chart-definition slots), shipped from DCT so FE + backend share\n// one definition (replaces the backend's hand-maintained `slots-config.ts` copy).\n\n// Slot name — a standard name (x-axis, category, …) or a custom one (up to 50 chars).\nconst slotNameSchema = z.string().max(50);\n\nconst columnTypeSchema = z.enum([\n 'numeric',\n 'hierarchy',\n 'datetime',\n 'spatial',\n 'array[datetime]',\n 'array[hierarchy]',\n 'array[numeric]',\n 'array[spatial]'\n]);\n\nconst formulaTypeSchema = z.enum(['hierarchy', 'numeric', 'datetime']);\n\nconst columnSubtypeSchema = z.enum([\n 'duration',\n 'currency',\n 'coordinates',\n 'hierarchy_element_expression',\n 'topography',\n 'ip_address',\n 'interval'\n]);\n\nconst formulaSubtypeSchema = z.enum(['duration', 'currency', 'interval']);\n\nexport const slotConfigSchema = z.object({\n name: slotNameSchema,\n position: z.enum(['top-left', 'top', 'top-right', 'right', 'bottom-right', 'bottom', 'bottom-left', 'left', 'middle']).optional(),\n label: z.union([z.string(), z.record(z.string(), z.string())]).optional(),\n description: z.string().optional(),\n type: z.enum(['numeric', 'categorical', 'mixed']).optional(),\n order: z.number().optional(),\n acceptableDataFieldTypes: z.array(z.union([columnTypeSchema, formulaTypeSchema])).optional(),\n /** @deprecated Use acceptableDataFieldTypes instead. */\n acceptableColumnTypes: z.array(z.union([columnTypeSchema, formulaTypeSchema])).optional(),\n acceptableColumnSubtypes: z.array(z.union([columnSubtypeSchema, formulaSubtypeSchema])).optional(),\n canAcceptFormula: z.boolean().optional(),\n rotate: z.boolean().optional(),\n canAcceptMultipleDataFields: z.boolean().optional(),\n /** @deprecated Use canAcceptMultipleDataFields instead. */\n canAcceptMultipleColumns: z.boolean().optional(),\n requiredMinimumColumnsCount: z.number().optional(),\n isRequired: z.boolean().optional(),\n isHidden: z.boolean().optional(),\n keepOnlyFirstWhenOtherSlotFilled: z.array(slotNameSchema).optional(),\n clearWhenOtherSlotHasMultipleItems: z.array(slotNameSchema).optional(),\n noMultipleIfSlotsFilled: z.array(slotNameSchema).optional(),\n canAcceptDataIndependentOf: z.array(slotNameSchema).optional(),\n activeWhenSubtype: z.array(z.string()).optional(),\n options: z\n .object({\n isBinningDisabled: z.boolean().optional(),\n isAggregationDisabled: z.boolean().optional(),\n areGrandTotalsEnabled: z.boolean().optional(),\n showOnlyFirstSlotGrandTotals: z.boolean().optional(),\n isCumulativeSumEnabled: z.boolean().optional(),\n areDatetimeOptionsEnabled: z.boolean().optional(),\n showOnlyFirstSlotContentOptions: z.boolean().optional()\n })\n .optional()\n});\n\n/** Array of slot configs (the shape a chart definition's `slots` holds). */\nexport const slotsConfigSchema = z.array(slotConfigSchema);\n\nexport type SlotConfigInput = z.infer<typeof slotConfigSchema>;\n\n/** Compile-time assertion — fails to build unless `A` is assignable to `B`. */\ntype AssignableTo<A extends B, B> = A;\n\n// Drift guard: the Zod-inferred shape and DCT's `SlotConfig` must stay mutually assignable.\nexport type SlotConfigAssignableToDct = AssignableTo<SlotConfigInput, SlotConfig>;\n\nexport type DctAssignableToSlotConfig = AssignableTo<SlotConfig, SlotConfigInput>;\n"],"names":["slotNameSchema","z","columnTypeSchema","formulaTypeSchema","columnSubtypeSchema","formulaSubtypeSchema","slotConfigSchema","slotsConfigSchema"],"mappings":"oCAQMA,EAAiBC,EAAAA,EAAE,SAAS,IAAI,EAAE,EAElCC,EAAmBD,EAAAA,EAAE,KAAK,CAC9B,UACA,YACA,WACA,UACA,kBACA,mBACA,iBACA,gBACF,CAAC,EAEKE,EAAoBF,EAAAA,EAAE,KAAK,CAAC,YAAa,UAAW,UAAU,CAAC,EAE/DG,EAAsBH,EAAAA,EAAE,KAAK,CACjC,WACA,WACA,cACA,+BACA,aACA,aACA,UACF,CAAC,EAEKI,EAAuBJ,EAAAA,EAAE,KAAK,CAAC,WAAY,WAAY,UAAU,CAAC,EAE3DK,EAAmBL,EAAAA,EA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D,2BAA4BC,EAAAA,EAAE,MAAMD,CAAc,EAAE,SAAA,EACpD,kBAAmBC,EAAAA,EAAE,MAAMA,EAAAA,EAAE,OAAA,CAAQ,EAAE,SAAA,EACvC,QAASA,EAAAA,EACN,OAAO,CACN,kBAAmBA,EAAAA,EAAE,QAAA,EAAU,SAAA,EAC/B,sBAAuBA,EAAAA,EAAE,QAAA,EAAU,SAAA,EACnC,sBAAuBA,EAAAA,EAAE,QAAA,EAAU,SAAA,EACnC,6BAA8BA,EAAAA,EAAE,QAAA,EAAU,SAAA,EAC1C,uBAAwBA,EAAAA,EAAE,QAAA,EAAU,SAAA,EACpC,0BAA2BA,EAAAA,EAAE,QAAA,EAAU,SAAA,EACvC,gCAAiCA,EAAAA,EAAE,QAAA,EAAU,SAAA,CAAS,CACvD,EACA,SAAA,CACL,CAAC,EAGYM,EAAoBN,EAAAA,EAAE,MAAMK,CAAgB,EAAA,QAAA,iBAAAA,EAAA,QAAA,kBAAAC"}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { SlotConfig } from '../types/slots';
|
|
3
|
+
export declare const slotConfigSchema: z.ZodObject<{
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
left: "left";
|
|
7
|
+
right: "right";
|
|
8
|
+
top: "top";
|
|
9
|
+
bottom: "bottom";
|
|
10
|
+
"top-left": "top-left";
|
|
11
|
+
"top-right": "top-right";
|
|
12
|
+
"bottom-right": "bottom-right";
|
|
13
|
+
"bottom-left": "bottom-left";
|
|
14
|
+
middle: "middle";
|
|
15
|
+
}>>;
|
|
16
|
+
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
17
|
+
description: z.ZodOptional<z.ZodString>;
|
|
18
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
19
|
+
numeric: "numeric";
|
|
20
|
+
categorical: "categorical";
|
|
21
|
+
mixed: "mixed";
|
|
22
|
+
}>>;
|
|
23
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
acceptableDataFieldTypes: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
25
|
+
hierarchy: "hierarchy";
|
|
26
|
+
numeric: "numeric";
|
|
27
|
+
datetime: "datetime";
|
|
28
|
+
"array[datetime]": "array[datetime]";
|
|
29
|
+
"array[hierarchy]": "array[hierarchy]";
|
|
30
|
+
"array[numeric]": "array[numeric]";
|
|
31
|
+
"array[spatial]": "array[spatial]";
|
|
32
|
+
spatial: "spatial";
|
|
33
|
+
}>, z.ZodEnum<{
|
|
34
|
+
hierarchy: "hierarchy";
|
|
35
|
+
numeric: "numeric";
|
|
36
|
+
datetime: "datetime";
|
|
37
|
+
}>]>>>;
|
|
38
|
+
acceptableColumnTypes: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
39
|
+
hierarchy: "hierarchy";
|
|
40
|
+
numeric: "numeric";
|
|
41
|
+
datetime: "datetime";
|
|
42
|
+
"array[datetime]": "array[datetime]";
|
|
43
|
+
"array[hierarchy]": "array[hierarchy]";
|
|
44
|
+
"array[numeric]": "array[numeric]";
|
|
45
|
+
"array[spatial]": "array[spatial]";
|
|
46
|
+
spatial: "spatial";
|
|
47
|
+
}>, z.ZodEnum<{
|
|
48
|
+
hierarchy: "hierarchy";
|
|
49
|
+
numeric: "numeric";
|
|
50
|
+
datetime: "datetime";
|
|
51
|
+
}>]>>>;
|
|
52
|
+
acceptableColumnSubtypes: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
53
|
+
duration: "duration";
|
|
54
|
+
currency: "currency";
|
|
55
|
+
interval: "interval";
|
|
56
|
+
coordinates: "coordinates";
|
|
57
|
+
hierarchy_element_expression: "hierarchy_element_expression";
|
|
58
|
+
ip_address: "ip_address";
|
|
59
|
+
topography: "topography";
|
|
60
|
+
}>, z.ZodEnum<{
|
|
61
|
+
duration: "duration";
|
|
62
|
+
currency: "currency";
|
|
63
|
+
interval: "interval";
|
|
64
|
+
}>]>>>;
|
|
65
|
+
canAcceptFormula: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
+
rotate: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
canAcceptMultipleDataFields: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
canAcceptMultipleColumns: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
requiredMinimumColumnsCount: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
isRequired: z.ZodOptional<z.ZodBoolean>;
|
|
71
|
+
isHidden: z.ZodOptional<z.ZodBoolean>;
|
|
72
|
+
keepOnlyFirstWhenOtherSlotFilled: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
73
|
+
clearWhenOtherSlotHasMultipleItems: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
74
|
+
noMultipleIfSlotsFilled: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
75
|
+
canAcceptDataIndependentOf: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
76
|
+
activeWhenSubtype: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
77
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
78
|
+
isBinningDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
+
isAggregationDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
+
areGrandTotalsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
+
showOnlyFirstSlotGrandTotals: z.ZodOptional<z.ZodBoolean>;
|
|
82
|
+
isCumulativeSumEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
+
areDatetimeOptionsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
84
|
+
showOnlyFirstSlotContentOptions: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
/** Array of slot configs (the shape a chart definition's `slots` holds). */
|
|
88
|
+
export declare const slotsConfigSchema: z.ZodArray<z.ZodObject<{
|
|
89
|
+
name: z.ZodString;
|
|
90
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
91
|
+
left: "left";
|
|
92
|
+
right: "right";
|
|
93
|
+
top: "top";
|
|
94
|
+
bottom: "bottom";
|
|
95
|
+
"top-left": "top-left";
|
|
96
|
+
"top-right": "top-right";
|
|
97
|
+
"bottom-right": "bottom-right";
|
|
98
|
+
"bottom-left": "bottom-left";
|
|
99
|
+
middle: "middle";
|
|
100
|
+
}>>;
|
|
101
|
+
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
102
|
+
description: z.ZodOptional<z.ZodString>;
|
|
103
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
104
|
+
numeric: "numeric";
|
|
105
|
+
categorical: "categorical";
|
|
106
|
+
mixed: "mixed";
|
|
107
|
+
}>>;
|
|
108
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
acceptableDataFieldTypes: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
110
|
+
hierarchy: "hierarchy";
|
|
111
|
+
numeric: "numeric";
|
|
112
|
+
datetime: "datetime";
|
|
113
|
+
"array[datetime]": "array[datetime]";
|
|
114
|
+
"array[hierarchy]": "array[hierarchy]";
|
|
115
|
+
"array[numeric]": "array[numeric]";
|
|
116
|
+
"array[spatial]": "array[spatial]";
|
|
117
|
+
spatial: "spatial";
|
|
118
|
+
}>, z.ZodEnum<{
|
|
119
|
+
hierarchy: "hierarchy";
|
|
120
|
+
numeric: "numeric";
|
|
121
|
+
datetime: "datetime";
|
|
122
|
+
}>]>>>;
|
|
123
|
+
acceptableColumnTypes: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
124
|
+
hierarchy: "hierarchy";
|
|
125
|
+
numeric: "numeric";
|
|
126
|
+
datetime: "datetime";
|
|
127
|
+
"array[datetime]": "array[datetime]";
|
|
128
|
+
"array[hierarchy]": "array[hierarchy]";
|
|
129
|
+
"array[numeric]": "array[numeric]";
|
|
130
|
+
"array[spatial]": "array[spatial]";
|
|
131
|
+
spatial: "spatial";
|
|
132
|
+
}>, z.ZodEnum<{
|
|
133
|
+
hierarchy: "hierarchy";
|
|
134
|
+
numeric: "numeric";
|
|
135
|
+
datetime: "datetime";
|
|
136
|
+
}>]>>>;
|
|
137
|
+
acceptableColumnSubtypes: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
138
|
+
duration: "duration";
|
|
139
|
+
currency: "currency";
|
|
140
|
+
interval: "interval";
|
|
141
|
+
coordinates: "coordinates";
|
|
142
|
+
hierarchy_element_expression: "hierarchy_element_expression";
|
|
143
|
+
ip_address: "ip_address";
|
|
144
|
+
topography: "topography";
|
|
145
|
+
}>, z.ZodEnum<{
|
|
146
|
+
duration: "duration";
|
|
147
|
+
currency: "currency";
|
|
148
|
+
interval: "interval";
|
|
149
|
+
}>]>>>;
|
|
150
|
+
canAcceptFormula: z.ZodOptional<z.ZodBoolean>;
|
|
151
|
+
rotate: z.ZodOptional<z.ZodBoolean>;
|
|
152
|
+
canAcceptMultipleDataFields: z.ZodOptional<z.ZodBoolean>;
|
|
153
|
+
canAcceptMultipleColumns: z.ZodOptional<z.ZodBoolean>;
|
|
154
|
+
requiredMinimumColumnsCount: z.ZodOptional<z.ZodNumber>;
|
|
155
|
+
isRequired: z.ZodOptional<z.ZodBoolean>;
|
|
156
|
+
isHidden: z.ZodOptional<z.ZodBoolean>;
|
|
157
|
+
keepOnlyFirstWhenOtherSlotFilled: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
158
|
+
clearWhenOtherSlotHasMultipleItems: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
159
|
+
noMultipleIfSlotsFilled: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
160
|
+
canAcceptDataIndependentOf: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
161
|
+
activeWhenSubtype: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
162
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
163
|
+
isBinningDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
164
|
+
isAggregationDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
165
|
+
areGrandTotalsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
166
|
+
showOnlyFirstSlotGrandTotals: z.ZodOptional<z.ZodBoolean>;
|
|
167
|
+
isCumulativeSumEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
168
|
+
areDatetimeOptionsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
169
|
+
showOnlyFirstSlotContentOptions: z.ZodOptional<z.ZodBoolean>;
|
|
170
|
+
}, z.core.$strip>>;
|
|
171
|
+
}, z.core.$strip>>;
|
|
172
|
+
export type SlotConfigInput = z.infer<typeof slotConfigSchema>;
|
|
173
|
+
/** Compile-time assertion — fails to build unless `A` is assignable to `B`. */
|
|
174
|
+
type AssignableTo<A extends B, B> = A;
|
|
175
|
+
export type SlotConfigAssignableToDct = AssignableTo<SlotConfigInput, SlotConfig>;
|
|
176
|
+
export type DctAssignableToSlotConfig = AssignableTo<SlotConfig, SlotConfigInput>;
|
|
177
|
+
export {};
|
|
178
|
+
//# sourceMappingURL=slot-config.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slot-config.schema.d.ts","sourceRoot":"","sources":["../../../../../../../libs/dashboard-contents-types/src/lib/shared/schemas/slot-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAiCjD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmC3B,CAAC;AAEH,4EAA4E;AAC5E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAA4B,CAAC;AAE3D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE/D,+EAA+E;AAC/E,KAAK,YAAY,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;AAGtC,MAAM,MAAM,yBAAyB,GAAG,YAAY,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;AAElF,MAAM,MAAM,yBAAyB,GAAG,YAAY,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { z as o } from "zod";
|
|
2
|
+
const a = o.string().max(50), t = o.enum([
|
|
3
|
+
"numeric",
|
|
4
|
+
"hierarchy",
|
|
5
|
+
"datetime",
|
|
6
|
+
"spatial",
|
|
7
|
+
"array[datetime]",
|
|
8
|
+
"array[hierarchy]",
|
|
9
|
+
"array[numeric]",
|
|
10
|
+
"array[spatial]"
|
|
11
|
+
]), e = o.enum(["hierarchy", "numeric", "datetime"]), n = o.enum([
|
|
12
|
+
"duration",
|
|
13
|
+
"currency",
|
|
14
|
+
"coordinates",
|
|
15
|
+
"hierarchy_element_expression",
|
|
16
|
+
"topography",
|
|
17
|
+
"ip_address",
|
|
18
|
+
"interval"
|
|
19
|
+
]), i = o.enum(["duration", "currency", "interval"]), l = o.object({
|
|
20
|
+
name: a,
|
|
21
|
+
position: o.enum(["top-left", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "middle"]).optional(),
|
|
22
|
+
label: o.union([o.string(), o.record(o.string(), o.string())]).optional(),
|
|
23
|
+
description: o.string().optional(),
|
|
24
|
+
type: o.enum(["numeric", "categorical", "mixed"]).optional(),
|
|
25
|
+
order: o.number().optional(),
|
|
26
|
+
acceptableDataFieldTypes: o.array(o.union([t, e])).optional(),
|
|
27
|
+
/** @deprecated Use acceptableDataFieldTypes instead. */
|
|
28
|
+
acceptableColumnTypes: o.array(o.union([t, e])).optional(),
|
|
29
|
+
acceptableColumnSubtypes: o.array(o.union([n, i])).optional(),
|
|
30
|
+
canAcceptFormula: o.boolean().optional(),
|
|
31
|
+
rotate: o.boolean().optional(),
|
|
32
|
+
canAcceptMultipleDataFields: o.boolean().optional(),
|
|
33
|
+
/** @deprecated Use canAcceptMultipleDataFields instead. */
|
|
34
|
+
canAcceptMultipleColumns: o.boolean().optional(),
|
|
35
|
+
requiredMinimumColumnsCount: o.number().optional(),
|
|
36
|
+
isRequired: o.boolean().optional(),
|
|
37
|
+
isHidden: o.boolean().optional(),
|
|
38
|
+
keepOnlyFirstWhenOtherSlotFilled: o.array(a).optional(),
|
|
39
|
+
clearWhenOtherSlotHasMultipleItems: o.array(a).optional(),
|
|
40
|
+
noMultipleIfSlotsFilled: o.array(a).optional(),
|
|
41
|
+
canAcceptDataIndependentOf: o.array(a).optional(),
|
|
42
|
+
activeWhenSubtype: o.array(o.string()).optional(),
|
|
43
|
+
options: o.object({
|
|
44
|
+
isBinningDisabled: o.boolean().optional(),
|
|
45
|
+
isAggregationDisabled: o.boolean().optional(),
|
|
46
|
+
areGrandTotalsEnabled: o.boolean().optional(),
|
|
47
|
+
showOnlyFirstSlotGrandTotals: o.boolean().optional(),
|
|
48
|
+
isCumulativeSumEnabled: o.boolean().optional(),
|
|
49
|
+
areDatetimeOptionsEnabled: o.boolean().optional(),
|
|
50
|
+
showOnlyFirstSlotContentOptions: o.boolean().optional()
|
|
51
|
+
}).optional()
|
|
52
|
+
}), p = o.array(l);
|
|
53
|
+
export {
|
|
54
|
+
l as slotConfigSchema,
|
|
55
|
+
p as slotsConfigSchema
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=slot-config.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slot-config.schema.js","sources":["../../../../../../../libs/dashboard-contents-types/src/lib/shared/schemas/slot-config.schema.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport type { SlotConfig } from '../types/slots';\n\n// Zod source-of-truth for `SlotConfig` (chart-definition slots), shipped from DCT so FE + backend share\n// one definition (replaces the backend's hand-maintained `slots-config.ts` copy).\n\n// Slot name — a standard name (x-axis, category, …) or a custom one (up to 50 chars).\nconst slotNameSchema = z.string().max(50);\n\nconst columnTypeSchema = z.enum([\n 'numeric',\n 'hierarchy',\n 'datetime',\n 'spatial',\n 'array[datetime]',\n 'array[hierarchy]',\n 'array[numeric]',\n 'array[spatial]'\n]);\n\nconst formulaTypeSchema = z.enum(['hierarchy', 'numeric', 'datetime']);\n\nconst columnSubtypeSchema = z.enum([\n 'duration',\n 'currency',\n 'coordinates',\n 'hierarchy_element_expression',\n 'topography',\n 'ip_address',\n 'interval'\n]);\n\nconst formulaSubtypeSchema = z.enum(['duration', 'currency', 'interval']);\n\nexport const slotConfigSchema = z.object({\n name: slotNameSchema,\n position: z.enum(['top-left', 'top', 'top-right', 'right', 'bottom-right', 'bottom', 'bottom-left', 'left', 'middle']).optional(),\n label: z.union([z.string(), z.record(z.string(), z.string())]).optional(),\n description: z.string().optional(),\n type: z.enum(['numeric', 'categorical', 'mixed']).optional(),\n order: z.number().optional(),\n acceptableDataFieldTypes: z.array(z.union([columnTypeSchema, formulaTypeSchema])).optional(),\n /** @deprecated Use acceptableDataFieldTypes instead. */\n acceptableColumnTypes: z.array(z.union([columnTypeSchema, formulaTypeSchema])).optional(),\n acceptableColumnSubtypes: z.array(z.union([columnSubtypeSchema, formulaSubtypeSchema])).optional(),\n canAcceptFormula: z.boolean().optional(),\n rotate: z.boolean().optional(),\n canAcceptMultipleDataFields: z.boolean().optional(),\n /** @deprecated Use canAcceptMultipleDataFields instead. */\n canAcceptMultipleColumns: z.boolean().optional(),\n requiredMinimumColumnsCount: z.number().optional(),\n isRequired: z.boolean().optional(),\n isHidden: z.boolean().optional(),\n keepOnlyFirstWhenOtherSlotFilled: z.array(slotNameSchema).optional(),\n clearWhenOtherSlotHasMultipleItems: z.array(slotNameSchema).optional(),\n noMultipleIfSlotsFilled: z.array(slotNameSchema).optional(),\n canAcceptDataIndependentOf: z.array(slotNameSchema).optional(),\n activeWhenSubtype: z.array(z.string()).optional(),\n options: z\n .object({\n isBinningDisabled: z.boolean().optional(),\n isAggregationDisabled: z.boolean().optional(),\n areGrandTotalsEnabled: z.boolean().optional(),\n showOnlyFirstSlotGrandTotals: z.boolean().optional(),\n isCumulativeSumEnabled: z.boolean().optional(),\n areDatetimeOptionsEnabled: z.boolean().optional(),\n showOnlyFirstSlotContentOptions: z.boolean().optional()\n })\n .optional()\n});\n\n/** Array of slot configs (the shape a chart definition's `slots` holds). */\nexport const slotsConfigSchema = z.array(slotConfigSchema);\n\nexport type SlotConfigInput = z.infer<typeof slotConfigSchema>;\n\n/** Compile-time assertion — fails to build unless `A` is assignable to `B`. */\ntype AssignableTo<A extends B, B> = A;\n\n// Drift guard: the Zod-inferred shape and DCT's `SlotConfig` must stay mutually assignable.\nexport type SlotConfigAssignableToDct = AssignableTo<SlotConfigInput, SlotConfig>;\n\nexport type DctAssignableToSlotConfig = AssignableTo<SlotConfig, SlotConfigInput>;\n"],"names":["slotNameSchema","z","columnTypeSchema","formulaTypeSchema","columnSubtypeSchema","formulaSubtypeSchema","slotConfigSchema","slotsConfigSchema"],"mappings":";AAQA,MAAMA,IAAiBC,EAAE,SAAS,IAAI,EAAE,GAElCC,IAAmBD,EAAE,KAAK;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC,GAEKE,IAAoBF,EAAE,KAAK,CAAC,aAAa,WAAW,UAAU,CAAC,GAE/DG,IAAsBH,EAAE,KAAK;AAAA,EACjC;AAAA,E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AAE,SAAA;AAAA,EAC1D,oCAAoCC,EAAE,MAAMD,CAAc,EAAE,SAAA;AAAA,EAC5D,yBAAyBC,EAAE,MAAMD,CAAc,EAAE,SAAA;AAAA,EACjD,4BAA4BC,EAAE,MAAMD,CAAc,EAAE,SAAA;AAAA,EACpD,mBAAmBC,EAAE,MAAMA,EAAE,OAAA,CAAQ,EAAE,SAAA;AAAA,EACvC,SAASA,EACN,OAAO;AAAA,IACN,mBAAmBA,EAAE,QAAA,EAAU,SAAA;AAAA,IAC/B,uBAAuBA,EAAE,QAAA,EAAU,SAAA;AAAA,IACnC,uBAAuBA,EAAE,QAAA,EAAU,SAAA;AAAA,IACnC,8BAA8BA,EAAE,QAAA,EAAU,SAAA;AAAA,IAC1C,wBAAwBA,EAAE,QAAA,EAAU,SAAA;AAAA,IACpC,2BAA2BA,EAAE,QAAA,EAAU,SAAA;AAAA,IACvC,iCAAiCA,EAAE,QAAA,EAAU,SAAA;AAAA,EAAS,CACvD,EACA,SAAA;AACL,CAAC,GAGYM,IAAoBN,EAAE,MAAMK,CAAgB;"}
|
|
@@ -59,8 +59,8 @@ export type ItemFilterParameterDefinition = {
|
|
|
59
59
|
type: string;
|
|
60
60
|
value: ItemFilterParameterValue;
|
|
61
61
|
};
|
|
62
|
-
export type ItemFilterOrigin = 'filterFromVizItem' | 'filterFromFilterItem' | 'itemFilter' | 'global';
|
|
63
|
-
export type ItemQueryFilterExpression = '? = ?' | '? != ?' | '? in ?' | '? not in ?' | '? like ?' | '? not like ?' | '? starts with ?' | '? not starts with ?' | '? ends with ?' | '? not ends with ?' | '? < ?' | '? <= ?' | '? > ?' | '? >= ?' | '? between ?' | 'last_now' | 'to_date' | 'last_available' | 'last_completed' | 'next_now' | 'next_full' | 'more_than_ago' | 'or_more_ago' | 'ago' | 'WTD' | 'MTD' | 'QTD' | 'YTD' | '? is null' | '? is not null';
|
|
62
|
+
export type ItemFilterOrigin = 'filterFromVizItem' | 'filterFromFilterItem' | 'itemFilter' | 'global' | 'dashboardFilter';
|
|
63
|
+
export type ItemQueryFilterExpression = '? = ?' | '? != ?' | '? in ?' | '? not in ?' | '? like ?' | '? not like ?' | '? starts with ?' | '? not starts with ?' | '? ends with ?' | '? not ends with ?' | '? < ?' | '? <= ?' | '? > ?' | '? >= ?' | '? includes ?' | '? excludes ?' | '? includes all ?' | '? includes any ?' | '? includes only ?' | '? has value starting with ?' | '? has value ending with ?' | '? has value containing ?' | '? does not have value containing ?' | '? length = ?' | '? length >= ?' | '? length <= ?' | '? between ?' | 'last_now' | 'to_date' | 'last_available' | 'last_completed' | 'next_now' | 'next_full' | 'more_than_ago' | 'or_more_ago' | 'ago' | 'WTD' | 'MTD' | 'QTD' | 'YTD' | '? is null' | '? is not null';
|
|
64
64
|
export interface ItemFilterProperties {
|
|
65
65
|
/**
|
|
66
66
|
* @format uuid
|
|
@@ -79,7 +79,7 @@ export interface ItemFilterProperties {
|
|
|
79
79
|
* @format uuid
|
|
80
80
|
*/
|
|
81
81
|
itemId?: string;
|
|
82
|
-
ignore?: string[];
|
|
82
|
+
ignore?: string[] | null;
|
|
83
83
|
objects?: string[];
|
|
84
84
|
/**
|
|
85
85
|
* Specifies if the filter is a period-over-period comparison filter.
|
|
@@ -121,8 +121,15 @@ export interface ItemFilter {
|
|
|
121
121
|
columnId?: string;
|
|
122
122
|
/**
|
|
123
123
|
* @format uuid
|
|
124
|
+
* @TJS-ignore
|
|
125
|
+
* @deprecated use formulaId instead.
|
|
124
126
|
*/
|
|
125
127
|
formula_id?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Formula id
|
|
130
|
+
* @format uuid
|
|
131
|
+
*/
|
|
132
|
+
formulaId?: string;
|
|
126
133
|
level?: number;
|
|
127
134
|
lowestLevel?: number;
|
|
128
135
|
discretization?: ItemQueryDiscretization;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-filter-group.d.ts","sourceRoot":"","sources":["../../../../../../../libs/dashboard-contents-types/src/lib/shared/types/item-filter-group.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CAAC;AAGF,MAAM,MAAM,gBAAgB,GACxB,mBAAmB,GACnB,sBAAsB,GACtB,YAAY,GACZ,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"item-filter-group.d.ts","sourceRoot":"","sources":["../../../../../../../libs/dashboard-contents-types/src/lib/shared/types/item-filter-group.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,cAAc,CAAC,EAAE,uBAAuB,CAAC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAC7B;AAED,yFAAyF;AACzF,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,CAAC;AAEvE,oHAAoH;AACpH,MAAM,MAAM,oBAAoB,GAAG,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;AAExE,6EAA6E;AAC7E,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG,oBAAoB,CAAC;AAEtE,oGAAoG;AACpG,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,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G;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAED,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC;AAE1C,MAAM,MAAM,YAAY,GAAG,gBAAgB,CAAC;AAE5C,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC;AAEhC,MAAM,MAAM,gBAAgB,GAAG,yBAAyB,CAAC;AAEzD,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG,kBAAkB,CAAC"}
|
package/vite.config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../../../libs/dashboard-contents-types/vite.config.ts"],"names":[],"mappings":";AAMA,
|
|
1
|
+
{"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../../../libs/dashboard-contents-types/vite.config.ts"],"names":[],"mappings":";AAMA,wBAmEG"}
|