@pocketprep/types 1.15.7 → 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
@@ -40,6 +41,14 @@ export type Quiz = Parse.Object<{
40
41
  levelUpProgress?: LevelUpProgress
41
42
  prebuiltQuiz?: PrebuiltQuiz | Parse.Pointer
42
43
  examMetadata?: ExamMetadata | Parse.Pointer
44
+ readiness?: {
45
+ confidence: number
46
+ explanation: {
47
+ feature: string
48
+ importance: number
49
+ }[]
50
+ model: Model
51
+ }[]
43
52
  }>
44
53
 
45
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.7",
3
+ "version": "1.15.9",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",