@openframe-org/criteria-set-protocol
TypeScript icon, indicating that this package has built-in type declarations

1.5.8 • Public • Published

Frame ApS

Criteria Set Protocol

TypeScript library

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.

Installation

npm install --save @openframe-org/criteria-set-protocol

Contents

The library contains a service to work with protocol versions, and an interface to interact with this service.

Protocol v1

The library contains the types defined in the protocol v1 specification, and a service that implements this specification.

Types
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
Schemas

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
Services

The IProtocolV1Service interface defines a service which implements the v1 protocol.

License

Openframe Criteria Set Protocol by Openframe ApS is licensed under CC BY-ND 4.0

Readme

Keywords

none

Package Sidebar

Install

npm i @openframe-org/criteria-set-protocol

Weekly Downloads

65

Version

1.5.8

License

MIT

Unpacked Size

323 kB

Total Files

89

Last publish

Collaborators

  • andresangulo