idmission-web-sdk 2.2.53 → 2.2.54
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/submission/SubmissionProvider.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +21 -18
- 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 +21 -18
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +21 -18
- 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.54';
|
|
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;
|