@pocketprep/types 1.9.3 → 1.9.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 +5 -2
- package/Study/Cloud.d.ts +2 -1
- package/package.json +1 -1
package/Study/Class.d.ts
CHANGED
|
@@ -32,21 +32,24 @@ export type QuizJSON = ReturnType<Quiz['toJSON']>
|
|
|
32
32
|
export type QuizPayload = Payload<Quiz>
|
|
33
33
|
|
|
34
34
|
export type Platform = 'Android' | 'iOS' | 'Web'
|
|
35
|
+
export type OnboardingResult = 'Free' | 'Monthly' | 'Quarterly' | 'Yearly'
|
|
35
36
|
export type UserConversion = Parse.Object<{
|
|
36
37
|
user: User | Parse.Pointer
|
|
37
|
-
mobileAppId?: string
|
|
38
|
+
mobileAppId?: string // eg com.pocketprep.app.ems
|
|
38
39
|
firstExamGuid?: string
|
|
39
40
|
firstBundleId?: string
|
|
40
41
|
signedUpOn?: Platform
|
|
41
|
-
onboardingResult?:
|
|
42
|
+
onboardingResult?: OnboardingResult
|
|
42
43
|
firstQuizSource?: Platform
|
|
43
44
|
firstSubscriptionSource?: ReceiptSource[keyof ReceiptSource]
|
|
45
|
+
firstExamSubscriptionSource?: ReceiptSource[keyof ReceiptSource]
|
|
44
46
|
|
|
45
47
|
// dates stored in case future metrics require new calculations
|
|
46
48
|
userCreatedAt: Date
|
|
47
49
|
onboardedAt?: Date
|
|
48
50
|
firstQuizAt?: Date
|
|
49
51
|
firstSubscriptionAt?: Date
|
|
52
|
+
firstExamSubscriptionAt?: Date
|
|
50
53
|
|
|
51
54
|
// computed values included for ELK graphs
|
|
52
55
|
daysToOnboard?: number
|
package/Study/Cloud.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
QuestionJSON,
|
|
25
25
|
Question,
|
|
26
26
|
Platform,
|
|
27
|
+
OnboardingResult,
|
|
27
28
|
} from './Class'
|
|
28
29
|
|
|
29
30
|
// DEPRECATED - previously used answer package for a quiz or qotd
|
|
@@ -339,7 +340,7 @@ export type onboardingCompleted = (params: {
|
|
|
339
340
|
firstExamGuid: string // examGuid of exam selected during onboarding
|
|
340
341
|
firstBundleId: string // Bundle.objectId of Bundle
|
|
341
342
|
signedUpOn: Platform // Android | iOS | Web
|
|
342
|
-
onboardingResult:
|
|
343
|
+
onboardingResult: OnboardingResult // Free | Monthly | Quarterly | Yearly
|
|
343
344
|
mobileAppId?: string // mobile app id, if applicable. eg com.pocketprep.app.ems
|
|
344
345
|
}) => void
|
|
345
346
|
|