@pocketprep/types 1.19.23 → 1.19.25
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/API/QuestionMetric.d.ts +32 -0
- package/API/index.d.ts +1 -0
- package/CMS/Class.d.ts +1 -2
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BaseResource } from './BaseResource'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Per-choice answer statistics. Keys follow Parse's `aX` (answers) / `dX`
|
|
5
|
+
* (distractors) form where X is 1-10; only the choices a question actually has
|
|
6
|
+
* are present.
|
|
7
|
+
*/
|
|
8
|
+
export type ChoiceStats = Partial<Record<string, number>>
|
|
9
|
+
|
|
10
|
+
/** Flat, Parse-free global answer statistics for a single question. */
|
|
11
|
+
export interface QuestionMetric extends BaseResource {
|
|
12
|
+
/** Stable exam identifier the metric belongs to. */
|
|
13
|
+
examGuid: string
|
|
14
|
+
/** Serial of the question these stats describe. */
|
|
15
|
+
questionSerial: string
|
|
16
|
+
answeredCorrectlyCount: number
|
|
17
|
+
answeredIncorrectlyCount: number
|
|
18
|
+
choiceStats: ChoiceStats
|
|
19
|
+
/** @deprecated Use examMetadataId instead. */
|
|
20
|
+
examMetadata?: string
|
|
21
|
+
examMetadataId?: string
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface SearchQuestionMetricsParams {
|
|
25
|
+
examMetadataId: string
|
|
26
|
+
/** Omit (or empty) to fetch every metric for the exam. */
|
|
27
|
+
serials?: string[]
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface SearchQuestionMetricsResponse {
|
|
31
|
+
questionMetrics: QuestionMetric[]
|
|
32
|
+
}
|
package/API/index.d.ts
CHANGED
package/CMS/Class.d.ts
CHANGED
|
@@ -398,6 +398,7 @@ export type ExamExportLog = Parse.Object<{
|
|
|
398
398
|
type: 'patch' | 'minor' | 'major'
|
|
399
399
|
user: User | Parse.Pointer
|
|
400
400
|
mockExams: ExamExportMockExam[]
|
|
401
|
+
version: string
|
|
401
402
|
sunsetAt?: Date
|
|
402
403
|
exportDiff?: ExportDiff
|
|
403
404
|
} & ExamExportQuestionTypeCounts>
|
|
@@ -420,7 +421,6 @@ export type ExamContentPlan = Parse.Object<{
|
|
|
420
421
|
planningStartDate?: Date
|
|
421
422
|
expectedExportDate?: Date
|
|
422
423
|
outlineDate?: Date
|
|
423
|
-
newOutline?: boolean
|
|
424
424
|
versionFrequency?: 'annually' | '2years' | '3years' | '4years'
|
|
425
425
|
| '5years' | '6years' | '7years' | '8years' | '9years'
|
|
426
426
|
objectives?: ('newExam' | 'newMockExam' | 'newQuestions'
|
|
@@ -428,7 +428,6 @@ export type ExamContentPlan = Parse.Object<{
|
|
|
428
428
|
| 'memberConcern' | 'referenceUpdate' | 'other')[]
|
|
429
429
|
upcomingJobSummary?: string
|
|
430
430
|
expectedExport?: 'major' | 'minor' | 'patch'
|
|
431
|
-
examLinks?: string
|
|
432
431
|
lead?: User | Parse.Pointer
|
|
433
432
|
expectedJobStartDate?: Date
|
|
434
433
|
updateToExamLinks?: boolean
|