@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.
@@ -8,7 +8,7 @@
8
8
  import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
9
9
  import { Observable } from "rxjs";
10
10
 
11
- export const protobufPackage = "auth.v1";
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: string;
29
+ role: GlobalRole;
30
30
  }
31
31
 
32
- export const AUTH_V1_PACKAGE_NAME = "auth.v1";
32
+ export const ACCOUNT_V1_PACKAGE_NAME = "account.v1";
33
33
 
34
34
  /** AccountService provides account-related operations. */
35
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slack-clone-org/contracts",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Shared gRPC contracts and TypeScript definitions for Slack Clone microservices",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  syntax = "proto3";
2
2
 
3
- package auth.v1;
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
- string role = 6;
21
+ GlobalRole role = 6;
22
22
  }
23
23
 
24
24
  enum GlobalRole {