kwikid-forms 0.6.46 → 0.6.47

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.
@@ -4890,7 +4890,7 @@ class KwikIDFormViewComponent {
4890
4890
  * This is a api upload mocking method. Set's to loading at first at point when API is called and then changes the status to random status after 2 seconds of delay showing a mocked response from API.
4891
4891
  */
4892
4892
  uploadFile(field, file) {
4893
- var _a, _b, _c, _d, _e, _f;
4893
+ var _a, _b, _c, _d, _e, _f, _g, _h;
4894
4894
  return __awaiter(this, void 0, void 0, function* () {
4895
4895
  switch (field.type) {
4896
4896
  case EFieldType.FILE:
@@ -4988,12 +4988,18 @@ class KwikIDFormViewComponent {
4988
4988
  watermarkPayload.data.push(watermarkSource);
4989
4989
  }
4990
4990
  }
4991
- const imageUploadPayload = Object.assign(Object.assign(Object.assign({ image: file }, ((ocrPayload === null || ocrPayload === void 0 ? void 0 : ocrPayload.isEnabled) && {
4991
+ let livelinessPayload = {};
4992
+ if (isNotEmptyValue((_h = (_g = field === null || field === void 0 ? void 0 : field.properties) === null || _g === void 0 ? void 0 : _g.features) === null || _h === void 0 ? void 0 : _h.liveliness)) {
4993
+ livelinessPayload = field.properties.features.liveliness;
4994
+ }
4995
+ const imageUploadPayload = Object.assign(Object.assign(Object.assign(Object.assign({ image: file }, ((ocrPayload === null || ocrPayload === void 0 ? void 0 : ocrPayload.isEnabled) && {
4992
4996
  ocr: ocrPayload
4993
4997
  })), ((facematchPayload === null || facematchPayload === void 0 ? void 0 : facematchPayload.isEnabled) && {
4994
4998
  facematch: facematchPayload
4995
4999
  })), ((watermarkPayload === null || watermarkPayload === void 0 ? void 0 : watermarkPayload.isEnabled) && {
4996
5000
  watermark: watermarkPayload
5001
+ })), ((livelinessPayload === null || livelinessPayload === void 0 ? void 0 : livelinessPayload.isEnabled) && {
5002
+ liveliness: livelinessPayload
4997
5003
  }));
4998
5004
  this.triggerLogs(ELogEventType$1.FORM__API_REQUEST_UPLOAD_IMAGE, {
4999
5005
  field_key: field.key,