kwikid-forms 0.6.45 → 0.6.46

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.
@@ -385,6 +385,10 @@ const FIELD_PROPERTIES = {
385
385
  isFacematchFromServer: false,
386
386
  sources: []
387
387
  },
388
+ liveliness: {
389
+ isEnabled: false,
390
+ isLivelinessFromServer: false
391
+ },
388
392
  watermark: {
389
393
  isEnabled: false,
390
394
  isWatermarkFromServer: false,
@@ -3911,9 +3915,13 @@ class KwikIDFormViewComponent {
3911
3915
  const image = response === null || response === void 0 ? void 0 : response.image_url;
3912
3916
  const imageOcr = response === null || response === void 0 ? void 0 : response.image_ocr;
3913
3917
  const imageFacematch = response === null || response === void 0 ? void 0 : response.image_facematch;
3918
+ const imageLiveliness = response === null || response === void 0 ? void 0 : response.image_liveliness;
3914
3919
  const imageWatermark = response === null || response === void 0 ? void 0 : response.image_watermark;
3915
- const imageData = imageOcr || imageFacematch || imageWatermark
3916
- ? Object.assign(Object.assign(Object.assign({ image }, (imageOcr && { ocr: imageOcr })), (imageFacematch && { facematch: imageFacematch })), (imageWatermark && { watermark: imageWatermark })) : image;
3920
+ const isCheckCameraFeatures = () => {
3921
+ return (imageOcr || imageLiveliness || imageFacematch || imageWatermark);
3922
+ };
3923
+ const imageData = isCheckCameraFeatures()
3924
+ ? Object.assign(Object.assign(Object.assign(Object.assign({ image }, (imageOcr && { ocr: imageOcr })), (imageFacematch && { facematch: imageFacematch })), (imageLiveliness && { liveliness: imageLiveliness })), (imageWatermark && { watermark: imageWatermark })) : image;
3917
3925
  this.formData[field.key] = getObjectDeepCopy([imageData]);
3918
3926
  this.cameraData[field.key] = getObjectDeepCopy(imageData);
3919
3927
  this.mediaFiles[field.key] = getObjectDeepCopy([imageData]);