@pocketprep/types 1.19.14 → 1.19.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/Study/Class.d.ts CHANGED
@@ -54,6 +54,7 @@ export type RecommendationConfig = Parse.Object<Partial<RecommendationCTA> & {
54
54
  ineligibleAfterQuizModes?: number[]
55
55
  mobileButtonLabel?: string
56
56
  customConfig?: { sessionThresholdSeconds?: number; sessionWindowSeconds?: number } // TakeABreak tuning
57
+ isEnabled?: boolean
57
58
  }>
58
59
 
59
60
  export type RecommendationTip = Omit<Recommendation, 'config'>
@@ -337,6 +338,12 @@ export interface SubscriptionBase {
337
338
  source?: SubscriptionSource[keyof SubscriptionSource]
338
339
  days?: number
339
340
  paymentPlatform?: Platform
341
+ /**
342
+ * The user's `currentExamGuid` captured when this Subscription was created (the exam they were
343
+ * studying when they subscribed). Distinct from `SubscriptionExam.examGuid`, which is the exam
344
+ * a subscription grants access to. Backs the exam breakout on the Subscription Created event.
345
+ */
346
+ currentExamGuid?: string
340
347
  }
341
348
 
342
349
  export type SubscriptionExam = Parse.Object<SubscriptionBase & {
@@ -472,7 +479,14 @@ export type User = Parse.User<{
472
479
  quizSettings?: UserQuizSettings
473
480
  deleteRequestedDate?: Date
474
481
  currentUserExamMetadata?: UserExamMetadata | Parse.Pointer
475
- currentExamGuid?: string // DEPRECATED
482
+ /**
483
+ * The examGuid the user is currently studying. Kept in sync with `currentUserExamMetadata`
484
+ * on every exam switch (see App Server `user-utils.updateCurrentExam`).
485
+ * Actively used by analytics: read live when aggregating the Active Subscriptions event,
486
+ * captured onto the Subscription Created event, and persisted on each Subscription at creation
487
+ * (`Subscription.currentExamGuid`). Do not remove without updating those flows.
488
+ */
489
+ currentExamGuid?: string
476
490
  currentApp?: string // DEPRECATED
477
491
  customerIOBackup?: CustomerIOBackup | Parse.Pointer
478
492
  onboardingCompleted?: boolean
package/Study/Cloud.d.ts CHANGED
@@ -104,6 +104,7 @@ export interface IRecordQuizPayload {
104
104
  examMetadataId?: string
105
105
  includeRecommendedNext?: boolean
106
106
  includeReadiness?: boolean
107
+ includeConceptQuiz?: boolean
107
108
  }
108
109
 
109
110
  export type TLevelUpProgress = NonNullable<UserExamMetadataJSON['levelUpProgress']>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.19.14",
3
+ "version": "1.19.16",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",