@hedia/types 2.1.63-alpha.14 → 2.1.63-alpha.16
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/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/services/user/types.d.ts +50 -0
- package/dist/types/services/{rpc/user.js → user/types.js} +1 -1
- package/dist/types/services/user/types.js.map +1 -0
- package/dist/types/types/types.d.ts +4 -0
- package/dist/types/types/types.js +3 -0
- package/dist/types/types/types.js.map +1 -0
- package/package.json +1 -1
- package/dist/types/services/rpc/user.d.ts +0 -16
- package/dist/types/services/rpc/user.js.map +0 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export * from "./logbook/logbook";
|
|
|
5
5
|
export * from "./services/outbound/email";
|
|
6
6
|
export * from "./services/outbound/notification";
|
|
7
7
|
export * from "./services/rpc/auth";
|
|
8
|
-
export * from "./services/
|
|
8
|
+
export * from "./services/user/types";
|
|
9
9
|
export * from "./services/rpc/logbook";
|
|
10
10
|
export * from "./services/events/logbook";
|
|
11
11
|
export * from "./userdetails/userdetails";
|
package/dist/types/index.js
CHANGED
|
@@ -17,7 +17,7 @@ __exportStar(require("./logbook/logbook"), exports);
|
|
|
17
17
|
__exportStar(require("./services/outbound/email"), exports);
|
|
18
18
|
__exportStar(require("./services/outbound/notification"), exports);
|
|
19
19
|
__exportStar(require("./services/rpc/auth"), exports);
|
|
20
|
-
__exportStar(require("./services/
|
|
20
|
+
__exportStar(require("./services/user/types"), exports);
|
|
21
21
|
__exportStar(require("./services/rpc/logbook"), exports);
|
|
22
22
|
__exportStar(require("./services/events/logbook"), exports);
|
|
23
23
|
__exportStar(require("./userdetails/userdetails"), exports);
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAoC;AACpC,oEAAkD;AAClD,4CAA0B;AAC1B,oDAAkC;AAClC,4DAA0C;AAC1C,mEAAiD;AACjD,sDAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAoC;AACpC,oEAAkD;AAClD,4CAA0B;AAC1B,oDAAkC;AAClC,4DAA0C;AAC1C,mEAAiD;AACjD,sDAAoC;AACpC,wDAAsC;AACtC,yDAAuC;AACvC,4DAA0C;AAC1C,4DAA0C;AAC1C,8DAA4C"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Languages, Sex } from "../../enums";
|
|
2
|
+
import { IRpcRoute } from "../../types/types";
|
|
3
|
+
export declare namespace UserService {
|
|
4
|
+
namespace RPC {
|
|
5
|
+
namespace CreateUser {
|
|
6
|
+
type Post = IRpcRoute<Types.ICreateUserRequest, {}>;
|
|
7
|
+
}
|
|
8
|
+
namespace GetUser {
|
|
9
|
+
type Get = IRpcRoute<Types.IGetUserRequest, Types.IGetUserResponse>;
|
|
10
|
+
}
|
|
11
|
+
namespace UpdateUser {
|
|
12
|
+
type Patch = IRpcRoute<Types.IUpdateUserRequest, {}>;
|
|
13
|
+
}
|
|
14
|
+
namespace DeleteUser {
|
|
15
|
+
type Delete = IRpcRoute<Types.IDeleteUserRequest, {}>;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
namespace Types {
|
|
19
|
+
interface ICreateUserRequest {
|
|
20
|
+
id: string;
|
|
21
|
+
firstName: string;
|
|
22
|
+
lastName: string;
|
|
23
|
+
language: keyof Languages;
|
|
24
|
+
dateOfBirth?: Date;
|
|
25
|
+
sex?: Sex;
|
|
26
|
+
}
|
|
27
|
+
interface IGetUserRequest {
|
|
28
|
+
id: string;
|
|
29
|
+
}
|
|
30
|
+
interface IGetUserResponse {
|
|
31
|
+
id: string;
|
|
32
|
+
firstName: string;
|
|
33
|
+
lastName: string;
|
|
34
|
+
language: keyof Languages;
|
|
35
|
+
dateOfBirth?: Date;
|
|
36
|
+
sex?: Sex;
|
|
37
|
+
}
|
|
38
|
+
interface IUpdateUserRequest {
|
|
39
|
+
id: string;
|
|
40
|
+
firstName?: string;
|
|
41
|
+
lastName?: string;
|
|
42
|
+
language?: keyof Languages;
|
|
43
|
+
dateOfBirth?: Date;
|
|
44
|
+
sex?: Sex;
|
|
45
|
+
}
|
|
46
|
+
interface IDeleteUserRequest {
|
|
47
|
+
id: string;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../types/services/user/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../types/types/types.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Languages, Sex } from "../../enums";
|
|
2
|
-
export declare namespace UserService {
|
|
3
|
-
namespace Types {
|
|
4
|
-
interface ICreateUserRequest {
|
|
5
|
-
id: string;
|
|
6
|
-
firstName: string;
|
|
7
|
-
lastName: string;
|
|
8
|
-
language: keyof Languages;
|
|
9
|
-
dateOfBirth?: Date;
|
|
10
|
-
sex?: Sex;
|
|
11
|
-
}
|
|
12
|
-
interface ICreateUserResponse {
|
|
13
|
-
id: string;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../types/services/rpc/user.ts"],"names":[],"mappings":""}
|