@pocketprep/types 1.15.10 → 1.15.12

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.
Files changed (2) hide show
  1. package/Study/Class.d.ts +14 -17
  2. package/package.json +1 -1
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/Class'
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']>
@@ -122,14 +124,7 @@ export type UserExamMetadata = Parse.Object<{
122
124
  readinessScore?: number // DEPRECATED
123
125
  examMetadata?: ExamMetadata | Parse.Pointer
124
126
  hasCompletedFreeQuestionBank?: boolean
125
- readiness?: {
126
- confidence: number
127
- explanation: {
128
- feature: string
129
- importance: number
130
- }[]
131
- model: Model
132
- }[]
127
+ readiness?: ReadinessModelData[]
133
128
  }>
134
129
 
135
130
  export type UserExamMetadataJSON = ReturnType<UserExamMetadata['toJSON']>
@@ -714,6 +709,7 @@ export type SurveyExamResult = Parse.Object<{
714
709
  user: User | Parse.Pointer
715
710
  readinessScore?: number
716
711
  examMetadata?: ExamMetadata | Parse.Pointer
712
+ readiness?: ReadinessModelData[]
717
713
  }>
718
714
 
719
715
  export type ReadinessStats = {
@@ -835,6 +831,7 @@ export type AggregateStats = Parse.Object<{
835
831
  }>
836
832
 
837
833
  export type AggregateStatsPayload = Payload<AggregateStats>
834
+ export type AggregateStatsJSON = ReturnType<AggregateStats['toJSON']>
838
835
 
839
836
  export type PrebuiltQuiz = Parse.Object<{
840
837
  name: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.15.10",
3
+ "version": "1.15.12",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",