@dgpholdings/greatoak-shared 1.1.29 → 1.1.31
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
|
@@ -4,7 +4,7 @@ export type TApiSignupReq = {
|
|
|
4
4
|
email: string;
|
|
5
5
|
password: string;
|
|
6
6
|
model: string;
|
|
7
|
-
|
|
7
|
+
appLanguage: string;
|
|
8
8
|
deviceUniqueId: string;
|
|
9
9
|
captchaToken: string;
|
|
10
10
|
};
|
|
@@ -18,7 +18,7 @@ export type TApiSignupRes = TApiSigninRes & {
|
|
|
18
18
|
};
|
|
19
19
|
export type TApiSignupAnonymousReq = TOnboardingData & {
|
|
20
20
|
model: string;
|
|
21
|
-
|
|
21
|
+
appLanguage: string;
|
|
22
22
|
deviceUniqueId: string;
|
|
23
23
|
};
|
|
24
24
|
export type TApiSignupAnonymousRes = TApiSigninRes & {
|
|
@@ -28,7 +28,7 @@ export type TApiSigninAppleReq = {
|
|
|
28
28
|
email?: string;
|
|
29
29
|
identityToken: string;
|
|
30
30
|
model: string;
|
|
31
|
-
|
|
31
|
+
appLanguage: string;
|
|
32
32
|
deviceUniqueId: string;
|
|
33
33
|
};
|
|
34
34
|
export type TApiSigninAppleRes = TApiSigninRes & {
|
|
@@ -74,7 +74,7 @@ export type TUser = {
|
|
|
74
74
|
email: string;
|
|
75
75
|
isVerified: boolean;
|
|
76
76
|
password: string;
|
|
77
|
-
|
|
77
|
+
appLanguage: string;
|
|
78
78
|
billingPlanType: "monthly" | "annually" | "free";
|
|
79
79
|
billingPlanVersion?: string;
|
|
80
80
|
billingPlanGeoCountryCode: string;
|
|
@@ -92,7 +92,10 @@ export type TUser = {
|
|
|
92
92
|
weightKg?: number;
|
|
93
93
|
heightCm?: number;
|
|
94
94
|
};
|
|
95
|
-
export type TUserSignInData = Pick<TUser, "email" | "isVerified" | "
|
|
95
|
+
export type TUserSignInData = Pick<TUser, "email" | "isVerified" | "appLanguage" | "billingPlanType" | "billingPlanVersion" | "paymentMethod" | "authMethod" | "dob" | "weightKg" | "gender"> & {
|
|
96
|
+
createdAt: Date;
|
|
97
|
+
updatedAt: Date;
|
|
98
|
+
};
|
|
96
99
|
export type TApiForgotPasswordReq = {
|
|
97
100
|
email: string;
|
|
98
101
|
captchaToken: string;
|
package/dist/utils/time.util.js
CHANGED
|
@@ -34,6 +34,6 @@ const isUserAllowedToUpdate = ({ createdAt, updatedAt }) => {
|
|
|
34
34
|
oldDate: createdAt,
|
|
35
35
|
newDate: updatedAt,
|
|
36
36
|
});
|
|
37
|
-
return diffUserCreationAndLastUpdate.hours
|
|
37
|
+
return diffUserCreationAndLastUpdate.hours <= 1 || sinceLastUpdated.hours > 8;
|
|
38
38
|
};
|
|
39
39
|
exports.isUserAllowedToUpdate = isUserAllowedToUpdate;
|