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.
- package/bundles/kwikid-forms.umd.js +9 -3
- package/bundles/kwikid-forms.umd.js.map +1 -1
- package/esm2015/lib/renderer/form-view/definitions/form-view.fields.definition.js +1 -1
- package/esm2015/lib/renderer/form-view/form-view.component.js +9 -3
- package/fesm2015/kwikid-forms.js +8 -2
- package/fesm2015/kwikid-forms.js.map +1 -1
- package/lib/renderer/form-view/definitions/form-view.fields.definition.d.ts +4 -0
- package/package.json +1 -1
|
@@ -6539,9 +6539,9 @@
|
|
|
6539
6539
|
* 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.
|
|
6540
6540
|
*/
|
|
6541
6541
|
KwikIDFormViewComponent.prototype.uploadFile = function (field, file) {
|
|
6542
|
-
var _a, _b, _c, _d, _e, _f;
|
|
6542
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
6543
6543
|
return __awaiter(this, void 0, void 0, function () {
|
|
6544
|
-
var _15, ocrPayload, facematchPayload, facematchSources, facematchSources_1, facematchSources_1_1, facematchSourceConfig, source, sourceValue, facematchSource, e_10_1, watermarkPayload, watermarkSources, watermarkSources_1, watermarkSources_1_1, watermarkSourceConfig, source, sourceValue, watermarkSource, e_11_1, imageUploadPayload;
|
|
6544
|
+
var _15, ocrPayload, facematchPayload, facematchSources, facematchSources_1, facematchSources_1_1, facematchSourceConfig, source, sourceValue, facematchSource, e_10_1, watermarkPayload, watermarkSources, watermarkSources_1, watermarkSources_1_1, watermarkSourceConfig, source, sourceValue, watermarkSource, e_11_1, livelinessPayload, imageUploadPayload;
|
|
6545
6545
|
var e_10, _16, e_11, _17;
|
|
6546
6546
|
return __generator(this, function (_18) {
|
|
6547
6547
|
switch (_18.label) {
|
|
@@ -6693,12 +6693,18 @@
|
|
|
6693
6693
|
finally { if (e_11) throw e_11.error; }
|
|
6694
6694
|
return [7 /*endfinally*/];
|
|
6695
6695
|
case 18:
|
|
6696
|
-
|
|
6696
|
+
livelinessPayload = {};
|
|
6697
|
+
if (kwikidToolkit.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)) {
|
|
6698
|
+
livelinessPayload = field.properties.features.liveliness;
|
|
6699
|
+
}
|
|
6700
|
+
imageUploadPayload = Object.assign(Object.assign(Object.assign(Object.assign({ image: file }, ((ocrPayload === null || ocrPayload === void 0 ? void 0 : ocrPayload.isEnabled) && {
|
|
6697
6701
|
ocr: ocrPayload
|
|
6698
6702
|
})), ((facematchPayload === null || facematchPayload === void 0 ? void 0 : facematchPayload.isEnabled) && {
|
|
6699
6703
|
facematch: facematchPayload
|
|
6700
6704
|
})), ((watermarkPayload === null || watermarkPayload === void 0 ? void 0 : watermarkPayload.isEnabled) && {
|
|
6701
6705
|
watermark: watermarkPayload
|
|
6706
|
+
})), ((livelinessPayload === null || livelinessPayload === void 0 ? void 0 : livelinessPayload.isEnabled) && {
|
|
6707
|
+
liveliness: livelinessPayload
|
|
6702
6708
|
}));
|
|
6703
6709
|
this.triggerLogs(ELogEventType$1.FORM__API_REQUEST_UPLOAD_IMAGE, {
|
|
6704
6710
|
field_key: field.key,
|