UNPKG

caccl-api

Version:

A class that defines a set of smart Canvas endpoints that actually behave how you'd expect them to.

34 lines (31 loc) 1.35 kB
import CanvasRubricAssessment from './CanvasRubricAssessment'; import CanvasRubricAssociation from './CanvasRubricAssociation'; import CanvasRubricCriterion from './CanvasRubricCriterion'; interface CanvasRubric { // the ID of the rubric id: number, // title of the rubric title: string, // the context owning the rubric context_id: number, context_type: string, points_possible: number, reusable?: boolean | null, read_only?: boolean | null, // whether or not free-form comments are used free_form_criterion_comments: boolean, hide_score_total?: boolean | null, // An array with all of this Rubric's grading Criteria data?: CanvasRubricCriterion[] | null, // If an assessment type is included in the 'include' parameter, includes an // array of rubric assessment objects for a given rubric, based on the // assessment type requested. If the user does not request an assessment type // this key will be absent. assessments?: CanvasRubricAssessment[] | null, // If an association type is included in the 'include' parameter, includes an // array of rubric association objects for a given rubric, based on the // association type requested. If the user does not request an association type // this key will be absent. associations?: CanvasRubricAssociation[] | null, }; export default CanvasRubric;