@ekyc_qoobiss/qbs-ect-cmp 3.6.44 → 3.6.46

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.
Files changed (48) hide show
  1. package/dist/cjs/{TranslationUtils-2d932eab.js → TranslationUtils-8f794c41.js} +12 -0
  2. package/dist/cjs/agreement-check_17.cjs.entry.js +208 -301
  3. package/dist/cjs/random-actions.cjs.entry.js +1 -1
  4. package/dist/collection/components/base-component.js +11 -44
  5. package/dist/collection/components/common/agreement-check/agreement-check.js +0 -4
  6. package/dist/collection/components/common/camera-error/camera-error.js +3 -10
  7. package/dist/collection/components/common/capture-error/capture-error.js +3 -8
  8. package/dist/collection/components/common/how-to-info/how-to-info.js +2 -4
  9. package/dist/collection/components/common/id-capture/id-capture.js +2 -3
  10. package/dist/collection/components/common/selfie-capture/selfie-capture.js +1 -3
  11. package/dist/collection/components/flow/agreement-info/agreement-info.js +4 -5
  12. package/dist/collection/components/flow/landing-validation/landing-validation.js +5 -11
  13. package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +6 -7
  14. package/dist/collection/components/flow/process-id/process-id.js +10 -8
  15. package/dist/collection/components/flow/sms-code-validation/sms-code-validation.js +5 -12
  16. package/dist/collection/components/flow/sms-send/sms-send.js +5 -11
  17. package/dist/collection/components/flow/user-liveness/user-liveness.js +7 -10
  18. package/dist/collection/components/identification-component/identification-component.js +14 -18
  19. package/dist/collection/helpers/ApiCall.js +10 -0
  20. package/dist/collection/helpers/textValues.js +1 -0
  21. package/dist/collection/models/FlowSteps.js +1 -0
  22. package/dist/esm/{TranslationUtils-0039c82d.js → TranslationUtils-770d32d7.js} +12 -0
  23. package/dist/esm/agreement-check_17.entry.js +208 -301
  24. package/dist/esm/random-actions.entry.js +1 -1
  25. package/dist/qbs-ect-cmp/{p-0c1eead0.entry.js → p-1aa8595e.entry.js} +1 -1
  26. package/dist/qbs-ect-cmp/{p-fca9e256.entry.js → p-36eff211.entry.js} +2 -2
  27. package/dist/qbs-ect-cmp/p-a073c59e.js +1 -0
  28. package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
  29. package/dist/types/components/base-component.d.ts +3 -12
  30. package/dist/types/components/common/agreement-check/agreement-check.d.ts +0 -1
  31. package/dist/types/components/common/camera-error/camera-error.d.ts +0 -1
  32. package/dist/types/components/common/capture-error/capture-error.d.ts +0 -1
  33. package/dist/types/components/common/how-to-info/how-to-info.d.ts +0 -1
  34. package/dist/types/components/common/id-capture/id-capture.d.ts +0 -1
  35. package/dist/types/components/common/selfie-capture/selfie-capture.d.ts +0 -1
  36. package/dist/types/components/flow/agreement-info/agreement-info.d.ts +0 -1
  37. package/dist/types/components/flow/landing-validation/landing-validation.d.ts +0 -1
  38. package/dist/types/components/flow/mobile-redirect/mobile-redirect.d.ts +0 -1
  39. package/dist/types/components/flow/process-id/process-id.d.ts +1 -1
  40. package/dist/types/components/flow/sms-code-validation/sms-code-validation.d.ts +0 -1
  41. package/dist/types/components/flow/sms-send/sms-send.d.ts +0 -1
  42. package/dist/types/components/flow/user-liveness/user-liveness.d.ts +0 -1
  43. package/dist/types/components/identification-component/identification-component.d.ts +0 -2
  44. package/dist/types/helpers/ApiCall.d.ts +3 -0
  45. package/dist/types/helpers/textValues.d.ts +1 -0
  46. package/dist/types/models/FlowSteps.d.ts +2 -1
  47. package/package.json +1 -1
  48. package/dist/qbs-ect-cmp/p-b969ca3e.js +0 -1
@@ -270,6 +270,7 @@ class ApiUrls {
270
270
  this.Translations = this.uriEnv + 'validation/translations/get';
271
271
  this.StartFlow = this.uriEnv + 'flowstate/startflow';
272
272
  this.NextFlowState = this.uriEnv + 'flowstate/getnextstate';
273
+ this.CurrentFlowState = this.uriEnv + 'flowstate/getcurrentstate';
273
274
  }
274
275
  }
275
276
 
@@ -323,6 +324,7 @@ exports.FlowSteps = void 0;
323
324
  FlowSteps[FlowSteps["SelfieError"] = 'selfie-error'] = "SelfieError";
324
325
  FlowSteps[FlowSteps["End"] = 'end'] = "End";
325
326
  FlowSteps[FlowSteps["CameraError"] = 'camera-error'] = "CameraError";
327
+ FlowSteps[FlowSteps["Default"] = 'default'] = "Default";
326
328
  })(exports.FlowSteps || (exports.FlowSteps = {}));
327
329
  exports.FlowMoments = void 0;
328
330
  (function (FlowMoments) {
@@ -332,6 +334,12 @@ exports.FlowMoments = void 0;
332
334
  })(exports.FlowMoments || (exports.FlowMoments = {}));
333
335
 
334
336
  class ApiCall {
337
+ static getInstance() {
338
+ if (!ApiCall.instance) {
339
+ ApiCall.instance = new ApiCall();
340
+ }
341
+ return ApiCall.instance;
342
+ }
335
343
  constructor() {
336
344
  this.serviceErrors = ['Service Unavailable', 'Unauthorized'];
337
345
  this.toBase64 = (file) => new Promise((resolve, reject) => {
@@ -551,6 +559,10 @@ class ApiCall {
551
559
  let result = await this.get(this.urls.StartFlow + '?requesId=' + state.requestId);
552
560
  return exports.FlowStatus[result.state];
553
561
  }
562
+ async GetFlowState() {
563
+ let result = await this.get(this.urls.CurrentFlowState + '?requesId=' + state.requestId);
564
+ return exports.FlowStatus[result.state];
565
+ }
554
566
  }
555
567
 
556
568
  class TranslationsController {