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.
@@ -211,7 +211,7 @@
211
211
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
212
212
  };
213
213
 
214
- var webSdkVersion = '2.2.8';
214
+ var webSdkVersion = '2.2.9';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -278,6 +278,7 @@
278
278
  SubmissionAction["IDENTIFY"] = "IDENTIFY";
279
279
  SubmissionAction["VALIDATE"] = "VALIDATE";
280
280
  SubmissionAction["VERIFY"] = "VERIFY";
281
+ SubmissionAction["MATCH_ID_AND_FACE"] = "MATCH_ID_AND_FACE";
281
282
  })(SubmissionAction || (SubmissionAction = {}));
282
283
  var SubmissionStatus;
283
284
  (function (SubmissionStatus) {
@@ -306,6 +307,8 @@
306
307
  return hasSelfie ? "/v4/customer/validate-id-match-face" : "/v4/customer/validate-id";
307
308
  case SubmissionAction.VERIFY:
308
309
  return "/v4/customer/verify";
310
+ case SubmissionAction.MATCH_ID_AND_FACE:
311
+ return "/v4/customer/match-id-face";
309
312
  default:
310
313
  throw new Error("unrecognized SubmissionAction ".concat(action));
311
314
  }
@@ -24953,28 +24956,30 @@
24953
24956
  silentFallback = _t === void 0 ? false : _t,
24954
24957
  _u = _a.mergeAVStreams,
24955
24958
  mergeAVStreams = _u === void 0 ? false : _u,
24956
- _v = _a.theme,
24957
- theme = _v === void 0 ? 'default' : _v,
24958
- _w = _a.assets,
24959
- assets = _w === void 0 ? {} : _w,
24960
- _x = _a.classNames,
24961
- classNames = _x === void 0 ? {} : _x,
24962
- _y = _a.colors,
24963
- colors = _y === void 0 ? {} : _y,
24964
- _z = _a.verbiage,
24965
- verbiage = _z === void 0 ? {} : _z,
24966
- _0 = _a.captureSignature,
24967
- captureSignature = _0 === void 0 ? false : _0,
24968
- _1 = _a.captureSignatureVideo,
24969
- captureSignatureVideo = _1 === void 0 ? false : _1,
24970
- _2 = _a.captureAdditionalDocuments,
24971
- captureAdditionalDocuments = _2 === void 0 ? [] : _2,
24972
- _3 = _a.geolocationEnabled,
24973
- geolocationEnabled = _3 === void 0 ? true : _3,
24974
- _4 = _a.geolocationRequired,
24975
- geolocationRequired = _4 === void 0 ? false : _4,
24976
- _5 = _a.debugMode,
24977
- debugMode = _5 === void 0 ? false : _5;
24959
+ _v = _a.matchOnly,
24960
+ matchOnly = _v === void 0 ? false : _v,
24961
+ _w = _a.theme,
24962
+ theme = _w === void 0 ? 'default' : _w,
24963
+ _x = _a.assets,
24964
+ assets = _x === void 0 ? {} : _x,
24965
+ _y = _a.classNames,
24966
+ classNames = _y === void 0 ? {} : _y,
24967
+ _z = _a.colors,
24968
+ colors = _z === void 0 ? {} : _z,
24969
+ _0 = _a.verbiage,
24970
+ verbiage = _0 === void 0 ? {} : _0,
24971
+ _1 = _a.captureSignature,
24972
+ captureSignature = _1 === void 0 ? false : _1,
24973
+ _2 = _a.captureSignatureVideo,
24974
+ captureSignatureVideo = _2 === void 0 ? false : _2,
24975
+ _3 = _a.captureAdditionalDocuments,
24976
+ captureAdditionalDocuments = _3 === void 0 ? [] : _3,
24977
+ _4 = _a.geolocationEnabled,
24978
+ geolocationEnabled = _4 === void 0 ? true : _4,
24979
+ _5 = _a.geolocationRequired,
24980
+ geolocationRequired = _5 === void 0 ? false : _5,
24981
+ _6 = _a.debugMode,
24982
+ debugMode = _6 === void 0 ? false : _6;
24978
24983
  useLanguage(lang);
24979
24984
  useDebugLogging(debugMode);
24980
24985
  var videoIdCaptureProps = React.useMemo(function () {
@@ -25041,7 +25046,7 @@
25041
25046
  }, /*#__PURE__*/React.createElement(ThemeProvider, {
25042
25047
  theme: theme
25043
25048
  }, /*#__PURE__*/React.createElement(SubmissionProvider, {
25044
- action: skipIdCapture ? SubmissionAction.NONE : SubmissionAction.VALIDATE,
25049
+ action: idCardForFaceMatch || !skipIdCapture ? matchOnly ? SubmissionAction.MATCH_ID_AND_FACE : SubmissionAction.VALIDATE : SubmissionAction.NONE,
25045
25050
  submissionUrl: submissionUrl,
25046
25051
  clientRequestID: clientRequestID,
25047
25052
  documentServiceUrl: documentServiceUrl,