@pocketprep/types 1.19.21 → 1.19.23
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 +6 -1
- package/CMS/Cloud.d.ts +7 -0
- package/package.json +1 -1
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
|
|
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,
|
|
@@ -404,6 +405,8 @@ export type createExamExportLog = (params: ExamExportLogPayload) => void
|
|
|
404
405
|
|
|
405
406
|
export type fetchLatestExamExportLogs = () => { [examMetadataId: string]: ExamExportLogJSON }
|
|
406
407
|
|
|
408
|
+
export type fetchExamExportLogsForExamGuid = (params: { examGuid: string }) => ExamExportLogJSON[]
|
|
409
|
+
|
|
407
410
|
export type ExamContentPlanPayload = Omit<ExamContentPlanJSON, 'objectId' | 'createdAt' | 'updatedAt'>
|
|
408
411
|
|
|
409
412
|
export type upsertExamContentPlan = (params: ExamContentPlanPayload) => ExamContentPlanJSON
|
|
@@ -414,6 +417,8 @@ export type fetchExamContentPlanForExamGuid = (
|
|
|
414
417
|
params: { examGuid: string, includeHistoricalChanges?: boolean }
|
|
415
418
|
) => ExamContentPlanJSON
|
|
416
419
|
|
|
420
|
+
export type clearExamContentPlan = (params: { examGuid: string }) => ExamContentPlanJSON
|
|
421
|
+
|
|
417
422
|
export type fetchLatestMinorOrMajorExamExportLogIsoDates = () => { [examMetadataId: string]: string }
|
|
418
423
|
|
|
419
424
|
export type CommentPayload = Omit<CommentJSON, 'objectId' | 'createdAt' | 'updatedAt' | 'author'>
|
|
@@ -426,4 +431,6 @@ export type updateComment = (params: { objectId: string; body: string }) => Comm
|
|
|
426
431
|
|
|
427
432
|
export type deleteComment = (params: { objectId: string }) => true
|
|
428
433
|
|
|
434
|
+
export type createCompletedJobLog = (params: CompletedJobLogPayload) => void
|
|
435
|
+
|
|
429
436
|
export type fetchCompletedJobLogsForExamGuid = (params: { examGuid: string }) => CompletedJobLogJSON[]
|