@brighterly/lib-core-types 0.19.9 → 0.20.0
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.
|
@@ -8,7 +8,6 @@ export interface Experiments {
|
|
|
8
8
|
[ExperimentsCode.Exp79]: ExperimentValue;
|
|
9
9
|
[ExperimentsCode.Exp85]: ExperimentValue;
|
|
10
10
|
[ExperimentsCode.Exp86]: ExperimentValue;
|
|
11
|
-
[ExperimentsCode.Exp88]: ExperimentValue;
|
|
12
11
|
[ExperimentsCode.Exp90]: ExperimentValue;
|
|
13
12
|
[ExperimentsCode.Exp92]: ExperimentValue;
|
|
14
13
|
[ExperimentsCode.Exp105]: ExperimentValue;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AssessmentStatus, AssessmentType } from './enums';
|
|
2
|
-
import type { ContentBlock, DisciplineCode, Interaction, OutcomeKind, ResponseKind, RubricScoreMap } from './types';
|
|
2
|
+
import type { ContentBlock, DisciplineCode, Interaction, OutcomeKind, ResponseKind, RubricCatalog, RubricScoreMap, ScreenLayout } from './types';
|
|
3
3
|
export interface AssetRef {
|
|
4
4
|
url: string;
|
|
5
5
|
}
|
|
@@ -82,6 +82,24 @@ export interface Rubric {
|
|
|
82
82
|
label: string;
|
|
83
83
|
}[];
|
|
84
84
|
}
|
|
85
|
+
export interface ScoredRubricLevel {
|
|
86
|
+
score: number;
|
|
87
|
+
label: string;
|
|
88
|
+
description?: string;
|
|
89
|
+
}
|
|
90
|
+
export interface ScoredRubric extends Rubric {
|
|
91
|
+
kind?: 'scored';
|
|
92
|
+
levels: ScoredRubricLevel[];
|
|
93
|
+
instructions?: string;
|
|
94
|
+
standards?: string[];
|
|
95
|
+
}
|
|
96
|
+
export interface ObservationRubric {
|
|
97
|
+
id: string;
|
|
98
|
+
kind: 'observation';
|
|
99
|
+
name: string;
|
|
100
|
+
prompts: string[];
|
|
101
|
+
standards?: string[];
|
|
102
|
+
}
|
|
85
103
|
export interface Activity {
|
|
86
104
|
id: string;
|
|
87
105
|
content: ContentBlock[];
|
|
@@ -91,13 +109,21 @@ export interface Activity {
|
|
|
91
109
|
standard?: Standard;
|
|
92
110
|
rubrics?: string[];
|
|
93
111
|
}
|
|
112
|
+
export interface Screen {
|
|
113
|
+
id: string;
|
|
114
|
+
layout?: ScreenLayout;
|
|
115
|
+
content: ContentBlock[];
|
|
116
|
+
activities: Activity[];
|
|
117
|
+
cta?: string;
|
|
118
|
+
isLast?: boolean;
|
|
119
|
+
}
|
|
94
120
|
export interface Assessment {
|
|
95
121
|
id: string;
|
|
96
122
|
schemaVersion: number;
|
|
97
123
|
title: string;
|
|
98
124
|
disciplineCode: DisciplineCode;
|
|
99
125
|
grade: string;
|
|
100
|
-
|
|
126
|
+
screens: Screen[];
|
|
101
127
|
}
|
|
102
128
|
export interface Response {
|
|
103
129
|
activityId: string;
|
|
@@ -114,8 +140,9 @@ export interface AssessmentDocument {
|
|
|
114
140
|
definition: Assessment;
|
|
115
141
|
responses: Response[];
|
|
116
142
|
outcomes?: Outcome[];
|
|
117
|
-
rubrics?:
|
|
143
|
+
rubrics?: RubricCatalog;
|
|
118
144
|
rubricScores?: RubricScoreMap;
|
|
145
|
+
screenIdx?: number;
|
|
119
146
|
}
|
|
120
147
|
export interface StudentAssessmentDetail {
|
|
121
148
|
id: number;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import type { AudioBlock, AudioResponse, DragTheWords, FillInBlanks, ImageBlock, MultipleChoice, OpenEnded, TextBlock, Whiteboard } from './interfaces';
|
|
1
|
+
import type { AudioBlock, AudioResponse, DragTheWords, FillInBlanks, ImageBlock, MultipleChoice, ObservationRubric, OpenEnded, ScoredRubric, TextBlock, Whiteboard } from './interfaces';
|
|
2
2
|
export type DisciplineCode = 'MATH' | 'ELA';
|
|
3
3
|
export type ContentBlock = TextBlock | ImageBlock | AudioBlock;
|
|
4
|
+
export type ScreenLayout = 'single' | 'two-column';
|
|
5
|
+
export type ReviewRubric = ScoredRubric | ObservationRubric;
|
|
6
|
+
export type RubricCatalog = Record<string, ReviewRubric>;
|
|
4
7
|
export type Interaction = MultipleChoice | FillInBlanks | DragTheWords | OpenEnded | Whiteboard | AudioResponse;
|
|
5
8
|
export type InteractionType = Interaction['type'];
|
|
6
9
|
export type ResponseKind = 'answered' | 'idk' | 'blank';
|