@ekyc_qoobiss/qbs-ect-cmp 1.10.16 → 1.10.18
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_17.cjs.entry.js +19 -19
- package/dist/collection/components/flow/id-double-side/id-double-side.js +3 -3
- package/dist/collection/components/flow/id-single-side/id-single-side.js +3 -3
- package/dist/collection/components/flow/user-liveness/user-liveness.js +3 -3
- package/dist/collection/components/identification-component/identification-component.js +8 -7
- package/dist/collection/helpers/Stream.js +5 -3
- package/dist/esm/agreement-check_17.entry.js +19 -19
- package/dist/qbs-ect-cmp/{p-428024ed.entry.js → p-f2a06359.entry.js} +1 -1
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/helpers/Stream.d.ts +12 -0
- package/package.json +1 -1
|
@@ -4868,17 +4868,17 @@ class Stream {
|
|
|
4868
4868
|
// if (this.faceDetection) await Detector.getInstance().startDetector();
|
|
4869
4869
|
}
|
|
4870
4870
|
recordStream() {
|
|
4871
|
-
var options = { mimeType:
|
|
4871
|
+
var options = { mimeType: Stream.webmMimeType.mime, videoBitsPerSecond: 1500000 };
|
|
4872
4872
|
if (!MediaRecorder.isTypeSupported(options.mimeType)) {
|
|
4873
4873
|
if (this.device.isIos || this.device.isSafari)
|
|
4874
|
-
options.mimeType =
|
|
4874
|
+
options.mimeType = Stream.mp4MimeType.mime;
|
|
4875
4875
|
}
|
|
4876
4876
|
this.recordedChunks = [];
|
|
4877
4877
|
this.mediaRecorder = new MediaRecorder(this.stream, options);
|
|
4878
4878
|
this.mediaRecorder.ondataavailable = event => {
|
|
4879
4879
|
this.recordedChunks.push(event.data);
|
|
4880
4880
|
};
|
|
4881
|
-
this.mediaRecorder.onstop =
|
|
4881
|
+
this.mediaRecorder.onstop = _e => {
|
|
4882
4882
|
this.saveVideoRecording(this.recordedChunks, options.mimeType);
|
|
4883
4883
|
this.recordedChunks = [];
|
|
4884
4884
|
};
|
|
@@ -4965,6 +4965,8 @@ class Stream {
|
|
|
4965
4965
|
this.callbackChangeTitle(pose);
|
|
4966
4966
|
}
|
|
4967
4967
|
}
|
|
4968
|
+
Stream.mp4MimeType = { type: 'video/mp4', codec: 'codecs:h264', extension: 'mp4', mime: 'video/mp4;codecs:h264' };
|
|
4969
|
+
Stream.webmMimeType = { type: 'video/webm', codec: 'codecs=vp8', extension: 'webm', mime: 'video/webm;codecs=vp8' };
|
|
4968
4970
|
window.addEventListener('resize', Stream.orientationChange, false);
|
|
4969
4971
|
window.addEventListener('orientationchange', Stream.orientationChange, false);
|
|
4970
4972
|
|
|
@@ -5619,10 +5621,9 @@ const IdDoubleSide = class {
|
|
|
5619
5621
|
}
|
|
5620
5622
|
async capturedIdRecording(event) {
|
|
5621
5623
|
let idRecording = event.detail;
|
|
5622
|
-
let mimeType = idRecording.type.
|
|
5623
|
-
let extension = mimeType.split('/')[1];
|
|
5624
|
+
let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
5624
5625
|
try {
|
|
5625
|
-
this.flow.recordingFile = new File([idRecording], this.flow.recordingFileName + extension, { type: mimeType });
|
|
5626
|
+
this.flow.recordingFile = new File([idRecording], this.flow.recordingFileName + mimeType.extension, { type: mimeType.type });
|
|
5626
5627
|
this.uploadRecording();
|
|
5627
5628
|
}
|
|
5628
5629
|
catch (e) {
|
|
@@ -5752,11 +5753,10 @@ const IdSingleSide = class {
|
|
|
5752
5753
|
}
|
|
5753
5754
|
async capturedIdRecording(event) {
|
|
5754
5755
|
let idRecording = event.detail;
|
|
5755
|
-
let mimeType = idRecording.type.
|
|
5756
|
-
let extension = mimeType.split('/')[1];
|
|
5756
|
+
let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
5757
5757
|
if (state.flowStatus == FlowStatus.ID) {
|
|
5758
5758
|
try {
|
|
5759
|
-
this.idFlow.recordingFile = new File([idRecording], 'idVideo.' + extension, { type: mimeType });
|
|
5759
|
+
this.idFlow.recordingFile = new File([idRecording], 'idVideo.' + mimeType.extension, { type: mimeType.type });
|
|
5760
5760
|
await this.uploadRecording();
|
|
5761
5761
|
}
|
|
5762
5762
|
catch (e) {
|
|
@@ -5911,16 +5911,17 @@ const IdentificationComponent = class {
|
|
|
5911
5911
|
}
|
|
5912
5912
|
}
|
|
5913
5913
|
async apiErrorEmitter(data) {
|
|
5914
|
-
let apiLogData =
|
|
5915
|
-
if (data.
|
|
5916
|
-
this.errorMessage = data.message;
|
|
5917
|
-
apiLogData = data.message;
|
|
5918
|
-
}
|
|
5919
|
-
else if (data.detail) {
|
|
5914
|
+
let apiLogData = { message: '', stack: '' };
|
|
5915
|
+
if (data.detail) {
|
|
5920
5916
|
if (data.detail.message) {
|
|
5921
5917
|
this.errorMessage = data.detail.message;
|
|
5922
5918
|
}
|
|
5923
|
-
apiLogData = data.detail;
|
|
5919
|
+
apiLogData.message = data.detail.message;
|
|
5920
|
+
apiLogData.stack = data.detail.stack;
|
|
5921
|
+
}
|
|
5922
|
+
else if (data.message) {
|
|
5923
|
+
this.errorMessage = data.message;
|
|
5924
|
+
apiLogData.message = data.message;
|
|
5924
5925
|
}
|
|
5925
5926
|
else {
|
|
5926
5927
|
this.errorMessage = data;
|
|
@@ -9270,10 +9271,9 @@ const UserLiveness = class {
|
|
|
9270
9271
|
}
|
|
9271
9272
|
async capturedSelfieRecording(event) {
|
|
9272
9273
|
let selfieRecording = event.detail;
|
|
9273
|
-
let mimeType = selfieRecording.type.
|
|
9274
|
-
let extension = mimeType.split('/')[1];
|
|
9274
|
+
let mimeType = selfieRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
9275
9275
|
try {
|
|
9276
|
-
this.selfieFlow.recordingFile = new File([selfieRecording], 'selfieVideo.' + extension, { type: mimeType });
|
|
9276
|
+
this.selfieFlow.recordingFile = new File([selfieRecording], 'selfieVideo.' + mimeType.extension, { type: mimeType.type });
|
|
9277
9277
|
await this.uploadRecording();
|
|
9278
9278
|
}
|
|
9279
9279
|
catch (e) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { h /*getAssetPath*/ } from '@stencil/core';
|
|
2
2
|
import { ApiCall } from '../../../helpers/ApiCall';
|
|
3
3
|
import store from '../../../helpers/store';
|
|
4
|
+
import { Stream } from '../../../helpers/Stream';
|
|
4
5
|
import { FlowStatus } from '../../../models/FlowStatus';
|
|
5
6
|
// import { IDPose } from '../../libs/IDML5Detector/IDPose';
|
|
6
7
|
export class IdDoubleSide {
|
|
@@ -73,10 +74,9 @@ export class IdDoubleSide {
|
|
|
73
74
|
}
|
|
74
75
|
async capturedIdRecording(event) {
|
|
75
76
|
let idRecording = event.detail;
|
|
76
|
-
let mimeType = idRecording.type.
|
|
77
|
-
let extension = mimeType.split('/')[1];
|
|
77
|
+
let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
78
78
|
try {
|
|
79
|
-
this.flow.recordingFile = new File([idRecording], this.flow.recordingFileName + extension, { type: mimeType });
|
|
79
|
+
this.flow.recordingFile = new File([idRecording], this.flow.recordingFileName + mimeType.extension, { type: mimeType.type });
|
|
80
80
|
this.uploadRecording();
|
|
81
81
|
}
|
|
82
82
|
catch (e) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { h /*getAssetPath*/ } from '@stencil/core';
|
|
2
2
|
import { ApiCall } from '../../../helpers/ApiCall';
|
|
3
3
|
import store from '../../../helpers/store';
|
|
4
|
+
import { Stream } from '../../../helpers/Stream';
|
|
4
5
|
import { FlowStatus } from '../../../models/FlowStatus';
|
|
5
6
|
// import { IDPose } from '../../libs/IDML5Detector/IDPose';
|
|
6
7
|
export class IdSingleSide {
|
|
@@ -44,11 +45,10 @@ export class IdSingleSide {
|
|
|
44
45
|
}
|
|
45
46
|
async capturedIdRecording(event) {
|
|
46
47
|
let idRecording = event.detail;
|
|
47
|
-
let mimeType = idRecording.type.
|
|
48
|
-
let extension = mimeType.split('/')[1];
|
|
48
|
+
let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
49
49
|
if (store.flowStatus == FlowStatus.ID) {
|
|
50
50
|
try {
|
|
51
|
-
this.idFlow.recordingFile = new File([idRecording], 'idVideo.' + extension, { type: mimeType });
|
|
51
|
+
this.idFlow.recordingFile = new File([idRecording], 'idVideo.' + mimeType.extension, { type: mimeType.type });
|
|
52
52
|
await this.uploadRecording();
|
|
53
53
|
}
|
|
54
54
|
catch (e) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { h } from '@stencil/core';
|
|
2
2
|
import { ApiCall } from '../../../helpers/ApiCall';
|
|
3
3
|
import store from '../../../helpers/store';
|
|
4
|
+
import { Stream } from '../../../helpers/Stream';
|
|
4
5
|
import { FlowStatus } from '../../../models/FlowStatus';
|
|
5
6
|
export class UserLiveness {
|
|
6
7
|
constructor() {
|
|
@@ -40,10 +41,9 @@ export class UserLiveness {
|
|
|
40
41
|
}
|
|
41
42
|
async capturedSelfieRecording(event) {
|
|
42
43
|
let selfieRecording = event.detail;
|
|
43
|
-
let mimeType = selfieRecording.type.
|
|
44
|
-
let extension = mimeType.split('/')[1];
|
|
44
|
+
let mimeType = selfieRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
45
45
|
try {
|
|
46
|
-
this.selfieFlow.recordingFile = new File([selfieRecording], 'selfieVideo.' + extension, { type: mimeType });
|
|
46
|
+
this.selfieFlow.recordingFile = new File([selfieRecording], 'selfieVideo.' + mimeType.extension, { type: mimeType.type });
|
|
47
47
|
await this.uploadRecording();
|
|
48
48
|
}
|
|
49
49
|
catch (e) {
|
|
@@ -57,16 +57,17 @@ export class IdentificationComponent {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
async apiErrorEmitter(data) {
|
|
60
|
-
let apiLogData =
|
|
61
|
-
if (data.
|
|
62
|
-
this.errorMessage = data.message;
|
|
63
|
-
apiLogData = data.message;
|
|
64
|
-
}
|
|
65
|
-
else if (data.detail) {
|
|
60
|
+
let apiLogData = { message: '', stack: '' };
|
|
61
|
+
if (data.detail) {
|
|
66
62
|
if (data.detail.message) {
|
|
67
63
|
this.errorMessage = data.detail.message;
|
|
68
64
|
}
|
|
69
|
-
apiLogData = data.detail;
|
|
65
|
+
apiLogData.message = data.detail.message;
|
|
66
|
+
apiLogData.stack = data.detail.stack;
|
|
67
|
+
}
|
|
68
|
+
else if (data.message) {
|
|
69
|
+
this.errorMessage = data.message;
|
|
70
|
+
apiLogData.message = data.message;
|
|
70
71
|
}
|
|
71
72
|
else {
|
|
72
73
|
this.errorMessage = data;
|
|
@@ -120,17 +120,17 @@ export class Stream {
|
|
|
120
120
|
// if (this.faceDetection) await Detector.getInstance().startDetector();
|
|
121
121
|
}
|
|
122
122
|
recordStream() {
|
|
123
|
-
var options = { mimeType:
|
|
123
|
+
var options = { mimeType: Stream.webmMimeType.mime, videoBitsPerSecond: 1500000 };
|
|
124
124
|
if (!MediaRecorder.isTypeSupported(options.mimeType)) {
|
|
125
125
|
if (this.device.isIos || this.device.isSafari)
|
|
126
|
-
options.mimeType =
|
|
126
|
+
options.mimeType = Stream.mp4MimeType.mime;
|
|
127
127
|
}
|
|
128
128
|
this.recordedChunks = [];
|
|
129
129
|
this.mediaRecorder = new MediaRecorder(this.stream, options);
|
|
130
130
|
this.mediaRecorder.ondataavailable = event => {
|
|
131
131
|
this.recordedChunks.push(event.data);
|
|
132
132
|
};
|
|
133
|
-
this.mediaRecorder.onstop =
|
|
133
|
+
this.mediaRecorder.onstop = _e => {
|
|
134
134
|
this.saveVideoRecording(this.recordedChunks, options.mimeType);
|
|
135
135
|
this.recordedChunks = [];
|
|
136
136
|
};
|
|
@@ -217,5 +217,7 @@ export class Stream {
|
|
|
217
217
|
this.callbackChangeTitle(pose);
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
+
Stream.mp4MimeType = { type: 'video/mp4', codec: 'codecs:h264', extension: 'mp4', mime: 'video/mp4;codecs:h264' };
|
|
221
|
+
Stream.webmMimeType = { type: 'video/webm', codec: 'codecs=vp8', extension: 'webm', mime: 'video/webm;codecs=vp8' };
|
|
220
222
|
window.addEventListener('resize', Stream.orientationChange, false);
|
|
221
223
|
window.addEventListener('orientationchange', Stream.orientationChange, false);
|
|
@@ -4864,17 +4864,17 @@ class Stream {
|
|
|
4864
4864
|
// if (this.faceDetection) await Detector.getInstance().startDetector();
|
|
4865
4865
|
}
|
|
4866
4866
|
recordStream() {
|
|
4867
|
-
var options = { mimeType:
|
|
4867
|
+
var options = { mimeType: Stream.webmMimeType.mime, videoBitsPerSecond: 1500000 };
|
|
4868
4868
|
if (!MediaRecorder.isTypeSupported(options.mimeType)) {
|
|
4869
4869
|
if (this.device.isIos || this.device.isSafari)
|
|
4870
|
-
options.mimeType =
|
|
4870
|
+
options.mimeType = Stream.mp4MimeType.mime;
|
|
4871
4871
|
}
|
|
4872
4872
|
this.recordedChunks = [];
|
|
4873
4873
|
this.mediaRecorder = new MediaRecorder(this.stream, options);
|
|
4874
4874
|
this.mediaRecorder.ondataavailable = event => {
|
|
4875
4875
|
this.recordedChunks.push(event.data);
|
|
4876
4876
|
};
|
|
4877
|
-
this.mediaRecorder.onstop =
|
|
4877
|
+
this.mediaRecorder.onstop = _e => {
|
|
4878
4878
|
this.saveVideoRecording(this.recordedChunks, options.mimeType);
|
|
4879
4879
|
this.recordedChunks = [];
|
|
4880
4880
|
};
|
|
@@ -4961,6 +4961,8 @@ class Stream {
|
|
|
4961
4961
|
this.callbackChangeTitle(pose);
|
|
4962
4962
|
}
|
|
4963
4963
|
}
|
|
4964
|
+
Stream.mp4MimeType = { type: 'video/mp4', codec: 'codecs:h264', extension: 'mp4', mime: 'video/mp4;codecs:h264' };
|
|
4965
|
+
Stream.webmMimeType = { type: 'video/webm', codec: 'codecs=vp8', extension: 'webm', mime: 'video/webm;codecs=vp8' };
|
|
4964
4966
|
window.addEventListener('resize', Stream.orientationChange, false);
|
|
4965
4967
|
window.addEventListener('orientationchange', Stream.orientationChange, false);
|
|
4966
4968
|
|
|
@@ -5615,10 +5617,9 @@ const IdDoubleSide = class {
|
|
|
5615
5617
|
}
|
|
5616
5618
|
async capturedIdRecording(event) {
|
|
5617
5619
|
let idRecording = event.detail;
|
|
5618
|
-
let mimeType = idRecording.type.
|
|
5619
|
-
let extension = mimeType.split('/')[1];
|
|
5620
|
+
let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
5620
5621
|
try {
|
|
5621
|
-
this.flow.recordingFile = new File([idRecording], this.flow.recordingFileName + extension, { type: mimeType });
|
|
5622
|
+
this.flow.recordingFile = new File([idRecording], this.flow.recordingFileName + mimeType.extension, { type: mimeType.type });
|
|
5622
5623
|
this.uploadRecording();
|
|
5623
5624
|
}
|
|
5624
5625
|
catch (e) {
|
|
@@ -5748,11 +5749,10 @@ const IdSingleSide = class {
|
|
|
5748
5749
|
}
|
|
5749
5750
|
async capturedIdRecording(event) {
|
|
5750
5751
|
let idRecording = event.detail;
|
|
5751
|
-
let mimeType = idRecording.type.
|
|
5752
|
-
let extension = mimeType.split('/')[1];
|
|
5752
|
+
let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
5753
5753
|
if (state.flowStatus == FlowStatus.ID) {
|
|
5754
5754
|
try {
|
|
5755
|
-
this.idFlow.recordingFile = new File([idRecording], 'idVideo.' + extension, { type: mimeType });
|
|
5755
|
+
this.idFlow.recordingFile = new File([idRecording], 'idVideo.' + mimeType.extension, { type: mimeType.type });
|
|
5756
5756
|
await this.uploadRecording();
|
|
5757
5757
|
}
|
|
5758
5758
|
catch (e) {
|
|
@@ -5907,16 +5907,17 @@ const IdentificationComponent = class {
|
|
|
5907
5907
|
}
|
|
5908
5908
|
}
|
|
5909
5909
|
async apiErrorEmitter(data) {
|
|
5910
|
-
let apiLogData =
|
|
5911
|
-
if (data.
|
|
5912
|
-
this.errorMessage = data.message;
|
|
5913
|
-
apiLogData = data.message;
|
|
5914
|
-
}
|
|
5915
|
-
else if (data.detail) {
|
|
5910
|
+
let apiLogData = { message: '', stack: '' };
|
|
5911
|
+
if (data.detail) {
|
|
5916
5912
|
if (data.detail.message) {
|
|
5917
5913
|
this.errorMessage = data.detail.message;
|
|
5918
5914
|
}
|
|
5919
|
-
apiLogData = data.detail;
|
|
5915
|
+
apiLogData.message = data.detail.message;
|
|
5916
|
+
apiLogData.stack = data.detail.stack;
|
|
5917
|
+
}
|
|
5918
|
+
else if (data.message) {
|
|
5919
|
+
this.errorMessage = data.message;
|
|
5920
|
+
apiLogData.message = data.message;
|
|
5920
5921
|
}
|
|
5921
5922
|
else {
|
|
5922
5923
|
this.errorMessage = data;
|
|
@@ -9266,10 +9267,9 @@ const UserLiveness = class {
|
|
|
9266
9267
|
}
|
|
9267
9268
|
async capturedSelfieRecording(event) {
|
|
9268
9269
|
let selfieRecording = event.detail;
|
|
9269
|
-
let mimeType = selfieRecording.type.
|
|
9270
|
-
let extension = mimeType.split('/')[1];
|
|
9270
|
+
let mimeType = selfieRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
9271
9271
|
try {
|
|
9272
|
-
this.selfieFlow.recordingFile = new File([selfieRecording], 'selfieVideo.' + extension, { type: mimeType });
|
|
9272
|
+
this.selfieFlow.recordingFile = new File([selfieRecording], 'selfieVideo.' + mimeType.extension, { type: mimeType.type });
|
|
9273
9273
|
await this.uploadRecording();
|
|
9274
9274
|
}
|
|
9275
9275
|
catch (e) {
|