@slack-clone-org/contracts 1.0.8 → 1.0.10
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/generated/account.ts +4 -4
- package/package.json +1 -1
- package/proto/account.proto +3 -3
package/generated/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 GlobalRole {
|
|
14
14
|
USER = 0,
|
|
@@ -24,12 +24,12 @@ export interface GetAccountResponse {
|
|
|
24
24
|
accountId: string;
|
|
25
25
|
phoneNumber: string;
|
|
26
26
|
email: string;
|
|
27
|
-
isPhoneVerified:
|
|
28
|
-
isEmailVerified:
|
|
27
|
+
isPhoneVerified: boolean;
|
|
28
|
+
isEmailVerified: boolean;
|
|
29
29
|
role: GlobalRole;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export const
|
|
32
|
+
export const ACCOUNT_V1_PACKAGE_NAME = "account.v1";
|
|
33
33
|
|
|
34
34
|
/** AccountService provides account-related operations. */
|
|
35
35
|
|
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
|
// AccountService provides account-related operations.
|
|
6
6
|
service AccountService {
|
|
@@ -16,8 +16,8 @@ message GetAccountResponse {
|
|
|
16
16
|
string account_id = 1;
|
|
17
17
|
string phone_number = 2;
|
|
18
18
|
string email = 3;
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
bool is_phone_verified = 4;
|
|
20
|
+
bool is_email_verified = 5;
|
|
21
21
|
GlobalRole role = 6;
|
|
22
22
|
}
|
|
23
23
|
|