@ekyc_qoobiss/qbs-ect-cmp 3.0.1 → 3.0.2
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_18.cjs.entry.js +17 -13
- package/dist/collection/components/flow/id-double-side/id-double-side.js +4 -3
- package/dist/collection/components/flow/id-single-side/id-single-side.js +3 -2
- package/dist/collection/components/flow/user-liveness/user-liveness.js +3 -2
- package/dist/collection/components/identification-component/identification-component.js +2 -2
- package/dist/collection/helpers/ApiCall.js +6 -2
- package/dist/collection/utils/utils.js +1 -1
- package/dist/esm/agreement-check_18.entry.js +17 -13
- package/dist/qbs-ect-cmp/{p-cf991b8b.entry.js → p-6ccfda91.entry.js} +2 -2
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/helpers/ApiCall.d.ts +1 -1
- package/dist/types/utils/utils.d.ts +1 -1
- package/package.json +1 -1
|
@@ -529,9 +529,13 @@ class ApiCall {
|
|
|
529
529
|
let resp = await this.post(this.urls.SendLink, JSON.stringify(data));
|
|
530
530
|
return resp.sent;
|
|
531
531
|
}
|
|
532
|
-
async AddLog(error) {
|
|
532
|
+
async AddLog(error, context) {
|
|
533
533
|
try {
|
|
534
|
-
let data = {
|
|
534
|
+
let data = {
|
|
535
|
+
requestId: state.requestId,
|
|
536
|
+
action: FlowStatus[state.flowStatus],
|
|
537
|
+
message: `${JSON.stringify(error !== null && error !== void 0 ? error : 'no error data')} | ${JSON.stringify(context !== null && context !== void 0 ? context : 'no context data')}`,
|
|
538
|
+
};
|
|
535
539
|
let result = await this.post(this.urls.AddLog, JSON.stringify(data));
|
|
536
540
|
return result.saved;
|
|
537
541
|
}
|
|
@@ -1982,7 +1986,7 @@ const blobToBase64 = (blob) => {
|
|
|
1982
1986
|
});
|
|
1983
1987
|
};
|
|
1984
1988
|
const delay = ms => new Promise(res => setTimeout(res, ms));
|
|
1985
|
-
const getLogMessage = (param_req_id, param_redirect_id, param_token) => {
|
|
1989
|
+
const getLogMessage = (param_req_id = '', param_redirect_id = '', param_token = '') => {
|
|
1986
1990
|
return {
|
|
1987
1991
|
store_values: { request_id: state.requestId, redirect_id: state.redirectId, token: state.token },
|
|
1988
1992
|
session_values: { request_id: sessionStorage.getItem(SessionKeys.RequestIdKey), token: sessionStorage.getItem(SessionKeys.TokenKey) },
|
|
@@ -5829,7 +5833,7 @@ const IdDoubleSide = class {
|
|
|
5829
5833
|
async captureIdImage(event) {
|
|
5830
5834
|
let idPhoto = event.detail;
|
|
5831
5835
|
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
5832
|
-
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
|
|
5836
|
+
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
|
|
5833
5837
|
return;
|
|
5834
5838
|
}
|
|
5835
5839
|
try {
|
|
@@ -5843,7 +5847,7 @@ const IdDoubleSide = class {
|
|
|
5843
5847
|
async captureIdBackImage(event) {
|
|
5844
5848
|
let idPhoto = event.detail;
|
|
5845
5849
|
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
5846
|
-
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
|
|
5850
|
+
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
|
|
5847
5851
|
return;
|
|
5848
5852
|
}
|
|
5849
5853
|
try {
|
|
@@ -5857,7 +5861,7 @@ const IdDoubleSide = class {
|
|
|
5857
5861
|
async capturedIdRecording(event) {
|
|
5858
5862
|
let idRecording = event.detail;
|
|
5859
5863
|
if (idRecording.length == 0 || idRecording.size == 0) {
|
|
5860
|
-
await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording });
|
|
5864
|
+
await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording }, getLogMessage());
|
|
5861
5865
|
return;
|
|
5862
5866
|
}
|
|
5863
5867
|
let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
@@ -5989,7 +5993,7 @@ const IdSingleSide = class {
|
|
|
5989
5993
|
async captureIdImage(event) {
|
|
5990
5994
|
let idPhoto = event.detail;
|
|
5991
5995
|
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
5992
|
-
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
|
|
5996
|
+
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
|
|
5993
5997
|
return;
|
|
5994
5998
|
}
|
|
5995
5999
|
try {
|
|
@@ -6007,7 +6011,7 @@ const IdSingleSide = class {
|
|
|
6007
6011
|
async capturedIdRecording(event) {
|
|
6008
6012
|
let idRecording = event.detail;
|
|
6009
6013
|
if (idRecording.length == 0 || idRecording.size == 0) {
|
|
6010
|
-
await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording });
|
|
6014
|
+
await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording }, getLogMessage());
|
|
6011
6015
|
return;
|
|
6012
6016
|
}
|
|
6013
6017
|
let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
@@ -6189,7 +6193,7 @@ function v4(options, buf, offset) {
|
|
|
6189
6193
|
}
|
|
6190
6194
|
|
|
6191
6195
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
6192
|
-
const version$1 = "3.0.
|
|
6196
|
+
const version$1 = "3.0.2";
|
|
6193
6197
|
const description = "Person Identification Component";
|
|
6194
6198
|
const main = "./dist/index.cjs.js";
|
|
6195
6199
|
const module$1 = "./dist/index.js";
|
|
@@ -6347,7 +6351,7 @@ const IdentificationComponent = class {
|
|
|
6347
6351
|
else {
|
|
6348
6352
|
this.errorTitle = data;
|
|
6349
6353
|
}
|
|
6350
|
-
await this.apiCall.AddLog(apiLogData);
|
|
6354
|
+
await this.apiCall.AddLog(apiLogData, getLogMessage(this.order_id, this.redirect_id, this.token));
|
|
6351
6355
|
Events.flowError(data);
|
|
6352
6356
|
state.flowStatus = FlowStatus.ERROREND;
|
|
6353
6357
|
}
|
|
@@ -6450,7 +6454,7 @@ const IdentificationComponent = class {
|
|
|
6450
6454
|
}
|
|
6451
6455
|
try {
|
|
6452
6456
|
if (state.debug)
|
|
6453
|
-
this.apiCall.AddLog(this.logInit);
|
|
6457
|
+
this.apiCall.AddLog('init log', this.logInit);
|
|
6454
6458
|
}
|
|
6455
6459
|
catch (_a) { }
|
|
6456
6460
|
try {
|
|
@@ -9852,7 +9856,7 @@ const UserLiveness = class {
|
|
|
9852
9856
|
async captureSelfieImage(event) {
|
|
9853
9857
|
let selfiePhoto = event.detail;
|
|
9854
9858
|
if (selfiePhoto.length == 0 || selfiePhoto.size == 0) {
|
|
9855
|
-
await this.apiCall.AddLog({ message: 'Empty selfie', blobData: selfiePhoto });
|
|
9859
|
+
await this.apiCall.AddLog({ message: 'Empty selfie', blobData: selfiePhoto }, getLogMessage());
|
|
9856
9860
|
return;
|
|
9857
9861
|
}
|
|
9858
9862
|
try {
|
|
@@ -9866,7 +9870,7 @@ const UserLiveness = class {
|
|
|
9866
9870
|
async capturedSelfieRecording(event) {
|
|
9867
9871
|
let selfieRecording = event.detail;
|
|
9868
9872
|
if (selfieRecording.length == 0 || selfieRecording.size == 0) {
|
|
9869
|
-
await this.apiCall.AddLog({ message: 'Empty recording', blobData: selfieRecording });
|
|
9873
|
+
await this.apiCall.AddLog({ message: 'Empty recording', blobData: selfieRecording }, getLogMessage());
|
|
9870
9874
|
return;
|
|
9871
9875
|
}
|
|
9872
9876
|
let mimeType = selfieRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
@@ -4,6 +4,7 @@ import store from '../../../helpers/store';
|
|
|
4
4
|
import { Stream } from '../../../helpers/Stream';
|
|
5
5
|
import { FlowStatus } from '../../../models/FlowStatus';
|
|
6
6
|
import { FlowSteps } from '../../../models/FlowSteps';
|
|
7
|
+
import { getLogMessage } from '../../../utils/utils';
|
|
7
8
|
// import { IDPose } from '../../libs/IDML5Detector/IDPose';
|
|
8
9
|
export class IdDoubleSide {
|
|
9
10
|
constructor() {
|
|
@@ -60,7 +61,7 @@ export class IdDoubleSide {
|
|
|
60
61
|
async captureIdImage(event) {
|
|
61
62
|
let idPhoto = event.detail;
|
|
62
63
|
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
63
|
-
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
|
|
64
|
+
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
|
|
64
65
|
return;
|
|
65
66
|
}
|
|
66
67
|
try {
|
|
@@ -74,7 +75,7 @@ export class IdDoubleSide {
|
|
|
74
75
|
async captureIdBackImage(event) {
|
|
75
76
|
let idPhoto = event.detail;
|
|
76
77
|
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
77
|
-
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
|
|
78
|
+
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
|
|
78
79
|
return;
|
|
79
80
|
}
|
|
80
81
|
try {
|
|
@@ -88,7 +89,7 @@ export class IdDoubleSide {
|
|
|
88
89
|
async capturedIdRecording(event) {
|
|
89
90
|
let idRecording = event.detail;
|
|
90
91
|
if (idRecording.length == 0 || idRecording.size == 0) {
|
|
91
|
-
await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording });
|
|
92
|
+
await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording }, getLogMessage());
|
|
92
93
|
return;
|
|
93
94
|
}
|
|
94
95
|
let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
@@ -4,6 +4,7 @@ import store from '../../../helpers/store';
|
|
|
4
4
|
import { Stream } from '../../../helpers/Stream';
|
|
5
5
|
import { FlowStatus } from '../../../models/FlowStatus';
|
|
6
6
|
import { FlowSteps } from '../../../models/FlowSteps';
|
|
7
|
+
import { getLogMessage } from '../../../utils/utils';
|
|
7
8
|
// import { IDPose } from '../../libs/IDML5Detector/IDPose';
|
|
8
9
|
export class IdSingleSide {
|
|
9
10
|
constructor() {
|
|
@@ -35,7 +36,7 @@ export class IdSingleSide {
|
|
|
35
36
|
async captureIdImage(event) {
|
|
36
37
|
let idPhoto = event.detail;
|
|
37
38
|
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
38
|
-
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
|
|
39
|
+
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
|
|
39
40
|
return;
|
|
40
41
|
}
|
|
41
42
|
try {
|
|
@@ -53,7 +54,7 @@ export class IdSingleSide {
|
|
|
53
54
|
async capturedIdRecording(event) {
|
|
54
55
|
let idRecording = event.detail;
|
|
55
56
|
if (idRecording.length == 0 || idRecording.size == 0) {
|
|
56
|
-
await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording });
|
|
57
|
+
await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording }, getLogMessage());
|
|
57
58
|
return;
|
|
58
59
|
}
|
|
59
60
|
let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
@@ -4,6 +4,7 @@ import store from '../../../helpers/store';
|
|
|
4
4
|
import { Stream } from '../../../helpers/Stream';
|
|
5
5
|
import { FlowStatus } from '../../../models/FlowStatus';
|
|
6
6
|
import { FlowSteps } from '../../../models/FlowSteps';
|
|
7
|
+
import { getLogMessage } from '../../../utils/utils';
|
|
7
8
|
export class UserLiveness {
|
|
8
9
|
constructor() {
|
|
9
10
|
this.device = undefined;
|
|
@@ -45,7 +46,7 @@ export class UserLiveness {
|
|
|
45
46
|
async captureSelfieImage(event) {
|
|
46
47
|
let selfiePhoto = event.detail;
|
|
47
48
|
if (selfiePhoto.length == 0 || selfiePhoto.size == 0) {
|
|
48
|
-
await this.apiCall.AddLog({ message: 'Empty selfie', blobData: selfiePhoto });
|
|
49
|
+
await this.apiCall.AddLog({ message: 'Empty selfie', blobData: selfiePhoto }, getLogMessage());
|
|
49
50
|
return;
|
|
50
51
|
}
|
|
51
52
|
try {
|
|
@@ -59,7 +60,7 @@ export class UserLiveness {
|
|
|
59
60
|
async capturedSelfieRecording(event) {
|
|
60
61
|
let selfieRecording = event.detail;
|
|
61
62
|
if (selfieRecording.length == 0 || selfieRecording.size == 0) {
|
|
62
|
-
await this.apiCall.AddLog({ message: 'Empty recording', blobData: selfieRecording });
|
|
63
|
+
await this.apiCall.AddLog({ message: 'Empty recording', blobData: selfieRecording }, getLogMessage());
|
|
63
64
|
return;
|
|
64
65
|
}
|
|
65
66
|
let mimeType = selfieRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
@@ -97,7 +97,7 @@ export class IdentificationComponent {
|
|
|
97
97
|
else {
|
|
98
98
|
this.errorTitle = data;
|
|
99
99
|
}
|
|
100
|
-
await this.apiCall.AddLog(apiLogData);
|
|
100
|
+
await this.apiCall.AddLog(apiLogData, getLogMessage(this.order_id, this.redirect_id, this.token));
|
|
101
101
|
Events.flowError(data);
|
|
102
102
|
store.flowStatus = FlowStatus.ERROREND;
|
|
103
103
|
}
|
|
@@ -199,7 +199,7 @@ export class IdentificationComponent {
|
|
|
199
199
|
}
|
|
200
200
|
try {
|
|
201
201
|
if (store.debug)
|
|
202
|
-
this.apiCall.AddLog(this.logInit);
|
|
202
|
+
this.apiCall.AddLog('init log', this.logInit);
|
|
203
203
|
}
|
|
204
204
|
catch (_a) { }
|
|
205
205
|
try {
|
|
@@ -111,9 +111,13 @@ export class ApiCall {
|
|
|
111
111
|
let resp = await this.post(this.urls.SendLink, JSON.stringify(data));
|
|
112
112
|
return resp.sent;
|
|
113
113
|
}
|
|
114
|
-
async AddLog(error) {
|
|
114
|
+
async AddLog(error, context) {
|
|
115
115
|
try {
|
|
116
|
-
let data = {
|
|
116
|
+
let data = {
|
|
117
|
+
requestId: store.requestId,
|
|
118
|
+
action: FlowStatus[store.flowStatus],
|
|
119
|
+
message: `${JSON.stringify(error !== null && error !== void 0 ? error : 'no error data')} | ${JSON.stringify(context !== null && context !== void 0 ? context : 'no context data')}`,
|
|
120
|
+
};
|
|
117
121
|
let result = await this.post(this.urls.AddLog, JSON.stringify(data));
|
|
118
122
|
return result.saved;
|
|
119
123
|
}
|
|
@@ -11,7 +11,7 @@ export const blobToBase64 = (blob) => {
|
|
|
11
11
|
});
|
|
12
12
|
};
|
|
13
13
|
export const delay = ms => new Promise(res => setTimeout(res, ms));
|
|
14
|
-
export const getLogMessage = (param_req_id, param_redirect_id, param_token) => {
|
|
14
|
+
export const getLogMessage = (param_req_id = '', param_redirect_id = '', param_token = '') => {
|
|
15
15
|
return {
|
|
16
16
|
store_values: { request_id: store.requestId, redirect_id: store.redirectId, token: store.token },
|
|
17
17
|
session_values: { request_id: sessionStorage.getItem(SessionKeys.RequestIdKey), token: sessionStorage.getItem(SessionKeys.TokenKey) },
|
|
@@ -525,9 +525,13 @@ class ApiCall {
|
|
|
525
525
|
let resp = await this.post(this.urls.SendLink, JSON.stringify(data));
|
|
526
526
|
return resp.sent;
|
|
527
527
|
}
|
|
528
|
-
async AddLog(error) {
|
|
528
|
+
async AddLog(error, context) {
|
|
529
529
|
try {
|
|
530
|
-
let data = {
|
|
530
|
+
let data = {
|
|
531
|
+
requestId: state.requestId,
|
|
532
|
+
action: FlowStatus[state.flowStatus],
|
|
533
|
+
message: `${JSON.stringify(error !== null && error !== void 0 ? error : 'no error data')} | ${JSON.stringify(context !== null && context !== void 0 ? context : 'no context data')}`,
|
|
534
|
+
};
|
|
531
535
|
let result = await this.post(this.urls.AddLog, JSON.stringify(data));
|
|
532
536
|
return result.saved;
|
|
533
537
|
}
|
|
@@ -1978,7 +1982,7 @@ const blobToBase64 = (blob) => {
|
|
|
1978
1982
|
});
|
|
1979
1983
|
};
|
|
1980
1984
|
const delay = ms => new Promise(res => setTimeout(res, ms));
|
|
1981
|
-
const getLogMessage = (param_req_id, param_redirect_id, param_token) => {
|
|
1985
|
+
const getLogMessage = (param_req_id = '', param_redirect_id = '', param_token = '') => {
|
|
1982
1986
|
return {
|
|
1983
1987
|
store_values: { request_id: state.requestId, redirect_id: state.redirectId, token: state.token },
|
|
1984
1988
|
session_values: { request_id: sessionStorage.getItem(SessionKeys.RequestIdKey), token: sessionStorage.getItem(SessionKeys.TokenKey) },
|
|
@@ -5825,7 +5829,7 @@ const IdDoubleSide = class {
|
|
|
5825
5829
|
async captureIdImage(event) {
|
|
5826
5830
|
let idPhoto = event.detail;
|
|
5827
5831
|
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
5828
|
-
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
|
|
5832
|
+
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
|
|
5829
5833
|
return;
|
|
5830
5834
|
}
|
|
5831
5835
|
try {
|
|
@@ -5839,7 +5843,7 @@ const IdDoubleSide = class {
|
|
|
5839
5843
|
async captureIdBackImage(event) {
|
|
5840
5844
|
let idPhoto = event.detail;
|
|
5841
5845
|
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
5842
|
-
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
|
|
5846
|
+
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
|
|
5843
5847
|
return;
|
|
5844
5848
|
}
|
|
5845
5849
|
try {
|
|
@@ -5853,7 +5857,7 @@ const IdDoubleSide = class {
|
|
|
5853
5857
|
async capturedIdRecording(event) {
|
|
5854
5858
|
let idRecording = event.detail;
|
|
5855
5859
|
if (idRecording.length == 0 || idRecording.size == 0) {
|
|
5856
|
-
await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording });
|
|
5860
|
+
await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording }, getLogMessage());
|
|
5857
5861
|
return;
|
|
5858
5862
|
}
|
|
5859
5863
|
let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
@@ -5985,7 +5989,7 @@ const IdSingleSide = class {
|
|
|
5985
5989
|
async captureIdImage(event) {
|
|
5986
5990
|
let idPhoto = event.detail;
|
|
5987
5991
|
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
5988
|
-
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
|
|
5992
|
+
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
|
|
5989
5993
|
return;
|
|
5990
5994
|
}
|
|
5991
5995
|
try {
|
|
@@ -6003,7 +6007,7 @@ const IdSingleSide = class {
|
|
|
6003
6007
|
async capturedIdRecording(event) {
|
|
6004
6008
|
let idRecording = event.detail;
|
|
6005
6009
|
if (idRecording.length == 0 || idRecording.size == 0) {
|
|
6006
|
-
await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording });
|
|
6010
|
+
await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording }, getLogMessage());
|
|
6007
6011
|
return;
|
|
6008
6012
|
}
|
|
6009
6013
|
let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
@@ -6185,7 +6189,7 @@ function v4(options, buf, offset) {
|
|
|
6185
6189
|
}
|
|
6186
6190
|
|
|
6187
6191
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
6188
|
-
const version$1 = "3.0.
|
|
6192
|
+
const version$1 = "3.0.2";
|
|
6189
6193
|
const description = "Person Identification Component";
|
|
6190
6194
|
const main = "./dist/index.cjs.js";
|
|
6191
6195
|
const module = "./dist/index.js";
|
|
@@ -6343,7 +6347,7 @@ const IdentificationComponent = class {
|
|
|
6343
6347
|
else {
|
|
6344
6348
|
this.errorTitle = data;
|
|
6345
6349
|
}
|
|
6346
|
-
await this.apiCall.AddLog(apiLogData);
|
|
6350
|
+
await this.apiCall.AddLog(apiLogData, getLogMessage(this.order_id, this.redirect_id, this.token));
|
|
6347
6351
|
Events.flowError(data);
|
|
6348
6352
|
state.flowStatus = FlowStatus.ERROREND;
|
|
6349
6353
|
}
|
|
@@ -6446,7 +6450,7 @@ const IdentificationComponent = class {
|
|
|
6446
6450
|
}
|
|
6447
6451
|
try {
|
|
6448
6452
|
if (state.debug)
|
|
6449
|
-
this.apiCall.AddLog(this.logInit);
|
|
6453
|
+
this.apiCall.AddLog('init log', this.logInit);
|
|
6450
6454
|
}
|
|
6451
6455
|
catch (_a) { }
|
|
6452
6456
|
try {
|
|
@@ -9848,7 +9852,7 @@ const UserLiveness = class {
|
|
|
9848
9852
|
async captureSelfieImage(event) {
|
|
9849
9853
|
let selfiePhoto = event.detail;
|
|
9850
9854
|
if (selfiePhoto.length == 0 || selfiePhoto.size == 0) {
|
|
9851
|
-
await this.apiCall.AddLog({ message: 'Empty selfie', blobData: selfiePhoto });
|
|
9855
|
+
await this.apiCall.AddLog({ message: 'Empty selfie', blobData: selfiePhoto }, getLogMessage());
|
|
9852
9856
|
return;
|
|
9853
9857
|
}
|
|
9854
9858
|
try {
|
|
@@ -9862,7 +9866,7 @@ const UserLiveness = class {
|
|
|
9862
9866
|
async capturedSelfieRecording(event) {
|
|
9863
9867
|
let selfieRecording = event.detail;
|
|
9864
9868
|
if (selfieRecording.length == 0 || selfieRecording.size == 0) {
|
|
9865
|
-
await this.apiCall.AddLog({ message: 'Empty recording', blobData: selfieRecording });
|
|
9869
|
+
await this.apiCall.AddLog({ message: 'Empty recording', blobData: selfieRecording }, getLogMessage());
|
|
9866
9870
|
return;
|
|
9867
9871
|
}
|
|
9868
9872
|
let mimeType = selfieRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|