@pocketprep/types 1.19.38 → 1.19.40
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/Study/Class.d.ts +11 -4
- package/Study/Cloud.d.ts +22 -10
- package/package.json +1 -1
package/Study/Class.d.ts
CHANGED
|
@@ -970,16 +970,23 @@ export type ComputedStudyStats = {
|
|
|
970
970
|
}
|
|
971
971
|
}
|
|
972
972
|
|
|
973
|
+
// Stats from a user's Mock Exam attempts
|
|
973
974
|
export type MockExamStudyStats = {
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
975
|
+
attemptsCount: number
|
|
976
|
+
totalAnswersCount: number // Summed across attempts
|
|
977
|
+
totalCorrectAnswersCount: number // Summed across attempts
|
|
978
|
+
averageScore: number // Avg of the attempts' scores
|
|
977
979
|
subjectStats: SubjectStudyStats[]
|
|
978
980
|
}
|
|
979
981
|
|
|
982
|
+
export type StudyStatsByMockExam = {
|
|
983
|
+
overall: MockExamStudyStats // Every attempt of every Mock Exam
|
|
984
|
+
byMockExamId: { [mockExamId: string]: MockExamStudyStats }
|
|
985
|
+
}
|
|
986
|
+
|
|
980
987
|
export type StudyStatsByBank = {
|
|
981
988
|
standard: ComputedStudyStats
|
|
982
|
-
mockExam
|
|
989
|
+
mockExam?: StudyStatsByMockExam // Absent until user has taken a Mock Exam
|
|
983
990
|
}
|
|
984
991
|
|
|
985
992
|
/**
|
package/Study/Cloud.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ import {
|
|
|
34
34
|
QuizJSON,
|
|
35
35
|
CrossPlatformConfig,
|
|
36
36
|
ComputedStudyStats,
|
|
37
|
+
MockExamStudyStats,
|
|
37
38
|
} from './Class'
|
|
38
39
|
|
|
39
40
|
// DEPRECATED - previously used answer package for a quiz or qotd
|
|
@@ -113,24 +114,24 @@ export interface IRecordQuizPayload {
|
|
|
113
114
|
/**
|
|
114
115
|
* The study stats a client renders on its stats page.
|
|
115
116
|
* Calculated on the server so that all clients show the same values.
|
|
116
|
-
*
|
|
117
|
-
* totalQuizzesCount/daysStudyingCount/studyingDurationSeconds are omitted on the Mock Exam bank
|
|
118
117
|
*/
|
|
119
|
-
export type TStudyStats = Omit<
|
|
120
|
-
ComputedStudyStats,
|
|
121
|
-
'unansweredCount' | 'totalQuizzesCount' | 'daysStudyingCount' | 'studyingDurationSeconds'
|
|
122
|
-
> & {
|
|
118
|
+
export type TStudyStats = Omit<ComputedStudyStats, 'unansweredCount'> & {
|
|
123
119
|
totalUnansweredCount: number
|
|
124
120
|
examCommunityAverage: number
|
|
125
121
|
weakestSubjectId?: string
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export type TMockExamStudyStats = MockExamStudyStats & {
|
|
125
|
+
weakestSubjectId?: string
|
|
129
126
|
}
|
|
130
127
|
|
|
131
128
|
export type TStudyStatsByBank = {
|
|
132
129
|
standard: TStudyStats
|
|
133
|
-
|
|
130
|
+
// Absent until the user has taken a Mock Exam
|
|
131
|
+
mockExam?: {
|
|
132
|
+
overall: TMockExamStudyStats & { examCommunityAverage: number }
|
|
133
|
+
byMockExamId: { [mockExamId: string]: TMockExamStudyStats }
|
|
134
|
+
}
|
|
134
135
|
combined: TStudyStats
|
|
135
136
|
}
|
|
136
137
|
|
|
@@ -403,6 +404,7 @@ export type fetchQuizQuestionsV5 = (params: {
|
|
|
403
404
|
includeMPMCQuestions?: boolean
|
|
404
405
|
includeBuildListQuestions?: boolean
|
|
405
406
|
examMetadataId?: string
|
|
407
|
+
conceptQuizIds?: string[]
|
|
406
408
|
}) => QuestionJSON[]
|
|
407
409
|
|
|
408
410
|
export type fetchFlaggedQuestionKnowledgeAreas =
|
|
@@ -881,6 +883,16 @@ export type fetchConceptQuizQuestions = (params: {
|
|
|
881
883
|
questionCount: number
|
|
882
884
|
}) => QuestionJSON[]
|
|
883
885
|
|
|
886
|
+
export type fetchBYOConcepts = (params: {
|
|
887
|
+
examMetadataId: string
|
|
888
|
+
}) => {
|
|
889
|
+
concepts: {
|
|
890
|
+
conceptQuizId: string
|
|
891
|
+
concept: string
|
|
892
|
+
serials: string[]
|
|
893
|
+
}[]
|
|
894
|
+
}
|
|
895
|
+
|
|
884
896
|
export type fetchReadinessReportDetails = (params: {
|
|
885
897
|
examMetadataId: string
|
|
886
898
|
}) => {
|