@aleshacinema/contracts 1.1.8 → 1.1.10

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.
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.18.1
4
- // protoc v4.25.9
4
+ // protoc v3.21.12
5
5
  // source: account.proto
6
6
  /* eslint-disable */
7
7
  import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
package/dist/gen/auth.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.18.1
4
- // protoc v4.25.9
4
+ // protoc v3.21.12
5
5
  // source: auth.proto
6
6
  /* eslint-disable */
7
7
  import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.18.1
4
- // protoc v4.25.9
4
+ // protoc v3.21.12
5
5
  // source: google/protobuf/empty.proto
6
6
  export {};
@@ -11,6 +11,13 @@ export interface CreateUserRequest {
11
11
  export interface CreateUserResponse {
12
12
  ok: boolean;
13
13
  }
14
+ export interface PatchUserRequest {
15
+ userId: string;
16
+ name?: string | undefined;
17
+ }
18
+ export interface PatchUserResponse {
19
+ ok: boolean;
20
+ }
14
21
  export interface User {
15
22
  id: string;
16
23
  name?: string | undefined;
@@ -21,10 +28,12 @@ export interface User {
21
28
  export interface UsersServiceClient {
22
29
  getMe(request: GetMeRequest): Observable<GetMeResponse>;
23
30
  createUser(request: CreateUserRequest): Observable<CreateUserResponse>;
31
+ patchUser(request: PatchUserRequest): Observable<PatchUserResponse>;
24
32
  }
25
33
  export interface UsersServiceController {
26
34
  getMe(request: GetMeRequest): Promise<GetMeResponse> | Observable<GetMeResponse> | GetMeResponse;
27
35
  createUser(request: CreateUserRequest): Promise<CreateUserResponse> | Observable<CreateUserResponse> | CreateUserResponse;
36
+ patchUser(request: PatchUserRequest): Promise<PatchUserResponse> | Observable<PatchUserResponse> | PatchUserResponse;
28
37
  }
29
38
  export declare function UsersServiceControllerMethods(): (constructor: Function) => void;
30
39
  export declare const USERS_SERVICE_NAME = "UsersService";
package/dist/gen/users.js CHANGED
@@ -1,13 +1,13 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.18.1
4
- // protoc v4.25.9
4
+ // protoc v3.21.12
5
5
  // source: users.proto
6
6
  /* eslint-disable */
7
7
  import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
8
8
  export function UsersServiceControllerMethods() {
9
9
  return function (constructor) {
10
- const grpcMethods = ["getMe", "createUser"];
10
+ const grpcMethods = ["getMe", "createUser", "patchUser"];
11
11
  for (const method of grpcMethods) {
12
12
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
13
13
  GrpcMethod("UsersService", method)(constructor.prototype[method], method, descriptor);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aleshacinema/contracts",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "description": "Protobuf definitions and generated TypeSript types",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/proto/users.proto CHANGED
@@ -6,6 +6,7 @@ service UsersService {
6
6
  rpc GetMe (GetMeRequest) returns (GetMeResponse);
7
7
 
8
8
  rpc CreateUser (CreateUserRequest) returns (CreateUserResponse);
9
+ rpc PatchUser (PatchUserRequest) returns (PatchUserResponse);
9
10
  }
10
11
 
11
12
  message GetMeRequest {
@@ -24,6 +25,16 @@ message CreateUserResponse {
24
25
  bool ok = 1;
25
26
  }
26
27
 
28
+ message PatchUserRequest {
29
+ string user_id = 1;
30
+
31
+ optional string name = 2;
32
+ }
33
+
34
+ message PatchUserResponse {
35
+ bool ok = 1;
36
+ }
37
+
27
38
  message User {
28
39
  string id = 1;
29
40
  optional string name = 2;