@pocketprep/types 1.15.8 → 1.15.9

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/AI/Class.d.ts ADDED
@@ -0,0 +1 @@
1
+ export type Model = 'xgb_model' | 'rf_model'
package/AI/Cloud.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ import { Model } from './Class'
2
+
3
+ export type calculateReadiness = () => {
4
+ models: {
5
+ confidence: number
6
+ missingKeys: string[]
7
+ explanation?: {
8
+ feature: string
9
+ importance: number
10
+ }[]
11
+ model: Model
12
+ }[]
13
+ }
package/AI/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import * as Class from './Class'
2
+ import * as Cloud from './Cloud'
3
+
4
+ export { Class, Cloud }
package/Study/Class.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { IQuizAnswer, IStreakInfo, TChoiceKey } from './Cloud'
2
2
  import { Payload, Teach, CMS } from '../index'
3
3
  import { OrgStudent } from '../Teach/Class'
4
+ import { Model } from '../AI/Class'
4
5
 
5
6
  export type MagicToken = Parse.Object<{
6
7
  code: string
@@ -25,18 +26,6 @@ export type LevelUpProgress = {
25
26
  goal: number
26
27
  }
27
28
 
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
-
40
29
  export type Quiz = Parse.Object<{
41
30
  answers: IQuizAnswer[]
42
31
  correctCount: number
@@ -52,7 +41,14 @@ export type Quiz = Parse.Object<{
52
41
  levelUpProgress?: LevelUpProgress
53
42
  prebuiltQuiz?: PrebuiltQuiz | Parse.Pointer
54
43
  examMetadata?: ExamMetadata | Parse.Pointer
55
- readiness?: Readiness[]
44
+ readiness?: {
45
+ confidence: number
46
+ explanation: {
47
+ feature: string
48
+ importance: number
49
+ }[]
50
+ model: Model
51
+ }[]
56
52
  }>
57
53
 
58
54
  export type QuizJSON = ReturnType<Quiz['toJSON']>
package/index.d.ts CHANGED
@@ -2,11 +2,13 @@
2
2
  import * as Study from './Study'
3
3
  import * as CMS from './CMS'
4
4
  import * as Teach from './Teach'
5
+ import * as AI from './AI'
5
6
 
6
7
  export {
7
8
  Study,
8
9
  CMS,
9
10
  Teach,
11
+ AI,
10
12
  }
11
13
 
12
14
  export type Payload<T extends Parse.Object> = T extends Parse.Object<infer R>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.15.8",
3
+ "version": "1.15.9",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",