@openframe-org/criteria-set-protocol 1.0.4 → 1.0.6

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.
@@ -10,15 +10,15 @@ export interface IProtocolV1Service {
10
10
  /**
11
11
  * Get the criteria tree for the given criteria set ID and combination of parameters
12
12
  */
13
- getCriteriaTree(criteriaSetId: string, rawParameters: Record<string, unknown>): Promise<CriteriaTree>;
13
+ getCriteriaTree<Parameters>(criteriaSetId: string, parameters: Parameters, values: TaskItemValueMap, locale?: string): Promise<CriteriaTree>;
14
14
  /**
15
15
  * Validate the given parameters for the given criteria set ID
16
16
  */
17
- validateParameters<RequestParameters>(criteriaSetId: string, parameters: RequestParameters): void;
17
+ validateParameters<Parameters>(criteriaSetId: string, parameters: Parameters): void;
18
18
  /**
19
19
  * Stream the matrix for the given criteria set ID, parameter combination and value map
20
20
  */
21
- streamMatrix(criteriaSetId: string, rawParameters: Record<string, unknown>, values: TaskItemValueMap): Promise<StreamMatrixResponse>;
21
+ streamMatrix<Parameters>(criteriaSetId: string, parameters: Parameters, values: TaskItemValueMap, locale?: string): Promise<StreamMatrixResponse>;
22
22
  /**
23
23
  * Get the metadata of all criteria sets supported by this service
24
24
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openframe-org/criteria-set-protocol",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
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>",