@cas-cinema/contracts 1.0.10 → 1.0.12

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/account.ts CHANGED
@@ -11,7 +11,7 @@ import { Observable } from "rxjs";
11
11
  export const protobufPackage = "account";
12
12
 
13
13
  /** Роли пользователей */
14
- export enum Role {
14
+ export const enum Role {
15
15
  USER = 0,
16
16
  ADMIN = 1,
17
17
  UNRECOGNIZED = -1,
@@ -27,8 +27,8 @@ export interface GetAccountResponse {
27
27
  id: string;
28
28
  phone: string;
29
29
  email: string;
30
- isPhoneVerified: string;
31
- isEmailVerified: string;
30
+ isPhoneVerified: boolean;
31
+ isEmailVerified: boolean;
32
32
  role: Role;
33
33
  }
34
34
 
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@cas-cinema/contracts",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "Protobuf definition and generated TS types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "scripts": {
8
- "protogen": "npx protoc -I ./proto/ ./proto/*.proto --ts_proto_out=gen --ts_proto_opt=nestJs=true,package=omit",
8
+ "protogen": "npx protoc -I ./proto/ ./proto/*.proto --ts_proto_out=gen --ts_proto_opt=nestJs=true,package=omit,constEnums=true",
9
9
  "build": "tsc -p tsconfig.build.json"
10
10
  },
11
11
  "license": "ISC",
@@ -18,8 +18,8 @@ message GetAccountResponse {
18
18
  string id = 1;
19
19
  string phone = 2;
20
20
  string email = 3;
21
- string is_phone_verified = 4;
22
- string is_email_verified = 5;
21
+ bool is_phone_verified = 4;
22
+ bool is_email_verified = 5;
23
23
  Role role = 6;
24
24
  }
25
25