@dgpholdings/greatoak-shared 1.0.68 → 1.0.70
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 +36 -14
- package/package.json +1 -1
package/dist/types/TApiAuth.d.ts
CHANGED
|
@@ -5,10 +5,8 @@ export type TApiSignupReq = {
|
|
|
5
5
|
languageCountryCode: string;
|
|
6
6
|
deviceUniqueId: string;
|
|
7
7
|
};
|
|
8
|
-
export type TApiSignupRes = {
|
|
9
|
-
|
|
10
|
-
status: 400 | 201 | 500;
|
|
11
|
-
message?: string;
|
|
8
|
+
export type TApiSignupRes = TApiSigninRes & {
|
|
9
|
+
authType: "email";
|
|
12
10
|
};
|
|
13
11
|
export type TApiSigninAppleReq = {
|
|
14
12
|
email?: string;
|
|
@@ -17,10 +15,7 @@ export type TApiSigninAppleReq = {
|
|
|
17
15
|
languageCountryCode: string;
|
|
18
16
|
deviceUniqueId: string;
|
|
19
17
|
};
|
|
20
|
-
export type TApiSigninAppleRes = {
|
|
21
|
-
message?: string;
|
|
22
|
-
token?: string;
|
|
23
|
-
status?: 400 | 200 | 500;
|
|
18
|
+
export type TApiSigninAppleRes = TApiSigninRes & {
|
|
24
19
|
authType: "apple";
|
|
25
20
|
};
|
|
26
21
|
export type TApiSigninEmailReq = {
|
|
@@ -29,17 +24,44 @@ export type TApiSigninEmailReq = {
|
|
|
29
24
|
model: string;
|
|
30
25
|
deviceUniqueId: string;
|
|
31
26
|
};
|
|
32
|
-
export type TApiSigninEmailRes = {
|
|
33
|
-
message?: string;
|
|
34
|
-
token?: string;
|
|
35
|
-
status?: 400 | 200 | 500;
|
|
27
|
+
export type TApiSigninEmailRes = TApiSigninRes & {
|
|
36
28
|
authType: "email";
|
|
37
29
|
};
|
|
30
|
+
export type TApiSigninRes = {
|
|
31
|
+
token: string;
|
|
32
|
+
status: 200;
|
|
33
|
+
user: TUserSignInData;
|
|
34
|
+
authType: "apple" | "email";
|
|
35
|
+
} | {
|
|
36
|
+
status: 400 | 500;
|
|
37
|
+
message: string;
|
|
38
|
+
};
|
|
38
39
|
export type TApiSignInTokenReq = {
|
|
39
40
|
deviceUniqueId: string;
|
|
40
41
|
};
|
|
41
42
|
export type TApiSignInTokenRes = {
|
|
43
|
+
user: TUserSignInData;
|
|
44
|
+
status: 200;
|
|
45
|
+
token: string;
|
|
46
|
+
} | {
|
|
42
47
|
message: string;
|
|
43
|
-
|
|
44
|
-
|
|
48
|
+
status: 500;
|
|
49
|
+
};
|
|
50
|
+
export type TUser = {
|
|
51
|
+
username?: string;
|
|
52
|
+
email: string;
|
|
53
|
+
isVerified: boolean;
|
|
54
|
+
password: string;
|
|
55
|
+
languageCountryCode: string;
|
|
56
|
+
billingPlanType: "monthly" | "annually" | "free";
|
|
57
|
+
billingPlanVersion?: string;
|
|
58
|
+
billingPlanGeoCountryCode: string;
|
|
59
|
+
paymentMethod?: "credit_card" | "paypal" | "apple_pay" | "upi";
|
|
60
|
+
billingPlanNextDueDate?: string;
|
|
61
|
+
devices: {
|
|
62
|
+
model: string;
|
|
63
|
+
deviceId: string;
|
|
64
|
+
}[];
|
|
65
|
+
authMethod: "email" | "apple";
|
|
45
66
|
};
|
|
67
|
+
export type TUserSignInData = Pick<TUser, "email" | "isVerified" | "languageCountryCode" | "billingPlanType" | "billingPlanVersion" | "paymentMethod">;
|