@ekyc_qoobiss/qbs-ect-cmp 1.10.5 → 1.10.6
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 +14 -2
- package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +2 -0
- package/dist/collection/components/identification-component/identification-component.js +1 -0
- package/dist/collection/helpers/ApiCall.js +7 -0
- package/dist/collection/helpers/textValues.js +4 -2
- package/dist/esm/agreement-check_17.entry.js +14 -2
- package/dist/qbs-ect-cmp/{p-c4360d18.entry.js → p-fb9bfd9e.entry.js} +2 -2
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/helpers/ApiCall.d.ts +1 -0
- package/dist/types/helpers/textValues.d.ts +2 -0
- package/package.json +1 -1
|
@@ -330,13 +330,15 @@ class ApiUrls {
|
|
|
330
330
|
this.GenerateAgreement = this.uriEnv + 'validation/agreement/generate';
|
|
331
331
|
this.SendLink = this.uriEnv + 'validation/otp/sendlink';
|
|
332
332
|
this.GetStatus = this.uriEnv + 'validation/identity/status';
|
|
333
|
+
this.AddLog = this.uriEnv + 'validation/logs/add';
|
|
333
334
|
}
|
|
334
335
|
}
|
|
335
336
|
class MobileRedirectValues extends GlobalValues {
|
|
336
337
|
}
|
|
337
338
|
MobileRedirectValues.InfoTop = 'Pentru a continua scanați codul de mai jos cu un smartphone.';
|
|
338
|
-
MobileRedirectValues.InfoBottom = 'Sau introduceți un număr de telefon
|
|
339
|
-
MobileRedirectValues.Validation = '
|
|
339
|
+
MobileRedirectValues.InfoBottom = 'Sau introduceți un număr de telefon pentru a primi link-ul pe smartphone.';
|
|
340
|
+
MobileRedirectValues.Validation = 'Număr de telefon invalid!';
|
|
341
|
+
MobileRedirectValues.InfoWaiting = 'Așteptăm finalizarea procesului pe smartphone.';
|
|
340
342
|
|
|
341
343
|
const { state, onChange } = createStore({
|
|
342
344
|
flowStatus: FlowStatus.LANDING,
|
|
@@ -448,6 +450,13 @@ class ApiCall {
|
|
|
448
450
|
let resp = await this.post(this.urls.SendLink, JSON.stringify(data));
|
|
449
451
|
return resp.sent;
|
|
450
452
|
}
|
|
453
|
+
AddLog(error) {
|
|
454
|
+
try {
|
|
455
|
+
let data = { requestId: state.requestId, action: state.flowStatus, message: JSON.stringify(error !== null && error !== void 0 ? error : 'no error data') };
|
|
456
|
+
this.post(this.urls.AddLog, JSON.stringify(data));
|
|
457
|
+
}
|
|
458
|
+
catch (_a) { }
|
|
459
|
+
}
|
|
451
460
|
}
|
|
452
461
|
|
|
453
462
|
const agreementCheckCss = "";
|
|
@@ -5893,6 +5902,7 @@ const IdentificationComponent = class {
|
|
|
5893
5902
|
else {
|
|
5894
5903
|
this.errorMessage = data;
|
|
5895
5904
|
}
|
|
5905
|
+
this.apiCall.AddLog(data);
|
|
5896
5906
|
Events.flowError(data);
|
|
5897
5907
|
state.flowStatus = FlowStatus.ERROREND;
|
|
5898
5908
|
}
|
|
@@ -8960,11 +8970,13 @@ const MobileRedirect = class {
|
|
|
8960
8970
|
this.apiErrorEvent.emit('No order was started for this process.');
|
|
8961
8971
|
}
|
|
8962
8972
|
if (this.orderStatus == OrderStatuses.Capturing) {
|
|
8973
|
+
this.infoTextTop = MobileRedirectValues.InfoWaiting;
|
|
8963
8974
|
this.waitingMobile = true;
|
|
8964
8975
|
}
|
|
8965
8976
|
}
|
|
8966
8977
|
async buttonClick() {
|
|
8967
8978
|
this.waitingMobile = true;
|
|
8979
|
+
this.infoTextTop = MobileRedirectValues.InfoWaiting;
|
|
8968
8980
|
await this.apiCall.SendLink(this.redirectLink, this.contact);
|
|
8969
8981
|
}
|
|
8970
8982
|
handleChangeContact(ev) {
|
|
@@ -45,11 +45,13 @@ export class MobileRedirect {
|
|
|
45
45
|
this.apiErrorEvent.emit('No order was started for this process.');
|
|
46
46
|
}
|
|
47
47
|
if (this.orderStatus == OrderStatuses.Capturing) {
|
|
48
|
+
this.infoTextTop = MobileRedirectValues.InfoWaiting;
|
|
48
49
|
this.waitingMobile = true;
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
async buttonClick() {
|
|
52
53
|
this.waitingMobile = true;
|
|
54
|
+
this.infoTextTop = MobileRedirectValues.InfoWaiting;
|
|
53
55
|
await this.apiCall.SendLink(this.redirectLink, this.contact);
|
|
54
56
|
}
|
|
55
57
|
handleChangeContact(ev) {
|
|
@@ -94,4 +94,11 @@ export class ApiCall {
|
|
|
94
94
|
let resp = await this.post(this.urls.SendLink, JSON.stringify(data));
|
|
95
95
|
return resp.sent;
|
|
96
96
|
}
|
|
97
|
+
AddLog(error) {
|
|
98
|
+
try {
|
|
99
|
+
let data = { requestId: store.requestId, action: store.flowStatus, message: JSON.stringify(error !== null && error !== void 0 ? error : 'no error data') };
|
|
100
|
+
this.post(this.urls.AddLog, JSON.stringify(data));
|
|
101
|
+
}
|
|
102
|
+
catch (_a) { }
|
|
103
|
+
}
|
|
97
104
|
}
|
|
@@ -113,10 +113,12 @@ export class ApiUrls {
|
|
|
113
113
|
this.GenerateAgreement = this.uriEnv + 'validation/agreement/generate';
|
|
114
114
|
this.SendLink = this.uriEnv + 'validation/otp/sendlink';
|
|
115
115
|
this.GetStatus = this.uriEnv + 'validation/identity/status';
|
|
116
|
+
this.AddLog = this.uriEnv + 'validation/logs/add';
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
119
|
export class MobileRedirectValues extends GlobalValues {
|
|
119
120
|
}
|
|
120
121
|
MobileRedirectValues.InfoTop = 'Pentru a continua scanați codul de mai jos cu un smartphone.';
|
|
121
|
-
MobileRedirectValues.InfoBottom = 'Sau introduceți un număr de telefon
|
|
122
|
-
MobileRedirectValues.Validation = '
|
|
122
|
+
MobileRedirectValues.InfoBottom = 'Sau introduceți un număr de telefon pentru a primi link-ul pe smartphone.';
|
|
123
|
+
MobileRedirectValues.Validation = 'Număr de telefon invalid!';
|
|
124
|
+
MobileRedirectValues.InfoWaiting = 'Așteptăm finalizarea procesului pe smartphone.';
|
|
@@ -326,13 +326,15 @@ class ApiUrls {
|
|
|
326
326
|
this.GenerateAgreement = this.uriEnv + 'validation/agreement/generate';
|
|
327
327
|
this.SendLink = this.uriEnv + 'validation/otp/sendlink';
|
|
328
328
|
this.GetStatus = this.uriEnv + 'validation/identity/status';
|
|
329
|
+
this.AddLog = this.uriEnv + 'validation/logs/add';
|
|
329
330
|
}
|
|
330
331
|
}
|
|
331
332
|
class MobileRedirectValues extends GlobalValues {
|
|
332
333
|
}
|
|
333
334
|
MobileRedirectValues.InfoTop = 'Pentru a continua scanați codul de mai jos cu un smartphone.';
|
|
334
|
-
MobileRedirectValues.InfoBottom = 'Sau introduceți un număr de telefon
|
|
335
|
-
MobileRedirectValues.Validation = '
|
|
335
|
+
MobileRedirectValues.InfoBottom = 'Sau introduceți un număr de telefon pentru a primi link-ul pe smartphone.';
|
|
336
|
+
MobileRedirectValues.Validation = 'Număr de telefon invalid!';
|
|
337
|
+
MobileRedirectValues.InfoWaiting = 'Așteptăm finalizarea procesului pe smartphone.';
|
|
336
338
|
|
|
337
339
|
const { state, onChange } = createStore({
|
|
338
340
|
flowStatus: FlowStatus.LANDING,
|
|
@@ -444,6 +446,13 @@ class ApiCall {
|
|
|
444
446
|
let resp = await this.post(this.urls.SendLink, JSON.stringify(data));
|
|
445
447
|
return resp.sent;
|
|
446
448
|
}
|
|
449
|
+
AddLog(error) {
|
|
450
|
+
try {
|
|
451
|
+
let data = { requestId: state.requestId, action: state.flowStatus, message: JSON.stringify(error !== null && error !== void 0 ? error : 'no error data') };
|
|
452
|
+
this.post(this.urls.AddLog, JSON.stringify(data));
|
|
453
|
+
}
|
|
454
|
+
catch (_a) { }
|
|
455
|
+
}
|
|
447
456
|
}
|
|
448
457
|
|
|
449
458
|
const agreementCheckCss = "";
|
|
@@ -5889,6 +5898,7 @@ const IdentificationComponent = class {
|
|
|
5889
5898
|
else {
|
|
5890
5899
|
this.errorMessage = data;
|
|
5891
5900
|
}
|
|
5901
|
+
this.apiCall.AddLog(data);
|
|
5892
5902
|
Events.flowError(data);
|
|
5893
5903
|
state.flowStatus = FlowStatus.ERROREND;
|
|
5894
5904
|
}
|
|
@@ -8956,11 +8966,13 @@ const MobileRedirect = class {
|
|
|
8956
8966
|
this.apiErrorEvent.emit('No order was started for this process.');
|
|
8957
8967
|
}
|
|
8958
8968
|
if (this.orderStatus == OrderStatuses.Capturing) {
|
|
8969
|
+
this.infoTextTop = MobileRedirectValues.InfoWaiting;
|
|
8959
8970
|
this.waitingMobile = true;
|
|
8960
8971
|
}
|
|
8961
8972
|
}
|
|
8962
8973
|
async buttonClick() {
|
|
8963
8974
|
this.waitingMobile = true;
|
|
8975
|
+
this.infoTextTop = MobileRedirectValues.InfoWaiting;
|
|
8964
8976
|
await this.apiCall.SendLink(this.redirectLink, this.contact);
|
|
8965
8977
|
}
|
|
8966
8978
|
handleChangeContact(ev) {
|