@pocketprep/types 1.19.4 → 1.19.5

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
@@ -54,6 +54,8 @@ export type RecommendationConfig = Parse.Object<Partial<RecommendationCTA> & {
54
54
  ineligibleAfterQuizModes?: number[]
55
55
  }>
56
56
 
57
+ export type RecommendationTip = Omit<Recommendation, 'config'>
58
+
57
59
  export type Recommendation = RecommendationCTA & {
58
60
  recommenderClass: string
59
61
  config: {
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.5",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",