@stashfin/grpc 1.2.326 → 1.2.328
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/getcustomerbyid.d.ts +1 -0
- package/ts/customers/getcustomerbyid.js +15 -0
- package/ts/customers/getdashboardmaincard.d.ts +1 -0
- package/ts/customers/getdashboardmaincard.js +15 -0
- package/ts/customers/updatecategory.d.ts +1 -0
- package/ts/customers/updatecategory.js +15 -1
- package/ts/customers/updatecustomerbyid.d.ts +1 -0
- package/ts/customers/updatecustomerbyid.js +15 -1
- package/ts/loans/updateloan.d.ts +1 -0
- package/ts/loans/updateloan.js +15 -1
package/package.json
CHANGED
|
@@ -148,6 +148,7 @@ function createBasegetCustomerByIdResponse() {
|
|
|
148
148
|
journey_status: "",
|
|
149
149
|
journey_sequence: "",
|
|
150
150
|
va_number: "",
|
|
151
|
+
sanctioned_amount: 0,
|
|
151
152
|
};
|
|
152
153
|
}
|
|
153
154
|
exports.getCustomerByIdResponse = {
|
|
@@ -401,6 +402,9 @@ exports.getCustomerByIdResponse = {
|
|
|
401
402
|
if (message.va_number !== "") {
|
|
402
403
|
writer.uint32(674).string(message.va_number);
|
|
403
404
|
}
|
|
405
|
+
if (message.sanctioned_amount !== 0) {
|
|
406
|
+
writer.uint32(685).float(message.sanctioned_amount);
|
|
407
|
+
}
|
|
404
408
|
return writer;
|
|
405
409
|
},
|
|
406
410
|
decode(input, length) {
|
|
@@ -908,6 +912,12 @@ exports.getCustomerByIdResponse = {
|
|
|
908
912
|
}
|
|
909
913
|
message.va_number = reader.string();
|
|
910
914
|
continue;
|
|
915
|
+
case 85:
|
|
916
|
+
if (tag !== 685) {
|
|
917
|
+
break;
|
|
918
|
+
}
|
|
919
|
+
message.sanctioned_amount = reader.float();
|
|
920
|
+
continue;
|
|
911
921
|
}
|
|
912
922
|
if ((tag & 7) === 4 || tag === 0) {
|
|
913
923
|
break;
|
|
@@ -1001,6 +1011,7 @@ exports.getCustomerByIdResponse = {
|
|
|
1001
1011
|
journey_status: isSet(object.journey_status) ? globalThis.String(object.journey_status) : "",
|
|
1002
1012
|
journey_sequence: isSet(object.journey_sequence) ? globalThis.String(object.journey_sequence) : "",
|
|
1003
1013
|
va_number: isSet(object.va_number) ? globalThis.String(object.va_number) : "",
|
|
1014
|
+
sanctioned_amount: isSet(object.sanctioned_amount) ? globalThis.Number(object.sanctioned_amount) : 0,
|
|
1004
1015
|
};
|
|
1005
1016
|
},
|
|
1006
1017
|
toJSON(message) {
|
|
@@ -1254,6 +1265,9 @@ exports.getCustomerByIdResponse = {
|
|
|
1254
1265
|
if (message.va_number !== "") {
|
|
1255
1266
|
obj.va_number = message.va_number;
|
|
1256
1267
|
}
|
|
1268
|
+
if (message.sanctioned_amount !== 0) {
|
|
1269
|
+
obj.sanctioned_amount = message.sanctioned_amount;
|
|
1270
|
+
}
|
|
1257
1271
|
return obj;
|
|
1258
1272
|
},
|
|
1259
1273
|
create(base) {
|
|
@@ -1352,6 +1366,7 @@ exports.getCustomerByIdResponse = {
|
|
|
1352
1366
|
message.journey_status = object.journey_status ?? "";
|
|
1353
1367
|
message.journey_sequence = object.journey_sequence ?? "";
|
|
1354
1368
|
message.va_number = object.va_number ?? "";
|
|
1369
|
+
message.sanctioned_amount = object.sanctioned_amount ?? 0;
|
|
1355
1370
|
return message;
|
|
1356
1371
|
},
|
|
1357
1372
|
};
|
|
@@ -32,6 +32,7 @@ export interface MainCardData {
|
|
|
32
32
|
supp_title: string;
|
|
33
33
|
supp_loc_status: number;
|
|
34
34
|
supp_sub_title: string;
|
|
35
|
+
card_type: string;
|
|
35
36
|
}
|
|
36
37
|
export declare const getDashboardMainCardRequest: {
|
|
37
38
|
encode(_: getDashboardMainCardRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -170,6 +170,7 @@ function createBaseMainCardData() {
|
|
|
170
170
|
supp_title: "",
|
|
171
171
|
supp_loc_status: 0,
|
|
172
172
|
supp_sub_title: "",
|
|
173
|
+
card_type: "",
|
|
173
174
|
};
|
|
174
175
|
}
|
|
175
176
|
exports.MainCardData = {
|
|
@@ -243,6 +244,9 @@ exports.MainCardData = {
|
|
|
243
244
|
if (message.supp_sub_title !== "") {
|
|
244
245
|
writer.uint32(186).string(message.supp_sub_title);
|
|
245
246
|
}
|
|
247
|
+
if (message.card_type !== "") {
|
|
248
|
+
writer.uint32(194).string(message.card_type);
|
|
249
|
+
}
|
|
246
250
|
return writer;
|
|
247
251
|
},
|
|
248
252
|
decode(input, length) {
|
|
@@ -390,6 +394,12 @@ exports.MainCardData = {
|
|
|
390
394
|
}
|
|
391
395
|
message.supp_sub_title = reader.string();
|
|
392
396
|
continue;
|
|
397
|
+
case 24:
|
|
398
|
+
if (tag !== 194) {
|
|
399
|
+
break;
|
|
400
|
+
}
|
|
401
|
+
message.card_type = reader.string();
|
|
402
|
+
continue;
|
|
393
403
|
}
|
|
394
404
|
if ((tag & 7) === 4 || tag === 0) {
|
|
395
405
|
break;
|
|
@@ -423,6 +433,7 @@ exports.MainCardData = {
|
|
|
423
433
|
supp_title: isSet(object.supp_title) ? globalThis.String(object.supp_title) : "",
|
|
424
434
|
supp_loc_status: isSet(object.supp_loc_status) ? globalThis.Number(object.supp_loc_status) : 0,
|
|
425
435
|
supp_sub_title: isSet(object.supp_sub_title) ? globalThis.String(object.supp_sub_title) : "",
|
|
436
|
+
card_type: isSet(object.card_type) ? globalThis.String(object.card_type) : "",
|
|
426
437
|
};
|
|
427
438
|
},
|
|
428
439
|
toJSON(message) {
|
|
@@ -496,6 +507,9 @@ exports.MainCardData = {
|
|
|
496
507
|
if (message.supp_sub_title !== "") {
|
|
497
508
|
obj.supp_sub_title = message.supp_sub_title;
|
|
498
509
|
}
|
|
510
|
+
if (message.card_type !== "") {
|
|
511
|
+
obj.card_type = message.card_type;
|
|
512
|
+
}
|
|
499
513
|
return obj;
|
|
500
514
|
},
|
|
501
515
|
create(base) {
|
|
@@ -526,6 +540,7 @@ exports.MainCardData = {
|
|
|
526
540
|
message.supp_title = object.supp_title ?? "";
|
|
527
541
|
message.supp_loc_status = object.supp_loc_status ?? 0;
|
|
528
542
|
message.supp_sub_title = object.supp_sub_title ?? "";
|
|
543
|
+
message.card_type = object.card_type ?? "";
|
|
529
544
|
return message;
|
|
530
545
|
},
|
|
531
546
|
};
|
|
@@ -14,7 +14,7 @@ const long_1 = __importDefault(require("long"));
|
|
|
14
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
15
|
exports.protobufPackage = "customers.updatecategory";
|
|
16
16
|
function createBaseupdateCategoryRequest() {
|
|
17
|
-
return { customer_id: 0, category: "", product_code: "" };
|
|
17
|
+
return { customer_id: 0, category: "", product_code: "", comments: [] };
|
|
18
18
|
}
|
|
19
19
|
exports.updateCategoryRequest = {
|
|
20
20
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -27,6 +27,9 @@ exports.updateCategoryRequest = {
|
|
|
27
27
|
if (message.product_code !== "") {
|
|
28
28
|
writer.uint32(26).string(message.product_code);
|
|
29
29
|
}
|
|
30
|
+
for (const v of message.comments) {
|
|
31
|
+
writer.uint32(34).string(v);
|
|
32
|
+
}
|
|
30
33
|
return writer;
|
|
31
34
|
},
|
|
32
35
|
decode(input, length) {
|
|
@@ -54,6 +57,12 @@ exports.updateCategoryRequest = {
|
|
|
54
57
|
}
|
|
55
58
|
message.product_code = reader.string();
|
|
56
59
|
continue;
|
|
60
|
+
case 4:
|
|
61
|
+
if (tag !== 34) {
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
message.comments.push(reader.string());
|
|
65
|
+
continue;
|
|
57
66
|
}
|
|
58
67
|
if ((tag & 7) === 4 || tag === 0) {
|
|
59
68
|
break;
|
|
@@ -67,6 +76,7 @@ exports.updateCategoryRequest = {
|
|
|
67
76
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
68
77
|
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
69
78
|
product_code: isSet(object.product_code) ? globalThis.String(object.product_code) : "",
|
|
79
|
+
comments: globalThis.Array.isArray(object?.comments) ? object.comments.map((e) => globalThis.String(e)) : [],
|
|
70
80
|
};
|
|
71
81
|
},
|
|
72
82
|
toJSON(message) {
|
|
@@ -80,6 +90,9 @@ exports.updateCategoryRequest = {
|
|
|
80
90
|
if (message.product_code !== "") {
|
|
81
91
|
obj.product_code = message.product_code;
|
|
82
92
|
}
|
|
93
|
+
if (message.comments?.length) {
|
|
94
|
+
obj.comments = message.comments;
|
|
95
|
+
}
|
|
83
96
|
return obj;
|
|
84
97
|
},
|
|
85
98
|
create(base) {
|
|
@@ -90,6 +103,7 @@ exports.updateCategoryRequest = {
|
|
|
90
103
|
message.customer_id = object.customer_id ?? 0;
|
|
91
104
|
message.category = object.category ?? "";
|
|
92
105
|
message.product_code = object.product_code ?? "";
|
|
106
|
+
message.comments = object.comments?.map((e) => e) || [];
|
|
93
107
|
return message;
|
|
94
108
|
},
|
|
95
109
|
};
|
|
@@ -13,7 +13,7 @@ exports.updateCustomerByIdResponse = exports.UpdateField = exports.updateCustome
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customers.updatecustomerbyid";
|
|
15
15
|
function createBaseupdateCustomerByIdRequest() {
|
|
16
|
-
return { customer_id: 0, updatedata: [] };
|
|
16
|
+
return { customer_id: 0, updatedata: [], comments: [] };
|
|
17
17
|
}
|
|
18
18
|
exports.updateCustomerByIdRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -23,6 +23,9 @@ exports.updateCustomerByIdRequest = {
|
|
|
23
23
|
for (const v of message.updatedata) {
|
|
24
24
|
exports.UpdateField.encode(v, writer.uint32(18).fork()).ldelim();
|
|
25
25
|
}
|
|
26
|
+
for (const v of message.comments) {
|
|
27
|
+
writer.uint32(26).string(v);
|
|
28
|
+
}
|
|
26
29
|
return writer;
|
|
27
30
|
},
|
|
28
31
|
decode(input, length) {
|
|
@@ -44,6 +47,12 @@ exports.updateCustomerByIdRequest = {
|
|
|
44
47
|
}
|
|
45
48
|
message.updatedata.push(exports.UpdateField.decode(reader, reader.uint32()));
|
|
46
49
|
continue;
|
|
50
|
+
case 3:
|
|
51
|
+
if (tag !== 26) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.comments.push(reader.string());
|
|
55
|
+
continue;
|
|
47
56
|
}
|
|
48
57
|
if ((tag & 7) === 4 || tag === 0) {
|
|
49
58
|
break;
|
|
@@ -58,6 +67,7 @@ exports.updateCustomerByIdRequest = {
|
|
|
58
67
|
updatedata: globalThis.Array.isArray(object?.updatedata)
|
|
59
68
|
? object.updatedata.map((e) => exports.UpdateField.fromJSON(e))
|
|
60
69
|
: [],
|
|
70
|
+
comments: globalThis.Array.isArray(object?.comments) ? object.comments.map((e) => globalThis.String(e)) : [],
|
|
61
71
|
};
|
|
62
72
|
},
|
|
63
73
|
toJSON(message) {
|
|
@@ -68,6 +78,9 @@ exports.updateCustomerByIdRequest = {
|
|
|
68
78
|
if (message.updatedata?.length) {
|
|
69
79
|
obj.updatedata = message.updatedata.map((e) => exports.UpdateField.toJSON(e));
|
|
70
80
|
}
|
|
81
|
+
if (message.comments?.length) {
|
|
82
|
+
obj.comments = message.comments;
|
|
83
|
+
}
|
|
71
84
|
return obj;
|
|
72
85
|
},
|
|
73
86
|
create(base) {
|
|
@@ -77,6 +90,7 @@ exports.updateCustomerByIdRequest = {
|
|
|
77
90
|
const message = createBaseupdateCustomerByIdRequest();
|
|
78
91
|
message.customer_id = object.customer_id ?? 0;
|
|
79
92
|
message.updatedata = object.updatedata?.map((e) => exports.UpdateField.fromPartial(e)) || [];
|
|
93
|
+
message.comments = object.comments?.map((e) => e) || [];
|
|
80
94
|
return message;
|
|
81
95
|
},
|
|
82
96
|
};
|
package/ts/loans/updateloan.d.ts
CHANGED
package/ts/loans/updateloan.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.updateLoanResponse = exports.updateLoanRequest = exports.protobufPackage
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.updateloan";
|
|
15
15
|
function createBaseupdateLoanRequest() {
|
|
16
|
-
return { loan_id: 0, status: "" };
|
|
16
|
+
return { loan_id: 0, status: "", customer_id: 0 };
|
|
17
17
|
}
|
|
18
18
|
exports.updateLoanRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -23,6 +23,9 @@ exports.updateLoanRequest = {
|
|
|
23
23
|
if (message.status !== "") {
|
|
24
24
|
writer.uint32(18).string(message.status);
|
|
25
25
|
}
|
|
26
|
+
if (message.customer_id !== 0) {
|
|
27
|
+
writer.uint32(24).int32(message.customer_id);
|
|
28
|
+
}
|
|
26
29
|
return writer;
|
|
27
30
|
},
|
|
28
31
|
decode(input, length) {
|
|
@@ -44,6 +47,12 @@ exports.updateLoanRequest = {
|
|
|
44
47
|
}
|
|
45
48
|
message.status = reader.string();
|
|
46
49
|
continue;
|
|
50
|
+
case 3:
|
|
51
|
+
if (tag !== 24) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.customer_id = reader.int32();
|
|
55
|
+
continue;
|
|
47
56
|
}
|
|
48
57
|
if ((tag & 7) === 4 || tag === 0) {
|
|
49
58
|
break;
|
|
@@ -56,6 +65,7 @@ exports.updateLoanRequest = {
|
|
|
56
65
|
return {
|
|
57
66
|
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
58
67
|
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
68
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
59
69
|
};
|
|
60
70
|
},
|
|
61
71
|
toJSON(message) {
|
|
@@ -66,6 +76,9 @@ exports.updateLoanRequest = {
|
|
|
66
76
|
if (message.status !== "") {
|
|
67
77
|
obj.status = message.status;
|
|
68
78
|
}
|
|
79
|
+
if (message.customer_id !== 0) {
|
|
80
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
81
|
+
}
|
|
69
82
|
return obj;
|
|
70
83
|
},
|
|
71
84
|
create(base) {
|
|
@@ -75,6 +88,7 @@ exports.updateLoanRequest = {
|
|
|
75
88
|
const message = createBaseupdateLoanRequest();
|
|
76
89
|
message.loan_id = object.loan_id ?? 0;
|
|
77
90
|
message.status = object.status ?? "";
|
|
91
|
+
message.customer_id = object.customer_id ?? 0;
|
|
78
92
|
return message;
|
|
79
93
|
},
|
|
80
94
|
};
|