@stashfin/grpc 1.2.94 → 1.2.96
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/bureau/getbasicdetails.d.ts +57 -0
- package/ts/bureau/getbasicdetails.js +341 -0
- package/ts/bureau/getdemogs.d.ts +101 -0
- package/ts/bureau/getdemogs.js +547 -0
- package/ts/bureau/getreport.d.ts +157 -0
- package/ts/bureau/getreport.js +1403 -0
- package/ts/bureau.d.ts +35 -7
- package/ts/bureau.js +27 -7
- package/ts/customers/updatemobilesendotp.d.ts +35 -0
- package/ts/customers/updatemobilesendotp.js +117 -0
- package/ts/customers/updatemobileverifyotp.d.ts +36 -0
- package/ts/customers/updatemobileverifyotp.js +133 -0
- package/ts/customers.d.ts +25 -11
- package/ts/customers.js +17 -7
- package/ts/loans/approveloan.d.ts +1 -0
- package/ts/loans/approveloan.js +15 -1
- package/ts/loans/creditlimit.d.ts +0 -6
- package/ts/loans/creditlimit.js +5 -107
- package/ts/loans/getstaticfields.d.ts +86 -0
- package/ts/loans/getstaticfields.js +801 -0
- package/ts/loans.d.ts +14 -0
- package/ts/loans.js +10 -0
package/ts/bureau.d.ts
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
-
import {
|
|
2
|
+
import { detailsRequest, detailsResponse } from "./bureau/getbasicdetails";
|
|
3
|
+
import { demogsRequest, demogsResponse } from "./bureau/getdemogs";
|
|
4
|
+
import { bureauRequest, bureauResponse } from "./bureau/getreport";
|
|
3
5
|
export declare const protobufPackage = "service";
|
|
4
6
|
export type bureauService = typeof bureauService;
|
|
5
7
|
export declare const bureauService: {
|
|
6
|
-
readonly
|
|
7
|
-
readonly path: "/service.bureau/
|
|
8
|
+
readonly getBasicDetails: {
|
|
9
|
+
readonly path: "/service.bureau/getBasicDetails";
|
|
10
|
+
readonly requestStream: false;
|
|
11
|
+
readonly responseStream: false;
|
|
12
|
+
readonly requestSerialize: (value: detailsRequest) => Buffer;
|
|
13
|
+
readonly requestDeserialize: (value: Buffer) => detailsRequest;
|
|
14
|
+
readonly responseSerialize: (value: detailsResponse) => Buffer;
|
|
15
|
+
readonly responseDeserialize: (value: Buffer) => detailsResponse;
|
|
16
|
+
};
|
|
17
|
+
readonly getReport: {
|
|
18
|
+
readonly path: "/service.bureau/getReport";
|
|
8
19
|
readonly requestStream: false;
|
|
9
20
|
readonly responseStream: false;
|
|
10
21
|
readonly requestSerialize: (value: bureauRequest) => Buffer;
|
|
@@ -12,14 +23,31 @@ export declare const bureauService: {
|
|
|
12
23
|
readonly responseSerialize: (value: bureauResponse) => Buffer;
|
|
13
24
|
readonly responseDeserialize: (value: Buffer) => bureauResponse;
|
|
14
25
|
};
|
|
26
|
+
readonly getDemogs: {
|
|
27
|
+
readonly path: "/service.bureau/getDemogs";
|
|
28
|
+
readonly requestStream: false;
|
|
29
|
+
readonly responseStream: false;
|
|
30
|
+
readonly requestSerialize: (value: demogsRequest) => Buffer;
|
|
31
|
+
readonly requestDeserialize: (value: Buffer) => demogsRequest;
|
|
32
|
+
readonly responseSerialize: (value: demogsResponse) => Buffer;
|
|
33
|
+
readonly responseDeserialize: (value: Buffer) => demogsResponse;
|
|
34
|
+
};
|
|
15
35
|
};
|
|
16
36
|
export interface bureauServer extends UntypedServiceImplementation {
|
|
17
|
-
|
|
37
|
+
getBasicDetails: handleUnaryCall<detailsRequest, detailsResponse>;
|
|
38
|
+
getReport: handleUnaryCall<bureauRequest, bureauResponse>;
|
|
39
|
+
getDemogs: handleUnaryCall<demogsRequest, demogsResponse>;
|
|
18
40
|
}
|
|
19
41
|
export interface bureauClient extends Client {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
42
|
+
getBasicDetails(request: detailsRequest, callback: (error: ServiceError | null, response: detailsResponse) => void): ClientUnaryCall;
|
|
43
|
+
getBasicDetails(request: detailsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: detailsResponse) => void): ClientUnaryCall;
|
|
44
|
+
getBasicDetails(request: detailsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: detailsResponse) => void): ClientUnaryCall;
|
|
45
|
+
getReport(request: bureauRequest, callback: (error: ServiceError | null, response: bureauResponse) => void): ClientUnaryCall;
|
|
46
|
+
getReport(request: bureauRequest, metadata: Metadata, callback: (error: ServiceError | null, response: bureauResponse) => void): ClientUnaryCall;
|
|
47
|
+
getReport(request: bureauRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: bureauResponse) => void): ClientUnaryCall;
|
|
48
|
+
getDemogs(request: demogsRequest, callback: (error: ServiceError | null, response: demogsResponse) => void): ClientUnaryCall;
|
|
49
|
+
getDemogs(request: demogsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: demogsResponse) => void): ClientUnaryCall;
|
|
50
|
+
getDemogs(request: demogsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: demogsResponse) => void): ClientUnaryCall;
|
|
23
51
|
}
|
|
24
52
|
export declare const bureauClient: {
|
|
25
53
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): bureauClient;
|
package/ts/bureau.js
CHANGED
|
@@ -8,17 +8,37 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.bureauClient = exports.bureauService = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
|
-
const
|
|
11
|
+
const getbasicdetails_1 = require("./bureau/getbasicdetails");
|
|
12
|
+
const getdemogs_1 = require("./bureau/getdemogs");
|
|
13
|
+
const getreport_1 = require("./bureau/getreport");
|
|
12
14
|
exports.protobufPackage = "service";
|
|
13
15
|
exports.bureauService = {
|
|
14
|
-
|
|
15
|
-
path: "/service.bureau/
|
|
16
|
+
getBasicDetails: {
|
|
17
|
+
path: "/service.bureau/getBasicDetails",
|
|
16
18
|
requestStream: false,
|
|
17
19
|
responseStream: false,
|
|
18
|
-
requestSerialize: (value) => Buffer.from(
|
|
19
|
-
requestDeserialize: (value) =>
|
|
20
|
-
responseSerialize: (value) => Buffer.from(
|
|
21
|
-
responseDeserialize: (value) =>
|
|
20
|
+
requestSerialize: (value) => Buffer.from(getbasicdetails_1.detailsRequest.encode(value).finish()),
|
|
21
|
+
requestDeserialize: (value) => getbasicdetails_1.detailsRequest.decode(value),
|
|
22
|
+
responseSerialize: (value) => Buffer.from(getbasicdetails_1.detailsResponse.encode(value).finish()),
|
|
23
|
+
responseDeserialize: (value) => getbasicdetails_1.detailsResponse.decode(value),
|
|
24
|
+
},
|
|
25
|
+
getReport: {
|
|
26
|
+
path: "/service.bureau/getReport",
|
|
27
|
+
requestStream: false,
|
|
28
|
+
responseStream: false,
|
|
29
|
+
requestSerialize: (value) => Buffer.from(getreport_1.bureauRequest.encode(value).finish()),
|
|
30
|
+
requestDeserialize: (value) => getreport_1.bureauRequest.decode(value),
|
|
31
|
+
responseSerialize: (value) => Buffer.from(getreport_1.bureauResponse.encode(value).finish()),
|
|
32
|
+
responseDeserialize: (value) => getreport_1.bureauResponse.decode(value),
|
|
33
|
+
},
|
|
34
|
+
getDemogs: {
|
|
35
|
+
path: "/service.bureau/getDemogs",
|
|
36
|
+
requestStream: false,
|
|
37
|
+
responseStream: false,
|
|
38
|
+
requestSerialize: (value) => Buffer.from(getdemogs_1.demogsRequest.encode(value).finish()),
|
|
39
|
+
requestDeserialize: (value) => getdemogs_1.demogsRequest.decode(value),
|
|
40
|
+
responseSerialize: (value) => Buffer.from(getdemogs_1.demogsResponse.encode(value).finish()),
|
|
41
|
+
responseDeserialize: (value) => getdemogs_1.demogsResponse.decode(value),
|
|
22
42
|
},
|
|
23
43
|
};
|
|
24
44
|
exports.bureauClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.bureauService, "service.bureau");
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.updatemobilesendotp";
|
|
3
|
+
export interface updateMobileSendOtpRequest {
|
|
4
|
+
new_mobile: string;
|
|
5
|
+
}
|
|
6
|
+
export interface updateMobileSendOtpResponse {
|
|
7
|
+
status: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const updateMobileSendOtpRequest: {
|
|
10
|
+
encode(message: updateMobileSendOtpRequest, writer?: _m0.Writer): _m0.Writer;
|
|
11
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateMobileSendOtpRequest;
|
|
12
|
+
fromJSON(object: any): updateMobileSendOtpRequest;
|
|
13
|
+
toJSON(message: updateMobileSendOtpRequest): unknown;
|
|
14
|
+
create<I extends Exact<DeepPartial<updateMobileSendOtpRequest>, I>>(base?: I): updateMobileSendOtpRequest;
|
|
15
|
+
fromPartial<I extends Exact<DeepPartial<updateMobileSendOtpRequest>, I>>(object: I): updateMobileSendOtpRequest;
|
|
16
|
+
};
|
|
17
|
+
export declare const updateMobileSendOtpResponse: {
|
|
18
|
+
encode(message: updateMobileSendOtpResponse, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateMobileSendOtpResponse;
|
|
20
|
+
fromJSON(object: any): updateMobileSendOtpResponse;
|
|
21
|
+
toJSON(message: updateMobileSendOtpResponse): unknown;
|
|
22
|
+
create<I extends Exact<DeepPartial<updateMobileSendOtpResponse>, I>>(base?: I): updateMobileSendOtpResponse;
|
|
23
|
+
fromPartial<I extends Exact<DeepPartial<updateMobileSendOtpResponse>, I>>(object: I): updateMobileSendOtpResponse;
|
|
24
|
+
};
|
|
25
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
26
|
+
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 {} ? {
|
|
27
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
28
|
+
} : Partial<T>;
|
|
29
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
30
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
31
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
32
|
+
} & {
|
|
33
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,117 @@
|
|
|
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.27.3
|
|
6
|
+
// source: customers/updatemobilesendotp.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.updateMobileSendOtpResponse = exports.updateMobileSendOtpRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.updatemobilesendotp";
|
|
15
|
+
function createBaseupdateMobileSendOtpRequest() {
|
|
16
|
+
return { new_mobile: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.updateMobileSendOtpRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.new_mobile !== "") {
|
|
21
|
+
writer.uint32(10).string(message.new_mobile);
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
},
|
|
25
|
+
decode(input, length) {
|
|
26
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBaseupdateMobileSendOtpRequest();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
if (tag !== 10) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.new_mobile = reader.string();
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
reader.skipType(tag & 7);
|
|
43
|
+
}
|
|
44
|
+
return message;
|
|
45
|
+
},
|
|
46
|
+
fromJSON(object) {
|
|
47
|
+
return { new_mobile: isSet(object.new_mobile) ? globalThis.String(object.new_mobile) : "" };
|
|
48
|
+
},
|
|
49
|
+
toJSON(message) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
if (message.new_mobile !== "") {
|
|
52
|
+
obj.new_mobile = message.new_mobile;
|
|
53
|
+
}
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
create(base) {
|
|
57
|
+
return exports.updateMobileSendOtpRequest.fromPartial(base ?? {});
|
|
58
|
+
},
|
|
59
|
+
fromPartial(object) {
|
|
60
|
+
const message = createBaseupdateMobileSendOtpRequest();
|
|
61
|
+
message.new_mobile = object.new_mobile ?? "";
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
function createBaseupdateMobileSendOtpResponse() {
|
|
66
|
+
return { status: "" };
|
|
67
|
+
}
|
|
68
|
+
exports.updateMobileSendOtpResponse = {
|
|
69
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
+
if (message.status !== "") {
|
|
71
|
+
writer.uint32(10).string(message.status);
|
|
72
|
+
}
|
|
73
|
+
return writer;
|
|
74
|
+
},
|
|
75
|
+
decode(input, length) {
|
|
76
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
77
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
78
|
+
const message = createBaseupdateMobileSendOtpResponse();
|
|
79
|
+
while (reader.pos < end) {
|
|
80
|
+
const tag = reader.uint32();
|
|
81
|
+
switch (tag >>> 3) {
|
|
82
|
+
case 1:
|
|
83
|
+
if (tag !== 10) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
message.status = reader.string();
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
reader.skipType(tag & 7);
|
|
93
|
+
}
|
|
94
|
+
return message;
|
|
95
|
+
},
|
|
96
|
+
fromJSON(object) {
|
|
97
|
+
return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
|
|
98
|
+
},
|
|
99
|
+
toJSON(message) {
|
|
100
|
+
const obj = {};
|
|
101
|
+
if (message.status !== "") {
|
|
102
|
+
obj.status = message.status;
|
|
103
|
+
}
|
|
104
|
+
return obj;
|
|
105
|
+
},
|
|
106
|
+
create(base) {
|
|
107
|
+
return exports.updateMobileSendOtpResponse.fromPartial(base ?? {});
|
|
108
|
+
},
|
|
109
|
+
fromPartial(object) {
|
|
110
|
+
const message = createBaseupdateMobileSendOtpResponse();
|
|
111
|
+
message.status = object.status ?? "";
|
|
112
|
+
return message;
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
function isSet(value) {
|
|
116
|
+
return value !== null && value !== undefined;
|
|
117
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.updatemobileverifyotp";
|
|
3
|
+
export interface updateMobileVerifyOtpRequest {
|
|
4
|
+
new_mobile: string;
|
|
5
|
+
new_mobile_otp: string;
|
|
6
|
+
}
|
|
7
|
+
export interface updateMobileVerifyOtpResponse {
|
|
8
|
+
status: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const updateMobileVerifyOtpRequest: {
|
|
11
|
+
encode(message: updateMobileVerifyOtpRequest, writer?: _m0.Writer): _m0.Writer;
|
|
12
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateMobileVerifyOtpRequest;
|
|
13
|
+
fromJSON(object: any): updateMobileVerifyOtpRequest;
|
|
14
|
+
toJSON(message: updateMobileVerifyOtpRequest): unknown;
|
|
15
|
+
create<I extends Exact<DeepPartial<updateMobileVerifyOtpRequest>, I>>(base?: I): updateMobileVerifyOtpRequest;
|
|
16
|
+
fromPartial<I extends Exact<DeepPartial<updateMobileVerifyOtpRequest>, I>>(object: I): updateMobileVerifyOtpRequest;
|
|
17
|
+
};
|
|
18
|
+
export declare const updateMobileVerifyOtpResponse: {
|
|
19
|
+
encode(message: updateMobileVerifyOtpResponse, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateMobileVerifyOtpResponse;
|
|
21
|
+
fromJSON(object: any): updateMobileVerifyOtpResponse;
|
|
22
|
+
toJSON(message: updateMobileVerifyOtpResponse): unknown;
|
|
23
|
+
create<I extends Exact<DeepPartial<updateMobileVerifyOtpResponse>, I>>(base?: I): updateMobileVerifyOtpResponse;
|
|
24
|
+
fromPartial<I extends Exact<DeepPartial<updateMobileVerifyOtpResponse>, I>>(object: I): updateMobileVerifyOtpResponse;
|
|
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.0
|
|
5
|
+
// protoc v5.27.3
|
|
6
|
+
// source: customers/updatemobileverifyotp.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.updateMobileVerifyOtpResponse = exports.updateMobileVerifyOtpRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.updatemobileverifyotp";
|
|
15
|
+
function createBaseupdateMobileVerifyOtpRequest() {
|
|
16
|
+
return { new_mobile: "", new_mobile_otp: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.updateMobileVerifyOtpRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.new_mobile !== "") {
|
|
21
|
+
writer.uint32(10).string(message.new_mobile);
|
|
22
|
+
}
|
|
23
|
+
if (message.new_mobile_otp !== "") {
|
|
24
|
+
writer.uint32(26).string(message.new_mobile_otp);
|
|
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 = createBaseupdateMobileVerifyOtpRequest();
|
|
32
|
+
while (reader.pos < end) {
|
|
33
|
+
const tag = reader.uint32();
|
|
34
|
+
switch (tag >>> 3) {
|
|
35
|
+
case 1:
|
|
36
|
+
if (tag !== 10) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
message.new_mobile = reader.string();
|
|
40
|
+
continue;
|
|
41
|
+
case 3:
|
|
42
|
+
if (tag !== 26) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.new_mobile_otp = 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
|
+
new_mobile: isSet(object.new_mobile) ? globalThis.String(object.new_mobile) : "",
|
|
58
|
+
new_mobile_otp: isSet(object.new_mobile_otp) ? globalThis.String(object.new_mobile_otp) : "",
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
toJSON(message) {
|
|
62
|
+
const obj = {};
|
|
63
|
+
if (message.new_mobile !== "") {
|
|
64
|
+
obj.new_mobile = message.new_mobile;
|
|
65
|
+
}
|
|
66
|
+
if (message.new_mobile_otp !== "") {
|
|
67
|
+
obj.new_mobile_otp = message.new_mobile_otp;
|
|
68
|
+
}
|
|
69
|
+
return obj;
|
|
70
|
+
},
|
|
71
|
+
create(base) {
|
|
72
|
+
return exports.updateMobileVerifyOtpRequest.fromPartial(base ?? {});
|
|
73
|
+
},
|
|
74
|
+
fromPartial(object) {
|
|
75
|
+
const message = createBaseupdateMobileVerifyOtpRequest();
|
|
76
|
+
message.new_mobile = object.new_mobile ?? "";
|
|
77
|
+
message.new_mobile_otp = object.new_mobile_otp ?? "";
|
|
78
|
+
return message;
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
function createBaseupdateMobileVerifyOtpResponse() {
|
|
82
|
+
return { status: "" };
|
|
83
|
+
}
|
|
84
|
+
exports.updateMobileVerifyOtpResponse = {
|
|
85
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
86
|
+
if (message.status !== "") {
|
|
87
|
+
writer.uint32(10).string(message.status);
|
|
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 = createBaseupdateMobileVerifyOtpResponse();
|
|
95
|
+
while (reader.pos < end) {
|
|
96
|
+
const tag = reader.uint32();
|
|
97
|
+
switch (tag >>> 3) {
|
|
98
|
+
case 1:
|
|
99
|
+
if (tag !== 10) {
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
message.status = reader.string();
|
|
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 { status: isSet(object.status) ? globalThis.String(object.status) : "" };
|
|
114
|
+
},
|
|
115
|
+
toJSON(message) {
|
|
116
|
+
const obj = {};
|
|
117
|
+
if (message.status !== "") {
|
|
118
|
+
obj.status = message.status;
|
|
119
|
+
}
|
|
120
|
+
return obj;
|
|
121
|
+
},
|
|
122
|
+
create(base) {
|
|
123
|
+
return exports.updateMobileVerifyOtpResponse.fromPartial(base ?? {});
|
|
124
|
+
},
|
|
125
|
+
fromPartial(object) {
|
|
126
|
+
const message = createBaseupdateMobileVerifyOtpResponse();
|
|
127
|
+
message.status = object.status ?? "";
|
|
128
|
+
return message;
|
|
129
|
+
},
|
|
130
|
+
};
|
|
131
|
+
function isSet(value) {
|
|
132
|
+
return value !== null && value !== undefined;
|
|
133
|
+
}
|
package/ts/customers.d.ts
CHANGED
|
@@ -41,7 +41,8 @@ import { updateDigiLockerTxnRequest, updateDigiLockerTxnResponse } from "./custo
|
|
|
41
41
|
import { updateDOBRequest, updateDOBResponse } from "./customers/updatedob";
|
|
42
42
|
import { updateHypervergeTxnRequest, updateHypervergeTxnResponse } from "./customers/updatehypervergetxn";
|
|
43
43
|
import { locStatusRequest, locStatusResponse } from "./customers/updatelocstatus";
|
|
44
|
-
import {
|
|
44
|
+
import { updateMobileSendOtpRequest, updateMobileSendOtpResponse } from "./customers/updatemobilesendotp";
|
|
45
|
+
import { updateMobileVerifyOtpRequest, updateMobileVerifyOtpResponse } from "./customers/updatemobileverifyotp";
|
|
45
46
|
import { validatePanRequest, validatePanResponse } from "./customers/validatepan";
|
|
46
47
|
import { verifyMpinRequest, verifyMpinResponse } from "./customers/verifympin";
|
|
47
48
|
import { verifyOtpReqeust, verifyOtpResponse } from "./customers/verifyotp";
|
|
@@ -517,14 +518,23 @@ export declare const customersService: {
|
|
|
517
518
|
readonly responseSerialize: (value: ChangeMpinResponse) => Buffer;
|
|
518
519
|
readonly responseDeserialize: (value: Buffer) => ChangeMpinResponse;
|
|
519
520
|
};
|
|
520
|
-
readonly
|
|
521
|
-
readonly path: "/service.customers/
|
|
521
|
+
readonly updateMobileSendOtp: {
|
|
522
|
+
readonly path: "/service.customers/updateMobileSendOtp";
|
|
522
523
|
readonly requestStream: false;
|
|
523
524
|
readonly responseStream: false;
|
|
524
|
-
readonly requestSerialize: (value:
|
|
525
|
-
readonly requestDeserialize: (value: Buffer) =>
|
|
526
|
-
readonly responseSerialize: (value:
|
|
527
|
-
readonly responseDeserialize: (value: Buffer) =>
|
|
525
|
+
readonly requestSerialize: (value: updateMobileSendOtpRequest) => Buffer;
|
|
526
|
+
readonly requestDeserialize: (value: Buffer) => updateMobileSendOtpRequest;
|
|
527
|
+
readonly responseSerialize: (value: updateMobileSendOtpResponse) => Buffer;
|
|
528
|
+
readonly responseDeserialize: (value: Buffer) => updateMobileSendOtpResponse;
|
|
529
|
+
};
|
|
530
|
+
readonly updatemobileverifyotp: {
|
|
531
|
+
readonly path: "/service.customers/updatemobileverifyotp";
|
|
532
|
+
readonly requestStream: false;
|
|
533
|
+
readonly responseStream: false;
|
|
534
|
+
readonly requestSerialize: (value: updateMobileVerifyOtpRequest) => Buffer;
|
|
535
|
+
readonly requestDeserialize: (value: Buffer) => updateMobileVerifyOtpRequest;
|
|
536
|
+
readonly responseSerialize: (value: updateMobileVerifyOtpResponse) => Buffer;
|
|
537
|
+
readonly responseDeserialize: (value: Buffer) => updateMobileVerifyOtpResponse;
|
|
528
538
|
};
|
|
529
539
|
};
|
|
530
540
|
export interface customersServer extends UntypedServiceImplementation {
|
|
@@ -580,7 +590,8 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
580
590
|
fetchRcProfile: handleUnaryCall<fetchRCProfileRequest, fetchRCProfileResponse>;
|
|
581
591
|
disablempin: handleUnaryCall<disableMpinRequest, disableMpinResponse>;
|
|
582
592
|
changempin: handleUnaryCall<ChangeMpinRequest, ChangeMpinResponse>;
|
|
583
|
-
|
|
593
|
+
updateMobileSendOtp: handleUnaryCall<updateMobileSendOtpRequest, updateMobileSendOtpResponse>;
|
|
594
|
+
updatemobileverifyotp: handleUnaryCall<updateMobileVerifyOtpRequest, updateMobileVerifyOtpResponse>;
|
|
584
595
|
}
|
|
585
596
|
export interface customersClient extends Client {
|
|
586
597
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -739,9 +750,12 @@ export interface customersClient extends Client {
|
|
|
739
750
|
changempin(request: ChangeMpinRequest, callback: (error: ServiceError | null, response: ChangeMpinResponse) => void): ClientUnaryCall;
|
|
740
751
|
changempin(request: ChangeMpinRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ChangeMpinResponse) => void): ClientUnaryCall;
|
|
741
752
|
changempin(request: ChangeMpinRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ChangeMpinResponse) => void): ClientUnaryCall;
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
753
|
+
updateMobileSendOtp(request: updateMobileSendOtpRequest, callback: (error: ServiceError | null, response: updateMobileSendOtpResponse) => void): ClientUnaryCall;
|
|
754
|
+
updateMobileSendOtp(request: updateMobileSendOtpRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateMobileSendOtpResponse) => void): ClientUnaryCall;
|
|
755
|
+
updateMobileSendOtp(request: updateMobileSendOtpRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateMobileSendOtpResponse) => void): ClientUnaryCall;
|
|
756
|
+
updatemobileverifyotp(request: updateMobileVerifyOtpRequest, callback: (error: ServiceError | null, response: updateMobileVerifyOtpResponse) => void): ClientUnaryCall;
|
|
757
|
+
updatemobileverifyotp(request: updateMobileVerifyOtpRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateMobileVerifyOtpResponse) => void): ClientUnaryCall;
|
|
758
|
+
updatemobileverifyotp(request: updateMobileVerifyOtpRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateMobileVerifyOtpResponse) => void): ClientUnaryCall;
|
|
745
759
|
}
|
|
746
760
|
export declare const customersClient: {
|
|
747
761
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -50,7 +50,8 @@ const updatedigilockertxn_1 = require("./customers/updatedigilockertxn");
|
|
|
50
50
|
const updatedob_1 = require("./customers/updatedob");
|
|
51
51
|
const updatehypervergetxn_1 = require("./customers/updatehypervergetxn");
|
|
52
52
|
const updatelocstatus_1 = require("./customers/updatelocstatus");
|
|
53
|
-
const
|
|
53
|
+
const updatemobilesendotp_1 = require("./customers/updatemobilesendotp");
|
|
54
|
+
const updatemobileverifyotp_1 = require("./customers/updatemobileverifyotp");
|
|
54
55
|
const validatepan_1 = require("./customers/validatepan");
|
|
55
56
|
const verifympin_1 = require("./customers/verifympin");
|
|
56
57
|
const verifyotp_1 = require("./customers/verifyotp");
|
|
@@ -525,14 +526,23 @@ exports.customersService = {
|
|
|
525
526
|
responseSerialize: (value) => Buffer.from(changempin_1.ChangeMpinResponse.encode(value).finish()),
|
|
526
527
|
responseDeserialize: (value) => changempin_1.ChangeMpinResponse.decode(value),
|
|
527
528
|
},
|
|
528
|
-
|
|
529
|
-
path: "/service.customers/
|
|
529
|
+
updateMobileSendOtp: {
|
|
530
|
+
path: "/service.customers/updateMobileSendOtp",
|
|
530
531
|
requestStream: false,
|
|
531
532
|
responseStream: false,
|
|
532
|
-
requestSerialize: (value) => Buffer.from(
|
|
533
|
-
requestDeserialize: (value) =>
|
|
534
|
-
responseSerialize: (value) => Buffer.from(
|
|
535
|
-
responseDeserialize: (value) =>
|
|
533
|
+
requestSerialize: (value) => Buffer.from(updatemobilesendotp_1.updateMobileSendOtpRequest.encode(value).finish()),
|
|
534
|
+
requestDeserialize: (value) => updatemobilesendotp_1.updateMobileSendOtpRequest.decode(value),
|
|
535
|
+
responseSerialize: (value) => Buffer.from(updatemobilesendotp_1.updateMobileSendOtpResponse.encode(value).finish()),
|
|
536
|
+
responseDeserialize: (value) => updatemobilesendotp_1.updateMobileSendOtpResponse.decode(value),
|
|
537
|
+
},
|
|
538
|
+
updatemobileverifyotp: {
|
|
539
|
+
path: "/service.customers/updatemobileverifyotp",
|
|
540
|
+
requestStream: false,
|
|
541
|
+
responseStream: false,
|
|
542
|
+
requestSerialize: (value) => Buffer.from(updatemobileverifyotp_1.updateMobileVerifyOtpRequest.encode(value).finish()),
|
|
543
|
+
requestDeserialize: (value) => updatemobileverifyotp_1.updateMobileVerifyOtpRequest.decode(value),
|
|
544
|
+
responseSerialize: (value) => Buffer.from(updatemobileverifyotp_1.updateMobileVerifyOtpResponse.encode(value).finish()),
|
|
545
|
+
responseDeserialize: (value) => updatemobileverifyotp_1.updateMobileVerifyOtpResponse.decode(value),
|
|
536
546
|
},
|
|
537
547
|
};
|
|
538
548
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
package/ts/loans/approveloan.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.approveLoanResponse = exports.approveLoanRequest = exports.protobufPacka
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.approveloan";
|
|
15
15
|
function createBaseapproveLoanRequest() {
|
|
16
|
-
return { bank_id: 0, amount: 0, tenure: 0, customer_id: 0, ip: "" };
|
|
16
|
+
return { bank_id: 0, amount: 0, tenure: 0, customer_id: 0, ip: "", addons: 0 };
|
|
17
17
|
}
|
|
18
18
|
exports.approveLoanRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -32,6 +32,9 @@ exports.approveLoanRequest = {
|
|
|
32
32
|
if (message.ip !== "") {
|
|
33
33
|
writer.uint32(42).string(message.ip);
|
|
34
34
|
}
|
|
35
|
+
if (message.addons !== 0) {
|
|
36
|
+
writer.uint32(48).int32(message.addons);
|
|
37
|
+
}
|
|
35
38
|
return writer;
|
|
36
39
|
},
|
|
37
40
|
decode(input, length) {
|
|
@@ -71,6 +74,12 @@ exports.approveLoanRequest = {
|
|
|
71
74
|
}
|
|
72
75
|
message.ip = reader.string();
|
|
73
76
|
continue;
|
|
77
|
+
case 6:
|
|
78
|
+
if (tag !== 48) {
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
message.addons = reader.int32();
|
|
82
|
+
continue;
|
|
74
83
|
}
|
|
75
84
|
if ((tag & 7) === 4 || tag === 0) {
|
|
76
85
|
break;
|
|
@@ -86,6 +95,7 @@ exports.approveLoanRequest = {
|
|
|
86
95
|
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
87
96
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
88
97
|
ip: isSet(object.ip) ? globalThis.String(object.ip) : "",
|
|
98
|
+
addons: isSet(object.addons) ? globalThis.Number(object.addons) : 0,
|
|
89
99
|
};
|
|
90
100
|
},
|
|
91
101
|
toJSON(message) {
|
|
@@ -105,6 +115,9 @@ exports.approveLoanRequest = {
|
|
|
105
115
|
if (message.ip !== "") {
|
|
106
116
|
obj.ip = message.ip;
|
|
107
117
|
}
|
|
118
|
+
if (message.addons !== 0) {
|
|
119
|
+
obj.addons = Math.round(message.addons);
|
|
120
|
+
}
|
|
108
121
|
return obj;
|
|
109
122
|
},
|
|
110
123
|
create(base) {
|
|
@@ -117,6 +130,7 @@ exports.approveLoanRequest = {
|
|
|
117
130
|
message.tenure = object.tenure ?? 0;
|
|
118
131
|
message.customer_id = object.customer_id ?? 0;
|
|
119
132
|
message.ip = object.ip ?? "";
|
|
133
|
+
message.addons = object.addons ?? 0;
|
|
120
134
|
return message;
|
|
121
135
|
},
|
|
122
136
|
};
|
|
@@ -13,12 +13,6 @@ export interface creditLimitResponse {
|
|
|
13
13
|
request_max_percentage: number;
|
|
14
14
|
bill_date: string;
|
|
15
15
|
minimum_request_amount: number;
|
|
16
|
-
sanctioned_limit_info_popup_heading: string;
|
|
17
|
-
sanctioned_limit_info_popup_body: string;
|
|
18
|
-
exposure_limit_info_popup_heading: string;
|
|
19
|
-
exposure_limit_info_popup_body: string;
|
|
20
|
-
sanctioned_limit_heading: string;
|
|
21
|
-
exposure_limit_heading: string;
|
|
22
16
|
sanctioned_limit: number;
|
|
23
17
|
remaining_sanctioned_limit: number;
|
|
24
18
|
}
|