@stashfin/grpc 1.2.832 → 1.2.834

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.832",
3
+ "version": "1.2.834",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -0,0 +1,60 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "bureau.getbureaudetails";
3
+ /** Request message */
4
+ export interface getAllBureauReportRequest {
5
+ page?: number | undefined;
6
+ limit?: number | undefined;
7
+ name?: string | undefined;
8
+ customer_id?: number | undefined;
9
+ bureau_id?: number | undefined;
10
+ start_date?: string | undefined;
11
+ end_date?: string | undefined;
12
+ pull_source?: string | undefined;
13
+ score?: number | undefined;
14
+ }
15
+ export interface BureauReport {
16
+ name?: string | undefined;
17
+ customer_id?: number | undefined;
18
+ score?: number | undefined;
19
+ bureau_id?: number | undefined;
20
+ pull_source?: string | undefined;
21
+ created_at?: string | undefined;
22
+ }
23
+ export interface getAllBureauReportResponse {
24
+ bureaureports: BureauReport[];
25
+ }
26
+ export declare const getAllBureauReportRequest: {
27
+ encode(message: getAllBureauReportRequest, writer?: _m0.Writer): _m0.Writer;
28
+ decode(input: _m0.Reader | Uint8Array, length?: number): getAllBureauReportRequest;
29
+ fromJSON(object: any): getAllBureauReportRequest;
30
+ toJSON(message: getAllBureauReportRequest): unknown;
31
+ create<I extends Exact<DeepPartial<getAllBureauReportRequest>, I>>(base?: I): getAllBureauReportRequest;
32
+ fromPartial<I extends Exact<DeepPartial<getAllBureauReportRequest>, I>>(object: I): getAllBureauReportRequest;
33
+ };
34
+ export declare const BureauReport: {
35
+ encode(message: BureauReport, writer?: _m0.Writer): _m0.Writer;
36
+ decode(input: _m0.Reader | Uint8Array, length?: number): BureauReport;
37
+ fromJSON(object: any): BureauReport;
38
+ toJSON(message: BureauReport): unknown;
39
+ create<I extends Exact<DeepPartial<BureauReport>, I>>(base?: I): BureauReport;
40
+ fromPartial<I extends Exact<DeepPartial<BureauReport>, I>>(object: I): BureauReport;
41
+ };
42
+ export declare const getAllBureauReportResponse: {
43
+ encode(message: getAllBureauReportResponse, writer?: _m0.Writer): _m0.Writer;
44
+ decode(input: _m0.Reader | Uint8Array, length?: number): getAllBureauReportResponse;
45
+ fromJSON(object: any): getAllBureauReportResponse;
46
+ toJSON(message: getAllBureauReportResponse): unknown;
47
+ create<I extends Exact<DeepPartial<getAllBureauReportResponse>, I>>(base?: I): getAllBureauReportResponse;
48
+ fromPartial<I extends Exact<DeepPartial<getAllBureauReportResponse>, I>>(object: I): getAllBureauReportResponse;
49
+ };
50
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
51
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
52
+ [K in keyof T]?: DeepPartial<T[K]>;
53
+ } : Partial<T>;
54
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
55
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
56
+ [K in keyof P]: Exact<P[K], I[K]>;
57
+ } & {
58
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
59
+ };
60
+ export {};
@@ -0,0 +1,374 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.0
5
+ // protoc v6.31.1
6
+ // source: bureau/getbureaudetails.proto
7
+ var __importDefault = (this && this.__importDefault) || function (mod) {
8
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9
+ };
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.getAllBureauReportResponse = exports.BureauReport = exports.getAllBureauReportRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "bureau.getbureaudetails";
15
+ function createBasegetAllBureauReportRequest() {
16
+ return {
17
+ page: undefined,
18
+ limit: undefined,
19
+ name: undefined,
20
+ customer_id: undefined,
21
+ bureau_id: undefined,
22
+ start_date: undefined,
23
+ end_date: undefined,
24
+ pull_source: undefined,
25
+ score: undefined,
26
+ };
27
+ }
28
+ exports.getAllBureauReportRequest = {
29
+ encode(message, writer = minimal_1.default.Writer.create()) {
30
+ if (message.page !== undefined) {
31
+ writer.uint32(8).int32(message.page);
32
+ }
33
+ if (message.limit !== undefined) {
34
+ writer.uint32(16).int32(message.limit);
35
+ }
36
+ if (message.name !== undefined) {
37
+ writer.uint32(26).string(message.name);
38
+ }
39
+ if (message.customer_id !== undefined) {
40
+ writer.uint32(32).int32(message.customer_id);
41
+ }
42
+ if (message.bureau_id !== undefined) {
43
+ writer.uint32(40).int32(message.bureau_id);
44
+ }
45
+ if (message.start_date !== undefined) {
46
+ writer.uint32(50).string(message.start_date);
47
+ }
48
+ if (message.end_date !== undefined) {
49
+ writer.uint32(58).string(message.end_date);
50
+ }
51
+ if (message.pull_source !== undefined) {
52
+ writer.uint32(66).string(message.pull_source);
53
+ }
54
+ if (message.score !== undefined) {
55
+ writer.uint32(72).int32(message.score);
56
+ }
57
+ return writer;
58
+ },
59
+ decode(input, length) {
60
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
61
+ let end = length === undefined ? reader.len : reader.pos + length;
62
+ const message = createBasegetAllBureauReportRequest();
63
+ while (reader.pos < end) {
64
+ const tag = reader.uint32();
65
+ switch (tag >>> 3) {
66
+ case 1:
67
+ if (tag !== 8) {
68
+ break;
69
+ }
70
+ message.page = reader.int32();
71
+ continue;
72
+ case 2:
73
+ if (tag !== 16) {
74
+ break;
75
+ }
76
+ message.limit = reader.int32();
77
+ continue;
78
+ case 3:
79
+ if (tag !== 26) {
80
+ break;
81
+ }
82
+ message.name = reader.string();
83
+ continue;
84
+ case 4:
85
+ if (tag !== 32) {
86
+ break;
87
+ }
88
+ message.customer_id = reader.int32();
89
+ continue;
90
+ case 5:
91
+ if (tag !== 40) {
92
+ break;
93
+ }
94
+ message.bureau_id = reader.int32();
95
+ continue;
96
+ case 6:
97
+ if (tag !== 50) {
98
+ break;
99
+ }
100
+ message.start_date = reader.string();
101
+ continue;
102
+ case 7:
103
+ if (tag !== 58) {
104
+ break;
105
+ }
106
+ message.end_date = reader.string();
107
+ continue;
108
+ case 8:
109
+ if (tag !== 66) {
110
+ break;
111
+ }
112
+ message.pull_source = reader.string();
113
+ continue;
114
+ case 9:
115
+ if (tag !== 72) {
116
+ break;
117
+ }
118
+ message.score = reader.int32();
119
+ continue;
120
+ }
121
+ if ((tag & 7) === 4 || tag === 0) {
122
+ break;
123
+ }
124
+ reader.skipType(tag & 7);
125
+ }
126
+ return message;
127
+ },
128
+ fromJSON(object) {
129
+ return {
130
+ page: isSet(object.page) ? globalThis.Number(object.page) : undefined,
131
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : undefined,
132
+ name: isSet(object.name) ? globalThis.String(object.name) : undefined,
133
+ customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : undefined,
134
+ bureau_id: isSet(object.bureau_id) ? globalThis.Number(object.bureau_id) : undefined,
135
+ start_date: isSet(object.start_date) ? globalThis.String(object.start_date) : undefined,
136
+ end_date: isSet(object.end_date) ? globalThis.String(object.end_date) : undefined,
137
+ pull_source: isSet(object.pull_source) ? globalThis.String(object.pull_source) : undefined,
138
+ score: isSet(object.score) ? globalThis.Number(object.score) : undefined,
139
+ };
140
+ },
141
+ toJSON(message) {
142
+ const obj = {};
143
+ if (message.page !== undefined) {
144
+ obj.page = Math.round(message.page);
145
+ }
146
+ if (message.limit !== undefined) {
147
+ obj.limit = Math.round(message.limit);
148
+ }
149
+ if (message.name !== undefined) {
150
+ obj.name = message.name;
151
+ }
152
+ if (message.customer_id !== undefined) {
153
+ obj.customer_id = Math.round(message.customer_id);
154
+ }
155
+ if (message.bureau_id !== undefined) {
156
+ obj.bureau_id = Math.round(message.bureau_id);
157
+ }
158
+ if (message.start_date !== undefined) {
159
+ obj.start_date = message.start_date;
160
+ }
161
+ if (message.end_date !== undefined) {
162
+ obj.end_date = message.end_date;
163
+ }
164
+ if (message.pull_source !== undefined) {
165
+ obj.pull_source = message.pull_source;
166
+ }
167
+ if (message.score !== undefined) {
168
+ obj.score = Math.round(message.score);
169
+ }
170
+ return obj;
171
+ },
172
+ create(base) {
173
+ return exports.getAllBureauReportRequest.fromPartial(base ?? {});
174
+ },
175
+ fromPartial(object) {
176
+ const message = createBasegetAllBureauReportRequest();
177
+ message.page = object.page ?? undefined;
178
+ message.limit = object.limit ?? undefined;
179
+ message.name = object.name ?? undefined;
180
+ message.customer_id = object.customer_id ?? undefined;
181
+ message.bureau_id = object.bureau_id ?? undefined;
182
+ message.start_date = object.start_date ?? undefined;
183
+ message.end_date = object.end_date ?? undefined;
184
+ message.pull_source = object.pull_source ?? undefined;
185
+ message.score = object.score ?? undefined;
186
+ return message;
187
+ },
188
+ };
189
+ function createBaseBureauReport() {
190
+ return {
191
+ name: undefined,
192
+ customer_id: undefined,
193
+ score: undefined,
194
+ bureau_id: undefined,
195
+ pull_source: undefined,
196
+ created_at: undefined,
197
+ };
198
+ }
199
+ exports.BureauReport = {
200
+ encode(message, writer = minimal_1.default.Writer.create()) {
201
+ if (message.name !== undefined) {
202
+ writer.uint32(10).string(message.name);
203
+ }
204
+ if (message.customer_id !== undefined) {
205
+ writer.uint32(16).int32(message.customer_id);
206
+ }
207
+ if (message.score !== undefined) {
208
+ writer.uint32(24).int32(message.score);
209
+ }
210
+ if (message.bureau_id !== undefined) {
211
+ writer.uint32(32).int32(message.bureau_id);
212
+ }
213
+ if (message.pull_source !== undefined) {
214
+ writer.uint32(42).string(message.pull_source);
215
+ }
216
+ if (message.created_at !== undefined) {
217
+ writer.uint32(50).string(message.created_at);
218
+ }
219
+ return writer;
220
+ },
221
+ decode(input, length) {
222
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
223
+ let end = length === undefined ? reader.len : reader.pos + length;
224
+ const message = createBaseBureauReport();
225
+ while (reader.pos < end) {
226
+ const tag = reader.uint32();
227
+ switch (tag >>> 3) {
228
+ case 1:
229
+ if (tag !== 10) {
230
+ break;
231
+ }
232
+ message.name = reader.string();
233
+ continue;
234
+ case 2:
235
+ if (tag !== 16) {
236
+ break;
237
+ }
238
+ message.customer_id = reader.int32();
239
+ continue;
240
+ case 3:
241
+ if (tag !== 24) {
242
+ break;
243
+ }
244
+ message.score = reader.int32();
245
+ continue;
246
+ case 4:
247
+ if (tag !== 32) {
248
+ break;
249
+ }
250
+ message.bureau_id = reader.int32();
251
+ continue;
252
+ case 5:
253
+ if (tag !== 42) {
254
+ break;
255
+ }
256
+ message.pull_source = reader.string();
257
+ continue;
258
+ case 6:
259
+ if (tag !== 50) {
260
+ break;
261
+ }
262
+ message.created_at = reader.string();
263
+ continue;
264
+ }
265
+ if ((tag & 7) === 4 || tag === 0) {
266
+ break;
267
+ }
268
+ reader.skipType(tag & 7);
269
+ }
270
+ return message;
271
+ },
272
+ fromJSON(object) {
273
+ return {
274
+ name: isSet(object.name) ? globalThis.String(object.name) : undefined,
275
+ customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : undefined,
276
+ score: isSet(object.score) ? globalThis.Number(object.score) : undefined,
277
+ bureau_id: isSet(object.bureau_id) ? globalThis.Number(object.bureau_id) : undefined,
278
+ pull_source: isSet(object.pull_source) ? globalThis.String(object.pull_source) : undefined,
279
+ created_at: isSet(object.created_at) ? globalThis.String(object.created_at) : undefined,
280
+ };
281
+ },
282
+ toJSON(message) {
283
+ const obj = {};
284
+ if (message.name !== undefined) {
285
+ obj.name = message.name;
286
+ }
287
+ if (message.customer_id !== undefined) {
288
+ obj.customer_id = Math.round(message.customer_id);
289
+ }
290
+ if (message.score !== undefined) {
291
+ obj.score = Math.round(message.score);
292
+ }
293
+ if (message.bureau_id !== undefined) {
294
+ obj.bureau_id = Math.round(message.bureau_id);
295
+ }
296
+ if (message.pull_source !== undefined) {
297
+ obj.pull_source = message.pull_source;
298
+ }
299
+ if (message.created_at !== undefined) {
300
+ obj.created_at = message.created_at;
301
+ }
302
+ return obj;
303
+ },
304
+ create(base) {
305
+ return exports.BureauReport.fromPartial(base ?? {});
306
+ },
307
+ fromPartial(object) {
308
+ const message = createBaseBureauReport();
309
+ message.name = object.name ?? undefined;
310
+ message.customer_id = object.customer_id ?? undefined;
311
+ message.score = object.score ?? undefined;
312
+ message.bureau_id = object.bureau_id ?? undefined;
313
+ message.pull_source = object.pull_source ?? undefined;
314
+ message.created_at = object.created_at ?? undefined;
315
+ return message;
316
+ },
317
+ };
318
+ function createBasegetAllBureauReportResponse() {
319
+ return { bureaureports: [] };
320
+ }
321
+ exports.getAllBureauReportResponse = {
322
+ encode(message, writer = minimal_1.default.Writer.create()) {
323
+ for (const v of message.bureaureports) {
324
+ exports.BureauReport.encode(v, writer.uint32(10).fork()).ldelim();
325
+ }
326
+ return writer;
327
+ },
328
+ decode(input, length) {
329
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
330
+ let end = length === undefined ? reader.len : reader.pos + length;
331
+ const message = createBasegetAllBureauReportResponse();
332
+ while (reader.pos < end) {
333
+ const tag = reader.uint32();
334
+ switch (tag >>> 3) {
335
+ case 1:
336
+ if (tag !== 10) {
337
+ break;
338
+ }
339
+ message.bureaureports.push(exports.BureauReport.decode(reader, reader.uint32()));
340
+ continue;
341
+ }
342
+ if ((tag & 7) === 4 || tag === 0) {
343
+ break;
344
+ }
345
+ reader.skipType(tag & 7);
346
+ }
347
+ return message;
348
+ },
349
+ fromJSON(object) {
350
+ return {
351
+ bureaureports: globalThis.Array.isArray(object?.bureaureports)
352
+ ? object.bureaureports.map((e) => exports.BureauReport.fromJSON(e))
353
+ : [],
354
+ };
355
+ },
356
+ toJSON(message) {
357
+ const obj = {};
358
+ if (message.bureaureports?.length) {
359
+ obj.bureaureports = message.bureaureports.map((e) => exports.BureauReport.toJSON(e));
360
+ }
361
+ return obj;
362
+ },
363
+ create(base) {
364
+ return exports.getAllBureauReportResponse.fromPartial(base ?? {});
365
+ },
366
+ fromPartial(object) {
367
+ const message = createBasegetAllBureauReportResponse();
368
+ message.bureaureports = object.bureaureports?.map((e) => exports.BureauReport.fromPartial(e)) || [];
369
+ return message;
370
+ },
371
+ };
372
+ function isSet(value) {
373
+ return value !== null && value !== undefined;
374
+ }
package/ts/bureau.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
2
2
  import { detailsRequest, detailsResponse } from "./bureau/getbasicdetails";
