@digo-org/digo-api 1.0.32 → 1.0.33

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@digo-org/digo-api",
3
3
  "private": false,
4
- "version": "1.0.32",
4
+ "version": "1.0.33",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
7
7
  "types": "src/index.ts",
package/src/constants.ts CHANGED
@@ -3,5 +3,3 @@ export const API_MESSAGES = {
3
3
  updateInstances: 'UPDATE_INSTANCES',
4
4
  updateDefinition: 'UPDATE_DEFINITION',
5
5
  };
6
-
7
- export const KAKA = 'DIGO API';
package/src/index.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  export * from '@digo-org/digo-api/src/constants';
2
2
 
3
+ export * from '@digo-org/digo-api/src/digo-asset';
4
+
3
5
  export * from '@digo-org/digo-api/src/types-common';
4
6
 
5
- export * from '@digo-org/digo-api/src/types-misc';
7
+ export * from '@digo-org/digo-api/src/types-data';
6
8
 
7
- export * from '@digo-org/digo-api/src/types-viz';
9
+ export * from '@digo-org/digo-api/src/types-misc';
8
10
 
9
11
  export * from '@digo-org/digo-api/src/types-viz-files';
10
12
 
11
- export * from '@digo-org/digo-api/src/types-data';
12
-
13
- export * from '@digo-org/digo-api/src/digo-asset';
13
+ export * from '@digo-org/digo-api/src/types-viz';
@@ -34,6 +34,7 @@ export interface ParameterGradient {
34
34
  export interface ParameterText {
35
35
  defaultValue: string;
36
36
  placeholder?: string;
37
+ autofocus?: boolean;
37
38
  };
38
39
 
39
40
  export interface ParameterColor {
@@ -44,14 +45,6 @@ export interface ParameterBoolean {
44
45
  defaultValue: boolean;
45
46
  };
46
47
 
47
- export interface ParameterArray {
48
- defaultValue: ParameterValueArray;
49
- definition: ParameterDefinition;
50
- labels: string[];
51
- };
52
-
53
- // VALUE
54
-
55
48
  export type ParameterValue = ParameterValueSingle | ParameterValueArray;
56
49
 
57
50
  export type ParameterValueSingle = number | boolean | string | GradientStop[];
@@ -62,3 +55,9 @@ export interface GradientStop {
62
55
  color: string; // hex
63
56
  percent: number;
64
57
  }
58
+
59
+ export interface Option {
60
+ id: string;
61
+ value: string;
62
+ icon?: string;
63
+ }
package/src/types-data.ts CHANGED
@@ -2,18 +2,18 @@ import { Parameter, ParameterValue } from '@digo-org/digo-api';
2
2
 
3
3
  export interface DataAssetDefinition {
4
4
  timeArray: string[];
5
- variables: Variable[];
6
- entities: Entity[];
5
+ columns: Column[];
6
+ rows: Row[];
7
7
  }
8
8
 
9
- export interface Entity {
10
- id: string;
11
- name: string;
12
- hidden: boolean;
13
- [variableId: string]: ParameterValue;
9
+ export interface Row {
10
+ id: string;
11
+ name: string;
12
+ hidden: boolean;
13
+ [columnId: string]: ParameterValue;
14
14
  }
15
15
 
16
- export interface Variable extends Parameter {
16
+ export interface Column extends Parameter {
17
17
  id: string;
18
18
  name: string;
19
19
  }
package/src/types-misc.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ParameterDefinition } from '@digo-org/digo-api';
1
+ import { ParameterDefinition, ParameterValueArray } from '@digo-org/digo-api';
2
2
 
3
3
  export interface CommonMetadata {
4
4
  name: string;
@@ -12,3 +12,9 @@ export interface ParameterTypeDefinition {
12
12
  icon: string;
13
13
  defaultValue: ParameterDefinition;
14
14
  }
15
+
16
+ export interface ParameterArray {
17
+ defaultValue: ParameterValueArray;
18
+ definition: ParameterDefinition;
19
+ labels: string[];
20
+ };