@openframe-org/criteria-set-protocol 1.0.18 → 1.0.20

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.
@@ -38,7 +38,10 @@ export type LinkDocumentationItem = {
38
38
  text: string;
39
39
  };
40
40
  export type DocumentationItem = PdfDocumentationItem | InlineDocumentationItem | LinkDocumentationItem;
41
- export type CriteriaTree = Criterion[];
41
+ export type CriteriaTree = {
42
+ criteria: Criterion[];
43
+ result?: any;
44
+ };
42
45
  type BaseElement<Type extends CriteriaTreeElementType> = {
43
46
  type: Type;
44
47
  id: string;
@@ -61,6 +64,7 @@ export type Task = BaseElement<'task'> & {
61
64
  };
62
65
  export type TaskItem<DefinitionType extends TaskItemDefinition = TaskItemDefinition> = Omit<BaseElement<'task-item'>, 'title'> & {
63
66
  description?: string;
67
+ annotation?: string;
64
68
  definition: DefinitionType;
65
69
  providedData?: Record<string, TaskItemValue>;
66
70
  calculatedData?: Record<string, any>;
@@ -1,11 +1,12 @@
1
1
  /// <reference types="node" />
2
2
  import { Stream } from 'stream';
3
- import { Metadata, TaskItemValue } from './criteria';
3
+ import { CriteriaTree, Metadata, TaskItemValue } from './criteria';
4
4
  export type MetadataResponse<Parameters extends ParameterCombination = ParameterCombination> = {
5
5
  protocol: 1;
6
6
  metadata: Metadata;
7
7
  parameters: Parameters;
8
8
  };
9
+ export type CriteriaTreeResponse = CriteriaTree;
9
10
  export type StringParam<ParamName extends string> = Record<ParamName, string>;
10
11
  export type TaskItemValueMap = Record<string, TaskItemValue>;
11
12
  export type TreeAndMatrixRequestBody = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openframe-org/criteria-set-protocol",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
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>",