idmission-web-sdk 2.2.8 → 2.2.9

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/dist/sdk2.esm.js CHANGED
@@ -200,7 +200,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
200
200
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
201
201
  };
202
202
 
203
- var webSdkVersion = '2.2.8';
203
+ var webSdkVersion = '2.2.9';
204
204
 
205
205
  function getPlatform() {
206
206
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -267,6 +267,7 @@ var SubmissionAction;
267
267
  SubmissionAction["IDENTIFY"] = "IDENTIFY";
268
268
  SubmissionAction["VALIDATE"] = "VALIDATE";
269
269
  SubmissionAction["VERIFY"] = "VERIFY";
270
+ SubmissionAction["MATCH_ID_AND_FACE"] = "MATCH_ID_AND_FACE";
270
271
  })(SubmissionAction || (SubmissionAction = {}));
271
272
  var SubmissionStatus;
272
273
  (function (SubmissionStatus) {
@@ -295,6 +296,8 @@ function determineSubmissionEndpoint(action, hasId, hasSelfie) {
295
296
  return hasSelfie ? "/v4/customer/validate-id-match-face" : "/v4/customer/validate-id";
296
297
  case SubmissionAction.VERIFY:
297
298
  return "/v4/customer/verify";
299
+ case SubmissionAction.MATCH_ID_AND_FACE:
300
+ return "/v4/customer/match-id-face";
298
301
  default:
299
302
  throw new Error("unrecognized SubmissionAction ".concat(action));
300
303
  }
@@ -15214,28 +15217,30 @@ var VideoIdValidation = function VideoIdValidation(_a) {
15214
15217
  silentFallback = _t === void 0 ? false : _t,
15215
15218
  _u = _a.mergeAVStreams,
15216
15219
  mergeAVStreams = _u === void 0 ? false : _u,
15217
- _v = _a.theme,
15218
- theme = _v === void 0 ? 'default' : _v,
15219
- _w = _a.assets,
15220
- assets = _w === void 0 ? {} : _w,
15221
- _x = _a.classNames,
15222
- classNames = _x === void 0 ? {} : _x,
15223
- _y = _a.colors,
15224
- colors = _y === void 0 ? {} : _y,
15225
- _z = _a.verbiage,
15226
- verbiage = _z === void 0 ? {} : _z,
15227
- _0 = _a.captureSignature,
15228
- captureSignature = _0 === void 0 ? false : _0,
15229
- _1 = _a.captureSignatureVideo,
15230
- captureSignatureVideo = _1 === void 0 ? false : _1,
15231
- _2 = _a.captureAdditionalDocuments,
15232
- captureAdditionalDocuments = _2 === void 0 ? [] : _2,
15233
- _3 = _a.geolocationEnabled,
15234
- geolocationEnabled = _3 === void 0 ? true : _3,
15235
- _4 = _a.geolocationRequired,
15236
- geolocationRequired = _4 === void 0 ? false : _4,
15237
- _5 = _a.debugMode,
15238
- debugMode = _5 === void 0 ? false : _5;
15220
+ _v = _a.matchOnly,
15221
+ matchOnly = _v === void 0 ? false : _v,
15222
+ _w = _a.theme,
15223
+ theme = _w === void 0 ? 'default' : _w,
15224
+ _x = _a.assets,
15225
+ assets = _x === void 0 ? {} : _x,
15226
+ _y = _a.classNames,
15227
+ classNames = _y === void 0 ? {} : _y,
15228
+ _z = _a.colors,
15229
+ colors = _z === void 0 ? {} : _z,
15230
+ _0 = _a.verbiage,
15231
+ verbiage = _0 === void 0 ? {} : _0,
15232
+ _1 = _a.captureSignature,
15233
+ captureSignature = _1 === void 0 ? false : _1,
15234
+ _2 = _a.captureSignatureVideo,
15235
+ captureSignatureVideo = _2 === void 0 ? false : _2,
15236
+ _3 = _a.captureAdditionalDocuments,
15237
+ captureAdditionalDocuments = _3 === void 0 ? [] : _3,
15238
+ _4 = _a.geolocationEnabled,
15239
+ geolocationEnabled = _4 === void 0 ? true : _4,
15240
+ _5 = _a.geolocationRequired,
15241
+ geolocationRequired = _5 === void 0 ? false : _5,
15242
+ _6 = _a.debugMode,
15243
+ debugMode = _6 === void 0 ? false : _6;
15239
15244
  useLanguage(lang);
15240
15245
  useDebugLogging(debugMode);
15241
15246
  var videoIdCaptureProps = useMemo(function () {
@@ -15302,7 +15307,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
15302
15307
  }, /*#__PURE__*/React__default.createElement(ThemeProvider, {
15303
15308
  theme: theme
15304
15309
  }, /*#__PURE__*/React__default.createElement(SubmissionProvider, {
15305
- action: skipIdCapture ? SubmissionAction.NONE : SubmissionAction.VALIDATE,
15310
+ action: idCardForFaceMatch || !skipIdCapture ? matchOnly ? SubmissionAction.MATCH_ID_AND_FACE : SubmissionAction.VALIDATE : SubmissionAction.NONE,
15306
15311
  submissionUrl: submissionUrl,
15307
15312
  clientRequestID: clientRequestID,
15308
15313
  documentServiceUrl: documentServiceUrl,