idmission-web-sdk 2.2.79 → 2.2.80

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.
Files changed (28) hide show
  1. package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts +4 -0
  2. package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts.map +1 -1
  3. package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +2 -0
  4. package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts.map +1 -1
  5. package/dist/components/customer_flows/FaceValidation.d.ts +4 -0
  6. package/dist/components/customer_flows/FaceValidation.d.ts.map +1 -1
  7. package/dist/components/customer_flows/IdAndFaceValidation.d.ts +2 -0
  8. package/dist/components/customer_flows/IdAndFaceValidation.d.ts.map +1 -1
  9. package/dist/components/customer_flows/IdValidation.d.ts +2 -0
  10. package/dist/components/customer_flows/IdValidation.d.ts.map +1 -1
  11. package/dist/components/customer_flows/VideoIdValidation.d.ts +2 -0
  12. package/dist/components/customer_flows/VideoIdValidation.d.ts.map +1 -1
  13. package/dist/components/submission/SubmissionProvider.d.ts +2 -1
  14. package/dist/components/submission/SubmissionProvider.d.ts.map +1 -1
  15. package/dist/components/submission/types.d.ts +1 -0
  16. package/dist/components/submission/types.d.ts.map +1 -1
  17. package/dist/sdk2.cjs.development.js +35 -18
  18. package/dist/sdk2.cjs.development.js.map +1 -1
  19. package/dist/sdk2.cjs.production.js +1 -1
  20. package/dist/sdk2.cjs.production.js.map +1 -1
  21. package/dist/sdk2.esm.js +35 -18
  22. package/dist/sdk2.esm.js.map +1 -1
  23. package/dist/sdk2.umd.development.js +35 -18
  24. package/dist/sdk2.umd.development.js.map +1 -1
  25. package/dist/sdk2.umd.production.js +1 -1
  26. package/dist/sdk2.umd.production.js.map +1 -1
  27. package/dist/version.d.ts +1 -1
  28. package/package.json +1 -1
package/dist/sdk2.esm.js CHANGED
@@ -203,7 +203,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
203
203
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
204
204
  };
205
205
 
206
- var webSdkVersion = '2.2.79';
206
+ var webSdkVersion = '2.2.80';
207
207
 
208
208
  function getPlatform() {
209
209
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -1155,6 +1155,7 @@ var SubmissionProvider = function SubmissionProvider(_a) {
1155
1155
  webhooksSendProcessedImages = _t === void 0 ? false : _t,
1156
1156
  _u = _a.webhooksFireOnReview,
1157
1157
  webhooksFireOnReview = _u === void 0 ? false : _u,
1158
+ webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
1158
1159
  customerDataMatchConfig = _a.customerDataMatchConfig,
1159
1160
  precapturedDocuments = _a.precapturedDocuments,
1160
1161
  _v = _a.documentServiceUrl,
@@ -1440,6 +1441,7 @@ var SubmissionProvider = function SubmissionProvider(_a) {
1440
1441
  postDataAPIRequired: webhooksEnabled ? 'Y' : 'N',
1441
1442
  postDataAPIURL: webhooksURL,
1442
1443
  postDataOnReviewRequired: webhooksFireOnReview ? 'Y' : 'N',
1444
+ postDataOnReviewAPIURL: webhooksFireOnReviewURL,
1443
1445
  sendInputImagesInPost: webhooksSendInputImages ? 'Y' : 'N',
1444
1446
  sendProcessedImagesInPost: webhooksSendProcessedImages ? 'Y' : 'N',
1445
1447
  needImmediateResponse: needImmediateResponse ? 'Y' : 'N',
@@ -1544,7 +1546,7 @@ var SubmissionProvider = function SubmissionProvider(_a) {
1544
1546
  }
1545
1547
  });
1546
1548
  });
