@readytomog/contracts 1.2.2 → 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 +5 -5
- package/package.json +1 -1
- package/proto/user.proto +7 -7
package/gen/user.ts
CHANGED
|
@@ -11,11 +11,11 @@ import { Observable } from "rxjs";
|
|
|
11
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
|
|
package/package.json
CHANGED
package/proto/user.proto
CHANGED
|
@@ -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
|
}
|