@openframe-org/criteria-set-protocol 1.0.16 → 1.0.18
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 +3 -0
- package/dist/v1/types/criteria.d.ts +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,6 +22,9 @@ The library contains the types defined in the protocol v1 specification, and a s
|
|
|
22
22
|
|-------------------------------|-----------------------------------------------------|
|
|
23
23
|
| **Metadata types** | |
|
|
24
24
|
| `Metadata` | |
|
|
25
|
+
| `Quality` | |
|
|
26
|
+
| `QualityStyle` | |
|
|
27
|
+
| `Color` | |
|
|
25
28
|
| **Task tree types** | |
|
|
26
29
|
| `CriteriaTree` | |
|
|
27
30
|
| `Criterion` | |
|
|
@@ -59,9 +59,9 @@ export type Task = BaseElement<'task'> & {
|
|
|
59
59
|
description?: string;
|
|
60
60
|
items: TaskItem[];
|
|
61
61
|
};
|
|
62
|
-
export type TaskItem = Omit<BaseElement<'task-item'>, 'title'> & {
|
|
62
|
+
export type TaskItem<DefinitionType extends TaskItemDefinition = TaskItemDefinition> = Omit<BaseElement<'task-item'>, 'title'> & {
|
|
63
63
|
description?: string;
|
|
64
|
-
definition:
|
|
64
|
+
definition: DefinitionType;
|
|
65
65
|
providedData?: Record<string, TaskItemValue>;
|
|
66
66
|
calculatedData?: Record<string, any>;
|
|
67
67
|
};
|
|
@@ -90,6 +90,7 @@ export type PointOption = {
|
|
|
90
90
|
};
|
|
91
91
|
export type TaskItemScalarValue = string | number | boolean | null;
|
|
92
92
|
export type TaskItemValue = TaskItemScalarValue | Array<TaskItemScalarValue>;
|
|
93
|
+
export type TaskItemDefinition = SelectSingleType | SelectMultipleType | NumberType | BooleanType;
|
|
93
94
|
export type CriteriaTreeElement = Criterion | TaskGroup | Task | TaskItem;
|
|
94
95
|
export type CriteriaTreeElementType = 'criterion' | 'task-group' | 'task' | 'task-item';
|
|
95
96
|
export {};
|
package/package.json
CHANGED