@pocketprep/types 1.15.12 → 1.15.14

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 CHANGED
@@ -483,7 +483,7 @@ export type Question = Parse.Object<{
483
483
  matrixLabels?: CMS.Class.IMatrixLabels
484
484
  matrixChoiceLayout?: string[][]
485
485
  passageLabel?: CMS.Class.TPassageLabel
486
- mpmcLabels?: CMS.Class.IMPMCLabels[]
486
+ mpmcLabels?: string[]
487
487
  }>
488
488
 
489
489
  export type QuestionJSON = ReturnType<Question['toJSON']>
@@ -863,3 +863,14 @@ export type PrebuiltQuiz = Parse.Object<{
863
863
  }>
864
864
 
865
865
  export type PrebuiltQuizJSON = ReturnType<PrebuiltQuiz['toJSON']>
866
+
867
+ export type UserExamBackground = Parse.Object<{
868
+ user: User | Parse.Pointer
869
+ examMetadata: ExamMetadata | Parse.Pointer
870
+ hasTakenExam?: boolean
871
+ hasTakenExamLastUpdated?: Date
872
+ passed?: boolean
873
+ passedLastUpdated?: Date
874
+ }>
875
+
876
+ export type UserExamBackgroundJSON = ReturnType<UserExamBackground['toJSON']>
package/Study/Cloud.d.ts CHANGED
@@ -27,6 +27,7 @@ import {
27
27
  OnboardingResult,
28
28
  UserExamMetadataJSON,
29
29
  PrebuiltQuiz,
30
+ UserExamBackgroundJSON,
30
31
  } from './Class'
31
32
 
32
33
  // DEPRECATED - previously used answer package for a quiz or qotd
@@ -797,4 +798,12 @@ export type fetchRecallQuizQuestions = (params: {
797
798
  examMetadataId: string
798
799
  includeMPMCQuestions?: boolean
799
800
  includeBuildListQuestions?: boolean
800
- }) => QuestionJSON[]
801
+ }) => QuestionJSON[]
802
+
803
+ export type SubmitExamResult = (params: { examMetadataId: string; passed: boolean }) => void
804
+
805
+ export type UpsertUserExamBackground = (params: {
806
+ examMetadataId: string
807
+ passed?: boolean
808
+ hasTakenExam?: boolean
809
+ }) => UserExamBackgroundJSON
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.15.12",
3
+ "version": "1.15.14",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",