@pocketprep/types 1.15.5 → 1.15.7
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/Study/Cloud.d.ts +37 -5
- 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
|
package/Study/Cloud.d.ts
CHANGED
|
@@ -228,6 +228,8 @@ export type fetchQotDV4 = (params: {
|
|
|
228
228
|
examGuid: string
|
|
229
229
|
version: string
|
|
230
230
|
includeMatrixQuestions?: boolean
|
|
231
|
+
includeMPMCQuestions?: boolean
|
|
232
|
+
includeBuildListQuestions?: boolean
|
|
231
233
|
examMetadataId?: string
|
|
232
234
|
}) => Question[]
|
|
233
235
|
|
|
@@ -237,6 +239,8 @@ export type fetchQotDV5 = (params: {
|
|
|
237
239
|
examGuid: string
|
|
238
240
|
version: string
|
|
239
241
|
includeMatrixQuestions?: boolean
|
|
242
|
+
includeMPMCQuestions?: boolean
|
|
243
|
+
includeBuildListQuestions?: boolean
|
|
240
244
|
examMetadataId?: string
|
|
241
245
|
}) => QuestionJSON[]
|
|
242
246
|
|
|
@@ -268,6 +272,8 @@ export type fetchSharedQotdV3 = (params: {
|
|
|
268
272
|
version: string
|
|
269
273
|
examMetadataId?: string
|
|
270
274
|
includeMatrixQuestions?: boolean
|
|
275
|
+
includeMPMCQuestions?: boolean
|
|
276
|
+
includeBuildListQuestions?: boolean
|
|
271
277
|
}) => {
|
|
272
278
|
bundle?: Bundle
|
|
273
279
|
examMetadata: ExamMetadata
|
|
@@ -326,6 +332,8 @@ export type fetchQuizQuestionsV4 = (params: {
|
|
|
326
332
|
incorrect?: boolean
|
|
327
333
|
}
|
|
328
334
|
includeMatrixQuestions?: boolean
|
|
335
|
+
includeMPMCQuestions?: boolean
|
|
336
|
+
includeBuildListQuestions?: boolean
|
|
329
337
|
examMetadataId?: string
|
|
330
338
|
}) => QuestionJSON[]
|
|
331
339
|
|
|
@@ -342,6 +350,8 @@ export type fetchQuizQuestionsV5 = (params: {
|
|
|
342
350
|
incorrect?: boolean
|
|
343
351
|
}
|
|
344
352
|
includeMatrixQuestions?: boolean
|
|
353
|
+
includeMPMCQuestions?: boolean
|
|
354
|
+
includeBuildListQuestions?: boolean
|
|
345
355
|
examMetadataId?: string
|
|
346
356
|
}) => QuestionJSON[]
|
|
347
357
|
|
|
@@ -612,11 +622,19 @@ export type fetchMockExams = () => MockExam[]
|
|
|
612
622
|
|
|
613
623
|
export type fetchMockExamQuestions = (params: { mockExamId: string }) => ExamData[]
|
|
614
624
|
|
|
615
|
-
export type fetchMockExamQuestionsV2 =
|
|
616
|
-
|
|
625
|
+
export type fetchMockExamQuestionsV2 = (params: {
|
|
626
|
+
mockExamId: string
|
|
627
|
+
includeMatrixQuestions?: boolean
|
|
628
|
+
includeMPMCQuestions?: boolean
|
|
629
|
+
includeBuildListQuestions?: boolean
|
|
630
|
+
}) => Question[]
|
|
617
631
|
|
|
618
|
-
export type fetchMockExamQuestionsV3 =
|
|
619
|
-
|
|
632
|
+
export type fetchMockExamQuestionsV3 = (params: {
|
|
633
|
+
mockExamId: string
|
|
634
|
+
includeMatrixQuestions?: boolean
|
|
635
|
+
includeMPMCQuestions?: boolean
|
|
636
|
+
includeBuildListQuestions?: boolean
|
|
637
|
+
}) => QuestionJSON[]
|
|
620
638
|
|
|
621
639
|
export type validateReferral = (params: { referralId: string }) => Referral | Stripe.Coupon
|
|
622
640
|
|
|
@@ -655,6 +673,8 @@ export type fetchLevelUpQuizQuestionsV2 = (params: {
|
|
|
655
673
|
subjectId?: string
|
|
656
674
|
lastResetDateISO?: string
|
|
657
675
|
includeMatrixQuestions?: boolean
|
|
676
|
+
includeMPMCQuestions?: boolean
|
|
677
|
+
includeBuildListQuestions?: boolean
|
|
658
678
|
examMetadataId?: string
|
|
659
679
|
}) => QuestionJSON[]
|
|
660
680
|
|
|
@@ -667,6 +687,8 @@ export type fetchLevelUpQuizQuestionsV3 = (params: {
|
|
|
667
687
|
subjectName?: string
|
|
668
688
|
lastResetDateISO?: string
|
|
669
689
|
includeMatrixQuestions?: boolean
|
|
690
|
+
includeMPMCQuestions?: boolean
|
|
691
|
+
includeBuildListQuestions?: boolean
|
|
670
692
|
examMetadataId?: string
|
|
671
693
|
}) => QuestionJSON[]
|
|
672
694
|
|
|
@@ -703,6 +725,8 @@ export type fetchReferralInfo = (params: { bundleId: string }) => {
|
|
|
703
725
|
|
|
704
726
|
export type fetchPrebuiltQuizQuestions = (params: {
|
|
705
727
|
prebuiltQuizId: string
|
|
728
|
+
includeMPMCQuestions?: boolean
|
|
729
|
+
includeBuildListQuestions?: boolean
|
|
706
730
|
}) => {
|
|
707
731
|
prebuiltQuiz: PrebuiltQuiz
|
|
708
732
|
questions: QuestionJSON[]
|
|
@@ -711,12 +735,16 @@ export type fetchPrebuiltQuizQuestions = (params: {
|
|
|
711
735
|
export type fetchQuestionsByExamV2 = (params: {
|
|
712
736
|
compositeKey: string
|
|
713
737
|
includeMatrixQuestions?: boolean
|
|
738
|
+
includeMPMCQuestions?: boolean
|
|
739
|
+
includeBuildListQuestions?: boolean
|
|
714
740
|
examMetadataId?: string
|
|
715
741
|
}) => Question[]
|
|
716
742
|
|
|
717
743
|
export type fetchQuestionsByExamV3 = (params: {
|
|
718
744
|
compositeKey: string
|
|
719
745
|
includeMatrixQuestions?: boolean
|
|
746
|
+
includeMPMCQuestions?: boolean
|
|
747
|
+
includeBuildListQuestions?: boolean
|
|
720
748
|
examMetadataId?: string
|
|
721
749
|
}) => QuestionJSON[]
|
|
722
750
|
|
|
@@ -765,4 +793,8 @@ export type fetchUserExamMetadata = () => Promise<UserExamMetadataJSON[]>
|
|
|
765
793
|
|
|
766
794
|
export type deleteUserExamData = (params: { examGuid: string }) => Promise<void>
|
|
767
795
|
|
|
768
|
-
export type fetchRecallQuizQuestions = (params: {
|
|
796
|
+
export type fetchRecallQuizQuestions = (params: {
|
|
797
|
+
examMetadataId: string
|
|
798
|
+
includeMPMCQuestions?: boolean
|
|
799
|
+
includeBuildListQuestions?: boolean
|
|
800
|
+
}) => QuestionJSON[]
|