@pocketprep/types 1.15.13 → 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 +11 -0
- package/Study/Cloud.d.ts +10 -1
- package/package.json +1 -1
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
|