@openframe-org/criteria-set-protocol 1.0.7 → 1.0.9

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.
@@ -8,6 +8,7 @@ export type Metadata = {
8
8
  };
9
9
  export type CriteriaTree = Criterion[];
10
10
  export type Criterion = {
11
+ id?: string;
11
12
  quality: string;
12
13
  title: string;
13
14
  label?: string;
@@ -16,6 +17,7 @@ export type Criterion = {
16
17
  documentation?: Record<string, string[]>;
17
18
  };
18
19
  export type TaskGroup = {
20
+ id?: string;
19
21
  title: string;
20
22
  label?: string;
21
23
  tags?: string[];
@@ -23,8 +25,10 @@ export type TaskGroup = {
23
25
  documentation?: Record<string, string[]>;
24
26
  };
25
27
  export type Task = {
28
+ id?: string;
26
29
  title: string;
27
30
  label?: string;
31
+ description?: string;
28
32
  tags?: string[];
29
33
  items: TaskItem[];
30
34
  documentation?: Record<string, string[]>;
@@ -37,6 +41,8 @@ export type TaskItem = {
37
41
  tags?: string[];
38
42
  definition: SelectSingleType | SelectMultipleType | NumberType | BooleanType;
39
43
  documentation?: Record<string, string[]>;
44
+ providedData?: Record<string, TaskItemValue>;
45
+ calculatedData?: Record<string, any>;
40
46
  };
41
47
  export type SelectSingleType = {
42
48
  type: 'select-single';
@@ -58,7 +64,7 @@ export type BooleanType = {
58
64
  export type PointOption = {
59
65
  id?: string;
60
66
  label: string;
61
- value: number;
67
+ value: string | number | boolean | null;
62
68
  annotation?: string;
63
69
  };
64
70
  export type TaskItemValue = string | number | boolean | null | Array<string | number | boolean | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openframe-org/criteria-set-protocol",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "A protocol and tools for defining and working with criteria sets",
5
5
  "private": false,
6
6
  "author": "Andrés Angulo <aa@openframe.org>",