@pocketprep/types 1.15.9 → 1.15.10

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 CHANGED
@@ -1,4 +1,25 @@
1
- import * as Class from './Class'
2
- import * as Cloud from './Cloud'
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
@@ -119,9 +119,17 @@ export type UserExamMetadata = Parse.Object<{
119
119
  levelUpResetDates?: Date[]
120
120
  aggregateStats?: UEMAggregateStats
121
121
  messageConfig?: MessageConfig
122
- readinessScore?: number
122
+ readinessScore?: number // DEPRECATED
123
123
  examMetadata?: ExamMetadata | Parse.Pointer
124
124
  hasCompletedFreeQuestionBank?: boolean
125
+ readiness?: {
126
+ confidence: number
127
+ explanation: {
128
+ feature: string
129
+ importance: number
130
+ }[]
131
+ model: Model
132
+ }[]
125
133
  }>
126
134
 
127
135
  export type UserExamMetadataJSON = ReturnType<UserExamMetadata['toJSON']>
@@ -750,6 +758,9 @@ export type ReadinessStats = {
750
758
  attemptsPerQuestion: number
751
759
  uniqueQuizzesRetaken: number
752
760
  totalRetakes: number
761
+ recentWeightedScoreMean: number
762
+ recentOverallAvgScore: number
763
+ recentAvgSecondsPerQuestion: number
753
764
  }
754
765
  type AnswerStats = {
755
766
  [serial: string]: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.15.9",
3
+ "version": "1.15.10",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",
package/AI/Class.d.ts DELETED
@@ -1 +0,0 @@
1
- export type Model = 'xgb_model' | 'rf_model'
package/AI/Cloud.d.ts DELETED
@@ -1,13 +0,0 @@
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
- }