@pocketprep/types 1.13.54 → 1.13.56
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 +3 -0
- package/CMS/Cloud.d.ts +2 -0
- package/Study/Class.d.ts +30 -2
- package/Study/Cloud.d.ts +8 -1
- package/Teach/Cloud.d.ts +33 -0
- package/package.json +1 -1
package/CMS/Class.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ export interface IMatrixLabels{
|
|
|
13
13
|
columns: string[]
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
export type TPassageLabel = 'Passage' | 'Case Study' | 'Patient Data' | 'Scenario'
|
|
17
|
+
|
|
16
18
|
export type QuestionDraft = Parse.Object<{
|
|
17
19
|
prompt?: string
|
|
18
20
|
examDataId?: string
|
|
@@ -62,6 +64,7 @@ export type QuestionDraft = Parse.Object<{
|
|
|
62
64
|
lastUpdatedBy?: CMS.Class.User | Parse.Pointer
|
|
63
65
|
matrixLabels?: IMatrixLabels
|
|
64
66
|
matrixChoiceLayout?: string[][]
|
|
67
|
+
passageLabel?: TPassageLabel
|
|
65
68
|
}>
|
|
66
69
|
|
|
67
70
|
export type QuestionDraftJSON = ReturnType<QuestionDraft['toJSON']>
|
package/CMS/Cloud.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
S3Manifest,
|
|
6
6
|
QuestionHistoryJSON,
|
|
7
7
|
QuestionStats,
|
|
8
|
+
TPassageLabel,
|
|
8
9
|
} from './Class'
|
|
9
10
|
import {
|
|
10
11
|
GlobalQuestionMetricJSON,
|
|
@@ -102,6 +103,7 @@ export interface ExportableQuestion {
|
|
|
102
103
|
longAltText?: string
|
|
103
104
|
}
|
|
104
105
|
}
|
|
106
|
+
'Passage Label'?: TPassageLabel
|
|
105
107
|
}
|
|
106
108
|
|
|
107
109
|
export interface ExportData {
|
package/Study/Class.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IQuizAnswer, IStreakInfo, TChoiceKey } from './Cloud'
|
|
2
|
-
import { Payload, Teach } from '../index'
|
|
2
|
+
import { Payload, Teach, CMS } from '../index'
|
|
3
3
|
|
|
4
4
|
export type MagicToken = Parse.Object<{
|
|
5
5
|
code: string
|
|
@@ -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 = {
|
|
@@ -400,6 +402,7 @@ export type Question = Parse.Object<{
|
|
|
400
402
|
isArchived: boolean
|
|
401
403
|
isFree: boolean
|
|
402
404
|
isMockQuestion: boolean
|
|
405
|
+
passageLabel?: CMS.Class.TPassageLabel
|
|
403
406
|
}>
|
|
404
407
|
|
|
405
408
|
export type QuestionJSON = ReturnType<Question['toJSON']>
|
|
@@ -467,6 +470,7 @@ export type ExamData = Parse.Object<{
|
|
|
467
470
|
type: 'Multiple Choice' | 'Multiple Correct Response' | 'True/False' | 'Matrix Checkbox' | 'Matrix Radio Button'
|
|
468
471
|
subCategory?: string
|
|
469
472
|
isMockQuestion?: boolean
|
|
473
|
+
passageLabel?: CMS.Class.TPassageLabel
|
|
470
474
|
}>
|
|
471
475
|
|
|
472
476
|
export type ExamDataJSON = ReturnType<ExamData['toJSON']>
|
|
@@ -697,4 +701,28 @@ export type AggregateStats = Parse.Object<{
|
|
|
697
701
|
counts: AggregateCounts
|
|
698
702
|
surveyExamResult?: SurveyExamResult
|
|
699
703
|
readinessStats?: ReadinessStats
|
|
700
|
-
}>
|
|
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
|
+
}
|