@pocketprep/types 1.13.63 → 1.14.1
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 +17 -0
- package/Study/Class.d.ts +16 -1
- package/Study/Cloud.d.ts +1 -2
- 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,21 @@ 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
|
+
isUnfolding?: boolean
|
|
85
|
+
}>
|
|
86
|
+
|
|
87
|
+
export type QuestionScenarioDraftJSON = ReturnType<QuestionScenarioDraft['toJSON']>
|
|
88
|
+
|
|
89
|
+
export type QuestionScenarioDraftPayload = Payload<QuestionScenarioDraft>
|
|
90
|
+
|
|
74
91
|
export type User = Parse.User<{
|
|
75
92
|
username: string
|
|
76
93
|
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,26 @@ 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
|
+
isUnfolding?: boolean
|
|
423
|
+
}>
|
|
424
|
+
|
|
425
|
+
export type QuestionScenarioJSON = ReturnType<QuestionScenario['toJSON']>
|
|
426
|
+
|
|
412
427
|
export type KeywordDefinition = Parse.Object<{
|
|
413
428
|
examGuid: string
|
|
414
429
|
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
|