@stashfin/grpc 1.2.41 → 1.2.43
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/getprofile.d.ts +17 -2
- package/ts/customers/getprofile.js +145 -25
- package/ts/customers/resetmpin.d.ts +36 -0
- package/ts/customers/resetmpin.js +133 -0
- package/ts/loans/transactionlist.d.ts +50 -0
- package/ts/loans/transactionlist.js +229 -0
- package/ts/loans.d.ts +11 -11
- package/ts/loans.js +7 -7
package/package.json
CHANGED
|
@@ -3,11 +3,18 @@ export declare const protobufPackage = "customers.getprofile";
|
|
|
3
3
|
export interface getCustomerProfileRequest {
|
|
4
4
|
}
|
|
5
5
|
export interface getCustomerProfileResponse {
|
|
6
|
-
customer_id: number;
|
|
7
6
|
first_name: string;
|
|
8
7
|
middle_name: string;
|
|
9
8
|
last_name: string;
|
|
10
|
-
|
|
9
|
+
profile_image: string;
|
|
10
|
+
email: string;
|
|
11
|
+
profile_completion_status: number;
|
|
12
|
+
details: ProfileDetail[];
|
|
13
|
+
}
|
|
14
|
+
export interface ProfileDetail {
|
|
15
|
+
title: string;
|
|
16
|
+
status: boolean;
|
|
17
|
+
redirect_url: string;
|
|
11
18
|
}
|
|
12
19
|
export declare const getCustomerProfileRequest: {
|
|
13
20
|
encode(_: getCustomerProfileRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -25,6 +32,14 @@ export declare const getCustomerProfileResponse: {
|
|
|
25
32
|
create<I extends Exact<DeepPartial<getCustomerProfileResponse>, I>>(base?: I): getCustomerProfileResponse;
|
|
26
33
|
fromPartial<I extends Exact<DeepPartial<getCustomerProfileResponse>, I>>(object: I): getCustomerProfileResponse;
|
|
27
34
|
};
|
|
35
|
+
export declare const ProfileDetail: {
|
|
36
|
+
encode(message: ProfileDetail, writer?: _m0.Writer): _m0.Writer;
|
|
37
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProfileDetail;
|
|
38
|
+
fromJSON(object: any): ProfileDetail;
|
|
39
|
+
toJSON(message: ProfileDetail): unknown;
|
|
40
|
+
create<I extends Exact<DeepPartial<ProfileDetail>, I>>(base?: I): ProfileDetail;
|
|
41
|
+
fromPartial<I extends Exact<DeepPartial<ProfileDetail>, I>>(object: I): ProfileDetail;
|
|
42
|
+
};
|
|
28
43
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
29
44
|
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 {} ? {
|
|
30
45
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -8,7 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.getCustomerProfileResponse = exports.getCustomerProfileRequest = exports.protobufPackage = void 0;
|
|
11
|
+
exports.ProfileDetail = exports.getCustomerProfileResponse = exports.getCustomerProfileRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customers.getprofile";
|
|
@@ -50,24 +50,38 @@ exports.getCustomerProfileRequest = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
function createBasegetCustomerProfileResponse() {
|
|
53
|
-
return {
|
|
53
|
+
return {
|
|
54
|
+
first_name: "",
|
|
55
|
+
middle_name: "",
|
|
56
|
+
last_name: "",
|
|
57
|
+
profile_image: "",
|
|
58
|
+
email: "",
|
|
59
|
+
profile_completion_status: 0,
|
|
60
|
+
details: [],
|
|
61
|
+
};
|
|
54
62
|
}
|
|
55
63
|
exports.getCustomerProfileResponse = {
|
|
56
64
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
-
if (message.customer_id !== 0) {
|
|
58
|
-
writer.uint32(8).int32(message.customer_id);
|
|
59
|
-
}
|
|
60
65
|
if (message.first_name !== "") {
|
|
61
|
-
writer.uint32(
|
|
66
|
+
writer.uint32(10).string(message.first_name);
|
|
62
67
|
}
|
|
63
68
|
if (message.middle_name !== "") {
|
|
64
|
-
writer.uint32(
|
|
69
|
+
writer.uint32(18).string(message.middle_name);
|
|
65
70
|
}
|
|
66
71
|
if (message.last_name !== "") {
|
|
67
|
-
writer.uint32(
|
|
72
|
+
writer.uint32(26).string(message.last_name);
|
|
73
|
+
}
|
|
74
|
+
if (message.profile_image !== "") {
|
|
75
|
+
writer.uint32(34).string(message.profile_image);
|
|
76
|
+
}
|
|
77
|
+
if (message.email !== "") {
|
|
78
|
+
writer.uint32(42).string(message.email);
|
|
68
79
|
}
|
|
69
|
-
if (message.
|
|
70
|
-
writer.uint32(
|
|
80
|
+
if (message.profile_completion_status !== 0) {
|
|
81
|
+
writer.uint32(48).int32(message.profile_completion_status);
|
|
82
|
+
}
|
|
83
|
+
for (const v of message.details) {
|
|
84
|
+
exports.ProfileDetail.encode(v, writer.uint32(58).fork()).ldelim();
|
|
71
85
|
}
|
|
72
86
|
return writer;
|
|
73
87
|
},
|
|
@@ -79,34 +93,46 @@ exports.getCustomerProfileResponse = {
|
|
|
79
93
|
const tag = reader.uint32();
|
|
80
94
|
switch (tag >>> 3) {
|
|
81
95
|
case 1:
|
|
82
|
-
if (tag !==
|
|
96
|
+
if (tag !== 10) {
|
|
83
97
|
break;
|
|
84
98
|
}
|
|
85
|
-
message.
|
|
99
|
+
message.first_name = reader.string();
|
|
86
100
|
continue;
|
|
87
101
|
case 2:
|
|
88
102
|
if (tag !== 18) {
|
|
89
103
|
break;
|
|
90
104
|
}
|
|
91
|
-
message.
|
|
105
|
+
message.middle_name = reader.string();
|
|
92
106
|
continue;
|
|
93
107
|
case 3:
|
|
94
108
|
if (tag !== 26) {
|
|
95
109
|
break;
|
|
96
110
|
}
|
|
97
|
-
message.
|
|
111
|
+
message.last_name = reader.string();
|
|
98
112
|
continue;
|
|
99
113
|
case 4:
|
|
100
114
|
if (tag !== 34) {
|
|
101
115
|
break;
|
|
102
116
|
}
|
|
103
|
-
message.
|
|
117
|
+
message.profile_image = reader.string();
|
|
104
118
|
continue;
|
|
105
119
|
case 5:
|
|
106
120
|
if (tag !== 42) {
|
|
107
121
|
break;
|
|
108
122
|
}
|
|
109
|
-
message.
|
|
123
|
+
message.email = reader.string();
|
|
124
|
+
continue;
|
|
125
|
+
case 6:
|
|
126
|
+
if (tag !== 48) {
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
message.profile_completion_status = reader.int32();
|
|
130
|
+
continue;
|
|
131
|
+
case 7:
|
|
132
|
+
if (tag !== 58) {
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
message.details.push(exports.ProfileDetail.decode(reader, reader.uint32()));
|
|
110
136
|
continue;
|
|
111
137
|
}
|
|
112
138
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -118,18 +144,21 @@ exports.getCustomerProfileResponse = {
|
|
|
118
144
|
},
|
|
119
145
|
fromJSON(object) {
|
|
120
146
|
return {
|
|
121
|
-
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
122
147
|
first_name: isSet(object.first_name) ? globalThis.String(object.first_name) : "",
|
|
123
148
|
middle_name: isSet(object.middle_name) ? globalThis.String(object.middle_name) : "",
|
|
124
149
|
last_name: isSet(object.last_name) ? globalThis.String(object.last_name) : "",
|
|
125
|
-
|
|
150
|
+
profile_image: isSet(object.profile_image) ? globalThis.String(object.profile_image) : "",
|
|
151
|
+
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
152
|
+
profile_completion_status: isSet(object.profile_completion_status)
|
|
153
|
+
? globalThis.Number(object.profile_completion_status)
|
|
154
|
+
: 0,
|
|
155
|
+
details: globalThis.Array.isArray(object?.details)
|
|
156
|
+
? object.details.map((e) => exports.ProfileDetail.fromJSON(e))
|
|
157
|
+
: [],
|
|
126
158
|
};
|
|
127
159
|
},
|
|
128
160
|
toJSON(message) {
|
|
129
161
|
const obj = {};
|
|
130
|
-
if (message.customer_id !== 0) {
|
|
131
|
-
obj.customer_id = Math.round(message.customer_id);
|
|
132
|
-
}
|
|
133
162
|
if (message.first_name !== "") {
|
|
134
163
|
obj.first_name = message.first_name;
|
|
135
164
|
}
|
|
@@ -139,8 +168,17 @@ exports.getCustomerProfileResponse = {
|
|
|
139
168
|
if (message.last_name !== "") {
|
|
140
169
|
obj.last_name = message.last_name;
|
|
141
170
|
}
|
|
142
|
-
if (message.
|
|
143
|
-
obj.
|
|
171
|
+
if (message.profile_image !== "") {
|
|
172
|
+
obj.profile_image = message.profile_image;
|
|
173
|
+
}
|
|
174
|
+
if (message.email !== "") {
|
|
175
|
+
obj.email = message.email;
|
|
176
|
+
}
|
|
177
|
+
if (message.profile_completion_status !== 0) {
|
|
178
|
+
obj.profile_completion_status = Math.round(message.profile_completion_status);
|
|
179
|
+
}
|
|
180
|
+
if (message.details?.length) {
|
|
181
|
+
obj.details = message.details.map((e) => exports.ProfileDetail.toJSON(e));
|
|
144
182
|
}
|
|
145
183
|
return obj;
|
|
146
184
|
},
|
|
@@ -149,11 +187,93 @@ exports.getCustomerProfileResponse = {
|
|
|
149
187
|
},
|
|
150
188
|
fromPartial(object) {
|
|
151
189
|
const message = createBasegetCustomerProfileResponse();
|
|
152
|
-
message.customer_id = object.customer_id ?? 0;
|
|
153
190
|
message.first_name = object.first_name ?? "";
|
|
154
191
|
message.middle_name = object.middle_name ?? "";
|
|
155
192
|
message.last_name = object.last_name ?? "";
|
|
156
|
-
message.
|
|
193
|
+
message.profile_image = object.profile_image ?? "";
|
|
194
|
+
message.email = object.email ?? "";
|
|
195
|
+
message.profile_completion_status = object.profile_completion_status ?? 0;
|
|
196
|
+
message.details = object.details?.map((e) => exports.ProfileDetail.fromPartial(e)) || [];
|
|
197
|
+
return message;
|
|
198
|
+
},
|
|
199
|
+
};
|
|
200
|
+
function createBaseProfileDetail() {
|
|
201
|
+
return { title: "", status: false, redirect_url: "" };
|
|
202
|
+
}
|
|
203
|
+
exports.ProfileDetail = {
|
|
204
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
205
|
+
if (message.title !== "") {
|
|
206
|
+
writer.uint32(10).string(message.title);
|
|
207
|
+
}
|
|
208
|
+
if (message.status !== false) {
|
|
209
|
+
writer.uint32(16).bool(message.status);
|
|
210
|
+
}
|
|
211
|
+
if (message.redirect_url !== "") {
|
|
212
|
+
writer.uint32(26).string(message.redirect_url);
|
|
213
|
+
}
|
|
214
|
+
return writer;
|
|
215
|
+
},
|
|
216
|
+
decode(input, length) {
|
|
217
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
218
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
219
|
+
const message = createBaseProfileDetail();
|
|
220
|
+
while (reader.pos < end) {
|
|
221
|
+
const tag = reader.uint32();
|
|
222
|
+
switch (tag >>> 3) {
|
|
223
|
+
case 1:
|
|
224
|
+
if (tag !== 10) {
|
|
225
|
+
break;
|
|
226
|
+
}
|
|
227
|
+
message.title = reader.string();
|
|
228
|
+
continue;
|
|
229
|
+
case 2:
|
|
230
|
+
if (tag !== 16) {
|
|
231
|
+
break;
|
|
232
|
+
}
|
|
233
|
+
message.status = reader.bool();
|
|
234
|
+
continue;
|
|
235
|
+
case 3:
|
|
236
|
+
if (tag !== 26) {
|
|
237
|
+
break;
|
|
238
|
+
}
|
|
239
|
+
message.redirect_url = reader.string();
|
|
240
|
+
continue;
|
|
241
|
+
}
|
|
242
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
reader.skipType(tag & 7);
|
|
246
|
+
}
|
|
247
|
+
return message;
|
|
248
|
+
},
|
|
249
|
+
fromJSON(object) {
|
|
250
|
+
return {
|
|
251
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
252
|
+
status: isSet(object.status) ? globalThis.Boolean(object.status) : false,
|
|
253
|
+
redirect_url: isSet(object.redirect_url) ? globalThis.String(object.redirect_url) : "",
|
|
254
|
+
};
|
|
255
|
+
},
|
|
256
|
+
toJSON(message) {
|
|
257
|
+
const obj = {};
|
|
258
|
+
if (message.title !== "") {
|
|
259
|
+
obj.title = message.title;
|
|
260
|
+
}
|
|
261
|
+
if (message.status !== false) {
|
|
262
|
+
obj.status = message.status;
|
|
263
|
+
}
|
|
264
|
+
if (message.redirect_url !== "") {
|
|
265
|
+
obj.redirect_url = message.redirect_url;
|
|
266
|
+
}
|
|
267
|
+
return obj;
|
|
268
|
+
},
|
|
269
|
+
create(base) {
|
|
270
|
+
return exports.ProfileDetail.fromPartial(base ?? {});
|
|
271
|
+
},
|
|
272
|
+
fromPartial(object) {
|
|
273
|
+
const message = createBaseProfileDetail();
|
|
274
|
+
message.title = object.title ?? "";
|
|
275
|
+
message.status = object.status ?? false;
|
|
276
|
+
message.redirect_url = object.redirect_url ?? "";
|
|
157
277
|
return message;
|
|
158
278
|
},
|
|
159
279
|
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.resetmpin";
|
|
3
|
+
export interface resetMpinRequest {
|
|
4
|
+
old_mpin: string;
|
|
5
|
+
new_mpin: string;
|
|
6
|
+
}
|
|
7
|
+
export interface resetMpinResponse {
|
|
8
|
+
id: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const resetMpinRequest: {
|
|
11
|
+
encode(message: resetMpinRequest, writer?: _m0.Writer): _m0.Writer;
|
|
12
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): resetMpinRequest;
|
|
13
|
+
fromJSON(object: any): resetMpinRequest;
|
|
14
|
+
toJSON(message: resetMpinRequest): unknown;
|
|
15
|
+
create<I extends Exact<DeepPartial<resetMpinRequest>, I>>(base?: I): resetMpinRequest;
|
|
16
|
+
fromPartial<I extends Exact<DeepPartial<resetMpinRequest>, I>>(object: I): resetMpinRequest;
|
|
17
|
+
};
|
|
18
|
+
export declare const resetMpinResponse: {
|
|
19
|
+
encode(message: resetMpinResponse, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): resetMpinResponse;
|
|
21
|
+
fromJSON(object: any): resetMpinResponse;
|
|
22
|
+
toJSON(message: resetMpinResponse): unknown;
|
|
23
|
+
create<I extends Exact<DeepPartial<resetMpinResponse>, I>>(base?: I): resetMpinResponse;
|
|
24
|
+
fromPartial<I extends Exact<DeepPartial<resetMpinResponse>, I>>(object: I): resetMpinResponse;
|
|
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 v3.20.3
|
|
6
|
+
// source: customers/resetmpin.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.resetMpinResponse = exports.resetMpinRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.resetmpin";
|
|
15
|
+
function createBaseresetMpinRequest() {
|
|
16
|
+
return { old_mpin: "", new_mpin: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.resetMpinRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.old_mpin !== "") {
|
|
21
|
+
writer.uint32(10).string(message.old_mpin);
|
|
22
|
+
}
|
|
23
|
+
if (message.new_mpin !== "") {
|
|
24
|
+
writer.uint32(18).string(message.new_mpin);
|
|
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 = createBaseresetMpinRequest();
|
|
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.old_mpin = reader.string();
|
|
40
|
+
continue;
|
|
41
|
+
case 2:
|
|
42
|
+
if (tag !== 18) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.new_mpin = 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
|
+
old_mpin: isSet(object.old_mpin) ? globalThis.String(object.old_mpin) : "",
|
|
58
|
+
new_mpin: isSet(object.new_mpin) ? globalThis.String(object.new_mpin) : "",
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
toJSON(message) {
|
|
62
|
+
const obj = {};
|
|
63
|
+
if (message.old_mpin !== "") {
|
|
64
|
+
obj.old_mpin = message.old_mpin;
|
|
65
|
+
}
|
|
66
|
+
if (message.new_mpin !== "") {
|
|
67
|
+
obj.new_mpin = message.new_mpin;
|
|
68
|
+
}
|
|
69
|
+
return obj;
|
|
70
|
+
},
|
|
71
|
+
create(base) {
|
|
72
|
+
return exports.resetMpinRequest.fromPartial(base ?? {});
|
|
73
|
+
},
|
|
74
|
+
fromPartial(object) {
|
|
75
|
+
const message = createBaseresetMpinRequest();
|
|
76
|
+
message.old_mpin = object.old_mpin ?? "";
|
|
77
|
+
message.new_mpin = object.new_mpin ?? "";
|
|
78
|
+
return message;
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
function createBaseresetMpinResponse() {
|
|
82
|
+
return { id: 0 };
|
|
83
|
+
}
|
|
84
|
+
exports.resetMpinResponse = {
|
|
85
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
86
|
+
if (message.id !== 0) {
|
|
87
|
+
writer.uint32(8).int32(message.id);
|
|
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 = createBaseresetMpinResponse();
|
|
95
|
+
while (reader.pos < end) {
|
|
96
|
+
const tag = reader.uint32();
|
|
97
|
+
switch (tag >>> 3) {
|
|
98
|
+
case 1:
|
|
99
|
+
if (tag !== 8) {
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
message.id = reader.int32();
|
|
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 { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
114
|
+
},
|
|
115
|
+
toJSON(message) {
|
|
116
|
+
const obj = {};
|
|
117
|
+
if (message.id !== 0) {
|
|
118
|
+
obj.id = Math.round(message.id);
|
|
119
|
+
}
|
|
120
|
+
return obj;
|
|
121
|
+
},
|
|
122
|
+
create(base) {
|
|
123
|
+
return exports.resetMpinResponse.fromPartial(base ?? {});
|
|
124
|
+
},
|
|
125
|
+
fromPartial(object) {
|
|
126
|
+
const message = createBaseresetMpinResponse();
|
|
127
|
+
message.id = object.id ?? 0;
|
|
128
|
+
return message;
|
|
129
|
+
},
|
|
130
|
+
};
|
|
131
|
+
function isSet(value) {
|
|
132
|
+
return value !== null && value !== undefined;
|
|
133
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.transactionlist";
|
|
3
|
+
export interface transactionListRequest {
|
|
4
|
+
filter_by: string;
|
|
5
|
+
}
|
|
6
|
+
export interface transactionListResponse {
|
|
7
|
+
data: transactionListResponse_Field[];
|
|
8
|
+
}
|
|
9
|
+
export interface transactionListResponse_Field {
|
|
10
|
+
id: number;
|
|
11
|
+
loan_amount: number;
|
|
12
|
+
emi_amount: number;
|
|
13
|
+
start_date: string;
|
|
14
|
+
close_date: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const transactionListRequest: {
|
|
17
|
+
encode(message: transactionListRequest, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): transactionListRequest;
|
|
19
|
+
fromJSON(object: any): transactionListRequest;
|
|
20
|
+
toJSON(message: transactionListRequest): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<transactionListRequest>, I>>(base?: I): transactionListRequest;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<transactionListRequest>, I>>(object: I): transactionListRequest;
|
|
23
|
+
};
|
|
24
|
+
export declare const transactionListResponse: {
|
|
25
|
+
encode(message: transactionListResponse, writer?: _m0.Writer): _m0.Writer;
|
|
26
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): transactionListResponse;
|
|
27
|
+
fromJSON(object: any): transactionListResponse;
|
|
28
|
+
toJSON(message: transactionListResponse): unknown;
|
|
29
|
+
create<I extends Exact<DeepPartial<transactionListResponse>, I>>(base?: I): transactionListResponse;
|
|
30
|
+
fromPartial<I extends Exact<DeepPartial<transactionListResponse>, I>>(object: I): transactionListResponse;
|
|
31
|
+
};
|
|
32
|
+
export declare const transactionListResponse_Field: {
|
|
33
|
+
encode(message: transactionListResponse_Field, writer?: _m0.Writer): _m0.Writer;
|
|
34
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): transactionListResponse_Field;
|
|
35
|
+
fromJSON(object: any): transactionListResponse_Field;
|
|
36
|
+
toJSON(message: transactionListResponse_Field): unknown;
|
|
37
|
+
create<I extends Exact<DeepPartial<transactionListResponse_Field>, I>>(base?: I): transactionListResponse_Field;
|
|
38
|
+
fromPartial<I extends Exact<DeepPartial<transactionListResponse_Field>, I>>(object: I): transactionListResponse_Field;
|
|
39
|
+
};
|
|
40
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
41
|
+
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 {} ? {
|
|
42
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
43
|
+
} : Partial<T>;
|
|
44
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
45
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
46
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
47
|
+
} & {
|
|
48
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
49
|
+
};
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,229 @@
|
|
|
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/transactionlist.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.transactionListResponse_Field = exports.transactionListResponse = exports.transactionListRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.transactionlist";
|
|
15
|
+
function createBasetransactionListRequest() {
|
|
16
|
+
return { filter_by: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.transactionListRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.filter_by !== "") {
|
|
21
|
+
writer.uint32(10).string(message.filter_by);
|
|
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 = createBasetransactionListRequest();
|
|
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.filter_by = 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 { filter_by: isSet(object.filter_by) ? globalThis.String(object.filter_by) : "" };
|
|
48
|
+
},
|
|
49
|
+
toJSON(message) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
if (message.filter_by !== "") {
|
|
52
|
+
obj.filter_by = message.filter_by;
|
|
53
|
+
}
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
create(base) {
|
|
57
|
+
return exports.transactionListRequest.fromPartial(base ?? {});
|
|
58
|
+
},
|
|
59
|
+
fromPartial(object) {
|
|
60
|
+
const message = createBasetransactionListRequest();
|
|
61
|
+
message.filter_by = object.filter_by ?? "";
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
function createBasetransactionListResponse() {
|
|
66
|
+
return { data: [] };
|
|
67
|
+
}
|
|
68
|
+
exports.transactionListResponse = {
|
|
69
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
+
for (const v of message.data) {
|
|
71
|
+
exports.transactionListResponse_Field.encode(v, writer.uint32(10).fork()).ldelim();
|
|
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 = createBasetransactionListResponse();
|
|
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.data.push(exports.transactionListResponse_Field.decode(reader, reader.uint32()));
|
|
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 {
|
|
98
|
+
data: globalThis.Array.isArray(object?.data)
|
|
99
|
+
? object.data.map((e) => exports.transactionListResponse_Field.fromJSON(e))
|
|
100
|
+
: [],
|
|
101
|
+
};
|
|
102
|
+
},
|
|
103
|
+
toJSON(message) {
|
|
104
|
+
const obj = {};
|
|
105
|
+
if (message.data?.length) {
|
|
106
|
+
obj.data = message.data.map((e) => exports.transactionListResponse_Field.toJSON(e));
|
|
107
|
+
}
|
|
108
|
+
return obj;
|
|
109
|
+
},
|
|
110
|
+
create(base) {
|
|
111
|
+
return exports.transactionListResponse.fromPartial(base ?? {});
|
|
112
|
+
},
|
|
113
|
+
fromPartial(object) {
|
|
114
|
+
const message = createBasetransactionListResponse();
|
|
115
|
+
message.data = object.data?.map((e) => exports.transactionListResponse_Field.fromPartial(e)) || [];
|
|
116
|
+
return message;
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
function createBasetransactionListResponse_Field() {
|
|
120
|
+
return { id: 0, loan_amount: 0, emi_amount: 0, start_date: "", close_date: "" };
|
|
121
|
+
}
|
|
122
|
+
exports.transactionListResponse_Field = {
|
|
123
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
124
|
+
if (message.id !== 0) {
|
|
125
|
+
writer.uint32(8).int32(message.id);
|
|
126
|
+
}
|
|
127
|
+
if (message.loan_amount !== 0) {
|
|
128
|
+
writer.uint32(16).int32(message.loan_amount);
|
|
129
|
+
}
|
|
130
|
+
if (message.emi_amount !== 0) {
|
|
131
|
+
writer.uint32(24).int32(message.emi_amount);
|
|
132
|
+
}
|
|
133
|
+
if (message.start_date !== "") {
|
|
134
|
+
writer.uint32(34).string(message.start_date);
|
|
135
|
+
}
|
|
136
|
+
if (message.close_date !== "") {
|
|
137
|
+
writer.uint32(42).string(message.close_date);
|
|
138
|
+
}
|
|
139
|
+
return writer;
|
|
140
|
+
},
|
|
141
|
+
decode(input, length) {
|
|
142
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
143
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
144
|
+
const message = createBasetransactionListResponse_Field();
|
|
145
|
+
while (reader.pos < end) {
|
|
146
|
+
const tag = reader.uint32();
|
|
147
|
+
switch (tag >>> 3) {
|
|
148
|
+
case 1:
|
|
149
|
+
if (tag !== 8) {
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
message.id = reader.int32();
|
|
153
|
+
continue;
|
|
154
|
+
case 2:
|
|
155
|
+
if (tag !== 16) {
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
message.loan_amount = reader.int32();
|
|
159
|
+
continue;
|
|
160
|
+
case 3:
|
|
161
|
+
if (tag !== 24) {
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
message.emi_amount = reader.int32();
|
|
165
|
+
continue;
|
|
166
|
+
case 4:
|
|
167
|
+
if (tag !== 34) {
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
message.start_date = reader.string();
|
|
171
|
+
continue;
|
|
172
|
+
case 5:
|
|
173
|
+
if (tag !== 42) {
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
message.close_date = reader.string();
|
|
177
|
+
continue;
|
|
178
|
+
}
|
|
179
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
reader.skipType(tag & 7);
|
|
183
|
+
}
|
|
184
|
+
return message;
|
|
185
|
+
},
|
|
186
|
+
fromJSON(object) {
|
|
187
|
+
return {
|
|
188
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
189
|
+
loan_amount: isSet(object.loan_amount) ? globalThis.Number(object.loan_amount) : 0,
|
|
190
|
+
emi_amount: isSet(object.emi_amount) ? globalThis.Number(object.emi_amount) : 0,
|
|
191
|
+
start_date: isSet(object.start_date) ? globalThis.String(object.start_date) : "",
|
|
192
|
+
close_date: isSet(object.close_date) ? globalThis.String(object.close_date) : "",
|
|
193
|
+
};
|
|
194
|
+
},
|
|
195
|
+
toJSON(message) {
|
|
196
|
+
const obj = {};
|
|
197
|
+
if (message.id !== 0) {
|
|
198
|
+
obj.id = Math.round(message.id);
|
|
199
|
+
}
|
|
200
|
+
if (message.loan_amount !== 0) {
|
|
201
|
+
obj.loan_amount = Math.round(message.loan_amount);
|
|
202
|
+
}
|
|
203
|
+
if (message.emi_amount !== 0) {
|
|
204
|
+
obj.emi_amount = Math.round(message.emi_amount);
|
|
205
|
+
}
|
|
206
|
+
if (message.start_date !== "") {
|
|
207
|
+
obj.start_date = message.start_date;
|
|
208
|
+
}
|
|
209
|
+
if (message.close_date !== "") {
|
|
210
|
+
obj.close_date = message.close_date;
|
|
211
|
+
}
|
|
212
|
+
return obj;
|
|
213
|
+
},
|
|
214
|
+
create(base) {
|
|
215
|
+
return exports.transactionListResponse_Field.fromPartial(base ?? {});
|
|
216
|
+
},
|
|
217
|
+
fromPartial(object) {
|
|
218
|
+
const message = createBasetransactionListResponse_Field();
|
|
219
|
+
message.id = object.id ?? 0;
|
|
220
|
+
message.loan_amount = object.loan_amount ?? 0;
|
|
221
|
+
message.emi_amount = object.emi_amount ?? 0;
|
|
222
|
+
message.start_date = object.start_date ?? "";
|
|
223
|
+
message.close_date = object.close_date ?? "";
|
|
224
|
+
return message;
|
|
225
|
+
},
|
|
226
|
+
};
|
|
227
|
+
function isSet(value) {
|
|
228
|
+
return value !== null && value !== undefined;
|
|
229
|
+
}
|
package/ts/loans.d.ts
CHANGED
|
@@ -3,7 +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 {
|
|
6
|
+
import { transactionListRequest, transactionListResponse } from "./loans/transactionlist";
|
|
7
7
|
import { updateInstallmentsRequest, updateInstallmentsResponse } from "./loans/updateinstallments";
|
|
8
8
|
import { updateLoanRequest, updateLoanResponse } from "./loans/updateloan";
|
|
9
9
|
export declare const protobufPackage = "service";
|
|
@@ -63,14 +63,14 @@ export declare const loansService: {
|
|
|
63
63
|
readonly responseSerialize: (value: updateInstallmentsResponse) => Buffer;
|
|
64
64
|
readonly responseDeserialize: (value: Buffer) => updateInstallmentsResponse;
|
|
65
65
|
};
|
|
66
|
-
readonly
|
|
67
|
-
readonly path: "/service.loans/
|
|
66
|
+
readonly transactionList: {
|
|
67
|
+
readonly path: "/service.loans/transactionList";
|
|
68
68
|
readonly requestStream: false;
|
|
69
69
|
readonly responseStream: false;
|
|
70
|
-
readonly requestSerialize: (value:
|
|
71
|
-
readonly requestDeserialize: (value: Buffer) =>
|
|
72
|
-
readonly responseSerialize: (value:
|
|
73
|
-
readonly responseDeserialize: (value: Buffer) =>
|
|
70
|
+
readonly requestSerialize: (value: transactionListRequest) => Buffer;
|
|
71
|
+
readonly requestDeserialize: (value: Buffer) => transactionListRequest;
|
|
72
|
+
readonly responseSerialize: (value: transactionListResponse) => Buffer;
|
|
73
|
+
readonly responseDeserialize: (value: Buffer) => transactionListResponse;
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
76
|
export interface loansServer extends UntypedServiceImplementation {
|
|
@@ -80,7 +80,7 @@ export interface loansServer extends UntypedServiceImplementation {
|
|
|
80
80
|
approveLoan: handleUnaryCall<approveLoanRequest, approveLoanResponse>;
|
|
81
81
|
updateloan: handleUnaryCall<updateLoanRequest, updateLoanResponse>;
|
|
82
82
|
updateInstallments: handleUnaryCall<updateInstallmentsRequest, updateInstallmentsResponse>;
|
|
83
|
-
|
|
83
|
+
transactionList: handleUnaryCall<transactionListRequest, transactionListResponse>;
|
|
84
84
|
}
|
|
85
85
|
export interface loansClient extends Client {
|
|
86
86
|
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
@@ -101,9 +101,9 @@ export interface loansClient extends Client {
|
|
|
101
101
|
updateInstallments(request: updateInstallmentsRequest, callback: (error: ServiceError | null, response: updateInstallmentsResponse) => void): ClientUnaryCall;
|
|
102
102
|
updateInstallments(request: updateInstallmentsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateInstallmentsResponse) => void): ClientUnaryCall;
|
|
103
103
|
updateInstallments(request: updateInstallmentsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateInstallmentsResponse) => void): ClientUnaryCall;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
transactionList(request: transactionListRequest, callback: (error: ServiceError | null, response: transactionListResponse) => void): ClientUnaryCall;
|
|
105
|
+
transactionList(request: transactionListRequest, metadata: Metadata, callback: (error: ServiceError | null, response: transactionListResponse) => void): ClientUnaryCall;
|
|
106
|
+
transactionList(request: transactionListRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: transactionListResponse) => void): ClientUnaryCall;
|
|
107
107
|
}
|
|
108
108
|
export declare const loansClient: {
|
|
109
109
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
package/ts/loans.js
CHANGED
|
@@ -12,7 +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
|
|
15
|
+
const transactionlist_1 = require("./loans/transactionlist");
|
|
16
16
|
const updateinstallments_1 = require("./loans/updateinstallments");
|
|
17
17
|
const updateloan_1 = require("./loans/updateloan");
|
|
18
18
|
exports.protobufPackage = "service";
|
|
@@ -71,14 +71,14 @@ exports.loansService = {
|
|
|
71
71
|
responseSerialize: (value) => Buffer.from(updateinstallments_1.updateInstallmentsResponse.encode(value).finish()),
|
|
72
72
|
responseDeserialize: (value) => updateinstallments_1.updateInstallmentsResponse.decode(value),
|
|
73
73
|
},
|
|
74
|
-
|
|
75
|
-
path: "/service.loans/
|
|
74
|
+
transactionList: {
|
|
75
|
+
path: "/service.loans/transactionList",
|
|
76
76
|
requestStream: false,
|
|
77
77
|
responseStream: false,
|
|
78
|
-
requestSerialize: (value) => Buffer.from(
|
|
79
|
-
requestDeserialize: (value) =>
|
|
80
|
-
responseSerialize: (value) => Buffer.from(
|
|
81
|
-
responseDeserialize: (value) =>
|
|
78
|
+
requestSerialize: (value) => Buffer.from(transactionlist_1.transactionListRequest.encode(value).finish()),
|
|
79
|
+
requestDeserialize: (value) => transactionlist_1.transactionListRequest.decode(value),
|
|
80
|
+
responseSerialize: (value) => Buffer.from(transactionlist_1.transactionListResponse.encode(value).finish()),
|
|
81
|
+
responseDeserialize: (value) => transactionlist_1.transactionListResponse.decode(value),
|
|
82
82
|
},
|
|
83
83
|
};
|
|
84
84
|
exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");
|