3
+ import { getAllBureauReportRequest, getAllBureauReportResponse } from "./bureau/getbureaudetails";
3
4
  import { getBureauScoreRequest, getBureauScoreResponse } from "./bureau/getbureauscore";
4
5
  import { webTokenRequest, webTokenResponse } from "./bureau/getcibilwebtoken";
5
6
  import { dbrRequest, dbrResponse } from "./bureau/getdbrcolending";
@@ -82,6 +83,15 @@ export declare const bureauService: {
82
83
  readonly responseSerialize: (value: getBureauScoreResponse) => Buffer;
83
84
  readonly responseDeserialize: (value: Buffer) => getBureauScoreResponse;
84
85
  };
86
+ readonly getBureauReports: {
87
+ readonly path: "/service.bureau/getBureauReports";
88
+ readonly requestStream: false;
89
+ readonly responseStream: false;
90
+ readonly requestSerialize: (value: getAllBureauReportRequest) => Buffer;
91
+ readonly requestDeserialize: (value: Buffer) => getAllBureauReportRequest;
92
+ readonly responseSerialize: (value: getAllBureauReportResponse) => Buffer;
93
+ readonly responseDeserialize: (value: Buffer) => getAllBureauReportResponse;
94
+ };
85
95
  };
86
96
  export interface bureauServer extends UntypedServiceImplementation {
87
97
  getBasicDetails: handleUnaryCall<detailsRequest, detailsResponse>;
@@ -92,6 +102,7 @@ export interface bureauServer extends UntypedServiceImplementation {
92
102
  getCibilWebToken: handleUnaryCall<webTokenRequest, webTokenResponse>;
93
103
  isChrEnabled: handleUnaryCall<requestParams, responseParams>;
94
104
  getBureauScore: handleUnaryCall<getBureauScoreRequest, getBureauScoreResponse>;
105
+ getBureauReports: handleUnaryCall<getAllBureauReportRequest, getAllBureauReportResponse>;
95
106
  }
96
107
  export interface bureauClient extends Client {
97
108
  getBasicDetails(request: detailsRequest, callback: (error: ServiceError | null, response: detailsResponse) => void): ClientUnaryCall;
@@ -118,6 +129,9 @@ export interface bureauClient extends Client {
118
129
  getBureauScore(request: getBureauScoreRequest, callback: (error: ServiceError | null, response: getBureauScoreResponse) => void): ClientUnaryCall;
119
130
  getBureauScore(request: getBureauScoreRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getBureauScoreResponse) => void): ClientUnaryCall;
120
131
  getBureauScore(request: getBureauScoreRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getBureauScoreResponse) => void): ClientUnaryCall;
132
+ getBureauReports(request: getAllBureauReportRequest, callback: (error: ServiceError | null, response: getAllBureauReportResponse) => void): ClientUnaryCall;
133
+ getBureauReports(request: getAllBureauReportRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getAllBureauReportResponse) => void): ClientUnaryCall;
134
+ getBureauReports(request: getAllBureauReportRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getAllBureauReportResponse) => void): ClientUnaryCall;
121
135
  }
