@hedia/types 2.1.51-alpha.1 → 2.1.52-alpha.0

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 IAuthRequest {
15
- token: string;
20
+ interface IRegisterRequest extends ILoginRequest {
16
21
  }
17
- interface IAuthResponse {
18
- userId: number;
22
+ interface IRegisterResponse extends ILoginResponse {
19
23
  }
20
24
  }
21
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedia/types",
3
- "version": "2.1.51-alpha.1",
3
+ "version": "2.1.52-alpha.0",
4
4
  "description": "Enums, interfaces, and other common types for use in Hedia's software.",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
package/tslint.json CHANGED
@@ -79,7 +79,7 @@
79
79
  "no-duplicate-variable": true,
80
80
  "no-dynamic-delete": false,
81
81
  "no-empty": true,
82
- "no-empty-interface": true,
82
+ "no-empty-interface": false,
83
83
  "no-eval": true,
84
84
  "no-floating-promises": true,
85
85
  "no-for-in-array": true,
@@ -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 IAuthRequest {
17
- token: string;
18
- }
25
+ export interface IRegisterRequest extends ILoginRequest {}
19
26
 
20
- export interface IAuthResponse {
21
- userId: number;
22
- }
27
+ export interface IRegisterResponse extends ILoginResponse {}
23
28
  }
24
29
  }