@ekyc_qoobiss/qbs-ect-cmp 3.4.1 → 3.4.3

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.
@@ -431,7 +431,7 @@ var FlowMoments;
431
431
 
432
432
  class ApiCall {
433
433
  constructor() {
434
- this.serviceUnavailableError = 'Service Unavailable';
434
+ this.serviceErrors = ['Service Unavailable', 'Unauthorized'];
435
435
  this.toBase64 = (file) => new Promise((resolve, reject) => {
436
436
  const reader = new FileReader();
437
437
  reader.readAsDataURL(file);
@@ -489,7 +489,7 @@ class ApiCall {
489
489
  return await this.http(request);
490
490
  }
491
491
  catch (ex) {
492
- if (!withRetry || ex.message == this.serviceUnavailableError) {
492
+ if (!withRetry || this.serviceErrors.includes(ex.message)) {
493
493
  throw ex;
494
494
  }
495
495
  this.AddLog('Error in post ', ex);
@@ -514,7 +514,7 @@ class ApiCall {
514
514
  return await this.http(request);
515
515
  }
516
516
  catch (ex) {
517
- if (!withRetry || ex.message == this.serviceUnavailableError) {
517
+ if (!withRetry || this.serviceErrors.includes(ex.message)) {
518
518
  throw ex;
519
519
  }
520
520
  this.AddLog('Error in get ', ex);
@@ -606,7 +606,7 @@ class ApiCall {
606
606
  catch (_a) { }
607
607
  }
608
608
  async AddStep(step, moment) {
609
- let data = { requestId: state.requestId, redirectId: state.redirectId, step: FlowSteps[step], moment: FlowMoments[moment] };
609
+ let data = { requestId: state.requestId, redirectId: state.redirectId, step: FlowSteps[step], moment: FlowMoments[moment], timestamp: new Date().toISOString() };
610
610
  let result = await this.post(this.urls.AddStep, JSON.stringify(data));
611
611
  return result.saved;
612
612
  }
@@ -6374,7 +6374,7 @@ function v4(options, buf, offset) {
6374
6374
  }
6375
6375
 
6376
6376
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
6377
- const version$1 = "3.4.1";
6377
+ const version$1 = "3.4.3";
6378
6378
  const description = "Person Identification Component";
6379
6379
  const main = "./dist/index.cjs.js";
6380
6380
  const module$1 = "./dist/index.js";
@@ -5,7 +5,7 @@ import { FlowStatus } from '../models/FlowStatus';
5
5
  import { FlowMoments, FlowSteps } from '../models/FlowSteps';
6
6
  export class ApiCall {
7
7
  constructor() {
8
- this.serviceUnavailableError = 'Service Unavailable';
8
+ this.serviceErrors = ['Service Unavailable', 'Unauthorized'];
9
9
  this.toBase64 = (file) => new Promise((resolve, reject) => {
10
10
  const reader = new FileReader();
11
11
  reader.readAsDataURL(file);
@@ -63,7 +63,7 @@ export class ApiCall {
63
63
  return await this.http(request);
64
64
  }
65
65
  catch (ex) {
66
- if (!withRetry || ex.message == this.serviceUnavailableError) {
66
+ if (!withRetry || this.serviceErrors.includes(ex.message)) {
67
67
  throw ex;
68
68
  }
69
69
  this.AddLog('Error in post ', ex);
@@ -88,7 +88,7 @@ export class ApiCall {
88
88
  return await this.http(request);
89
89
  }
90
90
  catch (ex) {
91
- if (!withRetry || ex.message == this.serviceUnavailableError) {
91
+ if (!withRetry || this.serviceErrors.includes(ex.message)) {
92
92
  throw ex;
93
93
  }
94
94
  this.AddLog('Error in get ', ex);
@@ -180,7 +180,7 @@ export class ApiCall {
180
180
  catch (_a) { }
181
181
  }
182
182
  async AddStep(step, moment) {
183
- let data = { requestId: store.requestId, redirectId: store.redirectId, step: FlowSteps[step], moment: FlowMoments[moment] };
183
+ let data = { requestId: store.requestId, redirectId: store.redirectId, step: FlowSteps[step], moment: FlowMoments[moment], timestamp: new Date().toISOString() };
184
184
  let result = await this.post(this.urls.AddStep, JSON.stringify(data));
185
185
  return result.saved;
186
186
  }
@@ -427,7 +427,7 @@ var FlowMoments;
427
427
 
428
428
  class ApiCall {
429
429
  constructor() {
430
- this.serviceUnavailableError = 'Service Unavailable';
430
+ this.serviceErrors = ['Service Unavailable', 'Unauthorized'];
431
431
  this.toBase64 = (file) => new Promise((resolve, reject) => {
432
432
  const reader = new FileReader();
433
433
  reader.readAsDataURL(file);
@@ -485,7 +485,7 @@ class ApiCall {
485
485
  return await this.http(request);
486
486
  }
487
487
  catch (ex) {
488
- if (!withRetry || ex.message == this.serviceUnavailableError) {
488
+ if (!withRetry || this.serviceErrors.includes(ex.message)) {
489
489
  throw ex;
490
490
  }
491
491
  this.AddLog('Error in post ', ex);
@@ -510,7 +510,7 @@ class ApiCall {
510
510
  return await this.http(request);
511
511
  }
512
512
  catch (ex) {
513
- if (!withRetry || ex.message == this.serviceUnavailableError) {
513
+ if (!withRetry || this.serviceErrors.includes(ex.message)) {
514
514
  throw ex;
515
515
  }
516
516
  this.AddLog('Error in get ', ex);
@@ -602,7 +602,7 @@ class ApiCall {
602
602
  catch (_a) { }
603
603
  }
604
604
  async AddStep(step, moment) {
605
- let data = { requestId: state.requestId, redirectId: state.redirectId, step: FlowSteps[step], moment: FlowMoments[moment] };
605
+ let data = { requestId: state.requestId, redirectId: state.redirectId, step: FlowSteps[step], moment: FlowMoments[moment], timestamp: new Date().toISOString() };
606
606
  let result = await this.post(this.urls.AddStep, JSON.stringify(data));
607
607
  return result.saved;
608
608
  }
@@ -6370,7 +6370,7 @@ function v4(options, buf, offset) {
6370
6370
  }
6371
6371
 
6372
6372
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
6373
- const version$1 = "3.4.1";
6373
+ const version$1 = "3.4.3";
6374
6374
  const description = "Person Identification Component";
6375
6375
  const main = "./dist/index.cjs.js";
6376
6376
  const module = "./dist/index.js";