@ekyc_qoobiss/qbs-ect-cmp 1.8.6 → 1.8.8
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_16.cjs.entry.js +12 -20
- package/dist/collection/components/flow/id-single-side/id-single-side.js +10 -18
- package/dist/collection/components/flow/user-liveness/user-liveness.js +1 -1
- package/dist/collection/libs/IDML5Detector/IDML5Detector.js +1 -1
- package/dist/esm/agreement-check_16.entry.js +12 -20
- package/dist/qbs-ect-cmp/{p-087d91eb.entry.js → p-7c25d9a4.entry.js} +1 -1
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/flow/id-single-side/id-single-side.d.ts +1 -2
- package/package.json +1 -1
|
@@ -1817,7 +1817,7 @@ class IDML5Detector {
|
|
|
1817
1817
|
if (this.full == 1 && this.tilted == 1) {
|
|
1818
1818
|
if (this.start == null)
|
|
1819
1819
|
this.start = Date.now();
|
|
1820
|
-
if (Date.now() > this.start +
|
|
1820
|
+
if (Date.now() > this.start + 500) {
|
|
1821
1821
|
this.continue = false;
|
|
1822
1822
|
this.stream.verificationReady();
|
|
1823
1823
|
}
|
|
@@ -5625,8 +5625,7 @@ const IdSingleSide = class {
|
|
|
5625
5625
|
this.showHowTo = undefined;
|
|
5626
5626
|
this.idFlow = {
|
|
5627
5627
|
verificationFinished: false,
|
|
5628
|
-
|
|
5629
|
-
recordingDone: false,
|
|
5628
|
+
done: false,
|
|
5630
5629
|
photoFile: null,
|
|
5631
5630
|
recordingFile: null,
|
|
5632
5631
|
};
|
|
@@ -5647,7 +5646,7 @@ const IdSingleSide = class {
|
|
|
5647
5646
|
let idPhoto = event.detail;
|
|
5648
5647
|
try {
|
|
5649
5648
|
this.idFlow.photoFile = new File([idPhoto], 'idImage.png', { type: 'image/png' });
|
|
5650
|
-
await this.
|
|
5649
|
+
await this.runIdFlow();
|
|
5651
5650
|
}
|
|
5652
5651
|
catch (e) {
|
|
5653
5652
|
this.apiErrorEvent.emit(e);
|
|
@@ -5655,7 +5654,7 @@ const IdSingleSide = class {
|
|
|
5655
5654
|
}
|
|
5656
5655
|
async verificationFinished(_event) {
|
|
5657
5656
|
this.idFlow.verificationFinished = true;
|
|
5658
|
-
if (this.idFlow.
|
|
5657
|
+
if (this.idFlow.done) {
|
|
5659
5658
|
state.flowStatus = FlowStatus.LIVENESS;
|
|
5660
5659
|
}
|
|
5661
5660
|
}
|
|
@@ -5666,36 +5665,29 @@ const IdSingleSide = class {
|
|
|
5666
5665
|
if (state.flowStatus == FlowStatus.ID) {
|
|
5667
5666
|
try {
|
|
5668
5667
|
this.idFlow.recordingFile = new File([idRecording], 'idVideo.' + extension, { type: mimeType });
|
|
5669
|
-
await this.
|
|
5668
|
+
await this.runIdFlow();
|
|
5670
5669
|
}
|
|
5671
5670
|
catch (e) {
|
|
5672
5671
|
this.apiErrorEvent.emit(e);
|
|
5673
5672
|
}
|
|
5674
5673
|
}
|
|
5675
5674
|
}
|
|
5676
|
-
async
|
|
5677
|
-
if (this.idFlow.photoFile == null || this.idFlow.
|
|
5675
|
+
async runIdFlow() {
|
|
5676
|
+
if (this.idFlow.photoFile == null || this.idFlow.recordingFile == null || this.idFlow.done) {
|
|
5678
5677
|
return;
|
|
5679
5678
|
}
|
|
5680
5679
|
let uploadedPhoto = await this.apiCall.UploadFileForRequestB64(state.requestId, 'IdFront', this.idFlow.photoFile);
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
state.flowStatus = FlowStatus.LIVENESS;
|
|
5684
|
-
}
|
|
5685
|
-
else {
|
|
5680
|
+
if (uploadedPhoto === false) {
|
|
5681
|
+
this.idFlow.done = false;
|
|
5686
5682
|
this.idFlow.photoFile = null;
|
|
5687
5683
|
this.idFlow.recordingFile = null;
|
|
5688
5684
|
this.switchCamera();
|
|
5689
5685
|
this.showTimeout = true;
|
|
5690
|
-
}
|
|
5691
|
-
}
|
|
5692
|
-
async runIdFlowRecording() {
|
|
5693
|
-
if (this.idFlow.recordingFile == null || this.idFlow.recordingDone) {
|
|
5694
5686
|
return;
|
|
5695
5687
|
}
|
|
5696
5688
|
let uploadedRecording = await this.apiCall.UploadFileForRequestB64(state.requestId, 'IdFrontVideo', this.idFlow.recordingFile);
|
|
5697
|
-
this.idFlow.
|
|
5698
|
-
if (uploadedRecording === true && this.idFlow.
|
|
5689
|
+
this.idFlow.done = uploadedRecording;
|
|
5690
|
+
if (uploadedRecording === true && this.idFlow.verificationFinished) {
|
|
5699
5691
|
state.flowStatus = FlowStatus.LIVENESS;
|
|
5700
5692
|
}
|
|
5701
5693
|
else {
|
|
@@ -6233,7 +6225,7 @@ const UserLiveness = class {
|
|
|
6233
6225
|
render() {
|
|
6234
6226
|
let howTo = index.h("how-to-info", { idSide: "" });
|
|
6235
6227
|
let capture = index.h("selfie-capture", { device: this.device, id: "camera" });
|
|
6236
|
-
let error = index.h("capture-error",
|
|
6228
|
+
let error = index.h("capture-error", { type: "LIVENESS" });
|
|
6237
6229
|
return this.showHowTo ? howTo : this.showError ? error : capture;
|
|
6238
6230
|
}
|
|
6239
6231
|
};
|
|
@@ -10,8 +10,7 @@ export class IdSingleSide {
|
|
|
10
10
|
this.showHowTo = undefined;
|
|
11
11
|
this.idFlow = {
|
|
12
12
|
verificationFinished: false,
|
|
13
|
-
|
|
14
|
-
recordingDone: false,
|
|
13
|
+
done: false,
|
|
15
14
|
photoFile: null,
|
|
16
15
|
recordingFile: null,
|
|
17
16
|
};
|
|
@@ -32,7 +31,7 @@ export class IdSingleSide {
|
|
|
32
31
|
let idPhoto = event.detail;
|
|
33
32
|
try {
|
|
34
33
|
this.idFlow.photoFile = new File([idPhoto], 'idImage.png', { type: 'image/png' });
|
|
35
|
-
await this.
|
|
34
|
+
await this.runIdFlow();
|
|
36
35
|
}
|
|
37
36
|
catch (e) {
|
|
38
37
|
this.apiErrorEvent.emit(e);
|
|
@@ -40,7 +39,7 @@ export class IdSingleSide {
|
|
|
40
39
|
}
|
|
41
40
|
async verificationFinished(_event) {
|
|
42
41
|
this.idFlow.verificationFinished = true;
|
|
43
|
-
if (this.idFlow.
|
|
42
|
+
if (this.idFlow.done) {
|
|
44
43
|
store.flowStatus = FlowStatus.LIVENESS;
|
|
45
44
|
}
|
|
46
45
|
}
|
|
@@ -51,36 +50,29 @@ export class IdSingleSide {
|
|
|
51
50
|
if (store.flowStatus == FlowStatus.ID) {
|
|
52
51
|
try {
|
|
53
52
|
this.idFlow.recordingFile = new File([idRecording], 'idVideo.' + extension, { type: mimeType });
|
|
54
|
-
await this.
|
|
53
|
+
await this.runIdFlow();
|
|
55
54
|
}
|
|
56
55
|
catch (e) {
|
|
57
56
|
this.apiErrorEvent.emit(e);
|
|
58
57
|
}
|
|
59
58
|
}
|
|
60
59
|
}
|
|
61
|
-
async
|
|
62
|
-
if (this.idFlow.photoFile == null || this.idFlow.
|
|
60
|
+
async runIdFlow() {
|
|
61
|
+
if (this.idFlow.photoFile == null || this.idFlow.recordingFile == null || this.idFlow.done) {
|
|
63
62
|
return;
|
|
64
63
|
}
|
|
65
64
|
let uploadedPhoto = await this.apiCall.UploadFileForRequestB64(store.requestId, 'IdFront', this.idFlow.photoFile);
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
store.flowStatus = FlowStatus.LIVENESS;
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
65
|
+
if (uploadedPhoto === false) {
|
|
66
|
+
this.idFlow.done = false;
|
|
71
67
|
this.idFlow.photoFile = null;
|
|
72
68
|
this.idFlow.recordingFile = null;
|
|
73
69
|
this.switchCamera();
|
|
74
70
|
this.showTimeout = true;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
async runIdFlowRecording() {
|
|
78
|
-
if (this.idFlow.recordingFile == null || this.idFlow.recordingDone) {
|
|
79
71
|
return;
|
|
80
72
|
}
|
|
81
73
|
let uploadedRecording = await this.apiCall.UploadFileForRequestB64(store.requestId, 'IdFrontVideo', this.idFlow.recordingFile);
|
|
82
|
-
this.idFlow.
|
|
83
|
-
if (uploadedRecording === true && this.idFlow.
|
|
74
|
+
this.idFlow.done = uploadedRecording;
|
|
75
|
+
if (uploadedRecording === true && this.idFlow.verificationFinished) {
|
|
84
76
|
store.flowStatus = FlowStatus.LIVENESS;
|
|
85
77
|
}
|
|
86
78
|
else {
|
|
@@ -81,7 +81,7 @@ export class UserLiveness {
|
|
|
81
81
|
render() {
|
|
82
82
|
let howTo = h("how-to-info", { idSide: "" });
|
|
83
83
|
let capture = h("selfie-capture", { device: this.device, id: "camera" });
|
|
84
|
-
let error = h("capture-error",
|
|
84
|
+
let error = h("capture-error", { type: "LIVENESS" });
|
|
85
85
|
return this.showHowTo ? howTo : this.showError ? error : capture;
|
|
86
86
|
}
|
|
87
87
|
static get is() { return "user-liveness"; }
|
|
@@ -37,7 +37,7 @@ export class IDML5Detector {
|
|
|
37
37
|
if (this.full == 1 && this.tilted == 1) {
|
|
38
38
|
if (this.start == null)
|
|
39
39
|
this.start = Date.now();
|
|
40
|
-
if (Date.now() > this.start +
|
|
40
|
+
if (Date.now() > this.start + 500) {
|
|
41
41
|
this.continue = false;
|
|
42
42
|
this.stream.verificationReady();
|
|
43
43
|
}
|
|
@@ -1813,7 +1813,7 @@ class IDML5Detector {
|
|
|
1813
1813
|
if (this.full == 1 && this.tilted == 1) {
|
|
1814
1814
|
if (this.start == null)
|
|
1815
1815
|
this.start = Date.now();
|
|
1816
|
-
if (Date.now() > this.start +
|
|
1816
|
+
if (Date.now() > this.start + 500) {
|
|
1817
1817
|
this.continue = false;
|
|
1818
1818
|
this.stream.verificationReady();
|
|
1819
1819
|
}
|
|
@@ -5621,8 +5621,7 @@ const IdSingleSide = class {
|
|
|
5621
5621
|
this.showHowTo = undefined;
|
|
5622
5622
|
this.idFlow = {
|
|
5623
5623
|
verificationFinished: false,
|
|
5624
|
-
|
|
5625
|
-
recordingDone: false,
|
|
5624
|
+
done: false,
|
|
5626
5625
|
photoFile: null,
|
|
5627
5626
|
recordingFile: null,
|
|
5628
5627
|
};
|
|
@@ -5643,7 +5642,7 @@ const IdSingleSide = class {
|
|
|
5643
5642
|
let idPhoto = event.detail;
|
|
5644
5643
|
try {
|
|
5645
5644
|
this.idFlow.photoFile = new File([idPhoto], 'idImage.png', { type: 'image/png' });
|
|
5646
|
-
await this.
|
|
5645
|
+
await this.runIdFlow();
|
|
5647
5646
|
}
|
|
5648
5647
|
catch (e) {
|
|
5649
5648
|
this.apiErrorEvent.emit(e);
|
|
@@ -5651,7 +5650,7 @@ const IdSingleSide = class {
|
|
|
5651
5650
|
}
|
|
5652
5651
|
async verificationFinished(_event) {
|
|
5653
5652
|
this.idFlow.verificationFinished = true;
|
|
5654
|
-
if (this.idFlow.
|
|
5653
|
+
if (this.idFlow.done) {
|
|
5655
5654
|
state.flowStatus = FlowStatus.LIVENESS;
|
|
5656
5655
|
}
|
|
5657
5656
|
}
|
|
@@ -5662,36 +5661,29 @@ const IdSingleSide = class {
|
|
|
5662
5661
|
if (state.flowStatus == FlowStatus.ID) {
|
|
5663
5662
|
try {
|
|
5664
5663
|
this.idFlow.recordingFile = new File([idRecording], 'idVideo.' + extension, { type: mimeType });
|
|
5665
|
-
await this.
|
|
5664
|
+
await this.runIdFlow();
|
|
5666
5665
|
}
|
|
5667
5666
|
catch (e) {
|
|
5668
5667
|
this.apiErrorEvent.emit(e);
|
|
5669
5668
|
}
|
|
5670
5669
|
}
|
|
5671
5670
|
}
|
|
5672
|
-
async
|
|
5673
|
-
if (this.idFlow.photoFile == null || this.idFlow.
|
|
5671
|
+
async runIdFlow() {
|
|
5672
|
+
if (this.idFlow.photoFile == null || this.idFlow.recordingFile == null || this.idFlow.done) {
|
|
5674
5673
|
return;
|
|
5675
5674
|
}
|
|
5676
5675
|
let uploadedPhoto = await this.apiCall.UploadFileForRequestB64(state.requestId, 'IdFront', this.idFlow.photoFile);
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
state.flowStatus = FlowStatus.LIVENESS;
|
|
5680
|
-
}
|
|
5681
|
-
else {
|
|
5676
|
+
if (uploadedPhoto === false) {
|
|
5677
|
+
this.idFlow.done = false;
|
|
5682
5678
|
this.idFlow.photoFile = null;
|
|
5683
5679
|
this.idFlow.recordingFile = null;
|
|
5684
5680
|
this.switchCamera();
|
|
5685
5681
|
this.showTimeout = true;
|
|
5686
|
-
}
|
|
5687
|
-
}
|
|
5688
|
-
async runIdFlowRecording() {
|
|
5689
|
-
if (this.idFlow.recordingFile == null || this.idFlow.recordingDone) {
|
|
5690
5682
|
return;
|
|
5691
5683
|
}
|
|
5692
5684
|
let uploadedRecording = await this.apiCall.UploadFileForRequestB64(state.requestId, 'IdFrontVideo', this.idFlow.recordingFile);
|
|
5693
|
-
this.idFlow.
|
|
5694
|
-
if (uploadedRecording === true && this.idFlow.
|
|
5685
|
+
this.idFlow.done = uploadedRecording;
|
|
5686
|
+
if (uploadedRecording === true && this.idFlow.verificationFinished) {
|
|
5695
5687
|
state.flowStatus = FlowStatus.LIVENESS;
|
|
5696
5688
|
}
|
|
5697
5689
|
else {
|
|
@@ -6229,7 +6221,7 @@ const UserLiveness = class {
|
|
|
6229
6221
|
render() {
|
|
6230
6222
|
let howTo = h("how-to-info", { idSide: "" });
|
|
6231
6223
|
let capture = h("selfie-capture", { device: this.device, id: "camera" });
|
|
6232
|
-
let error = h("capture-error",
|
|
6224
|
+
let error = h("capture-error", { type: "LIVENESS" });
|
|
6233
6225
|
return this.showHowTo ? howTo : this.showError ? error : capture;
|
|
6234
6226
|
}
|
|
6235
6227
|
};
|