@stashfin/grpc 1.2.246 → 1.2.248
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/getcustomerbyid.d.ts +0 -1
- package/ts/customers/getcustomerbyid.js +0 -15
- 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/payments/checkpaymentstatus.d.ts +1 -1
- package/ts/payments/getpaymentoptions.d.ts +1 -0
- package/ts/payments/getpaymentoptions.js +15 -1
- package/ts/payments/initiatepayment.d.ts +1 -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
|
+
}
|
|
@@ -283,7 +283,7 @@ exports.response_Fees = {
|
|
|
283
283
|
},
|
|
284
284
|
};
|
|
285
285
|
function createBaseresponse_Fee_data() {
|
|
286
|
-
return { gateway: "", fees: undefined, amount: 0, other_fees: 0, total_amount: 0 };
|
|
286
|
+
return { gateway: "", fees: undefined, amount: 0, other_fees: 0, total_amount: 0, modes: [] };
|
|
287
287
|
}
|
|
288
288
|
exports.response_Fee_data = {
|
|
289
289
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -302,6 +302,9 @@ exports.response_Fee_data = {
|
|
|
302
302
|
if (message.total_amount !== 0) {
|
|
303
303
|
writer.uint32(41).double(message.total_amount);
|
|
304
304
|
}
|
|
305
|
+
for (const v of message.modes) {
|
|
306
|
+
writer.uint32(50).string(v);
|
|
307
|
+
}
|
|
305
308
|
return writer;
|
|
306
309
|
},
|
|
307
310
|
decode(input, length) {
|
|
@@ -341,6 +344,12 @@ exports.response_Fee_data = {
|
|
|
341
344
|
}
|
|
342
345
|
message.total_amount = reader.double();
|
|
343
346
|
continue;
|
|
347
|
+
case 6:
|
|
348
|
+
if (tag !== 50) {
|
|
349
|
+
break;
|
|
350
|
+
}
|
|
351
|
+
message.modes.push(reader.string());
|
|
352
|
+
continue;
|
|
344
353
|
}
|
|
345
354
|
if ((tag & 7) === 4 || tag === 0) {
|
|
346
355
|
break;
|
|
@@ -356,6 +365,7 @@ exports.response_Fee_data = {
|
|
|
356
365
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
357
366
|
other_fees: isSet(object.other_fees) ? globalThis.Number(object.other_fees) : 0,
|
|
358
367
|
total_amount: isSet(object.total_amount) ? globalThis.Number(object.total_amount) : 0,
|
|
368
|
+
modes: globalThis.Array.isArray(object?.modes) ? object.modes.map((e) => globalThis.String(e)) : [],
|
|
359
369
|
};
|
|
360
370
|
},
|
|
361
371
|
toJSON(message) {
|
|
@@ -375,6 +385,9 @@ exports.response_Fee_data = {
|
|
|
375
385
|
if (message.total_amount !== 0) {
|
|
376
386
|
obj.total_amount = message.total_amount;
|
|
377
387
|
}
|
|
388
|
+
if (message.modes?.length) {
|
|
389
|
+
obj.modes = message.modes;
|
|
390
|
+
}
|
|
378
391
|
return obj;
|
|
379
392
|
},
|
|
380
393
|
create(base) {
|
|
@@ -389,6 +402,7 @@ exports.response_Fee_data = {
|
|
|
389
402
|
message.amount = object.amount ?? 0;
|
|
390
403
|
message.other_fees = object.other_fees ?? 0;
|
|
391
404
|
message.total_amount = object.total_amount ?? 0;
|
|
405
|
+
message.modes = object.modes?.map((e) => e) || [];
|
|
392
406
|
return message;
|
|
393
407
|
},
|
|
394
408
|
};
|
|
@@ -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
|
-
}
|