@noildm/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.
@@ -9,10 +9,10 @@ export interface User {
9
9
  updatedAt: number;
10
10
  }
11
11
  export interface CreateUserRequest {
12
+ email: string;
12
13
  userName: string;
13
14
  telegramId?: string | undefined;
14
15
  userImage?: string | undefined;
15
- email: string;
16
16
  }
17
17
  export interface GetUserByIdRequest {
18
18
  id: string;
package/gen/user.ts CHANGED
@@ -20,10 +20,10 @@ export interface User {
20
20
  }
21
21
 
22
22
  export interface CreateUserRequest {
23
+ email: string;
23
24
  userName: string;
24
25
  telegramId?: string | undefined;
25
26
  userImage?: string | undefined;
26
- email: string;
27
27
  }
28
28
 
29
29
  export interface GetUserByIdRequest {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noildm/contracts",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Protobuf and RabbitMQ contracts",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/proto/user.proto CHANGED
@@ -21,10 +21,11 @@ message User {
21
21
  }
22
22
 
23
23
  message CreateUserRequest {
24
- string user_name = 1;
25
- optional string telegram_id = 2;
26
- optional string user_image = 3;
27
- string email= 4;
24
+ string email= 1;
25
+ string user_name = 2;
26
+ optional string telegram_id = 3;
27
+ optional string user_image = 4;
28
+
28
29
  }
29
30
 
30
31
  message GetUserByIdRequest {