@pocketprep/types 1.14.37 → 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.
Files changed (2) hide show
  1. package/Study/Class.d.ts +6 -4
  2. 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?: ReceiptSource[keyof ReceiptSource]
59
- firstExamSubscriptionSource?: ReceiptSource[keyof ReceiptSource]
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
@@ -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: ReceiptSource[keyof ReceiptSource]
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 ReceiptSource = {
306
+ export type SubscriptionSource = {
305
307
  Apple: 'Apple'
306
308
  Beta: 'Beta Tester'
307
309
  BulkPurchase: 'Bulk Purchase'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.14.37",
3
+ "version": "1.14.38",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",