@openframe-org/criteria-set-protocol 1.0.20 → 1.0.22
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.
|
@@ -7,10 +7,6 @@ export type QualityStyle = {
|
|
|
7
7
|
primaryColor: Color;
|
|
8
8
|
secondaryColor: Color;
|
|
9
9
|
};
|
|
10
|
-
export type Quality = {
|
|
11
|
-
code: string;
|
|
12
|
-
style?: QualityStyle;
|
|
13
|
-
};
|
|
14
10
|
export type Metadata = {
|
|
15
11
|
id: string;
|
|
16
12
|
version: string;
|
|
@@ -18,7 +14,6 @@ export type Metadata = {
|
|
|
18
14
|
name: string;
|
|
19
15
|
description: string;
|
|
20
16
|
documentation?: string;
|
|
21
|
-
qualities?: Quality[];
|
|
22
17
|
};
|
|
23
18
|
export type PdfDocumentationItem = {
|
|
24
19
|
type: 'pdf';
|
|
@@ -39,7 +34,7 @@ export type LinkDocumentationItem = {
|
|
|
39
34
|
};
|
|
40
35
|
export type DocumentationItem = PdfDocumentationItem | InlineDocumentationItem | LinkDocumentationItem;
|
|
41
36
|
export type CriteriaTree = {
|
|
42
|
-
|
|
37
|
+
qualities: Quality[];
|
|
43
38
|
result?: any;
|
|
44
39
|
};
|
|
45
40
|
type BaseElement<Type extends CriteriaTreeElementType> = {
|
|
@@ -51,8 +46,12 @@ type BaseElement<Type extends CriteriaTreeElementType> = {
|
|
|
51
46
|
documentation?: DocumentationItem[];
|
|
52
47
|
data: Record<string, any>;
|
|
53
48
|
};
|
|
49
|
+
export type Quality = Pick<BaseElement<'quality'>, 'type' | 'tags' | 'documentation' | 'data'> & {
|
|
50
|
+
title?: string;
|
|
51
|
+
style?: QualityStyle;
|
|
52
|
+
};
|
|
54
53
|
export type Criterion = BaseElement<'criterion'> & {
|
|
55
|
-
quality:
|
|
54
|
+
quality: Quality;
|
|
56
55
|
items: TaskGroup[];
|
|
57
56
|
};
|
|
58
57
|
export type TaskGroup = BaseElement<'task-group'> & {
|
|
@@ -96,5 +95,5 @@ export type TaskItemScalarValue = string | number | boolean | null;
|
|
|
96
95
|
export type TaskItemValue = TaskItemScalarValue | Array<TaskItemScalarValue>;
|
|
97
96
|
export type TaskItemDefinition = SelectSingleType | SelectMultipleType | NumberType | BooleanType;
|
|
98
97
|
export type CriteriaTreeElement = Criterion | TaskGroup | Task | TaskItem;
|
|
99
|
-
export type CriteriaTreeElementType = 'criterion' | 'task-group' | 'task' | 'task-item';
|
|
98
|
+
export type CriteriaTreeElementType = 'quality' | 'criterion' | 'task-group' | 'task' | 'task-item';
|
|
100
99
|
export {};
|
package/package.json
CHANGED