@stashfin/grpc 1.2.188 → 1.2.190
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
|
@@ -3,9 +3,7 @@ export declare const protobufPackage = "bureau.getbasicdetails";
|
|
|
3
3
|
export interface detailsRequest {
|
|
4
4
|
customer_id: number;
|
|
5
5
|
range: number;
|
|
6
|
-
bureau_type: number;
|
|
7
6
|
source: string;
|
|
8
|
-
pull_type: number;
|
|
9
7
|
}
|
|
10
8
|
export interface detailsResponse {
|
|
11
9
|
status: string;
|
|
@@ -16,9 +14,10 @@ export interface Report {
|
|
|
16
14
|
name: string;
|
|
17
15
|
occupation: string;
|
|
18
16
|
dob: string;
|
|
19
|
-
income:
|
|
17
|
+
income: number;
|
|
20
18
|
pull_date: string;
|
|
21
19
|
bureau_type: string;
|
|
20
|
+
gender: string;
|
|
22
21
|
}
|
|
23
22
|
export declare const detailsRequest: {
|
|
24
23
|
encode(message: detailsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -14,7 +14,7 @@ const long_1 = __importDefault(require("long"));
|
|
|
14
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
15
|
exports.protobufPackage = "bureau.getbasicdetails";
|
|
16
16
|
function createBasedetailsRequest() {
|
|
17
|
-
return { customer_id: 0, range: 0,
|
|
17
|
+
return { customer_id: 0, range: 0, source: "" };
|
|
18
18
|
}
|
|
19
19
|
exports.detailsRequest = {
|
|
20
20
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -24,14 +24,8 @@ exports.detailsRequest = {
|
|
|
24
24
|
if (message.range !== 0) {
|
|
25
25
|
writer.uint32(16).int32(message.range);
|
|
26
26
|
}
|
|
27
|
-
if (message.bureau_type !== 0) {
|
|
28
|
-
writer.uint32(24).int32(message.bureau_type);
|
|
29
|
-
}
|
|
30
27
|
if (message.source !== "") {
|
|
31
|
-
writer.uint32(
|
|
32
|
-
}
|
|
33
|
-
if (message.pull_type !== 0) {
|
|
34
|
-
writer.uint32(40).int32(message.pull_type);
|
|
28
|
+
writer.uint32(26).string(message.source);
|
|
35
29
|
}
|
|
36
30
|
return writer;
|
|
37
31
|
},
|
|
@@ -55,23 +49,11 @@ exports.detailsRequest = {
|
|
|
55
49
|
message.range = reader.int32();
|
|
56
50
|
continue;
|
|
57
51
|
case 3:
|
|
58
|
-
if (tag !==
|
|
59
|
-
break;
|
|
60
|
-
}
|
|
61
|
-
message.bureau_type = reader.int32();
|
|
62
|
-
continue;
|
|
63
|
-
case 4:
|
|
64
|
-
if (tag !== 34) {
|
|
52
|
+
if (tag !== 26) {
|
|
65
53
|
break;
|
|
66
54
|
}
|
|
67
55
|
message.source = reader.string();
|
|
68
56
|
continue;
|
|
69
|
-
case 5:
|
|
70
|
-
if (tag !== 40) {
|
|
71
|
-
break;
|
|
72
|
-
}
|
|
73
|
-
message.pull_type = reader.int32();
|
|
74
|
-
continue;
|
|
75
57
|
}
|
|
76
58
|
if ((tag & 7) === 4 || tag === 0) {
|
|
77
59
|
break;
|
|
@@ -84,9 +66,7 @@ exports.detailsRequest = {
|
|
|
84
66
|
return {
|
|
85
67
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
86
68
|
range: isSet(object.range) ? globalThis.Number(object.range) : 0,
|
|
87
|
-
bureau_type: isSet(object.bureau_type) ? globalThis.Number(object.bureau_type) : 0,
|
|
88
69
|
source: isSet(object.source) ? globalThis.String(object.source) : "",
|
|
89
|
-
pull_type: isSet(object.pull_type) ? globalThis.Number(object.pull_type) : 0,
|
|
90
70
|
};
|
|
91
71
|
},
|
|
92
72
|
toJSON(message) {
|
|
@@ -97,15 +77,9 @@ exports.detailsRequest = {
|
|
|
97
77
|
if (message.range !== 0) {
|
|
98
78
|
obj.range = Math.round(message.range);
|
|
99
79
|
}
|
|
100
|
-
if (message.bureau_type !== 0) {
|
|
101
|
-
obj.bureau_type = Math.round(message.bureau_type);
|
|
102
|
-
}
|
|
103
80
|
if (message.source !== "") {
|
|
104
81
|
obj.source = message.source;
|
|
105
82
|
}
|
|
106
|
-
if (message.pull_type !== 0) {
|
|
107
|
-
obj.pull_type = Math.round(message.pull_type);
|
|
108
|
-
}
|
|
109
83
|
return obj;
|
|
110
84
|
},
|
|
111
85
|
create(base) {
|
|
@@ -115,9 +89,7 @@ exports.detailsRequest = {
|
|
|
115
89
|
const message = createBasedetailsRequest();
|
|
116
90
|
message.customer_id = object.customer_id ?? 0;
|
|
117
91
|
message.range = object.range ?? 0;
|
|
118
|
-
message.bureau_type = object.bureau_type ?? 0;
|
|
119
92
|
message.source = object.source ?? "";
|
|
120
|
-
message.pull_type = object.pull_type ?? 0;
|
|
121
93
|
return message;
|
|
122
94
|
},
|
|
123
95
|
};
|
|
@@ -188,7 +160,7 @@ exports.detailsResponse = {
|
|
|
188
160
|
},
|
|
189
161
|
};
|
|
190
162
|
function createBaseReport() {
|
|
191
|
-
return { score: 0, name: "", occupation: "", dob: "", income:
|
|
163
|
+
return { score: 0, name: "", occupation: "", dob: "", income: 0, pull_date: "", bureau_type: "", gender: "" };
|
|
192
164
|
}
|
|
193
165
|
exports.Report = {
|
|
194
166
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -204,8 +176,8 @@ exports.Report = {
|
|
|
204
176
|
if (message.dob !== "") {
|
|
205
177
|
writer.uint32(34).string(message.dob);
|
|
206
178
|
}
|
|
207
|
-
if (message.income !==
|
|
208
|
-
writer.uint32(
|
|
179
|
+
if (message.income !== 0) {
|
|
180
|
+
writer.uint32(40).int32(message.income);
|
|
209
181
|
}
|
|
210
182
|
if (message.pull_date !== "") {
|
|
211
183
|
writer.uint32(50).string(message.pull_date);
|
|
@@ -213,6 +185,9 @@ exports.Report = {
|
|
|
213
185
|
if (message.bureau_type !== "") {
|
|
214
186
|
writer.uint32(58).string(message.bureau_type);
|
|
215
187
|
}
|
|
188
|
+
if (message.gender !== "") {
|
|
189
|
+
writer.uint32(66).string(message.gender);
|
|
190
|
+
}
|
|
216
191
|
return writer;
|
|
217
192
|
},
|
|
218
193
|
decode(input, length) {
|
|
@@ -247,10 +222,10 @@ exports.Report = {
|
|
|
247
222
|
message.dob = reader.string();
|
|
248
223
|
continue;
|
|
249
224
|
case 5:
|
|
250
|
-
if (tag !==
|
|
225
|
+
if (tag !== 40) {
|
|
251
226
|
break;
|
|
252
227
|
}
|
|
253
|
-
message.income = reader.
|
|
228
|
+
message.income = reader.int32();
|
|
254
229
|
continue;
|
|
255
230
|
case 6:
|
|
256
231
|
if (tag !== 50) {
|
|
@@ -264,6 +239,12 @@ exports.Report = {
|
|
|
264
239
|
}
|
|
265
240
|
message.bureau_type = reader.string();
|
|
266
241
|
continue;
|
|
242
|
+
case 8:
|
|
243
|
+
if (tag !== 66) {
|
|
244
|
+
break;
|
|
245
|
+
}
|
|
246
|
+
message.gender = reader.string();
|
|
247
|
+
continue;
|
|
267
248
|
}
|
|
268
249
|
if ((tag & 7) === 4 || tag === 0) {
|
|
269
250
|
break;
|
|
@@ -278,9 +259,10 @@ exports.Report = {
|
|
|
278
259
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
279
260
|
occupation: isSet(object.occupation) ? globalThis.String(object.occupation) : "",
|
|
280
261
|
dob: isSet(object.dob) ? globalThis.String(object.dob) : "",
|
|
281
|
-
income: isSet(object.income) ? globalThis.
|
|
262
|
+
income: isSet(object.income) ? globalThis.Number(object.income) : 0,
|
|
282
263
|
pull_date: isSet(object.pull_date) ? globalThis.String(object.pull_date) : "",
|
|
283
264
|
bureau_type: isSet(object.bureau_type) ? globalThis.String(object.bureau_type) : "",
|
|
265
|
+
gender: isSet(object.gender) ? globalThis.String(object.gender) : "",
|
|
284
266
|
};
|
|
285
267
|
},
|
|
286
268
|
toJSON(message) {
|
|
@@ -297,8 +279,8 @@ exports.Report = {
|
|
|
297
279
|
if (message.dob !== "") {
|
|
298
280
|
obj.dob = message.dob;
|
|
299
281
|
}
|
|
300
|
-
if (message.income !==
|
|
301
|
-
obj.income = message.income;
|
|
282
|
+
if (message.income !== 0) {
|
|
283
|
+
obj.income = Math.round(message.income);
|
|
302
284
|
}
|
|
303
285
|
if (message.pull_date !== "") {
|
|
304
286
|
obj.pull_date = message.pull_date;
|
|
@@ -306,6 +288,9 @@ exports.Report = {
|
|
|
306
288
|
if (message.bureau_type !== "") {
|
|
307
289
|
obj.bureau_type = message.bureau_type;
|
|
308
290
|
}
|
|
291
|
+
if (message.gender !== "") {
|
|
292
|
+
obj.gender = message.gender;
|
|
293
|
+
}
|
|
309
294
|
return obj;
|
|
310
295
|
},
|
|
311
296
|
create(base) {
|
|
@@ -317,9 +302,10 @@ exports.Report = {
|
|
|
317
302
|
message.name = object.name ?? "";
|
|
318
303
|
message.occupation = object.occupation ?? "";
|
|
319
304
|
message.dob = object.dob ?? "";
|
|
320
|
-
message.income = object.income ??
|
|
305
|
+
message.income = object.income ?? 0;
|
|
321
306
|
message.pull_date = object.pull_date ?? "";
|
|
322
307
|
message.bureau_type = object.bureau_type ?? "";
|
|
308
|
+
message.gender = object.gender ?? "";
|
|
323
309
|
return message;
|
|
324
310
|
},
|
|
325
311
|
};
|