@ekyc_qoobiss/qbs-ect-cmp 2.0.2 → 2.0.3

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.
@@ -6125,7 +6125,7 @@ const IdentificationComponent = class {
6125
6125
  if (this.redirect_id) {
6126
6126
  state.redirectId = this.redirect_id;
6127
6127
  }
6128
- if (this.phone_number) {
6128
+ if (this.phone_number && this.phone_number != '') {
6129
6129
  state.phoneNumber = this.phone_number;
6130
6130
  }
6131
6131
  var flowSt = sessionStorage.getItem(SessionKeys.FlowStatusKey);
@@ -6178,6 +6178,14 @@ const IdentificationComponent = class {
6178
6178
  if (state.initialised) {
6179
6179
  return;
6180
6180
  }
6181
+ try {
6182
+ this.apiCall.AddLog({
6183
+ store_values: { request_id: state.requestId, redirect_id: state.redirectId, token: state.token },
6184
+ session_values: { request_id: sessionStorage.getItem(SessionKeys.RequestIdKey), token: sessionStorage.getItem(SessionKeys.TokenKey) },
6185
+ paramete_values: { request_id: this.order_id, redirect_id: this.redirect_id, token: this.token },
6186
+ });
6187
+ }
6188
+ catch (_a) { }
6181
6189
  try {
6182
6190
  if (!this.device.isMobile && state.redirectId == '') {
6183
6191
  state.redirectId = v4();
@@ -9206,7 +9214,7 @@ const MobileRedirect = class {
9206
9214
  let envUri = state.environment == 'PROD' ? 'ect' : 'test';
9207
9215
  let baseUri = state.hasIdBack ? 'https://onmd.id-kyc.com/' : 'https://onro.id-kyc.com/';
9208
9216
  this.redirectLink = baseUri + envUri + '/identification?redirectId=' + state.redirectId;
9209
- if (state.phoneNumber != '') {
9217
+ if (state.phoneNumber && state.phoneNumber != '') {
9210
9218
  this.contact = state.phoneNumber;
9211
9219
  this.prefilledPhone = true;
9212
9220
  }
@@ -9444,7 +9452,7 @@ const SmsCodeValidation = class {
9444
9452
  this.title = PhoneValidationValues.Title;
9445
9453
  this.details = PhoneValidationValues.Description;
9446
9454
  this.buttonText = PhoneValidationValues.Button;
9447
- if (state.phoneNumber != '') {
9455
+ if (state.phoneNumber && state.phoneNumber != '') {
9448
9456
  this.phoneNumber = state.phoneNumber;
9449
9457
  this.prefilledPhone = true;
9450
9458
  this.canSend = true;
@@ -28,7 +28,7 @@ export class MobileRedirect {
28
28
  let envUri = store.environment == 'PROD' ? 'ect' : 'test';
29
29
  let baseUri = store.hasIdBack ? 'https://onmd.id-kyc.com/' : 'https://onro.id-kyc.com/';
30
30
  this.redirectLink = baseUri + envUri + '/identification?redirectId=' + store.redirectId;
31
- if (store.phoneNumber != '') {
31
+ if (store.phoneNumber && store.phoneNumber != '') {
32
32
  this.contact = store.phoneNumber;
33
33
  this.prefilledPhone = true;
34
34
  }
@@ -41,7 +41,7 @@ export class SmsCodeValidation {
41
41
  this.title = PhoneValidationValues.Title;
42
42
  this.details = PhoneValidationValues.Description;
43
43
  this.buttonText = PhoneValidationValues.Button;
44
- if (store.phoneNumber != '') {
44
+ if (store.phoneNumber && store.phoneNumber != '') {
45
45
  this.phoneNumber = store.phoneNumber;
46
46
  this.prefilledPhone = true;
47
47
  this.canSend = true;
@@ -125,7 +125,7 @@ export class IdentificationComponent {
125
125
  if (this.redirect_id) {
126
126
  store.redirectId = this.redirect_id;
127
127
  }
128
- if (this.phone_number) {
128
+ if (this.phone_number && this.phone_number != '') {
129
129
  store.phoneNumber = this.phone_number;
130
130
  }
131
131
  var flowSt = sessionStorage.getItem(SessionKeys.FlowStatusKey);
@@ -178,6 +178,14 @@ export class IdentificationComponent {
178
178
  if (store.initialised) {
179
179
  return;
180
180
  }
181
+ try {
182
+ this.apiCall.AddLog({
183
+ store_values: { request_id: store.requestId, redirect_id: store.redirectId, token: store.token },
184
+ session_values: { request_id: sessionStorage.getItem(SessionKeys.RequestIdKey), token: sessionStorage.getItem(SessionKeys.TokenKey) },
185
+ paramete_values: { request_id: this.order_id, redirect_id: this.redirect_id, token: this.token },
186
+ });
187
+ }
188
+ catch (_a) { }
181
189
  try {
182
190
  if (!this.device.isMobile && store.redirectId == '') {
183
191
  store.redirectId = uuid.v4();
@@ -6121,7 +6121,7 @@ const IdentificationComponent = class {
6121
6121
  if (this.redirect_id) {
6122
6122
  state.redirectId = this.redirect_id;
6123
6123
  }
6124
- if (this.phone_number) {
6124
+ if (this.phone_number && this.phone_number != '') {
6125
6125
  state.phoneNumber = this.phone_number;
6126
6126
  }
6127
6127
  var flowSt = sessionStorage.getItem(SessionKeys.FlowStatusKey);
@@ -6174,6 +6174,14 @@ const IdentificationComponent = class {
6174
6174
  if (state.initialised) {
6175
6175
  return;
6176
6176
  }
6177
+ try {
6178
+ this.apiCall.AddLog({
6179
+ store_values: { request_id: state.requestId, redirect_id: state.redirectId, token: state.token },
6180
+ session_values: { request_id: sessionStorage.getItem(SessionKeys.RequestIdKey), token: sessionStorage.getItem(SessionKeys.TokenKey) },
6181
+ paramete_values: { request_id: this.order_id, redirect_id: this.redirect_id, token: this.token },
6182
+ });
6183
+ }
6184
+ catch (_a) { }
6177
6185
  try {
6178
6186
  if (!this.device.isMobile && state.redirectId == '') {
6179
6187
  state.redirectId = v4();
@@ -9202,7 +9210,7 @@ const MobileRedirect = class {
9202
9210
  let envUri = state.environment == 'PROD' ? 'ect' : 'test';
9203
9211
  let baseUri = state.hasIdBack ? 'https://onmd.id-kyc.com/' : 'https://onro.id-kyc.com/';
9204
9212
  this.redirectLink = baseUri + envUri + '/identification?redirectId=' + state.redirectId;
9205
- if (state.phoneNumber != '') {
9213
+ if (state.phoneNumber && state.phoneNumber != '') {
9206
9214
  this.contact = state.phoneNumber;
9207
9215
  this.prefilledPhone = true;
9208
9216
  }
@@ -9440,7 +9448,7 @@ const SmsCodeValidation = class {
9440
9448
  this.title = PhoneValidationValues.Title;
9441
9449
  this.details = PhoneValidationValues.Description;
9442
9450
  this.buttonText = PhoneValidationValues.Button;
9443
- if (state.phoneNumber != '') {
9451
+ if (state.phoneNumber && state.phoneNumber != '') {
9444
9452
  this.phoneNumber = state.phoneNumber;
9445
9453
  this.prefilledPhone = true;
9446
9454
  this.canSend = true;