@ekyc_qoobiss/qbs-ect-cmp 3.5.4 → 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.
@@ -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.4";
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 {
@@ -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 {
@@ -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.4";
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 {