@pocketprep/types 1.13.63 → 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 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: string
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 = 'a1' | 'a2' | 'a3' | 'a4' | 'a5' | 'a6' | 'a7' | 'a8' | 'a9' |
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.13.63",
3
+ "version": "1.14.0",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",