@milobedini/shared-types 1.0.13 → 1.0.15
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/auth.d.ts +7 -5
- package/dist/module.d.ts +3 -3
- package/package.json +1 -1
package/dist/auth.d.ts
CHANGED
|
@@ -2,6 +2,12 @@ export interface AuthUser {
|
|
|
2
2
|
_id: string;
|
|
3
3
|
username: string;
|
|
4
4
|
email: string;
|
|
5
|
+
roles: UserRole[];
|
|
6
|
+
}
|
|
7
|
+
export declare enum UserRole {
|
|
8
|
+
THERAPIST = "therapist",
|
|
9
|
+
PATIENT = "patient",
|
|
10
|
+
ADMIN = "admin"
|
|
5
11
|
}
|
|
6
12
|
export interface AuthResponse {
|
|
7
13
|
success: boolean;
|
|
@@ -12,16 +18,12 @@ export interface RegisterInput {
|
|
|
12
18
|
username: string;
|
|
13
19
|
email: string;
|
|
14
20
|
password: string;
|
|
21
|
+
roles: UserRole[];
|
|
15
22
|
}
|
|
16
23
|
export interface LoginInput {
|
|
17
24
|
identifier: string;
|
|
18
25
|
password: string;
|
|
19
26
|
}
|
|
20
|
-
export interface RegisterInput {
|
|
21
|
-
email: string;
|
|
22
|
-
username: string;
|
|
23
|
-
password: string;
|
|
24
|
-
}
|
|
25
27
|
export interface VerifyInput {
|
|
26
28
|
verificationCode: string;
|
|
27
29
|
}
|
package/dist/module.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface Module {
|
|
2
2
|
_id: string;
|
|
3
3
|
title: string;
|
|
4
4
|
description: string;
|
|
@@ -7,10 +7,10 @@ export interface ModuleDTO {
|
|
|
7
7
|
updatedAt: string;
|
|
8
8
|
}
|
|
9
9
|
export interface ModulesResponse {
|
|
10
|
-
modules:
|
|
10
|
+
modules: Module[];
|
|
11
11
|
}
|
|
12
12
|
export interface ModuleResponse {
|
|
13
|
-
module:
|
|
13
|
+
module: Module;
|
|
14
14
|
}
|
|
15
15
|
export interface CreateModuleInput {
|
|
16
16
|
title: string;
|