@hedia/types 2.1.63-alpha.15 → 2.1.63-alpha.17
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.
|
@@ -3,15 +3,17 @@ import { IRpcRoute } from "../../types/types";
|
|
|
3
3
|
export declare namespace UserService {
|
|
4
4
|
namespace RPC {
|
|
5
5
|
namespace CreateUser {
|
|
6
|
-
type Post = IRpcRoute<Types.ICreateUserRequest,
|
|
6
|
+
type Post = IRpcRoute<Types.ICreateUserRequest, {}>;
|
|
7
7
|
}
|
|
8
8
|
namespace GetUser {
|
|
9
9
|
type Get = IRpcRoute<Types.IGetUserRequest, Types.IGetUserResponse>;
|
|
10
10
|
}
|
|
11
|
-
namespace
|
|
12
|
-
type
|
|
11
|
+
namespace UpdateUser {
|
|
12
|
+
type Patch = IRpcRoute<Types.IUpdateUserRequest, {}>;
|
|
13
|
+
}
|
|
14
|
+
namespace DeleteUser {
|
|
15
|
+
type Delete = IRpcRoute<Types.IDeleteUserRequest, {}>;
|
|
13
16
|
}
|
|
14
|
-
namespace RecentFood { }
|
|
15
17
|
}
|
|
16
18
|
namespace Types {
|
|
17
19
|
interface ICreateUserRequest {
|
|
@@ -24,6 +26,11 @@ export declare namespace UserService {
|
|
|
24
26
|
}
|
|
25
27
|
interface ICreateUserResponse {
|
|
26
28
|
id: string;
|
|
29
|
+
firstName: string;
|
|
30
|
+
lastName: string;
|
|
31
|
+
language: keyof Languages;
|
|
32
|
+
dateOfBirth?: Date;
|
|
33
|
+
sex?: Sex;
|
|
27
34
|
}
|
|
28
35
|
interface IGetUserRequest {
|
|
29
36
|
id: string;
|
|
@@ -46,12 +53,14 @@ export declare namespace UserService {
|
|
|
46
53
|
}
|
|
47
54
|
interface IUpdateUserResponse {
|
|
48
55
|
id: string;
|
|
56
|
+
firstName: string;
|
|
57
|
+
lastName: string;
|
|
58
|
+
language: keyof Languages;
|
|
59
|
+
dateOfBirth?: Date;
|
|
60
|
+
sex?: Sex;
|
|
49
61
|
}
|
|
50
62
|
interface IDeleteUserRequest {
|
|
51
63
|
id: string;
|
|
52
64
|
}
|
|
53
|
-
interface IDeleteUserResponse {
|
|
54
|
-
id: string;
|
|
55
|
-
}
|
|
56
65
|
}
|
|
57
66
|
}
|