@pocketprep/types 1.19.4 → 1.19.6

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
@@ -52,8 +52,11 @@ export type RecommendationConfig = Parse.Object<Partial<RecommendationCTA> & {
52
52
  cadence: number
53
53
  premiumRequirement: PremiumRequirement
54
54
  ineligibleAfterQuizModes?: number[]
55
+ mobileButtonLabel?: string
55
56
  }>
56
57
 
58
+ export type RecommendationTip = Omit<Recommendation, 'config'>
59
+
57
60
  export type Recommendation = RecommendationCTA & {
58
61
  recommenderClass: string
59
62
  config: {
@@ -92,6 +95,7 @@ export type Quiz = Parse.Object<{
92
95
  examMetadata?: ExamMetadata | Parse.Pointer
93
96
  readiness?: ReadinessModelData[]
94
97
  recommendationConfig?: RecommendationConfig
98
+ secondaryRecommendationConfig?: RecommendationConfig
95
99
  }>
96
100
 
97
101
  export type QuizJSON = ReturnType<Quiz['toJSON']>
package/Study/Cloud.d.ts CHANGED
@@ -29,6 +29,7 @@ import {
29
29
  PrebuiltQuiz,
30
30
  UserExamBackgroundJSON,
31
31
  Recommendation,
32
+ RecommendationTip,
32
33
  ConceptQuizJSON,
33
34
  QuizJSON,
34
35
  } from './Class'
@@ -179,6 +180,19 @@ export type recordQuiz = (
179
180
  recommendedNext?: Recommendation
180
181
  }
181
182
 
183
+ export type recordQuizV2 = (
184
+ params: IRecordQuizPayload
185
+ ) => {
186
+ quiz: Quiz
187
+ globalMetrics: GlobalQuestionMetric[]
188
+ levelUpProgress?: TLevelUpProgress
189
+ feedback?: {
190
+ progressDescription?: string
191
+ }
192
+ tip: RecommendationTip | null
193
+ recommendedNext: Recommendation | null
194
+ }
195
+
182
196
  export type recordQuizAnswers = (params: {
183
197
  answers: IAnswer[]
184
198
  exam: IExam
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.19.4",
3
+ "version": "1.19.6",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",