@pocketprep/types 1.8.5 → 1.8.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.
Files changed (2) hide show
  1. package/Study/Class.d.ts +37 -0
  2. package/package.json +1 -1
package/Study/Class.d.ts CHANGED
@@ -274,6 +274,43 @@ export type UserJSON = ReturnType<User['toJSON']>
274
274
 
275
275
  export type UserPayload = Payload<User>
276
276
 
277
+ export type Subject = Parse.Object<{
278
+ name: string
279
+ isArchived: boolean
280
+ examMetadata: ExamMetadata | Parse.Pointer
281
+ }>
282
+
283
+ export type Question = Parse.Object<{
284
+ prompt: string
285
+ subject: Subject | Parse.Pointer
286
+ choices: {
287
+ text: string
288
+ isCorrect: boolean
289
+ id: string
290
+ }[]
291
+ passage?: string
292
+ passageImage?: {
293
+ url: string
294
+ altText: string
295
+ longAltText?: string
296
+ }
297
+ explanation?: string
298
+ explanationImage?: {
299
+ url: string
300
+ altText: string
301
+ longAltText?: string
302
+ }
303
+ references: string[]
304
+ serial: string
305
+ examMetadata: ExamMetadata | Parse.Pointer
306
+ compositeKey: string // leaving this for now as a replacement for `dirty` but will revisit later
307
+ type: 'Multiple Choice' | 'Multiple Correct Response' | 'True/False'
308
+ addedDate: Date
309
+ isArchived: boolean
310
+ isFree: boolean
311
+ isMockQuestion: boolean
312
+ }>
313
+
277
314
  export type ExamData = Parse.Object<{
278
315
  archived?: 0 | 1
279
316
  lastUpdated?: string // A date-formatted string...
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.8.5",
3
+ "version": "1.8.6",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",