@openframe-org/criteria-set-protocol 1.5.8 → 1.5.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.
- package/dist/v1/types/criteria.d.ts +10 -2
- package/package.json +1 -1
|
@@ -48,13 +48,20 @@ export type CriteriaTree = {
|
|
|
48
48
|
certificationDefinitions?: CertificationDefinition[];
|
|
49
49
|
result?: any;
|
|
50
50
|
};
|
|
51
|
+
export type ElementData = Record<string, any> & {
|
|
52
|
+
value: TaskItemValue;
|
|
53
|
+
text: string;
|
|
54
|
+
};
|
|
55
|
+
export type TaskItemData = ElementData & {
|
|
56
|
+
valueReference: string;
|
|
57
|
+
};
|
|
51
58
|
type BaseElement<Type extends CriteriaTreeElementType> = {
|
|
52
59
|
type: Type;
|
|
53
60
|
title: string;
|
|
54
61
|
code: string;
|
|
55
62
|
tags?: string[];
|
|
56
63
|
documentation?: DocumentationItem[];
|
|
57
|
-
data?:
|
|
64
|
+
data?: ElementData;
|
|
58
65
|
sortOrder?: number;
|
|
59
66
|
};
|
|
60
67
|
export type Quality = BaseElement<'quality'> & {
|
|
@@ -72,10 +79,11 @@ export type Task = BaseElement<'task'> & {
|
|
|
72
79
|
description?: string;
|
|
73
80
|
items: TaskItem[];
|
|
74
81
|
};
|
|
75
|
-
export type TaskItem = Omit<BaseElement<'task-item'>, 'title'> & {
|
|
82
|
+
export type TaskItem = Omit<BaseElement<'task-item'>, 'title' | 'data'> & {
|
|
76
83
|
definition: TaskItemDefinition;
|
|
77
84
|
description?: string;
|
|
78
85
|
providedData?: Record<string, TaskItemValue>;
|
|
86
|
+
data: TaskItemData;
|
|
79
87
|
};
|
|
80
88
|
export type AbstractDefinition<Type extends 'select-single' | 'select-multiple' | 'number' | 'boolean'> = {
|
|
81
89
|
type: Type;
|
package/package.json
CHANGED