@pocketprep/types 1.15.6 → 1.15.8

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/Study/Class.d.ts CHANGED
@@ -25,6 +25,18 @@ export type LevelUpProgress = {
25
25
  goal: number
26
26
  }
27
27
 
28
+ export type Models = 'xgb_model' | 'rf_model'
29
+
30
+ export type Readiness = {
31
+ failProbability: number
32
+ passProbability: number
33
+ explanation: {
34
+ feature: string
35
+ importance: number
36
+ }[]
37
+ model: Models
38
+ }
39
+
28
40
  export type Quiz = Parse.Object<{
29
41
  answers: IQuizAnswer[]
30
42
  correctCount: number
@@ -40,6 +52,7 @@ export type Quiz = Parse.Object<{
40
52
  levelUpProgress?: LevelUpProgress
41
53
  prebuiltQuiz?: PrebuiltQuiz | Parse.Pointer
42
54
  examMetadata?: ExamMetadata | Parse.Pointer
55
+ readiness?: Readiness[]
43
56
  }>
44
57
 
45
58
  export type QuizJSON = ReturnType<Quiz['toJSON']>
package/Study/Cloud.d.ts CHANGED
@@ -228,6 +228,8 @@ export type fetchQotDV4 = (params: {
228
228
  examGuid: string
229
229
  version: string
230
230
  includeMatrixQuestions?: boolean
231
+ includeMPMCQuestions?: boolean
232
+ includeBuildListQuestions?: boolean
231
233
  examMetadataId?: string
232
234
  }) => Question[]
233
235
 
@@ -237,6 +239,8 @@ export type fetchQotDV5 = (params: {
237
239
  examGuid: string
238
240
  version: string
239
241
  includeMatrixQuestions?: boolean
242
+ includeMPMCQuestions?: boolean
243
+ includeBuildListQuestions?: boolean
240
244
  examMetadataId?: string
241
245
  }) => QuestionJSON[]
242
246
 
@@ -268,6 +272,8 @@ export type fetchSharedQotdV3 = (params: {
268
272
  version: string
269
273
  examMetadataId?: string
270
274
  includeMatrixQuestions?: boolean
275
+ includeMPMCQuestions?: boolean
276
+ includeBuildListQuestions?: boolean
271
277
  }) => {
272
278
  bundle?: Bundle
273
279
  examMetadata: ExamMetadata
@@ -326,6 +332,8 @@ export type fetchQuizQuestionsV4 = (params: {
326
332
  incorrect?: boolean
327
333
  }
328
334
  includeMatrixQuestions?: boolean
335
+ includeMPMCQuestions?: boolean
336
+ includeBuildListQuestions?: boolean
329
337
  examMetadataId?: string
330
338
  }) => QuestionJSON[]
331
339
 
@@ -342,6 +350,8 @@ export type fetchQuizQuestionsV5 = (params: {
342
350
  incorrect?: boolean
343
351
  }
344
352
  includeMatrixQuestions?: boolean
353
+ includeMPMCQuestions?: boolean
354
+ includeBuildListQuestions?: boolean
345
355
  examMetadataId?: string
346
356
  }) => QuestionJSON[]
347
357
 
@@ -612,11 +622,19 @@ export type fetchMockExams = () => MockExam[]
612
622
 
613
623
  export type fetchMockExamQuestions = (params: { mockExamId: string }) => ExamData[]
614
624
 
615
- export type fetchMockExamQuestionsV2 =
616
- (params: { mockExamId: string; includeMatrixQuestions?: boolean }) => Question[]
625
+ export type fetchMockExamQuestionsV2 = (params: {
626
+ mockExamId: string
627
+ includeMatrixQuestions?: boolean
628
+ includeMPMCQuestions?: boolean
629
+ includeBuildListQuestions?: boolean
630
+ }) => Question[]
617
631
 
618
- export type fetchMockExamQuestionsV3 =
619
- (params: { mockExamId: string; includeMatrixQuestions?: boolean }) => QuestionJSON[]
632
+ export type fetchMockExamQuestionsV3 = (params: {
633
+ mockExamId: string
634
+ includeMatrixQuestions?: boolean
635
+ includeMPMCQuestions?: boolean
636
+ includeBuildListQuestions?: boolean
637
+ }) => QuestionJSON[]
620
638
 
621
639
  export type validateReferral = (params: { referralId: string }) => Referral | Stripe.Coupon
622
640
 
@@ -655,6 +673,8 @@ export type fetchLevelUpQuizQuestionsV2 = (params: {
655
673
  subjectId?: string
656
674
  lastResetDateISO?: string
657
675
  includeMatrixQuestions?: boolean
676
+ includeMPMCQuestions?: boolean
677
+ includeBuildListQuestions?: boolean
658
678
  examMetadataId?: string
659
679
  }) => QuestionJSON[]
660
680
 
@@ -667,6 +687,8 @@ export type fetchLevelUpQuizQuestionsV3 = (params: {
667
687
  subjectName?: string
668
688
  lastResetDateISO?: string
669
689
  includeMatrixQuestions?: boolean
690
+ includeMPMCQuestions?: boolean
691
+ includeBuildListQuestions?: boolean
670
692
  examMetadataId?: string
671
693
  }) => QuestionJSON[]
672
694
 
@@ -703,6 +725,8 @@ export type fetchReferralInfo = (params: { bundleId: string }) => {
703
725
 
704
726
  export type fetchPrebuiltQuizQuestions = (params: {
705
727
  prebuiltQuizId: string
728
+ includeMPMCQuestions?: boolean
729
+ includeBuildListQuestions?: boolean
706
730
  }) => {
707
731
  prebuiltQuiz: PrebuiltQuiz
708
732
  questions: QuestionJSON[]
@@ -711,12 +735,16 @@ export type fetchPrebuiltQuizQuestions = (params: {
711
735
  export type fetchQuestionsByExamV2 = (params: {
712
736
  compositeKey: string
713
737
  includeMatrixQuestions?: boolean
738
+ includeMPMCQuestions?: boolean
739
+ includeBuildListQuestions?: boolean
714
740
  examMetadataId?: string
715
741
  }) => Question[]
716
742
 
717
743
  export type fetchQuestionsByExamV3 = (params: {
718
744
  compositeKey: string
719
745
  includeMatrixQuestions?: boolean
746
+ includeMPMCQuestions?: boolean
747
+ includeBuildListQuestions?: boolean
720
748
  examMetadataId?: string
721
749
  }) => QuestionJSON[]
722
750
 
@@ -765,4 +793,8 @@ export type fetchUserExamMetadata = () => Promise<UserExamMetadataJSON[]>
765
793
 
766
794
  export type deleteUserExamData = (params: { examGuid: string }) => Promise<void>
767
795
 
768
- export type fetchRecallQuizQuestions = (params: { examMetadataId: string }) => QuestionJSON[]
796
+ export type fetchRecallQuizQuestions = (params: {
797
+ examMetadataId: string
798
+ includeMPMCQuestions?: boolean
799
+ includeBuildListQuestions?: boolean
800
+ }) => QuestionJSON[]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.15.6",
3
+ "version": "1.15.8",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",