This is a TypeScript library with types and implementations of the Criteria Set Protocol. It is published
publicly on npmjs as @openframe-org/criteria-set-protocol
.
npm install --save @openframe-org/criteria-set-protocol
The library contains a service to work with protocol versions, and an interface to interact with this service.
The library contains the types defined in the protocol v1 specification, and a service that implements this specification.
Type | Remarks |
---|---|
Metadata types | |
Metadata |
|
Quality |
|
QualityStyle |
|
Color |
|
Task tree types | |
CriteriaTree |
|
Quality |
|
Criterion |
|
TaskGroup |
|
Task |
|
TaskItem |
|
TaskItem value types | |
SelectSingleType |
|
SelectMultipleType |
|
NumberType |
|
BooleanType |
|
PointOption |
Used by SelectSingleType and SelectMultipleType
|
TaskItemValue |
The raw value of a TaskItem, which can be an array |
TaskItemScalarValue |
The raw value of a TaskItem |
Express types | |
MetadataResponse |
Metadata endpoint response body |
TreeAndMatrixRequestBody |
Request body for the matrix streaming endpoints |
StreamMatrixResponse |
Matrix streaming endpoints response body |
Validation schemas are provided for validating the endpoints of the protocol v1 specification.
Schema | Remarks |
---|---|
TreeAndMatrixBodySchema |
Validates the request body for the tree and matrix endpoints |
criteriaSetIdParamSchema |
Validates the criteriaSetId parameter for endpoints which use it |
versionParamSchema |
Validates the version parameter for endpoints which use it |
The IProtocolV1Service
interface defines a service which implements the v1 protocol.
Openframe Criteria Set Protocol by Openframe ApS is licensed under CC BY-ND 4.0