@ekyc_qoobiss/qbs-ect-cmp 1.10.14 → 1.10.16
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 +9 -7
- package/dist/collection/components/identification-component/identification-component.js +8 -6
- package/dist/collection/helpers/ApiCall.js +2 -1
- package/dist/esm/agreement-check_17.entry.js +9 -7
- package/dist/qbs-ect-cmp/{p-3ac575b0.entry.js → p-428024ed.entry.js} +2 -2
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/package.json +1 -1
|
@@ -452,7 +452,7 @@ class ApiCall {
|
|
|
452
452
|
}
|
|
453
453
|
async AddLog(error) {
|
|
454
454
|
try {
|
|
455
|
-
let data = { requestId: state.requestId, action: state.flowStatus, message: JSON.stringify(error !== null && error !== void 0 ? error : 'no error data') };
|
|
455
|
+
let data = { requestId: state.requestId, action: FlowStatus[state.flowStatus], message: JSON.stringify(error !== null && error !== void 0 ? error : 'no error data') };
|
|
456
456
|
let result = await this.post(this.urls.AddLog, JSON.stringify(data));
|
|
457
457
|
return result.saved;
|
|
458
458
|
}
|
|
@@ -5911,19 +5911,21 @@ const IdentificationComponent = class {
|
|
|
5911
5911
|
}
|
|
5912
5912
|
}
|
|
5913
5913
|
async apiErrorEmitter(data) {
|
|
5914
|
+
let apiLogData = data;
|
|
5914
5915
|
if (data.message) {
|
|
5915
5916
|
this.errorMessage = data.message;
|
|
5917
|
+
apiLogData = data.message;
|
|
5916
5918
|
}
|
|
5917
|
-
else if (data.detail
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5919
|
+
else if (data.detail) {
|
|
5920
|
+
if (data.detail.message) {
|
|
5921
|
+
this.errorMessage = data.detail.message;
|
|
5922
|
+
}
|
|
5923
|
+
apiLogData = data.detail;
|
|
5922
5924
|
}
|
|
5923
5925
|
else {
|
|
5924
5926
|
this.errorMessage = data;
|
|
5925
5927
|
}
|
|
5926
|
-
await this.apiCall.AddLog(
|
|
5928
|
+
await this.apiCall.AddLog(apiLogData);
|
|
5927
5929
|
Events.flowError(data);
|
|
5928
5930
|
state.flowStatus = FlowStatus.ERROREND;
|
|
5929
5931
|
}
|
|
@@ -57,19 +57,21 @@ export class IdentificationComponent {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
async apiErrorEmitter(data) {
|
|
60
|
+
let apiLogData = data;
|
|
60
61
|
if (data.message) {
|
|
61
62
|
this.errorMessage = data.message;
|
|
63
|
+
apiLogData = data.message;
|
|
62
64
|
}
|
|
63
|
-
else if (data.detail
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
else if (data.detail) {
|
|
66
|
+
if (data.detail.message) {
|
|
67
|
+
this.errorMessage = data.detail.message;
|
|
68
|
+
}
|
|
69
|
+
apiLogData = data.detail;
|
|
68
70
|
}
|
|
69
71
|
else {
|
|
70
72
|
this.errorMessage = data;
|
|
71
73
|
}
|
|
72
|
-
await this.apiCall.AddLog(
|
|
74
|
+
await this.apiCall.AddLog(apiLogData);
|
|
73
75
|
Events.flowError(data);
|
|
74
76
|
store.flowStatus = FlowStatus.ERROREND;
|
|
75
77
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OrderStatuses } from '../models/OrderStatuses';
|
|
2
2
|
import store from './store';
|
|
3
3
|
import { ApiUrls } from './textValues';
|
|
4
|
+
import { FlowStatus } from '../models/FlowStatus';
|
|
4
5
|
export class ApiCall {
|
|
5
6
|
constructor() {
|
|
6
7
|
this.toBase64 = (file) => new Promise((resolve, reject) => {
|
|
@@ -96,7 +97,7 @@ export class ApiCall {
|
|
|
96
97
|
}
|
|
97
98
|
async AddLog(error) {
|
|
98
99
|
try {
|
|
99
|
-
let data = { requestId: store.requestId, action: store.flowStatus, message: JSON.stringify(error !== null && error !== void 0 ? error : 'no error data') };
|
|
100
|
+
let data = { requestId: store.requestId, action: FlowStatus[store.flowStatus], message: JSON.stringify(error !== null && error !== void 0 ? error : 'no error data') };
|
|
100
101
|
let result = await this.post(this.urls.AddLog, JSON.stringify(data));
|
|
101
102
|
return result.saved;
|
|
102
103
|
}
|
|
@@ -448,7 +448,7 @@ class ApiCall {
|
|
|
448
448
|
}
|
|
449
449
|
async AddLog(error) {
|
|
450
450
|
try {
|
|
451
|
-
let data = { requestId: state.requestId, action: state.flowStatus, message: JSON.stringify(error !== null && error !== void 0 ? error : 'no error data') };
|
|
451
|
+
let data = { requestId: state.requestId, action: FlowStatus[state.flowStatus], message: JSON.stringify(error !== null && error !== void 0 ? error : 'no error data') };
|
|
452
452
|
let result = await this.post(this.urls.AddLog, JSON.stringify(data));
|
|
453
453
|
return result.saved;
|
|
454
454
|
}
|
|
@@ -5907,19 +5907,21 @@ const IdentificationComponent = class {
|
|
|
5907
5907
|
}
|
|
5908
5908
|
}
|
|
5909
5909
|
async apiErrorEmitter(data) {
|
|
5910
|
+
let apiLogData = data;
|
|
5910
5911
|
if (data.message) {
|
|
5911
5912
|
this.errorMessage = data.message;
|
|
5913
|
+
apiLogData = data.message;
|
|
5912
5914
|
}
|
|
5913
|
-
else if (data.detail
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5915
|
+
else if (data.detail) {
|
|
5916
|
+
if (data.detail.message) {
|
|
5917
|
+
this.errorMessage = data.detail.message;
|
|
5918
|
+
}
|
|
5919
|
+
apiLogData = data.detail;
|
|
5918
5920
|
}
|
|
5919
5921
|
else {
|
|
5920
5922
|
this.errorMessage = data;
|
|
5921
5923
|
}
|
|
5922
|
-
await this.apiCall.AddLog(
|
|
5924
|
+
await this.apiCall.AddLog(apiLogData);
|
|
5923
5925
|
Events.flowError(data);
|
|
5924
5926
|
state.flowStatus = FlowStatus.ERROREND;
|
|
5925
5927
|
}
|