@brighterly/lib-core-types 0.19.10 → 0.20.2

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.
@@ -1,3 +1,4 @@
1
+ import type { PaymentProvider } from '../subscription/enums.ts';
1
2
  import type { IconDefinition } from '@fortawesome/pro-solid-svg-icons';
2
3
  import type { PaymentLinkTitle } from './types';
3
4
  import type { PaymentMethodBrand, PaymentMethodType } from './enums';
@@ -14,6 +15,7 @@ export interface PaymentMethod {
14
15
  is_default: boolean;
15
16
  has_failed_subscriptions: boolean;
16
17
  type: PaymentMethodType;
18
+ provider?: PaymentProvider;
17
19
  details: {
18
20
  brand: PaymentMethodBrand;
19
21
  expiration_month: number;
@@ -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
- activities: Activity[];
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?: Record<string, Rubric>;
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brighterly/lib-core-types",
3
- "version": "0.19.10",
3
+ "version": "0.20.2",
4
4
  "description": "Official Brighterly lib-core-types",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",