@pocketprep/types 1.15.7 → 1.15.8

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
@@ -25,6 +25,18 @@ export type LevelUpProgress = {
25
25
  goal: number
26
26
  }
27
27
 
28
+ export type Models = 'xgb_model' | 'rf_model'
29
+
30
+ export type Readiness = {
31
+ failProbability: number
32
+ passProbability: number
33
+ explanation: {
34
+ feature: string
35
+ importance: number
36
+ }[]
37
+ model: Models
38
+ }
39
+
28
40
  export type Quiz = Parse.Object<{
29
41
  answers: IQuizAnswer[]
30
42
  correctCount: number
@@ -40,6 +52,7 @@ export type Quiz = Parse.Object<{
40
52
  levelUpProgress?: LevelUpProgress
41
53
  prebuiltQuiz?: PrebuiltQuiz | Parse.Pointer
42
54
  examMetadata?: ExamMetadata | Parse.Pointer
55
+ readiness?: Readiness[]
43
56
  }>
44
57
 
45
58
  export type QuizJSON = ReturnType<Quiz['toJSON']>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.15.7",
3
+ "version": "1.15.8",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",