@pocketprep/types 1.19.46 → 1.19.48

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.
@@ -1,21 +1,20 @@
1
- import { TMockExamStudyStats, TStudyStats } from '../Study/Cloud'
1
+ import { TStudyStatsByBank } from '../Study/Cloud'
2
+
3
+ export type StudyStatsBank = keyof TStudyStatsByBank
2
4
 
3
5
  export interface FetchStudyStatsParams {
4
6
  examMetadataId: string
7
+ banks?: StudyStatsBank[]
5
8
  }
6
9
 
7
10
  /**
8
11
  * The caller's study stats for one exam version. The same shape the Parse server returns under
9
12
  * `studyStats` from `fetchUserData-v2` and `recordQuiz-v2`, so a client renders either source
10
13
  * with one code path.
14
+ *
15
+ * Only the requested banks are present. `mockExam` is also absent until the user has taken a
16
+ * Mock Exam.
11
17
  */
12
18
  export interface FetchStudyStatsResponse {
13
- studyStats: {
14
- standard: Omit<TStudyStats, 'examCommunityAverage'>
15
- mockExam?: {
16
- overall: TMockExamStudyStats
17
- byMockExamId: { [mockExamId: string]: TMockExamStudyStats }
18
- }
19
- combined: Omit<TStudyStats, 'examCommunityAverage'>
20
- }
19
+ studyStats: Partial<TStudyStatsByBank>
21
20
  }
package/Study/Class.d.ts CHANGED
@@ -458,6 +458,7 @@ export type UserWebConfig = {
458
458
  hasSeenNotebookEngagementSurvey?: boolean
459
459
  hasSeenNotebookNonEngagementSurvey?: boolean
460
460
  hasSubmittedStudyGroupSurvey?: boolean
461
+ hasSeenStatsStudyGroupBanner?: boolean
461
462
  }
462
463
 
463
464
  export type UserQuizSettings = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.19.46",
3
+ "version": "1.19.48",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",