@hedia/types 2.1.51 → 2.1.52-alpha.1
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.
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { StatusCode } from "../../enums";
|
|
2
2
|
export declare namespace AuthService {
|
|
3
3
|
namespace Types {
|
|
4
|
+
interface IAuthRequest {
|
|
5
|
+
token: string;
|
|
6
|
+
}
|
|
7
|
+
interface IAuthResponse {
|
|
8
|
+
userId: number;
|
|
9
|
+
}
|
|
4
10
|
interface ILoginRequest {
|
|
5
11
|
email: string;
|
|
6
12
|
password: string;
|
|
@@ -11,11 +17,9 @@ export declare namespace AuthService {
|
|
|
11
17
|
status: StatusCode;
|
|
12
18
|
message: string;
|
|
13
19
|
}
|
|
14
|
-
interface
|
|
15
|
-
token: string;
|
|
20
|
+
interface IRegisterRequest extends ILoginRequest {
|
|
16
21
|
}
|
|
17
|
-
interface
|
|
18
|
-
userId: number;
|
|
22
|
+
interface IRegisterResponse extends ILoginResponse {
|
|
19
23
|
}
|
|
20
24
|
}
|
|
21
25
|
}
|
package/package.json
CHANGED
package/tslint.json
CHANGED
|
@@ -2,10 +2,19 @@ import { StatusCode } from "../../enums";
|
|
|
2
2
|
|
|
3
3
|
export namespace AuthService {
|
|
4
4
|
export namespace Types {
|
|
5
|
+
export interface IAuthRequest {
|
|
6
|
+
token: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface IAuthResponse {
|
|
10
|
+
userId: number;
|
|
11
|
+
}
|
|
12
|
+
|
|
5
13
|
export interface ILoginRequest {
|
|
6
14
|
email: string;
|
|
7
15
|
password: string;
|
|
8
16
|
}
|
|
17
|
+
|
|
9
18
|
export interface ILoginResponse {
|
|
10
19
|
id: number;
|
|
11
20
|
token: string;
|
|
@@ -13,12 +22,8 @@ export namespace AuthService {
|
|
|
13
22
|
message: string;
|
|
14
23
|
}
|
|
15
24
|
|
|
16
|
-
export interface
|
|
17
|
-
token: string;
|
|
18
|
-
}
|
|
25
|
+
export interface IRegisterRequest extends ILoginRequest {}
|
|
19
26
|
|
|
20
|
-
export interface
|
|
21
|
-
userId: number;
|
|
22
|
-
}
|
|
27
|
+
export interface IRegisterResponse extends ILoginResponse {}
|
|
23
28
|
}
|
|
24
29
|
}
|