@mivis/petmart-api 1.2.5 → 1.2.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/package.json +1 -1
- package/type.d.ts +15 -6
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
declare namespace Components {
|
|
2
2
|
namespace Schemas {
|
|
3
|
+
export interface ITokensResponse {
|
|
4
|
+
access_token: string;
|
|
5
|
+
refresh_token: string;
|
|
6
|
+
}
|
|
3
7
|
export interface ILoginRequest {
|
|
4
8
|
email: string;
|
|
5
9
|
password: string;
|
|
@@ -10,17 +14,18 @@ declare namespace Components {
|
|
|
10
14
|
password: string;
|
|
11
15
|
}
|
|
12
16
|
export interface ILoginResponse {
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
isSeller?: boolean;
|
|
18
|
+
isActivated?: boolean;
|
|
19
|
+
role: ERoles;
|
|
15
20
|
}
|
|
21
|
+
|
|
22
|
+
export type ISignUpResponse = ITokensResponse;
|
|
23
|
+
|
|
16
24
|
export interface IRefreshRequest {
|
|
17
25
|
refreshToken: string;
|
|
18
26
|
}
|
|
19
27
|
|
|
20
|
-
export
|
|
21
|
-
to: string;
|
|
22
|
-
code: number;
|
|
23
|
-
}
|
|
28
|
+
export type IRefreshResponse = ITokensResponse;
|
|
24
29
|
|
|
25
30
|
export interface ITokenPayload {
|
|
26
31
|
email: string;
|
|
@@ -38,6 +43,10 @@ declare namespace Components {
|
|
|
38
43
|
type: ESendEmailTypes;
|
|
39
44
|
}
|
|
40
45
|
|
|
46
|
+
export interface ISendEmailResponse {
|
|
47
|
+
activation_code: number;
|
|
48
|
+
}
|
|
49
|
+
|
|
41
50
|
export enum ESendEmailTypes {
|
|
42
51
|
RECOVERY = 'RECOVERY',
|
|
43
52
|
ACTIVATE = 'ACTIVATE',
|