@pocketprep/types 1.19.16 → 1.19.18

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
@@ -368,6 +368,8 @@ export type ExamExportLog = Parse.Object<{
368
368
  scenarioCount: number
369
369
  examMetadataId: string
370
370
  examGuid: string
371
+ outlineDate?: Date
372
+ examLinks?: string
371
373
  type: 'patch' | 'minor' | 'major'
372
374
  user: User | Parse.Pointer
373
375
  mockExams: ExamExportMockExam[]
@@ -398,4 +400,12 @@ export type ExamContentPlan = Parse.Object<{
398
400
  removingReferences?: boolean
399
401
  }>
400
402
 
401
- export type ExamContentPlanJSON = ReturnType<ExamContentPlan['toJSON']>
403
+ export type ExamContentPlanJSON = ReturnType<ExamContentPlan['toJSON']>
404
+
405
+ export type Comment = Parse.Object<{
406
+ examGuid: string
407
+ author: User | Parse.Pointer
408
+ body: string
409
+ }>
410
+
411
+ export type CommentJSON = ReturnType<Comment['toJSON']>
package/CMS/Cloud.d.ts CHANGED
@@ -12,6 +12,7 @@ import {
12
12
  ExamDraftJSON,
13
13
  ExamExportLogJSON,
14
14
  ExamContentPlanJSON,
15
+ CommentJSON,
15
16
  } from './Class'
16
17
  import {
17
18
  GlobalQuestionMetricJSON,
@@ -410,4 +411,14 @@ export type fetchExamContentPlans = () => ExamContentPlanJSON[]
410
411
 
411
412
  export type fetchExamContentPlanForExamGuid = (params: { examGuid: string }) => ExamContentPlanJSON
412
413
 
413
- export type fetchLatestMinorOrMajorExamExportLogIsoDates = () => { [examMetadataId: string]: string }
414
+ export type fetchLatestMinorOrMajorExamExportLogIsoDates = () => { [examMetadataId: string]: string }
415
+
416
+ export type CommentPayload = Omit<CommentJSON, 'objectId' | 'createdAt' | 'updatedAt' | 'author'>
417
+
418
+ export type createComment = (params: CommentPayload) => CommentJSON
419
+
420
+ export type fetchCommentsByExamGuid = (params: { examGuid: string }) => CommentJSON[]
421
+
422
+ export type updateComment = (params: { objectId: string; body: string }) => CommentJSON
423
+
424
+ export type deleteComment = (params: { objectId: string }) => true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.19.16",
3
+ "version": "1.19.18",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",