@pocketprep/types 1.13.55 → 1.13.57

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
@@ -34,6 +34,7 @@ export type Quiz = Parse.Object<{
34
34
  score: number
35
35
  goal: number
36
36
  }
37
+ prebuiltQuiz?: PrebuiltQuiz | Parse.Pointer
37
38
  }>
38
39
 
39
40
  export type QuizJSON = ReturnType<Quiz['toJSON']>
@@ -319,6 +320,7 @@ export type UserWebConfig = {
319
320
  seenStatsMissedQsMessageCount?: number
320
321
  seenMissedQsQuizModalMessageCount?: number
321
322
  hasSeenSSOTransitionModal?: boolean
323
+ hasSeenAssignmentSurveyModal?: boolean
322
324
  }
323
325
 
324
326
  export type UserQuizSettings = {
@@ -699,4 +701,28 @@ export type AggregateStats = Parse.Object<{
699
701
  counts: AggregateCounts
700
702
  surveyExamResult?: SurveyExamResult
701
703
  readinessStats?: ReadinessStats
702
- }>
704
+ }>
705
+
706
+ export type PrebuiltQuiz = Parse.Object<{
707
+ name: string
708
+ key: string
709
+ questionSerials: string[]
710
+ creator: User | Parse.Pointer
711
+ orgGroup?: Teach.Class.OrgGroup | Parse.Pointer
712
+ organization?: Teach.Class.Organization | Parse.Pointer
713
+ examMetadata: ExamMetadata | Parse.Pointer
714
+ config: {
715
+ difficulties?: ('easy' | 'medium' | 'hard')[]
716
+ questionCount: number
717
+ subjectIds?: string[]
718
+ }
719
+ attempts: {
720
+ [userId: string]: {
721
+ incorrectCount: number
722
+ correctCount: number
723
+ attemptedAt: string
724
+ }[]
725
+ }
726
+ }>
727
+
728
+ export type PrebuiltQuizJSON = ReturnType<PrebuiltQuiz['toJSON']>
package/Study/Cloud.d.ts CHANGED
@@ -26,6 +26,7 @@ import {
26
26
  Platform,
27
27
  OnboardingResult,
28
28
  UserExamMetadataJSON,
29
+ PrebuiltQuiz,
29
30
  } from './Class'
30
31
 
31
32
  // DEPRECATED - previously used answer package for a quiz or qotd
@@ -94,6 +95,7 @@ export interface IRecordQuizPayload {
94
95
  levelSubjectName?: string
95
96
  levelSubjectId?: string
96
97
  appBundleId?: string
98
+ prebuiltQuizId?: string
97
99
  }
98
100
 
99
101
  export type TLevelUpProgress = NonNullable<UserExamMetadataJSON['levelUpProgress']>
@@ -637,4 +639,9 @@ export type resetLevelUpProgress = (params: {
637
639
  export type fetchReferralInfo = (params: { bundleId: string }) => {
638
640
  redeemedUsersCount: number
639
641
  code: string
640
- }
642
+ }
643
+
644
+ export type fetchPrebuiltQuizQuestions = (params: { prebuiltQuizId: string }) => {
645
+ prebuiltQuiz: PrebuiltQuiz
646
+ questions: QuestionJSON[]
647
+ } | Quiz
package/Teach/Cloud.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { Study } from 'types'
2
+
1
3
  export interface StudentStats {
2
4
  isLoading?: boolean
3
5
  correctAnswerCount: number
@@ -49,3 +51,34 @@ export type fetchStudentStats = (params: {
49
51
  studentId: string
50
52
  compositeKey: string
51
53
  }) => StudentStats
54
+
55
+ export type createAssignment = (params: {
56
+ name: string
57
+ examGuid: string
58
+ majorVersion: string
59
+ organizationId: string
60
+ orgGroupId: string
61
+ questionIds?: string[]
62
+ config: {
63
+ difficulties?: ('easy' | 'medium' | 'hard')[]
64
+ questionCount?: number
65
+ subjectIds?: string[]
66
+ }
67
+ }) => Study.Class.PrebuiltQuiz
68
+
69
+ export type fetchQuestionDifficultyCounts = (params: {
70
+ examGuid: string
71
+ majorVersion: string
72
+ }) => {
73
+ [subjectId: string]: {
74
+ easy: number
75
+ medium: number
76
+ hard: number
77
+ }
78
+ }
79
+
80
+ export type fetchAssignments = (params: {
81
+ organizationId: string
82
+ }) => {
83
+ [assignmentId: string]: Study.Class.PrebuiltQuiz
84
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.13.55",
3
+ "version": "1.13.57",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",