@stashfin/grpc 1.2.591 → 1.2.592
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/kyc/facematch.d.ts +5 -2
- package/ts/kyc/facematch.js +67 -15
package/package.json
CHANGED
package/ts/kyc/facematch.d.ts
CHANGED
|
@@ -8,11 +8,14 @@ export interface faceMatchRequest {
|
|
|
8
8
|
}
|
|
9
9
|
export interface faceMatchResponse {
|
|
10
10
|
conf: string;
|
|
11
|
-
match:
|
|
11
|
+
match: string;
|
|
12
12
|
match_score: number;
|
|
13
|
-
to_be_reviewed:
|
|
13
|
+
to_be_reviewed: string;
|
|
14
14
|
customer_id: number;
|
|
15
15
|
txn_id: string;
|
|
16
|
+
status: string;
|
|
17
|
+
status_code: number;
|
|
18
|
+
error_message?: string | undefined;
|
|
16
19
|
}
|
|
17
20
|
export declare const faceMatchRequest: {
|
|
18
21
|
encode(message: faceMatchRequest, writer?: _m0.Writer): _m0.Writer;
|
package/ts/kyc/facematch.js
CHANGED
|
@@ -107,21 +107,31 @@ exports.faceMatchRequest = {
|
|
|
107
107
|
},
|
|
108
108
|
};
|
|
109
109
|
function createBasefaceMatchResponse() {
|
|
110
|
-
return {
|
|
110
|
+
return {
|
|
111
|
+
conf: "",
|
|
112
|
+
match: "",
|
|
113
|
+
match_score: 0,
|
|
114
|
+
to_be_reviewed: "",
|
|
115
|
+
customer_id: 0,
|
|
116
|
+
txn_id: "",
|
|
117
|
+
status: "",
|
|
118
|
+
status_code: 0,
|
|
119
|
+
error_message: undefined,
|
|
120
|
+
};
|
|
111
121
|
}
|
|
112
122
|
exports.faceMatchResponse = {
|
|
113
123
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
114
124
|
if (message.conf !== "") {
|
|
115
125
|
writer.uint32(10).string(message.conf);
|
|
116
126
|
}
|
|
117
|
-
if (message.match !==
|
|
118
|
-
writer.uint32(
|
|
127
|
+
if (message.match !== "") {
|
|
128
|
+
writer.uint32(18).string(message.match);
|
|
119
129
|
}
|
|
120
130
|
if (message.match_score !== 0) {
|
|
121
131
|
writer.uint32(24).int32(message.match_score);
|
|
122
132
|
}
|
|
123
|
-
if (message.to_be_reviewed !==
|
|
124
|
-
writer.uint32(
|
|
133
|
+
if (message.to_be_reviewed !== "") {
|
|
134
|
+
writer.uint32(34).string(message.to_be_reviewed);
|
|
125
135
|
}
|
|
126
136
|
if (message.customer_id !== 0) {
|
|
127
137
|
writer.uint32(40).int32(message.customer_id);
|
|
@@ -129,6 +139,15 @@ exports.faceMatchResponse = {
|
|
|
129
139
|
if (message.txn_id !== "") {
|
|
130
140
|
writer.uint32(50).string(message.txn_id);
|
|
131
141
|
}
|
|
142
|
+
if (message.status !== "") {
|
|
143
|
+
writer.uint32(58).string(message.status);
|
|
144
|
+
}
|
|
145
|
+
if (message.status_code !== 0) {
|
|
146
|
+
writer.uint32(64).int32(message.status_code);
|
|
147
|
+
}
|
|
148
|
+
if (message.error_message !== undefined) {
|
|
149
|
+
writer.uint32(74).string(message.error_message);
|
|
150
|
+
}
|
|
132
151
|
return writer;
|
|
133
152
|
},
|
|
134
153
|
decode(input, length) {
|
|
@@ -145,10 +164,10 @@ exports.faceMatchResponse = {
|
|
|
145
164
|
message.conf = reader.string();
|
|
146
165
|
continue;
|
|
147
166
|
case 2:
|
|
148
|
-
if (tag !==
|
|
167
|
+
if (tag !== 18) {
|
|
149
168
|
break;
|
|
150
169
|
}
|
|
151
|
-
message.match = reader.
|
|
170
|
+
message.match = reader.string();
|
|
152
171
|
continue;
|
|
153
172
|
case 3:
|
|
154
173
|
if (tag !== 24) {
|
|
@@ -157,10 +176,10 @@ exports.faceMatchResponse = {
|
|
|
157
176
|
message.match_score = reader.int32();
|
|
158
177
|
continue;
|
|
159
178
|
case 4:
|
|
160
|
-
if (tag !==
|
|
179
|
+
if (tag !== 34) {
|
|
161
180
|
break;
|
|
162
181
|
}
|
|
163
|
-
message.to_be_reviewed = reader.
|
|
182
|
+
message.to_be_reviewed = reader.string();
|
|
164
183
|
continue;
|
|
165
184
|
case 5:
|
|
166
185
|
if (tag !== 40) {
|
|
@@ -174,6 +193,24 @@ exports.faceMatchResponse = {
|
|
|
174
193
|
}
|
|
175
194
|
message.txn_id = reader.string();
|
|
176
195
|
continue;
|
|
196
|
+
case 7:
|
|
197
|
+
if (tag !== 58) {
|
|
198
|
+
break;
|
|
199
|
+
}
|
|
200
|
+
message.status = reader.string();
|
|
201
|
+
continue;
|
|
202
|
+
case 8:
|
|
203
|
+
if (tag !== 64) {
|
|
204
|
+
break;
|
|
205
|
+
}
|
|
206
|
+
message.status_code = reader.int32();
|
|
207
|
+
continue;
|
|
208
|
+
case 9:
|
|
209
|
+
if (tag !== 74) {
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
message.error_message = reader.string();
|
|
213
|
+
continue;
|
|
177
214
|
}
|
|
178
215
|
if ((tag & 7) === 4 || tag === 0) {
|
|
179
216
|
break;
|
|
@@ -185,11 +222,14 @@ exports.faceMatchResponse = {
|
|
|
185
222
|
fromJSON(object) {
|
|
186
223
|
return {
|
|
187
224
|
conf: isSet(object.conf) ? globalThis.String(object.conf) : "",
|
|
188
|
-
match: isSet(object.match) ? globalThis.
|
|
225
|
+
match: isSet(object.match) ? globalThis.String(object.match) : "",
|
|
189
226
|
match_score: isSet(object.match_score) ? globalThis.Number(object.match_score) : 0,
|
|
190
|
-
to_be_reviewed: isSet(object.to_be_reviewed) ? globalThis.
|
|
227
|
+
to_be_reviewed: isSet(object.to_be_reviewed) ? globalThis.String(object.to_be_reviewed) : "",
|
|
191
228
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
192
229
|
txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
|
|
230
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
231
|
+
status_code: isSet(object.status_code) ? globalThis.Number(object.status_code) : 0,
|
|
232
|
+
error_message: isSet(object.error_message) ? globalThis.String(object.error_message) : undefined,
|
|
193
233
|
};
|
|
194
234
|
},
|
|
195
235
|
toJSON(message) {
|
|
@@ -197,13 +237,13 @@ exports.faceMatchResponse = {
|
|
|
197
237
|
if (message.conf !== "") {
|
|
198
238
|
obj.conf = message.conf;
|
|
199
239
|
}
|
|
200
|
-
if (message.match !==
|
|
240
|
+
if (message.match !== "") {
|
|
201
241
|
obj.match = message.match;
|
|
202
242
|
}
|
|
203
243
|
if (message.match_score !== 0) {
|
|
204
244
|
obj.match_score = Math.round(message.match_score);
|
|
205
245
|
}
|
|
206
|
-
if (message.to_be_reviewed !==
|
|
246
|
+
if (message.to_be_reviewed !== "") {
|
|
207
247
|
obj.to_be_reviewed = message.to_be_reviewed;
|
|
208
248
|
}
|
|
209
249
|
if (message.customer_id !== 0) {
|
|
@@ -212,6 +252,15 @@ exports.faceMatchResponse = {
|
|
|
212
252
|
if (message.txn_id !== "") {
|
|
213
253
|
obj.txn_id = message.txn_id;
|
|
214
254
|
}
|
|
255
|
+
if (message.status !== "") {
|
|
256
|
+
obj.status = message.status;
|
|
257
|
+
}
|
|
258
|
+
if (message.status_code !== 0) {
|
|
259
|
+
obj.status_code = Math.round(message.status_code);
|
|
260
|
+
}
|
|
261
|
+
if (message.error_message !== undefined) {
|
|
262
|
+
obj.error_message = message.error_message;
|
|
263
|
+
}
|
|
215
264
|
return obj;
|
|
216
265
|
},
|
|
217
266
|
create(base) {
|
|
@@ -220,11 +269,14 @@ exports.faceMatchResponse = {
|
|
|
220
269
|
fromPartial(object) {
|
|
221
270
|
const message = createBasefaceMatchResponse();
|
|
222
271
|
message.conf = object.conf ?? "";
|
|
223
|
-
message.match = object.match ??
|
|
272
|
+
message.match = object.match ?? "";
|
|
224
273
|
message.match_score = object.match_score ?? 0;
|
|
225
|
-
message.to_be_reviewed = object.to_be_reviewed ??
|
|
274
|
+
message.to_be_reviewed = object.to_be_reviewed ?? "";
|
|
226
275
|
message.customer_id = object.customer_id ?? 0;
|
|
227
276
|
message.txn_id = object.txn_id ?? "";
|
|
277
|
+
message.status = object.status ?? "";
|
|
278
|
+
message.status_code = object.status_code ?? 0;
|
|
279
|
+
message.error_message = object.error_message ?? undefined;
|
|
228
280
|
return message;
|
|
229
281
|
},
|
|
230
282
|
};
|