@ekyc_qoobiss/qbs-ect-cmp 3.0.0 → 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.
@@ -529,16 +529,20 @@ 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 = { requestId: state.requestId, action: FlowStatus[state.flowStatus], message: JSON.stringify(error !== null && error !== void 0 ? error : 'no error 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
  }
538
542
  catch (_a) { }
539
543
  }
540
544
  async AddStep(step) {
541
- let data = { requestId: state.requestId, step: FlowSteps[step] };
545
+ let data = { requestId: state.requestId, redirectId: state.redirectId, step: FlowSteps[step] };
542
546
  let result = await this.post(this.urls.AddStep, JSON.stringify(data));
543
547
  return result.saved;
544
548
  }
@@ -1981,7 +1985,14 @@ const blobToBase64 = (blob) => {
1981
1985
  reader.readAsDataURL(blob);
1982
1986
  });
1983
1987
  };
1984
- const delay = ms => new Promise(res => setTimeout(res, ms));
1988
+ const delay = ms => new Promise(res => setTimeout(res, ms));
1989
+ const getLogMessage = (param_req_id = '', param_redirect_id = '', param_token = '') => {
1990
+ return {
1991
+ store_values: { request_id: state.requestId, redirect_id: state.redirectId, token: state.token },
1992
+ session_values: { request_id: sessionStorage.getItem(SessionKeys.RequestIdKey), token: sessionStorage.getItem(SessionKeys.TokenKey) },
1993
+ parameter_values: { request_id: param_req_id, redirect_id: param_redirect_id, token: param_token },
1994
+ };
1995
+ };
1985
1996
 
