@pocketprep/types 1.19.21 → 1.19.22

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
@@ -449,14 +449,19 @@ export type Comment = Parse.Object<{
449
449
  export type CommentJSON = ReturnType<Comment['toJSON']>
450
450
 
451
451
  export type CompletedJobLog = Parse.Object<{
452
- objective: string
452
+ objective?: string
453
453
  questionBank: string
454
454
  writer?: User
455
455
  editor?: User
456
456
  startDate: Date
457
+ completedDate: Date
457
458
  dueDate?: Date
458
459
  summary: string
460
+ examGuid: string
461
+ examMetadataId?: string
459
462
  questionTypeCounts: ExamExportQuestionTypeCounts
460
463
  }>
461
464
 
465
+ export type CompletedJobLogPayload = Payload<CompletedJobLog>
466
+
462
467
  export type CompletedJobLogJSON = ReturnType<CompletedJobLog['toJSON']>
package/CMS/Cloud.d.ts CHANGED
@@ -14,6 +14,7 @@ import {
14
14
  ExamContentPlanJSON,
15
15
  CommentJSON,
16
16
  CompletedJobLogJSON,
17
+ CompletedJobLogPayload,
17
18
  } from './Class'
18
19
  import {
19
20
  GlobalQuestionMetricJSON,
@@ -414,6 +415,8 @@ export type fetchExamContentPlanForExamGuid = (
414
415
  params: { examGuid: string, includeHistoricalChanges?: boolean }
415
416
  ) => ExamContentPlanJSON
416
417
 
418
+ export type clearExamContentPlan = (params: { examGuid: string }) => ExamContentPlanJSON
419
+
417
420
  export type fetchLatestMinorOrMajorExamExportLogIsoDates = () => { [examMetadataId: string]: string }
418
421
 
419
422
  export type CommentPayload = Omit<CommentJSON, 'objectId' | 'createdAt' | 'updatedAt' | 'author'>
@@ -426,4 +429,6 @@ export type updateComment = (params: { objectId: string; body: string }) => Comm
426
429
 
427
430
  export type deleteComment = (params: { objectId: string }) => true
428
431
 
432
+ export type createCompletedJobLog = (params: CompletedJobLogPayload) => void
433
+
429
434
  export type fetchCompletedJobLogsForExamGuid = (params: { examGuid: string }) => CompletedJobLogJSON[]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.19.21",
3
+ "version": "1.19.22",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",