@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 +3 -3
- package/package.json +2 -2
- package/proto/account.proto +2 -2
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:
|
|
31
|
-
isEmailVerified:
|
|
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.
|
|
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",
|
package/proto/account.proto
CHANGED