@stashfin/grpc 1.2.368 → 1.2.369
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 +1 -1
- package/ts/customers/getdashboardmaincard.d.ts +1 -0
- package/ts/customers/getdashboardmaincard.js +15 -0
- package/ts/loans/creditlimit.d.ts +1 -4
- package/ts/loans/creditlimit.js +18 -71
- package/ts/loans/updatecollectionview.d.ts +42 -0
- package/ts/loans/updatecollectionview.js +226 -0
- package/ts/loans.d.ts +14 -0
- package/ts/loans.js +10 -0
package/package.json
CHANGED
|
@@ -33,6 +33,7 @@ export interface MainCardData {
|
|
|
33
33
|
supp_loc_status: number;
|
|
34
34
|
supp_sub_title: string;
|
|
35
35
|
card_type: string;
|
|
36
|
+
sanction_amount: number;
|
|
36
37
|
}
|
|
37
38
|
export declare const getDashboardMainCardRequest: {
|
|
38
39
|
encode(_: getDashboardMainCardRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -171,6 +171,7 @@ function createBaseMainCardData() {
|
|
|
171
171
|
supp_loc_status: 0,
|
|
172
172
|
supp_sub_title: "",
|
|
173
173
|
card_type: "",
|
|
174
|
+
sanction_amount: 0,
|
|
174
175
|
};
|
|
175
176
|
}
|
|
176
177
|
exports.MainCardData = {
|
|
@@ -247,6 +248,9 @@ exports.MainCardData = {
|
|
|
247
248
|
if (message.card_type !== "") {
|
|
248
249
|
writer.uint32(194).string(message.card_type);
|
|
249
250
|
}
|
|
251
|
+
if (message.sanction_amount !== 0) {
|
|
252
|
+
writer.uint32(205).float(message.sanction_amount);
|
|
253
|
+
}
|
|
250
254
|
return writer;
|
|
251
255
|
},
|
|
252
256
|
decode(input, length) {
|
|
@@ -400,6 +404,12 @@ exports.MainCardData = {
|
|
|
400
404
|
}
|
|
401
405
|
message.card_type = reader.string();
|
|
402
406
|
continue;
|
|
407
|
+
case 25:
|
|
408
|
+
if (tag !== 205) {
|
|
409
|
+
break;
|
|
410
|
+
}
|
|
411
|
+
message.sanction_amount = reader.float();
|
|
412
|
+
continue;
|
|
403
413
|
}
|
|
404
414
|
if ((tag & 7) === 4 || tag === 0) {
|
|
405
415
|
break;
|
|
@@ -434,6 +444,7 @@ exports.MainCardData = {
|
|
|
434
444
|
supp_loc_status: isSet(object.supp_loc_status) ? globalThis.Number(object.supp_loc_status) : 0,
|
|
435
445
|
supp_sub_title: isSet(object.supp_sub_title) ? globalThis.String(object.supp_sub_title) : "",
|
|
436
446
|
card_type: isSet(object.card_type) ? globalThis.String(object.card_type) : "",
|
|
447
|
+
sanction_amount: isSet(object.sanction_amount) ? globalThis.Number(object.sanction_amount) : 0,
|
|
437
448
|
};
|
|
438
449
|
},
|
|
439
450
|
toJSON(message) {
|
|
@@ -510,6 +521,9 @@ exports.MainCardData = {
|
|
|
510
521
|
if (message.card_type !== "") {
|
|
511
522
|
obj.card_type = message.card_type;
|
|
512
523
|
}
|
|
524
|
+
if (message.sanction_amount !== 0) {
|
|
525
|
+
obj.sanction_amount = message.sanction_amount;
|
|
526
|
+
}
|
|
513
527
|
return obj;
|
|
514
528
|
},
|
|
515
529
|
create(base) {
|
|
@@ -541,6 +555,7 @@ exports.MainCardData = {
|
|
|
541
555
|
message.supp_loc_status = object.supp_loc_status ?? 0;
|
|
542
556
|
message.supp_sub_title = object.supp_sub_title ?? "";
|
|
543
557
|
message.card_type = object.card_type ?? "";
|
|
558
|
+
message.sanction_amount = object.sanction_amount ?? 0;
|
|
544
559
|
return message;
|
|
545
560
|
},
|
|
546
561
|
};
|
|
@@ -15,13 +15,10 @@ export interface creditLimitResponse {
|
|
|
15
15
|
minimum_request_amount: number;
|
|
16
16
|
sanctioned_limit: number;
|
|
17
17
|
remaining_sanctioned_limit: number;
|
|
18
|
-
sanctioned_limit_info_popup_heading: string;
|
|
19
|
-
sanctioned_limit_info_popup_body: string;
|
|
20
|
-
exposure_limit_info_popup_heading: string;
|
|
21
|
-
exposure_limit_info_popup_body: string;
|
|
22
18
|
sanctioned_limit_heading: string;
|
|
23
19
|
exposure_limit_heading: string;
|
|
24
20
|
sanction_upgrade: boolean;
|
|
21
|
+
new_sanctioned_limit: number;
|
|
25
22
|
}
|
|
26
23
|
export declare const creditLimitRequest: {
|
|
27
24
|
encode(_: creditLimitRequest, writer?: _m0.Writer): _m0.Writer;
|
package/ts/loans/creditlimit.js
CHANGED
|
@@ -63,13 +63,10 @@ function createBasecreditLimitResponse() {
|
|
|
63
63
|
minimum_request_amount: 0,
|
|
64
64
|
sanctioned_limit: 0,
|
|
65
65
|
remaining_sanctioned_limit: 0,
|
|
66
|
-
sanctioned_limit_info_popup_heading: "",
|
|
67
|
-
sanctioned_limit_info_popup_body: "",
|
|
68
|
-
exposure_limit_info_popup_heading: "",
|
|
69
|
-
exposure_limit_info_popup_body: "",
|
|
70
66
|
sanctioned_limit_heading: "",
|
|
71
67
|
exposure_limit_heading: "",
|
|
72
68
|
sanction_upgrade: false,
|
|
69
|
+
new_sanctioned_limit: 0,
|
|
73
70
|
};
|
|
74
71
|
}
|
|
75
72
|
exports.creditLimitResponse = {
|
|
@@ -110,26 +107,17 @@ exports.creditLimitResponse = {
|
|
|
110
107
|
if (message.remaining_sanctioned_limit !== 0) {
|
|
111
108
|
writer.uint32(96).int32(message.remaining_sanctioned_limit);
|
|
112
109
|
}
|
|
113
|
-
if (message.sanctioned_limit_info_popup_heading !== "") {
|
|
114
|
-
writer.uint32(106).string(message.sanctioned_limit_info_popup_heading);
|
|
115
|
-
}
|
|
116
|
-
if (message.sanctioned_limit_info_popup_body !== "") {
|
|
117
|
-
writer.uint32(114).string(message.sanctioned_limit_info_popup_body);
|
|
118
|
-
}
|
|
119
|
-
if (message.exposure_limit_info_popup_heading !== "") {
|
|
120
|
-
writer.uint32(122).string(message.exposure_limit_info_popup_heading);
|
|
121
|
-
}
|
|
122
|
-
if (message.exposure_limit_info_popup_body !== "") {
|
|
123
|
-
writer.uint32(130).string(message.exposure_limit_info_popup_body);
|
|
124
|
-
}
|
|
125
110
|
if (message.sanctioned_limit_heading !== "") {
|
|
126
|
-
writer.uint32(
|
|
111
|
+
writer.uint32(106).string(message.sanctioned_limit_heading);
|
|
127
112
|
}
|
|
128
113
|
if (message.exposure_limit_heading !== "") {
|
|
129
|
-
writer.uint32(
|
|
114
|
+
writer.uint32(114).string(message.exposure_limit_heading);
|
|
130
115
|
}
|
|
131
116
|
if (message.sanction_upgrade !== false) {
|
|
132
|
-
writer.uint32(
|
|
117
|
+
writer.uint32(120).bool(message.sanction_upgrade);
|
|
118
|
+
}
|
|
119
|
+
if (message.new_sanctioned_limit !== 0) {
|
|
120
|
+
writer.uint32(128).int32(message.new_sanctioned_limit);
|
|
133
121
|
}
|
|
134
122
|
return writer;
|
|
135
123
|
},
|
|
@@ -216,43 +204,25 @@ exports.creditLimitResponse = {
|
|
|
216
204
|
if (tag !== 106) {
|
|
217
205
|
break;
|
|
218
206
|
}
|
|
219
|
-
message.
|
|
207
|
+
message.sanctioned_limit_heading = reader.string();
|
|
220
208
|
continue;
|
|
221
209
|
case 14:
|
|
222
210
|
if (tag !== 114) {
|
|
223
211
|
break;
|
|
224
212
|
}
|
|
225
|
-
message.
|
|
213
|
+
message.exposure_limit_heading = reader.string();
|
|
226
214
|
continue;
|
|
227
215
|
case 15:
|
|
228
|
-
if (tag !==
|
|
216
|
+
if (tag !== 120) {
|
|
229
217
|
break;
|
|
230
218
|
}
|
|
231
|
-
message.
|
|
219
|
+
message.sanction_upgrade = reader.bool();
|
|
232
220
|
continue;
|
|
233
221
|
case 16:
|
|
234
|
-
if (tag !==
|
|
222
|
+
if (tag !== 128) {
|
|
235
223
|
break;
|
|
236
224
|
}
|
|
237
|
-
message.
|
|
238
|
-
continue;
|
|
239
|
-
case 17:
|
|
240
|
-
if (tag !== 138) {
|
|
241
|
-
break;
|
|
242
|
-
}
|
|
243
|
-
message.sanctioned_limit_heading = reader.string();
|
|
244
|
-
continue;
|
|
245
|
-
case 18:
|
|
246
|
-
if (tag !== 146) {
|
|
247
|
-
break;
|
|
248
|
-
}
|
|
249
|
-
message.exposure_limit_heading = reader.string();
|
|
250
|
-
continue;
|
|
251
|
-
case 19:
|
|
252
|
-
if (tag !== 152) {
|
|
253
|
-
break;
|
|
254
|
-
}
|
|
255
|
-
message.sanction_upgrade = reader.bool();
|
|
225
|
+
message.new_sanctioned_limit = reader.int32();
|
|
256
226
|
continue;
|
|
257
227
|
}
|
|
258
228
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -282,18 +252,6 @@ exports.creditLimitResponse = {
|
|
|
282
252
|
remaining_sanctioned_limit: isSet(object.remaining_sanctioned_limit)
|
|
283
253
|
? globalThis.Number(object.remaining_sanctioned_limit)
|
|
284
254
|
: 0,
|
|
285
|
-
sanctioned_limit_info_popup_heading: isSet(object.sanctioned_limit_info_popup_heading)
|
|
286
|
-
? globalThis.String(object.sanctioned_limit_info_popup_heading)
|
|
287
|
-
: "",
|
|
288
|
-
sanctioned_limit_info_popup_body: isSet(object.sanctioned_limit_info_popup_body)
|
|
289
|
-
? globalThis.String(object.sanctioned_limit_info_popup_body)
|
|
290
|
-
: "",
|
|
291
|
-
exposure_limit_info_popup_heading: isSet(object.exposure_limit_info_popup_heading)
|
|
292
|
-
? globalThis.String(object.exposure_limit_info_popup_heading)
|
|
293
|
-
: "",
|
|
294
|
-
exposure_limit_info_popup_body: isSet(object.exposure_limit_info_popup_body)
|
|
295
|
-
? globalThis.String(object.exposure_limit_info_popup_body)
|
|
296
|
-
: "",
|
|
297
255
|
sanctioned_limit_heading: isSet(object.sanctioned_limit_heading)
|
|
298
256
|
? globalThis.String(object.sanctioned_limit_heading)
|
|
299
257
|
: "",
|
|
@@ -301,6 +259,7 @@ exports.creditLimitResponse = {
|
|
|
301
259
|
? globalThis.String(object.exposure_limit_heading)
|
|
302
260
|
: "",
|
|
303
261
|
sanction_upgrade: isSet(object.sanction_upgrade) ? globalThis.Boolean(object.sanction_upgrade) : false,
|
|
262
|
+
new_sanctioned_limit: isSet(object.new_sanctioned_limit) ? globalThis.Number(object.new_sanctioned_limit) : 0,
|
|
304
263
|
};
|
|
305
264
|
},
|
|
306
265
|
toJSON(message) {
|
|
@@ -341,18 +300,6 @@ exports.creditLimitResponse = {
|
|
|
341
300
|
if (message.remaining_sanctioned_limit !== 0) {
|
|
342
301
|
obj.remaining_sanctioned_limit = Math.round(message.remaining_sanctioned_limit);
|
|
343
302
|
}
|
|
344
|
-
if (message.sanctioned_limit_info_popup_heading !== "") {
|
|
345
|
-
obj.sanctioned_limit_info_popup_heading = message.sanctioned_limit_info_popup_heading;
|
|
346
|
-
}
|
|
347
|
-
if (message.sanctioned_limit_info_popup_body !== "") {
|
|
348
|
-
obj.sanctioned_limit_info_popup_body = message.sanctioned_limit_info_popup_body;
|
|
349
|
-
}
|
|
350
|
-
if (message.exposure_limit_info_popup_heading !== "") {
|
|
351
|
-
obj.exposure_limit_info_popup_heading = message.exposure_limit_info_popup_heading;
|
|
352
|
-
}
|
|
353
|
-
if (message.exposure_limit_info_popup_body !== "") {
|
|
354
|
-
obj.exposure_limit_info_popup_body = message.exposure_limit_info_popup_body;
|
|
355
|
-
}
|
|
356
303
|
if (message.sanctioned_limit_heading !== "") {
|
|
357
304
|
obj.sanctioned_limit_heading = message.sanctioned_limit_heading;
|
|
358
305
|
}
|
|
@@ -362,6 +309,9 @@ exports.creditLimitResponse = {
|
|
|
362
309
|
if (message.sanction_upgrade !== false) {
|
|
363
310
|
obj.sanction_upgrade = message.sanction_upgrade;
|
|
364
311
|
}
|
|
312
|
+
if (message.new_sanctioned_limit !== 0) {
|
|
313
|
+
obj.new_sanctioned_limit = Math.round(message.new_sanctioned_limit);
|
|
314
|
+
}
|
|
365
315
|
return obj;
|
|
366
316
|
},
|
|
367
317
|
create(base) {
|
|
@@ -381,13 +331,10 @@ exports.creditLimitResponse = {
|
|
|
381
331
|
message.minimum_request_amount = object.minimum_request_amount ?? 0;
|
|
382
332
|
message.sanctioned_limit = object.sanctioned_limit ?? 0;
|
|
383
333
|
message.remaining_sanctioned_limit = object.remaining_sanctioned_limit ?? 0;
|
|
384
|
-
message.sanctioned_limit_info_popup_heading = object.sanctioned_limit_info_popup_heading ?? "";
|
|
385
|
-
message.sanctioned_limit_info_popup_body = object.sanctioned_limit_info_popup_body ?? "";
|
|
386
|
-
message.exposure_limit_info_popup_heading = object.exposure_limit_info_popup_heading ?? "";
|
|
387
|
-
message.exposure_limit_info_popup_body = object.exposure_limit_info_popup_body ?? "";
|
|
388
334
|
message.sanctioned_limit_heading = object.sanctioned_limit_heading ?? "";
|
|
389
335
|
message.exposure_limit_heading = object.exposure_limit_heading ?? "";
|
|
390
336
|
message.sanction_upgrade = object.sanction_upgrade ?? false;
|
|
337
|
+
message.new_sanctioned_limit = object.new_sanctioned_limit ?? 0;
|
|
391
338
|
return message;
|
|
392
339
|
},
|
|
393
340
|
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.updatecollectionview";
|
|
3
|
+
export interface updateCollectionViewRequest {
|
|
4
|
+
status: string;
|
|
5
|
+
bounce_reason: string;
|
|
6
|
+
ptp_date: string;
|
|
7
|
+
agent_name: string;
|
|
8
|
+
fos_agent: string;
|
|
9
|
+
cl_lead_assign_id: number;
|
|
10
|
+
level: number;
|
|
11
|
+
assigned_level: number;
|
|
12
|
+
}
|
|
13
|
+
export interface updateCollectionViewResponse {
|
|
14
|
+
id: number;
|
|
15
|
+
}
|
|
16
|
+
export declare const updateCollectionViewRequest: {
|
|
17
|
+
encode(message: updateCollectionViewRequest, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateCollectionViewRequest;
|
|
19
|
+
fromJSON(object: any): updateCollectionViewRequest;
|
|
20
|
+
toJSON(message: updateCollectionViewRequest): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<updateCollectionViewRequest>, I>>(base?: I): updateCollectionViewRequest;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<updateCollectionViewRequest>, I>>(object: I): updateCollectionViewRequest;
|
|
23
|
+
};
|
|
24
|
+
export declare const updateCollectionViewResponse: {
|
|
25
|
+
encode(message: updateCollectionViewResponse, writer?: _m0.Writer): _m0.Writer;
|
|
26
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateCollectionViewResponse;
|
|
27
|
+
fromJSON(object: any): updateCollectionViewResponse;
|
|
28
|
+
toJSON(message: updateCollectionViewResponse): unknown;
|
|
29
|
+
create<I extends Exact<DeepPartial<updateCollectionViewResponse>, I>>(base?: I): updateCollectionViewResponse;
|
|
30
|
+
fromPartial<I extends Exact<DeepPartial<updateCollectionViewResponse>, I>>(object: I): updateCollectionViewResponse;
|
|
31
|
+
};
|
|
32
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
33
|
+
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 {} ? {
|
|
34
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
35
|
+
} : Partial<T>;
|
|
36
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
37
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
38
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
39
|
+
} & {
|
|
40
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
41
|
+
};
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,226 @@
|
|
|
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 v5.28.3
|
|
6
|
+
// source: loans/updatecollectionview.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.updateCollectionViewResponse = exports.updateCollectionViewRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.updatecollectionview";
|
|
15
|
+
function createBaseupdateCollectionViewRequest() {
|
|
16
|
+
return {
|
|
17
|
+
status: "",
|
|
18
|
+
bounce_reason: "",
|
|
19
|
+
ptp_date: "",
|
|
20
|
+
agent_name: "",
|
|
21
|
+
fos_agent: "",
|
|
22
|
+
cl_lead_assign_id: 0,
|
|
23
|
+
level: 0,
|
|
24
|
+
assigned_level: 0,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
exports.updateCollectionViewRequest = {
|
|
28
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
29
|
+
if (message.status !== "") {
|
|
30
|
+
writer.uint32(10).string(message.status);
|
|
31
|
+
}
|
|
32
|
+
if (message.bounce_reason !== "") {
|
|
33
|
+
writer.uint32(18).string(message.bounce_reason);
|
|
34
|
+
}
|
|
35
|
+
if (message.ptp_date !== "") {
|
|
36
|
+
writer.uint32(26).string(message.ptp_date);
|
|
37
|
+
}
|
|
38
|
+
if (message.agent_name !== "") {
|
|
39
|
+
writer.uint32(34).string(message.agent_name);
|
|
40
|
+
}
|
|
41
|
+
if (message.fos_agent !== "") {
|
|
42
|
+
writer.uint32(42).string(message.fos_agent);
|
|
43
|
+
}
|
|
44
|
+
if (message.cl_lead_assign_id !== 0) {
|
|
45
|
+
writer.uint32(48).int32(message.cl_lead_assign_id);
|
|
46
|
+
}
|
|
47
|
+
if (message.level !== 0) {
|
|
48
|
+
writer.uint32(56).int32(message.level);
|
|
49
|
+
}
|
|
50
|
+
if (message.assigned_level !== 0) {
|
|
51
|
+
writer.uint32(64).int32(message.assigned_level);
|
|
52
|
+
}
|
|
53
|
+
return writer;
|
|
54
|
+
},
|
|
55
|
+
decode(input, length) {
|
|
56
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
57
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
58
|
+
const message = createBaseupdateCollectionViewRequest();
|
|
59
|
+
while (reader.pos < end) {
|
|
60
|
+
const tag = reader.uint32();
|
|
61
|
+
switch (tag >>> 3) {
|
|
62
|
+
case 1:
|
|
63
|
+
if (tag !== 10) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.status = reader.string();
|
|
67
|
+
continue;
|
|
68
|
+
case 2:
|
|
69
|
+
if (tag !== 18) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
message.bounce_reason = reader.string();
|
|
73
|
+
continue;
|
|
74
|
+
case 3:
|
|
75
|
+
if (tag !== 26) {
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
message.ptp_date = reader.string();
|
|
79
|
+
continue;
|
|
80
|
+
case 4:
|
|
81
|
+
if (tag !== 34) {
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
message.agent_name = reader.string();
|
|
85
|
+
continue;
|
|
86
|
+
case 5:
|
|
87
|
+
if (tag !== 42) {
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
message.fos_agent = reader.string();
|
|
91
|
+
continue;
|
|
92
|
+
case 6:
|
|
93
|
+
if (tag !== 48) {
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
message.cl_lead_assign_id = reader.int32();
|
|
97
|
+
continue;
|
|
98
|
+
case 7:
|
|
99
|
+
if (tag !== 56) {
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
message.level = reader.int32();
|
|
103
|
+
continue;
|
|
104
|
+
case 8:
|
|
105
|
+
if (tag !== 64) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
message.assigned_level = reader.int32();
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
reader.skipType(tag & 7);
|
|
115
|
+
}
|
|
116
|
+
return message;
|
|
117
|
+
},
|
|
118
|
+
fromJSON(object) {
|
|
119
|
+
return {
|
|
120
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
121
|
+
bounce_reason: isSet(object.bounce_reason) ? globalThis.String(object.bounce_reason) : "",
|
|
122
|
+
ptp_date: isSet(object.ptp_date) ? globalThis.String(object.ptp_date) : "",
|
|
123
|
+
agent_name: isSet(object.agent_name) ? globalThis.String(object.agent_name) : "",
|
|
124
|
+
fos_agent: isSet(object.fos_agent) ? globalThis.String(object.fos_agent) : "",
|
|
125
|
+
cl_lead_assign_id: isSet(object.cl_lead_assign_id) ? globalThis.Number(object.cl_lead_assign_id) : 0,
|
|
126
|
+
level: isSet(object.level) ? globalThis.Number(object.level) : 0,
|
|
127
|
+
assigned_level: isSet(object.assigned_level) ? globalThis.Number(object.assigned_level) : 0,
|
|
128
|
+
};
|
|
129
|
+
},
|
|
130
|
+
toJSON(message) {
|
|
131
|
+
const obj = {};
|
|
132
|
+
if (message.status !== "") {
|
|
133
|
+
obj.status = message.status;
|
|
134
|
+
}
|
|
135
|
+
if (message.bounce_reason !== "") {
|
|
136
|
+
obj.bounce_reason = message.bounce_reason;
|
|
137
|
+
}
|
|
138
|
+
if (message.ptp_date !== "") {
|
|
139
|
+
obj.ptp_date = message.ptp_date;
|
|
140
|
+
}
|
|
141
|
+
if (message.agent_name !== "") {
|
|
142
|
+
obj.agent_name = message.agent_name;
|
|
143
|
+
}
|
|
144
|
+
if (message.fos_agent !== "") {
|
|
145
|
+
obj.fos_agent = message.fos_agent;
|
|
146
|
+
}
|
|
147
|
+
if (message.cl_lead_assign_id !== 0) {
|
|
148
|
+
obj.cl_lead_assign_id = Math.round(message.cl_lead_assign_id);
|
|
149
|
+
}
|
|
150
|
+
if (message.level !== 0) {
|
|
151
|
+
obj.level = Math.round(message.level);
|
|
152
|
+
}
|
|
153
|
+
if (message.assigned_level !== 0) {
|
|
154
|
+
obj.assigned_level = Math.round(message.assigned_level);
|
|
155
|
+
}
|
|
156
|
+
return obj;
|
|
157
|
+
},
|
|
158
|
+
create(base) {
|
|
159
|
+
return exports.updateCollectionViewRequest.fromPartial(base ?? {});
|
|
160
|
+
},
|
|
161
|
+
fromPartial(object) {
|
|
162
|
+
const message = createBaseupdateCollectionViewRequest();
|
|
163
|
+
message.status = object.status ?? "";
|
|
164
|
+
message.bounce_reason = object.bounce_reason ?? "";
|
|
165
|
+
message.ptp_date = object.ptp_date ?? "";
|
|
166
|
+
message.agent_name = object.agent_name ?? "";
|
|
167
|
+
message.fos_agent = object.fos_agent ?? "";
|
|
168
|
+
message.cl_lead_assign_id = object.cl_lead_assign_id ?? 0;
|
|
169
|
+
message.level = object.level ?? 0;
|
|
170
|
+
message.assigned_level = object.assigned_level ?? 0;
|
|
171
|
+
return message;
|
|
172
|
+
},
|
|
173
|
+
};
|
|
174
|
+
function createBaseupdateCollectionViewResponse() {
|
|
175
|
+
return { id: 0 };
|
|
176
|
+
}
|
|
177
|
+
exports.updateCollectionViewResponse = {
|
|
178
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
179
|
+
if (message.id !== 0) {
|
|
180
|
+
writer.uint32(8).int32(message.id);
|
|
181
|
+
}
|
|
182
|
+
return writer;
|
|
183
|
+
},
|
|
184
|
+
decode(input, length) {
|
|
185
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
186
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
187
|
+
const message = createBaseupdateCollectionViewResponse();
|
|
188
|
+
while (reader.pos < end) {
|
|
189
|
+
const tag = reader.uint32();
|
|
190
|
+
switch (tag >>> 3) {
|
|
191
|
+
case 1:
|
|
192
|
+
if (tag !== 8) {
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
message.id = reader.int32();
|
|
196
|
+
continue;
|
|
197
|
+
}
|
|
198
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
199
|
+
break;
|
|
200
|
+
}
|
|
201
|
+
reader.skipType(tag & 7);
|
|
202
|
+
}
|
|
203
|
+
return message;
|
|
204
|
+
},
|
|
205
|
+
fromJSON(object) {
|
|
206
|
+
return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
207
|
+
},
|
|
208
|
+
toJSON(message) {
|
|
209
|
+
const obj = {};
|
|
210
|
+
if (message.id !== 0) {
|
|
211
|
+
obj.id = Math.round(message.id);
|
|
212
|
+
}
|
|
213
|
+
return obj;
|
|
214
|
+
},
|
|
215
|
+
create(base) {
|
|
216
|
+
return exports.updateCollectionViewResponse.fromPartial(base ?? {});
|
|
217
|
+
},
|
|
218
|
+
fromPartial(object) {
|
|
219
|
+
const message = createBaseupdateCollectionViewResponse();
|
|
220
|
+
message.id = object.id ?? 0;
|
|
221
|
+
return message;
|
|
222
|
+
},
|
|
223
|
+
};
|
|
224
|
+
function isSet(value) {
|
|
225
|
+
return value !== null && value !== undefined;
|
|
226
|
+
}
|
package/ts/loans.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ import { rollbackRequest, rollbackResponse } from "./loans/rollback";
|
|
|
32
32
|
import { sendEmailRequest, sendEmailResponse } from "./loans/sendemail";
|
|
33
33
|
import { sendNocEmailRequest, sendNocEmailResponse } from "./loans/sendnocemail";
|
|
34
34
|
import { transactionListRequest, transactionListResponse } from "./loans/transactionlist";
|
|
35
|
+
import { updateCollectionViewRequest, updateCollectionViewResponse } from "./loans/updatecollectionview";
|
|
35
36
|
import { updateInstallmentsRequest, updateInstallmentsResponse } from "./loans/updateinstallments";
|
|
36
37
|
import { updateLoanRequest, updateLoanResponse } from "./loans/updateloan";
|
|
37
38
|
import { updateTransactionStatusRequest, updateTransactionStatusResponse } from "./loans/updatetransactionstatus";
|
|
@@ -362,6 +363,15 @@ export declare const loansService: {
|
|
|
362
363
|
readonly responseSerialize: (value: getAddonsListResponse) => Buffer;
|
|
363
364
|
readonly responseDeserialize: (value: Buffer) => getAddonsListResponse;
|
|
364
365
|
};
|
|
366
|
+
readonly updateCollectionview: {
|
|
367
|
+
readonly path: "/service.loans/updateCollectionview";
|
|
368
|
+
readonly requestStream: false;
|
|
369
|
+
readonly responseStream: false;
|
|
370
|
+
readonly requestSerialize: (value: updateCollectionViewRequest) => Buffer;
|
|
371
|
+
readonly requestDeserialize: (value: Buffer) => updateCollectionViewRequest;
|
|
372
|
+
readonly responseSerialize: (value: updateCollectionViewResponse) => Buffer;
|
|
373
|
+
readonly responseDeserialize: (value: Buffer) => updateCollectionViewResponse;
|
|
374
|
+
};
|
|
365
375
|
};
|
|
366
376
|
export interface loansServer extends UntypedServiceImplementation {
|
|
367
377
|
creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
|
|
@@ -400,6 +410,7 @@ export interface loansServer extends UntypedServiceImplementation {
|
|
|
400
410
|
getpaymentoptions: handleUnaryCall<getPaymentOptionsRequest, getPaymentOptionsResponse>;
|
|
401
411
|
cbLoan: handleUnaryCall<cbLoanRequest, cbLoanResponse>;
|
|
402
412
|
getAddonsList: handleUnaryCall<getAddonsListRequest, getAddonsListResponse>;
|
|
413
|
+
updateCollectionview: handleUnaryCall<updateCollectionViewRequest, updateCollectionViewResponse>;
|
|
403
414
|
}
|
|
404
415
|
export interface loansClient extends Client {
|
|
405
416
|
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
@@ -510,6 +521,9 @@ export interface loansClient extends Client {
|
|
|
510
521
|
getAddonsList(request: getAddonsListRequest, callback: (error: ServiceError | null, response: getAddonsListResponse) => void): ClientUnaryCall;
|
|
511
522
|
getAddonsList(request: getAddonsListRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getAddonsListResponse) => void): ClientUnaryCall;
|
|
512
523
|
getAddonsList(request: getAddonsListRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getAddonsListResponse) => void): ClientUnaryCall;
|
|
524
|
+
updateCollectionview(request: updateCollectionViewRequest, callback: (error: ServiceError | null, response: updateCollectionViewResponse) => void): ClientUnaryCall;
|
|
525
|
+
updateCollectionview(request: updateCollectionViewRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateCollectionViewResponse) => void): ClientUnaryCall;
|
|
526
|
+
updateCollectionview(request: updateCollectionViewRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateCollectionViewResponse) => void): ClientUnaryCall;
|
|
513
527
|
}
|
|
514
528
|
export declare const loansClient: {
|
|
515
529
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
package/ts/loans.js
CHANGED
|
@@ -41,6 +41,7 @@ const rollback_1 = require("./loans/rollback");
|
|
|
41
41
|
const sendemail_1 = require("./loans/sendemail");
|
|
42
42
|
const sendnocemail_1 = require("./loans/sendnocemail");
|
|
43
43
|
const transactionlist_1 = require("./loans/transactionlist");
|
|
44
|
+
const updatecollectionview_1 = require("./loans/updatecollectionview");
|
|
44
45
|
const updateinstallments_1 = require("./loans/updateinstallments");
|
|
45
46
|
const updateloan_1 = require("./loans/updateloan");
|
|
46
47
|
const updatetransactionstatus_1 = require("./loans/updatetransactionstatus");
|
|
@@ -370,5 +371,14 @@ exports.loansService = {
|
|
|
370
371
|
responseSerialize: (value) => Buffer.from(getaddonslist_1.getAddonsListResponse.encode(value).finish()),
|
|
371
372
|
responseDeserialize: (value) => getaddonslist_1.getAddonsListResponse.decode(value),
|
|
372
373
|
},
|
|
374
|
+
updateCollectionview: {
|
|
375
|
+
path: "/service.loans/updateCollectionview",
|
|
376
|
+
requestStream: false,
|
|
377
|
+
responseStream: false,
|
|
378
|
+
requestSerialize: (value) => Buffer.from(updatecollectionview_1.updateCollectionViewRequest.encode(value).finish()),
|
|
379
|
+
requestDeserialize: (value) => updatecollectionview_1.updateCollectionViewRequest.decode(value),
|
|
380
|
+
responseSerialize: (value) => Buffer.from(updatecollectionview_1.updateCollectionViewResponse.encode(value).finish()),
|
|
381
|
+
responseDeserialize: (value) => updatecollectionview_1.updateCollectionViewResponse.decode(value),
|
|
382
|
+
},
|
|
373
383
|
};
|
|
374
384
|
exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");
|