@slack-clone-org/contracts 1.0.7 → 1.0.9
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 +3 -3
- package/package.json +1 -1
- package/proto/account.proto +2 -2
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,
|
|
@@ -26,10 +26,10 @@ export interface GetAccountResponse {
|
|
|
26
26
|
email: string;
|
|
27
27
|
isPhoneVerified: string;
|
|
28
28
|
isEmailVerified: string;
|
|
29
|
-
role:
|
|
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 {
|
|
@@ -18,7 +18,7 @@ message GetAccountResponse {
|
|
|
18
18
|
string email = 3;
|
|
19
19
|
string is_phone_verified = 4;
|
|
20
20
|
string is_email_verified = 5;
|
|
21
|
-
|
|
21
|
+
GlobalRole role = 6;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
enum GlobalRole {
|