@pocketprep/types 1.14.14 → 1.14.16

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/Cloud.d.ts CHANGED
@@ -6,6 +6,10 @@ import {
6
6
  QuestionHistoryJSON,
7
7
  QuestionStats,
8
8
  TPassageLabel,
9
+ KnowledgeAreaDraftJSON,
10
+ QuestionScenarioDraftJSON,
11
+ MockExamDraftJSON,
12
+ ExamDraftJSON,
9
13
  } from './Class'
10
14
  import {
11
15
  GlobalQuestionMetricJSON,
@@ -162,7 +166,7 @@ export type createBundle = (params: BundlePayload) => string
162
166
 
163
167
  export type fetchExams = () => ExamMetadata[]
164
168
 
165
- export type fetchMockExams = (params: { examMetadataId: string }) => MockExam[]
169
+ export type fetchMockExams = (params: { examMetadataId?: string }) => MockExam[]
166
170
 
167
171
  export type fetchExam = (params: { examId: string }) => ExamMetadata | undefined
168
172
 
@@ -340,4 +344,30 @@ export type getBloomLevelForQuestion = (params: {
340
344
  questionDraftId: string
341
345
  }) => Promise<BloomTaxonomyLevel>
342
346
 
343
- export type updateRedisQuestions = (params: { compositeKey: string }) => void
347
+ export type updateRedisQuestions = (params: { compositeKey: string }) => void
348
+
349
+ export type exportExamMetadata = (params: {
350
+ examDraft: ExamDraftJSON
351
+ freeCount: number
352
+ archivedCount: number
353
+ totalCount: number
354
+ examKnowledgeAreas: {
355
+ [kaName: string]: {
356
+ name: string
357
+ count: number
358
+ specialCount: number
359
+ }
360
+ }
361
+ }) => string
362
+
363
+ export type exportQuestionData = (params: {
364
+ examMetadataId: string
365
+ questions: QuestionDraftJSON[]
366
+ subjects: KnowledgeAreaDraftJSON[]
367
+ questionScenarios: QuestionScenarioDraftJSON[]
368
+ mockExams: (MockExamDraftJSON & { isNewMockExam: boolean })[]
369
+ }) => void
370
+
371
+ export type deleteOldParseDataV2 = (params: {
372
+ examMetadataId: string
373
+ }) => void
package/Study/Class.d.ts CHANGED
@@ -501,20 +501,11 @@ export type MockExamJSON = ReturnType<MockExam['toJSON']>
501
501
  export type MockExamPayload = Payload<MockExam>
502
502
 
503
503
  export type ExamMetadata = Parse.Object<{
504
- majorUpdate?: 1 | 0
505
504
  hideReferences: boolean
506
505
  examGuid: string
507
- knowledgeAreas: {
508
- [key: string]: {
509
- name: string
510
- count: number
511
- specialCount: number
512
- }
513
- }
514
506
  archivedCount: number
515
- columnNames: string[]
516
- dirty: boolean
517
- specialQuestions: number
507
+ freeCount?: number // only optional until data is backfilled from specialCount
508
+ totalCount?: number // only optional until data is backfilled from itemCount
518
509
  nativeAppName: string
519
510
  releaseInfo: {
520
511
  name: string
@@ -524,12 +515,22 @@ export type ExamMetadata = Parse.Object<{
524
515
  descriptiveName: string
525
516
  version: string
526
517
  compositeKey: string
527
- classicQuestions: number
528
- itemCount: number
529
- appId: string
530
518
  description: string
531
519
  isFree: boolean
532
520
  mockExams?: (MockExam | Parse.Pointer)[]
521
+
522
+ // DEPRECATED FIELDS
523
+ appId: string
524
+ knowledgeAreas: {
525
+ [key: string]: {
526
+ name: string
527
+ count: number
528
+ specialCount: number
529
+ }
530
+ }
531
+ itemCount: number
532
+ classicQuestions: number
533
+ specialQuestions: number
533
534
  }>
534
535
 
535
536
  export type ExamMetadataJSON = ReturnType<ExamMetadata['toJSON']>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.14.14",
3
+ "version": "1.14.16",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",