@vendee-cinema/contracts 1.1.1 → 1.1.2

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,9 +11,9 @@ import { Observable } from "rxjs";
11
11
  export const protobufPackage = "account.v1";
12
12
 
13
13
  export enum Role {
14
- USER = 0,
15
- ADMIN = 1,
16
- UNRECOGNIZED = -1,
14
+ USER = "USER",
15
+ ADMIN = "ADMIN",
16
+ UNRECOGNIZED = "UNRECOGNIZED",
17
17
  }
18
18
 
19
19
  export interface GetAccountRequest {
package/gen/auth.ts CHANGED
@@ -12,9 +12,9 @@ import { Empty } from "./google/protobuf/empty";
12
12
  export const protobufPackage = "auth.v1";
13
13
 
14
14
  export enum Type {
15
- PHONE = 0,
16
- EMAIL = 1,
17
- UNRECOGNIZED = -1,
15
+ PHONE = "PHONE",
16
+ EMAIL = "EMAIL",
17
+ UNRECOGNIZED = "UNRECOGNIZED",
18
18
  }
19
19
 
20
20
  export interface SendOtpRequest {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@vendee-cinema/contracts",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "scripts": {
8
8
  "build": "tsc -p tsconfig.build.json",
9
- "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
9
+ "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit,stringEnums=true"
10
10
  },
11
11
  "files": [
12
12
  "dist",