1547
- }, [additionalDocuments, bypassAgeValidation, bypassNameMatching, cardData, clientRequestID, companyId, customerDataMatchConfig, deduplicationEnabled, deduplicationSynchronous, documentServiceUrl, enrollmentId, expectedAudioText, geolocationResult, idBackCaptureAttempts, idBackImage, idBackImageRequired, idCaptureVideoAudioStartsAt, idCaptureVideoAudioUrl, idCaptureVideoIdBackImage, idCaptureVideoIdFrontImage, idCaptureVideoUrl, idCardForFaceMatch, idData, idFrontCaptureAttempts, idFrontImage, idImageResolutionCheck, manualReviewRequired, needImmediateResponse, passportImage, personalData, selfieCaptureAttempts, selfieImage, signatureData, signatureVideoUrl, uploadDocument, verifyIdWithExternalDatabases, webhooksClientTraceId, webhooksEnabled, webhooksFireOnReview, webhooksSendInputImages, webhooksSendProcessedImages, webhooksStripSpecialCharacters, webhooksURL]);
1549
+ }, [additionalDocuments, bypassAgeValidation, bypassNameMatching, cardData, clientRequestID, companyId, customerDataMatchConfig, deduplicationEnabled, deduplicationSynchronous, documentServiceUrl, enrollmentId, expectedAudioText, geolocationResult, idBackCaptureAttempts, idBackImage, idBackImageRequired, idCaptureVideoAudioStartsAt, idCaptureVideoAudioUrl, idCaptureVideoIdBackImage, idCaptureVideoIdFrontImage, idCaptureVideoUrl, idCardForFaceMatch, idData, idFrontCaptureAttempts, idFrontImage, idImageResolutionCheck, manualReviewRequired, needImmediateResponse, passportImage, personalData, selfieCaptureAttempts, selfieImage, signatureData, signatureVideoUrl, uploadDocument, verifyIdWithExternalDatabases, webhooksClientTraceId, webhooksEnabled, webhooksFireOnReview, webhooksFireOnReviewURL, webhooksSendInputImages, webhooksSendProcessedImages, webhooksStripSpecialCharacters, webhooksURL]);
1548
1550
  var defaultOnSubmit = useCallback(function () {
1549
1551
  return __awaiter(void 0, void 0, void 0, function () {
1550
1552
  var submissionResponse_1, payload, host, endpoint, response, statusMessage, submissionResponse_2, e_1, err;
@@ -14381,15 +14383,18 @@ var FaceValidation = function FaceValidation(_a) {
14381
14383
  webhooksStripSpecialCharacters = _a.webhooksStripSpecialCharacters,
14382
14384
  webhooksSendInputImages = _a.webhooksSendInputImages,
14383
14385
  webhooksSendProcessedImages = _a.webhooksSendProcessedImages,
14386
+ _c = _a.webhooksFireOnReview,
14387
+ webhooksFireOnReview = _c === void 0 ? false : _c,
14388
+ webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
14384
14389
  sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
14385
- _c = _a.loadingOverlayMode,
14386
- loadingOverlayMode = _c === void 0 ? 'default' : _c,
14387
- _d = _a.timeoutDurationMs,
14388
- timeoutDurationMs = _d === void 0 ? 15000 : _d,
14389
- _e = _a.modelLoadTimeoutMs,
14390
- modelLoadTimeoutMs = _e === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _e,
14391
- _f = _a.skipSuccessScreen,
14392
- skipSuccessScreen = _f === void 0 ? false : _f,
14390
+ _d = _a.loadingOverlayMode,
14391
+ loadingOverlayMode = _d === void 0 ? 'default' : _d,
14392
+ _e = _a.timeoutDurationMs,
14393
+ timeoutDurationMs = _e === void 0 ? 15000 : _e,
14394
+ _f = _a.modelLoadTimeoutMs,
14395
+ modelLoadTimeoutMs = _f === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _f,
14396
+ _g = _a.skipSuccessScreen,
14397
+ skipSuccessScreen = _g === void 0 ? false : _g,
14393
14398
  idCardForFaceMatch = _a.idCardForFaceMatch,
14394
14399
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
14395
14400
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
@@ -14404,18 +14409,18 @@ var FaceValidation = function FaceValidation(_a) {
14404
14409
  onUserCancel = _a.onUserCancel,
14405
14410
  onModelError = _a.onModelError,
14406
14411
  onCameraAccessDenied = _a.onCameraAccessDenied,
14407
- _g = _a.theme,
14408
- theme = _g === void 0 ? 'default' : _g,
14412
+ _h = _a.theme,
14413
+ theme = _h === void 0 ? 'default' : _h,
14409
14414
  assets = _a.assets,
14410
14415
  classNames = _a.classNames,
14411
14416
  colors = _a.colors,
14412
14417
  verbiage = _a.verbiage,
14413
- _h = _a.geolocationEnabled,
14414
- geolocationEnabled = _h === void 0 ? true : _h,
14415
- _j = _a.geolocationRequired,
14416
- geolocationRequired = _j === void 0 ? false : _j,
14417
- _k = _a.debugMode,
14418
- debugMode = _k === void 0 ? false : _k;
14418
+ _j = _a.geolocationEnabled,
14419
+ geolocationEnabled = _j === void 0 ? true : _j,
14420
+ _k = _a.geolocationRequired,
14421
+ geolocationRequired = _k === void 0 ? false : _k,
14422
+ _l = _a.debugMode,
14423
+ debugMode = _l === void 0 ? false : _l;
14419
14424
  useLanguage(lang);
14420
14425
  useDebugLogging(debugMode);
14421
14426
  var faceLivenessProps = useMemo(function () {
@@ -14455,6 +14460,8 @@ var FaceValidation = function FaceValidation(_a) {
14455
14460
  webhooksStripSpecialCharacters: webhooksStripSpecialCharacters,
14456
14461
  webhooksSendInputImages: webhooksSendInputImages,
14457
14462
  webhooksSendProcessedImages: webhooksSendProcessedImages,
14463
+ webhooksFireOnReview: webhooksFireOnReview,
14464
+ webhooksFireOnReviewURL: webhooksFireOnReviewURL,
14458
14465
  sendBase64DocumentsInSwaggerProxy: sendBase64DocumentsInSwaggerProxy,
14459
14466
  idCardForFaceMatch: idCardForFaceMatch,
14460
14467
  onBeforeDocumentUpload: onBeforeDocumentUpload,
@@ -14501,6 +14508,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
14501
14508
  webhooksSendInputImages = _a.webhooksSendInputImages,
14502
14509
  webhooksSendProcessedImages = _a.webhooksSendProcessedImages,
14503
14510
  webhooksFireOnReview = _a.webhooksFireOnReview,
14511
+ webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
14504
14512
  sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
14505
14513
  customerDataMatchConfig = _a.customerDataMatchConfig,
14506
14514
  precapturedDocuments = _a.precapturedDocuments,
@@ -14686,6 +14694,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
14686
14694
  webhooksSendInputImages: webhooksSendInputImages,
14687
14695
  webhooksSendProcessedImages: webhooksSendProcessedImages,
14688
14696
  webhooksFireOnReview: webhooksFireOnReview,
14697
+ webhooksFireOnReviewURL: webhooksFireOnReviewURL,
14689
14698
  sendBase64DocumentsInSwaggerProxy: sendBase64DocumentsInSwaggerProxy,
14690
14699
  customerDataMatchConfig: customerDataMatchConfig,
14691
14700
  precapturedDocuments: precapturedDocuments,
@@ -14744,6 +14753,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
14744
14753
  webhooksSendInputImages = _a.webhooksSendInputImages,
14745
14754
  webhooksSendProcessedImages = _a.webhooksSendProcessedImages,
14746
14755
  webhooksFireOnReview = _a.webhooksFireOnReview,
14756
+ webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
14747
14757
  sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
14748
14758
  customerDataMatchConfig = _a.customerDataMatchConfig,
14749
14759
  _c = _a.idCaptureLoadingOverlayMode,
@@ -14948,6 +14958,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
14948
14958
  webhooksSendInputImages: webhooksSendInputImages,
14949
14959
  webhooksSendProcessedImages: webhooksSendProcessedImages,
14950
14960
  webhooksFireOnReview: webhooksFireOnReview,
14961
+ webhooksFireOnReviewURL: webhooksFireOnReviewURL,
14951
14962
  sendBase64DocumentsInSwaggerProxy: sendBase64DocumentsInSwaggerProxy,
14952
14963
  customerDataMatchConfig: customerDataMatchConfig,
14953
14964
  onBeforeDocumentUpload: onBeforeDocumentUpload,
@@ -16211,6 +16222,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
16211
16222
  webhooksSendInputImages = _a.webhooksSendInputImages,
16212
16223
  webhooksSendProcessedImages = _a.webhooksSendProcessedImages,
16213
16224
  webhooksFireOnReview = _a.webhooksFireOnReview,
16225
+ webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
16214
16226
  sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
16215
16227
  customerDataMatchConfig = _a.customerDataMatchConfig,
16216
16228
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
@@ -16379,6 +16391,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
16379
16391
  webhooksSendInputImages: webhooksSendInputImages,
16380
16392
  webhooksSendProcessedImages: webhooksSendProcessedImages,
16381
16393
  webhooksFireOnReview: webhooksFireOnReview,
16394
+ webhooksFireOnReviewURL: webhooksFireOnReviewURL,
16382
16395
  sendBase64DocumentsInSwaggerProxy: sendBase64DocumentsInSwaggerProxy,
16383
16396
  customerDataMatchConfig: customerDataMatchConfig,
16384
16397
  idCardForFaceMatch: idCardForFaceMatch,
@@ -16426,6 +16439,8 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
16426
16439
  webhooksStripSpecialCharacters = _a.webhooksStripSpecialCharacters,
16427
16440
  webhooksSendInputImages = _a.webhooksSendInputImages,
16428
16441
  webhooksSendProcessedImages = _a.webhooksSendProcessedImages,
16442
+ webhooksFireOnReview = _a.webhooksFireOnReview,
16443
+ webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
16429
16444
  sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
16430
16445
  _c = _a.loadingOverlayMode,
16431
16446
  loadingOverlayMode = _c === void 0 ? 'default' : _c,
@@ -16542,6 +16557,8 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
16542
16557
  webhooksStripSpecialCharacters: webhooksStripSpecialCharacters,
16543
16558
  webhooksSendInputImages: webhooksSendInputImages,
16544
16559
  webhooksSendProcessedImages: webhooksSendProcessedImages,
16560
+ webhooksFireOnReview: webhooksFireOnReview,
16561
+ webhooksFireOnReviewURL: webhooksFireOnReviewURL,
16545
16562
  sendBase64DocumentsInSwaggerProxy: sendBase64DocumentsInSwaggerProxy,
16546
16563
  onBeforeDocumentUpload: onBeforeDocumentUpload,
16547
16564
  onDocumentUploadProgress: onDocumentUploadProgress,