@babacarthiamdev/contracts 1.0.19 → 1.0.20

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/users.ts CHANGED
@@ -30,6 +30,7 @@ export interface CreateUserResponse {
30
30
  export interface PatchUserRequest {
31
31
  userId: string;
32
32
  name?: string | undefined;
33
+ avatar?: string | undefined;
33
34
  }
34
35
 
35
36
  export interface PatchUserResponse {
@@ -206,6 +207,9 @@ export const PatchUserRequest: MessageFns<PatchUserRequest> = {
206
207
  if (message.name !== undefined) {
207
208
  writer.uint32(18).string(message.name);
208
209
  }
210
+ if (message.avatar !== undefined) {
211
+ writer.uint32(26).string(message.avatar);
212
+ }
209
213
  return writer;
210
214
  },
211
215
 
@@ -232,6 +236,14 @@ export const PatchUserRequest: MessageFns<PatchUserRequest> = {
232
236
  message.name = reader.string();
233
237
  continue;
234
238
  }
239
+ case 3: {
240
+ if (tag !== 26) {
241
+ break;
242
+ }
243
+
244
+ message.avatar = reader.string();
245
+ continue;
246
+ }
235
247
  }
236
248
  if ((tag & 7) === 4 || tag === 0) {
237
249
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babacarthiamdev/contracts",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "./dist/index.js",
6
6
  "type": "./dist/index.d.ts",
package/proto/users.proto CHANGED
@@ -29,6 +29,7 @@ message PatchUserRequest {
29
29
  string user_id = 1;
30
30
 
31
31
  optional string name = 2;
32
+ optional string avatar = 3;
32
33
  }
33
34
 
34
35
  message PatchUserResponse {