@ekyc_qoobiss/qbs-ect-cmp 3.6.43 → 3.6.45
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-dd73945b.js → TranslationUtils-006f5c9e.js} +8 -1
- package/dist/cjs/agreement-check_17.cjs.entry.js +206 -292
- 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 +6 -13
- package/dist/collection/components/flow/sms-send/sms-send.js +6 -12
- package/dist/collection/components/flow/user-liveness/user-liveness.js +7 -10
- package/dist/collection/components/identification-component/identification-component.js +10 -7
- package/dist/collection/helpers/ApiCall.js +7 -1
- package/dist/collection/models/FlowSteps.js +1 -0
- package/dist/esm/{TranslationUtils-741a728a.js → TranslationUtils-13cb9b8c.js} +8 -1
- package/dist/esm/agreement-check_17.entry.js +206 -292
- package/dist/esm/random-actions.entry.js +1 -1
- package/dist/qbs-ect-cmp/p-004a2264.js +1 -0
- package/dist/qbs-ect-cmp/{p-a4babb67.entry.js → p-44d4faec.entry.js} +2 -2
- package/dist/qbs-ect-cmp/{p-a130edd5.entry.js → p-c93d153b.entry.js} +1 -1
- 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 -1
- package/dist/types/helpers/ApiCall.d.ts +2 -0
- package/dist/types/models/FlowSteps.d.ts +2 -1
- package/dist/types/models/IAddRequest.d.ts +1 -1
- package/dist/types/models/IOtpCheck.d.ts +1 -1
- package/dist/types/models/IOtpSend.d.ts +1 -1
- package/package.json +1 -1
- package/dist/qbs-ect-cmp/p-87c689d6.js +0 -1
|
@@ -323,6 +323,7 @@ exports.FlowSteps = void 0;
|
|
|
323
323
|
FlowSteps[FlowSteps["SelfieError"] = 'selfie-error'] = "SelfieError";
|
|
324
324
|
FlowSteps[FlowSteps["End"] = 'end'] = "End";
|
|
325
325
|
FlowSteps[FlowSteps["CameraError"] = 'camera-error'] = "CameraError";
|
|
326
|
+
FlowSteps[FlowSteps["Default"] = 'default'] = "Default";
|
|
326
327
|
})(exports.FlowSteps || (exports.FlowSteps = {}));
|
|
327
328
|
exports.FlowMoments = void 0;
|
|
328
329
|
(function (FlowMoments) {
|
|
@@ -332,6 +333,12 @@ exports.FlowMoments = void 0;
|
|
|
332
333
|
})(exports.FlowMoments || (exports.FlowMoments = {}));
|
|
333
334
|
|
|
334
335
|
class ApiCall {
|
|
336
|
+
static getInstance() {
|
|
337
|
+
if (!ApiCall.instance) {
|
|
338
|
+
ApiCall.instance = new ApiCall();
|
|
339
|
+
}
|
|
340
|
+
return ApiCall.instance;
|
|
341
|
+
}
|
|
335
342
|
constructor() {
|
|
336
343
|
this.serviceErrors = ['Service Unavailable', 'Unauthorized'];
|
|
337
344
|
this.toBase64 = (file) => new Promise((resolve, reject) => {
|
|
@@ -484,7 +491,7 @@ class ApiCall {
|
|
|
484
491
|
state.requestId = jsonResp.requestId;
|
|
485
492
|
}
|
|
486
493
|
state.phoneNumber = jsonResp.phoneNumber;
|
|
487
|
-
state.flowStatus = exports.FlowStatus[jsonResp.
|
|
494
|
+
state.flowStatus = exports.FlowStatus[jsonResp.state];
|
|
488
495
|
return true;
|
|
489
496
|
}
|
|
490
497
|
async UploadFileForRequestB64(requestId, type, file) {
|