@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.
@@ -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/rpc/user";
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";
@@ -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/rpc/user"), exports);
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);
@@ -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,sDAAoC;AACpC,yDAAuC;AACvC,4DAA0C;AAC1C,4DAA0C;AAC1C,8DAA4C"}
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
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=user.js.map
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../types/services/user/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface IRpcRoute<Request, Response> {
2
+ Request: Request;
3
+ Response: Response;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../types/types/types.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedia/types",
3
- "version": "2.1.63-alpha.14",
3
+ "version": "2.1.63-alpha.16",
4
4
  "description": "Enums, interfaces, and other common types for use in Hedia's software.",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
@@ -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":""}