@ekyc_qoobiss/qbs-ect-cmp 1.2.11 → 1.2.12
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 +13 -3
- package/dist/collection/components/identification-component/identification-component.js +12 -3
- package/dist/collection/helpers/ApiCall.js +1 -0
- package/dist/esm/agreement-check_17.entry.js +13 -3
- package/dist/qbs-ect-cmp/{p-d20c02b1.entry.js → p-0a9dc428.entry.js} +2 -2
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/package.json +1 -1
|
@@ -438,6 +438,7 @@ class ApiCall {
|
|
|
438
438
|
return jsonResp.valid;
|
|
439
439
|
}
|
|
440
440
|
async AddIdentificationRequest(deviceInfo) {
|
|
441
|
+
console.log('Calling identity request with store:' + JSON.stringify(state));
|
|
441
442
|
let data = {
|
|
442
443
|
requestId: state.requestId,
|
|
443
444
|
clientDeviceInfo: JSON.stringify(deviceInfo),
|
|
@@ -6007,6 +6008,7 @@ const identificationComponentCss = "@font-face{font-family:'Inter';font-style:no
|
|
|
6007
6008
|
|
|
6008
6009
|
const IdentificationComponent = class {
|
|
6009
6010
|
async onTokenChange(newValue, _oldValue) {
|
|
6011
|
+
console.log('Token change called with value: ' + newValue);
|
|
6010
6012
|
if (newValue == '') {
|
|
6011
6013
|
newValue = state.token;
|
|
6012
6014
|
return;
|
|
@@ -6017,6 +6019,7 @@ const IdentificationComponent = class {
|
|
|
6017
6019
|
}
|
|
6018
6020
|
}
|
|
6019
6021
|
async onOrderIdChange(newValue, _oldValue) {
|
|
6022
|
+
console.log('OrderId change called with value: ' + newValue);
|
|
6020
6023
|
if (state.requestId !== newValue && newValue != '') {
|
|
6021
6024
|
state.requestId = newValue;
|
|
6022
6025
|
state.initialised = false;
|
|
@@ -6045,6 +6048,7 @@ const IdentificationComponent = class {
|
|
|
6045
6048
|
}
|
|
6046
6049
|
}
|
|
6047
6050
|
async onRedirectIdChange(newValue, _oldValue) {
|
|
6051
|
+
console.log('RedirectId change called with value: ' + newValue);
|
|
6048
6052
|
if (state.redirectId != '') {
|
|
6049
6053
|
newValue = state.redirectId;
|
|
6050
6054
|
return;
|
|
@@ -6110,10 +6114,13 @@ const IdentificationComponent = class {
|
|
|
6110
6114
|
state.apiBaseUrl = this.api_url;
|
|
6111
6115
|
state.environment = this.env;
|
|
6112
6116
|
if (this.token) {
|
|
6117
|
+
console.log('Store Token set with property value: ' + this.token);
|
|
6113
6118
|
state.token = this.token;
|
|
6114
6119
|
}
|
|
6115
|
-
else {
|
|
6120
|
+
else if (state.token == '') {
|
|
6116
6121
|
state.token = sessionStorage.getItem(SessionKeys.TokenKey);
|
|
6122
|
+
this.token = state.token;
|
|
6123
|
+
console.log('Store Token set with session value: ' + state.token);
|
|
6117
6124
|
}
|
|
6118
6125
|
if (this.redirect_id) {
|
|
6119
6126
|
state.redirectId = this.redirect_id;
|
|
@@ -6145,16 +6152,19 @@ const IdentificationComponent = class {
|
|
|
6145
6152
|
state.phoneValidation = true;
|
|
6146
6153
|
}
|
|
6147
6154
|
const savedRequest = sessionStorage.getItem(SessionKeys.RequestIdKey);
|
|
6148
|
-
if (this.order_id) {
|
|
6155
|
+
if (this.order_id && this.order_id != '') {
|
|
6156
|
+
console.log('Current RequestId has value: ' + this.order_id);
|
|
6149
6157
|
if (savedRequest && savedRequest != '' && savedRequest != this.order_id) {
|
|
6150
|
-
|
|
6158
|
+
console.log('Session RequestId: ' + savedRequest + ' has different value than property one: ' + this.order_id);
|
|
6151
6159
|
state.flowStatus = FlowStatus.LANDING;
|
|
6152
6160
|
state.initialised = false;
|
|
6153
6161
|
}
|
|
6154
6162
|
state.requestId = this.order_id;
|
|
6155
6163
|
}
|
|
6156
6164
|
else if (savedRequest) {
|
|
6165
|
+
console.log('Current RequestId has no value, setting with session value: ' + savedRequest);
|
|
6157
6166
|
state.requestId = savedRequest;
|
|
6167
|
+
this.order_id = savedRequest;
|
|
6158
6168
|
}
|
|
6159
6169
|
this.apiCall = new ApiCall();
|
|
6160
6170
|
await this.initializeRequest();
|
|
@@ -9,6 +9,7 @@ import Events from '../../helpers/Events';
|
|
|
9
9
|
import * as uuid from 'uuid';
|
|
10
10
|
export class IdentificationComponent {
|
|
11
11
|
async onTokenChange(newValue, _oldValue) {
|
|
12
|
+
console.log('Token change called with value: ' + newValue);
|
|
12
13
|
if (newValue == '') {
|
|
13
14
|
newValue = store.token;
|
|
14
15
|
return;
|
|
@@ -19,6 +20,7 @@ export class IdentificationComponent {
|
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
async onOrderIdChange(newValue, _oldValue) {
|
|
23
|
+
console.log('OrderId change called with value: ' + newValue);
|
|
22
24
|
if (store.requestId !== newValue && newValue != '') {
|
|
23
25
|
store.requestId = newValue;
|
|
24
26
|
store.initialised = false;
|
|
@@ -47,6 +49,7 @@ export class IdentificationComponent {
|
|
|
47
49
|
}
|
|
48
50
|
}
|
|
49
51
|
async onRedirectIdChange(newValue, _oldValue) {
|
|
52
|
+
console.log('RedirectId change called with value: ' + newValue);
|
|
50
53
|
if (store.redirectId != '') {
|
|
51
54
|
newValue = store.redirectId;
|
|
52
55
|
return;
|
|
@@ -111,10 +114,13 @@ export class IdentificationComponent {
|
|
|
111
114
|
store.apiBaseUrl = this.api_url;
|
|
112
115
|
store.environment = this.env;
|
|
113
116
|
if (this.token) {
|
|
117
|
+
console.log('Store Token set with property value: ' + this.token);
|
|
114
118
|
store.token = this.token;
|
|
115
119
|
}
|
|
116
|
-
else {
|
|
120
|
+
else if (store.token == '') {
|
|
117
121
|
store.token = sessionStorage.getItem(SessionKeys.TokenKey);
|
|
122
|
+
this.token = store.token;
|
|
123
|
+
console.log('Store Token set with session value: ' + store.token);
|
|
118
124
|
}
|
|
119
125
|
if (this.redirect_id) {
|
|
120
126
|
store.redirectId = this.redirect_id;
|
|
@@ -146,16 +152,19 @@ export class IdentificationComponent {
|
|
|
146
152
|
store.phoneValidation = true;
|
|
147
153
|
}
|
|
148
154
|
const savedRequest = sessionStorage.getItem(SessionKeys.RequestIdKey);
|
|
149
|
-
if (this.order_id) {
|
|
155
|
+
if (this.order_id && this.order_id != '') {
|
|
156
|
+
console.log('Current RequestId has value: ' + this.order_id);
|
|
150
157
|
if (savedRequest && savedRequest != '' && savedRequest != this.order_id) {
|
|
151
|
-
|
|
158
|
+
console.log('Session RequestId: ' + savedRequest + ' has different value than property one: ' + this.order_id);
|
|
152
159
|
store.flowStatus = FlowStatus.LANDING;
|
|
153
160
|
store.initialised = false;
|
|
154
161
|
}
|
|
155
162
|
store.requestId = this.order_id;
|
|
156
163
|
}
|
|
157
164
|
else if (savedRequest) {
|
|
165
|
+
console.log('Current RequestId has no value, setting with session value: ' + savedRequest);
|
|
158
166
|
store.requestId = savedRequest;
|
|
167
|
+
this.order_id = savedRequest;
|
|
159
168
|
}
|
|
160
169
|
this.apiCall = new ApiCall();
|
|
161
170
|
await this.initializeRequest();
|
|
@@ -55,6 +55,7 @@ export class ApiCall {
|
|
|
55
55
|
return jsonResp.valid;
|
|
56
56
|
}
|
|
57
57
|
async AddIdentificationRequest(deviceInfo) {
|
|
58
|
+
console.log('Calling identity request with store:' + JSON.stringify(store));
|
|
58
59
|
let data = {
|
|
59
60
|
requestId: store.requestId,
|
|
60
61
|
clientDeviceInfo: JSON.stringify(deviceInfo),
|
|
@@ -434,6 +434,7 @@ class ApiCall {
|
|
|
434
434
|
return jsonResp.valid;
|
|
435
435
|
}
|
|
436
436
|
async AddIdentificationRequest(deviceInfo) {
|
|
437
|
+
console.log('Calling identity request with store:' + JSON.stringify(state));
|
|
437
438
|
let data = {
|
|
438
439
|
requestId: state.requestId,
|
|
439
440
|
clientDeviceInfo: JSON.stringify(deviceInfo),
|
|
@@ -6003,6 +6004,7 @@ const identificationComponentCss = "@font-face{font-family:'Inter';font-style:no
|
|
|
6003
6004
|
|
|
6004
6005
|
const IdentificationComponent = class {
|
|
6005
6006
|
async onTokenChange(newValue, _oldValue) {
|
|
6007
|
+
console.log('Token change called with value: ' + newValue);
|
|
6006
6008
|
if (newValue == '') {
|
|
6007
6009
|
newValue = state.token;
|
|
6008
6010
|
return;
|
|
@@ -6013,6 +6015,7 @@ const IdentificationComponent = class {
|
|
|
6013
6015
|
}
|
|
6014
6016
|
}
|
|
6015
6017
|
async onOrderIdChange(newValue, _oldValue) {
|
|
6018
|
+
console.log('OrderId change called with value: ' + newValue);
|
|
6016
6019
|
if (state.requestId !== newValue && newValue != '') {
|
|
6017
6020
|
state.requestId = newValue;
|
|
6018
6021
|
state.initialised = false;
|
|
@@ -6041,6 +6044,7 @@ const IdentificationComponent = class {
|
|
|
6041
6044
|
}
|
|
6042
6045
|
}
|
|
6043
6046
|
async onRedirectIdChange(newValue, _oldValue) {
|
|
6047
|
+
console.log('RedirectId change called with value: ' + newValue);
|
|
6044
6048
|
if (state.redirectId != '') {
|
|
6045
6049
|
newValue = state.redirectId;
|
|
6046
6050
|
return;
|
|
@@ -6106,10 +6110,13 @@ const IdentificationComponent = class {
|
|
|
6106
6110
|
state.apiBaseUrl = this.api_url;
|
|
6107
6111
|
state.environment = this.env;
|
|
6108
6112
|
if (this.token) {
|
|
6113
|
+
console.log('Store Token set with property value: ' + this.token);
|
|
6109
6114
|
state.token = this.token;
|
|
6110
6115
|
}
|
|
6111
|
-
else {
|
|
6116
|
+
else if (state.token == '') {
|
|
6112
6117
|
state.token = sessionStorage.getItem(SessionKeys.TokenKey);
|
|
6118
|
+
this.token = state.token;
|
|
6119
|
+
console.log('Store Token set with session value: ' + state.token);
|
|
6113
6120
|
}
|
|
6114
6121
|
if (this.redirect_id) {
|
|
6115
6122
|
state.redirectId = this.redirect_id;
|
|
@@ -6141,16 +6148,19 @@ const IdentificationComponent = class {
|
|
|
6141
6148
|
state.phoneValidation = true;
|
|
6142
6149
|
}
|
|
6143
6150
|
const savedRequest = sessionStorage.getItem(SessionKeys.RequestIdKey);
|
|
6144
|
-
if (this.order_id) {
|
|
6151
|
+
if (this.order_id && this.order_id != '') {
|
|
6152
|
+
console.log('Current RequestId has value: ' + this.order_id);
|
|
6145
6153
|
if (savedRequest && savedRequest != '' && savedRequest != this.order_id) {
|
|
6146
|
-
|
|
6154
|
+
console.log('Session RequestId: ' + savedRequest + ' has different value than property one: ' + this.order_id);
|
|
6147
6155
|
state.flowStatus = FlowStatus.LANDING;
|
|
6148
6156
|
state.initialised = false;
|
|
6149
6157
|
}
|
|
6150
6158
|
state.requestId = this.order_id;
|
|
6151
6159
|
}
|
|
6152
6160
|
else if (savedRequest) {
|
|
6161
|
+
console.log('Current RequestId has no value, setting with session value: ' + savedRequest);
|
|
6153
6162
|
state.requestId = savedRequest;
|
|
6163
|
+
this.order_id = savedRequest;
|
|
6154
6164
|
}
|
|
6155
6165
|
this.apiCall = new ApiCall();
|
|
6156
6166
|
await this.initializeRequest();
|