@pocketprep/types 1.15.13 → 1.15.15

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/CMS/Class.d.ts CHANGED
@@ -221,6 +221,7 @@ export interface IAllowedQuestionTypes {
221
221
  }
222
222
  mpmc: {
223
223
  allowed: boolean
224
+ numDistractors: number
224
225
  }
225
226
  }
226
227
 
package/Study/Class.d.ts CHANGED
@@ -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.13",
3
+ "version": "1.15.15",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",