@microservicesss/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 +4 -4
- package/package.json +1 -1
- package/proto/account.proto +3 -3
package/gen/account.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
|
|
9
9
|
import { Observable } from "rxjs";
|
|
10
10
|
|
|
11
|
-
export const protobufPackage = "
|
|
11
|
+
export const protobufPackage = "account.v1";
|
|
12
12
|
|
|
13
13
|
export enum Roles {
|
|
14
14
|
ADMIN = 0,
|
|
@@ -22,12 +22,12 @@ export interface GetAccountRequest {
|
|
|
22
22
|
|
|
23
23
|
export interface GetAccountResponse {
|
|
24
24
|
id: string;
|
|
25
|
-
phone
|
|
26
|
-
email
|
|
25
|
+
phone?: string | undefined;
|
|
26
|
+
email?: string | undefined;
|
|
27
27
|
role: Roles;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
export const
|
|
30
|
+
export const ACCOUNT_V1_PACKAGE_NAME = "account.v1";
|
|
31
31
|
|
|
32
32
|
export interface AccountServiceClient {
|
|
33
33
|
getAccount(request: GetAccountRequest): Observable<GetAccountResponse>;
|
package/package.json
CHANGED
package/proto/account.proto
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
|
|
3
|
-
package
|
|
3
|
+
package account.v1;
|
|
4
4
|
|
|
5
5
|
service AccountService {
|
|
6
6
|
rpc GetAccount (GetAccountRequest) returns (GetAccountResponse);
|
|
@@ -12,8 +12,8 @@ message GetAccountRequest {
|
|
|
12
12
|
|
|
13
13
|
message GetAccountResponse {
|
|
14
14
|
string id = 1;
|
|
15
|
-
string phone = 2;
|
|
16
|
-
string email = 3;
|
|
15
|
+
optional string phone = 2;
|
|
16
|
+
optional string email = 3;
|
|
17
17
|
Roles role = 4;
|
|
18
18
|
}
|
|
19
19
|
|