@pocketprep/types 1.19.17 → 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
@@ -400,4 +400,12 @@ export type ExamContentPlan = Parse.Object<{
400
400
  removingReferences?: boolean
401
401
  }>
402
402
 
403
- 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.17",
3
+ "version": "1.19.18",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",