@pocketprep/types 1.14.42 → 1.14.44
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 -3
- package/package.json +1 -1
package/Study/Class.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IQuizAnswer, IStreakInfo, TChoiceKey } from './Cloud'
|
|
2
2
|
import { Payload, Teach, CMS } from '../index'
|
|
3
|
+
import { OrgStudent } from '../Teach/Class'
|
|
3
4
|
|
|
4
5
|
export type MagicToken = Parse.Object<{
|
|
5
6
|
code: string
|
|
@@ -45,7 +46,7 @@ export type QuizJSON = ReturnType<Quiz['toJSON']>
|
|
|
45
46
|
export type QuizPayload = Payload<Quiz>
|
|
46
47
|
|
|
47
48
|
export type Platform = 'Android' | 'iOS' | 'Web'
|
|
48
|
-
export type OnboardingResult = 'Free' | 'Monthly' | 'Quarterly' | 'Yearly' | 'License'
|
|
49
|
+
export type OnboardingResult = 'Free' | 'Monthly' | 'Quarterly' | 'Yearly' | 'License' | 'Legacy'
|
|
49
50
|
export type UserConversion = Parse.Object<{
|
|
50
51
|
user: User | Parse.Pointer
|
|
51
52
|
mobileAppId?: string // eg com.pocketprep.app.ems
|
|
@@ -809,12 +810,14 @@ export type AggregateStatsPayload = Payload<AggregateStats>
|
|
|
809
810
|
|
|
810
811
|
export type PrebuiltQuiz = Parse.Object<{
|
|
811
812
|
name: string
|
|
812
|
-
key: string
|
|
813
813
|
questionSerials: string[]
|
|
814
814
|
creator: User | Parse.Pointer
|
|
815
|
-
orgGroup?: Teach.Class.OrgGroup | Parse.Pointer
|
|
816
815
|
organization?: Teach.Class.Organization | Parse.Pointer
|
|
817
816
|
examMetadata: ExamMetadata | Parse.Pointer
|
|
817
|
+
assignedOrgStudents?: (OrgStudent | Parse.Pointer)[]
|
|
818
|
+
dueDate?: Date
|
|
819
|
+
availableDate?: Date
|
|
820
|
+
status?: 'draft' | 'active' | 'deleted'
|
|
818
821
|
config: {
|
|
819
822
|
difficulties?: ('easy' | 'medium' | 'hard')[]
|
|
820
823
|
questionCount: number
|
|
@@ -825,8 +828,13 @@ export type PrebuiltQuiz = Parse.Object<{
|
|
|
825
828
|
incorrectCount: number
|
|
826
829
|
correctCount: number
|
|
827
830
|
attemptedAt: string
|
|
831
|
+
durationSeconds?: number
|
|
828
832
|
}[]
|
|
829
833
|
}
|
|
834
|
+
|
|
835
|
+
// DEPRECATED
|
|
836
|
+
orgGroup?: Teach.Class.OrgGroup | Parse.Pointer
|
|
837
|
+
key?: string
|
|
830
838
|
}>
|
|
831
839
|
|
|
832
840
|
export type PrebuiltQuizJSON = ReturnType<PrebuiltQuiz['toJSON']>
|