@pocketprep/types 1.12.4 → 1.13.1

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.
package/CMS/Class.d.ts CHANGED
@@ -13,6 +13,8 @@ export type QuestionDraft = Parse.Object<{
13
13
  distractors?: string[]
14
14
  answers?: string[]
15
15
  knowledgeAreaDraft?: KnowledgeAreaDraft | Parse.Pointer
16
+ subtopicId?: string
17
+ bloomTaxonomyLevel?: Study.Class.TBloomTaxonomyLevel
16
18
  references?: string[]
17
19
  explanation?: string
18
20
  type: 'Multiple Choice' | 'Multiple Correct Response' | 'True/False'
@@ -189,6 +191,7 @@ export type JobPayload = Payload<Job>
189
191
  export type KnowledgeAreaDraft = Parse.Object<{
190
192
  examDraft: ExamDraft | Parse.Pointer
191
193
  name: string
194
+ subtopics?: Study.Class.Subtopic[]
192
195
  isArchived: boolean
193
196
  subjectId?: string
194
197
  }>
package/Study/Class.d.ts CHANGED
@@ -67,8 +67,8 @@ export type SubjectInsight = {
67
67
  totalAnswers: number
68
68
  }
69
69
  export type AggregateStats = {
70
- correctAnswerSerials: string[]
71
- incorrectAnswerSerials: string[]
70
+ correctQuestionAnswerLib?: { [answerSerial: string]: TChoiceKey[] }
71
+ incorrectQuestionAnswerLib?: { [answerSerial: string]: TChoiceKey[] }
72
72
  durationSeconds: number
73
73
  }
74
74
  type MessageConfigOptions = {
@@ -343,13 +343,24 @@ export type Subject = Parse.Object<{
343
343
  name: string
344
344
  isArchived: boolean
345
345
  examMetadata: ExamMetadata | Parse.Pointer
346
+ subtopics?: Subtopic[]
346
347
  }>
347
348
 
348
349
  export type SubjectJSON = ReturnType<Subject['toJSON']>
349
350
 
351
+ // "Create" is another bloom taxonomy level that we don't currently use
352
+ export type TBloomTaxonomyLevel = 'None' | 'Remember' | 'Understand' | 'Apply' | 'Analyze' | 'Evaluate'
353
+
354
+ export type Subtopic = {
355
+ id: string
356
+ name: string
357
+ }
358
+
350
359
  export type Question = Parse.Object<{
351
360
  prompt: string
352
361
  subject: Subject | Parse.Pointer
362
+ subtopicId?: string
363
+ bloomTaxonomyLevel?: TBloomTaxonomyLevel
353
364
  choices: {
354
365
  text: string
355
366
  isCorrect: boolean
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.12.4",
3
+ "version": "1.13.1",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",