idmission-web-sdk 1.0.48 → 1.0.49
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/README.md +16 -16
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts +4 -4
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +4 -4
- package/dist/components/customer_flows/CustomerIdentification.d.ts +4 -4
- package/dist/components/customer_flows/CustomerVerification.d.ts +4 -4
- package/dist/components/customer_flows/FaceValidation.d.ts +4 -4
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +4 -4
- package/dist/components/customer_flows/IdValidation.d.ts +4 -4
- package/dist/components/customer_flows/SignatureKYC.d.ts +2 -2
- package/dist/components/customer_flows/VideoIdValidation.d.ts +3 -3
- package/dist/components/customer_identification/CustomerIdentificationCapture.d.ts +3 -3
- package/dist/components/customer_identification/CustomerIdentificationWizard.d.ts +4 -4
- package/dist/components/customer_verification/CustomerVerificationCapture.d.ts +3 -3
- package/dist/components/customer_verification/CustomerVerificationWizard.d.ts +4 -4
- package/dist/components/face_liveness/FaceLivenessWizard.d.ts +5 -5
- package/dist/components/submission/SubmissionProvider.d.ts +2 -2
- package/dist/components/video_id/IdVideoCaptureWizard.d.ts +2 -2
- package/dist/lib/locales/index.d.ts +1 -0
- package/dist/sdk2.cjs.development.js +78 -69
- 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 +76 -67
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +11249 -11240
- 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/stories/CustomerFlows/CustomerBiometricsEnrollment.stories.d.ts +92 -14
- package/dist/stories/CustomerFlows/CustomerIdAndBiometricsEnrollment.stories.d.ts +121 -11
- package/dist/stories/CustomerFlows/CustomerIdentification.stories.d.ts +83 -13
- package/dist/stories/CustomerFlows/CustomerVerification.stories.d.ts +77 -13
- package/dist/stories/CustomerFlows/FaceValidation.stories.d.ts +77 -15
- package/dist/stories/CustomerFlows/IdAndFaceValidation.stories.d.ts +116 -16
- package/dist/stories/CustomerFlows/IdValidation.stories.d.ts +108 -20
- package/dist/stories/CustomerFlows/SignatureKYC.stories.d.ts +44 -14
- package/dist/stories/CustomerFlows/VideoIdValidation.stories.d.ts +95 -33
- package/dist/stories/utils/getToken.d.ts +1 -0
- package/dist/version.d.ts +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -54,9 +54,9 @@ Render a fullscreen ID capture component that instructs the user to photograph b
|
|
|
54
54
|
<tr><td><code>submissionToken</code></td><td>a token generated with your IDmission credentials.</td></tr>
|
|
55
55
|
<tr><td><code>submissionUrl</code></td><td>URL to hit with all API requests. Default: https://api.idmission.com</td></tr>
|
|
56
56
|
<tr><td><code>onBeforeSubmit</code> (optional)</td><td>callback function that fires immediately prior to submission, giving the client application an opportunity to specify custom asynchronous logic that mutates the request before it executes. The submission request is passed in as a parameter and a promise resolving to the updated request should be returned.</td></tr>
|
|
57
|
-
<tr><td><code>onComplete</code> (optional)</td><td>callback function that fires when the user completes the IDValidation flow.
|
|
58
|
-
<tr><td><code>onApproved</code> (optional)</td><td>callback function that fires when the user completes the IDValidation flow with a valid ID.
|
|
59
|
-
<tr><td><code>onDenied</code> (optional)</td><td>callback function that fires when the user completes the IDValidation flow with an invalid ID.
|
|
57
|
+
<tr><td><code>onComplete</code> (optional)</td><td>callback function that fires when the user completes the IDValidation flow. Arguments: the SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check, and the request payload dispatched to IDmission's API, which contains the images submitted by the user.</td></tr>
|
|
58
|
+
<tr><td><code>onApproved</code> (optional)</td><td>callback function that fires when the user completes the IDValidation flow with a valid ID. Arguments: same as onComplete.</td></tr>
|
|
59
|
+
<tr><td><code>onDenied</code> (optional)</td><td>callback function that fires when the user completes the IDValidation flow with an invalid ID. Arguments: same as onComplete.</td></tr>
|
|
60
60
|
<tr><td><code>lang</code> (optional)</td><td>language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto.</td></tr>
|
|
61
61
|
<tr><td><code>captureSignature</code> (optional)</td><td>boolean indicating whether the user should be prompted to sign the screen before submission. Defaults to false.</td></tr>
|
|
62
62
|
<tr><td><code>captureSignatureVideo</code> (optional)</td><td>boolean indicating whether the user should be prompted to record themselves signing the screen before submission. Defaults to false.</td></tr>
|
|
@@ -69,7 +69,7 @@ Render a fullscreen ID capture component that instructs the user to photograph b
|
|
|
69
69
|
<tr><td><code>skipSuccessScreen</code> (optional)</td><td>boolean to indicate whether to proceed automatically after capture guidance is satisfied. If an async function is supplied returning a boolean, it will be evaluated at the time of capture guidance satisfaction. Defaults to false.</td></tr>
|
|
70
70
|
<tr><td><code>companyId</code> (optional)</td><td>company identifier to include with submission.</td></tr>
|
|
71
71
|
<tr><td><code>manualReviewRequired</code> (optional)</td><td>boolean flag to indicate whether responses should always be reviewed by a human.</td></tr>
|
|
72
|
-
<tr><td><code>idBackImageRequired</code> (optional)</td><td>boolean flag to indicate whether ID card
|
|
72
|
+
<tr><td><code>idBackImageRequired</code> (optional)</td><td>boolean flag to indicate whether the back of the ID card image will be considered in processing decisions. Default is `true`.</td></tr>
|
|
73
73
|
<tr><td><code>verifyIdWithExternalDatabases</code> (optional)</td><td>boolean flag to indicate whether ID data should be verified with government databases such as AAMVA, watch lists, etc.</td></tr>
|
|
74
74
|
<tr><td><code>personalData</code> (optional)</td><td>object of personal data to store with the submitted ID. Valid keys: uniqueNumber, name, phone, phoneCountryCode, email, dob, gender, addressLine1, addressLine2, city, district, postalCode, country.</td></tr>
|
|
75
75
|
<tr><td><code>cardData</code> (optional)</td><td>object of credit/debit card data to store with the submitted ID. Valid keys: cardToken, cardLast4, cardExpDate, nameOnCard.</td></tr>
|
|
@@ -188,9 +188,9 @@ Render a fullscreen capture component that analyzes frames from the user's front
|
|
|
188
188
|
<tr><td><code>submissionToken</code></td><td>a token generated with your IDmission credentials.</td></tr>
|
|
189
189
|
<tr><td><code>submissionUrl</code></td><td>URL to hit with all API requests. Default: https://api.idmission.com</td></tr>
|
|
190
190
|
<tr><td><code>onBeforeSubmit</code> (optional)</td><td>callback function that fires immediately prior to submission, giving the client application an opportunity to specify custom asynchronous logic that mutates the request before it executes. The submission request is passed in as a parameter and a promise resolving to the updated request should be returned.</td></tr>
|
|
191
|
-
<tr><td><code>onComplete</code> (optional)</td><td>callback function that fires when the user has completed the FaceValidation flow.
|
|
192
|
-
<tr><td><code>onApproved</code> (optional)</td><td>callback function that fires when the user completes the IDValidation flow and passes the realness check.
|
|
193
|
-
<tr><td><code>onDenied</code> (optional)</td><td>callback function that fires when the user completes the IDValidation flow and fails the realness check.
|
|
191
|
+
<tr><td><code>onComplete</code> (optional)</td><td>callback function that fires when the user has completed the FaceValidation flow, regardless of whether they are approved or denied. Arguments: the SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check, and the request payload dispatched to IDmission's API, which contains the images submitted by the user.</td></tr>
|
|
192
|
+
<tr><td><code>onApproved</code> (optional)</td><td>callback function that fires when the user completes the IDValidation flow and passes the realness check. Arguments: same as onComplete.</td></tr>
|
|
193
|
+
<tr><td><code>onDenied</code> (optional)</td><td>callback function that fires when the user completes the IDValidation flow and fails the realness check. Arguments: same as onComplete.</td></tr>
|
|
194
194
|
<tr><td><code>onExitAfterFailure</code> (optional)</td><td>callback function that fires when the user clicks the exit button after completing the IDValidation flow and failing the realness check.</td></tr>
|
|
195
195
|
<tr><td><code>lang</code> (optional)</td><td>language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto.</td></tr>
|
|
196
196
|
<tr><td><code>timeoutDurationMs</code> (optional)</td><td>the duration of time in milliseconds that the user may try to pass the realness check. Defaults to `15000` (15 seconds).</td></tr>
|
|
@@ -294,9 +294,9 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
294
294
|
<tr><td><code>submissionToken</code></td><td>a token generated with your IDmission credentials.</td></tr>
|
|
295
295
|
<tr><td><code>submissionUrl</code></td><td>URL to hit with all API requests. Default: https://api.idmission.com</td></tr>
|
|
296
296
|
<tr><td><code>onBeforeSubmit</code> (optional)</td><td>callback function that fires immediately prior to submission, giving the client application an opportunity to specify custom asynchronous logic that mutates the request before it executes. The submission request is passed in as a parameter and a promise resolving to the updated request should be returned.</td></tr>
|
|
297
|
-
<tr><td><code>onComplete</code> (optional)</td><td>callback function that fires when the user has completed both flows.
|
|
298
|
-
<tr><td><code>onApproved</code> (optional)</td><td>callback function that fires when the user completes both flows with a valid ID and passes the realness check.
|
|
299
|
-
<tr><td><code>onDenied</code> (optional)</td><td>callback function that fires when the user completes both flows with an invalid ID or fails the realness check.
|
|
297
|
+
<tr><td><code>onComplete</code> (optional)</td><td>callback function that fires when the user has completed both flows. Arguments: the SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check, and the request payload dispatched to IDmission's API, which contains the images submitted by the user.</td></tr>
|
|
298
|
+
<tr><td><code>onApproved</code> (optional)</td><td>callback function that fires when the user completes both flows with a valid ID and passes the realness check. Arguments: same as onComplete.</td></tr>
|
|
299
|
+
<tr><td><code>onDenied</code> (optional)</td><td>callback function that fires when the user completes both flows with an invalid ID or fails the realness check. Arguments: same as onComplete.</td></tr>
|
|
300
300
|
<tr><td><code>onExitAfterFailure</code> (optional)</td><td>callback function that fires when the user clicks the exit button after completing the IDValidation flow and failing the realness check.</td></tr>
|
|
301
301
|
<tr><td><code>captureSignature</code> (optional)</td><td>boolean indicating whether the user should be prompted to sign the screen before submission. Defaults to false.</td></tr>
|
|
302
302
|
<tr><td><code>captureSignatureVideo</code> (optional)</td><td>boolean indicating whether the user should be prompted to record themselves signing the screen before submission. Defaults to false.</td></tr>
|
|
@@ -311,7 +311,7 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
311
311
|
<tr><td><code>skipSuccessScreen</code> (optional)</td><td>boolean to indicate whether to proceed automatically after capture guidance is satisfied. If an async function is supplied returning a boolean, it will be evaluated at the time of capture guidance satisfaction. Defaults to false.</td></tr>
|
|
312
312
|
<tr><td><code>companyId</code> (optional)</td><td>company identifier to include with submission.</td></tr>
|
|
313
313
|
<tr><td><code>manualReviewRequired</code> (optional)</td><td>boolean flag to indicate whether responses should always be reviewed by a human.</td></tr>
|
|
314
|
-
<tr><td><code>idBackImageRequired</code> (optional)</td><td>boolean flag to indicate whether ID card
|
|
314
|
+
<tr><td><code>idBackImageRequired</code> (optional)</td><td>boolean flag to indicate whether the back of the ID card image will be considered in processing decisions. Default is `true</td></tr>
|
|
315
315
|
<tr><td><code>verifyIdWithExternalDatabases</code> (optional)</td><td>boolean flag to indicate whether ID data should be verified with government databases such as AAMVA, watch lists, etc.</td></tr>
|
|
316
316
|
<tr><td><code>personalData</code> (optional)</td><td>object of personal data to store with the submitted ID. Valid keys: uniqueNumber, name, phone, phoneCountryCode, email, dob, gender, addressLine1, addressLine2, city, district, postalCode, country.</td></tr>
|
|
317
317
|
<tr><td><code>cardData</code> (optional)</td><td>object of credit/debit card data to store with the submitted ID. Valid keys: cardToken, cardLast4, cardExpDate, nameOnCard.</td></tr>
|
|
@@ -356,7 +356,7 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
356
356
|
<tr><td><code>submissionUrl</code></td><td>URL to hit with all API requests. Default: https://api.idmission.com</td></tr>
|
|
357
357
|
<tr><td><code>enrollmentId</code></td><td>the unique identifier to use for the customer to be enrolled. Overrides <code>personalData.uniqueNumber</code> if both are specified.</td></tr>
|
|
358
358
|
<tr><td><code>onBeforeSubmit</code> (optional)</td><td>callback function that fires immediately prior to submission, giving the client application an opportunity to specify custom asynchronous logic that mutates the request before it executes. The submission request is passed in as a parameter and a promise resolving to the updated request should be returned.</td></tr>
|
|
359
|
-
<tr><td><code>onComplete</code> (optional)</td><td>callback function that fires when the user has completed the CustomerIdAndBiometricsEnrollment flow.
|
|
359
|
+
<tr><td><code>onComplete</code> (optional)</td><td>callback function that fires when the user has completed the CustomerIdAndBiometricsEnrollment flow. Arguments: the SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check, and the request payload dispatched to IDmission's API, which contains the images submitted by the user.</td></tr>
|
|
360
360
|
<tr><td><code>onEnrolled</code> (optional)</td><td>callback function that fires when the user has completed the CustomerIdAndBiometricsEnrollment flow successfully. The SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check.</td></tr>
|
|
361
361
|
<tr><td><code>onDenied</code> (optional)</td><td>callback function that fires when the user has completed the CustomerIdAndBiometricsEnrollment flow but could not be enrolled. The SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check.</td></tr>
|
|
362
362
|
<tr><td><code>onExitAfterFailure</code> (optional)</td><td>callback function that fires when the user clicks the exit button after completing the IDValidation flow and failing the realness check.</td></tr>
|
|
@@ -373,7 +373,7 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
373
373
|
<tr><td><code>skipSuccessScreen</code> (optional)</td><td>boolean to indicate whether to proceed automatically after capture guidance is satisfied. If an async function is supplied returning a boolean, it will be evaluated at the time of capture guidance satisfaction. Defaults to false.</td></tr>
|
|
374
374
|
<tr><td><code>companyId</code> (optional)</td><td>company identifier to include with submission.</td></tr>
|
|
375
375
|
<tr><td><code>manualReviewRequired</code> (optional)</td><td>boolean flag to indicate whether responses should always be reviewed by a human.</td></tr>
|
|
376
|
-
<tr><td><code>idBackImageRequired</code> (optional)</td><td>boolean flag to indicate whether ID card
|
|
376
|
+
<tr><td><code>idBackImageRequired</code> (optional)</td><td>boolean flag to indicate whether the back of the ID card image will be considered in processing decisions. Default is `true</td></tr>
|
|
377
377
|
<tr><td><code>verifyIdWithExternalDatabases</code> (optional)</td><td>boolean flag to indicate whether ID data should be verified with government databases such as AAMVA, watch lists, etc.</td></tr>
|
|
378
378
|
<tr><td><code>personalData</code> (optional)</td><td>object of personal data to store with the submitted ID. Valid keys: uniqueNumber, name, phone, phoneCountryCode, email, dob, gender, addressLine1, addressLine2, city, district, postalCode, country.</td></tr>
|
|
379
379
|
<tr><td><code>cardData</code> (optional)</td><td>object of credit/debit card data to store with the submitted ID. Valid keys: cardToken, cardLast4, cardExpDate, nameOnCard.</td></tr>
|
|
@@ -417,7 +417,7 @@ Render a fullscreen capture component that performs FaceValidation, and then sto
|
|
|
417
417
|
<tr><td><code>submissionUrl</code></td><td>URL to hit with all API requests. Default: https://api.idmission.com</td></tr>
|
|
418
418
|
<tr><td><code>enrollmentId</code></td><td>the unique identifier to use for the customer to be enrolled. Overrides <code>personalData.uniqueNumber</code> if both are specified.</td></tr>
|
|
419
419
|
<tr><td><code>onBeforeSubmit</code> (optional)</td><td>callback function that fires immediately prior to submission, giving the client application an opportunity to specify custom asynchronous logic that mutates the request before it executes. The submission request is passed in as a parameter and a promise resolving to the updated request should be returned.</td></tr>
|
|
420
|
-
<tr><td><code>onComplete</code> (optional)</td><td>callback function that fires when the user has completed the CustomerIdAndBiometricsEnrollment flow.
|
|
420
|
+
<tr><td><code>onComplete</code> (optional)</td><td>callback function that fires when the user has completed the CustomerIdAndBiometricsEnrollment flow. Arguments: the SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check, and the request payload dispatched to IDmission's API, which contains the images submitted by the user.</td></tr>
|
|
421
421
|
<tr><td><code>onEnrolled</code> (optional)</td><td>callback function that fires when the user has completed the CustomerIdAndBiometricsEnrollment flow successfully. The SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check.</td></tr>
|
|
422
422
|
<tr><td><code>onDenied</code> (optional)</td><td>callback function that fires when the user has completed the CustomerIdAndBiometricsEnrollment flow but could not be enrolled. The SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check.</td></tr>
|
|
423
423
|
<tr><td><code>onExitAfterFailure</code> (optional)</td><td>callback function that fires when the user clicks the exit button after completing the IDValidation flow and failing the realness check.</td></tr>
|
|
@@ -465,7 +465,7 @@ Render a fullscreen capture component that analyzes frames from the user's front
|
|
|
465
465
|
<tr><td><code>submissionUrl</code></td><td>URL to hit with all API requests. Default: https://api.idmission.com</td></tr>
|
|
466
466
|
<tr><td><code>enrollmentId</code></td><td>the unique identifier to match from previously enrolled customers.</td></tr>
|
|
467
467
|
<tr><td><code>onBeforeSubmit</code> (optional)</td><td>callback function that fires immediately prior to submission, giving the client application an opportunity to specify custom asynchronous logic that mutates the request before it executes. The submission request is passed in as a parameter and a promise resolving to the updated request should be returned.</td></tr>
|
|
468
|
-
<tr><td><code>onComplete</code> (optional)</td><td>callback function that fires when the user has completed the CustomerVerification flow.
|
|
468
|
+
<tr><td><code>onComplete</code> (optional)</td><td>callback function that fires when the user has completed the CustomerVerification flow. Arguments: the SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check, and the request payload dispatched to IDmission's API, which contains the images submitted by the user.</td></tr>
|
|
469
469
|
<tr><td><code>onCustomerMatched</code> (optional)</td><td>callback function that fires when the user has completed the CustomerVerification flow and matches the specified customer <code>enrollmentId</code>. The SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check.</td></tr>
|
|
470
470
|
<tr><td><code>onCustomerNotMatched</code> (optional)</td><td>callback function that fires when the user has completed the CustomerVerification flow but does not match the specified customer <code>enrollmentId</code>. The SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check.</td></tr>
|
|
471
471
|
<tr><td><code>lang</code> (optional)</td><td>language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto.</td></tr>
|
|
@@ -502,7 +502,7 @@ Render a fullscreen capture component that analyzes frames from the user's front
|
|
|
502
502
|
<tr><td><code>submissionToken</code></td><td>a token generated with your IDmission credentials.</td></tr>
|
|
503
503
|
<tr><td><code>submissionUrl</code></td><td>URL to hit with all API requests. Default: https://api.idmission.com</td></tr>
|
|
504
504
|
<tr><td><code>onBeforeSubmit</code> (optional)</td><td>callback function that fires immediately prior to submission, giving the client application an opportunity to specify custom asynchronous logic that mutates the request before it executes. The submission request is passed in as a parameter and a promise resolving to the updated request should be returned.</td></tr>
|
|
505
|
-
<tr><td><code>onComplete</code> (optional)</td><td>callback function that fires when the user has completed the CustomerIdentification flow.
|
|
505
|
+
<tr><td><code>onComplete</code> (optional)</td><td>callback function that fires when the user has completed the CustomerIdentification flow. Arguments: the SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check, and the request payload dispatched to IDmission's API, which contains the images submitted by the user.</td></tr>
|
|
506
506
|
<tr><td><code>onCustomerMatched</code> (optional)</td><td>callback function that fires when the user has completed the CustomerIdentification flow and matches a pre-registered customer <code>enrollmentId</code> in IDmission's database. The SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check.</td></tr>
|
|
507
507
|
<tr><td><code>onCustomerNotMatched</code> (optional)</td><td>callback function that fires when the user has completed the CustomerIdentification flow but does not match any registered customer. The SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check.</td></tr>
|
|
508
508
|
<tr><td><code>onExitAfterFailure</code> (optional)</td><td>callback function that fires when the user clicks the exit button after completing the IDValidation flow and failing the realness check.</td></tr>
|
|
@@ -33,10 +33,10 @@ export interface CustomerBiometricsEnrollmentProps extends PropsWithChildren {
|
|
|
33
33
|
webhooksStripSpecialCharacters?: boolean;
|
|
34
34
|
timeoutDurationMs?: number;
|
|
35
35
|
skipSuccessScreen?: boolean | (() => Promise<boolean>);
|
|
36
|
-
onBeforeSubmit?: (
|
|
37
|
-
onComplete?: (
|
|
38
|
-
onEnrolled?: (
|
|
39
|
-
onDenied?: (
|
|
36
|
+
onBeforeSubmit?: (req: SubmissionRequest) => Promise<SubmissionRequest>;
|
|
37
|
+
onComplete?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
38
|
+
onEnrolled?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
39
|
+
onDenied?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
40
40
|
onExitAfterFailure?: () => void;
|
|
41
41
|
captureAdditionalDocuments?: AdditionalDocument[];
|
|
42
42
|
captureSignature?: boolean | (() => Promise<boolean>);
|
|
@@ -48,10 +48,10 @@ export interface CustomerEnrollmentProps extends PropsWithChildren {
|
|
|
48
48
|
passportFocusScoreThreshold?: number;
|
|
49
49
|
faceLivenessTimeoutDurationMs?: number;
|
|
50
50
|
skipSuccessScreen?: boolean | (() => Promise<boolean>);
|
|
51
|
-
onBeforeSubmit?: (
|
|
52
|
-
onComplete?: (
|
|
53
|
-
onEnrolled?: (
|
|
54
|
-
onDenied?: (
|
|
51
|
+
onBeforeSubmit?: (req: SubmissionRequest) => Promise<SubmissionRequest>;
|
|
52
|
+
onComplete?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
53
|
+
onEnrolled?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
54
|
+
onDenied?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
55
55
|
onExitAfterFailure?: () => void;
|
|
56
56
|
captureAdditionalDocuments?: AdditionalDocument[];
|
|
57
57
|
captureSignature?: boolean | (() => Promise<boolean>);
|
|
@@ -13,10 +13,10 @@ export interface CustomerIdentificationProps extends PropsWithChildren {
|
|
|
13
13
|
webhooksStripSpecialCharacters?: boolean;
|
|
14
14
|
timeoutDurationMs?: number;
|
|
15
15
|
skipSuccessScreen?: boolean | (() => Promise<boolean>);
|
|
16
|
-
onBeforeSubmit?: (
|
|
17
|
-
onComplete?: (
|
|
18
|
-
onCustomerMatched?: (
|
|
19
|
-
onCustomerNotMatched?: (
|
|
16
|
+
onBeforeSubmit?: (req: SubmissionRequest) => Promise<SubmissionRequest>;
|
|
17
|
+
onComplete?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
18
|
+
onCustomerMatched?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
19
|
+
onCustomerNotMatched?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
20
20
|
onCaptureGuidanceTimeout?: () => void;
|
|
21
21
|
onExitAfterFailure?: () => void;
|
|
22
22
|
assets?: CustomerIdentificationAssets;
|
|
@@ -17,10 +17,10 @@ export interface CustomerVerificationProps extends PropsWithChildren {
|
|
|
17
17
|
assets?: CustomerVerificationAssets;
|
|
18
18
|
colors?: CustomerVerificationColors;
|
|
19
19
|
verbiage?: CustomerVerificationVerbiage;
|
|
20
|
-
onBeforeSubmit?: (
|
|
21
|
-
onComplete?: (
|
|
22
|
-
onCustomerMatched?: (
|
|
23
|
-
onCustomerNotMatched?: (
|
|
20
|
+
onBeforeSubmit?: (req: SubmissionRequest) => Promise<SubmissionRequest>;
|
|
21
|
+
onComplete?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
22
|
+
onCustomerMatched?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
23
|
+
onCustomerNotMatched?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
24
24
|
onExitAfterFailure?: () => void;
|
|
25
25
|
geolocationEnabled?: boolean;
|
|
26
26
|
geolocationRequired?: boolean;
|
|
@@ -13,10 +13,10 @@ export interface FaceValidationProps extends PropsWithChildren {
|
|
|
13
13
|
webhooksStripSpecialCharacters?: boolean;
|
|
14
14
|
timeoutDurationMs?: number;
|
|
15
15
|
skipSuccessScreen?: boolean | (() => Promise<boolean>);
|
|
16
|
-
onBeforeSubmit?: (
|
|
17
|
-
onComplete?: (
|
|
18
|
-
onApproved?: (
|
|
19
|
-
onDenied?: (
|
|
16
|
+
onBeforeSubmit?: (req: SubmissionRequest) => Promise<SubmissionRequest>;
|
|
17
|
+
onComplete?: (resp: SubmissionResponse | null, req: SubmissionRequest | null) => void;
|
|
18
|
+
onApproved?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
19
|
+
onDenied?: (resp: SubmissionResponse | null, req: SubmissionRequest | null) => void;
|
|
20
20
|
onExitAfterFailure?: () => void;
|
|
21
21
|
assets?: FaceLivenessAssets;
|
|
22
22
|
colors?: FaceLivenessColors;
|
|
@@ -45,10 +45,10 @@ export interface IdAndFaceValidationProps extends PropsWithChildren {
|
|
|
45
45
|
passportFocusScoreThreshold?: number;
|
|
46
46
|
faceLivenessTimeoutDurationMs?: number;
|
|
47
47
|
skipSuccessScreen?: boolean | (() => Promise<boolean>);
|
|
48
|
-
onBeforeSubmit?: (
|
|
49
|
-
onComplete?: (
|
|
50
|
-
onApproved?: (
|
|
51
|
-
onDenied?: (
|
|
48
|
+
onBeforeSubmit?: (req: SubmissionRequest) => Promise<SubmissionRequest>;
|
|
49
|
+
onComplete?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
50
|
+
onApproved?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
51
|
+
onDenied?: (resp: SubmissionResponse | null, req: SubmissionRequest | null) => void;
|
|
52
52
|
onExitAfterFailure?: () => void;
|
|
53
53
|
captureSignature?: boolean | (() => Promise<boolean>);
|
|
54
54
|
captureSignatureVideo?: boolean | (() => Promise<boolean>);
|
|
@@ -35,10 +35,10 @@ export interface IdValidationProps extends PropsWithChildren {
|
|
|
35
35
|
idCardFocusScoreThreshold?: number;
|
|
36
36
|
passportFocusScoreThreshold?: number;
|
|
37
37
|
skipSuccessScreen?: boolean | (() => Promise<boolean>);
|
|
38
|
-
onBeforeSubmit?: (
|
|
39
|
-
onComplete?: (
|
|
40
|
-
onApproved?: (
|
|
41
|
-
onDenied?: (
|
|
38
|
+
onBeforeSubmit?: (req: SubmissionRequest) => Promise<SubmissionRequest>;
|
|
39
|
+
onComplete?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
40
|
+
onApproved?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
41
|
+
onDenied?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
42
42
|
captureSignature?: boolean | (() => Promise<boolean>);
|
|
43
43
|
captureSignatureVideo?: boolean | (() => Promise<boolean>);
|
|
44
44
|
captureAdditionalDocuments?: AdditionalDocument[];
|
|
@@ -7,8 +7,8 @@ export interface SignatureKYCProps extends PropsWithChildren {
|
|
|
7
7
|
submissionToken: string;
|
|
8
8
|
submissionEnvironment?: SubmissionEnvironment;
|
|
9
9
|
submissionUrl?: string;
|
|
10
|
-
onBeforeSubmit?: (
|
|
11
|
-
onComplete?: (
|
|
10
|
+
onBeforeSubmit?: (req: SubmissionRequest) => Promise<SubmissionRequest>;
|
|
11
|
+
onComplete?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
12
12
|
skipSuccessScreen?: boolean | (() => Promise<boolean>);
|
|
13
13
|
colors?: VideoSignatureColors;
|
|
14
14
|
verbiage?: VideoSignatureVerbiage;
|
|
@@ -21,9 +21,9 @@ export interface VideoIdValidationProps extends PropsWithChildren {
|
|
|
21
21
|
webhooksEnabled?: boolean;
|
|
22
22
|
webhooksClientTraceId?: string;
|
|
23
23
|
webhooksStripSpecialCharacters?: boolean;
|
|
24
|
-
onBeforeSubmit?: (
|
|
25
|
-
onComplete?: (
|
|
26
|
-
onExitAfterFailure?: (
|
|
24
|
+
onBeforeSubmit?: (req: SubmissionRequest) => Promise<SubmissionRequest>;
|
|
25
|
+
onComplete?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
26
|
+
onExitAfterFailure?: (resp: SubmissionResponse | null, req: SubmissionRequest | null) => void;
|
|
27
27
|
idCaptureProps?: IdCaptureWizardProps;
|
|
28
28
|
faceLivenessProps?: FaceLivenessWizardProps;
|
|
29
29
|
idCardFrontDetectionThreshold?: number;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { SelfieCaptureColors, SelfieCaptureVerbiage } from '../selfie_capture/SelfieCapture';
|
|
3
|
-
import { SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
|
+
import { SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
4
4
|
export type CustomerIdentificationCaptureColors = SelfieCaptureColors;
|
|
5
5
|
export type CustomerIdentificationCaptureVerbiage = SelfieCaptureVerbiage;
|
|
6
6
|
export type CustomerIdentificationCaptureProps = {
|
|
7
|
-
onCustomerMatched?: (
|
|
8
|
-
onCustomerNotMatched?: (
|
|
7
|
+
onCustomerMatched?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
8
|
+
onCustomerNotMatched?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
9
9
|
onCaptureGuidanceTimeout?: () => void;
|
|
10
10
|
onExit?: () => void;
|
|
11
11
|
captureGuidanceTimeoutDurationMs?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
2
|
+
import { SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
3
|
import { SelfieCaptureLoadingOverlayAssets, SelfieCaptureLoadingOverlayColors, SelfieCaptureLoadingOverlayVerbiage } from '../selfie_capture/SelfieCaptureLoadingOverlay';
|
|
4
4
|
import { CustomerIdentificationCaptureColors, CustomerIdentificationCaptureVerbiage } from './CustomerIdentificationCapture';
|
|
5
5
|
import { CustomerIdentificationSuccessColors, CustomerIdentificationSuccessVerbiage } from './CustomerIdentificationSuccess';
|
|
@@ -19,9 +19,9 @@ export type CustomerIdentificationVerbiage = CustomerIdentificationCaptureVerbia
|
|
|
19
19
|
failure?: CustomerIdentificationFailureVerbiage;
|
|
20
20
|
};
|
|
21
21
|
export type CustomerIdentificationWizardProps = {
|
|
22
|
-
onComplete?: (
|
|
23
|
-
onCustomerMatched?: (
|
|
24
|
-
onCustomerNotMatched?: (
|
|
22
|
+
onComplete?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
23
|
+
onCustomerMatched?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
24
|
+
onCustomerNotMatched?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
25
25
|
onExitAfterFailure?: () => void;
|
|
26
26
|
onCaptureGuidanceTimeout?: () => void;
|
|
27
27
|
captureGuidanceTimeoutDurationMs?: number;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
2
|
+
import { SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
3
|
import { SelfieCaptureColors, SelfieCaptureVerbiage } from '../selfie_capture/SelfieCapture';
|
|
4
4
|
export type CustomerVerificationCaptureColors = SelfieCaptureColors;
|
|
5
5
|
export type CustomerVerificationCaptureVerbiage = SelfieCaptureVerbiage;
|
|
6
6
|
export type CustomerVerificationCaptureProps = {
|
|
7
|
-
onCustomerMatched?: (
|
|
8
|
-
onCustomerNotMatched?: (
|
|
7
|
+
onCustomerMatched?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
8
|
+
onCustomerNotMatched?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
9
9
|
onCaptureGuidanceTimeout?: () => void;
|
|
10
10
|
onExit?: () => void;
|
|
11
11
|
captureGuidanceTimeoutDurationMs?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
2
|
+
import { SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
3
|
import { SelfieCaptureLoadingOverlayAssets, SelfieCaptureLoadingOverlayColors, SelfieCaptureLoadingOverlayVerbiage } from '../selfie_capture/SelfieCaptureLoadingOverlay';
|
|
4
4
|
import { SelfieCaptureVerbiage } from '../selfie_capture/SelfieCapture';
|
|
5
5
|
import { CustomerVerificationCaptureColors } from './CustomerVerificationCapture';
|
|
@@ -21,9 +21,9 @@ export type CustomerVerificationVerbiage = SelfieCaptureVerbiage & {
|
|
|
21
21
|
failure?: CustomerVerificationFailureVerbiage;
|
|
22
22
|
};
|
|
23
23
|
export type CustomerVerificationWizardProps = {
|
|
24
|
-
onComplete?: (
|
|
25
|
-
onCustomerMatched?: (
|
|
26
|
-
onCustomerNotMatched?: (
|
|
24
|
+
onComplete?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
25
|
+
onCustomerMatched?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
26
|
+
onCustomerNotMatched?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
27
27
|
onExitAfterFailure?: () => void;
|
|
28
28
|
onCaptureGuidanceTimeout?: () => void;
|
|
29
29
|
captureGuidanceTimeoutDurationMs?: number;
|
|
@@ -3,7 +3,7 @@ import { FaceLivenessCaptureColors, FaceLivenessCaptureVerbiage } from './FaceLi
|
|
|
3
3
|
import { SelfieCaptureLoadingOverlayAssets, SelfieCaptureLoadingOverlayColors, SelfieCaptureLoadingOverlayVerbiage } from '../selfie_capture/SelfieCaptureLoadingOverlay';
|
|
4
4
|
import { FaceLivenessSuccessColors, FaceLivenessSuccessVerbiage } from './FaceLivenessSuccess';
|
|
5
5
|
import { FaceLivenessFailureAssets, FaceLivenessFailureColors, FaceLivenessFailureVerbiage } from './FaceLivenessFailure';
|
|
6
|
-
import { SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
6
|
+
import { SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
7
7
|
export type FaceLivenessAssets = {
|
|
8
8
|
loadingOverlay?: SelfieCaptureLoadingOverlayAssets;
|
|
9
9
|
failure?: FaceLivenessFailureAssets;
|
|
@@ -19,10 +19,10 @@ export type FaceLivenessVerbiage = FaceLivenessCaptureVerbiage & {
|
|
|
19
19
|
failure?: FaceLivenessFailureVerbiage;
|
|
20
20
|
};
|
|
21
21
|
export type FaceLivenessWizardProps = {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
onTimeout?: (
|
|
25
|
-
onExitAfterFailure?: (
|
|
22
|
+
onSuccess?: (resp: SubmissionResponse, req: SubmissionRequest) => void;
|
|
23
|
+
onComplete?: (resp: SubmissionResponse | null, req: SubmissionRequest | null) => void;
|
|
24
|
+
onTimeout?: (resp: SubmissionResponse | null, req: SubmissionRequest | null) => void;
|
|
25
|
+
onExitAfterFailure?: (resp: SubmissionResponse | null, req: SubmissionRequest | null) => void;
|
|
26
26
|
timeoutDurationMs?: number;
|
|
27
27
|
maxRetries?: number;
|
|
28
28
|
skipSuccessScreen?: boolean | (() => Promise<boolean>);
|
|
@@ -20,8 +20,8 @@ export type SubmissionProviderProps = {
|
|
|
20
20
|
webhooksEnabled?: boolean;
|
|
21
21
|
webhooksClientTraceId?: string;
|
|
22
22
|
webhooksStripSpecialCharacters?: boolean;
|
|
23
|
-
onBeforeSubmit?: (
|
|
24
|
-
onResponseReceived?: (
|
|
23
|
+
onBeforeSubmit?: (req: SubmissionRequest) => Promise<SubmissionRequest>;
|
|
24
|
+
onResponseReceived?: (res: SubmissionResponse, req: SubmissionRequest) => void;
|
|
25
25
|
onRequestFailure?: (err: Error) => void;
|
|
26
26
|
};
|
|
27
27
|
export declare const SubmissionProvider: ({ action, children, url, environment, token, companyId, enrollmentId, personalData, cardData, manualReviewRequired, idBackImageRequired, verifyIdWithExternalDatabases, deduplicationEnabled, deduplicationSynchronous, geolocationEnabled, geolocationRequired, webhooksEnabled, webhooksClientTraceId, webhooksStripSpecialCharacters, onBeforeSubmit, onResponseReceived, onRequestFailure, }: SubmissionProviderProps) => ReactElement;
|
|
@@ -4,7 +4,7 @@ import { FaceLivenessAssets, FaceLivenessColors, FaceLivenessVerbiage, FaceLiven
|
|
|
4
4
|
import { IdVideoCaptureAssets, IdVideoCaptureColors, IdVideoCaptureVerbiage } from './IdVideoCapture';
|
|
5
5
|
import { IdVideoCaptureSuccessColors, IdVideoCaptureSuccessVerbiage } from './IdVideoCaptureSuccess';
|
|
6
6
|
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
7
|
-
import { SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
7
|
+
import { SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
8
8
|
export type VideoIdWizardAssets = {
|
|
9
9
|
idCapture?: IdCaptureWizardAssets;
|
|
10
10
|
faceLiveness?: FaceLivenessAssets;
|
|
@@ -25,7 +25,7 @@ export type VideoIdWizardVerbiage = {
|
|
|
25
25
|
export type VideoIdWizardProps = {
|
|
26
26
|
idCaptureProps?: IdCaptureWizardProps;
|
|
27
27
|
faceLivenessProps?: FaceLivenessWizardProps;
|
|
28
|
-
onExitAfterFailure?: (
|
|
28
|
+
onExitAfterFailure?: (resp: SubmissionResponse | null, req: SubmissionRequest | null) => void;
|
|
29
29
|
idCardFrontDetectionThreshold?: number;
|
|
30
30
|
idCardFrontFocusThreshold?: number;
|
|
31
31
|
goodIdCardFrontFramesThreshold?: number;
|