@noildm/contracts 1.0.1 → 1.0.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/auth.ts CHANGED
@@ -7,7 +7,6 @@
7
7
  /* eslint-disable */
8
8
  import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
9
9
  import { Observable } from "rxjs";
10
- import { Duration } from "./google/protobuf/duration";
11
10
 
12
11
  export const protobufPackage = "auth.v1";
13
12
 
@@ -35,7 +34,7 @@ export interface RegistrationRequest {
35
34
 
36
35
  export interface RegistrationResponse {
37
36
  email: string;
38
- expiresTime: Duration | undefined;
37
+ expiresTime: number;
39
38
  message: string;
40
39
  }
41
40
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noildm/contracts",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Protobuf and RabbitMQ contracts",
5
5
  "scripts": {
6
6
  "generate": "npx protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
package/proto/auth.proto CHANGED
@@ -44,6 +44,6 @@ message RegistrationRequest {
44
44
 
45
45
  message RegistrationResponse {
46
46
  string email = 1;
47
- google.protobuf.Duration expires_time = 2;
47
+ int32 expires_time = 2;
48
48
  string message = 3;
49
49
  }