@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.
- package/dist/cjs/{TranslationUtils-2d932eab.js → TranslationUtils-8f794c41.js} +12 -0
- package/dist/cjs/agreement-check_17.cjs.entry.js +208 -301
- package/dist/cjs/random-actions.cjs.entry.js +1 -1
- package/dist/collection/components/base-component.js +11 -44
- package/dist/collection/components/common/agreement-check/agreement-check.js +0 -4
- package/dist/collection/components/common/camera-error/camera-error.js +3 -10
- package/dist/collection/components/common/capture-error/capture-error.js +3 -8
- package/dist/collection/components/common/how-to-info/how-to-info.js +2 -4
- package/dist/collection/components/common/id-capture/id-capture.js +2 -3
- package/dist/collection/components/common/selfie-capture/selfie-capture.js +1 -3
- package/dist/collection/components/flow/agreement-info/agreement-info.js +4 -5
- package/dist/collection/components/flow/landing-validation/landing-validation.js +5 -11
- package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +6 -7
- package/dist/collection/components/flow/process-id/process-id.js +10 -8
- package/dist/collection/components/flow/sms-code-validation/sms-code-validation.js +5 -12
- package/dist/collection/components/flow/sms-send/sms-send.js +5 -11
- package/dist/collection/components/flow/user-liveness/user-liveness.js +7 -10
- package/dist/collection/components/identification-component/identification-component.js +14 -18
- package/dist/collection/helpers/ApiCall.js +10 -0
- package/dist/collection/helpers/textValues.js +1 -0
- package/dist/collection/models/FlowSteps.js +1 -0
- package/dist/esm/{TranslationUtils-0039c82d.js → TranslationUtils-770d32d7.js} +12 -0
- package/dist/esm/agreement-check_17.entry.js +208 -301
- package/dist/esm/random-actions.entry.js +1 -1
- package/dist/qbs-ect-cmp/{p-0c1eead0.entry.js → p-1aa8595e.entry.js} +1 -1
- package/dist/qbs-ect-cmp/{p-fca9e256.entry.js → p-36eff211.entry.js} +2 -2
- package/dist/qbs-ect-cmp/p-a073c59e.js +1 -0
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/base-component.d.ts +3 -12
- package/dist/types/components/common/agreement-check/agreement-check.d.ts +0 -1
- package/dist/types/components/common/camera-error/camera-error.d.ts +0 -1
- package/dist/types/components/common/capture-error/capture-error.d.ts +0 -1
- package/dist/types/components/common/how-to-info/how-to-info.d.ts +0 -1
- package/dist/types/components/common/id-capture/id-capture.d.ts +0 -1
- package/dist/types/components/common/selfie-capture/selfie-capture.d.ts +0 -1
- package/dist/types/components/flow/agreement-info/agreement-info.d.ts +0 -1
- package/dist/types/components/flow/landing-validation/landing-validation.d.ts +0 -1
- package/dist/types/components/flow/mobile-redirect/mobile-redirect.d.ts +0 -1
- package/dist/types/components/flow/process-id/process-id.d.ts +1 -1
- package/dist/types/components/flow/sms-code-validation/sms-code-validation.d.ts +0 -1
- package/dist/types/components/flow/sms-send/sms-send.d.ts +0 -1
- package/dist/types/components/flow/user-liveness/user-liveness.d.ts +0 -1
- package/dist/types/components/identification-component/identification-component.d.ts +0 -2
- package/dist/types/helpers/ApiCall.d.ts +3 -0
- package/dist/types/helpers/textValues.d.ts +1 -0
- package/dist/types/models/FlowSteps.d.ts +2 -1
- package/package.json +1 -1
- 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 {
|