@digo-org/digo-api 1.0.40 → 1.0.41
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/README.md +2 -2
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/{types-viz-files.ts → types-code.ts} +1 -1
- package/src/types-common.ts +8 -7
- package/src/types-data.ts +1 -1
- package/src/types-llm.ts +2 -2
- package/src/types-misc.ts +3 -3
package/README.md
CHANGED
@@ -44,13 +44,13 @@ export class MyVisualization extends DigoAsset {
|
|
44
44
|
- [`DigoAsset`](src/digo-asset.ts) - Base class for visualization assets
|
45
45
|
|
46
46
|
### Data Definition
|
47
|
-
- [`
|
47
|
+
- [`DataTableDefinition`](src/types-data.ts) - Structure for tabular data
|
48
48
|
- [`Row`](src/types-data.ts), [`Column`](src/types-data.ts) - Data components
|
49
49
|
|
50
50
|
### Visualization Definition
|
51
51
|
- [`VizAssetDefinition`](src/types-viz.ts) - Visualization configuration
|
52
52
|
- [`Instance`](src/types-viz.ts) - Individual visualization instances
|
53
|
-
- [`
|
53
|
+
- [`CodeFiles`](src/types-code.ts) - File structure for viz assets
|
54
54
|
|
55
55
|
### Parameters
|
56
56
|
- [`ParameterType`](src/types-common.ts) - Available parameter types
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
@@ -8,7 +8,7 @@ export * from '@digo-org/digo-api/src/types-llm';
|
|
8
8
|
|
9
9
|
export * from '@digo-org/digo-api/src/types-viz';
|
10
10
|
|
11
|
-
export * from '@digo-org/digo-api/src/types-
|
11
|
+
export * from '@digo-org/digo-api/src/types-code';
|
12
12
|
|
13
13
|
export * from '@digo-org/digo-api/src/constants';
|
14
14
|
|
package/src/types-common.ts
CHANGED
@@ -18,13 +18,14 @@ export interface Parameter {
|
|
18
18
|
export type ParameterDefinition = ParameterNumber | ParameterBoolean | ParameterColor | ParameterText | ParameterGradient;
|
19
19
|
|
20
20
|
export interface ParameterNumber {
|
21
|
-
defaultValue:
|
22
|
-
min?:
|
23
|
-
max?:
|
24
|
-
icon?:
|
25
|
-
decimals?:
|
26
|
-
step?:
|
27
|
-
units?:
|
21
|
+
defaultValue: number;
|
22
|
+
min?: number;
|
23
|
+
max?: number;
|
24
|
+
icon?: string;
|
25
|
+
decimals?: number;
|
26
|
+
step?: number;
|
27
|
+
units?: string;
|
28
|
+
isScrollable?: boolean;
|
28
29
|
};
|
29
30
|
|
30
31
|
export interface ParameterGradient {
|
package/src/types-data.ts
CHANGED
package/src/types-llm.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { CommonMetadata,
|
1
|
+
import { CommonMetadata, DataTableDefinition, Links, VizAssetDefinition, CodeFiles } from '@digo-org/digo-api';
|
2
2
|
|
3
3
|
export type Artifacts = Partial<Record<ArtifactType, ArtifactValue>> & CommonMetadata;
|
4
4
|
|
@@ -10,7 +10,7 @@ export enum ArtifactType {
|
|
10
10
|
PROJECT_DEFINITION = 'PROJECT_DEFINITION',
|
11
11
|
}
|
12
12
|
|
13
|
-
export type ArtifactValue =
|
13
|
+
export type ArtifactValue = DataTableDefinition | CodeFiles | VizAssetDefinition | Links;
|
14
14
|
|
15
15
|
export interface MessagePart {
|
16
16
|
type: MessageType;
|
package/src/types-misc.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ArtifactType, ArtifactValue,
|
1
|
+
import { ArtifactType, ArtifactValue, DataTableDefinition, Instance, MessagePart, ParameterDefinition, ParameterValueArray, VizAssetDefinition, CodeFiles } from '@digo-org/digo-api';
|
2
2
|
|
3
3
|
export type Links = Record<string, string>; /* parameter-id -> column-id */
|
4
4
|
|
@@ -10,9 +10,9 @@ export interface CommonMetadata {
|
|
10
10
|
}
|
11
11
|
|
12
12
|
export interface ProjectDefinition {
|
13
|
-
|
13
|
+
dataTableDefinition: DataTableDefinition;
|
14
14
|
vizAssetDefinition: VizAssetDefinition;
|
15
|
-
|
15
|
+
codeFiles: CodeFiles;
|
16
16
|
links: Links;
|
17
17
|
}
|
18
18
|
|