@pocketprep/types 1.15.9 → 1.15.11
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/index.d.ts +24 -3
- package/Study/Class.d.ts +17 -10
- package/package.json +1 -1
- package/AI/Class.d.ts +0 -1
- package/AI/Cloud.d.ts +0 -13
package/AI/index.d.ts
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { ReadinessStats } from '../Study/Class'
|
|
2
|
+
|
|
3
|
+
export type Model = 'xgb_model' | 'rf_model'
|
|
4
|
+
|
|
5
|
+
export type calculateReadinessRequest = ReadinessStats & {
|
|
6
|
+
models: Model[],
|
|
7
|
+
explain?: boolean
|
|
8
|
+
examGuid: string
|
|
9
|
+
bundleId?: string
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type ReadinessModelResponse = {
|
|
13
|
+
confidence: number
|
|
14
|
+
missingKeys: string[]
|
|
15
|
+
explanation?: {
|
|
16
|
+
feature: string
|
|
17
|
+
importance: number
|
|
18
|
+
}[]
|
|
19
|
+
model: Model
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type calculateReadinessResponse = {
|
|
23
|
+
models: ReadinessModelResponse[]
|
|
24
|
+
}
|
|
3
25
|
|
|
4
|
-
export { Class, Cloud }
|
package/Study/Class.d.ts
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
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
|
|
4
|
+
import { Model } from '../AI'
|
|
5
|
+
|
|
6
|
+
export type ReadinessModelData = {
|
|
7
|
+
confidence: number
|
|
8
|
+
explanation: {
|
|
9
|
+
feature: string
|
|
10
|
+
importance: number
|
|
11
|
+
}[]
|
|
12
|
+
model: Model
|
|
13
|
+
}
|
|
5
14
|
|
|
6
15
|
export type MagicToken = Parse.Object<{
|
|
7
16
|
code: string
|
|
@@ -41,14 +50,7 @@ export type Quiz = Parse.Object<{
|
|
|
41
50
|
levelUpProgress?: LevelUpProgress
|
|
42
51
|
prebuiltQuiz?: PrebuiltQuiz | Parse.Pointer
|
|
43
52
|
examMetadata?: ExamMetadata | Parse.Pointer
|
|
44
|
-
readiness?:
|
|
45
|
-
confidence: number
|
|
46
|
-
explanation: {
|
|
47
|
-
feature: string
|
|
48
|
-
importance: number
|
|
49
|
-
}[]
|
|
50
|
-
model: Model
|
|
51
|
-
}[]
|
|
53
|
+
readiness?: ReadinessModelData[]
|
|
52
54
|
}>
|
|
53
55
|
|
|
54
56
|
export type QuizJSON = ReturnType<Quiz['toJSON']>
|
|
@@ -119,9 +121,10 @@ export type UserExamMetadata = Parse.Object<{
|
|
|
119
121
|
levelUpResetDates?: Date[]
|
|
120
122
|
aggregateStats?: UEMAggregateStats
|
|
121
123
|
messageConfig?: MessageConfig
|
|
122
|
-
readinessScore?: number
|
|
124
|
+
readinessScore?: number // DEPRECATED
|
|
123
125
|
examMetadata?: ExamMetadata | Parse.Pointer
|
|
124
126
|
hasCompletedFreeQuestionBank?: boolean
|
|
127
|
+
readiness?: ReadinessModelData[]
|
|
125
128
|
}>
|
|
126
129
|
|
|
127
130
|
export type UserExamMetadataJSON = ReturnType<UserExamMetadata['toJSON']>
|
|
@@ -706,6 +709,7 @@ export type SurveyExamResult = Parse.Object<{
|
|
|
706
709
|
user: User | Parse.Pointer
|
|
707
710
|
readinessScore?: number
|
|
708
711
|
examMetadata?: ExamMetadata | Parse.Pointer
|
|
712
|
+
readiness?: ReadinessModelData[]
|
|
709
713
|
}>
|
|
710
714
|
|
|
711
715
|
export type ReadinessStats = {
|
|
@@ -750,6 +754,9 @@ export type ReadinessStats = {
|
|
|
750
754
|
attemptsPerQuestion: number
|
|
751
755
|
uniqueQuizzesRetaken: number
|
|
752
756
|
totalRetakes: number
|
|
757
|
+
recentWeightedScoreMean: number
|
|
758
|
+
recentOverallAvgScore: number
|
|
759
|
+
recentAvgSecondsPerQuestion: number
|
|
753
760
|
}
|
|
754
761
|
type AnswerStats = {
|
|
755
762
|
[serial: string]: {
|
package/package.json
CHANGED
package/AI/Class.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type Model = 'xgb_model' | 'rf_model'
|
package/AI/Cloud.d.ts
DELETED