idmission-web-sdk 1.0.97 → 1.0.99

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.
@@ -27,6 +27,8 @@ export type SubmissionRequest = {
27
27
  idData: {
28
28
  idImageFront?: string;
29
29
  idImageBack?: string;
30
+ videoIdImageFront?: string;
31
+ videoIdImageBack?: string;
30
32
  idType: 'NSP';
31
33
  idCountry: 'NSP';
32
34
  idState: '';
@@ -46,7 +46,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
46
46
  var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
47
47
  var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
48
48
 
49
- var webSdkVersion = '1.0.97';
49
+ var webSdkVersion = '1.0.99';
50
50
 
51
51
  function getPlatform() {
52
52
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -890,6 +890,12 @@ var SubmissionProvider = function SubmissionProvider(_a) {
890
890
  _b.videoData = _e.sent();
891
891
  _e.label = 4;
892
892
  case 4:
893
+ if (idCaptureVideoIdFrontImage) {
894
+ submissionRequest.customerData.idData.videoIdImageFront = idCaptureVideoIdFrontImage;
895
+ }
896
+ if (idCaptureVideoIdBackImage) {
897
+ submissionRequest.customerData.idData.videoIdImageBack = idCaptureVideoIdBackImage;
898
+ }
893
899
  attachMetadataToRequest(submissionRequest, {
894
900
  selfieCaptureAttempts: selfieCaptureAttempts,
895
901
  idFrontCaptureAttempts: idFrontCaptureAttempts,
@@ -907,7 +913,7 @@ var SubmissionProvider = function SubmissionProvider(_a) {
907
913
  }
908
914
  });
909
915
  });
910
- }, [action, additionalDocuments, bypassAgeValidation, bypassNameMatching, cardData, companyId, deduplicationEnabled, deduplicationSynchronous, enrollmentId, geolocationResult, idBackCaptureAttempts, idBackImage, idBackImageRequired, idCaptureVideoUrl, idFrontCaptureAttempts, idFrontImage, idImageResolutionCheck, manualReviewRequired, needImmediateResponse, onBeforeSubmit, passportImage, personalData, selfieCaptureAttempts, selfieImage, signatureData, signatureVideoUrl, verifyIdWithExternalDatabases, webhooksClientTraceId, webhooksEnabled, webhooksFireOnReview, webhooksSendInputImages, webhooksSendProcessedImages, webhooksStripSpecialCharacters]);
916
+ }, [action, additionalDocuments, bypassAgeValidation, bypassNameMatching, cardData, companyId, deduplicationEnabled, deduplicationSynchronous, enrollmentId, geolocationResult, idBackCaptureAttempts, idBackImage, idBackImageRequired, idCaptureVideoIdBackImage, idCaptureVideoIdFrontImage, idCaptureVideoUrl, idFrontCaptureAttempts, idFrontImage, idImageResolutionCheck, manualReviewRequired, needImmediateResponse, onBeforeSubmit, passportImage, personalData, selfieCaptureAttempts, selfieImage, signatureData, signatureVideoUrl, verifyIdWithExternalDatabases, webhooksClientTraceId, webhooksEnabled, webhooksFireOnReview, webhooksSendInputImages, webhooksSendProcessedImages, webhooksStripSpecialCharacters]);
911
917
  var defaultOnSubmit = React.useCallback(function () {
912
918
  return tslib.__awaiter(void 0, void 0, void 0, function () {
913
919
  var submissionResponse_1, payload, host, endpoint, response, statusMessage, submissionResponse_2, e_1, err;