@stashfin/grpc 1.2.232 → 1.2.234
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/sendemailtoken.d.ts +35 -0
- package/ts/customers/sendemailtoken.js +117 -0
- package/ts/customers/skipdlrcscreen.d.ts +35 -0
- package/ts/customers/skipdlrcscreen.js +117 -0
- package/ts/customers/step1.d.ts +69 -0
- package/ts/customers/step1.js +395 -0
- package/ts/customers/step10.d.ts +73 -0
- package/ts/customers/step10.js +459 -0
- package/ts/customers/step2.d.ts +68 -0
- package/ts/customers/step2.js +381 -0
- package/ts/customers/step7.d.ts +68 -0
- package/ts/customers/step7.js +381 -0
- package/ts/customers/step8.d.ts +69 -0
- package/ts/customers/step8.js +395 -0
- package/ts/customers/step9.d.ts +75 -0
- package/ts/customers/step9.js +489 -0
- package/ts/customers/stepstatic.d.ts +66 -0
- package/ts/customers/stepstatic.js +354 -0
- package/ts/customers/verifyemail.d.ts +35 -0
- package/ts/customers/verifyemail.js +117 -0
- package/ts/google/protobuf/timestamp.d.ts +127 -0
- package/ts/google/protobuf/timestamp.js +97 -0
- package/ts/loans/getbilldetails.d.ts +2 -0
- package/ts/loans/getbilldetails.js +38 -1
- package/ts/bureau/getbureaulist.d.ts +0 -52
- package/ts/bureau/getbureaulist.js +0 -276
|
@@ -0,0 +1,97 @@
|
|
|
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: google/protobuf/timestamp.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.Timestamp = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const long_1 = __importDefault(require("long"));
|
|
14
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
|
+
exports.protobufPackage = "google.protobuf";
|
|
16
|
+
function createBaseTimestamp() {
|
|
17
|
+
return { seconds: 0, nanos: 0 };
|
|
18
|
+
}
|
|
19
|
+
exports.Timestamp = {
|
|
20
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
+
if (message.seconds !== 0) {
|
|
22
|
+
writer.uint32(8).int64(message.seconds);
|
|
23
|
+
}
|
|
24
|
+
if (message.nanos !== 0) {
|
|
25
|
+
writer.uint32(16).int32(message.nanos);
|
|
26
|
+
}
|
|
27
|
+
return writer;
|
|
28
|
+
},
|
|
29
|
+
decode(input, length) {
|
|
30
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
31
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
32
|
+
const message = createBaseTimestamp();
|
|
33
|
+
while (reader.pos < end) {
|
|
34
|
+
const tag = reader.uint32();
|
|
35
|
+
switch (tag >>> 3) {
|
|
36
|
+
case 1:
|
|
37
|
+
if (tag !== 8) {
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
message.seconds = longToNumber(reader.int64());
|
|
41
|
+
continue;
|
|
42
|
+
case 2:
|
|
43
|
+
if (tag !== 16) {
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
message.nanos = reader.int32();
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
reader.skipType(tag & 7);
|
|
53
|
+
}
|
|
54
|
+
return message;
|
|
55
|
+
},
|
|
56
|
+
fromJSON(object) {
|
|
57
|
+
return {
|
|
58
|
+
seconds: isSet(object.seconds) ? globalThis.Number(object.seconds) : 0,
|
|
59
|
+
nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0,
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
toJSON(message) {
|
|
63
|
+
const obj = {};
|
|
64
|
+
if (message.seconds !== 0) {
|
|
65
|
+
obj.seconds = Math.round(message.seconds);
|
|
66
|
+
}
|
|
67
|
+
if (message.nanos !== 0) {
|
|
68
|
+
obj.nanos = Math.round(message.nanos);
|
|
69
|
+
}
|
|
70
|
+
return obj;
|
|
71
|
+
},
|
|
72
|
+
create(base) {
|
|
73
|
+
return exports.Timestamp.fromPartial(base ?? {});
|
|
74
|
+
},
|
|
75
|
+
fromPartial(object) {
|
|
76
|
+
const message = createBaseTimestamp();
|
|
77
|
+
message.seconds = object.seconds ?? 0;
|
|
78
|
+
message.nanos = object.nanos ?? 0;
|
|
79
|
+
return message;
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
function longToNumber(long) {
|
|
83
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
84
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
85
|
+
}
|
|
86
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
87
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
88
|
+
}
|
|
89
|
+
return long.toNumber();
|
|
90
|
+
}
|
|
91
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
92
|
+
minimal_1.default.util.Long = long_1.default;
|
|
93
|
+
minimal_1.default.configure();
|
|
94
|
+
}
|
|
95
|
+
function isSet(value) {
|
|
96
|
+
return value !== null && value !== undefined;
|
|
97
|
+
}
|
|
@@ -12,6 +12,8 @@ export interface getBillDetailsResponse_Field {
|
|
|
12
12
|
interest: number;
|
|
13
13
|
inst_id: number;
|
|
14
14
|
penalty: number;
|
|
15
|
+
is_visible: boolean;
|
|
16
|
+
loan_id: number;
|
|
15
17
|
}
|
|
16
18
|
export declare const getBillDetailsRequest: {
|
|
17
19
|
encode(_: getBillDetailsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -104,7 +104,16 @@ exports.getBillDetailsResponse = {
|
|
|
104
104
|
},
|
|
105
105
|
};
|
|
106
106
|
function createBasegetBillDetailsResponse_Field() {
|
|
107
|
-
return {
|
|
107
|
+
return {
|
|
108
|
+
bill_amount: 0,
|
|
109
|
+
bill_date: "",
|
|
110
|
+
principal: 0,
|
|
111
|
+
interest: 0,
|
|
112
|
+
inst_id: 0,
|
|
113
|
+
penalty: 0,
|
|
114
|
+
is_visible: false,
|
|
115
|
+
loan_id: 0,
|
|
116
|
+
};
|
|
108
117
|
}
|
|
109
118
|
exports.getBillDetailsResponse_Field = {
|
|
110
119
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -126,6 +135,12 @@ exports.getBillDetailsResponse_Field = {
|
|
|
126
135
|
if (message.penalty !== 0) {
|
|
127
136
|
writer.uint32(48).int32(message.penalty);
|
|
128
137
|
}
|
|
138
|
+
if (message.is_visible !== false) {
|
|
139
|
+
writer.uint32(56).bool(message.is_visible);
|
|
140
|
+
}
|
|
141
|
+
if (message.loan_id !== 0) {
|
|
142
|
+
writer.uint32(64).int32(message.loan_id);
|
|
143
|
+
}
|
|
129
144
|
return writer;
|
|
130
145
|
},
|
|
131
146
|
decode(input, length) {
|
|
@@ -171,6 +186,18 @@ exports.getBillDetailsResponse_Field = {
|
|
|
171
186
|
}
|
|
172
187
|
message.penalty = reader.int32();
|
|
173
188
|
continue;
|
|
189
|
+
case 7:
|
|
190
|
+
if (tag !== 56) {
|
|
191
|
+
break;
|
|
192
|
+
}
|
|
193
|
+
message.is_visible = reader.bool();
|
|
194
|
+
continue;
|
|
195
|
+
case 8:
|
|
196
|
+
if (tag !== 64) {
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
message.loan_id = reader.int32();
|
|
200
|
+
continue;
|
|
174
201
|
}
|
|
175
202
|
if ((tag & 7) === 4 || tag === 0) {
|
|
176
203
|
break;
|
|
@@ -187,6 +214,8 @@ exports.getBillDetailsResponse_Field = {
|
|
|
187
214
|
interest: isSet(object.interest) ? globalThis.Number(object.interest) : 0,
|
|
188
215
|
inst_id: isSet(object.inst_id) ? globalThis.Number(object.inst_id) : 0,
|
|
189
216
|
penalty: isSet(object.penalty) ? globalThis.Number(object.penalty) : 0,
|
|
217
|
+
is_visible: isSet(object.is_visible) ? globalThis.Boolean(object.is_visible) : false,
|
|
218
|
+
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
190
219
|
};
|
|
191
220
|
},
|
|
192
221
|
toJSON(message) {
|
|
@@ -209,6 +238,12 @@ exports.getBillDetailsResponse_Field = {
|
|
|
209
238
|
if (message.penalty !== 0) {
|
|
210
239
|
obj.penalty = Math.round(message.penalty);
|
|
211
240
|
}
|
|
241
|
+
if (message.is_visible !== false) {
|
|
242
|
+
obj.is_visible = message.is_visible;
|
|
243
|
+
}
|
|
244
|
+
if (message.loan_id !== 0) {
|
|
245
|
+
obj.loan_id = Math.round(message.loan_id);
|
|
246
|
+
}
|
|
212
247
|
return obj;
|
|
213
248
|
},
|
|
214
249
|
create(base) {
|
|
@@ -222,6 +257,8 @@ exports.getBillDetailsResponse_Field = {
|
|
|
222
257
|
message.interest = object.interest ?? 0;
|
|
223
258
|
message.inst_id = object.inst_id ?? 0;
|
|
224
259
|
message.penalty = object.penalty ?? 0;
|
|
260
|
+
message.is_visible = object.is_visible ?? false;
|
|
261
|
+
message.loan_id = object.loan_id ?? 0;
|
|
225
262
|
return message;
|
|
226
263
|
},
|
|
227
264
|
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "bureau.getbureaulist";
|
|
3
|
-
export interface bureauListRequest {
|
|
4
|
-
customer_id: number;
|
|
5
|
-
}
|
|
6
|
-
export interface bureauListResponse {
|
|
7
|
-
status: string;
|
|
8
|
-
data: Report[];
|
|
9
|
-
}
|
|
10
|
-
export interface Report {
|
|
11
|
-
id?: number | undefined;
|
|
12
|
-
score?: number | undefined;
|
|
13
|
-
created_at?: string | undefined;
|
|
14
|
-
bureau_id?: number | undefined;
|
|
15
|
-
report_path?: string | undefined;
|
|
16
|
-
product_code?: string | undefined;
|
|
17
|
-
}
|
|
18
|
-
export declare const bureauListRequest: {
|
|
19
|
-
encode(message: bureauListRequest, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): bureauListRequest;
|
|
21
|
-
fromJSON(object: any): bureauListRequest;
|
|
22
|
-
toJSON(message: bureauListRequest): unknown;
|
|
23
|
-
create<I extends Exact<DeepPartial<bureauListRequest>, I>>(base?: I): bureauListRequest;
|
|
24
|
-
fromPartial<I extends Exact<DeepPartial<bureauListRequest>, I>>(object: I): bureauListRequest;
|
|
25
|
-
};
|
|
26
|
-
export declare const bureauListResponse: {
|
|
27
|
-
encode(message: bureauListResponse, writer?: _m0.Writer): _m0.Writer;
|
|
28
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): bureauListResponse;
|
|
29
|
-
fromJSON(object: any): bureauListResponse;
|
|
30
|
-
toJSON(message: bureauListResponse): unknown;
|
|
31
|
-
create<I extends Exact<DeepPartial<bureauListResponse>, I>>(base?: I): bureauListResponse;
|
|
32
|
-
fromPartial<I extends Exact<DeepPartial<bureauListResponse>, I>>(object: I): bureauListResponse;
|
|
33
|
-
};
|
|
34
|
-
export declare const Report: {
|
|
35
|
-
encode(message: Report, writer?: _m0.Writer): _m0.Writer;
|
|
36
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Report;
|
|
37
|
-
fromJSON(object: any): Report;
|
|
38
|
-
toJSON(message: Report): unknown;
|
|
39
|
-
create<I extends Exact<DeepPartial<Report>, I>>(base?: I): Report;
|
|
40
|
-
fromPartial<I extends Exact<DeepPartial<Report>, I>>(object: I): Report;
|
|
41
|
-
};
|
|
42
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
43
|
-
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 {} ? {
|
|
44
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
45
|
-
} : Partial<T>;
|
|
46
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
47
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
48
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
49
|
-
} & {
|
|
50
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
51
|
-
};
|
|
52
|
-
export {};
|
|
@@ -1,276 +0,0 @@
|
|
|
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.28.1
|
|
6
|
-
// source: bureau/getbureaulist.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.Report = exports.bureauListResponse = exports.bureauListRequest = exports.protobufPackage = void 0;
|
|
12
|
-
/* eslint-disable */
|
|
13
|
-
const long_1 = __importDefault(require("long"));
|
|
14
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
|
-
exports.protobufPackage = "bureau.getbureaulist";
|
|
16
|
-
function createBasebureauListRequest() {
|
|
17
|
-
return { customer_id: 0 };
|
|
18
|
-
}
|
|
19
|
-
exports.bureauListRequest = {
|
|
20
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
-
if (message.customer_id !== 0) {
|
|
22
|
-
writer.uint32(8).int64(message.customer_id);
|
|
23
|
-
}
|
|
24
|
-
return writer;
|
|
25
|
-
},
|
|
26
|
-
decode(input, length) {
|
|
27
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
28
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
29
|
-
const message = createBasebureauListRequest();
|
|
30
|
-
while (reader.pos < end) {
|
|
31
|
-
const tag = reader.uint32();
|
|
32
|
-
switch (tag >>> 3) {
|
|
33
|
-
case 1:
|
|
34
|
-
if (tag !== 8) {
|
|
35
|
-
break;
|
|
36
|
-
}
|
|
37
|
-
message.customer_id = longToNumber(reader.int64());
|
|
38
|
-
continue;
|
|
39
|
-
}
|
|
40
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
reader.skipType(tag & 7);
|
|
44
|
-
}
|
|
45
|
-
return message;
|
|
46
|
-
},
|
|
47
|
-
fromJSON(object) {
|
|
48
|
-
return { customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0 };
|
|
49
|
-
},
|
|
50
|
-
toJSON(message) {
|
|
51
|
-
const obj = {};
|
|
52
|
-
if (message.customer_id !== 0) {
|
|
53
|
-
obj.customer_id = Math.round(message.customer_id);
|
|
54
|
-
}
|
|
55
|
-
return obj;
|
|
56
|
-
},
|
|
57
|
-
create(base) {
|
|
58
|
-
return exports.bureauListRequest.fromPartial(base ?? {});
|
|
59
|
-
},
|
|
60
|
-
fromPartial(object) {
|
|
61
|
-
const message = createBasebureauListRequest();
|
|
62
|
-
message.customer_id = object.customer_id ?? 0;
|
|
63
|
-
return message;
|
|
64
|
-
},
|
|
65
|
-
};
|
|
66
|
-
function createBasebureauListResponse() {
|
|
67
|
-
return { status: "", data: [] };
|
|
68
|
-
}
|
|
69
|
-
exports.bureauListResponse = {
|
|
70
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
71
|
-
if (message.status !== "") {
|
|
72
|
-
writer.uint32(10).string(message.status);
|
|
73
|
-
}
|
|
74
|
-
for (const v of message.data) {
|
|
75
|
-
exports.Report.encode(v, writer.uint32(18).fork()).ldelim();
|
|
76
|
-
}
|
|
77
|
-
return writer;
|
|
78
|
-
},
|
|
79
|
-
decode(input, length) {
|
|
80
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
81
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
82
|
-
const message = createBasebureauListResponse();
|
|
83
|
-
while (reader.pos < end) {
|
|
84
|
-
const tag = reader.uint32();
|
|
85
|
-
switch (tag >>> 3) {
|
|
86
|
-
case 1:
|
|
87
|
-
if (tag !== 10) {
|
|
88
|
-
break;
|
|
89
|
-
}
|
|
90
|
-
message.status = reader.string();
|
|
91
|
-
continue;
|
|
92
|
-
case 2:
|
|
93
|
-
if (tag !== 18) {
|
|
94
|
-
break;
|
|
95
|
-
}
|
|
96
|
-
message.data.push(exports.Report.decode(reader, reader.uint32()));
|
|
97
|
-
continue;
|
|
98
|
-
}
|
|
99
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
100
|
-
break;
|
|
101
|
-
}
|
|
102
|
-
reader.skipType(tag & 7);
|
|
103
|
-
}
|
|
104
|
-
return message;
|
|
105
|
-
},
|
|
106
|
-
fromJSON(object) {
|
|
107
|
-
return {
|
|
108
|
-
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
109
|
-
data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => exports.Report.fromJSON(e)) : [],
|
|
110
|
-
};
|
|
111
|
-
},
|
|
112
|
-
toJSON(message) {
|
|
113
|
-
const obj = {};
|
|
114
|
-
if (message.status !== "") {
|
|
115
|
-
obj.status = message.status;
|
|
116
|
-
}
|
|
117
|
-
if (message.data?.length) {
|
|
118
|
-
obj.data = message.data.map((e) => exports.Report.toJSON(e));
|
|
119
|
-
}
|
|
120
|
-
return obj;
|
|
121
|
-
},
|
|
122
|
-
create(base) {
|
|
123
|
-
return exports.bureauListResponse.fromPartial(base ?? {});
|
|
124
|
-
},
|
|
125
|
-
fromPartial(object) {
|
|
126
|
-
const message = createBasebureauListResponse();
|
|
127
|
-
message.status = object.status ?? "";
|
|
128
|
-
message.data = object.data?.map((e) => exports.Report.fromPartial(e)) || [];
|
|
129
|
-
return message;
|
|
130
|
-
},
|
|
131
|
-
};
|
|
132
|
-
function createBaseReport() {
|
|
133
|
-
return {
|
|
134
|
-
id: undefined,
|
|
135
|
-
score: undefined,
|
|
136
|
-
created_at: undefined,
|
|
137
|
-
bureau_id: undefined,
|
|
138
|
-
report_path: undefined,
|
|
139
|
-
product_code: undefined,
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
exports.Report = {
|
|
143
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
144
|
-
if (message.id !== undefined) {
|
|
145
|
-
writer.uint32(8).int64(message.id);
|
|
146
|
-
}
|
|
147
|
-
if (message.score !== undefined) {
|
|
148
|
-
writer.uint32(16).int32(message.score);
|
|
149
|
-
}
|
|
150
|
-
if (message.created_at !== undefined) {
|
|
151
|
-
writer.uint32(34).string(message.created_at);
|
|
152
|
-
}
|
|
153
|
-
if (message.bureau_id !== undefined) {
|
|
154
|
-
writer.uint32(40).int32(message.bureau_id);
|
|
155
|
-
}
|
|
156
|
-
if (message.report_path !== undefined) {
|
|
157
|
-
writer.uint32(50).string(message.report_path);
|
|
158
|
-
}
|
|
159
|
-
if (message.product_code !== undefined) {
|
|
160
|
-
writer.uint32(58).string(message.product_code);
|
|
161
|
-
}
|
|
162
|
-
return writer;
|
|
163
|
-
},
|
|
164
|
-
decode(input, length) {
|
|
165
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
166
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
167
|
-
const message = createBaseReport();
|
|
168
|
-
while (reader.pos < end) {
|
|
169
|
-
const tag = reader.uint32();
|
|
170
|
-
switch (tag >>> 3) {
|
|
171
|
-
case 1:
|
|
172
|
-
if (tag !== 8) {
|
|
173
|
-
break;
|
|
174
|
-
}
|
|
175
|
-
message.id = longToNumber(reader.int64());
|
|
176
|
-
continue;
|
|
177
|
-
case 2:
|
|
178
|
-
if (tag !== 16) {
|
|
179
|
-
break;
|
|
180
|
-
}
|
|
181
|
-
message.score = reader.int32();
|
|
182
|
-
continue;
|
|
183
|
-
case 4:
|
|
184
|
-
if (tag !== 34) {
|
|
185
|
-
break;
|
|
186
|
-
}
|
|
187
|
-
message.created_at = reader.string();
|
|
188
|
-
continue;
|
|
189
|
-
case 5:
|
|
190
|
-
if (tag !== 40) {
|
|
191
|
-
break;
|
|
192
|
-
}
|
|
193
|
-
message.bureau_id = reader.int32();
|
|
194
|
-
continue;
|
|
195
|
-
case 6:
|
|
196
|
-
if (tag !== 50) {
|
|
197
|
-
break;
|
|
198
|
-
}
|
|
199
|
-
message.report_path = reader.string();
|
|
200
|
-
continue;
|
|
201
|
-
case 7:
|
|
202
|
-
if (tag !== 58) {
|
|
203
|
-
break;
|
|
204
|
-
}
|
|
205
|
-
message.product_code = reader.string();
|
|
206
|
-
continue;
|
|
207
|
-
}
|
|
208
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
209
|
-
break;
|
|
210
|
-
}
|
|
211
|
-
reader.skipType(tag & 7);
|
|
212
|
-
}
|
|
213
|
-
return message;
|
|
214
|
-
},
|
|
215
|
-
fromJSON(object) {
|
|
216
|
-
return {
|
|
217
|
-
id: isSet(object.id) ? globalThis.Number(object.id) : undefined,
|
|
218
|
-
score: isSet(object.score) ? globalThis.Number(object.score) : undefined,
|
|
219
|
-
created_at: isSet(object.created_at) ? globalThis.String(object.created_at) : undefined,
|
|
220
|
-
bureau_id: isSet(object.bureau_id) ? globalThis.Number(object.bureau_id) : undefined,
|
|
221
|
-
report_path: isSet(object.report_path) ? globalThis.String(object.report_path) : undefined,
|
|
222
|
-
product_code: isSet(object.product_code) ? globalThis.String(object.product_code) : undefined,
|
|
223
|
-
};
|
|
224
|
-
},
|
|
225
|
-
toJSON(message) {
|
|
226
|
-
const obj = {};
|
|
227
|
-
if (message.id !== undefined) {
|
|
228
|
-
obj.id = Math.round(message.id);
|
|
229
|
-
}
|
|
230
|
-
if (message.score !== undefined) {
|
|
231
|
-
obj.score = Math.round(message.score);
|
|
232
|
-
}
|
|
233
|
-
if (message.created_at !== undefined) {
|
|
234
|
-
obj.created_at = message.created_at;
|
|
235
|
-
}
|
|
236
|
-
if (message.bureau_id !== undefined) {
|
|
237
|
-
obj.bureau_id = Math.round(message.bureau_id);
|
|
238
|
-
}
|
|
239
|
-
if (message.report_path !== undefined) {
|
|
240
|
-
obj.report_path = message.report_path;
|
|
241
|
-
}
|
|
242
|
-
if (message.product_code !== undefined) {
|
|
243
|
-
obj.product_code = message.product_code;
|
|
244
|
-
}
|
|
245
|
-
return obj;
|
|
246
|
-
},
|
|
247
|
-
create(base) {
|
|
248
|
-
return exports.Report.fromPartial(base ?? {});
|
|
249
|
-
},
|
|
250
|
-
fromPartial(object) {
|
|
251
|
-
const message = createBaseReport();
|
|
252
|
-
message.id = object.id ?? undefined;
|
|
253
|
-
message.score = object.score ?? undefined;
|
|
254
|
-
message.created_at = object.created_at ?? undefined;
|
|
255
|
-
message.bureau_id = object.bureau_id ?? undefined;
|
|
256
|
-
message.report_path = object.report_path ?? undefined;
|
|
257
|
-
message.product_code = object.product_code ?? undefined;
|
|
258
|
-
return message;
|
|
259
|
-
},
|
|
260
|
-
};
|
|
261
|
-
function longToNumber(long) {
|
|
262
|
-
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
263
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
264
|
-
}
|
|
265
|
-
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
266
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
267
|
-
}
|
|
268
|
-
return long.toNumber();
|
|
269
|
-
}
|
|
270
|
-
if (minimal_1.default.util.Long !== long_1.default) {
|
|
271
|
-
minimal_1.default.util.Long = long_1.default;
|
|
272
|
-
minimal_1.default.configure();
|
|
273
|
-
}
|
|
274
|
-
function isSet(value) {
|
|
275
|
-
return value !== null && value !== undefined;
|
|
276
|
-
}
|