@stashfin/grpc 1.2.737 → 1.2.738
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/getreport.d.ts +2 -1
- package/ts/bureau/getreport.js +19 -5
package/package.json
CHANGED
package/ts/bureau/getreport.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "bureau.getreport";
|
|
3
3
|
export interface bureauRequest {
|
|
4
|
-
customer_id
|
|
4
|
+
customer_id?: number | undefined;
|
|
5
5
|
range: number;
|
|
6
6
|
bureau_type: number;
|
|
7
7
|
source: string;
|
|
8
8
|
pull_type: number;
|
|
9
|
+
short_pull?: boolean | undefined;
|
|
9
10
|
}
|
|
10
11
|
export interface bureauResponse {
|
|
11
12
|
status: string;
|
package/ts/bureau/getreport.js
CHANGED
|
@@ -14,11 +14,11 @@ const long_1 = __importDefault(require("long"));
|
|
|
14
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
15
|
exports.protobufPackage = "bureau.getreport";
|
|
16
16
|
function createBasebureauRequest() {
|
|
17
|
-
return { customer_id:
|
|
17
|
+
return { customer_id: undefined, range: 0, bureau_type: 0, source: "", pull_type: 0, short_pull: undefined };
|
|
18
18
|
}
|
|
19
19
|
exports.bureauRequest = {
|
|
20
20
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
-
if (message.customer_id !==
|
|
21
|
+
if (message.customer_id !== undefined) {
|
|
22
22
|
writer.uint32(8).int64(message.customer_id);
|
|
23
23
|
}
|
|
24
24
|
if (message.range !== 0) {
|
|
@@ -33,6 +33,9 @@ exports.bureauRequest = {
|
|
|
33
33
|
if (message.pull_type !== 0) {
|
|
34
34
|
writer.uint32(40).int32(message.pull_type);
|
|
35
35
|
}
|
|
36
|
+
if (message.short_pull !== undefined) {
|
|
37
|
+
writer.uint32(48).bool(message.short_pull);
|
|
38
|
+
}
|
|
36
39
|
return writer;
|
|
37
40
|
},
|
|
38
41
|
decode(input, length) {
|
|
@@ -72,6 +75,12 @@ exports.bureauRequest = {
|
|
|
72
75
|
}
|
|
73
76
|
message.pull_type = reader.int32();
|
|
74
77
|
continue;
|
|
78
|
+
case 6:
|
|
79
|
+
if (tag !== 48) {
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
message.short_pull = reader.bool();
|
|
83
|
+
continue;
|
|
75
84
|
}
|
|
76
85
|
if ((tag & 7) === 4 || tag === 0) {
|
|
77
86
|
break;
|
|
@@ -82,16 +91,17 @@ exports.bureauRequest = {
|
|
|
82
91
|
},
|
|
83
92
|
fromJSON(object) {
|
|
84
93
|
return {
|
|
85
|
-
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) :
|
|
94
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : undefined,
|
|
86
95
|
range: isSet(object.range) ? globalThis.Number(object.range) : 0,
|
|
87
96
|
bureau_type: isSet(object.bureau_type) ? globalThis.Number(object.bureau_type) : 0,
|
|
88
97
|
source: isSet(object.source) ? globalThis.String(object.source) : "",
|
|
89
98
|
pull_type: isSet(object.pull_type) ? globalThis.Number(object.pull_type) : 0,
|
|
99
|
+
short_pull: isSet(object.short_pull) ? globalThis.Boolean(object.short_pull) : undefined,
|
|
90
100
|
};
|
|
91
101
|
},
|
|
92
102
|
toJSON(message) {
|
|
93
103
|
const obj = {};
|
|
94
|
-
if (message.customer_id !==
|
|
104
|
+
if (message.customer_id !== undefined) {
|
|
95
105
|
obj.customer_id = Math.round(message.customer_id);
|
|
96
106
|
}
|
|
97
107
|
if (message.range !== 0) {
|
|
@@ -106,6 +116,9 @@ exports.bureauRequest = {
|
|
|
106
116
|
if (message.pull_type !== 0) {
|
|
107
117
|
obj.pull_type = Math.round(message.pull_type);
|
|
108
118
|
}
|
|
119
|
+
if (message.short_pull !== undefined) {
|
|
120
|
+
obj.short_pull = message.short_pull;
|
|
121
|
+
}
|
|
109
122
|
return obj;
|
|
110
123
|
},
|
|
111
124
|
create(base) {
|
|
@@ -113,11 +126,12 @@ exports.bureauRequest = {
|
|
|
113
126
|
},
|
|
114
127
|
fromPartial(object) {
|
|
115
128
|
const message = createBasebureauRequest();
|
|
116
|
-
message.customer_id = object.customer_id ??
|
|
129
|
+
message.customer_id = object.customer_id ?? undefined;
|
|
117
130
|
message.range = object.range ?? 0;
|
|
118
131
|
message.bureau_type = object.bureau_type ?? 0;
|
|
119
132
|
message.source = object.source ?? "";
|
|
120
133
|
message.pull_type = object.pull_type ?? 0;
|
|
134
|
+
message.short_pull = object.short_pull ?? undefined;
|
|
121
135
|
return message;
|
|
122
136
|
},
|
|
123
137
|
};
|