122
136
  export declare const bureauClient: {
123
137
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): bureauClient;
package/ts/bureau.js CHANGED
@@ -9,6 +9,7 @@ exports.bureauClient = exports.bureauService = exports.protobufPackage = void 0;
9
9
  /* eslint-disable */
10
10
  const grpc_js_1 = require("@grpc/grpc-js");
11
11
  const getbasicdetails_1 = require("./bureau/getbasicdetails");
12
+ const getbureaudetails_1 = require("./bureau/getbureaudetails");
12
13
  const getbureauscore_1 = require("./bureau/getbureauscore");
13
14
  const getcibilwebtoken_1 = require("./bureau/getcibilwebtoken");
14
15
  const getdbrcolending_1 = require("./bureau/getdbrcolending");
@@ -90,5 +91,14 @@ exports.bureauService = {
90
91
  responseSerialize: (value) => Buffer.from(getbureauscore_1.getBureauScoreResponse.encode(value).finish()),
91
92
  responseDeserialize: (value) => getbureauscore_1.getBureauScoreResponse.decode(value),
92
93
  },
94
+ getBureauReports: {
95
+ path: "/service.bureau/getBureauReports",
96
+ requestStream: false,
97
+ responseStream: false,
98
+ requestSerialize: (value) => Buffer.from(getbureaudetails_1.getAllBureauReportRequest.encode(value).finish()),
99
+ requestDeserialize: (value) => getbureaudetails_1.getAllBureauReportRequest.decode(value),
100
+ responseSerialize: (value) => Buffer.from(getbureaudetails_1.getAllBureauReportResponse.encode(value).finish()),
101
+ responseDeserialize: (value) => getbureaudetails_1.getAllBureauReportResponse.decode(value),
102
+ },
93
103
  };
