@pocketprep/types 1.14.1 → 1.14.3

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.
Files changed (2) hide show
  1. package/Study/Class.d.ts +11 -14
  2. package/package.json +1 -1
package/Study/Class.d.ts CHANGED
@@ -15,6 +15,14 @@ export type OrderedQuestions = Parse.Object<{
15
15
 
16
16
  export type OrderedQuestionsPayload = Payload<OrderedQuestions>
17
17
 
18
+ export type LevelUpProgress = {
19
+ subjectName: string
20
+ subjectId?: string
21
+ level: number
22
+ score: number
23
+ goal: number
24
+ }
25
+
18
26
  export type Quiz = Parse.Object<{
19
27
  answers: IQuizAnswer[]
20
28
  correctCount: number
@@ -27,13 +35,7 @@ export type Quiz = Parse.Object<{
27
35
  startedAt: Date
28
36
  user: User | Parse.Pointer
29
37
  readinessScore?: number
30
- levelUpProgress?: {
31
- subjectName: string
32
- subjectId?: string
33
- level: number
34
- score: number
35
- goal: number
36
- }
38
+ levelUpProgress?: LevelUpProgress
37
39
  prebuiltQuiz?: PrebuiltQuiz | Parse.Pointer
38
40
  }>
39
41
 
@@ -101,13 +103,7 @@ export type UserExamMetadata = Parse.Object<{
101
103
  disabledSubjects?: string[] // DEPRECATED
102
104
  disabledSubjectIds?: string[]
103
105
  streakInfo?: IStreakInfo
104
- levelUpProgress?: {
105
- subjectName: string
106
- subjectId?: string
107
- level: number
108
- score: number
109
- goal: number
110
- }[]
106
+ levelUpProgress?: LevelUpProgress[]
111
107
  levelUpResetDates?: Date[]
112
108
  aggregateStats?: UEMAggregateStats
113
109
  messageConfig?: MessageConfig
@@ -718,6 +714,7 @@ export type AggregateStats = Parse.Object<{
718
714
  counts: AggregateCounts
719
715
  surveyExamResult?: SurveyExamResult
720
716
  readinessStats?: ReadinessStats
717
+ statsVersion?: number
721
718
  }>
722
719
 
723
720
  export type PrebuiltQuiz = Parse.Object<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.14.1",
3
+ "version": "1.14.3",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",