@pocketprep/types 1.19.47 → 1.19.49

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
@@ -421,6 +421,7 @@ export type MessageName = 'sunsetWillDiscontinue'
421
421
  | 'teachMinorNewQuestions'
422
422
  | 'teachMinorNewMockExams'
423
423
  | 'examDateBanner'
424
+ | 'examDateConfirmBanner'
424
425
 
425
426
  export type UserWebConfig = {
426
427
  hasSeenOnboarding?: boolean
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.19.47",
3
+ "version": "1.19.49",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",