@pocketprep/types 1.13.4 → 1.13.6
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/Cloud.d.ts +6 -3
- package/package.json +1 -1
package/Study/Cloud.d.ts
CHANGED
|
@@ -360,6 +360,10 @@ export type fetchUserDataV2 = (params: {
|
|
|
360
360
|
subscriptions: Subscription[]
|
|
361
361
|
user: User
|
|
362
362
|
userExamMetadata: UserExamMetadata | undefined
|
|
363
|
+
referralInfo: {
|
|
364
|
+
redeemedUsersCount: number
|
|
365
|
+
code: string
|
|
366
|
+
} | undefined
|
|
363
367
|
}
|
|
364
368
|
|
|
365
369
|
export type onboardingCompleted = (params: {
|
|
@@ -513,8 +517,6 @@ export type fetchMockExamQuestionsV2 = (params: { mockExamId: string }) => Quest
|
|
|
513
517
|
|
|
514
518
|
export type validateReferral = (params: { referralId: string }) => Referral | Stripe.Coupon
|
|
515
519
|
|
|
516
|
-
export type fetchReferralCode = (params: { bundleId: string }) => Promise<string>
|
|
517
|
-
|
|
518
520
|
export type createSetupIntent = () => Promise<string | null>
|
|
519
521
|
|
|
520
522
|
export type createIncompleteSubscription = (params: {
|
|
@@ -568,6 +570,7 @@ export type resetLevelUpProgress = (params: {
|
|
|
568
570
|
subjectNames?: string[]
|
|
569
571
|
}) => TLevelUpProgress
|
|
570
572
|
|
|
571
|
-
export type
|
|
573
|
+
export type fetchReferralInfo = (params: { bundleId: string }) => {
|
|
572
574
|
redeemedUsersCount: number
|
|
575
|
+
code: string
|
|
573
576
|
}
|