@ekyc_qoobiss/qbs-ect-cmp 1.10.12 → 1.10.14
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 +6 -5
- package/dist/collection/components/identification-component/identification-component.js +2 -2
- package/dist/collection/helpers/ApiCall.js +3 -2
- package/dist/collection/helpers/Stream.js +1 -1
- package/dist/collection/models/ILogResult.js +1 -0
- package/dist/esm/agreement-check_17.entry.js +6 -5
- package/dist/qbs-ect-cmp/{p-f555ed2b.entry.js → p-3ac575b0.entry.js} +2 -2
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/identification-component/identification-component.d.ts +1 -1
- package/dist/types/helpers/ApiCall.d.ts +1 -1
- package/dist/types/models/ILogResult.d.ts +3 -0
- package/package.json +1 -1
|
@@ -450,10 +450,11 @@ class ApiCall {
|
|
|
450
450
|
let resp = await this.post(this.urls.SendLink, JSON.stringify(data));
|
|
451
451
|
return resp.sent;
|
|
452
452
|
}
|
|
453
|
-
AddLog(error) {
|
|
453
|
+
async AddLog(error) {
|
|
454
454
|
try {
|
|
455
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));
|
|
456
|
+
let result = await this.post(this.urls.AddLog, JSON.stringify(data));
|
|
457
|
+
return result.saved;
|
|
457
458
|
}
|
|
458
459
|
catch (_a) { }
|
|
459
460
|
}
|
|
@@ -4877,7 +4878,7 @@ class Stream {
|
|
|
4877
4878
|
this.mediaRecorder.ondataavailable = event => {
|
|
4878
4879
|
this.recordedChunks.push(event.data);
|
|
4879
4880
|
};
|
|
4880
|
-
this.mediaRecorder.onstop =
|
|
4881
|
+
this.mediaRecorder.onstop = (_e) => {
|
|
4881
4882
|
this.saveVideoRecording(this.recordedChunks, options.mimeType);
|
|
4882
4883
|
this.recordedChunks = [];
|
|
4883
4884
|
};
|
|
@@ -5909,7 +5910,7 @@ const IdentificationComponent = class {
|
|
|
5909
5910
|
this.apiErrorEmitter(e);
|
|
5910
5911
|
}
|
|
5911
5912
|
}
|
|
5912
|
-
apiErrorEmitter(data) {
|
|
5913
|
+
async apiErrorEmitter(data) {
|
|
5913
5914
|
if (data.message) {
|
|
5914
5915
|
this.errorMessage = data.message;
|
|
5915
5916
|
}
|
|
@@ -5922,7 +5923,7 @@ const IdentificationComponent = class {
|
|
|
5922
5923
|
else {
|
|
5923
5924
|
this.errorMessage = data;
|
|
5924
5925
|
}
|
|
5925
|
-
this.apiCall.AddLog(data);
|
|
5926
|
+
await this.apiCall.AddLog(data);
|
|
5926
5927
|
Events.flowError(data);
|
|
5927
5928
|
state.flowStatus = FlowStatus.ERROREND;
|
|
5928
5929
|
}
|
|
@@ -56,7 +56,7 @@ export class IdentificationComponent {
|
|
|
56
56
|
this.apiErrorEmitter(e);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
apiErrorEmitter(data) {
|
|
59
|
+
async apiErrorEmitter(data) {
|
|
60
60
|
if (data.message) {
|
|
61
61
|
this.errorMessage = data.message;
|
|
62
62
|
}
|
|
@@ -69,7 +69,7 @@ export class IdentificationComponent {
|
|
|
69
69
|
else {
|
|
70
70
|
this.errorMessage = data;
|
|
71
71
|
}
|
|
72
|
-
this.apiCall.AddLog(data);
|
|
72
|
+
await this.apiCall.AddLog(data);
|
|
73
73
|
Events.flowError(data);
|
|
74
74
|
store.flowStatus = FlowStatus.ERROREND;
|
|
75
75
|
}
|
|
@@ -94,10 +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) {
|
|
97
|
+
async AddLog(error) {
|
|
98
98
|
try {
|
|
99
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));
|
|
100
|
+
let result = await this.post(this.urls.AddLog, JSON.stringify(data));
|
|
101
|
+
return result.saved;
|
|
101
102
|
}
|
|
102
103
|
catch (_a) { }
|
|
103
104
|
}
|
|
@@ -130,7 +130,7 @@ export class Stream {
|
|
|
130
130
|
this.mediaRecorder.ondataavailable = event => {
|
|
131
131
|
this.recordedChunks.push(event.data);
|
|
132
132
|
};
|
|
133
|
-
this.mediaRecorder.onstop =
|
|
133
|
+
this.mediaRecorder.onstop = (_e) => {
|
|
134
134
|
this.saveVideoRecording(this.recordedChunks, options.mimeType);
|
|
135
135
|
this.recordedChunks = [];
|
|
136
136
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -446,10 +446,11 @@ class ApiCall {
|
|
|
446
446
|
let resp = await this.post(this.urls.SendLink, JSON.stringify(data));
|
|
447
447
|
return resp.sent;
|
|
448
448
|
}
|
|
449
|
-
AddLog(error) {
|
|
449
|
+
async AddLog(error) {
|
|
450
450
|
try {
|
|
451
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));
|
|
452
|
+
let result = await this.post(this.urls.AddLog, JSON.stringify(data));
|
|
453
|
+
return result.saved;
|
|
453
454
|
}
|
|
454
455
|
catch (_a) { }
|
|
455
456
|
}
|
|
@@ -4873,7 +4874,7 @@ class Stream {
|
|
|
4873
4874
|
this.mediaRecorder.ondataavailable = event => {
|
|
4874
4875
|
this.recordedChunks.push(event.data);
|
|
4875
4876
|
};
|
|
4876
|
-
this.mediaRecorder.onstop =
|
|
4877
|
+
this.mediaRecorder.onstop = (_e) => {
|
|
4877
4878
|
this.saveVideoRecording(this.recordedChunks, options.mimeType);
|
|
4878
4879
|
this.recordedChunks = [];
|
|
4879
4880
|
};
|
|
@@ -5905,7 +5906,7 @@ const IdentificationComponent = class {
|
|
|
5905
5906
|
this.apiErrorEmitter(e);
|
|
5906
5907
|
}
|
|
5907
5908
|
}
|
|
5908
|
-
apiErrorEmitter(data) {
|
|
5909
|
+
async apiErrorEmitter(data) {
|
|
5909
5910
|
if (data.message) {
|
|
5910
5911
|
this.errorMessage = data.message;
|
|
5911
5912
|
}
|
|
@@ -5918,7 +5919,7 @@ const IdentificationComponent = class {
|
|
|
5918
5919
|
else {
|
|
5919
5920
|
this.errorMessage = data;
|
|
5920
5921
|
}
|
|
5921
|
-
this.apiCall.AddLog(data);
|
|
5922
|
+
await this.apiCall.AddLog(data);
|
|
5922
5923
|
Events.flowError(data);
|
|
5923
5924
|
state.flowStatus = FlowStatus.ERROREND;
|
|
5924
5925
|
}
|