@pocketprep/types 1.11.3 → 1.12.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.
Files changed (2) hide show
  1. package/Study/Class.d.ts +12 -0
  2. package/package.json +7 -7
package/Study/Class.d.ts CHANGED
@@ -60,6 +60,17 @@ 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
+ }
63
74
  export type UserExamMetadata = Parse.Object<{
64
75
  examGuid: string
65
76
  user: User | Parse.Pointer
@@ -77,6 +88,7 @@ export type UserExamMetadata = Parse.Object<{
77
88
  goal: number
78
89
  }[]
79
90
  levelUpResetDates?: Date[]
91
+ aggregateStats?: AggregateStats
80
92
  }>
81
93
 
82
94
  export type UserExamMetadataJSON = ReturnType<UserExamMetadata['toJSON']>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.11.3",
3
+ "version": "1.12.1",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,13 +22,13 @@
22
22
  },
23
23
  "homepage": "https://github.com/Pocket-Prep/types#readme",
24
24
  "dependencies": {
25
- "@types/parse": "3.0.4",
26
- "stripe": "12.10.0"
25
+ "@types/parse": "3.0.9",
26
+ "stripe": "14.8.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@typescript-eslint/eslint-plugin": "5.60.1",
30
- "@typescript-eslint/parser": "5.60.1",
31
- "eslint": "8.43.0",
32
- "typescript": "5.1.3"
29
+ "@typescript-eslint/eslint-plugin": "6.13.2",
30
+ "@typescript-eslint/parser": "6.13.2",
31
+ "eslint": "8.55.0",
32
+ "typescript": "5.3.3"
33
33
  }
34
34
  }