@openframe-org/criteria-set-protocol 1.0.41 → 1.0.43
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 +9 -12
- package/package.json +1 -1
|
@@ -73,31 +73,28 @@ export type TaskGroup = BaseElement<'task-group'> & {
|
|
|
73
73
|
export type Task = BaseElement<'task'> & {
|
|
74
74
|
description?: string;
|
|
75
75
|
items: TaskItem[];
|
|
76
|
-
itemGroups?: string[];
|
|
77
76
|
};
|
|
78
|
-
export type TaskItem<DefinitionType extends TaskItemDefinition = TaskItemDefinition> = Omit<BaseElement<'task-item'>, 'title'> & {
|
|
79
|
-
description?: string;
|
|
77
|
+
export type TaskItem<DefinitionType extends TaskItemDefinition | TaskItemDefinition[] = TaskItemDefinition | TaskItemDefinition[]> = Omit<BaseElement<'task-item'>, 'title'> & {
|
|
80
78
|
annotation?: string;
|
|
81
79
|
definition: DefinitionType;
|
|
82
80
|
providedData?: Record<string, TaskItemValue>;
|
|
83
81
|
};
|
|
84
|
-
export type
|
|
85
|
-
type:
|
|
82
|
+
export type AbstractDefinition<Type extends 'select-single' | 'select-multiple' | 'number' | 'boolean'> = {
|
|
83
|
+
type: Type;
|
|
84
|
+
description?: string;
|
|
85
|
+
};
|
|
86
|
+
export type SelectSingleType = AbstractDefinition<'select-single'> & {
|
|
86
87
|
options: PointOption[];
|
|
87
88
|
};
|
|
88
|
-
export type SelectMultipleType = {
|
|
89
|
-
type: 'select-multiple';
|
|
89
|
+
export type SelectMultipleType = AbstractDefinition<'select-multiple'> & {
|
|
90
90
|
options: PointOption[];
|
|
91
91
|
};
|
|
92
|
-
export type NumberType = {
|
|
93
|
-
type: 'number';
|
|
92
|
+
export type NumberType = AbstractDefinition<'number'> & {
|
|
94
93
|
minimum?: number;
|
|
95
94
|
maximum?: number;
|
|
96
95
|
step?: number;
|
|
97
96
|
};
|
|
98
|
-
export type BooleanType =
|
|
99
|
-
type: 'boolean';
|
|
100
|
-
};
|
|
97
|
+
export type BooleanType = AbstractDefinition<'boolean'>;
|
|
101
98
|
export type PointOption = {
|
|
102
99
|
id?: string;
|
|
103
100
|
label: string;
|
package/package.json
CHANGED