@trash-streamers/contracts 1.1.10 → 1.1.12
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/gen/ts/account.d.ts +9 -6
- package/dist/gen/ts/users.d.ts +8 -2
- package/dist/gen/ts/users.js +1 -1
- package/package.json +1 -1
- package/proto/users.proto +8 -0
package/dist/gen/ts/account.d.ts
CHANGED
|
@@ -9,12 +9,7 @@ export interface GetAccountRequest {
|
|
|
9
9
|
id: string;
|
|
10
10
|
}
|
|
11
11
|
export interface GetAccountResponse {
|
|
12
|
-
|
|
13
|
-
phone: string;
|
|
14
|
-
email: string;
|
|
15
|
-
isPhoneVerified: boolean;
|
|
16
|
-
isEmailVerified: boolean;
|
|
17
|
-
role: Role;
|
|
12
|
+
account: Account | undefined;
|
|
18
13
|
}
|
|
19
14
|
export interface InitEmailChangeRequest {
|
|
20
15
|
email: string;
|
|
@@ -46,6 +41,14 @@ export interface ConfirmPhoneChangeRequest {
|
|
|
46
41
|
export interface ConfirmPhoneChangeResponse {
|
|
47
42
|
ok: boolean;
|
|
48
43
|
}
|
|
44
|
+
export interface Account {
|
|
45
|
+
id: string;
|
|
46
|
+
phone: string;
|
|
47
|
+
email: string;
|
|
48
|
+
isPhoneVerified: boolean;
|
|
49
|
+
isEmailVerified: boolean;
|
|
50
|
+
role: Role;
|
|
51
|
+
}
|
|
49
52
|
export declare const ACCOUNT_V1_PACKAGE_NAME = "account.v1";
|
|
50
53
|
export interface AccountServiceClient {
|
|
51
54
|
getAccount(request: GetAccountRequest): Observable<GetAccountResponse>;
|
package/dist/gen/ts/users.d.ts
CHANGED
|
@@ -6,6 +6,12 @@ export interface GetMeRequest {
|
|
|
6
6
|
export interface GetMeResponse {
|
|
7
7
|
user: User | undefined;
|
|
8
8
|
}
|
|
9
|
+
export interface GetUsersRequest {
|
|
10
|
+
ids: string[];
|
|
11
|
+
}
|
|
12
|
+
export interface GetUsersResponse {
|
|
13
|
+
users: User[];
|
|
14
|
+
}
|
|
9
15
|
export interface CreateUserRequest {
|
|
10
16
|
id: string;
|
|
11
17
|
}
|
|
@@ -23,18 +29,18 @@ export interface PatchUserResponse {
|
|
|
23
29
|
export interface User {
|
|
24
30
|
id: string;
|
|
25
31
|
name?: string | undefined;
|
|
26
|
-
phone?: string | undefined;
|
|
27
|
-
email?: string | undefined;
|
|
28
32
|
avatar?: string | undefined;
|
|
29
33
|
}
|
|
30
34
|
export declare const USERS_V1_PACKAGE_NAME = "users.v1";
|
|
31
35
|
export interface UsersServiceClient {
|
|
32
36
|
getMe(request: GetMeRequest): Observable<GetMeResponse>;
|
|
37
|
+
getUsers(request: GetUsersRequest): Observable<GetUsersResponse>;
|
|
33
38
|
createUser(request: CreateUserRequest): Observable<CreateUserResponse>;
|
|
34
39
|
patchUser(request: PatchUserRequest): Observable<PatchUserResponse>;
|
|
35
40
|
}
|
|
36
41
|
export interface UsersServiceController {
|
|
37
42
|
getMe(request: GetMeRequest): Promise<GetMeResponse> | Observable<GetMeResponse> | GetMeResponse;
|
|
43
|
+
getUsers(request: GetUsersRequest): Promise<GetUsersResponse> | Observable<GetUsersResponse> | GetUsersResponse;
|
|
38
44
|
createUser(request: CreateUserRequest): Promise<CreateUserResponse> | Observable<CreateUserResponse> | CreateUserResponse;
|
|
39
45
|
patchUser(request: PatchUserRequest): Promise<PatchUserResponse> | Observable<PatchUserResponse> | PatchUserResponse;
|
|
40
46
|
}
|
package/dist/gen/ts/users.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.protobufPackage = "users.v1";
|
|
|
13
13
|
exports.USERS_V1_PACKAGE_NAME = "users.v1";
|
|
14
14
|
function UsersServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
|
-
const grpcMethods = ["getMe", "createUser", "patchUser"];
|
|
16
|
+
const grpcMethods = ["getMe", "getUsers", "createUser", "patchUser"];
|
|
17
17
|
for (const method of grpcMethods) {
|
|
18
18
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
19
19
|
(0, microservices_1.GrpcMethod)("UsersService", method)(constructor.prototype[method], method, descriptor);
|
package/package.json
CHANGED
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
|
}
|