@stashfin/grpc 1.2.581 → 1.2.582
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 +2 -2
- package/ts/kyc/facematch.js +15 -15
package/package.json
CHANGED
package/ts/kyc/facematch.d.ts
CHANGED
|
@@ -8,9 +8,9 @@ export interface faceMatchRequest {
|
|
|
8
8
|
}
|
|
9
9
|
export interface faceMatchResponse {
|
|
10
10
|
conf: string;
|
|
11
|
-
match:
|
|
11
|
+
match: boolean;
|
|
12
12
|
match_score: number;
|
|
13
|
-
to_be_reviewed:
|
|
13
|
+
to_be_reviewed: boolean;
|
|
14
14
|
customer_id: number;
|
|
15
15
|
txn_id: string;
|
|
16
16
|
}
|
package/ts/kyc/facematch.js
CHANGED
|
@@ -107,21 +107,21 @@ exports.faceMatchRequest = {
|
|
|
107
107
|
},
|
|
108
108
|
};
|
|
109
109
|
function createBasefaceMatchResponse() {
|
|
110
|
-
return { conf: "", match:
|
|
110
|
+
return { conf: "", match: false, match_score: 0, to_be_reviewed: false, customer_id: 0, txn_id: "" };
|
|
111
111
|
}
|
|
112
112
|
exports.faceMatchResponse = {
|
|
113
113
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
114
114
|
if (message.conf !== "") {
|
|
115
115
|
writer.uint32(10).string(message.conf);
|
|
116
116
|
}
|
|
117
|
-
if (message.match !==
|
|
118
|
-
writer.uint32(
|
|
117
|
+
if (message.match !== false) {
|
|
118
|
+
writer.uint32(16).bool(message.match);
|
|
119
119
|
}
|
|
120
120
|
if (message.match_score !== 0) {
|
|
121
121
|
writer.uint32(24).int32(message.match_score);
|
|
122
122
|
}
|
|
123
|
-
if (message.to_be_reviewed !==
|
|
124
|
-
writer.uint32(
|
|
123
|
+
if (message.to_be_reviewed !== false) {
|
|
124
|
+
writer.uint32(32).bool(message.to_be_reviewed);
|
|
125
125
|
}
|
|
126
126
|
if (message.customer_id !== 0) {
|
|
127
127
|
writer.uint32(40).int32(message.customer_id);
|
|
@@ -145,10 +145,10 @@ exports.faceMatchResponse = {
|
|
|
145
145
|
message.conf = reader.string();
|
|
146
146
|
continue;
|
|
147
147
|
case 2:
|
|
148
|
-
if (tag !==
|
|
148
|
+
if (tag !== 16) {
|
|
149
149
|
break;
|
|
150
150
|
}
|
|
151
|
-
message.match = reader.
|
|
151
|
+
message.match = reader.bool();
|
|
152
152
|
continue;
|
|
153
153
|
case 3:
|
|
154
154
|
if (tag !== 24) {
|
|
@@ -157,10 +157,10 @@ exports.faceMatchResponse = {
|
|
|
157
157
|
message.match_score = reader.int32();
|
|
158
158
|
continue;
|
|
159
159
|
case 4:
|
|
160
|
-
if (tag !==
|
|
160
|
+
if (tag !== 32) {
|
|
161
161
|
break;
|
|
162
162
|
}
|
|
163
|
-
message.to_be_reviewed = reader.
|
|
163
|
+
message.to_be_reviewed = reader.bool();
|
|
164
164
|
continue;
|
|
165
165
|
case 5:
|
|
166
166
|
if (tag !== 40) {
|
|
@@ -185,9 +185,9 @@ exports.faceMatchResponse = {
|
|
|
185
185
|
fromJSON(object) {
|
|
186
186
|
return {
|
|
187
187
|
conf: isSet(object.conf) ? globalThis.String(object.conf) : "",
|
|
188
|
-
match: isSet(object.match) ? globalThis.
|
|
188
|
+
match: isSet(object.match) ? globalThis.Boolean(object.match) : false,
|
|
189
189
|
match_score: isSet(object.match_score) ? globalThis.Number(object.match_score) : 0,
|
|
190
|
-
to_be_reviewed: isSet(object.to_be_reviewed) ? globalThis.
|
|
190
|
+
to_be_reviewed: isSet(object.to_be_reviewed) ? globalThis.Boolean(object.to_be_reviewed) : false,
|
|
191
191
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
192
192
|
txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
|
|
193
193
|
};
|
|
@@ -197,13 +197,13 @@ exports.faceMatchResponse = {
|
|
|
197
197
|
if (message.conf !== "") {
|
|
198
198
|
obj.conf = message.conf;
|
|
199
199
|
}
|
|
200
|
-
if (message.match !==
|
|
200
|
+
if (message.match !== false) {
|
|
201
201
|
obj.match = message.match;
|
|
202
202
|
}
|
|
203
203
|
if (message.match_score !== 0) {
|
|
204
204
|
obj.match_score = Math.round(message.match_score);
|
|
205
205
|
}
|
|
206
|
-
if (message.to_be_reviewed !==
|
|
206
|
+
if (message.to_be_reviewed !== false) {
|
|
207
207
|
obj.to_be_reviewed = message.to_be_reviewed;
|
|
208
208
|
}
|
|
209
209
|
if (message.customer_id !== 0) {
|
|
@@ -220,9 +220,9 @@ exports.faceMatchResponse = {
|
|
|
220
220
|
fromPartial(object) {
|
|
221
221
|
const message = createBasefaceMatchResponse();
|
|
222
222
|
message.conf = object.conf ?? "";
|
|
223
|
-
message.match = object.match ??
|
|
223
|
+
message.match = object.match ?? false;
|
|
224
224
|
message.match_score = object.match_score ?? 0;
|
|
225
|
-
message.to_be_reviewed = object.to_be_reviewed ??
|
|
225
|
+
message.to_be_reviewed = object.to_be_reviewed ?? false;
|
|
226
226
|
message.customer_id = object.customer_id ?? 0;
|
|
227
227
|
message.txn_id = object.txn_id ?? "";
|
|
228
228
|
return message;
|