@ekyc_qoobiss/qbs-ect-cmp 2.0.2 → 2.0.4
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 +12 -3
- package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +1 -1
- package/dist/collection/components/flow/sms-code-validation/sms-code-validation.js +1 -1
- package/dist/collection/components/identification-component/identification-component.js +10 -1
- package/dist/esm/agreement-check_17.entry.js +12 -3
- package/dist/qbs-ect-cmp/{p-7b895b56.entry.js → p-63356af3.entry.js} +1 -1
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/identification-component/identification-component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -6113,6 +6113,11 @@ const IdentificationComponent = class {
|
|
|
6113
6113
|
Events.init(window);
|
|
6114
6114
|
state.apiBaseUrl = this.api_url;
|
|
6115
6115
|
state.environment = this.env;
|
|
6116
|
+
this.logInit = {
|
|
6117
|
+
store_values: { request_id: state.requestId, redirect_id: state.redirectId, token: state.token },
|
|
6118
|
+
session_values: { request_id: sessionStorage.getItem(SessionKeys.RequestIdKey), token: sessionStorage.getItem(SessionKeys.TokenKey) },
|
|
6119
|
+
paramete_values: { request_id: this.order_id, redirect_id: this.redirect_id, token: this.token },
|
|
6120
|
+
};
|
|
6116
6121
|
if (this.token) {
|
|
6117
6122
|
//console.log('Store Token set with property value: ' + this.token);
|
|
6118
6123
|
state.token = this.token;
|
|
@@ -6125,7 +6130,7 @@ const IdentificationComponent = class {
|
|
|
6125
6130
|
if (this.redirect_id) {
|
|
6126
6131
|
state.redirectId = this.redirect_id;
|
|
6127
6132
|
}
|
|
6128
|
-
if (this.phone_number) {
|
|
6133
|
+
if (this.phone_number && this.phone_number != '') {
|
|
6129
6134
|
state.phoneNumber = this.phone_number;
|
|
6130
6135
|
}
|
|
6131
6136
|
var flowSt = sessionStorage.getItem(SessionKeys.FlowStatusKey);
|
|
@@ -6178,6 +6183,10 @@ const IdentificationComponent = class {
|
|
|
6178
6183
|
if (state.initialised) {
|
|
6179
6184
|
return;
|
|
6180
6185
|
}
|
|
6186
|
+
try {
|
|
6187
|
+
this.apiCall.AddLog(this.logInit);
|
|
6188
|
+
}
|
|
6189
|
+
catch (_a) { }
|
|
6181
6190
|
try {
|
|
6182
6191
|
if (!this.device.isMobile && state.redirectId == '') {
|
|
6183
6192
|
state.redirectId = v4();
|
|
@@ -9206,7 +9215,7 @@ const MobileRedirect = class {
|
|
|
9206
9215
|
let envUri = state.environment == 'PROD' ? 'ect' : 'test';
|
|
9207
9216
|
let baseUri = state.hasIdBack ? 'https://onmd.id-kyc.com/' : 'https://onro.id-kyc.com/';
|
|
9208
9217
|
this.redirectLink = baseUri + envUri + '/identification?redirectId=' + state.redirectId;
|
|
9209
|
-
if (state.phoneNumber != '') {
|
|
9218
|
+
if (state.phoneNumber && state.phoneNumber != '') {
|
|
9210
9219
|
this.contact = state.phoneNumber;
|
|
9211
9220
|
this.prefilledPhone = true;
|
|
9212
9221
|
}
|
|
@@ -9444,7 +9453,7 @@ const SmsCodeValidation = class {
|
|
|
9444
9453
|
this.title = PhoneValidationValues.Title;
|
|
9445
9454
|
this.details = PhoneValidationValues.Description;
|
|
9446
9455
|
this.buttonText = PhoneValidationValues.Button;
|
|
9447
|
-
if (state.phoneNumber != '') {
|
|
9456
|
+
if (state.phoneNumber && state.phoneNumber != '') {
|
|
9448
9457
|
this.phoneNumber = state.phoneNumber;
|
|
9449
9458
|
this.prefilledPhone = true;
|
|
9450
9459
|
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;
|
|
@@ -113,6 +113,11 @@ export class IdentificationComponent {
|
|
|
113
113
|
Events.init(window);
|
|
114
114
|
store.apiBaseUrl = this.api_url;
|
|
115
115
|
store.environment = this.env;
|
|
116
|
+
this.logInit = {
|
|
117
|
+
store_values: { request_id: store.requestId, redirect_id: store.redirectId, token: store.token },
|
|
118
|
+
session_values: { request_id: sessionStorage.getItem(SessionKeys.RequestIdKey), token: sessionStorage.getItem(SessionKeys.TokenKey) },
|
|
119
|
+
paramete_values: { request_id: this.order_id, redirect_id: this.redirect_id, token: this.token },
|
|
120
|
+
};
|
|
116
121
|
if (this.token) {
|
|
117
122
|
//console.log('Store Token set with property value: ' + this.token);
|
|
118
123
|
store.token = this.token;
|
|
@@ -125,7 +130,7 @@ export class IdentificationComponent {
|
|
|
125
130
|
if (this.redirect_id) {
|
|
126
131
|
store.redirectId = this.redirect_id;
|
|
127
132
|
}
|
|
128
|
-
if (this.phone_number) {
|
|
133
|
+
if (this.phone_number && this.phone_number != '') {
|
|
129
134
|
store.phoneNumber = this.phone_number;
|
|
130
135
|
}
|
|
131
136
|
var flowSt = sessionStorage.getItem(SessionKeys.FlowStatusKey);
|
|
@@ -178,6 +183,10 @@ export class IdentificationComponent {
|
|
|
178
183
|
if (store.initialised) {
|
|
179
184
|
return;
|
|
180
185
|
}
|
|
186
|
+
try {
|
|
187
|
+
this.apiCall.AddLog(this.logInit);
|
|
188
|
+
}
|
|
189
|
+
catch (_a) { }
|
|
181
190
|
try {
|
|
182
191
|
if (!this.device.isMobile && store.redirectId == '') {
|
|
183
192
|
store.redirectId = uuid.v4();
|
|
@@ -6109,6 +6109,11 @@ const IdentificationComponent = class {
|
|
|
6109
6109
|
Events.init(window);
|
|
6110
6110
|
state.apiBaseUrl = this.api_url;
|
|
6111
6111
|
state.environment = this.env;
|
|
6112
|
+
this.logInit = {
|
|
6113
|
+
store_values: { request_id: state.requestId, redirect_id: state.redirectId, token: state.token },
|
|
6114
|
+
session_values: { request_id: sessionStorage.getItem(SessionKeys.RequestIdKey), token: sessionStorage.getItem(SessionKeys.TokenKey) },
|
|
6115
|
+
paramete_values: { request_id: this.order_id, redirect_id: this.redirect_id, token: this.token },
|
|
6116
|
+
};
|
|
6112
6117
|
if (this.token) {
|
|
6113
6118
|
//console.log('Store Token set with property value: ' + this.token);
|
|
6114
6119
|
state.token = this.token;
|
|
@@ -6121,7 +6126,7 @@ const IdentificationComponent = class {
|
|
|
6121
6126
|
if (this.redirect_id) {
|
|
6122
6127
|
state.redirectId = this.redirect_id;
|
|
6123
6128
|
}
|
|
6124
|
-
if (this.phone_number) {
|
|
6129
|
+
if (this.phone_number && this.phone_number != '') {
|
|
6125
6130
|
state.phoneNumber = this.phone_number;
|
|
6126
6131
|
}
|
|
6127
6132
|
var flowSt = sessionStorage.getItem(SessionKeys.FlowStatusKey);
|
|
@@ -6174,6 +6179,10 @@ const IdentificationComponent = class {
|
|
|
6174
6179
|
if (state.initialised) {
|
|
6175
6180
|
return;
|
|
6176
6181
|
}
|
|
6182
|
+
try {
|
|
6183
|
+
this.apiCall.AddLog(this.logInit);
|
|
6184
|
+
}
|
|
6185
|
+
catch (_a) { }
|
|
6177
6186
|
try {
|
|
6178
6187
|
if (!this.device.isMobile && state.redirectId == '') {
|
|
6179
6188
|
state.redirectId = v4();
|
|
@@ -9202,7 +9211,7 @@ const MobileRedirect = class {
|
|
|
9202
9211
|
let envUri = state.environment == 'PROD' ? 'ect' : 'test';
|
|
9203
9212
|
let baseUri = state.hasIdBack ? 'https://onmd.id-kyc.com/' : 'https://onro.id-kyc.com/';
|
|
9204
9213
|
this.redirectLink = baseUri + envUri + '/identification?redirectId=' + state.redirectId;
|
|
9205
|
-
if (state.phoneNumber != '') {
|
|
9214
|
+
if (state.phoneNumber && state.phoneNumber != '') {
|
|
9206
9215
|
this.contact = state.phoneNumber;
|
|
9207
9216
|
this.prefilledPhone = true;
|
|
9208
9217
|
}
|
|
@@ -9440,7 +9449,7 @@ const SmsCodeValidation = class {
|
|
|
9440
9449
|
this.title = PhoneValidationValues.Title;
|
|
9441
9450
|
this.details = PhoneValidationValues.Description;
|
|
9442
9451
|
this.buttonText = PhoneValidationValues.Button;
|
|
9443
|
-
if (state.phoneNumber != '') {
|
|
9452
|
+
if (state.phoneNumber && state.phoneNumber != '') {
|
|
9444
9453
|
this.phoneNumber = state.phoneNumber;
|
|
9445
9454
|
this.prefilledPhone = true;
|
|
9446
9455
|
this.canSend = true;
|