@stashfin/grpc 1.2.16 → 1.2.18
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
CHANGED
|
@@ -20,6 +20,10 @@ export interface getCustomerByIdResponse {
|
|
|
20
20
|
category: string;
|
|
21
21
|
loc_limit: number;
|
|
22
22
|
status: string;
|
|
23
|
+
min_tenure: number;
|
|
24
|
+
max_tenure: number;
|
|
25
|
+
roi: number;
|
|
26
|
+
processing_rate: number;
|
|
23
27
|
}
|
|
24
28
|
export declare const getCustomerByIdRequest: {
|
|
25
29
|
encode(message: getCustomerByIdRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -80,6 +80,10 @@ function createBasegetCustomerByIdResponse() {
|
|
|
80
80
|
category: "",
|
|
81
81
|
loc_limit: 0,
|
|
82
82
|
status: "",
|
|
83
|
+
min_tenure: 0,
|
|
84
|
+
max_tenure: 0,
|
|
85
|
+
roi: 0,
|
|
86
|
+
processing_rate: 0,
|
|
83
87
|
};
|
|
84
88
|
}
|
|
85
89
|
exports.getCustomerByIdResponse = {
|
|
@@ -132,6 +136,18 @@ exports.getCustomerByIdResponse = {
|
|
|
132
136
|
if (message.status !== "") {
|
|
133
137
|
writer.uint32(130).string(message.status);
|
|
134
138
|
}
|
|
139
|
+
if (message.min_tenure !== 0) {
|
|
140
|
+
writer.uint32(136).int32(message.min_tenure);
|
|
141
|
+
}
|
|
142
|
+
if (message.max_tenure !== 0) {
|
|
143
|
+
writer.uint32(144).int32(message.max_tenure);
|
|
144
|
+
}
|
|
145
|
+
if (message.roi !== 0) {
|
|
146
|
+
writer.uint32(157).float(message.roi);
|
|
147
|
+
}
|
|
148
|
+
if (message.processing_rate !== 0) {
|
|
149
|
+
writer.uint32(165).float(message.processing_rate);
|
|
150
|
+
}
|
|
135
151
|
return writer;
|
|
136
152
|
},
|
|
137
153
|
decode(input, length) {
|
|
@@ -237,6 +253,30 @@ exports.getCustomerByIdResponse = {
|
|
|
237
253
|
}
|
|
238
254
|
message.status = reader.string();
|
|
239
255
|
continue;
|
|
256
|
+
case 17:
|
|
257
|
+
if (tag !== 136) {
|
|
258
|
+
break;
|
|
259
|
+
}
|
|
260
|
+
message.min_tenure = reader.int32();
|
|
261
|
+
continue;
|
|
262
|
+
case 18:
|
|
263
|
+
if (tag !== 144) {
|
|
264
|
+
break;
|
|
265
|
+
}
|
|
266
|
+
message.max_tenure = reader.int32();
|
|
267
|
+
continue;
|
|
268
|
+
case 19:
|
|
269
|
+
if (tag !== 157) {
|
|
270
|
+
break;
|
|
271
|
+
}
|
|
272
|
+
message.roi = reader.float();
|
|
273
|
+
continue;
|
|
274
|
+
case 20:
|
|
275
|
+
if (tag !== 165) {
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
message.processing_rate = reader.float();
|
|
279
|
+
continue;
|
|
240
280
|
}
|
|
241
281
|
if ((tag & 7) === 4 || tag === 0) {
|
|
242
282
|
break;
|
|
@@ -263,6 +303,10 @@ exports.getCustomerByIdResponse = {
|
|
|
263
303
|
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
264
304
|
loc_limit: isSet(object.loc_limit) ? globalThis.Number(object.loc_limit) : 0,
|
|
265
305
|
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
306
|
+
min_tenure: isSet(object.min_tenure) ? globalThis.Number(object.min_tenure) : 0,
|
|
307
|
+
max_tenure: isSet(object.max_tenure) ? globalThis.Number(object.max_tenure) : 0,
|
|
308
|
+
roi: isSet(object.roi) ? globalThis.Number(object.roi) : 0,
|
|
309
|
+
processing_rate: isSet(object.processing_rate) ? globalThis.Number(object.processing_rate) : 0,
|
|
266
310
|
};
|
|
267
311
|
},
|
|
268
312
|
toJSON(message) {
|
|
@@ -315,6 +359,18 @@ exports.getCustomerByIdResponse = {
|
|
|
315
359
|
if (message.status !== "") {
|
|
316
360
|
obj.status = message.status;
|
|
317
361
|
}
|
|
362
|
+
if (message.min_tenure !== 0) {
|
|
363
|
+
obj.min_tenure = Math.round(message.min_tenure);
|
|
364
|
+
}
|
|
365
|
+
if (message.max_tenure !== 0) {
|
|
366
|
+
obj.max_tenure = Math.round(message.max_tenure);
|
|
367
|
+
}
|
|
368
|
+
if (message.roi !== 0) {
|
|
369
|
+
obj.roi = message.roi;
|
|
370
|
+
}
|
|
371
|
+
if (message.processing_rate !== 0) {
|
|
372
|
+
obj.processing_rate = message.processing_rate;
|
|
373
|
+
}
|
|
318
374
|
return obj;
|
|
319
375
|
},
|
|
320
376
|
create(base) {
|
|
@@ -338,6 +394,10 @@ exports.getCustomerByIdResponse = {
|
|
|
338
394
|
message.category = object.category ?? "";
|
|
339
395
|
message.loc_limit = object.loc_limit ?? 0;
|
|
340
396
|
message.status = object.status ?? "";
|
|
397
|
+
message.min_tenure = object.min_tenure ?? 0;
|
|
398
|
+
message.max_tenure = object.max_tenure ?? 0;
|
|
399
|
+
message.roi = object.roi ?? 0;
|
|
400
|
+
message.processing_rate = object.processing_rate ?? 0;
|
|
341
401
|
return message;
|
|
342
402
|
},
|
|
343
403
|
};
|
package/ts/customers/step1.d.ts
CHANGED
package/ts/customers/step1.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.step1Response_Field = exports.step1Response = exports.Validation = expor
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customers.step1";
|
|
15
15
|
function createBasestep1Request() {
|
|
16
|
-
return { full_name: "", pan_number: "", dob: "", pincode:
|
|
16
|
+
return { full_name: "", pan_number: "", dob: "", pincode: "", tnc: false };
|
|
17
17
|
}
|
|
18
18
|
exports.step1Request = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -26,8 +26,8 @@ exports.step1Request = {
|
|
|
26
26
|
if (message.dob !== "") {
|
|
27
27
|
writer.uint32(26).string(message.dob);
|
|
28
28
|
}
|
|
29
|
-
if (message.pincode !==
|
|
30
|
-
writer.uint32(
|
|
29
|
+
if (message.pincode !== "") {
|
|
30
|
+
writer.uint32(34).string(message.pincode);
|
|
31
31
|
}
|
|
32
32
|
if (message.tnc !== false) {
|
|
33
33
|
writer.uint32(40).bool(message.tnc);
|
|
@@ -60,10 +60,10 @@ exports.step1Request = {
|
|
|
60
60
|
message.dob = reader.string();
|
|
61
61
|
continue;
|
|
62
62
|
case 4:
|
|
63
|
-
if (tag !==
|
|
63
|
+
if (tag !== 34) {
|
|
64
64
|
break;
|
|
65
65
|
}
|
|
66
|
-
message.pincode = reader.
|
|
66
|
+
message.pincode = reader.string();
|
|
67
67
|
continue;
|
|
68
68
|
case 5:
|
|
69
69
|
if (tag !== 40) {
|
|
@@ -84,7 +84,7 @@ exports.step1Request = {
|
|
|
84
84
|
full_name: isSet(object.full_name) ? globalThis.String(object.full_name) : "",
|
|
85
85
|
pan_number: isSet(object.pan_number) ? globalThis.String(object.pan_number) : "",
|
|
86
86
|
dob: isSet(object.dob) ? globalThis.String(object.dob) : "",
|
|
87
|
-
pincode: isSet(object.pincode) ? globalThis.
|
|
87
|
+
pincode: isSet(object.pincode) ? globalThis.String(object.pincode) : "",
|
|
88
88
|
tnc: isSet(object.tnc) ? globalThis.Boolean(object.tnc) : false,
|
|
89
89
|
};
|
|
90
90
|
},
|
|
@@ -99,8 +99,8 @@ exports.step1Request = {
|
|
|
99
99
|
if (message.dob !== "") {
|
|
100
100
|
obj.dob = message.dob;
|
|
101
101
|
}
|
|
102
|
-
if (message.pincode !==
|
|
103
|
-
obj.pincode =
|
|
102
|
+
if (message.pincode !== "") {
|
|
103
|
+
obj.pincode = message.pincode;
|
|
104
104
|
}
|
|
105
105
|
if (message.tnc !== false) {
|
|
106
106
|
obj.tnc = message.tnc;
|
|
@@ -115,7 +115,7 @@ exports.step1Request = {
|
|
|
115
115
|
message.full_name = object.full_name ?? "";
|
|
116
116
|
message.pan_number = object.pan_number ?? "";
|
|
117
117
|
message.dob = object.dob ?? "";
|
|
118
|
-
message.pincode = object.pincode ??
|
|
118
|
+
message.pincode = object.pincode ?? "";
|
|
119
119
|
message.tnc = object.tnc ?? false;
|
|
120
120
|
return message;
|
|
121
121
|
},
|
package/ts/customers/step2.d.ts
CHANGED
package/ts/customers/step2.js
CHANGED
|
@@ -159,7 +159,7 @@ exports.Validation = {
|
|
|
159
159
|
},
|
|
160
160
|
};
|
|
161
161
|
function createBasestep2Response() {
|
|
162
|
-
return { page: "", type: "", button_text: "", data: [] };
|
|
162
|
+
return { page: "", type: "", button_text: "", data: [], kyc_web_url: "" };
|
|
163
163
|
}
|
|
164
164
|
exports.step2Response = {
|
|
165
165
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -175,6 +175,9 @@ exports.step2Response = {
|
|
|
175
175
|
for (const v of message.data) {
|
|
176
176
|
exports.step2Response_Field.encode(v, writer.uint32(34).fork()).ldelim();
|
|
177
177
|
}
|
|
178
|
+
if (message.kyc_web_url !== "") {
|
|
179
|
+
writer.uint32(42).string(message.kyc_web_url);
|
|
180
|
+
}
|
|
178
181
|
return writer;
|
|
179
182
|
},
|
|
180
183
|
decode(input, length) {
|
|
@@ -208,6 +211,12 @@ exports.step2Response = {
|
|
|
208
211
|
}
|
|
209
212
|
message.data.push(exports.step2Response_Field.decode(reader, reader.uint32()));
|
|
210
213
|
continue;
|
|
214
|
+
case 5:
|
|
215
|
+
if (tag !== 42) {
|
|
216
|
+
break;
|
|
217
|
+
}
|
|
218
|
+
message.kyc_web_url = reader.string();
|
|
219
|
+
continue;
|
|
211
220
|
}
|
|
212
221
|
if ((tag & 7) === 4 || tag === 0) {
|
|
213
222
|
break;
|
|
@@ -222,6 +231,7 @@ exports.step2Response = {
|
|
|
222
231
|
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
223
232
|
button_text: isSet(object.button_text) ? globalThis.String(object.button_text) : "",
|
|
224
233
|
data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => exports.step2Response_Field.fromJSON(e)) : [],
|
|
234
|
+
kyc_web_url: isSet(object.kyc_web_url) ? globalThis.String(object.kyc_web_url) : "",
|
|
225
235
|
};
|
|
226
236
|
},
|
|
227
237
|
toJSON(message) {
|
|
@@ -238,6 +248,9 @@ exports.step2Response = {
|
|
|
238
248
|
if (message.data?.length) {
|
|
239
249
|
obj.data = message.data.map((e) => exports.step2Response_Field.toJSON(e));
|
|
240
250
|
}
|
|
251
|
+
if (message.kyc_web_url !== "") {
|
|
252
|
+
obj.kyc_web_url = message.kyc_web_url;
|
|
253
|
+
}
|
|
241
254
|
return obj;
|
|
242
255
|
},
|
|
243
256
|
create(base) {
|
|
@@ -249,6 +262,7 @@ exports.step2Response = {
|
|
|
249
262
|
message.type = object.type ?? "";
|
|
250
263
|
message.button_text = object.button_text ?? "";
|
|
251
264
|
message.data = object.data?.map((e) => exports.step2Response_Field.fromPartial(e)) || [];
|
|
265
|
+
message.kyc_web_url = object.kyc_web_url ?? "";
|
|
252
266
|
return message;
|
|
253
267
|
},
|
|
254
268
|
};
|