idmission-web-sdk 2.2.53 → 2.2.55
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/components/CompositeWizard.d.ts +2 -1
- package/dist/components/CompositeWizard.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts.map +1 -1
- package/dist/components/customer_flows/FaceValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/IdValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/SignatureKYC.d.ts.map +1 -1
- package/dist/components/customer_flows/VideoIdValidation.d.ts.map +1 -1
- package/dist/components/submission/SubmissionProvider.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +49 -35
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +49 -35
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +49 -35
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +3 -3
|
@@ -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.
|
|
214
|
+
var webSdkVersion = '2.2.55';
|
|
215
215
|
|
|
216
216
|
function getPlatform() {
|
|
217
217
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -2356,9 +2356,9 @@
|
|
|
2356
2356
|
}
|
|
2357
2357
|
var documents, _a, _b, _c, submissionRequest, onBeforeSubmitResult;
|
|
2358
2358
|
var _d;
|
|
2359
|
-
var _e, _f, _g;
|
|
2360
|
-
return __generator(this, function (
|
|
2361
|
-
switch (
|
|
2359
|
+
var _e, _f, _g, _h;
|
|
2360
|
+
return __generator(this, function (_j) {
|
|
2361
|
+
switch (_j.label) {
|
|
2362
2362
|
case 0:
|
|
2363
2363
|
_d = {
|
|
2364
2364
|
idFrontImage: idFrontImage,
|
|
@@ -2370,24 +2370,24 @@
|
|
|
2370
2370
|
if (!_a) return [3 /*break*/, 2];
|
|
2371
2371
|
return [4 /*yield*/, videoDataUrlToB64(signatureVideoUrl)];
|
|
2372
2372
|
case 1:
|
|
2373
|
-
_a =
|
|
2374
|
-
|
|
2373
|
+
_a = _j.sent();
|
|
2374
|
+
_j.label = 2;
|
|
2375
2375
|
case 2:
|
|
2376
2376
|
_d.signatureVideo = _a;
|
|
2377
2377
|
_b = idCaptureVideoUrl;
|
|
2378
2378
|
if (!_b) return [3 /*break*/, 4];
|
|
2379
2379
|
return [4 /*yield*/, videoDataUrlToB64(idCaptureVideoUrl)];
|
|
2380
2380
|
case 3:
|
|
2381
|
-
_b =
|
|
2382
|
-
|
|
2381
|
+
_b = _j.sent();
|
|
2382
|
+
_j.label = 4;
|
|
2383
2383
|
case 4:
|
|
2384
2384
|
_d.idCaptureVideo = _b;
|
|
2385
2385
|
_c = idCaptureVideoAudioUrl;
|
|
2386
2386
|
if (!_c) return [3 /*break*/, 6];
|
|
2387
2387
|
return [4 /*yield*/, videoDataUrlToB64(idCaptureVideoAudioUrl)];
|
|
2388
2388
|
case 5:
|
|
2389
|
-
_c =
|
|
2390
|
-
|
|
2389
|
+
_c = _j.sent();
|
|
2390
|
+
_j.label = 6;
|
|
2391
2391
|
case 6:
|
|
2392
2392
|
documents = (_d.idCaptureVideoAudio = _c, _d.idCaptureVideoIdFrontImage = idCaptureVideoIdFrontImage, _d.idCaptureVideoIdBackImage = idCaptureVideoIdBackImage, _d);
|
|
2393
2393
|
if (signatureData) {
|
|
@@ -2414,8 +2414,8 @@
|
|
|
2414
2414
|
});
|
|
2415
2415
|
}))];
|
|
2416
2416
|
case 7:
|
|
2417
|
-
|
|
2418
|
-
|
|
2417
|
+
_j.sent();
|
|
2418
|
+
_j.label = 8;
|
|
2419
2419
|
case 8:
|
|
2420
2420
|
submissionRequest = {
|
|
2421
2421
|
securityData: {
|
|
@@ -2470,6 +2470,9 @@
|
|
|
2470
2470
|
selfie: documents.selfieImage
|
|
2471
2471
|
};
|
|
2472
2472
|
}
|
|
2473
|
+
if (idCardForFaceMatch) {
|
|
2474
|
+
(_e = submissionRequest.customerData.idData).idImageFront || (_e.idImageFront = idCardForFaceMatch);
|
|
2475
|
+
}
|
|
2473
2476
|
if (companyId) {
|
|
2474
2477
|
submissionRequest.employee = {
|
|
2475
2478
|
companyId: companyId
|
|
@@ -2482,7 +2485,7 @@
|
|
|
2482
2485
|
submissionRequest.customerData.cardData = cardData;
|
|
2483
2486
|
}
|
|
2484
2487
|
if (enrollmentId) {
|
|
2485
|
-
(
|
|
2488
|
+
(_f = submissionRequest.customerData).personalData || (_f.personalData = {});
|
|
2486
2489
|
submissionRequest.customerData.personalData.uniqueNumber = enrollmentId;
|
|
2487
2490
|
}
|
|
2488
2491
|
if (webhooksClientTraceId) {
|
|
@@ -2506,11 +2509,11 @@
|
|
|
2506
2509
|
});
|
|
2507
2510
|
}
|
|
2508
2511
|
if (documents.idCaptureVideo) {
|
|
2509
|
-
(
|
|
2512
|
+
(_g = submissionRequest.customerData).biometricData || (_g.biometricData = {});
|
|
2510
2513
|
submissionRequest.customerData.biometricData.videoData = documents.idCaptureVideo;
|
|
2511
2514
|
}
|
|
2512
2515
|
if (documents.idCaptureVideoAudio) {
|
|
2513
|
-
(
|
|
2516
|
+
(_h = submissionRequest.customerData).biometricData || (_h.biometricData = {});
|
|
2514
2517
|
submissionRequest.customerData.biometricData.voiceData = documents.idCaptureVideoAudio;
|
|
2515
2518
|
submissionRequest.customerData.biometricData.voiceStartTime = idCaptureVideoAudioStartsAt !== null && idCaptureVideoAudioStartsAt !== void 0 ? idCaptureVideoAudioStartsAt : undefined;
|
|
2516
2519
|
submissionRequest.customerData.biometricData.expectedAudioText = expectedAudioText !== null && expectedAudioText !== void 0 ? expectedAudioText : undefined;
|
|
@@ -2530,15 +2533,15 @@
|
|
|
2530
2533
|
if (!onBeforeSubmit.current) return [3 /*break*/, 10];
|
|
2531
2534
|
return [4 /*yield*/, onBeforeSubmit.current(submissionRequest)];
|
|
2532
2535
|
case 9:
|
|
2533
|
-
onBeforeSubmitResult =
|
|
2536
|
+
onBeforeSubmitResult = _j.sent();
|
|
2534
2537
|
if (onBeforeSubmitResult) submissionRequest = onBeforeSubmitResult;
|
|
2535
|
-
|
|
2538
|
+
_j.label = 10;
|
|
2536
2539
|
case 10:
|
|
2537
2540
|
return [2 /*return*/, submissionRequest];
|
|
2538
2541
|
}
|
|
2539
2542
|
});
|
|
2540
2543
|
});
|
|
2541
|
-
}, [additionalDocuments, bypassAgeValidation, bypassNameMatching, cardData, clientRequestID, companyId, customerDataMatchConfig, deduplicationEnabled, deduplicationSynchronous, documentServiceUrl, enrollmentId, expectedAudioText, geolocationResult, idBackCaptureAttempts, idBackImage, idBackImageRequired, idCaptureVideoAudioStartsAt, idCaptureVideoAudioUrl, idCaptureVideoIdBackImage, idCaptureVideoIdFrontImage, idCaptureVideoUrl, idData, idFrontCaptureAttempts, idFrontImage, idImageResolutionCheck, manualReviewRequired, needImmediateResponse, passportImage, personalData, selfieCaptureAttempts, selfieImage, signatureData, signatureVideoUrl, uploadDocument, verifyIdWithExternalDatabases, webhooksClientTraceId, webhooksEnabled, webhooksFireOnReview, webhooksSendInputImages, webhooksSendProcessedImages, webhooksStripSpecialCharacters]);
|
|
2544
|
+
}, [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]);
|
|
2542
2545
|
var defaultOnSubmit = React.useCallback(function () {
|
|
2543
2546
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
2544
2547
|
var submissionResponse_1, payload, host, endpoint, response, statusMessage, submissionResponse_2, e_1, err;
|
|
@@ -22652,15 +22655,17 @@
|
|
|
22652
22655
|
_o = _a.captureSignatureVideo,
|
|
22653
22656
|
captureSignatureVideo = _o === void 0 ? false : _o,
|
|
22654
22657
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
22655
|
-
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied
|
|
22656
|
-
|
|
22657
|
-
|
|
22658
|
-
|
|
22659
|
-
|
|
22660
|
-
|
|
22661
|
-
|
|
22662
|
-
|
|
22663
|
-
|
|
22658
|
+
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
|
|
22659
|
+
_p = _a.debugMode,
|
|
22660
|
+
debugMode = _p === void 0 ? false : _p;
|
|
22661
|
+
var _q = React.useContext(SubmissionContext),
|
|
22662
|
+
submit = _q.submit,
|
|
22663
|
+
submissionStatus = _q.submissionStatus,
|
|
22664
|
+
setSignatureData = _q.setSignatureData,
|
|
22665
|
+
setAdditionalDocuments = _q.setAdditionalDocuments;
|
|
22666
|
+
var _r = React.useState(0),
|
|
22667
|
+
checkIndex = _r[0],
|
|
22668
|
+
setCheckIndex = _r[1];
|
|
22664
22669
|
var checks = React.useMemo(function () {
|
|
22665
22670
|
var _a, _b;
|
|
22666
22671
|
var checks = __spreadArray([], userChecks, true);
|
|
@@ -22757,9 +22762,11 @@
|
|
|
22757
22762
|
className: "flex"
|
|
22758
22763
|
}, /*#__PURE__*/React.createElement(Spinner$1, null));
|
|
22759
22764
|
case SubmissionStatus.SUBMITTED:
|
|
22760
|
-
return /*#__PURE__*/React.createElement(SubmissionSuccess, null);
|
|
22765
|
+
if (debugMode) return /*#__PURE__*/React.createElement(SubmissionSuccess, null);
|
|
22766
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
22761
22767
|
case SubmissionStatus.FAILED:
|
|
22762
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, "Submission failed!");
|
|
22768
|
+
if (debugMode) return /*#__PURE__*/React.createElement(React.Fragment, null, "Submission failed!");
|
|
22769
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
22763
22770
|
default:
|
|
22764
22771
|
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
22765
22772
|
}
|
|
@@ -23269,7 +23276,8 @@
|
|
|
23269
23276
|
videoSignatureCaptureProps: videoSignatureCaptureProps,
|
|
23270
23277
|
captureSignature: captureSignature,
|
|
23271
23278
|
captureSignatureVideo: captureSignatureVideo,
|
|
23272
|
-
onCameraAccessDenied: onCameraAccessDenied
|
|
23279
|
+
onCameraAccessDenied: onCameraAccessDenied,
|
|
23280
|
+
debugMode: debugMode
|
|
23273
23281
|
}))));
|
|
23274
23282
|
};
|
|
23275
23283
|
|
|
@@ -23375,7 +23383,8 @@
|
|
|
23375
23383
|
return ['FaceLiveness'];
|
|
23376
23384
|
}, []),
|
|
23377
23385
|
faceLivenessProps: faceLivenessProps,
|
|
23378
|
-
onCameraAccessDenied: onCameraAccessDenied
|
|
23386
|
+
onCameraAccessDenied: onCameraAccessDenied,
|
|
23387
|
+
debugMode: debugMode
|
|
23379
23388
|
}))));
|
|
23380
23389
|
};
|
|
23381
23390
|
|
|
@@ -23608,7 +23617,8 @@
|
|
|
23608
23617
|
additionalDocumentCaptureProps: additionalDocumentCaptureProps,
|
|
23609
23618
|
captureSignature: captureSignature,
|
|
23610
23619
|
captureSignatureVideo: captureSignatureVideo,
|
|
23611
|
-
onCameraAccessDenied: onCameraAccessDenied
|
|
23620
|
+
onCameraAccessDenied: onCameraAccessDenied,
|
|
23621
|
+
debugMode: debugMode
|
|
23612
23622
|
}))));
|
|
23613
23623
|
};
|
|
23614
23624
|
|
|
@@ -23863,7 +23873,8 @@
|
|
|
23863
23873
|
videoSignatureCaptureProps: videoSignatureCaptureProps,
|
|
23864
23874
|
captureSignature: captureSignature,
|
|
23865
23875
|
captureSignatureVideo: captureSignatureVideo,
|
|
23866
|
-
onCameraAccessDenied: onCameraAccessDenied
|
|
23876
|
+
onCameraAccessDenied: onCameraAccessDenied,
|
|
23877
|
+
debugMode: debugMode
|
|
23867
23878
|
}))));
|
|
23868
23879
|
};
|
|
23869
23880
|
|
|
@@ -25047,6 +25058,7 @@
|
|
|
25047
25058
|
geolocationEnabled: geolocationEnabled,
|
|
25048
25059
|
geolocationRequired: geolocationRequired
|
|
25049
25060
|
}, /*#__PURE__*/React.createElement(CompositeWizard, {
|
|
25061
|
+
debugMode: debugMode,
|
|
25050
25062
|
checks: React.useMemo(function () {
|
|
25051
25063
|
return ['VideoSignatureCapture'];
|
|
25052
25064
|
}, []),
|
|
@@ -25288,7 +25300,8 @@
|
|
|
25288
25300
|
captureSignature: captureSignature,
|
|
25289
25301
|
captureSignatureVideo: captureSignatureVideo,
|
|
25290
25302
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
25291
|
-
onMicrophoneAccessDenied: onMicrophoneAccessDenied
|
|
25303
|
+
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
25304
|
+
debugMode: debugMode
|
|
25292
25305
|
}))));
|
|
25293
25306
|
};
|
|
25294
25307
|
|
|
@@ -25445,7 +25458,8 @@
|
|
|
25445
25458
|
videoSignatureCaptureProps: videoSignatureCaptureProps,
|
|
25446
25459
|
captureSignature: captureSignature,
|
|
25447
25460
|
captureSignatureVideo: captureSignatureVideo,
|
|
25448
|
-
onCameraAccessDenied: onCameraAccessDenied
|
|
25461
|
+
onCameraAccessDenied: onCameraAccessDenied,
|
|
25462
|
+
debugMode: debugMode
|
|
25449
25463
|
}))));
|
|
25450
25464
|
};
|
|
25451
25465
|
|