@readytomog/contracts 1.2.1 → 1.2.3

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/user.ts CHANGED
@@ -8,14 +8,14 @@
8
8
  import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
9
9
  import { Observable } from "rxjs";
10
10
 
11
- export const protobufPackage = "auth.v1";
11
+ export const protobufPackage = "user.v1";
12
12
 
13
13
  export enum Role {
14
- ROLE_UNSPECIFIED = 0,
15
- ROLE_USER = 1,
16
- ROLE_PARTICIPANT = 2,
17
- ROLE_CREATOR = 3,
18
- ROLE_ADMIN = 4,
14
+ unspecified = 0,
15
+ user = 1,
16
+ participant = 2,
17
+ creator = 3,
18
+ admin = 4,
19
19
  UNRECOGNIZED = -1,
20
20
  }
21
21
 
@@ -35,7 +35,7 @@ export interface GetUserByIdResponse {
35
35
  roles: Role[];
36
36
  }
37
37
 
38
- export const AUTH_V1_PACKAGE_NAME = "auth.v1";
38
+ export const USER_V1_PACKAGE_NAME = "user.v1";
39
39
 
40
40
  export interface UserServiceClient {
41
41
  getUserById(request: GetUserByIdRequst): Observable<GetUserByIdResponse>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readytomog/contracts",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Protobuf definitions and generated Typescript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/proto/user.proto CHANGED
@@ -1,6 +1,6 @@
1
1
  syntax = "proto3";
2
2
 
3
- package auth.v1;
3
+ package user.v1;
4
4
 
5
5
  service UserService {
6
6
  rpc GetUserById(GetUserByIdRequst) returns (GetUserByIdResponse);
@@ -8,16 +8,16 @@ service UserService {
8
8
 
9
9
 
10
10
  message GetUserByIdRequst {
11
- int32 userId = 1;
11
+ int32 userId = 1;
12
12
  }
13
13
 
14
14
 
15
15
  enum Role {
16
- ROLE_UNSPECIFIED = 0;
17
- ROLE_USER = 1;
18
- ROLE_PARTICIPANT = 2;
19
- ROLE_CREATOR = 3;
20
- ROLE_ADMIN = 4;
16
+ unspecified = 0;
17
+ user = 1;
18
+ participant = 2;
19
+ creator = 3;
20
+ admin = 4;
21
21
  }
22
22
 
23
23
  message GetUserByIdResponse{
@@ -29,5 +29,5 @@ message GetUserByIdResponse{
29
29
  bool isPhoneVerified = 6;
30
30
  bool isTwoFactorEnabled = 7;
31
31
  string phone = 8;
32
- repeated Role roles = 9;
32
+ repeated Role roles = 9;
33
33
  }