@trash-streamers/contracts 1.1.9 → 1.1.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trash-streamers/contracts",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "scripts": {
@@ -17,12 +17,7 @@ message GetAccountRequest {
17
17
  }
18
18
 
19
19
  message GetAccountResponse {
20
- string id = 1;
21
- string phone = 2;
22
- string email = 3;
23
- bool is_phone_verified = 4;
24
- bool is_email_verified = 5;
25
- Role role = 6;
20
+ Account account = 1;
26
21
  }
27
22
 
28
23
  message InitEmailChangeRequest {
@@ -66,4 +61,14 @@ message ConfirmPhoneChangeResponse {
66
61
  enum Role {
67
62
  USER = 0;
68
63
  ADMIN = 1;
64
+ }
65
+
66
+ message Account {
67
+ string id = 1;
68
+ string phone = 2;
69
+ string email = 3;
70
+ bool is_phone_verified = 4;
71
+ bool is_email_verified = 5;
72
+ Role role = 6;
73
+
69
74
  }
package/proto/users.proto CHANGED
@@ -4,6 +4,7 @@ package users.v1;
4
4
 
5
5
  service UsersService {
6
6
  rpc GetMe (GetMeRequest) returns (GetMeResponse);
7
+ rpc GetUsers (GetUsersRequest) returns (GetUsersResponse);
7
8
 
8
9
  rpc CreateUser (CreateUserRequest) returns (CreateUserResponse);
9
10
  rpc PatchUser (PatchUserRequest) returns (PatchUserResponse);
@@ -17,6 +18,13 @@ message GetMeResponse {
17
18
  User user = 1;
18
19
  }
19
20
 
21
+ message GetUsersRequest {
22
+ repeated string ids = 1;
23
+ }
24
+
25
+ message GetUsersResponse {
26
+ repeated User users = 1;
27
+ }
20
28
  message CreateUserRequest {
21
29
  string id = 1;
22
30
  }
@@ -39,7 +47,5 @@ message PatchUserResponse {
39
47
  message User {
40
48
  string id = 1;
41
49
  optional string name = 2;
42
- optional string phone = 3;
43
- optional string email = 4;
44
- optional string avatar = 5;
50
+ optional string avatar = 3;
45
51
  }