@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 +1 -0
- package/AI/Cloud.d.ts +13 -0
- package/AI/index.d.ts +4 -0
- package/Study/Class.d.ts +9 -13
- package/index.d.ts +2 -0
- package/package.json +1 -1
package/AI/Class.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Model = 'xgb_model' | 'rf_model'
|
package/AI/Cloud.d.ts
ADDED
package/AI/index.d.ts
ADDED
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?:
|
|
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>
|