@pocketprep/types 1.14.36 → 1.14.38
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 +8 -6
- package/package.json +1 -1
package/Study/Class.d.ts
CHANGED
|
@@ -55,8 +55,8 @@ export type UserConversion = Parse.Object<{
|
|
|
55
55
|
signedUpOn?: Platform
|
|
56
56
|
onboardingResult?: OnboardingResult
|
|
57
57
|
firstQuizSource?: Platform
|
|
58
|
-
firstSubscriptionSource?:
|
|
59
|
-
firstExamSubscriptionSource?:
|
|
58
|
+
firstSubscriptionSource?: SubscriptionSource[keyof SubscriptionSource]
|
|
59
|
+
firstExamSubscriptionSource?: SubscriptionSource[keyof SubscriptionSource]
|
|
60
60
|
|
|
61
61
|
// dates stored in case future metrics require new calculations
|
|
62
62
|
userCreatedAt: Date
|
|
@@ -259,7 +259,7 @@ export type License = Parse.Object<{
|
|
|
259
259
|
'session-seconds': number
|
|
260
260
|
}
|
|
261
261
|
linkedLicenses?: License[]
|
|
262
|
-
|
|
262
|
+
salesGuid?: string // payment provider unique ID values, eg Hubspot LineItem Ids
|
|
263
263
|
}>
|
|
264
264
|
|
|
265
265
|
export type LicensePayload = Payload<License>
|
|
@@ -272,6 +272,8 @@ export interface SubscriptionBase {
|
|
|
272
272
|
willAutoRenew: boolean
|
|
273
273
|
receipt: Receipt | Parse.Pointer
|
|
274
274
|
isTrial: boolean
|
|
275
|
+
source?: SubscriptionSource[keyof SubscriptionSource]
|
|
276
|
+
duration?: 'Monthly' | 'Quarterly' | 'Yearly'
|
|
275
277
|
}
|
|
276
278
|
|
|
277
279
|
export type SubscriptionExam = Parse.Object<SubscriptionBase & {
|
|
@@ -293,7 +295,7 @@ export type SubscriptionJSON = ReturnType<Subscription['toJSON']>
|
|
|
293
295
|
|
|
294
296
|
export type Receipt = Parse.Object<{
|
|
295
297
|
user: User | Parse.Pointer
|
|
296
|
-
source:
|
|
298
|
+
source: SubscriptionSource[keyof SubscriptionSource]
|
|
297
299
|
data: { [key: string]: any } // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
298
300
|
transactionId?: string
|
|
299
301
|
license?: License
|
|
@@ -301,7 +303,7 @@ export type Receipt = Parse.Object<{
|
|
|
301
303
|
|
|
302
304
|
export type ReceiptJSON = ReturnType<Receipt['toJSON']>
|
|
303
305
|
|
|
304
|
-
export type
|
|
306
|
+
export type SubscriptionSource = {
|
|
305
307
|
Apple: 'Apple'
|
|
306
308
|
Beta: 'Beta Tester'
|
|
307
309
|
BulkPurchase: 'Bulk Purchase'
|
|
@@ -560,7 +562,7 @@ export type ExamMetadata = Parse.Object<{
|
|
|
560
562
|
description: string
|
|
561
563
|
isFree: boolean
|
|
562
564
|
mockExams?: (MockExam | Parse.Pointer)[]
|
|
563
|
-
|
|
565
|
+
|
|
564
566
|
// DEPRECATED FIELDS
|
|
565
567
|
appId: string
|
|
566
568
|
knowledgeAreas: {
|