@ekyc_qoobiss/qbs-ect-cmp 3.6.15 → 3.6.17
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/dist/cjs/agreement-check_19.cjs.entry.js +316 -701
- package/dist/cjs/{index-79f82518.js → index-41696e0e.js} +6 -1
- package/dist/cjs/loader-dots.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/qbs-ect-cmp.cjs.js +2 -2
- package/dist/cjs/random-actions.cjs.entry.js +22 -0
- package/dist/cjs/store-4bf93725.js +415 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/common/agreement-check/agreement-check.js +21 -2
- package/dist/collection/components/common/random-actions/random-actions.css +0 -0
- package/dist/collection/components/common/random-actions/random-actions.js +20 -0
- package/dist/collection/components/flow/process-id/process-id.js +3 -0
- package/dist/collection/components/flow/user-liveness/user-liveness.js +13 -15
- package/dist/collection/components/identification-component/identification-component.css +7 -0
- package/dist/esm/agreement-check_19.entry.js +30 -415
- package/dist/esm/{index-9d69e511.js → index-cf54a432.js} +7 -2
- package/dist/esm/loader-dots.entry.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/qbs-ect-cmp.js +3 -3
- package/dist/esm/random-actions.entry.js +18 -0
- package/dist/esm/store-b76678da.js +399 -0
- package/dist/qbs-ect-cmp/{p-4c8e922b.entry.js → p-054dc5b3.entry.js} +1 -1
- package/dist/qbs-ect-cmp/p-0a37620f.entry.js +1 -0
- package/dist/qbs-ect-cmp/p-27abb3e6.js +1 -0
- package/dist/qbs-ect-cmp/p-8942656c.js +2 -0
- package/dist/qbs-ect-cmp/{p-a85dd6fc.entry.js → p-b828c183.entry.js} +22 -22
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/common/agreement-check/agreement-check.d.ts +2 -0
- package/dist/types/components/common/random-actions/random-actions.d.ts +7 -0
- package/dist/types/components/flow/user-liveness/user-liveness.d.ts +2 -2
- package/dist/types/components.d.ts +13 -0
- package/package.json +1 -1
- package/dist/qbs-ect-cmp/p-06e42b28.js +0 -2
|
@@ -69,7 +69,7 @@ export class UserLiveness {
|
|
|
69
69
|
}
|
|
70
70
|
try {
|
|
71
71
|
var uploadPhoto = new File([selfiePhoto], this.flow.front.fileName, { type: 'image/png' });
|
|
72
|
-
await this.uploadPhoto(uploadPhoto);
|
|
72
|
+
await this.uploadPhoto(uploadPhoto, this.flow.front.photoType);
|
|
73
73
|
}
|
|
74
74
|
catch (e) {
|
|
75
75
|
this.apiErrorEvent.emit(e);
|
|
@@ -87,16 +87,15 @@ export class UserLiveness {
|
|
|
87
87
|
return;
|
|
88
88
|
}
|
|
89
89
|
let mimeType = selfieRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
90
|
-
let currentFlow;
|
|
91
|
-
if (this.captureStep == SelfieFlowStatus.Selfie) {
|
|
92
|
-
currentFlow = this.flow.front;
|
|
93
|
-
}
|
|
94
|
-
if (this.captureStep == SelfieFlowStatus.Gesture) {
|
|
95
|
-
currentFlow = this.flow.tilt;
|
|
96
|
-
}
|
|
97
90
|
try {
|
|
98
|
-
|
|
99
|
-
|
|
91
|
+
if (this.captureStep == SelfieFlowStatus.Selfie) {
|
|
92
|
+
let uploadRec = new File([selfieRecording], this.flow.front.recName + mimeType.extension, { type: mimeType.type });
|
|
93
|
+
this.flow.front.recordingDone = await this.uploadRecording(uploadRec, this.flow.front.recType);
|
|
94
|
+
}
|
|
95
|
+
if (this.captureStep == SelfieFlowStatus.Gesture) {
|
|
96
|
+
let uploadRec = new File([selfieRecording], this.flow.tilt.recName + mimeType.extension, { type: mimeType.type });
|
|
97
|
+
this.flow.tilt.recordingDone = await this.uploadRecording(uploadRec, this.flow.tilt.recType);
|
|
98
|
+
}
|
|
100
99
|
await this.endFlow();
|
|
101
100
|
}
|
|
102
101
|
catch (e) {
|
|
@@ -110,17 +109,16 @@ export class UserLiveness {
|
|
|
110
109
|
}
|
|
111
110
|
}
|
|
112
111
|
async verificationFinished(_event) {
|
|
113
|
-
this.captureStep = SelfieFlowStatus.End;
|
|
114
112
|
await this.endFlow();
|
|
115
113
|
}
|
|
116
114
|
async disconnectedCallback() {
|
|
117
115
|
await this.baseComponent.finalize();
|
|
118
116
|
}
|
|
119
|
-
async uploadPhoto(photoFile) {
|
|
117
|
+
async uploadPhoto(photoFile, photoType) {
|
|
120
118
|
if (this.flow.front.photoDone) {
|
|
121
119
|
return;
|
|
122
120
|
}
|
|
123
|
-
this.flow.front.photoDone = await this.baseComponent.apiCall.UploadFileForRequestB64(store.requestId,
|
|
121
|
+
this.flow.front.photoDone = await this.baseComponent.apiCall.UploadFileForRequestB64(store.requestId, photoType, photoFile);
|
|
124
122
|
if (this.flow.front.photoDone) {
|
|
125
123
|
await this.endFlow();
|
|
126
124
|
}
|
|
@@ -128,8 +126,8 @@ export class UserLiveness {
|
|
|
128
126
|
this.triggerErrorFlow();
|
|
129
127
|
}
|
|
130
128
|
}
|
|
131
|
-
async uploadRecording(uploadRec) {
|
|
132
|
-
let uplodDone = await this.baseComponent.apiCall.UploadFileForRequestB64(store.requestId,
|
|
129
|
+
async uploadRecording(uploadRec, recType) {
|
|
130
|
+
let uplodDone = await this.baseComponent.apiCall.UploadFileForRequestB64(store.requestId, recType, uploadRec);
|
|
133
131
|
if (uplodDone) {
|
|
134
132
|
return true;
|
|
135
133
|
}
|