@pocketprep/types 1.12.3 → 1.13.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.
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
@@ -71,6 +71,18 @@ export type AggregateStats = {
71
71
  incorrectAnswerSerials: string[]
72
72
  durationSeconds: number
73
73
  }
74
+ type MessageConfigOptions = {
75
+ visibleStartingAt?: Date
76
+ lastSeen?: Date
77
+ hasClicked?: boolean
78
+ }
79
+ type MessageConfig = {
80
+ referral?: {
81
+ mockExamResults?: MessageConfigOptions
82
+ quizResults?: MessageConfigOptions
83
+ tenDayStreak?: MessageConfigOptions
84
+ }
85
+ }
74
86
  export type UserExamMetadata = Parse.Object<{
75
87
  examGuid: string
76
88
  user: User | Parse.Pointer
@@ -89,6 +101,7 @@ export type UserExamMetadata = Parse.Object<{
89
101
  }[]
90
102
  levelUpResetDates?: Date[]
91
103
  aggregateStats?: AggregateStats
104
+ messageConfig?: MessageConfig
92
105
  }>
93
106
 
94
107
  export type UserExamMetadataJSON = ReturnType<UserExamMetadata['toJSON']>
@@ -330,13 +343,24 @@ export type Subject = Parse.Object<{
330
343
  name: string
331
344
  isArchived: boolean
332
345
  examMetadata: ExamMetadata | Parse.Pointer
346
+ subtopics?: Subtopic[]
333
347
  }>
334
348
 
335
349
  export type SubjectJSON = ReturnType<Subject['toJSON']>
336
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
+
337
359
  export type Question = Parse.Object<{
338
360
  prompt: string
339
361
  subject: Subject | Parse.Pointer
362
+ subtopicId?: string
363
+ bloomTaxonomyLevel?: TBloomTaxonomyLevel
340
364
  choices: {
341
365
  text: string
342
366
  isCorrect: boolean
package/Study/Cloud.d.ts CHANGED
@@ -564,3 +564,7 @@ export type resetLevelUpProgress = (params: {
564
564
  majorVersion: string
565
565
  subjectNames?: string[]
566
566
  }) => TLevelUpProgress
567
+
568
+ export type fetchReferralStats = (params: { bundleId: string }) => {
569
+ redeemedUsersCount: number
570
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.12.3",
3
+ "version": "1.13.0",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",