@ekyc_qoobiss/qbs-ect-cmp 3.5.3 → 3.5.5
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_18.cjs.entry.js +12 -9
- package/dist/collection/components/base-component.js +4 -4
- package/dist/collection/components/common/id-back-capture/id-back-capture.js +1 -1
- package/dist/collection/components/common/id-capture/id-capture.js +1 -1
- package/dist/collection/components/common/selfie-capture/selfie-capture.js +2 -2
- package/dist/collection/components/flow/id-double-side/id-double-side.js +1 -0
- package/dist/collection/components/flow/id-single-side/id-single-side.js +1 -0
- package/dist/collection/components/flow/user-liveness/user-liveness.js +1 -0
- package/dist/esm/agreement-check_18.entry.js +12 -9
- package/dist/qbs-ect-cmp/{p-a4977375.entry.js → p-e9c2fd16.entry.js} +1 -1
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/base-component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -873,16 +873,16 @@ class BaseComponent {
|
|
|
873
873
|
setErrorCallback(callback) {
|
|
874
874
|
this.processError = callback;
|
|
875
875
|
}
|
|
876
|
-
async logStep(
|
|
877
|
-
Events.flowEvent(
|
|
876
|
+
async logStep(step, moment) {
|
|
877
|
+
Events.flowEvent(step, moment);
|
|
878
878
|
try {
|
|
879
|
-
await this.apiCall.AddStep(
|
|
879
|
+
await this.apiCall.AddStep(step, moment);
|
|
880
880
|
}
|
|
881
881
|
catch (e) {
|
|
882
882
|
if (this.apiErrorEvent)
|
|
883
883
|
this.apiErrorEvent.emit(e);
|
|
884
884
|
else
|
|
885
|
-
this.processError(e, `${
|
|
885
|
+
this.processError(e, `${step}-${moment}`);
|
|
886
886
|
}
|
|
887
887
|
}
|
|
888
888
|
async initialize() {
|
|
@@ -5855,8 +5855,8 @@ const IdBackCapture = class {
|
|
|
5855
5855
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.BackStraight];
|
|
5856
5856
|
this.demoVideo.play();
|
|
5857
5857
|
await delay(IdCaptureValues.VideoLenght);
|
|
5858
|
-
await this.baseComponent.logStep(FlowSteps.CiBackHoldAnimation, FlowMoments.Finalized);
|
|
5859
5858
|
this.showDemo = false;
|
|
5859
|
+
await this.baseComponent.logStep(FlowSteps.CiBackHoldAnimation, FlowMoments.Finalized);
|
|
5860
5860
|
this.openCamera();
|
|
5861
5861
|
}
|
|
5862
5862
|
async openCamera() {
|
|
@@ -5972,8 +5972,8 @@ const IdCapture = class {
|
|
|
5972
5972
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Straight];
|
|
5973
5973
|
this.demoVideo.play();
|
|
5974
5974
|
await delay(IdCaptureValues.VideoLenght);
|
|
5975
|
-
await this.baseComponent.logStep(FlowSteps.CiFrontHoldAnimation, FlowMoments.Finalized);
|
|
5976
5975
|
this.showDemo = false;
|
|
5976
|
+
await this.baseComponent.logStep(FlowSteps.CiFrontHoldAnimation, FlowMoments.Finalized);
|
|
5977
5977
|
this.openCamera();
|
|
5978
5978
|
}
|
|
5979
5979
|
async openCamera() {
|
|
@@ -6131,6 +6131,7 @@ const IdDoubleSide = class {
|
|
|
6131
6131
|
let idRecording = event.detail;
|
|
6132
6132
|
if (idRecording.length == 0 || idRecording.size == 0) {
|
|
6133
6133
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording }, getLogMessage());
|
|
6134
|
+
this.triggerErrorFlow();
|
|
6134
6135
|
return;
|
|
6135
6136
|
}
|
|
6136
6137
|
let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
@@ -6269,6 +6270,7 @@ const IdSingleSide = class {
|
|
|
6269
6270
|
let idPhoto = event.detail;
|
|
6270
6271
|
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
6271
6272
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
|
|
6273
|
+
this.showTimeout = true;
|
|
6272
6274
|
return;
|
|
6273
6275
|
}
|
|
6274
6276
|
try {
|
|
@@ -6432,7 +6434,7 @@ function v4(options, buf, offset) {
|
|
|
6432
6434
|
}
|
|
6433
6435
|
|
|
6434
6436
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
6435
|
-
const version$1 = "3.5.
|
|
6437
|
+
const version$1 = "3.5.5";
|
|
6436
6438
|
const description = "Person Identification Component";
|
|
6437
6439
|
const main = "./dist/index.cjs.js";
|
|
6438
6440
|
const module$1 = "./dist/index.js";
|
|
@@ -9872,8 +9874,8 @@ const SelfieCapture = class {
|
|
|
9872
9874
|
this.demoVideo.src = SelfieCaptureValues.FacePoseDemoMapping[event.detail];
|
|
9873
9875
|
this.demoVideo.play();
|
|
9874
9876
|
await delay(SelfieCaptureValues.VideoLenght);
|
|
9875
|
-
await this.baseComponent.logStep(FlowSteps.SelfieTiltAnimation, FlowMoments.Finalized);
|
|
9876
9877
|
this.demoEnded = true;
|
|
9878
|
+
await this.baseComponent.logStep(FlowSteps.SelfieTiltAnimation, FlowMoments.Finalized);
|
|
9877
9879
|
}
|
|
9878
9880
|
}
|
|
9879
9881
|
eventVideoStarted(event) {
|
|
@@ -9895,8 +9897,8 @@ const SelfieCapture = class {
|
|
|
9895
9897
|
this.demoVideo.src = SelfieCaptureValues.FacePoseDemoMapping[FacePose.Main];
|
|
9896
9898
|
this.demoVideo.play();
|
|
9897
9899
|
await delay(SelfieCaptureValues.VideoLenght);
|
|
9898
|
-
await this.baseComponent.logStep(FlowSteps.SelfieHoldAnimation, FlowMoments.Finalized);
|
|
9899
9900
|
this.demoEnded = true;
|
|
9901
|
+
await this.baseComponent.logStep(FlowSteps.SelfieHoldAnimation, FlowMoments.Finalized);
|
|
9900
9902
|
this.openCamera();
|
|
9901
9903
|
}
|
|
9902
9904
|
async openCamera() {
|
|
@@ -10106,6 +10108,7 @@ const UserLiveness = class {
|
|
|
10106
10108
|
let selfiePhoto = event.detail;
|
|
10107
10109
|
if (selfiePhoto.length == 0 || selfiePhoto.size == 0) {
|
|
10108
10110
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty selfie', blobData: selfiePhoto }, getLogMessage());
|
|
10111
|
+
this.showError = true;
|
|
10109
10112
|
return;
|
|
10110
10113
|
}
|
|
10111
10114
|
try {
|
|
@@ -21,16 +21,16 @@ export class BaseComponent {
|
|
|
21
21
|
setErrorCallback(callback) {
|
|
22
22
|
this.processError = callback;
|
|
23
23
|
}
|
|
24
|
-
async logStep(
|
|
25
|
-
Events.flowEvent(
|
|
24
|
+
async logStep(step, moment) {
|
|
25
|
+
Events.flowEvent(step, moment);
|
|
26
26
|
try {
|
|
27
|
-
await this.apiCall.AddStep(
|
|
27
|
+
await this.apiCall.AddStep(step, moment);
|
|
28
28
|
}
|
|
29
29
|
catch (e) {
|
|
30
30
|
if (this.apiErrorEvent)
|
|
31
31
|
this.apiErrorEvent.emit(e);
|
|
32
32
|
else
|
|
33
|
-
this.processError(e, `${
|
|
33
|
+
this.processError(e, `${step}-${moment}`);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
async initialize() {
|
|
@@ -60,8 +60,8 @@ export class IdBackCapture {
|
|
|
60
60
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.BackStraight];
|
|
61
61
|
this.demoVideo.play();
|
|
62
62
|
await delay(IdCaptureValues.VideoLenght);
|
|
63
|
-
await this.baseComponent.logStep(FlowSteps.CiBackHoldAnimation, FlowMoments.Finalized);
|
|
64
63
|
this.showDemo = false;
|
|
64
|
+
await this.baseComponent.logStep(FlowSteps.CiBackHoldAnimation, FlowMoments.Finalized);
|
|
65
65
|
this.openCamera();
|
|
66
66
|
}
|
|
67
67
|
async openCamera() {
|
|
@@ -56,8 +56,8 @@ export class IdCapture {
|
|
|
56
56
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Straight];
|
|
57
57
|
this.demoVideo.play();
|
|
58
58
|
await delay(IdCaptureValues.VideoLenght);
|
|
59
|
-
await this.baseComponent.logStep(FlowSteps.CiFrontHoldAnimation, FlowMoments.Finalized);
|
|
60
59
|
this.showDemo = false;
|
|
60
|
+
await this.baseComponent.logStep(FlowSteps.CiFrontHoldAnimation, FlowMoments.Finalized);
|
|
61
61
|
this.openCamera();
|
|
62
62
|
}
|
|
63
63
|
async openCamera() {
|
|
@@ -43,8 +43,8 @@ export class SelfieCapture {
|
|
|
43
43
|
this.demoVideo.src = SelfieCaptureValues.FacePoseDemoMapping[event.detail];
|
|
44
44
|
this.demoVideo.play();
|
|
45
45
|
await delay(SelfieCaptureValues.VideoLenght);
|
|
46
|
-
await this.baseComponent.logStep(FlowSteps.SelfieTiltAnimation, FlowMoments.Finalized);
|
|
47
46
|
this.demoEnded = true;
|
|
47
|
+
await this.baseComponent.logStep(FlowSteps.SelfieTiltAnimation, FlowMoments.Finalized);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
eventVideoStarted(event) {
|
|
@@ -66,8 +66,8 @@ export class SelfieCapture {
|
|
|
66
66
|
this.demoVideo.src = SelfieCaptureValues.FacePoseDemoMapping[FacePose.Main];
|
|
67
67
|
this.demoVideo.play();
|
|
68
68
|
await delay(SelfieCaptureValues.VideoLenght);
|
|
69
|
-
await this.baseComponent.logStep(FlowSteps.SelfieHoldAnimation, FlowMoments.Finalized);
|
|
70
69
|
this.demoEnded = true;
|
|
70
|
+
await this.baseComponent.logStep(FlowSteps.SelfieHoldAnimation, FlowMoments.Finalized);
|
|
71
71
|
this.openCamera();
|
|
72
72
|
}
|
|
73
73
|
async openCamera() {
|
|
@@ -90,6 +90,7 @@ export class IdDoubleSide {
|
|
|
90
90
|
let idRecording = event.detail;
|
|
91
91
|
if (idRecording.length == 0 || idRecording.size == 0) {
|
|
92
92
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording }, getLogMessage());
|
|
93
|
+
this.triggerErrorFlow();
|
|
93
94
|
return;
|
|
94
95
|
}
|
|
95
96
|
let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
@@ -37,6 +37,7 @@ export class IdSingleSide {
|
|
|
37
37
|
let idPhoto = event.detail;
|
|
38
38
|
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
39
39
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
|
|
40
|
+
this.showTimeout = true;
|
|
40
41
|
return;
|
|
41
42
|
}
|
|
42
43
|
try {
|
|
@@ -42,6 +42,7 @@ export class UserLiveness {
|
|
|
42
42
|
let selfiePhoto = event.detail;
|
|
43
43
|
if (selfiePhoto.length == 0 || selfiePhoto.size == 0) {
|
|
44
44
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty selfie', blobData: selfiePhoto }, getLogMessage());
|
|
45
|
+
this.showError = true;
|
|
45
46
|
return;
|
|
46
47
|
}
|
|
47
48
|
try {
|
|
@@ -869,16 +869,16 @@ class BaseComponent {
|
|
|
869
869
|
setErrorCallback(callback) {
|
|
870
870
|
this.processError = callback;
|
|
871
871
|
}
|
|
872
|
-
async logStep(
|
|
873
|
-
Events.flowEvent(
|
|
872
|
+
async logStep(step, moment) {
|
|
873
|
+
Events.flowEvent(step, moment);
|
|
874
874
|
try {
|
|
875
|
-
await this.apiCall.AddStep(
|
|
875
|
+
await this.apiCall.AddStep(step, moment);
|
|
876
876
|
}
|
|
877
877
|
catch (e) {
|
|
878
878
|
if (this.apiErrorEvent)
|
|
879
879
|
this.apiErrorEvent.emit(e);
|
|
880
880
|
else
|
|
881
|
-
this.processError(e, `${
|
|
881
|
+
this.processError(e, `${step}-${moment}`);
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
884
|
async initialize() {
|
|
@@ -5851,8 +5851,8 @@ const IdBackCapture = class {
|
|
|
5851
5851
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.BackStraight];
|
|
5852
5852
|
this.demoVideo.play();
|
|
5853
5853
|
await delay(IdCaptureValues.VideoLenght);
|
|
5854
|
-
await this.baseComponent.logStep(FlowSteps.CiBackHoldAnimation, FlowMoments.Finalized);
|
|
5855
5854
|
this.showDemo = false;
|
|
5855
|
+
await this.baseComponent.logStep(FlowSteps.CiBackHoldAnimation, FlowMoments.Finalized);
|
|
5856
5856
|
this.openCamera();
|
|
5857
5857
|
}
|
|
5858
5858
|
async openCamera() {
|
|
@@ -5968,8 +5968,8 @@ const IdCapture = class {
|
|
|
5968
5968
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Straight];
|
|
5969
5969
|
this.demoVideo.play();
|
|
5970
5970
|
await delay(IdCaptureValues.VideoLenght);
|
|
5971
|
-
await this.baseComponent.logStep(FlowSteps.CiFrontHoldAnimation, FlowMoments.Finalized);
|
|
5972
5971
|
this.showDemo = false;
|
|
5972
|
+
await this.baseComponent.logStep(FlowSteps.CiFrontHoldAnimation, FlowMoments.Finalized);
|
|
5973
5973
|
this.openCamera();
|
|
5974
5974
|
}
|
|
5975
5975
|
async openCamera() {
|
|
@@ -6127,6 +6127,7 @@ const IdDoubleSide = class {
|
|
|
6127
6127
|
let idRecording = event.detail;
|
|
6128
6128
|
if (idRecording.length == 0 || idRecording.size == 0) {
|
|
6129
6129
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording }, getLogMessage());
|
|
6130
|
+
this.triggerErrorFlow();
|
|
6130
6131
|
return;
|
|
6131
6132
|
}
|
|
6132
6133
|
let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
@@ -6265,6 +6266,7 @@ const IdSingleSide = class {
|
|
|
6265
6266
|
let idPhoto = event.detail;
|
|
6266
6267
|
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
6267
6268
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
|
|
6269
|
+
this.showTimeout = true;
|
|
6268
6270
|
return;
|
|
6269
6271
|
}
|
|
6270
6272
|
try {
|
|
@@ -6428,7 +6430,7 @@ function v4(options, buf, offset) {
|
|
|
6428
6430
|
}
|
|
6429
6431
|
|
|
6430
6432
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
6431
|
-
const version$1 = "3.5.
|
|
6433
|
+
const version$1 = "3.5.5";
|
|
6432
6434
|
const description = "Person Identification Component";
|
|
6433
6435
|
const main = "./dist/index.cjs.js";
|
|
6434
6436
|
const module = "./dist/index.js";
|
|
@@ -9868,8 +9870,8 @@ const SelfieCapture = class {
|
|
|
9868
9870
|
this.demoVideo.src = SelfieCaptureValues.FacePoseDemoMapping[event.detail];
|
|
9869
9871
|
this.demoVideo.play();
|
|
9870
9872
|
await delay(SelfieCaptureValues.VideoLenght);
|
|
9871
|
-
await this.baseComponent.logStep(FlowSteps.SelfieTiltAnimation, FlowMoments.Finalized);
|
|
9872
9873
|
this.demoEnded = true;
|
|
9874
|
+
await this.baseComponent.logStep(FlowSteps.SelfieTiltAnimation, FlowMoments.Finalized);
|
|
9873
9875
|
}
|
|
9874
9876
|
}
|
|
9875
9877
|
eventVideoStarted(event) {
|
|
@@ -9891,8 +9893,8 @@ const SelfieCapture = class {
|
|
|
9891
9893
|
this.demoVideo.src = SelfieCaptureValues.FacePoseDemoMapping[FacePose.Main];
|
|
9892
9894
|
this.demoVideo.play();
|
|
9893
9895
|
await delay(SelfieCaptureValues.VideoLenght);
|
|
9894
|
-
await this.baseComponent.logStep(FlowSteps.SelfieHoldAnimation, FlowMoments.Finalized);
|
|
9895
9896
|
this.demoEnded = true;
|
|
9897
|
+
await this.baseComponent.logStep(FlowSteps.SelfieHoldAnimation, FlowMoments.Finalized);
|
|
9896
9898
|
this.openCamera();
|
|
9897
9899
|
}
|
|
9898
9900
|
async openCamera() {
|
|
@@ -10102,6 +10104,7 @@ const UserLiveness = class {
|
|
|
10102
10104
|
let selfiePhoto = event.detail;
|
|
10103
10105
|
if (selfiePhoto.length == 0 || selfiePhoto.size == 0) {
|
|
10104
10106
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty selfie', blobData: selfiePhoto }, getLogMessage());
|
|
10107
|
+
this.showError = true;
|
|
10105
10108
|
return;
|
|
10106
10109
|
}
|
|
10107
10110
|
try {
|