@stashfin/grpc 1.2.702 → 1.2.704
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/growth/getchrreportdata.d.ts +1 -0
- package/ts/growth/getchrreportdata.js +19 -0
- package/ts/loans/locrequested.d.ts +36 -0
- package/ts/loans/locrequested.js +133 -0
- package/ts/loans.d.ts +14 -0
- package/ts/loans.js +10 -0
package/package.json
CHANGED
|
@@ -72,6 +72,7 @@ export interface chrReportDataResponse {
|
|
|
72
72
|
scoreanalysis: ScoreAnalysis[];
|
|
73
73
|
enquiries_data: EnquiriesData[];
|
|
74
74
|
enquiries?: Enquiries | undefined;
|
|
75
|
+
oldest_credit_card?: TradeLineData | undefined;
|
|
75
76
|
}
|
|
76
77
|
export declare const chrReportDataRequest: {
|
|
77
78
|
encode(message: chrReportDataRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -1045,6 +1045,7 @@ function createBasechrReportDataResponse() {
|
|
|
1045
1045
|
scoreanalysis: [],
|
|
1046
1046
|
enquiries_data: [],
|
|
1047
1047
|
enquiries: undefined,
|
|
1048
|
+
oldest_credit_card: undefined,
|
|
1048
1049
|
};
|
|
1049
1050
|
}
|
|
1050
1051
|
exports.chrReportDataResponse = {
|
|
@@ -1067,6 +1068,9 @@ exports.chrReportDataResponse = {
|
|
|
1067
1068
|
if (message.enquiries !== undefined) {
|
|
1068
1069
|
exports.Enquiries.encode(message.enquiries, writer.uint32(50).fork()).ldelim();
|
|
1069
1070
|
}
|
|
1071
|
+
if (message.oldest_credit_card !== undefined) {
|
|
1072
|
+
exports.TradeLineData.encode(message.oldest_credit_card, writer.uint32(58).fork()).ldelim();
|
|
1073
|
+
}
|
|
1070
1074
|
return writer;
|
|
1071
1075
|
},
|
|
1072
1076
|
decode(input, length) {
|
|
@@ -1112,6 +1116,12 @@ exports.chrReportDataResponse = {
|
|
|
1112
1116
|
}
|
|
1113
1117
|
message.enquiries = exports.Enquiries.decode(reader, reader.uint32());
|
|
1114
1118
|
continue;
|
|
1119
|
+
case 7:
|
|
1120
|
+
if (tag !== 58) {
|
|
1121
|
+
break;
|
|
1122
|
+
}
|
|
1123
|
+
message.oldest_credit_card = exports.TradeLineData.decode(reader, reader.uint32());
|
|
1124
|
+
continue;
|
|
1115
1125
|
}
|
|
1116
1126
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1117
1127
|
break;
|
|
@@ -1134,6 +1144,9 @@ exports.chrReportDataResponse = {
|
|
|
1134
1144
|
? object.enquiries_data.map((e) => exports.EnquiriesData.fromJSON(e))
|
|
1135
1145
|
: [],
|
|
1136
1146
|
enquiries: isSet(object.enquiries) ? exports.Enquiries.fromJSON(object.enquiries) : undefined,
|
|
1147
|
+
oldest_credit_card: isSet(object.oldest_credit_card)
|
|
1148
|
+
? exports.TradeLineData.fromJSON(object.oldest_credit_card)
|
|
1149
|
+
: undefined,
|
|
1137
1150
|
};
|
|
1138
1151
|
},
|
|
1139
1152
|
toJSON(message) {
|
|
@@ -1156,6 +1169,9 @@ exports.chrReportDataResponse = {
|
|
|
1156
1169
|
if (message.enquiries !== undefined) {
|
|
1157
1170
|
obj.enquiries = exports.Enquiries.toJSON(message.enquiries);
|
|
1158
1171
|
}
|
|
1172
|
+
if (message.oldest_credit_card !== undefined) {
|
|
1173
|
+
obj.oldest_credit_card = exports.TradeLineData.toJSON(message.oldest_credit_card);
|
|
1174
|
+
}
|
|
1159
1175
|
return obj;
|
|
1160
1176
|
},
|
|
1161
1177
|
create(base) {
|
|
@@ -1171,6 +1187,9 @@ exports.chrReportDataResponse = {
|
|
|
1171
1187
|
message.enquiries = (object.enquiries !== undefined && object.enquiries !== null)
|
|
1172
1188
|
? exports.Enquiries.fromPartial(object.enquiries)
|
|
1173
1189
|
: undefined;
|
|
1190
|
+
message.oldest_credit_card = (object.oldest_credit_card !== undefined && object.oldest_credit_card !== null)
|
|
1191
|
+
? exports.TradeLineData.fromPartial(object.oldest_credit_card)
|
|
1192
|
+
: undefined;
|
|
1174
1193
|
return message;
|
|
1175
1194
|
},
|
|
1176
1195
|
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.locrequested";
|
|
3
|
+
export interface LocRequestedReq {
|
|
4
|
+
customer_id: number;
|
|
5
|
+
ip_address: string;
|
|
6
|
+
}
|
|
7
|
+
export interface LocRequestedRes {
|
|
8
|
+
is_response: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const LocRequestedReq: {
|
|
11
|
+
encode(message: LocRequestedReq, writer?: _m0.Writer): _m0.Writer;
|
|
12
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): LocRequestedReq;
|
|
13
|
+
fromJSON(object: any): LocRequestedReq;
|
|
14
|
+
toJSON(message: LocRequestedReq): unknown;
|
|
15
|
+
create<I extends Exact<DeepPartial<LocRequestedReq>, I>>(base?: I): LocRequestedReq;
|
|
16
|
+
fromPartial<I extends Exact<DeepPartial<LocRequestedReq>, I>>(object: I): LocRequestedReq;
|
|
17
|
+
};
|
|
18
|
+
export declare const LocRequestedRes: {
|
|
19
|
+
encode(message: LocRequestedRes, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): LocRequestedRes;
|
|
21
|
+
fromJSON(object: any): LocRequestedRes;
|
|
22
|
+
toJSON(message: LocRequestedRes): unknown;
|
|
23
|
+
create<I extends Exact<DeepPartial<LocRequestedRes>, I>>(base?: I): LocRequestedRes;
|
|
24
|
+
fromPartial<I extends Exact<DeepPartial<LocRequestedRes>, I>>(object: I): LocRequestedRes;
|
|
25
|
+
};
|
|
26
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
27
|
+
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 {} ? {
|
|
28
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
29
|
+
} : Partial<T>;
|
|
30
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
31
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
32
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
33
|
+
} & {
|
|
34
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
35
|
+
};
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.1
|
|
5
|
+
// protoc v3.20.3
|
|
6
|
+
// source: loans/locrequested.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.LocRequestedRes = exports.LocRequestedReq = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.locrequested";
|
|
15
|
+
function createBaseLocRequestedReq() {
|
|
16
|
+
return { customer_id: 0, ip_address: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.LocRequestedReq = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.customer_id !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.customer_id);
|
|
22
|
+
}
|
|
23
|
+
if (message.ip_address !== "") {
|
|
24
|
+
writer.uint32(18).string(message.ip_address);
|
|
25
|
+
}
|
|
26
|
+
return writer;
|
|
27
|
+
},
|
|
28
|
+
decode(input, length) {
|
|
29
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
30
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31
|
+
const message = createBaseLocRequestedReq();
|
|
32
|
+
while (reader.pos < end) {
|
|
33
|
+
const tag = reader.uint32();
|
|
34
|
+
switch (tag >>> 3) {
|
|
35
|
+
case 1:
|
|
36
|
+
if (tag !== 8) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
message.customer_id = reader.int32();
|
|
40
|
+
continue;
|
|
41
|
+
case 2:
|
|
42
|
+
if (tag !== 18) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.ip_address = reader.string();
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
reader.skipType(tag & 7);
|
|
52
|
+
}
|
|
53
|
+
return message;
|
|
54
|
+
},
|
|
55
|
+
fromJSON(object) {
|
|
56
|
+
return {
|
|
57
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
58
|
+
ip_address: isSet(object.ip_address) ? globalThis.String(object.ip_address) : "",
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
toJSON(message) {
|
|
62
|
+
const obj = {};
|
|
63
|
+
if (message.customer_id !== 0) {
|
|
64
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
65
|
+
}
|
|
66
|
+
if (message.ip_address !== "") {
|
|
67
|
+
obj.ip_address = message.ip_address;
|
|
68
|
+
}
|
|
69
|
+
return obj;
|
|
70
|
+
},
|
|
71
|
+
create(base) {
|
|
72
|
+
return exports.LocRequestedReq.fromPartial(base ?? {});
|
|
73
|
+
},
|
|
74
|
+
fromPartial(object) {
|
|
75
|
+
const message = createBaseLocRequestedReq();
|
|
76
|
+
message.customer_id = object.customer_id ?? 0;
|
|
77
|
+
message.ip_address = object.ip_address ?? "";
|
|
78
|
+
return message;
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
function createBaseLocRequestedRes() {
|
|
82
|
+
return { is_response: false };
|
|
83
|
+
}
|
|
84
|
+
exports.LocRequestedRes = {
|
|
85
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
86
|
+
if (message.is_response !== false) {
|
|
87
|
+
writer.uint32(8).bool(message.is_response);
|
|
88
|
+
}
|
|
89
|
+
return writer;
|
|
90
|
+
},
|
|
91
|
+
decode(input, length) {
|
|
92
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
93
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
94
|
+
const message = createBaseLocRequestedRes();
|
|
95
|
+
while (reader.pos < end) {
|
|
96
|
+
const tag = reader.uint32();
|
|
97
|
+
switch (tag >>> 3) {
|
|
98
|
+
case 1:
|
|
99
|
+
if (tag !== 8) {
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
message.is_response = reader.bool();
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
reader.skipType(tag & 7);
|
|
109
|
+
}
|
|
110
|
+
return message;
|
|
111
|
+
},
|
|
112
|
+
fromJSON(object) {
|
|
113
|
+
return { is_response: isSet(object.is_response) ? globalThis.Boolean(object.is_response) : false };
|
|
114
|
+
},
|
|
115
|
+
toJSON(message) {
|
|
116
|
+
const obj = {};
|
|
117
|
+
if (message.is_response !== false) {
|
|
118
|
+
obj.is_response = message.is_response;
|
|
119
|
+
}
|
|
120
|
+
return obj;
|
|
121
|
+
},
|
|
122
|
+
create(base) {
|
|
123
|
+
return exports.LocRequestedRes.fromPartial(base ?? {});
|
|
124
|
+
},
|
|
125
|
+
fromPartial(object) {
|
|
126
|
+
const message = createBaseLocRequestedRes();
|
|
127
|
+
message.is_response = object.is_response ?? false;
|
|
128
|
+
return message;
|
|
129
|
+
},
|
|
130
|
+
};
|
|
131
|
+
function isSet(value) {
|
|
132
|
+
return value !== null && value !== undefined;
|
|
133
|
+
}
|
package/ts/loans.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ import { getTransactionStatusRequest, getTransactionStatusResponse } from "./loa
|
|
|
34
34
|
import { getUsedLimitfoRequest, getUsedLimitfoResponse } from "./loans/getusedlimit";
|
|
35
35
|
import { getVirtualBankInfoRequest, getVirtualBankInfoResponse } from "./loans/getvirtualbankinfo";
|
|
36
36
|
import { loanSummaryRequest, loanSummaryResponse } from "./loans/loansummary";
|
|
37
|
+
import { LocRequestedReq, LocRequestedRes } from "./loans/locrequested";
|
|
37
38
|
import { manualPaymentAllocationRequest, manualPaymentAllocationResponse } from "./loans/manualpaymentallocation";
|
|
38
39
|
import { paymentAllocationRequest, paymentAllocationResponse } from "./loans/paymentallocation";
|
|
39
40
|
import { paymentHistoryRequest, paymentHistoryResponse } from "./loans/paymenthistory";
|
|
@@ -492,6 +493,15 @@ export declare const loansService: {
|
|
|
492
493
|
readonly responseSerialize: (value: GetLocDisburseResponse) => Buffer;
|
|
493
494
|
readonly responseDeserialize: (value: Buffer) => GetLocDisburseResponse;
|
|
494
495
|
};
|
|
496
|
+
readonly locRequested: {
|
|
497
|
+
readonly path: "/service.loans/LocRequested";
|
|
498
|
+
readonly requestStream: false;
|
|
499
|
+
readonly responseStream: false;
|
|
500
|
+
readonly requestSerialize: (value: LocRequestedReq) => Buffer;
|
|
501
|
+
readonly requestDeserialize: (value: Buffer) => LocRequestedReq;
|
|
502
|
+
readonly responseSerialize: (value: LocRequestedRes) => Buffer;
|
|
503
|
+
readonly responseDeserialize: (value: Buffer) => LocRequestedRes;
|
|
504
|
+
};
|
|
495
505
|
};
|
|
496
506
|
export interface loansServer extends UntypedServiceImplementation {
|
|
497
507
|
creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
|
|
@@ -543,6 +553,7 @@ export interface loansServer extends UntypedServiceImplementation {
|
|
|
543
553
|
getBankDetails: handleUnaryCall<getBankDetailsRequest, getBankDetailsResponse>;
|
|
544
554
|
getLocDetails: handleUnaryCall<GetLocDetailsRequest, GetLocDetailsResponse>;
|
|
545
555
|
getLocDisburse: handleUnaryCall<GetLocDisburseRequest, GetLocDisburseResponse>;
|
|
556
|
+
locRequested: handleUnaryCall<LocRequestedReq, LocRequestedRes>;
|
|
546
557
|
}
|
|
547
558
|
export interface loansClient extends Client {
|
|
548
559
|
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
@@ -692,6 +703,9 @@ export interface loansClient extends Client {
|
|
|
692
703
|
getLocDisburse(request: GetLocDisburseRequest, callback: (error: ServiceError | null, response: GetLocDisburseResponse) => void): ClientUnaryCall;
|
|
693
704
|
getLocDisburse(request: GetLocDisburseRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetLocDisburseResponse) => void): ClientUnaryCall;
|
|
694
705
|
getLocDisburse(request: GetLocDisburseRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetLocDisburseResponse) => void): ClientUnaryCall;
|
|
706
|
+
locRequested(request: LocRequestedReq, callback: (error: ServiceError | null, response: LocRequestedRes) => void): ClientUnaryCall;
|
|
707
|
+
locRequested(request: LocRequestedReq, metadata: Metadata, callback: (error: ServiceError | null, response: LocRequestedRes) => void): ClientUnaryCall;
|
|
708
|
+
locRequested(request: LocRequestedReq, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: LocRequestedRes) => void): ClientUnaryCall;
|
|
695
709
|
}
|
|
696
710
|
export declare const loansClient: {
|
|
697
711
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
package/ts/loans.js
CHANGED
|
@@ -43,6 +43,7 @@ const gettransactionstatus_1 = require("./loans/gettransactionstatus");
|
|
|
43
43
|
const getusedlimit_1 = require("./loans/getusedlimit");
|
|
44
44
|
const getvirtualbankinfo_1 = require("./loans/getvirtualbankinfo");
|
|
45
45
|
const loansummary_1 = require("./loans/loansummary");
|
|
46
|
+
const locrequested_1 = require("./loans/locrequested");
|
|
46
47
|
const manualpaymentallocation_1 = require("./loans/manualpaymentallocation");
|
|
47
48
|
const paymentallocation_1 = require("./loans/paymentallocation");
|
|
48
49
|
const paymenthistory_1 = require("./loans/paymenthistory");
|
|
@@ -500,5 +501,14 @@ exports.loansService = {
|
|
|
500
501
|
responseSerialize: (value) => Buffer.from(getlocdisburse_1.GetLocDisburseResponse.encode(value).finish()),
|
|
501
502
|
responseDeserialize: (value) => getlocdisburse_1.GetLocDisburseResponse.decode(value),
|
|
502
503
|
},
|
|
504
|
+
locRequested: {
|
|
505
|
+
path: "/service.loans/LocRequested",
|
|
506
|
+
requestStream: false,
|
|
507
|
+
responseStream: false,
|
|
508
|
+
requestSerialize: (value) => Buffer.from(locrequested_1.LocRequestedReq.encode(value).finish()),
|
|
509
|
+
requestDeserialize: (value) => locrequested_1.LocRequestedReq.decode(value),
|
|
510
|
+
responseSerialize: (value) => Buffer.from(locrequested_1.LocRequestedRes.encode(value).finish()),
|
|
511
|
+
responseDeserialize: (value) => locrequested_1.LocRequestedRes.decode(value),
|
|
512
|
+
},
|
|
503
513
|
};
|
|
504
514
|
exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");
|