@pocketprep/types 1.12.0 → 1.12.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.
Files changed (2) hide show
  1. package/Study/Class.d.ts +13 -0
  2. package/package.json +1 -1
package/Study/Class.d.ts CHANGED
@@ -60,6 +60,18 @@ export type UserConversion = Parse.Object<{
60
60
  }>
61
61
  export type UserConversionPayload = Payload<UserConversion>
62
62
 
63
+ export type SubjectInsight = {
64
+ name: string
65
+ subjectId: string
66
+ correctAnswerCount: number
67
+ totalAnswers: number
68
+ }
69
+ export type AggregateStats = {
70
+ correctAnswerSerials: string[]
71
+ incorrectAnswerSerials: string[]
72
+ subjectInsights: SubjectInsight[]
73
+ durationSeconds: number
74
+ }
63
75
  export type UserExamMetadata = Parse.Object<{
64
76
  examGuid: string
65
77
  user: User | Parse.Pointer
@@ -77,6 +89,7 @@ export type UserExamMetadata = Parse.Object<{
77
89
  goal: number
78
90
  }[]
79
91
  levelUpResetDates?: Date[]
92
+ aggregateStats?: AggregateStats
80
93
  }>
81
94
 
82
95
  export type UserExamMetadataJSON = ReturnType<UserExamMetadata['toJSON']>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.12.0",
3
+ "version": "1.12.2",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",