@stashfin/grpc 1.2.67 → 1.2.70
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/aa/getbanklist.d.ts +48 -0
- package/ts/customers/aa/getbanklist.js +198 -0
- package/ts/customers/addaddress.js +1 -1
- package/ts/customers/addbankaccountdetails.js +1 -1
- package/ts/customers/addsuspendedcustomer.d.ts +36 -0
- package/ts/customers/addsuspendedcustomer.js +133 -0
- package/ts/customers/createcustomerreference.js +1 -1
- package/ts/customers/deleteprofile.js +1 -1
- package/ts/customers/forgotmpin.js +1 -1
- package/ts/customers/forgotmpinotp.js +1 -1
- package/ts/customers/getbankaccountdetails.js +1 -1
- package/ts/customers/getbanklist.d.ts +48 -0
- package/ts/customers/getbanklist.js +198 -0
- package/ts/customers/getbasicinfo.js +1 -1
- package/ts/customers/getcities.js +1 -1
- package/ts/customers/getcustomerbyid.d.ts +1 -0
- package/ts/customers/getcustomerbyid.js +16 -1
- package/ts/customers/getdashboard.js +1 -1
- package/ts/customers/getdashboardmaincard.js +1 -1
- package/ts/customers/getkycweburl.js +1 -1
- package/ts/customers/getprofessionalinfo.js +1 -1
- package/ts/customers/getprofile.d.ts +1 -0
- package/ts/customers/getprofile.js +17 -2
- package/ts/customers/getstates.js +1 -1
- package/ts/customers/getstep.js +1 -1
- package/ts/customers/profilebasic.js +1 -1
- package/ts/customers/profileupdatetnc.js +1 -1
- package/ts/customers/resetmpin.js +1 -1
- package/ts/customers/savebasicdetails.js +1 -1
- package/ts/customers/saveunlocklimit.js +1 -1
- package/ts/customers/sendemailtoken.js +1 -1
- package/ts/customers/sendotp.js +1 -1
- package/ts/customers/setmpin.js +1 -1
- package/ts/customers/step1.d.ts +71 -0
- package/ts/customers/step1.js +423 -0
- package/ts/customers/step10.js +1 -1
- package/ts/customers/step2.d.ts +67 -0
- package/ts/customers/step2.js +366 -0
- package/ts/customers/step7.js +1 -1
- package/ts/customers/step8.js +1 -1
- package/ts/customers/step9.js +1 -1
- package/ts/customers/stepstatic.js +1 -1
- package/ts/customers/updatedigilockertxn.js +1 -1
- package/ts/customers/updatedob.js +1 -1
- package/ts/customers/updatehypervergetxn.js +1 -1
- package/ts/customers/updatelocdisabled.d.ts +35 -0
- package/ts/customers/updatelocdisabled.js +117 -0
- package/ts/customers/validatepan.js +1 -1
- package/ts/customers/verifyemail.js +1 -1
- package/ts/customers/verifympin.js +1 -1
- package/ts/customers/verifyotp.js +1 -1
- package/ts/customers.d.ts +42 -0
- package/ts/customers.js +31 -1
- package/ts/example.js +1 -1
- package/ts/google/protobuf/timestamp.js +1 -1
- package/ts/loans/approveloan.js +1 -1
- package/ts/loans/banklist.js +1 -1
- package/ts/loans/calculateemi.js +1 -1
- package/ts/loans/creditlimit.js +1 -1
- package/ts/loans/getcustomerloanstatus.d.ts +34 -0
- package/ts/loans/getcustomerloanstatus.js +104 -0
- package/ts/loans/loansummary.js +1 -1
- package/ts/loans/paymentallocation.js +1 -1
- package/ts/loans/restructureloan.js +1 -1
- package/ts/loans/transactionlist.d.ts +2 -0
- package/ts/loans/transactionlist.js +30 -2
- package/ts/loans/updateinstallments.js +1 -1
- package/ts/loans/updateloan.js +1 -1
- package/ts/loans.d.ts +14 -0
- package/ts/loans.js +11 -1
- package/ts/payments.d.ts +214 -31
- package/ts/payments.js +1095 -22
- package/ts/stashcash/creditsc.js +1 -1
- package/ts/stashcash/debitsc.js +1 -1
- package/ts/stashcash/getscbalance.js +1 -1
- package/ts/stashcash/getschistory.js +1 -1
- package/ts/stashcash/reversesc.js +1 -1
- package/ts/stashcash.js +1 -1
- package/ts/payments/checkpaymentstatus.d.ts +0 -51
- package/ts/payments/checkpaymentstatus.js +0 -259
- package/ts/payments/getpaymentoptions.d.ts +0 -50
- package/ts/payments/getpaymentoptions.js +0 -233
- package/ts/payments/initiatepayment.d.ts +0 -52
- package/ts/payments/initiatepayment.js +0 -271
package/ts/customers.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
+
import { getBankListRequest, getBankListResponse } from "./customers/aa/getbanklist";
|
|
2
3
|
import { addAddressRequest, addAddressResponse } from "./customers/addaddress";
|
|
3
4
|
import { addBankAccountDetailsRequest, addBankAccountDetailsResponse } from "./customers/addbankaccountdetails";
|
|
5
|
+
import { addSuspendedCustomerRequest, addSuspendedCustomerResponse } from "./customers/addsuspendedcustomer";
|
|
4
6
|
import { createCustomerReferenceRequest, createCustomerReferenceResponse } from "./customers/createcustomerreference";
|
|
5
7
|
import { deleteProfileRequest, deleteProfileResponse } from "./customers/deleteprofile";
|
|
6
8
|
import { forgotMpinRequest, forgotMpinResponse } from "./customers/forgotmpin";
|
|
@@ -32,6 +34,7 @@ import { stepstaticRequest, stepstaticResponse } from "./customers/stepstatic";
|
|
|
32
34
|
import { updateDigiLockerTxnRequest, updateDigiLockerTxnResponse } from "./customers/updatedigilockertxn";
|
|
33
35
|
import { updateDOBRequest, updateDOBResponse } from "./customers/updatedob";
|
|
34
36
|
import { updateHypervergeTxnRequest, updateHypervergeTxnResponse } from "./customers/updatehypervergetxn";
|
|
37
|
+
import { locDisabledRequest, locDisabledResponse } from "./customers/updatelocdisabled";
|
|
35
38
|
import { validatePanRequest, validatePanResponse } from "./customers/validatepan";
|
|
36
39
|
import { verifyEmailRequest, verifyEmailResponse } from "./customers/verifyemail";
|
|
37
40
|
import { verifyMpinRequest, verifyMpinResponse } from "./customers/verifympin";
|
|
@@ -426,6 +429,33 @@ export declare const customersService: {
|
|
|
426
429
|
readonly responseSerialize: (value: deleteProfileResponse) => Buffer;
|
|
427
430
|
readonly responseDeserialize: (value: Buffer) => deleteProfileResponse;
|
|
428
431
|
};
|
|
432
|
+
readonly getBankList: {
|
|
433
|
+
readonly path: "/service.customers/getBankList";
|
|
434
|
+
readonly requestStream: false;
|
|
435
|
+
readonly responseStream: false;
|
|
436
|
+
readonly requestSerialize: (value: getBankListRequest) => Buffer;
|
|
437
|
+
readonly requestDeserialize: (value: Buffer) => getBankListRequest;
|
|
438
|
+
readonly responseSerialize: (value: getBankListResponse) => Buffer;
|
|
439
|
+
readonly responseDeserialize: (value: Buffer) => getBankListResponse;
|
|
440
|
+
};
|
|
441
|
+
readonly addSuspendedCustomer: {
|
|
442
|
+
readonly path: "/service.customers/addSuspendedCustomer";
|
|
443
|
+
readonly requestStream: false;
|
|
444
|
+
readonly responseStream: false;
|
|
445
|
+
readonly requestSerialize: (value: addSuspendedCustomerRequest) => Buffer;
|
|
446
|
+
readonly requestDeserialize: (value: Buffer) => addSuspendedCustomerRequest;
|
|
447
|
+
readonly responseSerialize: (value: addSuspendedCustomerResponse) => Buffer;
|
|
448
|
+
readonly responseDeserialize: (value: Buffer) => addSuspendedCustomerResponse;
|
|
449
|
+
};
|
|
450
|
+
readonly updatelocdisabled: {
|
|
451
|
+
readonly path: "/service.customers/updatelocdisabled";
|
|
452
|
+
readonly requestStream: false;
|
|
453
|
+
readonly responseStream: false;
|
|
454
|
+
readonly requestSerialize: (value: locDisabledRequest) => Buffer;
|
|
455
|
+
readonly requestDeserialize: (value: Buffer) => locDisabledRequest;
|
|
456
|
+
readonly responseSerialize: (value: locDisabledResponse) => Buffer;
|
|
457
|
+
readonly responseDeserialize: (value: Buffer) => locDisabledResponse;
|
|
458
|
+
};
|
|
429
459
|
};
|
|
430
460
|
export interface customersServer extends UntypedServiceImplementation {
|
|
431
461
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -471,6 +501,9 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
471
501
|
updateDob: handleUnaryCall<updateDOBRequest, updateDOBResponse>;
|
|
472
502
|
validatePan: handleUnaryCall<validatePanRequest, validatePanResponse>;
|
|
473
503
|
deleteProfile: handleUnaryCall<deleteProfileRequest, deleteProfileResponse>;
|
|
504
|
+
getBankList: handleUnaryCall<getBankListRequest, getBankListResponse>;
|
|
505
|
+
addSuspendedCustomer: handleUnaryCall<addSuspendedCustomerRequest, addSuspendedCustomerResponse>;
|
|
506
|
+
updatelocdisabled: handleUnaryCall<locDisabledRequest, locDisabledResponse>;
|
|
474
507
|
}
|
|
475
508
|
export interface customersClient extends Client {
|
|
476
509
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -602,6 +635,15 @@ export interface customersClient extends Client {
|
|
|
602
635
|
deleteProfile(request: deleteProfileRequest, callback: (error: ServiceError | null, response: deleteProfileResponse) => void): ClientUnaryCall;
|
|
603
636
|
deleteProfile(request: deleteProfileRequest, metadata: Metadata, callback: (error: ServiceError | null, response: deleteProfileResponse) => void): ClientUnaryCall;
|
|
604
637
|
deleteProfile(request: deleteProfileRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: deleteProfileResponse) => void): ClientUnaryCall;
|
|
638
|
+
getBankList(request: getBankListRequest, callback: (error: ServiceError | null, response: getBankListResponse) => void): ClientUnaryCall;
|
|
639
|
+
getBankList(request: getBankListRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getBankListResponse) => void): ClientUnaryCall;
|
|
640
|
+
getBankList(request: getBankListRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getBankListResponse) => void): ClientUnaryCall;
|
|
641
|
+
addSuspendedCustomer(request: addSuspendedCustomerRequest, callback: (error: ServiceError | null, response: addSuspendedCustomerResponse) => void): ClientUnaryCall;
|
|
642
|
+
addSuspendedCustomer(request: addSuspendedCustomerRequest, metadata: Metadata, callback: (error: ServiceError | null, response: addSuspendedCustomerResponse) => void): ClientUnaryCall;
|
|
643
|
+
addSuspendedCustomer(request: addSuspendedCustomerRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: addSuspendedCustomerResponse) => void): ClientUnaryCall;
|
|
644
|
+
updatelocdisabled(request: locDisabledRequest, callback: (error: ServiceError | null, response: locDisabledResponse) => void): ClientUnaryCall;
|
|
645
|
+
updatelocdisabled(request: locDisabledRequest, metadata: Metadata, callback: (error: ServiceError | null, response: locDisabledResponse) => void): ClientUnaryCall;
|
|
646
|
+
updatelocdisabled(request: locDisabledRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: locDisabledResponse) => void): ClientUnaryCall;
|
|
605
647
|
}
|
|
606
648
|
export declare const customersClient: {
|
|
607
649
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.customersClient = exports.customersService = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
|
+
const getbanklist_1 = require("./customers/aa/getbanklist");
|
|
11
12
|
const addaddress_1 = require("./customers/addaddress");
|
|
12
13
|
const addbankaccountdetails_1 = require("./customers/addbankaccountdetails");
|
|
14
|
+
const addsuspendedcustomer_1 = require("./customers/addsuspendedcustomer");
|
|
13
15
|
const createcustomerreference_1 = require("./customers/createcustomerreference");
|
|
14
16
|
const deleteprofile_1 = require("./customers/deleteprofile");
|
|
15
17
|
const forgotmpin_1 = require("./customers/forgotmpin");
|
|
@@ -41,6 +43,7 @@ const stepstatic_1 = require("./customers/stepstatic");
|
|
|
41
43
|
const updatedigilockertxn_1 = require("./customers/updatedigilockertxn");
|
|
42
44
|
const updatedob_1 = require("./customers/updatedob");
|
|
43
45
|
const updatehypervergetxn_1 = require("./customers/updatehypervergetxn");
|
|
46
|
+
const updatelocdisabled_1 = require("./customers/updatelocdisabled");
|
|
44
47
|
const validatepan_1 = require("./customers/validatepan");
|
|
45
48
|
const verifyemail_1 = require("./customers/verifyemail");
|
|
46
49
|
const verifympin_1 = require("./customers/verifympin");
|
|
@@ -434,5 +437,32 @@ exports.customersService = {
|
|
|
434
437
|
responseSerialize: (value) => Buffer.from(deleteprofile_1.deleteProfileResponse.encode(value).finish()),
|
|
435
438
|
responseDeserialize: (value) => deleteprofile_1.deleteProfileResponse.decode(value),
|
|
436
439
|
},
|
|
440
|
+
getBankList: {
|
|
441
|
+
path: "/service.customers/getBankList",
|
|
442
|
+
requestStream: false,
|
|
443
|
+
responseStream: false,
|
|
444
|
+
requestSerialize: (value) => Buffer.from(getbanklist_1.getBankListRequest.encode(value).finish()),
|
|
445
|
+
requestDeserialize: (value) => getbanklist_1.getBankListRequest.decode(value),
|
|
446
|
+
responseSerialize: (value) => Buffer.from(getbanklist_1.getBankListResponse.encode(value).finish()),
|
|
447
|
+
responseDeserialize: (value) => getbanklist_1.getBankListResponse.decode(value),
|
|
448
|
+
},
|
|
449
|
+
addSuspendedCustomer: {
|
|
450
|
+
path: "/service.customers/addSuspendedCustomer",
|
|
451
|
+
requestStream: false,
|
|
452
|
+
responseStream: false,
|
|
453
|
+
requestSerialize: (value) => Buffer.from(addsuspendedcustomer_1.addSuspendedCustomerRequest.encode(value).finish()),
|
|
454
|
+
requestDeserialize: (value) => addsuspendedcustomer_1.addSuspendedCustomerRequest.decode(value),
|
|
455
|
+
responseSerialize: (value) => Buffer.from(addsuspendedcustomer_1.addSuspendedCustomerResponse.encode(value).finish()),
|
|
456
|
+
responseDeserialize: (value) => addsuspendedcustomer_1.addSuspendedCustomerResponse.decode(value),
|
|
457
|
+
},
|
|
458
|
+
updatelocdisabled: {
|
|
459
|
+
path: "/service.customers/updatelocdisabled",
|
|
460
|
+
requestStream: false,
|
|
461
|
+
responseStream: false,
|
|
462
|
+
requestSerialize: (value) => Buffer.from(updatelocdisabled_1.locDisabledRequest.encode(value).finish()),
|
|
463
|
+
requestDeserialize: (value) => updatelocdisabled_1.locDisabledRequest.decode(value),
|
|
464
|
+
responseSerialize: (value) => Buffer.from(updatelocdisabled_1.locDisabledResponse.encode(value).finish()),
|
|
465
|
+
responseDeserialize: (value) => updatelocdisabled_1.locDisabledResponse.decode(value),
|
|
466
|
+
},
|
|
437
467
|
};
|
|
438
468
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
package/ts/example.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: example.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: google/protobuf/timestamp.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/loans/approveloan.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/approveloan.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/loans/banklist.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/banklist.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/loans/calculateemi.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/calculateemi.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/loans/creditlimit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/creditlimit.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.getcustomerloanstatus";
|
|
3
|
+
export interface getCustomerLoanStatusRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface getCustomerLoanStatusResponse {
|
|
6
|
+
is_loc: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const getCustomerLoanStatusRequest: {
|
|
9
|
+
encode(_: getCustomerLoanStatusRequest, writer?: _m0.Writer): _m0.Writer;
|
|
10
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getCustomerLoanStatusRequest;
|
|
11
|
+
fromJSON(_: any): getCustomerLoanStatusRequest;
|
|
12
|
+
toJSON(_: getCustomerLoanStatusRequest): unknown;
|
|
13
|
+
create<I extends Exact<DeepPartial<getCustomerLoanStatusRequest>, I>>(base?: I): getCustomerLoanStatusRequest;
|
|
14
|
+
fromPartial<I extends Exact<DeepPartial<getCustomerLoanStatusRequest>, I>>(_: I): getCustomerLoanStatusRequest;
|
|
15
|
+
};
|
|
16
|
+
export declare const getCustomerLoanStatusResponse: {
|
|
17
|
+
encode(message: getCustomerLoanStatusResponse, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getCustomerLoanStatusResponse;
|
|
19
|
+
fromJSON(object: any): getCustomerLoanStatusResponse;
|
|
20
|
+
toJSON(message: getCustomerLoanStatusResponse): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<getCustomerLoanStatusResponse>, I>>(base?: I): getCustomerLoanStatusResponse;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<getCustomerLoanStatusResponse>, I>>(object: I): getCustomerLoanStatusResponse;
|
|
23
|
+
};
|
|
24
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
25
|
+
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 {} ? {
|
|
26
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
27
|
+
} : Partial<T>;
|
|
28
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
29
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
30
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
31
|
+
} & {
|
|
32
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
33
|
+
};
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,104 @@
|
|
|
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 v3.20.3
|
|
6
|
+
// source: loans/getcustomerloanstatus.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.getCustomerLoanStatusResponse = exports.getCustomerLoanStatusRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.getcustomerloanstatus";
|
|
15
|
+
function createBasegetCustomerLoanStatusRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.getCustomerLoanStatusRequest = {
|
|
19
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
return writer;
|
|
21
|
+
},
|
|
22
|
+
decode(input, length) {
|
|
23
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
24
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
+
const message = createBasegetCustomerLoanStatusRequest();
|
|
26
|
+
while (reader.pos < end) {
|
|
27
|
+
const tag = reader.uint32();
|
|
28
|
+
switch (tag >>> 3) {
|
|
29
|
+
}
|
|
30
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
reader.skipType(tag & 7);
|
|
34
|
+
}
|
|
35
|
+
return message;
|
|
36
|
+
},
|
|
37
|
+
fromJSON(_) {
|
|
38
|
+
return {};
|
|
39
|
+
},
|
|
40
|
+
toJSON(_) {
|
|
41
|
+
const obj = {};
|
|
42
|
+
return obj;
|
|
43
|
+
},
|
|
44
|
+
create(base) {
|
|
45
|
+
return exports.getCustomerLoanStatusRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasegetCustomerLoanStatusRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasegetCustomerLoanStatusResponse() {
|
|
53
|
+
return { is_loc: false };
|
|
54
|
+
}
|
|
55
|
+
exports.getCustomerLoanStatusResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.is_loc !== false) {
|
|
58
|
+
writer.uint32(8).bool(message.is_loc);
|
|
59
|
+
}
|
|
60
|
+
return writer;
|
|
61
|
+
},
|
|
62
|
+
decode(input, length) {
|
|
63
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
64
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
65
|
+
const message = createBasegetCustomerLoanStatusResponse();
|
|
66
|
+
while (reader.pos < end) {
|
|
67
|
+
const tag = reader.uint32();
|
|
68
|
+
switch (tag >>> 3) {
|
|
69
|
+
case 1:
|
|
70
|
+
if (tag !== 8) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.is_loc = reader.bool();
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
reader.skipType(tag & 7);
|
|
80
|
+
}
|
|
81
|
+
return message;
|
|
82
|
+
},
|
|
83
|
+
fromJSON(object) {
|
|
84
|
+
return { is_loc: isSet(object.is_loc) ? globalThis.Boolean(object.is_loc) : false };
|
|
85
|
+
},
|
|
86
|
+
toJSON(message) {
|
|
87
|
+
const obj = {};
|
|
88
|
+
if (message.is_loc !== false) {
|
|
89
|
+
obj.is_loc = message.is_loc;
|
|
90
|
+
}
|
|
91
|
+
return obj;
|
|
92
|
+
},
|
|
93
|
+
create(base) {
|
|
94
|
+
return exports.getCustomerLoanStatusResponse.fromPartial(base ?? {});
|
|
95
|
+
},
|
|
96
|
+
fromPartial(object) {
|
|
97
|
+
const message = createBasegetCustomerLoanStatusResponse();
|
|
98
|
+
message.is_loc = object.is_loc ?? false;
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
function isSet(value) {
|
|
103
|
+
return value !== null && value !== undefined;
|
|
104
|
+
}
|
package/ts/loans/loansummary.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/loansummary.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/paymentallocation.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/restructureloan.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -12,6 +12,8 @@ export interface transactionListResponse_Field {
|
|
|
12
12
|
emi_amount: number;
|
|
13
13
|
start_date: string;
|
|
14
14
|
close_date: string;
|
|
15
|
+
loan_agreement: string;
|
|
16
|
+
noc: string;
|
|
15
17
|
}
|
|
16
18
|
export declare const transactionListRequest: {
|
|
17
19
|
encode(message: transactionListRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/transactionlist.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -117,7 +117,7 @@ exports.transactionListResponse = {
|
|
|
117
117
|
},
|
|
118
118
|
};
|
|
119
119
|
function createBasetransactionListResponse_Field() {
|
|
120
|
-
return { id: 0, loan_amount: 0, emi_amount: 0, start_date: "", close_date: "" };
|
|
120
|
+
return { id: 0, loan_amount: 0, emi_amount: 0, start_date: "", close_date: "", loan_agreement: "", noc: "" };
|
|
121
121
|
}
|
|
122
122
|
exports.transactionListResponse_Field = {
|
|
123
123
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -136,6 +136,12 @@ exports.transactionListResponse_Field = {
|
|
|
136
136
|
if (message.close_date !== "") {
|
|
137
137
|
writer.uint32(42).string(message.close_date);
|
|
138
138
|
}
|
|
139
|
+
if (message.loan_agreement !== "") {
|
|
140
|
+
writer.uint32(50).string(message.loan_agreement);
|
|
141
|
+
}
|
|
142
|
+
if (message.noc !== "") {
|
|
143
|
+
writer.uint32(58).string(message.noc);
|
|
144
|
+
}
|
|
139
145
|
return writer;
|
|
140
146
|
},
|
|
141
147
|
decode(input, length) {
|
|
@@ -175,6 +181,18 @@ exports.transactionListResponse_Field = {
|
|
|
175
181
|
}
|
|
176
182
|
message.close_date = reader.string();
|
|
177
183
|
continue;
|
|
184
|
+
case 6:
|
|
185
|
+
if (tag !== 50) {
|
|
186
|
+
break;
|
|
187
|
+
}
|
|
188
|
+
message.loan_agreement = reader.string();
|
|
189
|
+
continue;
|
|
190
|
+
case 7:
|
|
191
|
+
if (tag !== 58) {
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
message.noc = reader.string();
|
|
195
|
+
continue;
|
|
178
196
|
}
|
|
179
197
|
if ((tag & 7) === 4 || tag === 0) {
|
|
180
198
|
break;
|
|
@@ -190,6 +208,8 @@ exports.transactionListResponse_Field = {
|
|
|
190
208
|
emi_amount: isSet(object.emi_amount) ? globalThis.Number(object.emi_amount) : 0,
|
|
191
209
|
start_date: isSet(object.start_date) ? globalThis.String(object.start_date) : "",
|
|
192
210
|
close_date: isSet(object.close_date) ? globalThis.String(object.close_date) : "",
|
|
211
|
+
loan_agreement: isSet(object.loan_agreement) ? globalThis.String(object.loan_agreement) : "",
|
|
212
|
+
noc: isSet(object.noc) ? globalThis.String(object.noc) : "",
|
|
193
213
|
};
|
|
194
214
|
},
|
|
195
215
|
toJSON(message) {
|
|
@@ -209,6 +229,12 @@ exports.transactionListResponse_Field = {
|
|
|
209
229
|
if (message.close_date !== "") {
|
|
210
230
|
obj.close_date = message.close_date;
|
|
211
231
|
}
|
|
232
|
+
if (message.loan_agreement !== "") {
|
|
233
|
+
obj.loan_agreement = message.loan_agreement;
|
|
234
|
+
}
|
|
235
|
+
if (message.noc !== "") {
|
|
236
|
+
obj.noc = message.noc;
|
|
237
|
+
}
|
|
212
238
|
return obj;
|
|
213
239
|
},
|
|
214
240
|
create(base) {
|
|
@@ -221,6 +247,8 @@ exports.transactionListResponse_Field = {
|
|
|
221
247
|
message.emi_amount = object.emi_amount ?? 0;
|
|
222
248
|
message.start_date = object.start_date ?? "";
|
|
223
249
|
message.close_date = object.close_date ?? "";
|
|
250
|
+
message.loan_agreement = object.loan_agreement ?? "";
|
|
251
|
+
message.noc = object.noc ?? "";
|
|
224
252
|
return message;
|
|
225
253
|
},
|
|
226
254
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/updateinstallments.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/loans/updateloan.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/updateloan.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/loans.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { approveLoanRequest, approveLoanResponse } from "./loans/approveloan";
|
|
|
3
3
|
import { bankListRequest, bankListResponse } from "./loans/banklist";
|
|
4
4
|
import { calculateEmiRequest, calculateEmiResponse } from "./loans/calculateemi";
|
|
5
5
|
import { creditLimitRequest, creditLimitResponse } from "./loans/creditlimit";
|
|
6
|
+
import { getCustomerLoanStatusRequest, getCustomerLoanStatusResponse } from "./loans/getcustomerloanstatus";
|
|
6
7
|
import { loanSummaryRequest, loanSummaryResponse } from "./loans/loansummary";
|
|
7
8
|
import { paymentAllocationRequest, paymentAllocationResponse } from "./loans/paymentallocation";
|
|
8
9
|
import { restructureLoanRequest, restructureLoanResponse } from "./loans/restructureloan";
|
|
@@ -102,6 +103,15 @@ export declare const loansService: {
|
|
|
102
103
|
readonly responseSerialize: (value: loanSummaryResponse) => Buffer;
|
|
103
104
|
readonly responseDeserialize: (value: Buffer) => loanSummaryResponse;
|
|
104
105
|
};
|
|
106
|
+
readonly getCustomerLoanStatus: {
|
|
107
|
+
readonly path: "/service.loans/getCustomerLoanStatus";
|
|
108
|
+
readonly requestStream: false;
|
|
109
|
+
readonly responseStream: false;
|
|
110
|
+
readonly requestSerialize: (value: getCustomerLoanStatusRequest) => Buffer;
|
|
111
|
+
readonly requestDeserialize: (value: Buffer) => getCustomerLoanStatusRequest;
|
|
112
|
+
readonly responseSerialize: (value: getCustomerLoanStatusResponse) => Buffer;
|
|
113
|
+
readonly responseDeserialize: (value: Buffer) => getCustomerLoanStatusResponse;
|
|
114
|
+
};
|
|
105
115
|
};
|
|
106
116
|
export interface loansServer extends UntypedServiceImplementation {
|
|
107
117
|
creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
|
|
@@ -114,6 +124,7 @@ export interface loansServer extends UntypedServiceImplementation {
|
|
|
114
124
|
transactionList: handleUnaryCall<transactionListRequest, transactionListResponse>;
|
|
115
125
|
paymentAllocation: handleUnaryCall<paymentAllocationRequest, paymentAllocationResponse>;
|
|
116
126
|
loanSummary: handleUnaryCall<loanSummaryRequest, loanSummaryResponse>;
|
|
127
|
+
getCustomerLoanStatus: handleUnaryCall<getCustomerLoanStatusRequest, getCustomerLoanStatusResponse>;
|
|
117
128
|
}
|
|
118
129
|
export interface loansClient extends Client {
|
|
119
130
|
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
@@ -146,6 +157,9 @@ export interface loansClient extends Client {
|
|
|
146
157
|
loanSummary(request: loanSummaryRequest, callback: (error: ServiceError | null, response: loanSummaryResponse) => void): ClientUnaryCall;
|
|
147
158
|
loanSummary(request: loanSummaryRequest, metadata: Metadata, callback: (error: ServiceError | null, response: loanSummaryResponse) => void): ClientUnaryCall;
|
|
148
159
|
loanSummary(request: loanSummaryRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: loanSummaryResponse) => void): ClientUnaryCall;
|
|
160
|
+
getCustomerLoanStatus(request: getCustomerLoanStatusRequest, callback: (error: ServiceError | null, response: getCustomerLoanStatusResponse) => void): ClientUnaryCall;
|
|
161
|
+
getCustomerLoanStatus(request: getCustomerLoanStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getCustomerLoanStatusResponse) => void): ClientUnaryCall;
|
|
162
|
+
getCustomerLoanStatus(request: getCustomerLoanStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getCustomerLoanStatusResponse) => void): ClientUnaryCall;
|
|
149
163
|
}
|
|
150
164
|
export declare const loansClient: {
|
|
151
165
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
package/ts/loans.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -12,6 +12,7 @@ const approveloan_1 = require("./loans/approveloan");
|
|
|
12
12
|
const banklist_1 = require("./loans/banklist");
|
|
13
13
|
const calculateemi_1 = require("./loans/calculateemi");
|
|
14
14
|
const creditlimit_1 = require("./loans/creditlimit");
|
|
15
|
+
const getcustomerloanstatus_1 = require("./loans/getcustomerloanstatus");
|
|
15
16
|
const loansummary_1 = require("./loans/loansummary");
|
|
16
17
|
const paymentallocation_1 = require("./loans/paymentallocation");
|
|
17
18
|
const restructureloan_1 = require("./loans/restructureloan");
|
|
@@ -110,5 +111,14 @@ exports.loansService = {
|
|
|
110
111
|
responseSerialize: (value) => Buffer.from(loansummary_1.loanSummaryResponse.encode(value).finish()),
|
|
111
112
|
responseDeserialize: (value) => loansummary_1.loanSummaryResponse.decode(value),
|
|
112
113
|
},
|
|
114
|
+
getCustomerLoanStatus: {
|
|
115
|
+
path: "/service.loans/getCustomerLoanStatus",
|
|
116
|
+
requestStream: false,
|
|
117
|
+
responseStream: false,
|
|
118
|
+
requestSerialize: (value) => Buffer.from(getcustomerloanstatus_1.getCustomerLoanStatusRequest.encode(value).finish()),
|
|
119
|
+
requestDeserialize: (value) => getcustomerloanstatus_1.getCustomerLoanStatusRequest.decode(value),
|
|
120
|
+
responseSerialize: (value) => Buffer.from(getcustomerloanstatus_1.getCustomerLoanStatusResponse.encode(value).finish()),
|
|
121
|
+
responseDeserialize: (value) => getcustomerloanstatus_1.getCustomerLoanStatusResponse.decode(value),
|
|
122
|
+
},
|
|
113
123
|
};
|
|
114
124
|
exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");
|