1986
1997
  class IDML5Detector {
1987
1998
  static getInstance(stream, isMobile) {
@@ -5822,7 +5833,7 @@ const IdDoubleSide = class {
5822
5833
  async captureIdImage(event) {
5823
5834
  let idPhoto = event.detail;
5824
5835
  if (idPhoto.length == 0 || idPhoto.size == 0) {
5825
- await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
5836
+ await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
5826
5837
  return;
5827
5838
  }
5828
5839
  try {
@@ -5836,7 +5847,7 @@ const IdDoubleSide = class {
5836
5847
  async captureIdBackImage(event) {
5837
5848
  let idPhoto = event.detail;
5838
5849
  if (idPhoto.length == 0 || idPhoto.size == 0) {
5839
- await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
5850
+ await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
5840
5851
  return;
5841
5852
  }
5842
5853
  try {
@@ -5850,7 +5861,7 @@ const IdDoubleSide = class {
5850
5861
  async capturedIdRecording(event) {
5851
5862
  let idRecording = event.detail;
5852
5863
  if (idRecording.length == 0 || idRecording.size == 0) {
5853
- await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording });
5864
+ await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording }, getLogMessage());
5854
5865
  return;
5855
5866
  }
5856
5867
  let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
@@ -5982,7 +5993,7 @@ const IdSingleSide = class {
5982
5993
  async captureIdImage(event) {
5983
5994
  let idPhoto = event.detail;
5984
5995
  if (idPhoto.length == 0 || idPhoto.size == 0) {
5985
- await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
5996
+ await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
5986
5997
  return;
5987
5998
  }
5988
5999
  try {
@@ -6000,7 +6011,7 @@ const IdSingleSide = class {
6000
6011
  async capturedIdRecording(event) {
6001
6012
  let idRecording = event.detail;
6002
6013
  if (idRecording.length == 0 || idRecording.size == 0) {
6003
- await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording });
6014
+ await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording }, getLogMessage());
6004
6015
  return;
6005
6016
  }
6006
6017
  let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
@@ -6182,7 +6193,7 @@ function v4(options, buf, offset) {
6182
6193
  }
6183
6194
 
6184
6195
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
6185
- const version$1 = "3.0.0";
6196
+ const version$1 = "3.0.2";
6186
6197
  const description = "Person Identification Component";
6187
6198
  const main = "./dist/index.cjs.js";
6188
6199
  const module$1 = "./dist/index.js";
@@ -6340,7 +6351,7 @@ const IdentificationComponent = class {
6340
6351
  else {
6341
6352
  this.errorTitle = data;
6342
6353
  }
6343
- await this.apiCall.AddLog(apiLogData);
6354
+ await this.apiCall.AddLog(apiLogData, getLogMessage(this.order_id, this.redirect_id, this.token));
6344
6355
  Events.flowError(data);
6345
6356
  state.flowStatus = FlowStatus.ERROREND;
6346
6357
  }
@@ -6366,11 +6377,7 @@ const IdentificationComponent = class {
6366
6377
  state.environment = this.env;
6367
6378
  }
6368
6379
  if (state.debug)
6369
- this.logInit = {
6370
- store_values: { request_id: state.requestId, redirect_id: state.redirectId, token: state.token },
6371
- session_values: { request_id: sessionStorage.getItem(SessionKeys.RequestIdKey), token: sessionStorage.getItem(SessionKeys.TokenKey) },
6372
- paramete_values: { request_id: this.order_id, redirect_id: this.redirect_id, token: this.token },
6373
- };
6380
+ this.logInit = getLogMessage(this.order_id, this.redirect_id, this.token);
6374
6381
  if (this.token) {
6375
6382
  if (state.debug)
6376
6383
  console.log('Store Token set with property value: ' + this.token);
@@ -6447,7 +6454,7 @@ const IdentificationComponent = class {
6447
6454
  }
6448
6455
  try {
6449
6456
  if (state.debug)
6450
- this.apiCall.AddLog(this.logInit);
6457
+ this.apiCall.AddLog('init log', this.logInit);
6451
6458
  }
6452
6459
  catch (_a) { }
6453
6460
  try {
@@ -9849,7 +9856,7 @@ const UserLiveness = class {
9849
9856
  async captureSelfieImage(event) {
9850
9857
  let selfiePhoto = event.detail;
9851
9858
  if (selfiePhoto.length == 0 || selfiePhoto.size == 0) {
9852
- await this.apiCall.AddLog({ message: 'Empty selfie', blobData: selfiePhoto });
9859
+ await this.apiCall.AddLog({ message: 'Empty selfie', blobData: selfiePhoto }, getLogMessage());
9853
9860
  return;
9854
9861
  }
9855
9862
  try {
@@ -9863,7 +9870,7 @@ const UserLiveness = class {
9863
9870
  async capturedSelfieRecording(event) {
9864
9871
  let selfieRecording = event.detail;
9865
9872
  if (selfieRecording.length == 0 || selfieRecording.size == 0) {
9866
- await this.apiCall.AddLog({ message: 'Empty recording', blobData: selfieRecording });
9873
+ await this.apiCall.AddLog({ message: 'Empty recording', blobData: selfieRecording }, getLogMessage());
9867
9874
  return;
9868
9875
  }
9869
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;
@@ -8,6 +8,7 @@ import { FlowStatus } from '../../models/FlowStatus';
8
8
  import Events from '../../helpers/Events';
9
9
  import * as uuid from 'uuid';
10
10
  import packageJson from '../../../package.json';
11
+ import { getLogMessage } from '../../utils/utils';
11
12
  export class IdentificationComponent {
12
13
  async onTokenChange(newValue, _oldValue) {
13
14
  if (store.debug)
@@ -96,7 +97,7 @@ export class IdentificationComponent {
96
97
  else {
97
98
  this.errorTitle = data;
98
99
  }
99
- await this.apiCall.AddLog(apiLogData);
100
+ await this.apiCall.AddLog(apiLogData, getLogMessage(this.order_id, this.redirect_id, this.token));
100
101
  Events.flowError(data);
101
102
  store.flowStatus = FlowStatus.ERROREND;
102
103
  }
@@ -121,11 +122,7 @@ export class IdentificationComponent {
121
122
  store.environment = this.env;
122
123
  }
123
124
  if (store.debug)
124
- this.logInit = {
125
- store_values: { request_id: store.requestId, redirect_id: store.redirectId, token: store.token },
126
- session_values: { request_id: sessionStorage.getItem(SessionKeys.RequestIdKey), token: sessionStorage.getItem(SessionKeys.TokenKey) },
127
- paramete_values: { request_id: this.order_id, redirect_id: this.redirect_id, token: this.token },
128
- };
125
+ this.logInit = getLogMessage(this.order_id, this.redirect_id, this.token);
129
126
  if (this.token) {
130
127
  if (store.debug)
131
128
  console.log('Store Token set with property value: ' + this.token);
@@ -202,7 +199,7 @@ export class IdentificationComponent {
202
199
  }
203
200
  try {
204
201
  if (store.debug)
205
- this.apiCall.AddLog(this.logInit);
202
+ this.apiCall.AddLog('init log', this.logInit);
206
203
  }
207
204
  catch (_a) { }
208
205
  try {
@@ -111,16 +111,20 @@ 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 = { requestId: store.requestId, action: FlowStatus[store.flowStatus], message: JSON.stringify(error !== null && error !== void 0 ? error : 'no error 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
  }
120
124
  catch (_a) { }
121
125
  }
122
126
  async AddStep(step) {
123
- let data = { requestId: store.requestId, step: FlowSteps[step] };
127
+ let data = { requestId: store.requestId, redirectId: store.redirectId, step: FlowSteps[step] };
124
128
  let result = await this.post(this.urls.AddStep, JSON.stringify(data));
125
129
  return result.saved;
126
130
  }
@@ -1,3 +1,5 @@
1
+ import store from '../helpers/store';
2
+ import { SessionKeys } from '../helpers/textValues';
1
3
  export function format(first, middle, last) {
2
4
  return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
3
5
  }
@@ -9,3 +11,10 @@ export const blobToBase64 = (blob) => {
9
11
  });
10
12
  };
11
13
  export const delay = ms => new Promise(res => setTimeout(res, ms));
14
+ export const getLogMessage = (param_req_id = '', param_redirect_id = '', param_token = '') => {
15
+ return {
16
+ store_values: { request_id: store.requestId, redirect_id: store.redirectId, token: store.token },
17
+ session_values: { request_id: sessionStorage.getItem(SessionKeys.RequestIdKey), token: sessionStorage.getItem(SessionKeys.TokenKey) },
18
+ parameter_values: { request_id: param_req_id, redirect_id: param_redirect_id, token: param_token },
19
+ };
20
+ };
@@ -525,16 +525,20 @@ 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 = { requestId: state.requestId, action: FlowStatus[state.flowStatus], message: JSON.stringify(error !== null && error !== void 0 ? error : 'no error 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
  }
534
538
  catch (_a) { }
535
539
  }
536
540
  async AddStep(step) {
537
- let data = { requestId: state.requestId, step: FlowSteps[step] };
541
+ let data = { requestId: state.requestId, redirectId: state.redirectId, step: FlowSteps[step] };
538
542
  let result = await this.post(this.urls.AddStep, JSON.stringify(data));
539
543
  return result.saved;
540
544
  }
@@ -1977,7 +1981,14 @@ const blobToBase64 = (blob) => {
1977
1981
  reader.readAsDataURL(blob);
1978
1982
  });
1979
1983
  };
1980
- const delay = ms => new Promise(res => setTimeout(res, ms));
1984
+ const delay = ms => new Promise(res => setTimeout(res, ms));
1985
+ const getLogMessage = (param_req_id = '', param_redirect_id = '', param_token = '') => {
1986
+ return {
1987
+ store_values: { request_id: state.requestId, redirect_id: state.redirectId, token: state.token },
1988
+ session_values: { request_id: sessionStorage.getItem(SessionKeys.RequestIdKey), token: sessionStorage.getItem(SessionKeys.TokenKey) },
1989
+ parameter_values: { request_id: param_req_id, redirect_id: param_redirect_id, token: param_token },
1990
+ };
1991
+ };
1981
1992
 
1982
1993
  class IDML5Detector {
1983
1994
  static getInstance(stream, isMobile) {
@@ -5818,7 +5829,7 @@ const IdDoubleSide = class {
5818
5829
  async captureIdImage(event) {
5819
5830
  let idPhoto = event.detail;
5820
5831
  if (idPhoto.length == 0 || idPhoto.size == 0) {
5821
- await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
5832
+ await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
5822
5833
  return;
5823
5834
  }
5824
5835
  try {
@@ -5832,7 +5843,7 @@ const IdDoubleSide = class {
5832
5843
  async captureIdBackImage(event) {
5833
5844
  let idPhoto = event.detail;
5834
5845
  if (idPhoto.length == 0 || idPhoto.size == 0) {
5835
- await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
5846
+ await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
5836
5847
  return;
5837
5848
  }
5838
5849
  try {
@@ -5846,7 +5857,7 @@ const IdDoubleSide = class {
5846
5857
  async capturedIdRecording(event) {
5847
5858
  let idRecording = event.detail;
5848
5859
  if (idRecording.length == 0 || idRecording.size == 0) {
5849
- await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording });
5860
+ await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording }, getLogMessage());
5850
5861
  return;
5851
5862
  }
5852
5863
  let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
@@ -5978,7 +5989,7 @@ const IdSingleSide = class {
5978
5989
  async captureIdImage(event) {
5979
5990
  let idPhoto = event.detail;
5980
5991
  if (idPhoto.length == 0 || idPhoto.size == 0) {
5981
- await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
5992
+ await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
5982
5993
  return;
5983
5994
  }
5984
5995
  try {
@@ -5996,7 +6007,7 @@ const IdSingleSide = class {
5996
6007
  async capturedIdRecording(event) {
5997
6008
  let idRecording = event.detail;
5998
6009
  if (idRecording.length == 0 || idRecording.size == 0) {
5999
- await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording });
6010
+ await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording }, getLogMessage());
6000
6011
  return;
6001
6012
  }
6002
6013
  let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
@@ -6178,7 +6189,7 @@ function v4(options, buf, offset) {
6178
6189
  }
6179
6190
 
6180
6191
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
6181
- const version$1 = "3.0.0";
6192
+ const version$1 = "3.0.2";
6182
6193
  const description = "Person Identification Component";
6183
6194
  const main = "./dist/index.cjs.js";
6184
6195
  const module = "./dist/index.js";
@@ -6336,7 +6347,7 @@ const IdentificationComponent = class {
6336
6347
  else {
6337
6348
  this.errorTitle = data;
6338
6349
  }
6339
- await this.apiCall.AddLog(apiLogData);
6350
+ await this.apiCall.AddLog(apiLogData, getLogMessage(this.order_id, this.redirect_id, this.token));
6340
6351
  Events.flowError(data);
6341
6352
  state.flowStatus = FlowStatus.ERROREND;
6342
6353
  }
@@ -6362,11 +6373,7 @@ const IdentificationComponent = class {
6362
6373
  state.environment = this.env;
6363
6374
  }
6364
6375
  if (state.debug)
6365
- this.logInit = {
6366
- store_values: { request_id: state.requestId, redirect_id: state.redirectId, token: state.token },
6367
- session_values: { request_id: sessionStorage.getItem(SessionKeys.RequestIdKey), token: sessionStorage.getItem(SessionKeys.TokenKey) },
6368
- paramete_values: { request_id: this.order_id, redirect_id: this.redirect_id, token: this.token },
6369
- };
6376
+ this.logInit = getLogMessage(this.order_id, this.redirect_id, this.token);
6370
6377
  if (this.token) {
6371
6378
  if (state.debug)
6372
6379
  console.log('Store Token set with property value: ' + this.token);
@@ -6443,7 +6450,7 @@ const IdentificationComponent = class {
6443
6450
  }
6444
6451
  try {
6445
6452
  if (state.debug)
6446
- this.apiCall.AddLog(this.logInit);
6453
+ this.apiCall.AddLog('init log', this.logInit);
6447
6454
  }
6448
6455
  catch (_a) { }
6449
6456
  try {
@@ -9845,7 +9852,7 @@ const UserLiveness = class {
9845
9852
  async captureSelfieImage(event) {
9846
9853
  let selfiePhoto = event.detail;
9847
9854
  if (selfiePhoto.length == 0 || selfiePhoto.size == 0) {
9848
- await this.apiCall.AddLog({ message: 'Empty selfie', blobData: selfiePhoto });
9855
+ await this.apiCall.AddLog({ message: 'Empty selfie', blobData: selfiePhoto }, getLogMessage());
9849
9856
  return;
9850
9857
  }
9851
9858
  try {
@@ -9859,7 +9866,7 @@ const UserLiveness = class {
9859
9866
  async capturedSelfieRecording(event) {
9860
9867
  let selfieRecording = event.detail;
9861
9868
  if (selfieRecording.length == 0 || selfieRecording.size == 0) {
9862
- await this.apiCall.AddLog({ message: 'Empty recording', blobData: selfieRecording });
9869
+ await this.apiCall.AddLog({ message: 'Empty recording', blobData: selfieRecording }, getLogMessage());
9863
9870
  return;
9864
9871
  }
9865
9872
  let mimeType = selfieRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;