idmission-web-sdk 2.2.75 → 2.2.77
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/customer_flows/CustomerBiometricsEnrollment.d.ts +2 -0
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +4 -0
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerIdentification.d.ts +2 -0
- package/dist/components/customer_flows/CustomerIdentification.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerVerification.d.ts +2 -0
- package/dist/components/customer_flows/CustomerVerification.d.ts.map +1 -1
- package/dist/components/customer_flows/FaceValidation.d.ts +2 -0
- package/dist/components/customer_flows/FaceValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +4 -0
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/IdValidation.d.ts +2 -0
- package/dist/components/customer_flows/IdValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/VideoIdValidation.d.ts +2 -0
- package/dist/components/customer_flows/VideoIdValidation.d.ts.map +1 -1
- package/dist/components/submission/SubmissionProvider.d.ts +2 -1
- package/dist/components/submission/SubmissionProvider.d.ts.map +1 -1
- package/dist/components/submission/types.d.ts +1 -0
- package/dist/components/submission/types.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +130 -106
- 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 +130 -106
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +130 -106
- 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
|
@@ -234,7 +234,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
234
234
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
235
235
|
};
|
|
236
236
|
|
|
237
|
-
var webSdkVersion = '2.2.
|
|
237
|
+
var webSdkVersion = '2.2.77';
|
|
238
238
|
|
|
239
239
|
function getPlatform() {
|
|
240
240
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -1176,6 +1176,7 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
1176
1176
|
geolocationRequired = _p === void 0 ? false : _p,
|
|
1177
1177
|
_q = _a.webhooksEnabled,
|
|
1178
1178
|
webhooksEnabled = _q === void 0 ? false : _q,
|
|
1179
|
+
webhooksURL = _a.webhooksURL,
|
|
1179
1180
|
webhooksClientTraceId = _a.webhooksClientTraceId,
|
|
1180
1181
|
_r = _a.webhooksStripSpecialCharacters,
|
|
1181
1182
|
webhooksStripSpecialCharacters = _r === void 0 ? true : _r,
|
|
@@ -1468,6 +1469,7 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
1468
1469
|
bypassAgeValidation: bypassAgeValidation ? 'Y' : 'N',
|
|
1469
1470
|
bypassNameMatching: bypassNameMatching ? 'Y' : 'N',
|
|
1470
1471
|
postDataAPIRequired: webhooksEnabled ? 'Y' : 'N',
|
|
1472
|
+
postDataAPIURL: webhooksURL,
|
|
1471
1473
|
postDataOnReviewRequired: webhooksFireOnReview ? 'Y' : 'N',
|
|
1472
1474
|
sendInputImagesInPost: webhooksSendInputImages ? 'Y' : 'N',
|
|
1473
1475
|
sendProcessedImagesInPost: webhooksSendProcessedImages ? 'Y' : 'N',
|
|
@@ -1573,7 +1575,7 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
1573
1575
|
}
|
|
1574
1576
|
});
|
|
1575
1577
|
});
|
|
1576
|
-
}, [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]);
|
|
1578
|
+
}, [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]);
|
|
1577
1579
|
var defaultOnSubmit = React.useCallback(function () {
|
|
1578
1580
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
1579
1581
|
var submissionResponse_1, payload, host, endpoint, response, statusMessage, submissionResponse_2, e_1, err;
|
|
@@ -13381,6 +13383,7 @@ var IdValidation = function IdValidation(_a) {
|
|
|
13381
13383
|
cardData = _a.cardData,
|
|
13382
13384
|
idData = _a.idData,
|
|
13383
13385
|
webhooksEnabled = _a.webhooksEnabled,
|
|
13386
|
+
webhooksURL = _a.webhooksURL,
|
|
13384
13387
|
webhooksClientTraceId = _a.webhooksClientTraceId,
|
|
13385
13388
|
webhooksStripSpecialCharacters = _a.webhooksStripSpecialCharacters,
|
|
13386
13389
|
webhooksSendInputImages = _a.webhooksSendInputImages,
|
|
@@ -13543,6 +13546,7 @@ var IdValidation = function IdValidation(_a) {
|
|
|
13543
13546
|
cardData: cardData,
|
|
13544
13547
|
idData: idData,
|
|
13545
13548
|
webhooksEnabled: webhooksEnabled,
|
|
13549
|
+
webhooksURL: webhooksURL,
|
|
13546
13550
|
webhooksClientTraceId: webhooksClientTraceId,
|
|
13547
13551
|
webhooksStripSpecialCharacters: webhooksStripSpecialCharacters,
|
|
13548
13552
|
webhooksSendInputImages: webhooksSendInputImages,
|
|
@@ -13585,6 +13589,7 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
13585
13589
|
companyId = _a.companyId,
|
|
13586
13590
|
needImmediateResponse = _a.needImmediateResponse,
|
|
13587
13591
|
webhooksEnabled = _a.webhooksEnabled,
|
|
13592
|
+
webhooksURL = _a.webhooksURL,
|
|
13588
13593
|
webhooksClientTraceId = _a.webhooksClientTraceId,
|
|
13589
13594
|
webhooksStripSpecialCharacters = _a.webhooksStripSpecialCharacters,
|
|
13590
13595
|
webhooksSendInputImages = _a.webhooksSendInputImages,
|
|
@@ -13658,6 +13663,7 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
13658
13663
|
companyId: companyId,
|
|
13659
13664
|
needImmediateResponse: needImmediateResponse,
|
|
13660
13665
|
webhooksEnabled: webhooksEnabled,
|
|
13666
|
+
webhooksURL: webhooksURL,
|
|
13661
13667
|
webhooksClientTraceId: webhooksClientTraceId,
|
|
13662
13668
|
webhooksStripSpecialCharacters: webhooksStripSpecialCharacters,
|
|
13663
13669
|
webhooksSendInputImages: webhooksSendInputImages,
|
|
@@ -13702,6 +13708,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
13702
13708
|
cardData = _a.cardData,
|
|
13703
13709
|
idData = _a.idData,
|
|
13704
13710
|
webhooksEnabled = _a.webhooksEnabled,
|
|
13711
|
+
webhooksURL = _a.webhooksURL,
|
|
13705
13712
|
webhooksClientTraceId = _a.webhooksClientTraceId,
|
|
13706
13713
|
webhooksStripSpecialCharacters = _a.webhooksStripSpecialCharacters,
|
|
13707
13714
|
webhooksSendInputImages = _a.webhooksSendInputImages,
|
|
@@ -13714,35 +13721,37 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
13714
13721
|
idCaptureLoadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
13715
13722
|
_d = _a.idCaptureRequirement,
|
|
13716
13723
|
idCaptureRequirement = _d === void 0 ? 'idCardOrPassport' : _d,
|
|
13717
|
-
_e = _a.
|
|
13718
|
-
|
|
13719
|
-
_f = _a.
|
|
13720
|
-
|
|
13721
|
-
_g = _a.
|
|
13722
|
-
|
|
13723
|
-
_h = _a.
|
|
13724
|
-
|
|
13724
|
+
_e = _a.allowSinglePageIdCapture,
|
|
13725
|
+
allowSinglePageIdCapture = _e === void 0 ? false : _e,
|
|
13726
|
+
_f = _a.idCaptureThresholds,
|
|
13727
|
+
idCaptureThresholds = _f === void 0 ? defaultIdCaptureThresholds : _f,
|
|
13728
|
+
_g = _a.faceLivenessLoadingOverlayMode,
|
|
13729
|
+
faceLivenessLoadingOverlayMode = _g === void 0 ? 'default' : _g,
|
|
13730
|
+
_h = _a.faceLivenessTimeoutDurationMs,
|
|
13731
|
+
faceLivenessTimeoutDurationMs = _h === void 0 ? 15000 : _h,
|
|
13732
|
+
_j = _a.skipSuccessScreen,
|
|
13733
|
+
skipSuccessScreen = _j === void 0 ? false : _j,
|
|
13725
13734
|
idCaptureInstructions = _a.idCaptureInstructions,
|
|
13726
|
-
|
|
13727
|
-
idCaptureGuideType =
|
|
13728
|
-
|
|
13729
|
-
idCaptureGuideImages =
|
|
13730
|
-
|
|
13731
|
-
idCapturePortraitGuidesOnMobile =
|
|
13732
|
-
|
|
13733
|
-
idCaptureRotateLoadingOverlayImageWhenPortrait =
|
|
13734
|
-
|
|
13735
|
-
idCaptureModelLoadTimeoutMs =
|
|
13736
|
-
|
|
13737
|
-
idCaptureForceFallbackMode =
|
|
13738
|
-
|
|
13739
|
-
selfieCaptureModelLoadTimeoutMs =
|
|
13740
|
-
|
|
13741
|
-
allowIdCardBackToFrontCapture =
|
|
13742
|
-
|
|
13743
|
-
enableOverrideWrongDocumentTypeDialog =
|
|
13744
|
-
|
|
13745
|
-
allowOverrideWrongDocumentTypeAfterMs =
|
|
13735
|
+
_k = _a.idCaptureGuideType,
|
|
13736
|
+
idCaptureGuideType = _k === void 0 ? 'fit' : _k,
|
|
13737
|
+
_l = _a.idCaptureGuideImages,
|
|
13738
|
+
idCaptureGuideImages = _l === void 0 ? defaultIdCaptureGuideImages : _l,
|
|
13739
|
+
_m = _a.idCapturePortraitGuidesOnMobile,
|
|
13740
|
+
idCapturePortraitGuidesOnMobile = _m === void 0 ? true : _m,
|
|
13741
|
+
_o = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
13742
|
+
idCaptureRotateLoadingOverlayImageWhenPortrait = _o === void 0 ? true : _o,
|
|
13743
|
+
_p = _a.idCaptureModelLoadTimeoutMs,
|
|
13744
|
+
idCaptureModelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
|
|
13745
|
+
_q = _a.idCaptureForceFallbackMode,
|
|
13746
|
+
idCaptureForceFallbackMode = _q === void 0 ? false : _q,
|
|
13747
|
+
_r = _a.selfieCaptureModelLoadTimeoutMs,
|
|
13748
|
+
selfieCaptureModelLoadTimeoutMs = _r === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _r,
|
|
13749
|
+
_s = _a.allowIdCardBackToFrontCapture,
|
|
13750
|
+
allowIdCardBackToFrontCapture = _s === void 0 ? false : _s,
|
|
13751
|
+
_t = _a.enableOverrideWrongDocumentTypeDialog,
|
|
13752
|
+
enableOverrideWrongDocumentTypeDialog = _t === void 0 ? false : _t,
|
|
13753
|
+
_u = _a.allowOverrideWrongDocumentTypeAfterMs,
|
|
13754
|
+
allowOverrideWrongDocumentTypeAfterMs = _u === void 0 ? 8000 : _u,
|
|
13746
13755
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
13747
13756
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
13748
13757
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -13759,28 +13768,28 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
13759
13768
|
onIdCaptureModelError = _a.onIdCaptureModelError,
|
|
13760
13769
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
13761
13770
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
13762
|
-
|
|
13763
|
-
captureSignature =
|
|
13764
|
-
|
|
13765
|
-
captureSignatureVideo =
|
|
13766
|
-
|
|
13767
|
-
captureAdditionalDocuments =
|
|
13768
|
-
|
|
13769
|
-
theme =
|
|
13770
|
-
|
|
13771
|
-
assets =
|
|
13772
|
-
|
|
13773
|
-
classNames =
|
|
13774
|
-
|
|
13775
|
-
colors =
|
|
13776
|
-
|
|
13777
|
-
verbiage =
|
|
13778
|
-
|
|
13779
|
-
geolocationEnabled =
|
|
13780
|
-
|
|
13781
|
-
geolocationRequired =
|
|
13782
|
-
|
|
13783
|
-
debugMode =
|
|
13771
|
+
_v = _a.captureSignature,
|
|
13772
|
+
captureSignature = _v === void 0 ? false : _v,
|
|
13773
|
+
_w = _a.captureSignatureVideo,
|
|
13774
|
+
captureSignatureVideo = _w === void 0 ? false : _w,
|
|
13775
|
+
_x = _a.captureAdditionalDocuments,
|
|
13776
|
+
captureAdditionalDocuments = _x === void 0 ? [] : _x,
|
|
13777
|
+
_y = _a.theme,
|
|
13778
|
+
theme = _y === void 0 ? 'default' : _y,
|
|
13779
|
+
_z = _a.assets,
|
|
13780
|
+
assets = _z === void 0 ? {} : _z,
|
|
13781
|
+
_0 = _a.classNames,
|
|
13782
|
+
classNames = _0 === void 0 ? {} : _0,
|
|
13783
|
+
_1 = _a.colors,
|
|
13784
|
+
colors = _1 === void 0 ? {} : _1,
|
|
13785
|
+
_2 = _a.verbiage,
|
|
13786
|
+
verbiage = _2 === void 0 ? {} : _2,
|
|
13787
|
+
_3 = _a.geolocationEnabled,
|
|
13788
|
+
geolocationEnabled = _3 === void 0 ? true : _3,
|
|
13789
|
+
_4 = _a.geolocationRequired,
|
|
13790
|
+
geolocationRequired = _4 === void 0 ? false : _4,
|
|
13791
|
+
_5 = _a.debugMode,
|
|
13792
|
+
debugMode = _5 === void 0 ? false : _5;
|
|
13784
13793
|
useLanguage(lang);
|
|
13785
13794
|
useDebugLogging(debugMode);
|
|
13786
13795
|
var idCaptureProps = React.useMemo(function () {
|
|
@@ -13794,6 +13803,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
13794
13803
|
verbiage: verbiage.idCapture,
|
|
13795
13804
|
precapturedDocuments: precapturedDocuments,
|
|
13796
13805
|
captureRequirement: idCaptureRequirement,
|
|
13806
|
+
allowSinglePageIdCapture: allowSinglePageIdCapture,
|
|
13797
13807
|
thresholds: idCaptureThresholds,
|
|
13798
13808
|
loadingOverlayMode: idCaptureLoadingOverlayMode,
|
|
13799
13809
|
instructions: idCaptureInstructions,
|
|
@@ -13809,7 +13819,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
13809
13819
|
skipSuccessScreen: skipSuccessScreen,
|
|
13810
13820
|
debugMode: debugMode
|
|
13811
13821
|
};
|
|
13812
|
-
}, [onExitCapture, onUserCancel, onIdCaptureModelError, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, idCaptureForceFallbackMode, skipSuccessScreen, debugMode]);
|
|
13822
|
+
}, [onExitCapture, onUserCancel, onIdCaptureModelError, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, allowSinglePageIdCapture, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, idCaptureForceFallbackMode, skipSuccessScreen, debugMode]);
|
|
13813
13823
|
var faceLivenessProps = React.useMemo(function () {
|
|
13814
13824
|
return {
|
|
13815
13825
|
loadingOverlayMode: faceLivenessLoadingOverlayMode,
|
|
@@ -13883,6 +13893,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
13883
13893
|
cardData: cardData,
|
|
13884
13894
|
idData: idData,
|
|
13885
13895
|
webhooksEnabled: webhooksEnabled,
|
|
13896
|
+
webhooksURL: webhooksURL,
|
|
13886
13897
|
webhooksClientTraceId: webhooksClientTraceId,
|
|
13887
13898
|
webhooksStripSpecialCharacters: webhooksStripSpecialCharacters,
|
|
13888
13899
|
webhooksSendInputImages: webhooksSendInputImages,
|
|
@@ -13940,6 +13951,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
13940
13951
|
deduplicationEnabled = _a.deduplicationEnabled,
|
|
13941
13952
|
deduplicationSynchronous = _a.deduplicationSynchronous,
|
|
13942
13953
|
webhooksEnabled = _a.webhooksEnabled,
|
|
13954
|
+
webhooksURL = _a.webhooksURL,
|
|
13943
13955
|
webhooksClientTraceId = _a.webhooksClientTraceId,
|
|
13944
13956
|
webhooksStripSpecialCharacters = _a.webhooksStripSpecialCharacters,
|
|
13945
13957
|
webhooksSendInputImages = _a.webhooksSendInputImages,
|
|
@@ -13951,35 +13963,37 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
13951
13963
|
idCaptureLoadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
13952
13964
|
_d = _a.idCaptureRequirement,
|
|
13953
13965
|
idCaptureRequirement = _d === void 0 ? 'idCardOrPassport' : _d,
|
|
13954
|
-
_e = _a.
|
|
13955
|
-
|
|
13956
|
-
_f = _a.
|
|
13957
|
-
|
|
13958
|
-
_g = _a.
|
|
13959
|
-
|
|
13960
|
-
_h = _a.
|
|
13961
|
-
|
|
13966
|
+
_e = _a.allowSinglePageIdCapture,
|
|
13967
|
+
allowSinglePageIdCapture = _e === void 0 ? false : _e,
|
|
13968
|
+
_f = _a.idCaptureThresholds,
|
|
13969
|
+
idCaptureThresholds = _f === void 0 ? defaultIdCaptureThresholds : _f,
|
|
13970
|
+
_g = _a.faceLivenessTimeoutDurationMs,
|
|
13971
|
+
faceLivenessTimeoutDurationMs = _g === void 0 ? 15000 : _g,
|
|
13972
|
+
_h = _a.faceLivenessLoadingOverlayMode,
|
|
13973
|
+
faceLivenessLoadingOverlayMode = _h === void 0 ? 'default' : _h,
|
|
13974
|
+
_j = _a.skipSuccessScreen,
|
|
13975
|
+
skipSuccessScreen = _j === void 0 ? false : _j,
|
|
13962
13976
|
idCaptureInstructions = _a.idCaptureInstructions,
|
|
13963
|
-
|
|
13964
|
-
idCaptureGuideType =
|
|
13965
|
-
|
|
13966
|
-
idCaptureGuideImages =
|
|
13967
|
-
|
|
13968
|
-
idCapturePortraitGuidesOnMobile =
|
|
13969
|
-
|
|
13970
|
-
idCaptureRotateLoadingOverlayImageWhenPortrait =
|
|
13971
|
-
|
|
13972
|
-
idCaptureModelLoadTimeoutMs =
|
|
13973
|
-
|
|
13974
|
-
idCaptureForceFallbackMode =
|
|
13975
|
-
|
|
13976
|
-
selfieCaptureModelLoadTimeoutMs =
|
|
13977
|
-
|
|
13978
|
-
allowIdCardBackToFrontCapture =
|
|
13979
|
-
|
|
13980
|
-
enableOverrideWrongDocumentTypeDialog =
|
|
13981
|
-
|
|
13982
|
-
allowOverrideWrongDocumentTypeAfterMs =
|
|
13977
|
+
_k = _a.idCaptureGuideType,
|
|
13978
|
+
idCaptureGuideType = _k === void 0 ? 'fit' : _k,
|
|
13979
|
+
_l = _a.idCaptureGuideImages,
|
|
13980
|
+
idCaptureGuideImages = _l === void 0 ? defaultIdCaptureGuideImages : _l,
|
|
13981
|
+
_m = _a.idCapturePortraitGuidesOnMobile,
|
|
13982
|
+
idCapturePortraitGuidesOnMobile = _m === void 0 ? true : _m,
|
|
13983
|
+
_o = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
13984
|
+
idCaptureRotateLoadingOverlayImageWhenPortrait = _o === void 0 ? true : _o,
|
|
13985
|
+
_p = _a.idCaptureModelLoadTimeoutMs,
|
|
13986
|
+
idCaptureModelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
|
|
13987
|
+
_q = _a.idCaptureForceFallbackMode,
|
|
13988
|
+
idCaptureForceFallbackMode = _q === void 0 ? false : _q,
|
|
13989
|
+
_r = _a.selfieCaptureModelLoadTimeoutMs,
|
|
13990
|
+
selfieCaptureModelLoadTimeoutMs = _r === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _r,
|
|
13991
|
+
_s = _a.allowIdCardBackToFrontCapture,
|
|
13992
|
+
allowIdCardBackToFrontCapture = _s === void 0 ? false : _s,
|
|
13993
|
+
_t = _a.enableOverrideWrongDocumentTypeDialog,
|
|
13994
|
+
enableOverrideWrongDocumentTypeDialog = _t === void 0 ? false : _t,
|
|
13995
|
+
_u = _a.allowOverrideWrongDocumentTypeAfterMs,
|
|
13996
|
+
allowOverrideWrongDocumentTypeAfterMs = _u === void 0 ? 8000 : _u,
|
|
13983
13997
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
13984
13998
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
13985
13999
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -13995,31 +14009,31 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
13995
14009
|
onIdCaptureModelError = _a.onIdCaptureModelError,
|
|
13996
14010
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
13997
14011
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
13998
|
-
|
|
13999
|
-
captureSignature =
|
|
14000
|
-
|
|
14001
|
-
captureSignatureVideo =
|
|
14002
|
-
|
|
14003
|
-
captureAdditionalDocuments =
|
|
14004
|
-
|
|
14005
|
-
captureVideoId =
|
|
14012
|
+
_v = _a.captureSignature,
|
|
14013
|
+
captureSignature = _v === void 0 ? false : _v,
|
|
14014
|
+
_w = _a.captureSignatureVideo,
|
|
14015
|
+
captureSignatureVideo = _w === void 0 ? false : _w,
|
|
14016
|
+
_x = _a.captureAdditionalDocuments,
|
|
14017
|
+
captureAdditionalDocuments = _x === void 0 ? [] : _x,
|
|
14018
|
+
_y = _a.captureVideoId,
|
|
14019
|
+
captureVideoId = _y === void 0 ? false : _y,
|
|
14006
14020
|
captureVideoIdProps = _a.captureVideoIdProps,
|
|
14007
|
-
|
|
14008
|
-
theme =
|
|
14009
|
-
|
|
14010
|
-
assets =
|
|
14011
|
-
|
|
14012
|
-
classNames =
|
|
14013
|
-
|
|
14014
|
-
colors =
|
|
14015
|
-
|
|
14016
|
-
verbiage =
|
|
14017
|
-
|
|
14018
|
-
geolocationEnabled =
|
|
14019
|
-
|
|
14020
|
-
geolocationRequired =
|
|
14021
|
-
|
|
14022
|
-
debugMode =
|
|
14021
|
+
_z = _a.theme,
|
|
14022
|
+
theme = _z === void 0 ? 'default' : _z,
|
|
14023
|
+
_0 = _a.assets,
|
|
14024
|
+
assets = _0 === void 0 ? {} : _0,
|
|
14025
|
+
_1 = _a.classNames,
|
|
14026
|
+
classNames = _1 === void 0 ? {} : _1,
|
|
14027
|
+
_2 = _a.colors,
|
|
14028
|
+
colors = _2 === void 0 ? {} : _2,
|
|
14029
|
+
_3 = _a.verbiage,
|
|
14030
|
+
verbiage = _3 === void 0 ? {} : _3,
|
|
14031
|
+
_4 = _a.geolocationEnabled,
|
|
14032
|
+
geolocationEnabled = _4 === void 0 ? true : _4,
|
|
14033
|
+
_5 = _a.geolocationRequired,
|
|
14034
|
+
geolocationRequired = _5 === void 0 ? false : _5,
|
|
14035
|
+
_6 = _a.debugMode,
|
|
14036
|
+
debugMode = _6 === void 0 ? false : _6;
|
|
14023
14037
|
useLanguage(lang);
|
|
14024
14038
|
useDebugLogging(debugMode);
|
|
14025
14039
|
var idCaptureProps = React.useMemo(function () {
|
|
@@ -14029,6 +14043,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
14029
14043
|
colors: colors.idCapture,
|
|
14030
14044
|
verbiage: verbiage.idCapture,
|
|
14031
14045
|
captureRequirement: idCaptureRequirement,
|
|
14046
|
+
allowSinglePageIdCapture: allowSinglePageIdCapture,
|
|
14032
14047
|
thresholds: idCaptureThresholds,
|
|
14033
14048
|
loadingOverlayMode: idCaptureLoadingOverlayMode,
|
|
14034
14049
|
instructions: idCaptureInstructions,
|
|
@@ -14047,7 +14062,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
14047
14062
|
skipSuccessScreen: skipSuccessScreen,
|
|
14048
14063
|
debugMode: debugMode
|
|
14049
14064
|
};
|
|
14050
|
-
}, [assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, idCaptureForceFallbackMode, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
|
|
14065
|
+
}, [assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, idCaptureRequirement, allowSinglePageIdCapture, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, idCaptureForceFallbackMode, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
|
|
14051
14066
|
var faceLivenessProps = React.useMemo(function () {
|
|
14052
14067
|
return {
|
|
14053
14068
|
onExitCapture: onExitCapture,
|
|
@@ -14140,6 +14155,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
14140
14155
|
deduplicationEnabled: deduplicationEnabled,
|
|
14141
14156
|
deduplicationSynchronous: deduplicationSynchronous,
|
|
14142
14157
|
webhooksEnabled: webhooksEnabled,
|
|
14158
|
+
webhooksURL: webhooksURL,
|
|
14143
14159
|
webhooksClientTraceId: webhooksClientTraceId,
|
|
14144
14160
|
webhooksStripSpecialCharacters: webhooksStripSpecialCharacters,
|
|
14145
14161
|
webhooksSendInputImages: webhooksSendInputImages,
|
|
@@ -14638,6 +14654,7 @@ var CustomerVerification = function CustomerVerification(_a) {
|
|
|
14638
14654
|
companyId = _a.companyId,
|
|
14639
14655
|
needImmediateResponse = _a.needImmediateResponse,
|
|
14640
14656
|
webhooksEnabled = _a.webhooksEnabled,
|
|
14657
|
+
webhooksURL = _a.webhooksURL,
|
|
14641
14658
|
webhooksClientTraceId = _a.webhooksClientTraceId,
|
|
14642
14659
|
webhooksStripSpecialCharacters = _a.webhooksStripSpecialCharacters,
|
|
14643
14660
|
webhooksSendInputImages = _a.webhooksSendInputImages,
|
|
@@ -14692,6 +14709,7 @@ var CustomerVerification = function CustomerVerification(_a) {
|
|
|
14692
14709
|
enrollmentId: enrollmentId,
|
|
14693
14710
|
needImmediateResponse: needImmediateResponse,
|
|
14694
14711
|
webhooksEnabled: webhooksEnabled,
|
|
14712
|
+
webhooksURL: webhooksURL,
|
|
14695
14713
|
webhooksClientTraceId: webhooksClientTraceId,
|
|
14696
14714
|
webhooksStripSpecialCharacters: webhooksStripSpecialCharacters,
|
|
14697
14715
|
webhooksSendInputImages: webhooksSendInputImages,
|
|
@@ -15194,6 +15212,7 @@ var CustomerIdentification = function CustomerIdentification(_a) {
|
|
|
15194
15212
|
companyId = _a.companyId,
|
|
15195
15213
|
needImmediateResponse = _a.needImmediateResponse,
|
|
15196
15214
|
webhooksEnabled = _a.webhooksEnabled,
|
|
15215
|
+
webhooksURL = _a.webhooksURL,
|
|
15197
15216
|
webhooksClientTraceId = _a.webhooksClientTraceId,
|
|
15198
15217
|
webhooksStripSpecialCharacters = _a.webhooksStripSpecialCharacters,
|
|
15199
15218
|
webhooksSendInputImages = _a.webhooksSendInputImages,
|
|
@@ -15247,6 +15266,7 @@ var CustomerIdentification = function CustomerIdentification(_a) {
|
|
|
15247
15266
|
companyId: companyId,
|
|
15248
15267
|
needImmediateResponse: needImmediateResponse,
|
|
15249
15268
|
webhooksEnabled: webhooksEnabled,
|
|
15269
|
+
webhooksURL: webhooksURL,
|
|
15250
15270
|
webhooksClientTraceId: webhooksClientTraceId,
|
|
15251
15271
|
webhooksStripSpecialCharacters: webhooksStripSpecialCharacters,
|
|
15252
15272
|
webhooksSendInputImages: webhooksSendInputImages,
|
|
@@ -15398,6 +15418,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
15398
15418
|
cardData = _a.cardData,
|
|
15399
15419
|
idData = _a.idData,
|
|
15400
15420
|
webhooksEnabled = _a.webhooksEnabled,
|
|
15421
|
+
webhooksURL = _a.webhooksURL,
|
|
15401
15422
|
webhooksClientTraceId = _a.webhooksClientTraceId,
|
|
15402
15423
|
webhooksStripSpecialCharacters = _a.webhooksStripSpecialCharacters,
|
|
15403
15424
|
webhooksSendInputImages = _a.webhooksSendInputImages,
|
|
@@ -15565,6 +15586,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
15565
15586
|
cardData: cardData,
|
|
15566
15587
|
idData: idData,
|
|
15567
15588
|
webhooksEnabled: webhooksEnabled,
|
|
15589
|
+
webhooksURL: webhooksURL,
|
|
15568
15590
|
webhooksClientTraceId: webhooksClientTraceId,
|
|
15569
15591
|
webhooksStripSpecialCharacters: webhooksStripSpecialCharacters,
|
|
15570
15592
|
webhooksSendInputImages: webhooksSendInputImages,
|
|
@@ -15612,6 +15634,7 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
15612
15634
|
deduplicationEnabled = _a.deduplicationEnabled,
|
|
15613
15635
|
deduplicationSynchronous = _a.deduplicationSynchronous,
|
|
15614
15636
|
webhooksEnabled = _a.webhooksEnabled,
|
|
15637
|
+
webhooksURL = _a.webhooksURL,
|
|
15615
15638
|
webhooksClientTraceId = _a.webhooksClientTraceId,
|
|
15616
15639
|
webhooksStripSpecialCharacters = _a.webhooksStripSpecialCharacters,
|
|
15617
15640
|
webhooksSendInputImages = _a.webhooksSendInputImages,
|
|
@@ -15727,6 +15750,7 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
15727
15750
|
deduplicationEnabled: deduplicationEnabled,
|
|
15728
15751
|
deduplicationSynchronous: deduplicationSynchronous,
|
|
15729
15752
|
webhooksEnabled: webhooksEnabled,
|
|
15753
|
+
webhooksURL: webhooksURL,
|
|
15730
15754
|
webhooksClientTraceId: webhooksClientTraceId,
|
|
15731
15755
|
webhooksStripSpecialCharacters: webhooksStripSpecialCharacters,
|
|
15732
15756
|
webhooksSendInputImages: webhooksSendInputImages,
|