@ekyc_qoobiss/qbs-ect-cmp 1.12.8 → 2.0.0
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/agreement-check_17.cjs.entry.js +114 -41
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/qbs-ect-cmp.cjs.js +1 -1
- package/dist/collection/components/common/agreement-check/agreement-check.js +1 -1
- package/dist/collection/components/common/capture-error/capture-error.js +1 -1
- package/dist/collection/components/common/how-to-info/how-to-info.js +1 -1
- package/dist/collection/components/flow/agreement-info/agreement-info.js +1 -1
- package/dist/collection/components/flow/landing-validation/landing-validation.js +32 -2
- package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +17 -6
- package/dist/collection/components/flow/sms-code-validation/sms-code-validation.js +14 -3
- package/dist/collection/components/identification-component/identification-component.css +9 -72
- package/dist/collection/components/identification-component/identification-component.js +56 -14
- package/dist/collection/helpers/ApiCall.js +8 -1
- package/dist/collection/helpers/Cameras.js +2 -2
- package/dist/collection/helpers/Events.js +15 -5
- package/dist/collection/helpers/store.js +1 -0
- package/dist/collection/helpers/textValues.js +3 -0
- package/dist/collection/libs/IDML5Detector/IDML5Detector.js +1 -3
- package/dist/collection/models/IAbortResult.js +1 -0
- package/dist/collection/models/OrderStatuses.js +1 -0
- package/dist/esm/agreement-check_17.entry.js +114 -41
- package/dist/esm/loader.js +1 -1
- package/dist/esm/qbs-ect-cmp.js +1 -1
- package/dist/qbs-ect-cmp/{p-ee681a53.entry.js → p-7b895b56.entry.js} +2 -2
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/flow/landing-validation/landing-validation.d.ts +4 -0
- package/dist/types/components/flow/mobile-redirect/mobile-redirect.d.ts +1 -0
- package/dist/types/components/flow/sms-code-validation/sms-code-validation.d.ts +2 -0
- package/dist/types/components/identification-component/identification-component.d.ts +3 -1
- package/dist/types/components.d.ts +7 -0
- package/dist/types/helpers/ApiCall.d.ts +1 -0
- package/dist/types/helpers/Cameras.d.ts +1 -1
- package/dist/types/helpers/Events.d.ts +2 -1
- package/dist/types/helpers/store.d.ts +1 -0
- package/dist/types/helpers/textValues.d.ts +3 -0
- package/dist/types/models/IAbortResult.d.ts +3 -0
- package/dist/types/models/IAddRequest.d.ts +1 -0
- package/dist/types/models/OrderStatuses.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
export default class Events {
|
|
2
2
|
static init(element) {
|
|
3
|
-
this.
|
|
3
|
+
this.callingModule = element;
|
|
4
4
|
}
|
|
5
5
|
static flowStarted() {
|
|
6
|
-
this.
|
|
6
|
+
this.callingModule.dispatchEvent(new CustomEvent('ect-started', {
|
|
7
|
+
detail: {},
|
|
8
|
+
bubbles: true,
|
|
9
|
+
cancelable: true,
|
|
10
|
+
composed: true,
|
|
11
|
+
}));
|
|
12
|
+
}
|
|
13
|
+
static flowAborted() {
|
|
14
|
+
sessionStorage.clear();
|
|
15
|
+
this.callingModule.dispatchEvent(new CustomEvent('ect-aborted', {
|
|
7
16
|
detail: {},
|
|
8
17
|
bubbles: true,
|
|
9
18
|
cancelable: true,
|
|
@@ -12,7 +21,7 @@ export default class Events {
|
|
|
12
21
|
}
|
|
13
22
|
static flowCompleted() {
|
|
14
23
|
sessionStorage.clear();
|
|
15
|
-
this.
|
|
24
|
+
this.callingModule.dispatchEvent(new CustomEvent('ect-completed', {
|
|
16
25
|
detail: {},
|
|
17
26
|
bubbles: true,
|
|
18
27
|
cancelable: true,
|
|
@@ -21,7 +30,7 @@ export default class Events {
|
|
|
21
30
|
}
|
|
22
31
|
static flowError(error) {
|
|
23
32
|
sessionStorage.clear();
|
|
24
|
-
this.
|
|
33
|
+
this.callingModule.dispatchEvent(new CustomEvent('ect-error', {
|
|
25
34
|
detail: { error },
|
|
26
35
|
bubbles: true,
|
|
27
36
|
cancelable: true,
|
|
@@ -29,7 +38,8 @@ export default class Events {
|
|
|
29
38
|
}));
|
|
30
39
|
}
|
|
31
40
|
static tokenExpired() {
|
|
32
|
-
|
|
41
|
+
sessionStorage.clear();
|
|
42
|
+
this.callingModule.dispatchEvent(new CustomEvent('ect-session-expired', {
|
|
33
43
|
detail: {},
|
|
34
44
|
bubbles: true,
|
|
35
45
|
cancelable: true,
|
|
@@ -23,6 +23,7 @@ LandingValues.Warning = 'ATENȚIE! În cadrul acestui proces se poate utiliza do
|
|
|
23
23
|
LandingValues.WarningMd = 'ATENȚIE! In cadrul acestui proces se pot utiliza doar buletinele de identitate din Republica Moldova.';
|
|
24
24
|
LandingValues.Terms = 'Prin continuarea procesului, confirmi că ai citit termenii de utilizare și ești de acord cu aceștia.';
|
|
25
25
|
LandingValues.Button = 'Am înțeles';
|
|
26
|
+
LandingValues.ButtonLeave = 'Nu sunt pregătit';
|
|
26
27
|
export class PhoneValidationValues extends GlobalValues {
|
|
27
28
|
}
|
|
28
29
|
PhoneValidationValues.Title = 'Este necesar să validăm numărul tău de telefon';
|
|
@@ -118,6 +119,7 @@ export class ApiUrls {
|
|
|
118
119
|
this.SendLink = this.uriEnv + 'validation/otp/sendlink';
|
|
119
120
|
this.GetStatus = this.uriEnv + 'validation/identity/status';
|
|
120
121
|
this.AddLog = this.uriEnv + 'validation/logs/add';
|
|
122
|
+
this.AbortRequest = this.uriEnv + 'validation/identity/abort';
|
|
121
123
|
}
|
|
122
124
|
}
|
|
123
125
|
export class MobileRedirectValues extends GlobalValues {
|
|
@@ -126,3 +128,4 @@ MobileRedirectValues.InfoTop = 'Pentru a continua scanați codul de mai jos cu u
|
|
|
126
128
|
MobileRedirectValues.InfoBottom = 'Sau introduceți un număr de telefon pentru a primi link-ul pe smartphone.';
|
|
127
129
|
MobileRedirectValues.Validation = 'Număr de telefon invalid!';
|
|
128
130
|
MobileRedirectValues.InfoWaiting = 'Așteptăm finalizarea procesului pe smartphone.';
|
|
131
|
+
MobileRedirectValues.InfoAborted = 'Procesului de pe smartphone a fost amanat.';
|
|
@@ -43,9 +43,6 @@ export class IDML5Detector {
|
|
|
43
43
|
this.stream.verificationReady();
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
if (this.full == 1 && this.tilted == 0) {
|
|
47
|
-
this.stream.autoCapturing();
|
|
48
|
-
}
|
|
49
46
|
if (Date.now() - this.initTime >= this.MAX_DETECTION) {
|
|
50
47
|
this.continue = false;
|
|
51
48
|
this.stream.timeElapsed();
|
|
@@ -61,6 +58,7 @@ export class IDML5Detector {
|
|
|
61
58
|
}
|
|
62
59
|
if (results[0].label == 'full' && results[0].confidence > 0.9 && this.full == 0) {
|
|
63
60
|
this.full = 1;
|
|
61
|
+
this.stream.autoCapturing();
|
|
64
62
|
await this.drawFrame('green');
|
|
65
63
|
this.stream.changeIDPose(IDPose.Tilted);
|
|
66
64
|
await this.delay(GlobalValues.VideoLenght);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,4 +4,5 @@ export var OrderStatuses;
|
|
|
4
4
|
OrderStatuses[OrderStatuses["FinishedCapturing"] = 1] = "FinishedCapturing";
|
|
5
5
|
OrderStatuses[OrderStatuses["Waiting"] = 2] = "Waiting";
|
|
6
6
|
OrderStatuses[OrderStatuses["NotFound"] = 3] = "NotFound";
|
|
7
|
+
OrderStatuses[OrderStatuses["Aborted"] = 4] = "Aborted";
|
|
7
8
|
})(OrderStatuses || (OrderStatuses = {}));
|