@dgpholdings/greatoak-shared 1.1.92 → 1.1.94
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/dist/types/TApiAuth.d.ts
CHANGED
|
@@ -74,20 +74,3 @@ export type TApiSignInTokenRes = {
|
|
|
74
74
|
} | {
|
|
75
75
|
status: 500;
|
|
76
76
|
});
|
|
77
|
-
export type TApiForgotPasswordReq = {
|
|
78
|
-
email: string;
|
|
79
|
-
captchaToken: string;
|
|
80
|
-
};
|
|
81
|
-
export type TApiForgotPasswordRes = {
|
|
82
|
-
success: boolean;
|
|
83
|
-
state: "token_issued_recently" | "token_issued" | "failed";
|
|
84
|
-
lastIssuedTokenTimeStamp?: number;
|
|
85
|
-
};
|
|
86
|
-
export type TApiResetPasswordReq = {
|
|
87
|
-
verifyToken: string;
|
|
88
|
-
newPassword: string;
|
|
89
|
-
captchaToken: string;
|
|
90
|
-
};
|
|
91
|
-
export type TApiResetPasswordRes = {
|
|
92
|
-
success: boolean;
|
|
93
|
-
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type TRevenueCatEventType = "INITIAL_PURCHASE" | "RENEWAL" | "CANCELLATION" | "UNCANCELLATION" | "NON_RENEWING_PURCHASE" | "EXPIRATION" | "BILLING_ISSUE" | "PRODUCT_CHANGE" | "TRANSFER" | "SUBSCRIPTION_PAUSED" | "SUBSCRIPTION_EXTENDED";
|
|
2
|
+
export type TApiRevenueCatWebhookReq = {
|
|
3
|
+
api_version: string;
|
|
4
|
+
event: {
|
|
5
|
+
type: TRevenueCatEventType;
|
|
6
|
+
app_user_id: string;
|
|
7
|
+
original_app_user_id: string;
|
|
8
|
+
product_id: string;
|
|
9
|
+
purchased_at_ms: number;
|
|
10
|
+
expiration_at_ms?: number;
|
|
11
|
+
store: "app_store" | "play_store";
|
|
12
|
+
environment: "PRODUCTION" | "SANDBOX";
|
|
13
|
+
entitlement_ids: string[];
|
|
14
|
+
period_type: "NORMAL" | "TRIAL" | "INTRO";
|
|
15
|
+
is_trial_conversion: boolean;
|
|
16
|
+
price?: number;
|
|
17
|
+
currency?: string;
|
|
18
|
+
price_in_purchased_currency?: number;
|
|
19
|
+
transaction_id: string;
|
|
20
|
+
original_transaction_id: string;
|
|
21
|
+
presented_offering_id?: string;
|
|
22
|
+
takehome_percentage?: number;
|
|
23
|
+
aliases?: string[];
|
|
24
|
+
id?: string;
|
|
25
|
+
cancellation_at_ms?: number;
|
|
26
|
+
unsubscribe_detected_at_ms?: number;
|
|
27
|
+
billing_issues_detected_at_ms?: number;
|
|
28
|
+
grace_period_expires_at_ms?: number;
|
|
29
|
+
new_product_id?: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export type TApiRevenueCatWebhookRes = {
|
|
33
|
+
status: 200 | 400 | 401 | 500;
|
|
34
|
+
message?: string;
|
|
35
|
+
};
|
package/dist/types/TApiUser.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export type TProfessionalCategory = "fitness" | "wellness" | "medical" | "sports
|
|
|
5
5
|
export type TUserTrainerType = "personal_trainer" | "strength_conditioning_coach" | "gym_instructor" | "fitness_coach" | "bodybuilding_coach" | "crossfit_coach" | "functional_training_specialist" | "calisthenics_trainer" | "yoga_instructor" | "pilates_instructor" | "meditation_coach" | "mindfulness_practitioner" | "breathwork_coach" | "physiotherapist" | "sports_physiotherapist" | "rehabilitation_specialist" | "chiropractor" | "orthopedic_doctor" | "sports_medicine_doctor" | "general_practitioner" | "occupational_therapist" | "kinesiologist" | "sports_coach" | "running_coach" | "cycling_coach" | "swimming_coach" | "athletic_trainer" | "performance_specialist" | "nutritionist" | "dietitian" | "health_coach" | "wellness_consultant" | "lifestyle_medicine_practitioner" | "physical_education_teacher" | "fitness_influencer" | "exercise_scientist" | "student_professional" | "other";
|
|
6
6
|
export type TFitnessGoal = "strength" | "hypertrophy" | "endurance" | "general" | "fat_burn" | "flexibility";
|
|
7
7
|
export type TSubscriptionStatus = "active" | "cancelled" | "expired" | "trial" | "grace" | "none";
|
|
8
|
-
export type TSubscriptionType = "monthly" | "yearly" |
|
|
8
|
+
export type TSubscriptionType = "monthly" | "yearly" | "trial";
|
|
9
9
|
export type TAppStore = "app_store" | "play_store" | null;
|
|
10
10
|
export type TUserMetric = {
|
|
11
11
|
userId: string;
|
package/dist/types/index.d.ts
CHANGED