@stashfin/grpc 1.2.153 → 1.2.155
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/getcompanyaccdetails.d.ts +37 -0
- package/ts/customers/getcompanyaccdetails.js +148 -0
- package/ts/customers/getdocuments.d.ts +13 -3
- package/ts/customers/getdocuments.js +72 -32
- package/ts/customers/logout.d.ts +34 -0
- package/ts/customers/logout.js +104 -0
- package/ts/customers/updatecustomerbyid.d.ts +48 -0
- package/ts/customers/updatecustomerbyid.js +201 -0
- package/ts/customers/uploaddocuments.d.ts +37 -0
- package/ts/customers/uploaddocuments.js +172 -0
- package/ts/customers.d.ts +56 -0
- package/ts/customers.js +40 -0
- package/ts/loans/approveloan.d.ts +13 -0
- package/ts/loans/approveloan.js +96 -14
- package/ts/loans/getnextdueamount.d.ts +34 -0
- package/ts/loans/getnextdueamount.js +104 -0
- package/ts/loans/loansummary.js +12 -12
- package/ts/loans/paymentallocation.d.ts +1 -0
- package/ts/loans/paymentallocation.js +15 -1
- package/ts/loans.d.ts +14 -0
- package/ts/loans.js +10 -0
|
@@ -0,0 +1,201 @@
|
|
|
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/updatecustomerbyid.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.updateCustomerByIdResponse = exports.UpdateField = exports.updateCustomerByIdRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.updatecustomerbyid";
|
|
15
|
+
function createBaseupdateCustomerByIdRequest() {
|
|
16
|
+
return { customer_id: 0, updatedata: [] };
|
|
17
|
+
}
|
|
18
|
+
exports.updateCustomerByIdRequest = {
|
|
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
|
+
for (const v of message.updatedata) {
|
|
24
|
+
exports.UpdateField.encode(v, writer.uint32(18).fork()).ldelim();
|
|
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 = createBaseupdateCustomerByIdRequest();
|
|
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.updatedata.push(exports.UpdateField.decode(reader, reader.uint32()));
|
|
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
|
+
updatedata: globalThis.Array.isArray(object?.updatedata)
|
|
59
|
+
? object.updatedata.map((e) => exports.UpdateField.fromJSON(e))
|
|
60
|
+
: [],
|
|
61
|
+
};
|
|
62
|
+
},
|
|
63
|
+
toJSON(message) {
|
|
64
|
+
const obj = {};
|
|
65
|
+
if (message.customer_id !== 0) {
|
|
66
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
67
|
+
}
|
|
68
|
+
if (message.updatedata?.length) {
|
|
69
|
+
obj.updatedata = message.updatedata.map((e) => exports.UpdateField.toJSON(e));
|
|
70
|
+
}
|
|
71
|
+
return obj;
|
|
72
|
+
},
|
|
73
|
+
create(base) {
|
|
74
|
+
return exports.updateCustomerByIdRequest.fromPartial(base ?? {});
|
|
75
|
+
},
|
|
76
|
+
fromPartial(object) {
|
|
77
|
+
const message = createBaseupdateCustomerByIdRequest();
|
|
78
|
+
message.customer_id = object.customer_id ?? 0;
|
|
79
|
+
message.updatedata = object.updatedata?.map((e) => exports.UpdateField.fromPartial(e)) || [];
|
|
80
|
+
return message;
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
function createBaseUpdateField() {
|
|
84
|
+
return { key: "", value: "" };
|
|
85
|
+
}
|
|
86
|
+
exports.UpdateField = {
|
|
87
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
88
|
+
if (message.key !== "") {
|
|
89
|
+
writer.uint32(10).string(message.key);
|
|
90
|
+
}
|
|
91
|
+
if (message.value !== "") {
|
|
92
|
+
writer.uint32(18).string(message.value);
|
|
93
|
+
}
|
|
94
|
+
return writer;
|
|
95
|
+
},
|
|
96
|
+
decode(input, length) {
|
|
97
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
98
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
99
|
+
const message = createBaseUpdateField();
|
|
100
|
+
while (reader.pos < end) {
|
|
101
|
+
const tag = reader.uint32();
|
|
102
|
+
switch (tag >>> 3) {
|
|
103
|
+
case 1:
|
|
104
|
+
if (tag !== 10) {
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
message.key = reader.string();
|
|
108
|
+
continue;
|
|
109
|
+
case 2:
|
|
110
|
+
if (tag !== 18) {
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
message.value = reader.string();
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
reader.skipType(tag & 7);
|
|
120
|
+
}
|
|
121
|
+
return message;
|
|
122
|
+
},
|
|
123
|
+
fromJSON(object) {
|
|
124
|
+
return {
|
|
125
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
126
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
127
|
+
};
|
|
128
|
+
},
|
|
129
|
+
toJSON(message) {
|
|
130
|
+
const obj = {};
|
|
131
|
+
if (message.key !== "") {
|
|
132
|
+
obj.key = message.key;
|
|
133
|
+
}
|
|
134
|
+
if (message.value !== "") {
|
|
135
|
+
obj.value = message.value;
|
|
136
|
+
}
|
|
137
|
+
return obj;
|
|
138
|
+
},
|
|
139
|
+
create(base) {
|
|
140
|
+
return exports.UpdateField.fromPartial(base ?? {});
|
|
141
|
+
},
|
|
142
|
+
fromPartial(object) {
|
|
143
|
+
const message = createBaseUpdateField();
|
|
144
|
+
message.key = object.key ?? "";
|
|
145
|
+
message.value = object.value ?? "";
|
|
146
|
+
return message;
|
|
147
|
+
},
|
|
148
|
+
};
|
|
149
|
+
function createBaseupdateCustomerByIdResponse() {
|
|
150
|
+
return { status: "" };
|
|
151
|
+
}
|
|
152
|
+
exports.updateCustomerByIdResponse = {
|
|
153
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
154
|
+
if (message.status !== "") {
|
|
155
|
+
writer.uint32(10).string(message.status);
|
|
156
|
+
}
|
|
157
|
+
return writer;
|
|
158
|
+
},
|
|
159
|
+
decode(input, length) {
|
|
160
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
161
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
162
|
+
const message = createBaseupdateCustomerByIdResponse();
|
|
163
|
+
while (reader.pos < end) {
|
|
164
|
+
const tag = reader.uint32();
|
|
165
|
+
switch (tag >>> 3) {
|
|
166
|
+
case 1:
|
|
167
|
+
if (tag !== 10) {
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
message.status = reader.string();
|
|
171
|
+
continue;
|
|
172
|
+
}
|
|
173
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
reader.skipType(tag & 7);
|
|
177
|
+
}
|
|
178
|
+
return message;
|
|
179
|
+
},
|
|
180
|
+
fromJSON(object) {
|
|
181
|
+
return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
|
|
182
|
+
},
|
|
183
|
+
toJSON(message) {
|
|
184
|
+
const obj = {};
|
|
185
|
+
if (message.status !== "") {
|
|
186
|
+
obj.status = message.status;
|
|
187
|
+
}
|
|
188
|
+
return obj;
|
|
189
|
+
},
|
|
190
|
+
create(base) {
|
|
191
|
+
return exports.updateCustomerByIdResponse.fromPartial(base ?? {});
|
|
192
|
+
},
|
|
193
|
+
fromPartial(object) {
|
|
194
|
+
const message = createBaseupdateCustomerByIdResponse();
|
|
195
|
+
message.status = object.status ?? "";
|
|
196
|
+
return message;
|
|
197
|
+
},
|
|
198
|
+
};
|
|
199
|
+
function isSet(value) {
|
|
200
|
+
return value !== null && value !== undefined;
|
|
201
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.uploaddocuments";
|
|
3
|
+
export interface uploadDocumentsRequest {
|
|
4
|
+
title: string;
|
|
5
|
+
file: Uint8Array;
|
|
6
|
+
fileType: string;
|
|
7
|
+
}
|
|
8
|
+
export interface uploadDocumentsResponse {
|
|
9
|
+
status: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const uploadDocumentsRequest: {
|
|
12
|
+
encode(message: uploadDocumentsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
13
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): uploadDocumentsRequest;
|
|
14
|
+
fromJSON(object: any): uploadDocumentsRequest;
|
|
15
|
+
toJSON(message: uploadDocumentsRequest): unknown;
|
|
16
|
+
create<I extends Exact<DeepPartial<uploadDocumentsRequest>, I>>(base?: I): uploadDocumentsRequest;
|
|
17
|
+
fromPartial<I extends Exact<DeepPartial<uploadDocumentsRequest>, I>>(object: I): uploadDocumentsRequest;
|
|
18
|
+
};
|
|
19
|
+
export declare const uploadDocumentsResponse: {
|
|
20
|
+
encode(message: uploadDocumentsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
21
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): uploadDocumentsResponse;
|
|
22
|
+
fromJSON(object: any): uploadDocumentsResponse;
|
|
23
|
+
toJSON(message: uploadDocumentsResponse): unknown;
|
|
24
|
+
create<I extends Exact<DeepPartial<uploadDocumentsResponse>, I>>(base?: I): uploadDocumentsResponse;
|
|
25
|
+
fromPartial<I extends Exact<DeepPartial<uploadDocumentsResponse>, I>>(object: I): uploadDocumentsResponse;
|
|
26
|
+
};
|
|
27
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
28
|
+
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 {} ? {
|
|
29
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
30
|
+
} : Partial<T>;
|
|
31
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
32
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
33
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
34
|
+
} & {
|
|
35
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
36
|
+
};
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,172 @@
|
|
|
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/uploaddocuments.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.uploadDocumentsResponse = exports.uploadDocumentsRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.uploaddocuments";
|
|
15
|
+
function createBaseuploadDocumentsRequest() {
|
|
16
|
+
return { title: "", file: new Uint8Array(0), fileType: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.uploadDocumentsRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.title !== "") {
|
|
21
|
+
writer.uint32(10).string(message.title);
|
|
22
|
+
}
|
|
23
|
+
if (message.file.length !== 0) {
|
|
24
|
+
writer.uint32(18).bytes(message.file);
|
|
25
|
+
}
|
|
26
|
+
if (message.fileType !== "") {
|
|
27
|
+
writer.uint32(26).string(message.fileType);
|
|
28
|
+
}
|
|
29
|
+
return writer;
|
|
30
|
+
},
|
|
31
|
+
decode(input, length) {
|
|
32
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
33
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
34
|
+
const message = createBaseuploadDocumentsRequest();
|
|
35
|
+
while (reader.pos < end) {
|
|
36
|
+
const tag = reader.uint32();
|
|
37
|
+
switch (tag >>> 3) {
|
|
38
|
+
case 1:
|
|
39
|
+
if (tag !== 10) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
message.title = reader.string();
|
|
43
|
+
continue;
|
|
44
|
+
case 2:
|
|
45
|
+
if (tag !== 18) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
message.file = reader.bytes();
|
|
49
|
+
continue;
|
|
50
|
+
case 3:
|
|
51
|
+
if (tag !== 26) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.fileType = reader.string();
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
reader.skipType(tag & 7);
|
|
61
|
+
}
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
fromJSON(object) {
|
|
65
|
+
return {
|
|
66
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
67
|
+
file: isSet(object.file) ? bytesFromBase64(object.file) : new Uint8Array(0),
|
|
68
|
+
fileType: isSet(object.fileType) ? globalThis.String(object.fileType) : "",
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
toJSON(message) {
|
|
72
|
+
const obj = {};
|
|
73
|
+
if (message.title !== "") {
|
|
74
|
+
obj.title = message.title;
|
|
75
|
+
}
|
|
76
|
+
if (message.file.length !== 0) {
|
|
77
|
+
obj.file = base64FromBytes(message.file);
|
|
78
|
+
}
|
|
79
|
+
if (message.fileType !== "") {
|
|
80
|
+
obj.fileType = message.fileType;
|
|
81
|
+
}
|
|
82
|
+
return obj;
|
|
83
|
+
},
|
|
84
|
+
create(base) {
|
|
85
|
+
return exports.uploadDocumentsRequest.fromPartial(base ?? {});
|
|
86
|
+
},
|
|
87
|
+
fromPartial(object) {
|
|
88
|
+
const message = createBaseuploadDocumentsRequest();
|
|
89
|
+
message.title = object.title ?? "";
|
|
90
|
+
message.file = object.file ?? new Uint8Array(0);
|
|
91
|
+
message.fileType = object.fileType ?? "";
|
|
92
|
+
return message;
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
function createBaseuploadDocumentsResponse() {
|
|
96
|
+
return { status: "" };
|
|
97
|
+
}
|
|
98
|
+
exports.uploadDocumentsResponse = {
|
|
99
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
100
|
+
if (message.status !== "") {
|
|
101
|
+
writer.uint32(10).string(message.status);
|
|
102
|
+
}
|
|
103
|
+
return writer;
|
|
104
|
+
},
|
|
105
|
+
decode(input, length) {
|
|
106
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
107
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
108
|
+
const message = createBaseuploadDocumentsResponse();
|
|
109
|
+
while (reader.pos < end) {
|
|
110
|
+
const tag = reader.uint32();
|
|
111
|
+
switch (tag >>> 3) {
|
|
112
|
+
case 1:
|
|
113
|
+
if (tag !== 10) {
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
message.status = reader.string();
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
119
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
reader.skipType(tag & 7);
|
|
123
|
+
}
|
|
124
|
+
return message;
|
|
125
|
+
},
|
|
126
|
+
fromJSON(object) {
|
|
127
|
+
return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
|
|
128
|
+
},
|
|
129
|
+
toJSON(message) {
|
|
130
|
+
const obj = {};
|
|
131
|
+
if (message.status !== "") {
|
|
132
|
+
obj.status = message.status;
|
|
133
|
+
}
|
|
134
|
+
return obj;
|
|
135
|
+
},
|
|
136
|
+
create(base) {
|
|
137
|
+
return exports.uploadDocumentsResponse.fromPartial(base ?? {});
|
|
138
|
+
},
|
|
139
|
+
fromPartial(object) {
|
|
140
|
+
const message = createBaseuploadDocumentsResponse();
|
|
141
|
+
message.status = object.status ?? "";
|
|
142
|
+
return message;
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
function bytesFromBase64(b64) {
|
|
146
|
+
if (globalThis.Buffer) {
|
|
147
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
const bin = globalThis.atob(b64);
|
|
151
|
+
const arr = new Uint8Array(bin.length);
|
|
152
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
153
|
+
arr[i] = bin.charCodeAt(i);
|
|
154
|
+
}
|
|
155
|
+
return arr;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
function base64FromBytes(arr) {
|
|
159
|
+
if (globalThis.Buffer) {
|
|
160
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
const bin = [];
|
|
164
|
+
arr.forEach((byte) => {
|
|
165
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
166
|
+
});
|
|
167
|
+
return globalThis.btoa(bin.join(""));
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
function isSet(value) {
|
|
171
|
+
return value !== null && value !== undefined;
|
|
172
|
+
}
|
package/ts/customers.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { forgotMpinVerifyRequest, forgotMpinVerifyResponse } from "./customers/f
|
|
|
17
17
|
import { getBankAccountDetailsRequest, getBankAccountDetailsResponse } from "./customers/getbankaccountdetails";
|
|
18
18
|
import { getBasicInfoRequest, getBasicInfoResponse } from "./customers/getbasicinfo";
|
|
19
19
|
import { getCitiesRequest, getCitiesResponse } from "./customers/getcities";
|
|
20
|
+
import { getCompanyAccDetailsRequest, getCompanyAccDetailsResponse } from "./customers/getcompanyaccdetails";
|
|
20
21
|
import { getCustomerByIdRequest, getCustomerByIdResponse } from "./customers/getcustomerbyid";
|
|
21
22
|
import { getDashboardRequest, getDashboardResponse } from "./customers/getdashboard";
|
|
22
23
|
import { getDashboardMainCardRequest, getDashboardMainCardResponse } from "./customers/getdashboardmaincard";
|
|
@@ -27,6 +28,7 @@ import { getCustomerProfileRequest, getCustomerProfileResponse } from "./custome
|
|
|
27
28
|
import { getSelfieeTxnIdRequest, getSelfieeTxnIdResponse } from "./customers/getselfieetxnid";
|
|
28
29
|
import { getAllStatesRequest, getAllStatesResponse } from "./customers/getstates";
|
|
29
30
|
import { getstepRequest, getstepResponse } from "./customers/getstep";
|
|
31
|
+
import { logoutRequest, logoutResponse } from "./customers/logout";
|
|
30
32
|
import { updateProfileBasicRequest, updateProfileBasicResponse } from "./customers/profilebasic";
|
|
31
33
|
import { updateTncRequest, updateTncResponse } from "./customers/profileupdatetnc";
|
|
32
34
|
import { saveBasicDetailsRequest, saveBasicDetailsResponse } from "./customers/savebasicdetails";
|
|
@@ -35,6 +37,7 @@ import { sendOtpRequest, sendOtpRespone } from "./customers/sendotp";
|
|
|
35
37
|
import { sendEmailOtpRequest, sendEmailOtpResponse } from "./customers/sendotptoemail";
|
|
36
38
|
import { setMpinRequest, setMpinResponse } from "./customers/setmpin";
|
|
37
39
|
import { skipDlRcScreenRequest, skipDlRcScreenResponse } from "./customers/skipdlrcscreen";
|
|
40
|
+
import { updateCustomerByIdRequest, updateCustomerByIdResponse } from "./customers/updatecustomerbyid";
|
|
38
41
|
import { updateDlNumberRequest, updateDlNumberResponse } from "./customers/updatedlnumber";
|
|
39
42
|
import { updateDOBRequest, updateDOBResponse } from "./customers/updatedob";
|
|
40
43
|
import { locStatusRequest, locStatusResponse } from "./customers/updatelocstatus";
|
|
@@ -43,6 +46,7 @@ import { updateMobileVerifyOtpRequest, updateMobileVerifyOtpResponse } from "./c
|
|
|
43
46
|
import { updateOkycTxnRequest, updateOkycTxnResponse } from "./customers/updateokyctxn";
|
|
44
47
|
import { updateSelfieeTxnRequest, updateSelfieeTxnResponse } from "./customers/updateselfieetxn";
|
|
45
48
|
import { updateVehicleNumberRequest, updateVehicleNumberResponse } from "./customers/updatevehiclenumber";
|
|
49
|
+
import { uploadDocumentsRequest, uploadDocumentsResponse } from "./customers/uploaddocuments";
|
|
46
50
|
import { validatePanRequest, validatePanResponse } from "./customers/validatepan";
|
|
47
51
|
import { verifyMpinRequest, verifyMpinResponse } from "./customers/verifympin";
|
|
48
52
|
import { verifyOtpReqeust, verifyOtpResponse } from "./customers/verifyotp";
|
|
@@ -500,6 +504,42 @@ export declare const customersService: {
|
|
|
500
504
|
readonly responseSerialize: (value: skipDlRcScreenResponse) => Buffer;
|
|
501
505
|
readonly responseDeserialize: (value: Buffer) => skipDlRcScreenResponse;
|
|
502
506
|
};
|
|
507
|
+
readonly updateCustomerById: {
|
|
508
|
+
readonly path: "/service.customers/updateCustomerById";
|
|
509
|
+
readonly requestStream: false;
|
|
510
|
+
readonly responseStream: false;
|
|
511
|
+
readonly requestSerialize: (value: updateCustomerByIdRequest) => Buffer;
|
|
512
|
+
readonly requestDeserialize: (value: Buffer) => updateCustomerByIdRequest;
|
|
513
|
+
readonly responseSerialize: (value: updateCustomerByIdResponse) => Buffer;
|
|
514
|
+
readonly responseDeserialize: (value: Buffer) => updateCustomerByIdResponse;
|
|
515
|
+
};
|
|
516
|
+
readonly uploadDocuments: {
|
|
517
|
+
readonly path: "/service.customers/uploadDocuments";
|
|
518
|
+
readonly requestStream: false;
|
|
519
|
+
readonly responseStream: false;
|
|
520
|
+
readonly requestSerialize: (value: uploadDocumentsRequest) => Buffer;
|
|
521
|
+
readonly requestDeserialize: (value: Buffer) => uploadDocumentsRequest;
|
|
522
|
+
readonly responseSerialize: (value: uploadDocumentsResponse) => Buffer;
|
|
523
|
+
readonly responseDeserialize: (value: Buffer) => uploadDocumentsResponse;
|
|
524
|
+
};
|
|
525
|
+
readonly logout: {
|
|
526
|
+
readonly path: "/service.customers/logout";
|
|
527
|
+
readonly requestStream: false;
|
|
528
|
+
readonly responseStream: false;
|
|
529
|
+
readonly requestSerialize: (value: logoutRequest) => Buffer;
|
|
530
|
+
readonly requestDeserialize: (value: Buffer) => logoutRequest;
|
|
531
|
+
readonly responseSerialize: (value: logoutResponse) => Buffer;
|
|
532
|
+
readonly responseDeserialize: (value: Buffer) => logoutResponse;
|
|
533
|
+
};
|
|
534
|
+
readonly getCompanyAccDetails: {
|
|
535
|
+
readonly path: "/service.customers/getCompanyAccDetails";
|
|
536
|
+
readonly requestStream: false;
|
|
537
|
+
readonly responseStream: false;
|
|
538
|
+
readonly requestSerialize: (value: getCompanyAccDetailsRequest) => Buffer;
|
|
539
|
+
readonly requestDeserialize: (value: Buffer) => getCompanyAccDetailsRequest;
|
|
540
|
+
readonly responseSerialize: (value: getCompanyAccDetailsResponse) => Buffer;
|
|
541
|
+
readonly responseDeserialize: (value: Buffer) => getCompanyAccDetailsResponse;
|
|
542
|
+
};
|
|
503
543
|
};
|
|
504
544
|
export interface customersServer extends UntypedServiceImplementation {
|
|
505
545
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -552,6 +592,10 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
552
592
|
updateVehicleNumber: handleUnaryCall<updateVehicleNumberRequest, updateVehicleNumberResponse>;
|
|
553
593
|
updateDlNumber: handleUnaryCall<updateDlNumberRequest, updateDlNumberResponse>;
|
|
554
594
|
skipDlRcScreen: handleUnaryCall<skipDlRcScreenRequest, skipDlRcScreenResponse>;
|
|
595
|
+
updateCustomerById: handleUnaryCall<updateCustomerByIdRequest, updateCustomerByIdResponse>;
|
|
596
|
+
uploadDocuments: handleUnaryCall<uploadDocumentsRequest, uploadDocumentsResponse>;
|
|
597
|
+
logout: handleUnaryCall<logoutRequest, logoutResponse>;
|
|
598
|
+
getCompanyAccDetails: handleUnaryCall<getCompanyAccDetailsRequest, getCompanyAccDetailsResponse>;
|
|
555
599
|
}
|
|
556
600
|
export interface customersClient extends Client {
|
|
557
601
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -704,6 +748,18 @@ export interface customersClient extends Client {
|
|
|
704
748
|
skipDlRcScreen(request: skipDlRcScreenRequest, callback: (error: ServiceError | null, response: skipDlRcScreenResponse) => void): ClientUnaryCall;
|
|
705
749
|
skipDlRcScreen(request: skipDlRcScreenRequest, metadata: Metadata, callback: (error: ServiceError | null, response: skipDlRcScreenResponse) => void): ClientUnaryCall;
|
|
706
750
|
skipDlRcScreen(request: skipDlRcScreenRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: skipDlRcScreenResponse) => void): ClientUnaryCall;
|
|
751
|
+
updateCustomerById(request: updateCustomerByIdRequest, callback: (error: ServiceError | null, response: updateCustomerByIdResponse) => void): ClientUnaryCall;
|
|
752
|
+
updateCustomerById(request: updateCustomerByIdRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateCustomerByIdResponse) => void): ClientUnaryCall;
|
|
753
|
+
updateCustomerById(request: updateCustomerByIdRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateCustomerByIdResponse) => void): ClientUnaryCall;
|
|
754
|
+
uploadDocuments(request: uploadDocumentsRequest, callback: (error: ServiceError | null, response: uploadDocumentsResponse) => void): ClientUnaryCall;
|
|
755
|
+
uploadDocuments(request: uploadDocumentsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: uploadDocumentsResponse) => void): ClientUnaryCall;
|
|
756
|
+
uploadDocuments(request: uploadDocumentsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: uploadDocumentsResponse) => void): ClientUnaryCall;
|
|
757
|
+
logout(request: logoutRequest, callback: (error: ServiceError | null, response: logoutResponse) => void): ClientUnaryCall;
|
|
758
|
+
logout(request: logoutRequest, metadata: Metadata, callback: (error: ServiceError | null, response: logoutResponse) => void): ClientUnaryCall;
|
|
759
|
+
logout(request: logoutRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: logoutResponse) => void): ClientUnaryCall;
|
|
760
|
+
getCompanyAccDetails(request: getCompanyAccDetailsRequest, callback: (error: ServiceError | null, response: getCompanyAccDetailsResponse) => void): ClientUnaryCall;
|
|
761
|
+
getCompanyAccDetails(request: getCompanyAccDetailsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getCompanyAccDetailsResponse) => void): ClientUnaryCall;
|
|
762
|
+
getCompanyAccDetails(request: getCompanyAccDetailsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getCompanyAccDetailsResponse) => void): ClientUnaryCall;
|
|
707
763
|
}
|
|
708
764
|
export declare const customersClient: {
|
|
709
765
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -26,6 +26,7 @@ const forgotmpinverify_1 = require("./customers/forgotmpinverify");
|
|
|
26
26
|
const getbankaccountdetails_1 = require("./customers/getbankaccountdetails");
|
|
27
27
|
const getbasicinfo_1 = require("./customers/getbasicinfo");
|
|
28
28
|
const getcities_1 = require("./customers/getcities");
|
|
29
|
+
const getcompanyaccdetails_1 = require("./customers/getcompanyaccdetails");
|
|
29
30
|
const getcustomerbyid_1 = require("./customers/getcustomerbyid");
|
|
30
31
|
const getdashboard_1 = require("./customers/getdashboard");
|
|
31
32
|
const getdashboardmaincard_1 = require("./customers/getdashboardmaincard");
|
|
@@ -36,6 +37,7 @@ const getprofile_1 = require("./customers/getprofile");
|
|
|
36
37
|
const getselfieetxnid_1 = require("./customers/getselfieetxnid");
|
|
37
38
|
const getstates_1 = require("./customers/getstates");
|
|
38
39
|
const getstep_1 = require("./customers/getstep");
|
|
40
|
+
const logout_1 = require("./customers/logout");
|
|
39
41
|
const profilebasic_1 = require("./customers/profilebasic");
|
|
40
42
|
const profileupdatetnc_1 = require("./customers/profileupdatetnc");
|
|
41
43
|
const savebasicdetails_1 = require("./customers/savebasicdetails");
|
|
@@ -44,6 +46,7 @@ const sendotp_1 = require("./customers/sendotp");
|
|
|
44
46
|
const sendotptoemail_1 = require("./customers/sendotptoemail");
|
|
45
47
|
const setmpin_1 = require("./customers/setmpin");
|
|
46
48
|
const skipdlrcscreen_1 = require("./customers/skipdlrcscreen");
|
|
49
|
+
const updatecustomerbyid_1 = require("./customers/updatecustomerbyid");
|
|
47
50
|
const updatedlnumber_1 = require("./customers/updatedlnumber");
|
|
48
51
|
const updatedob_1 = require("./customers/updatedob");
|
|
49
52
|
const updatelocstatus_1 = require("./customers/updatelocstatus");
|
|
@@ -52,6 +55,7 @@ const updatemobileverifyotp_1 = require("./customers/updatemobileverifyotp");
|
|
|
52
55
|
const updateokyctxn_1 = require("./customers/updateokyctxn");
|
|
53
56
|
const updateselfieetxn_1 = require("./customers/updateselfieetxn");
|
|
54
57
|
const updatevehiclenumber_1 = require("./customers/updatevehiclenumber");
|
|
58
|
+
const uploaddocuments_1 = require("./customers/uploaddocuments");
|
|
55
59
|
const validatepan_1 = require("./customers/validatepan");
|
|
56
60
|
const verifympin_1 = require("./customers/verifympin");
|
|
57
61
|
const verifyotp_1 = require("./customers/verifyotp");
|
|
@@ -508,5 +512,41 @@ exports.customersService = {
|
|
|
508
512
|
responseSerialize: (value) => Buffer.from(skipdlrcscreen_1.skipDlRcScreenResponse.encode(value).finish()),
|
|
509
513
|
responseDeserialize: (value) => skipdlrcscreen_1.skipDlRcScreenResponse.decode(value),
|
|
510
514
|
},
|
|
515
|
+
updateCustomerById: {
|
|
516
|
+
path: "/service.customers/updateCustomerById",
|
|
517
|
+
requestStream: false,
|
|
518
|
+
responseStream: false,
|
|
519
|
+
requestSerialize: (value) => Buffer.from(updatecustomerbyid_1.updateCustomerByIdRequest.encode(value).finish()),
|
|
520
|
+
requestDeserialize: (value) => updatecustomerbyid_1.updateCustomerByIdRequest.decode(value),
|
|
521
|
+
responseSerialize: (value) => Buffer.from(updatecustomerbyid_1.updateCustomerByIdResponse.encode(value).finish()),
|
|
522
|
+
responseDeserialize: (value) => updatecustomerbyid_1.updateCustomerByIdResponse.decode(value),
|
|
523
|
+
},
|
|
524
|
+
uploadDocuments: {
|
|
525
|
+
path: "/service.customers/uploadDocuments",
|
|
526
|
+
requestStream: false,
|
|
527
|
+
responseStream: false,
|
|
528
|
+
requestSerialize: (value) => Buffer.from(uploaddocuments_1.uploadDocumentsRequest.encode(value).finish()),
|
|
529
|
+
requestDeserialize: (value) => uploaddocuments_1.uploadDocumentsRequest.decode(value),
|
|
530
|
+
responseSerialize: (value) => Buffer.from(uploaddocuments_1.uploadDocumentsResponse.encode(value).finish()),
|
|
531
|
+
responseDeserialize: (value) => uploaddocuments_1.uploadDocumentsResponse.decode(value),
|
|
532
|
+
},
|
|
533
|
+
logout: {
|
|
534
|
+
path: "/service.customers/logout",
|
|
535
|
+
requestStream: false,
|
|
536
|
+
responseStream: false,
|
|
537
|
+
requestSerialize: (value) => Buffer.from(logout_1.logoutRequest.encode(value).finish()),
|
|
538
|
+
requestDeserialize: (value) => logout_1.logoutRequest.decode(value),
|
|
539
|
+
responseSerialize: (value) => Buffer.from(logout_1.logoutResponse.encode(value).finish()),
|
|
540
|
+
responseDeserialize: (value) => logout_1.logoutResponse.decode(value),
|
|
541
|
+
},
|
|
542
|
+
getCompanyAccDetails: {
|
|
543
|
+
path: "/service.customers/getCompanyAccDetails",
|
|
544
|
+
requestStream: false,
|
|
545
|
+
responseStream: false,
|
|
546
|
+
requestSerialize: (value) => Buffer.from(getcompanyaccdetails_1.getCompanyAccDetailsRequest.encode(value).finish()),
|
|
547
|
+
requestDeserialize: (value) => getcompanyaccdetails_1.getCompanyAccDetailsRequest.decode(value),
|
|
548
|
+
responseSerialize: (value) => Buffer.from(getcompanyaccdetails_1.getCompanyAccDetailsResponse.encode(value).finish()),
|
|
549
|
+
responseDeserialize: (value) => getcompanyaccdetails_1.getCompanyAccDetailsResponse.decode(value),
|
|
550
|
+
},
|
|
511
551
|
};
|
|
512
552
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
|
@@ -7,6 +7,11 @@ export interface approveLoanRequest {
|
|
|
7
7
|
customer_id: number;
|
|
8
8
|
ip: string;
|
|
9
9
|
addons: number;
|
|
10
|
+
addonsData: approveLoanRequest_Field[];
|
|
11
|
+
}
|
|
12
|
+
export interface approveLoanRequest_Field {
|
|
13
|
+
name: string;
|
|
14
|
+
amount: number;
|
|
10
15
|
}
|
|
11
16
|
export interface approveLoanResponse {
|
|
12
17
|
gateway_fees: number;
|
|
@@ -47,6 +52,14 @@ export declare const approveLoanRequest: {
|
|
|
47
52
|
create<I extends Exact<DeepPartial<approveLoanRequest>, I>>(base?: I): approveLoanRequest;
|
|
48
53
|
fromPartial<I extends Exact<DeepPartial<approveLoanRequest>, I>>(object: I): approveLoanRequest;
|
|
49
54
|
};
|
|
55
|
+
export declare const approveLoanRequest_Field: {
|
|
56
|
+
encode(message: approveLoanRequest_Field, writer?: _m0.Writer): _m0.Writer;
|
|
57
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): approveLoanRequest_Field;
|
|
58
|
+
fromJSON(object: any): approveLoanRequest_Field;
|
|
59
|
+
toJSON(message: approveLoanRequest_Field): unknown;
|
|
60
|
+
create<I extends Exact<DeepPartial<approveLoanRequest_Field>, I>>(base?: I): approveLoanRequest_Field;
|
|
61
|
+
fromPartial<I extends Exact<DeepPartial<approveLoanRequest_Field>, I>>(object: I): approveLoanRequest_Field;
|
|
62
|
+
};
|
|
50
63
|
export declare const approveLoanResponse: {
|
|
51
64
|
encode(message: approveLoanResponse, writer?: _m0.Writer): _m0.Writer;
|
|
52
65
|
decode(input: _m0.Reader | Uint8Array, length?: number): approveLoanResponse;
|