@eternalvisionshining/contracts 1.0.13 → 1.0.14

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/profile.ts CHANGED
@@ -26,6 +26,14 @@ export interface CreateProfileResponse {
26
26
  ok: boolean;
27
27
  }
28
28
 
29
+ export interface PatchProfileRequest {
30
+ id: string;
31
+ }
32
+
33
+ export interface PatchProfileResponse {
34
+ ok: boolean;
35
+ }
36
+
29
37
  export interface Profile {
30
38
  id: string;
31
39
  firstName?: string | undefined;
@@ -41,6 +49,8 @@ export interface ProfileServiceClient {
41
49
  getMe(request: GetMeRequest): Observable<GetMeResponse>;
42
50
 
43
51
  createProfile(request: CreateProfileRequest): Observable<CreateProfileResponse>;
52
+
53
+ patchProfile(request: PatchProfileRequest): Observable<PatchProfileResponse>;
44
54
  }
45
55
 
46
56
  export interface ProfileServiceController {
@@ -49,11 +59,15 @@ export interface ProfileServiceController {
49
59
  createProfile(
50
60
  request: CreateProfileRequest,
51
61
  ): Promise<CreateProfileResponse> | Observable<CreateProfileResponse> | CreateProfileResponse;
62
+
63
+ patchProfile(
64
+ request: PatchProfileRequest,
65
+ ): Promise<PatchProfileResponse> | Observable<PatchProfileResponse> | PatchProfileResponse;
52
66
  }
53
67
 
54
68
  export function ProfileServiceControllerMethods() {
55
69
  return function (constructor: Function) {
56
- const grpcMethods: string[] = ["getMe", "createProfile"];
70
+ const grpcMethods: string[] = ["getMe", "createProfile", "patchProfile"];
57
71
  for (const method of grpcMethods) {
58
72
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
59
73
  GrpcMethod("ProfileService", method)(constructor.prototype[method], method, descriptor);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eternalvisionshining/contracts",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "protocol buffers definitions and generating TypeScript types",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -5,6 +5,7 @@ package profile.v1;
5
5
  service ProfileService {
6
6
  rpc GetMe(GetMeRequest) returns (GetMeResponse);
7
7
  rpc CreateProfile(CreateProfileRequest) returns (CreateProfileResponse);
8
+ rpc PatchProfile(PatchProfileRequest) returns (PatchProfileResponse);
8
9
  }
9
10
 
10
11
  message GetMeRequest {
@@ -24,6 +25,14 @@ message CreateProfileResponse {
24
25
  bool ok = 1;
25
26
  }
26
27
 
28
+ message PatchProfileRequest {
29
+ string id = 1;
30
+ }
31
+
32
+ message PatchProfileResponse {
33
+ bool ok = 1;
34
+ }
35
+
27
36
  message Profile {
28
37
  string id = 1;
29
38
  optional string first_name = 2;