94
104
  exports.bureauClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.bureauService, "service.bureau");
@@ -2,6 +2,7 @@ import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "loans.getloctenure";
3
3
  export interface GetLocTenureRequest {
4
4
  amount: number;
5
+ is_cli: boolean;
5
6
  }
6
7
  export interface TenureDetail {
7
8
  tenure: number;
@@ -13,13 +13,16 @@ exports.GetLocTenureResponse = exports.TenureDetail = exports.GetLocTenureReques
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "loans.getloctenure";
15
15
  function createBaseGetLocTenureRequest() {
16
- return { amount: 0 };
16
+ return { amount: 0, is_cli: false };
17
17
  }
18
18
  exports.GetLocTenureRequest = {
19
19
  encode(message, writer = minimal_1.default.Writer.create()) {
20
20
  if (message.amount !== 0) {
21
21
  writer.uint32(8).int32(message.amount);
22
22
  }
23
+ if (message.is_cli !== false) {
24
+ writer.uint32(16).bool(message.is_cli);
25
+ }
23
26
  return writer;
24
27
  },
25
28
  decode(input, length) {
@@ -35,6 +38,12 @@ exports.GetLocTenureRequest = {
35
38
  }
36
39
  message.amount = reader.int32();
37
40
  continue;
41
+ case 2:
42
+ if (tag !== 16) {
43
+ break;
44
+ }
45
+ message.is_cli = reader.bool();
46
+ continue;
38
47
  }
39
48
  if ((tag & 7) === 4 || tag === 0) {
40
49
  break;
@@ -44,13 +53,19 @@ exports.GetLocTenureRequest = {
44
53
  return message;
45
54
  },
46
55
  fromJSON(object) {
47
- return { amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0 };
56
+ return {
57
+ amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
58
+ is_cli: isSet(object.is_cli) ? globalThis.Boolean(object.is_cli) : false,
59
+ };
48
60
  },
49
61
  toJSON(message) {
50
62
  const obj = {};
51
63
  if (message.amount !== 0) {
52
64
  obj.amount = Math.round(message.amount);
53
65
  }
66
+ if (message.is_cli !== false) {
67
+ obj.is_cli = message.is_cli;
68
+ }
54
69
  return obj;
55
70
  },
56
71
  create(base) {
@@ -59,6 +74,7 @@ exports.GetLocTenureRequest = {
59
74
  fromPartial(object) {
60
75
  const message = createBaseGetLocTenureRequest();
61
76
  message.amount = object.amount ?? 0;
77
+ message.is_cli = object.is_cli ?? false;
62
78
  return message;
63
79
  },
64
80
  };