@babacarthiamdev/contracts 1.0.11 → 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 CHANGED
@@ -25,8 +25,8 @@ export interface GetAccountResponse {
25
25
  id: string;
26
26
  phone: string;
27
27
  email: string;
28
- isPhoneVerified: string;
29
- isEmailVerified: string;
28
+ isPhoneVerified: boolean;
29
+ isEmailVerified: boolean;
30
30
  role: Role;
31
31
  }
32
32
 
@@ -70,7 +70,7 @@ export const GetAccountRequest: MessageFns<GetAccountRequest> = {
70
70
  };
71
71
 
72
72
  function createBaseGetAccountResponse(): GetAccountResponse {
73
- return { id: "", phone: "", email: "", isPhoneVerified: "", isEmailVerified: "", role: 0 };
73
+ return { id: "", phone: "", email: "", isPhoneVerified: false, isEmailVerified: false, role: 0 };
74
74
  }
75
75
 
76
76
  export const GetAccountResponse: MessageFns<GetAccountResponse> = {
@@ -84,11 +84,11 @@ export const GetAccountResponse: MessageFns<GetAccountResponse> = {
84
84
  if (message.email !== "") {
85
85
  writer.uint32(26).string(message.email);
86
86
  }
87
- if (message.isPhoneVerified !== "") {
88
- writer.uint32(34).string(message.isPhoneVerified);
87
+ if (message.isPhoneVerified !== false) {
88
+ writer.uint32(32).bool(message.isPhoneVerified);
89
89
  }
90
- if (message.isEmailVerified !== "") {
91
- writer.uint32(42).string(message.isEmailVerified);
90
+ if (message.isEmailVerified !== false) {
91
+ writer.uint32(40).bool(message.isEmailVerified);
92
92
  }
93
93
  if (message.role !== 0) {
94
94
  writer.uint32(48).int32(message.role);
@@ -128,19 +128,19 @@ export const GetAccountResponse: MessageFns<GetAccountResponse> = {
128
128
  continue;
129
129
  }
130
130
  case 4: {
131
- if (tag !== 34) {
131
+ if (tag !== 32) {
132
132
  break;
133
133
  }
134
134
 
135
- message.isPhoneVerified = reader.string();
135
+ message.isPhoneVerified = reader.bool();
136
136
  continue;
137
137
  }
138
138
  case 5: {
139
- if (tag !== 42) {
139
+ if (tag !== 40) {
140
140
  break;
141
141
  }
142
142
 
143
- message.isEmailVerified = reader.string();
143
+ message.isEmailVerified = reader.bool();
144
144
  continue;
145
145
  }
146
146
  case 6: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babacarthiamdev/contracts",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "./dist/index.js",
6
6
  "type": "./dist/index.d.ts",
@@ -14,8 +14,8 @@ message GetAccountResponse {
14
14
  string id = 1;
15
15
  string phone = 2;
16
16
  string email = 3;
17
- string is_phone_verified = 4;
18
- string is_email_verified = 5;
17
+ bool is_phone_verified = 4;
18
+ bool is_email_verified = 5;
19
19
  Role role = 6;
20
20
  }
21
21