@pocketprep/types 1.15.5 → 1.15.6
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 +14 -1
- package/CMS/Cloud.d.ts +1 -0
- package/Study/Class.d.ts +4 -0
- package/package.json +1 -1
package/CMS/Class.d.ts
CHANGED
|
@@ -13,6 +13,11 @@ export interface IMatrixLabels{
|
|
|
13
13
|
columns: string[]
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
export interface IMPMCLabels{
|
|
17
|
+
label: string
|
|
18
|
+
choices: string[] // d1, d2, d3, a1, etc.
|
|
19
|
+
}
|
|
20
|
+
|
|
16
21
|
export type TPassageLabel = 'Passage' | 'Case Study' | 'Patient Data' | 'Scenario'
|
|
17
22
|
|
|
18
23
|
export type QuestionDraft = Parse.Object<{
|
|
@@ -25,7 +30,8 @@ export type QuestionDraft = Parse.Object<{
|
|
|
25
30
|
bloomTaxonomyLevel?: Study.Class.BloomTaxonomyLevel
|
|
26
31
|
references?: string[]
|
|
27
32
|
explanation?: string
|
|
28
|
-
type: 'Multiple Choice' | 'Multiple Correct Response' | 'True/False' | 'Matrix Checkbox' | 'Matrix Radio Button'
|
|
33
|
+
type: 'Multiple Choice' | 'Multiple Correct Response' | 'True/False' | 'Matrix Checkbox' | 'Matrix Radio Button'
|
|
34
|
+
| 'Multi-Part Multiple Choice' | 'Build List'
|
|
29
35
|
jobStatus?: 'Writer' | 'Editor' | 'Completed'
|
|
30
36
|
isArchived: boolean
|
|
31
37
|
job?: Job | Parse.Pointer
|
|
@@ -67,6 +73,7 @@ export type QuestionDraft = Parse.Object<{
|
|
|
67
73
|
matrixLabels?: IMatrixLabels
|
|
68
74
|
matrixChoiceLayout?: string[][]
|
|
69
75
|
passageLabel?: TPassageLabel
|
|
76
|
+
mpmcLabels?: IMPMCLabels[]
|
|
70
77
|
}>
|
|
71
78
|
|
|
72
79
|
export type QuestionDraftJSON = ReturnType<QuestionDraft['toJSON']>
|
|
@@ -209,6 +216,12 @@ export interface IAllowedQuestionTypes {
|
|
|
209
216
|
tf: {
|
|
210
217
|
allowed: boolean
|
|
211
218
|
}
|
|
219
|
+
bl: {
|
|
220
|
+
allowed: boolean
|
|
221
|
+
}
|
|
222
|
+
mpmc: {
|
|
223
|
+
allowed: boolean
|
|
224
|
+
}
|
|
212
225
|
}
|
|
213
226
|
|
|
214
227
|
export interface ISupplementalInfoLabels {
|
package/CMS/Cloud.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ export interface JobWithMetrics {
|
|
|
61
61
|
export interface ExportableQuestion {
|
|
62
62
|
'Serial': string
|
|
63
63
|
'Type': 'Multiple Choice' | 'Multiple Correct Response' | 'True/False' | 'Matrix Checkbox' | 'Matrix Radio Button'
|
|
64
|
+
| 'Multi-Part Multiple Choice' | 'Build List'
|
|
64
65
|
'Status': 'Archived' | 'Complete'
|
|
65
66
|
'Classic': 1 | 0
|
|
66
67
|
'Is Special': 1 | 0
|
package/Study/Class.d.ts
CHANGED
|
@@ -443,6 +443,7 @@ export type Question = Parse.Object<{
|
|
|
443
443
|
text?: string
|
|
444
444
|
isCorrect: boolean
|
|
445
445
|
id: string
|
|
446
|
+
labelIndex?: number
|
|
446
447
|
}[]
|
|
447
448
|
passage?: string
|
|
448
449
|
passageImage?: {
|
|
@@ -461,6 +462,7 @@ export type Question = Parse.Object<{
|
|
|
461
462
|
examMetadata: ExamMetadata | Parse.Pointer
|
|
462
463
|
compositeKey: string // leaving this for now as a replacement for `dirty` but will revisit later
|
|
463
464
|
type: 'Multiple Choice' | 'Multiple Correct Response' | 'True/False' | 'Matrix Checkbox' | 'Matrix Radio Button'
|
|
465
|
+
| 'Multi-Part Multiple Choice' | 'Build List'
|
|
464
466
|
addedDate: Date
|
|
465
467
|
isArchived: boolean
|
|
466
468
|
isFree: boolean
|
|
@@ -469,6 +471,7 @@ export type Question = Parse.Object<{
|
|
|
469
471
|
matrixLabels?: CMS.Class.IMatrixLabels
|
|
470
472
|
matrixChoiceLayout?: string[][]
|
|
471
473
|
passageLabel?: CMS.Class.TPassageLabel
|
|
474
|
+
mpmcLabels?: CMS.Class.IMPMCLabels[]
|
|
472
475
|
}>
|
|
473
476
|
|
|
474
477
|
export type QuestionJSON = ReturnType<Question['toJSON']>
|
|
@@ -548,6 +551,7 @@ export type ExamData = Parse.Object<{
|
|
|
548
551
|
}
|
|
549
552
|
explanation?: string
|
|
550
553
|
type: 'Multiple Choice' | 'Multiple Correct Response' | 'True/False' | 'Matrix Checkbox' | 'Matrix Radio Button'
|
|
554
|
+
| 'Multi-Part Multiple Choice' | 'Build List'
|
|
551
555
|
subCategory?: string
|
|
552
556
|
isMockQuestion?: boolean
|
|
553
557
|
passageLabel?: CMS.Class.TPassageLabel
|