@readytomog/contracts 1.2.1 → 1.2.3
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/gen/user.ts +7 -7
- package/package.json +1 -1
- package/proto/user.proto +8 -8
package/gen/user.ts
CHANGED
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
|
|
9
9
|
import { Observable } from "rxjs";
|
|
10
10
|
|
|
11
|
-
export const protobufPackage = "
|
|
11
|
+
export const protobufPackage = "user.v1";
|
|
12
12
|
|
|
13
13
|
export enum Role {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
unspecified = 0,
|
|
15
|
+
user = 1,
|
|
16
|
+
participant = 2,
|
|
17
|
+
creator = 3,
|
|
18
|
+
admin = 4,
|
|
19
19
|
UNRECOGNIZED = -1,
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -35,7 +35,7 @@ export interface GetUserByIdResponse {
|
|
|
35
35
|
roles: Role[];
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
export const
|
|
38
|
+
export const USER_V1_PACKAGE_NAME = "user.v1";
|
|
39
39
|
|
|
40
40
|
export interface UserServiceClient {
|
|
41
41
|
getUserById(request: GetUserByIdRequst): Observable<GetUserByIdResponse>;
|
package/package.json
CHANGED
package/proto/user.proto
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
|
|
3
|
-
package
|
|
3
|
+
package user.v1;
|
|
4
4
|
|
|
5
5
|
service UserService {
|
|
6
6
|
rpc GetUserById(GetUserByIdRequst) returns (GetUserByIdResponse);
|
|
@@ -8,16 +8,16 @@ service UserService {
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
message GetUserByIdRequst {
|
|
11
|
-
int32 userId = 1;
|
|
11
|
+
int32 userId = 1;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
enum Role {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
unspecified = 0;
|
|
17
|
+
user = 1;
|
|
18
|
+
participant = 2;
|
|
19
|
+
creator = 3;
|
|
20
|
+
admin = 4;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
message GetUserByIdResponse{
|
|
@@ -29,5 +29,5 @@ message GetUserByIdResponse{
|
|
|
29
29
|
bool isPhoneVerified = 6;
|
|
30
30
|
bool isTwoFactorEnabled = 7;
|
|
31
31
|
string phone = 8;
|
|
32
|
-
|
|
32
|
+
repeated Role roles = 9;
|
|
33
33
|
}
|