@pocketprep/types 1.13.62 → 1.14.0
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 +16 -0
- package/Study/Class.d.ts +15 -1
- package/Study/Cloud.d.ts +18 -5
- package/package.json +1 -1
package/CMS/Class.d.ts
CHANGED
|
@@ -62,6 +62,8 @@ export type QuestionDraft = Parse.Object<{
|
|
|
62
62
|
copyleaksId?: string
|
|
63
63
|
copyleaksScore?: ICopyleaksScore
|
|
64
64
|
lastUpdatedBy?: CMS.Class.User | Parse.Pointer
|
|
65
|
+
keywords?: string[]
|
|
66
|
+
questionScenarioDraft?: QuestionScenarioDraft | Parse.Pointer
|
|
65
67
|
matrixLabels?: IMatrixLabels
|
|
66
68
|
matrixChoiceLayout?: string[][]
|
|
67
69
|
passageLabel?: TPassageLabel
|
|
@@ -71,6 +73,20 @@ export type QuestionDraftJSON = ReturnType<QuestionDraft['toJSON']>
|
|
|
71
73
|
|
|
72
74
|
export type QuestionDraftPayload = Payload<QuestionDraft>
|
|
73
75
|
|
|
76
|
+
export type QuestionScenarioDraft = Parse.Object<{
|
|
77
|
+
examDraft: ExamDraft | Parse.Pointer
|
|
78
|
+
key: string
|
|
79
|
+
questionDrafts: {
|
|
80
|
+
serial: string
|
|
81
|
+
}[]
|
|
82
|
+
sharedPassage?: string
|
|
83
|
+
questionScenarioId?: string
|
|
84
|
+
}>
|
|
85
|
+
|
|
86
|
+
export type QuestionScenarioDraftJSON = ReturnType<QuestionScenarioDraft['toJSON']>
|
|
87
|
+
|
|
88
|
+
export type QuestionScenarioDraftPayload = Payload<QuestionScenarioDraft>
|
|
89
|
+
|
|
74
90
|
export type User = Parse.User<{
|
|
75
91
|
username: string
|
|
76
92
|
firstName: string
|
package/Study/Class.d.ts
CHANGED
|
@@ -379,7 +379,7 @@ export type Question = Parse.Object<{
|
|
|
379
379
|
subtopicId?: string
|
|
380
380
|
bloomTaxonomyLevel?: BloomTaxonomyLevel
|
|
381
381
|
choices: {
|
|
382
|
-
text
|
|
382
|
+
text?: string
|
|
383
383
|
isCorrect: boolean
|
|
384
384
|
id: string
|
|
385
385
|
}[]
|
|
@@ -404,11 +404,25 @@ export type Question = Parse.Object<{
|
|
|
404
404
|
isArchived: boolean
|
|
405
405
|
isFree: boolean
|
|
406
406
|
isMockQuestion: boolean
|
|
407
|
+
questionScenario?: QuestionScenario | Parse.Pointer
|
|
408
|
+
matrixLabels?: CMS.Class.IMatrixLabels
|
|
409
|
+
matrixChoiceLayout?: string[][]
|
|
407
410
|
passageLabel?: CMS.Class.TPassageLabel
|
|
408
411
|
}>
|
|
409
412
|
|
|
410
413
|
export type QuestionJSON = ReturnType<Question['toJSON']>
|
|
411
414
|
|
|
415
|
+
export type QuestionScenario = Parse.Object<{
|
|
416
|
+
examMetadata: ExamMetadata | Parse.Pointer
|
|
417
|
+
key: string
|
|
418
|
+
questions: {
|
|
419
|
+
serial: string
|
|
420
|
+
}[]
|
|
421
|
+
sharedPassage?: string
|
|
422
|
+
}>
|
|
423
|
+
|
|
424
|
+
export type QuestionScenarioJSON = ReturnType<QuestionScenario['toJSON']>
|
|
425
|
+
|
|
412
426
|
export type KeywordDefinition = Parse.Object<{
|
|
413
427
|
examGuid: string
|
|
414
428
|
serial: string
|
package/Study/Cloud.d.ts
CHANGED
|
@@ -57,8 +57,7 @@ export interface IExam {
|
|
|
57
57
|
isRetake: boolean
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
export type TChoiceKey =
|
|
61
|
-
'd1' | 'd2' | 'd3' | 'd4' | 'd5' | 'd6' | 'd7' | 'd8' | 'd9'
|
|
60
|
+
export type TChoiceKey = string
|
|
62
61
|
|
|
63
62
|
export interface IStreakDay {
|
|
64
63
|
day: string
|
|
@@ -568,9 +567,11 @@ export type fetchMockExams = () => MockExam[]
|
|
|
568
567
|
|
|
569
568
|
export type fetchMockExamQuestions = (params: { mockExamId: string }) => ExamData[]
|
|
570
569
|
|
|
571
|
-
export type fetchMockExamQuestionsV2 =
|
|
570
|
+
export type fetchMockExamQuestionsV2 =
|
|
571
|
+
(params: { mockExamId: string; includeMatrixQuestions?: boolean }) => Question[]
|
|
572
572
|
|
|
573
|
-
export type fetchMockExamQuestionsV3 =
|
|
573
|
+
export type fetchMockExamQuestionsV3 =
|
|
574
|
+
(params: { mockExamId: string; includeMatrixQuestions?: boolean }) => QuestionJSON[]
|
|
574
575
|
|
|
575
576
|
export type validateReferral = (params: { referralId: string }) => Referral | Stripe.Coupon
|
|
576
577
|
|
|
@@ -604,6 +605,7 @@ export type fetchLevelUpQuizQuestionsV2 = (params: {
|
|
|
604
605
|
subjectName?: string
|
|
605
606
|
subjectId?: string
|
|
606
607
|
lastResetDateISO?: string
|
|
608
|
+
includeMatrixQuestions?: boolean
|
|
607
609
|
}) => QuestionJSON[]
|
|
608
610
|
|
|
609
611
|
export type fetchLevelUpQuizQuestionsV3 = (params: {
|
|
@@ -614,6 +616,7 @@ export type fetchLevelUpQuizQuestionsV3 = (params: {
|
|
|
614
616
|
subjectId?: string
|
|
615
617
|
subjectName?: string
|
|
616
618
|
lastResetDateISO?: string
|
|
619
|
+
includeMatrixQuestions?: boolean
|
|
617
620
|
}) => QuestionJSON[]
|
|
618
621
|
|
|
619
622
|
export type fetchSubjectsWithLevels = (params: {
|
|
@@ -648,4 +651,14 @@ export type fetchReferralInfo = (params: { bundleId: string }) => {
|
|
|
648
651
|
export type fetchPrebuiltQuizQuestions = (params: { prebuiltQuizId: string }) => {
|
|
649
652
|
prebuiltQuiz: PrebuiltQuiz
|
|
650
653
|
questions: QuestionJSON[]
|
|
651
|
-
} | Quiz
|
|
654
|
+
} | Quiz
|
|
655
|
+
|
|
656
|
+
export type fetchQuestionsByExamV2 = (params: {
|
|
657
|
+
compositeKey: string
|
|
658
|
+
includeMatrixQuestions?: boolean
|
|
659
|
+
}) => Question[]
|
|
660
|
+
|
|
661
|
+
export type fetchQuestionsByExamV3 = (params: {
|
|
662
|
+
compositeKey: string
|
|
663
|
+
includeMatrixQuestions?: boolean
|
|
664
|
+
}) => QuestionJSON[]
|