@pocketprep/types 1.19.14 → 1.19.15
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 +14 -1
- package/package.json +1 -1
package/Study/Class.d.ts
CHANGED
|
@@ -337,6 +337,12 @@ export interface SubscriptionBase {
|
|
|
337
337
|
source?: SubscriptionSource[keyof SubscriptionSource]
|
|
338
338
|
days?: number
|
|
339
339
|
paymentPlatform?: Platform
|
|
340
|
+
/**
|
|
341
|
+
* The user's `currentExamGuid` captured when this Subscription was created (the exam they were
|
|
342
|
+
* studying when they subscribed). Distinct from `SubscriptionExam.examGuid`, which is the exam
|
|
343
|
+
* a subscription grants access to. Backs the exam breakout on the Subscription Created event.
|
|
344
|
+
*/
|
|
345
|
+
currentExamGuid?: string
|
|
340
346
|
}
|
|
341
347
|
|
|
342
348
|
export type SubscriptionExam = Parse.Object<SubscriptionBase & {
|
|
@@ -472,7 +478,14 @@ export type User = Parse.User<{
|
|
|
472
478
|
quizSettings?: UserQuizSettings
|
|
473
479
|
deleteRequestedDate?: Date
|
|
474
480
|
currentUserExamMetadata?: UserExamMetadata | Parse.Pointer
|
|
475
|
-
|
|
481
|
+
/**
|
|
482
|
+
* The examGuid the user is currently studying. Kept in sync with `currentUserExamMetadata`
|
|
483
|
+
* on every exam switch (see App Server `user-utils.updateCurrentExam`).
|
|
484
|
+
* Actively used by analytics: read live when aggregating the Active Subscriptions event,
|
|
485
|
+
* captured onto the Subscription Created event, and persisted on each Subscription at creation
|
|
486
|
+
* (`Subscription.currentExamGuid`). Do not remove without updating those flows.
|
|
487
|
+
*/
|
|
488
|
+
currentExamGuid?: string
|
|
476
489
|
currentApp?: string // DEPRECATED
|
|
477
490
|
customerIOBackup?: CustomerIOBackup | Parse.Pointer
|
|
478
491
|
onboardingCompleted?: boolean
|