@ekyc_qoobiss/qbs-ect-cmp 3.0.0 → 3.0.1
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 +11 -8
- package/dist/collection/components/identification-component/identification-component.js +2 -5
- package/dist/collection/helpers/ApiCall.js +1 -1
- package/dist/collection/utils/utils.js +9 -0
- package/dist/esm/agreement-check_18.entry.js +11 -8
- package/dist/qbs-ect-cmp/{p-8cd2ffb8.entry.js → p-cf991b8b.entry.js} +2 -2
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/utils/utils.d.ts +16 -0
- package/package.json +1 -1
|
@@ -538,7 +538,7 @@ class ApiCall {
|
|
|
538
538
|
catch (_a) { }
|
|
539
539
|
}
|
|
540
540
|
async AddStep(step) {
|
|
541
|
-
let data = { requestId: state.requestId, step: FlowSteps[step] };
|
|
541
|
+
let data = { requestId: state.requestId, redirectId: state.redirectId, step: FlowSteps[step] };
|
|
542
542
|
let result = await this.post(this.urls.AddStep, JSON.stringify(data));
|
|
543
543
|
return result.saved;
|
|
544
544
|
}
|
|
@@ -1981,7 +1981,14 @@ const blobToBase64 = (blob) => {
|
|
|
1981
1981
|
reader.readAsDataURL(blob);
|
|
1982
1982
|
});
|
|
1983
1983
|
};
|
|
1984
|
-
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
|
+
};
|
|
1985
1992
|
|
|
1986
1993
|
class IDML5Detector {
|
|
1987
1994
|
static getInstance(stream, isMobile) {
|
|
@@ -6182,7 +6189,7 @@ function v4(options, buf, offset) {
|
|
|
6182
6189
|
}
|
|
6183
6190
|
|
|
6184
6191
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
6185
|
-
const version$1 = "3.0.
|
|
6192
|
+
const version$1 = "3.0.1";
|
|
6186
6193
|
const description = "Person Identification Component";
|
|
6187
6194
|
const main = "./dist/index.cjs.js";
|
|
6188
6195
|
const module$1 = "./dist/index.js";
|
|
@@ -6366,11 +6373,7 @@ const IdentificationComponent = class {
|
|
|
6366
6373
|
state.environment = this.env;
|
|
6367
6374
|
}
|
|
6368
6375
|
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
|
-
};
|
|
6376
|
+
this.logInit = getLogMessage(this.order_id, this.redirect_id, this.token);
|
|
6374
6377
|
if (this.token) {
|
|
6375
6378
|
if (state.debug)
|
|
6376
6379
|
console.log('Store Token set with property value: ' + this.token);
|
|
@@ -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)
|
|
@@ -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);
|
|
@@ -120,7 +120,7 @@ export class ApiCall {
|
|
|
120
120
|
catch (_a) { }
|
|
121
121
|
}
|
|
122
122
|
async AddStep(step) {
|
|
123
|
-
let data = { requestId: store.requestId, step: FlowSteps[step] };
|
|
123
|
+
let data = { requestId: store.requestId, redirectId: store.redirectId, step: FlowSteps[step] };
|
|
124
124
|
let result = await this.post(this.urls.AddStep, JSON.stringify(data));
|
|
125
125
|
return result.saved;
|
|
126
126
|
}
|
|
@@ -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
|
+
};
|
|
@@ -534,7 +534,7 @@ class ApiCall {
|
|
|
534
534
|
catch (_a) { }
|
|
535
535
|
}
|
|
536
536
|
async AddStep(step) {
|
|
537
|
-
let data = { requestId: state.requestId, step: FlowSteps[step] };
|
|
537
|
+
let data = { requestId: state.requestId, redirectId: state.redirectId, step: FlowSteps[step] };
|
|
538
538
|
let result = await this.post(this.urls.AddStep, JSON.stringify(data));
|
|
539
539
|
return result.saved;
|
|
540
540
|
}
|
|
@@ -1977,7 +1977,14 @@ const blobToBase64 = (blob) => {
|
|
|
1977
1977
|
reader.readAsDataURL(blob);
|
|
1978
1978
|
});
|
|
1979
1979
|
};
|
|
1980
|
-
const delay = ms => new Promise(res => setTimeout(res, ms));
|
|
1980
|
+
const delay = ms => new Promise(res => setTimeout(res, ms));
|
|
1981
|
+
const getLogMessage = (param_req_id, param_redirect_id, param_token) => {
|
|
1982
|
+
return {
|
|
1983
|
+
store_values: { request_id: state.requestId, redirect_id: state.redirectId, token: state.token },
|
|
1984
|
+
session_values: { request_id: sessionStorage.getItem(SessionKeys.RequestIdKey), token: sessionStorage.getItem(SessionKeys.TokenKey) },
|
|
1985
|
+
parameter_values: { request_id: param_req_id, redirect_id: param_redirect_id, token: param_token },
|
|
1986
|
+
};
|
|
1987
|
+
};
|
|
1981
1988
|
|
|
1982
1989
|
class IDML5Detector {
|
|
1983
1990
|
static getInstance(stream, isMobile) {
|
|
@@ -6178,7 +6185,7 @@ function v4(options, buf, offset) {
|
|
|
6178
6185
|
}
|
|
6179
6186
|
|
|
6180
6187
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
6181
|
-
const version$1 = "3.0.
|
|
6188
|
+
const version$1 = "3.0.1";
|
|
6182
6189
|
const description = "Person Identification Component";
|
|
6183
6190
|
const main = "./dist/index.cjs.js";
|
|
6184
6191
|
const module = "./dist/index.js";
|
|
@@ -6362,11 +6369,7 @@ const IdentificationComponent = class {
|
|
|
6362
6369
|
state.environment = this.env;
|
|
6363
6370
|
}
|
|
6364
6371
|
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
|
-
};
|
|
6372
|
+
this.logInit = getLogMessage(this.order_id, this.redirect_id, this.token);
|
|
6370
6373
|
if (this.token) {
|
|
6371
6374
|
if (state.debug)
|
|
6372
6375
|
console.log('Store Token set with property value: ' + this.token);
|