@ekyc_qoobiss/qbs-ect-cmp 1.9.9 → 1.9.11
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_16.cjs.entry.js +15 -15
- package/dist/collection/components/identification-component/identification-component.js +13 -11
- package/dist/collection/helpers/store.js +1 -1
- package/dist/collection/helpers/textValues.js +2 -2
- package/dist/esm/agreement-check_16.entry.js +15 -15
- package/dist/qbs-ect-cmp/{p-5286318d.entry.js → p-0b1d2598.entry.js} +2 -2
- 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/dist/types/helpers/textValues.d.ts +6 -6
- package/package.json +1 -1
|
@@ -313,19 +313,19 @@ AgreementCheckValues.ButtonNo = 'Nu sunt de acord';
|
|
|
313
313
|
class ApiUrls {
|
|
314
314
|
constructor() {
|
|
315
315
|
this.uriEnv = '/';
|
|
316
|
+
this.uriEnv = state.environment == 'QA' ? '/dev_' : '/';
|
|
316
317
|
this.OtpSend = this.uriEnv + 'validation/otp/send';
|
|
317
|
-
this.OtpCheck = this.uriEnv + 'validation/otp/
|
|
318
|
+
this.OtpCheck = this.uriEnv + 'validation/otp/check';
|
|
318
319
|
this.IdentityInsert = this.uriEnv + 'validation/identity/insert';
|
|
319
320
|
this.UploadCapture = this.uriEnv + 'validation/upload/capture';
|
|
320
321
|
this.GetAgreement = this.uriEnv + 'validation/agreement/content';
|
|
321
322
|
this.GenerateAgreement = this.uriEnv + 'validation/agreement/generate';
|
|
322
|
-
this.uriEnv = state.environment == 'QA' ? '/dev_' : '/';
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
|
|
326
326
|
const { state, onChange } = createStore({
|
|
327
327
|
flowStatus: FlowStatus.LANDING,
|
|
328
|
-
environment: '
|
|
328
|
+
environment: '',
|
|
329
329
|
requestId: '',
|
|
330
330
|
initialised: false,
|
|
331
331
|
token: '',
|
|
@@ -5846,6 +5846,15 @@ const IdentificationComponent = class {
|
|
|
5846
5846
|
state.apiBaseUrl = newValue;
|
|
5847
5847
|
}
|
|
5848
5848
|
}
|
|
5849
|
+
onEnvChange(newValue, _oldValue) {
|
|
5850
|
+
if (state.environment != '') {
|
|
5851
|
+
newValue = state.environment;
|
|
5852
|
+
return;
|
|
5853
|
+
}
|
|
5854
|
+
if (state.environment !== newValue) {
|
|
5855
|
+
state.environment = newValue;
|
|
5856
|
+
}
|
|
5857
|
+
}
|
|
5849
5858
|
agreementAcceptanceEmitted(data) {
|
|
5850
5859
|
try {
|
|
5851
5860
|
this.apiCall.GenerateAgreement(data.detail.agreementType);
|
|
@@ -5891,21 +5900,11 @@ const IdentificationComponent = class {
|
|
|
5891
5900
|
sessionStorage.setItem(SessionKeys.RequestIdKey, state.requestId);
|
|
5892
5901
|
}
|
|
5893
5902
|
state.apiBaseUrl = this.api_url;
|
|
5894
|
-
|
|
5895
|
-
state.environment = 'QA';
|
|
5896
|
-
}
|
|
5903
|
+
state.environment = this.env;
|
|
5897
5904
|
this.apiCall = new ApiCall();
|
|
5898
5905
|
await this.initializeRequest();
|
|
5899
5906
|
}
|
|
5900
5907
|
componentWillRender() {
|
|
5901
|
-
var reqId = sessionStorage.getItem(SessionKeys.RequestIdKey);
|
|
5902
|
-
if (reqId) {
|
|
5903
|
-
state.requestId = reqId;
|
|
5904
|
-
}
|
|
5905
|
-
var tkn = sessionStorage.getItem(SessionKeys.TokenKey);
|
|
5906
|
-
if (tkn) {
|
|
5907
|
-
state.token = tkn;
|
|
5908
|
-
}
|
|
5909
5908
|
state.flowStatus = FlowStatus[sessionStorage.getItem(SessionKeys.FlowStatusKey)];
|
|
5910
5909
|
if (!state.flowStatus) {
|
|
5911
5910
|
state.flowStatus = FlowStatus.LANDING;
|
|
@@ -5965,7 +5964,8 @@ const IdentificationComponent = class {
|
|
|
5965
5964
|
static get watchers() { return {
|
|
5966
5965
|
"token": ["onTokenChange"],
|
|
5967
5966
|
"order_id": ["onOrderIdChange"],
|
|
5968
|
-
"api_url": ["onApiUrlChange"]
|
|
5967
|
+
"api_url": ["onApiUrlChange"],
|
|
5968
|
+
"env": ["onEnvChange"]
|
|
5969
5969
|
}; }
|
|
5970
5970
|
};
|
|
5971
5971
|
IdentificationComponent.style = identificationComponentCss;
|
|
@@ -39,6 +39,15 @@ export class IdentificationComponent {
|
|
|
39
39
|
store.apiBaseUrl = newValue;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
+
onEnvChange(newValue, _oldValue) {
|
|
43
|
+
if (store.environment != '') {
|
|
44
|
+
newValue = store.environment;
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
if (store.environment !== newValue) {
|
|
48
|
+
store.environment = newValue;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
42
51
|
agreementAcceptanceEmitted(data) {
|
|
43
52
|
try {
|
|
44
53
|
this.apiCall.GenerateAgreement(data.detail.agreementType);
|
|
@@ -83,21 +92,11 @@ export class IdentificationComponent {
|
|
|
83
92
|
sessionStorage.setItem(SessionKeys.RequestIdKey, store.requestId);
|
|
84
93
|
}
|
|
85
94
|
store.apiBaseUrl = this.api_url;
|
|
86
|
-
|
|
87
|
-
store.environment = 'QA';
|
|
88
|
-
}
|
|
95
|
+
store.environment = this.env;
|
|
89
96
|
this.apiCall = new ApiCall();
|
|
90
97
|
await this.initializeRequest();
|
|
91
98
|
}
|
|
92
99
|
componentWillRender() {
|
|
93
|
-
var reqId = sessionStorage.getItem(SessionKeys.RequestIdKey);
|
|
94
|
-
if (reqId) {
|
|
95
|
-
store.requestId = reqId;
|
|
96
|
-
}
|
|
97
|
-
var tkn = sessionStorage.getItem(SessionKeys.TokenKey);
|
|
98
|
-
if (tkn) {
|
|
99
|
-
store.token = tkn;
|
|
100
|
-
}
|
|
101
100
|
store.flowStatus = FlowStatus[sessionStorage.getItem(SessionKeys.FlowStatusKey)];
|
|
102
101
|
if (!store.flowStatus) {
|
|
103
102
|
store.flowStatus = FlowStatus.LANDING;
|
|
@@ -254,6 +253,9 @@ export class IdentificationComponent {
|
|
|
254
253
|
}, {
|
|
255
254
|
"propName": "api_url",
|
|
256
255
|
"methodName": "onApiUrlChange"
|
|
256
|
+
}, {
|
|
257
|
+
"propName": "env",
|
|
258
|
+
"methodName": "onEnvChange"
|
|
257
259
|
}];
|
|
258
260
|
}
|
|
259
261
|
static get listeners() {
|
|
@@ -3,7 +3,7 @@ import { FlowStatus } from '../models/FlowStatus';
|
|
|
3
3
|
import { SessionKeys } from './textValues';
|
|
4
4
|
const { state, onChange } = createStore({
|
|
5
5
|
flowStatus: FlowStatus.LANDING,
|
|
6
|
-
environment: '
|
|
6
|
+
environment: '',
|
|
7
7
|
requestId: '',
|
|
8
8
|
initialised: false,
|
|
9
9
|
token: '',
|
|
@@ -104,12 +104,12 @@ AgreementCheckValues.ButtonNo = 'Nu sunt de acord';
|
|
|
104
104
|
export class ApiUrls {
|
|
105
105
|
constructor() {
|
|
106
106
|
this.uriEnv = '/';
|
|
107
|
+
this.uriEnv = store.environment == 'QA' ? '/dev_' : '/';
|
|
107
108
|
this.OtpSend = this.uriEnv + 'validation/otp/send';
|
|
108
|
-
this.OtpCheck = this.uriEnv + 'validation/otp/
|
|
109
|
+
this.OtpCheck = this.uriEnv + 'validation/otp/check';
|
|
109
110
|
this.IdentityInsert = this.uriEnv + 'validation/identity/insert';
|
|
110
111
|
this.UploadCapture = this.uriEnv + 'validation/upload/capture';
|
|
111
112
|
this.GetAgreement = this.uriEnv + 'validation/agreement/content';
|
|
112
113
|
this.GenerateAgreement = this.uriEnv + 'validation/agreement/generate';
|
|
113
|
-
this.uriEnv = store.environment == 'QA' ? '/dev_' : '/';
|
|
114
114
|
}
|
|
115
115
|
}
|
|
@@ -309,19 +309,19 @@ AgreementCheckValues.ButtonNo = 'Nu sunt de acord';
|
|
|
309
309
|
class ApiUrls {
|
|
310
310
|
constructor() {
|
|
311
311
|
this.uriEnv = '/';
|
|
312
|
+
this.uriEnv = state.environment == 'QA' ? '/dev_' : '/';
|
|
312
313
|
this.OtpSend = this.uriEnv + 'validation/otp/send';
|
|
313
|
-
this.OtpCheck = this.uriEnv + 'validation/otp/
|
|
314
|
+
this.OtpCheck = this.uriEnv + 'validation/otp/check';
|
|
314
315
|
this.IdentityInsert = this.uriEnv + 'validation/identity/insert';
|
|
315
316
|
this.UploadCapture = this.uriEnv + 'validation/upload/capture';
|
|
316
317
|
this.GetAgreement = this.uriEnv + 'validation/agreement/content';
|
|
317
318
|
this.GenerateAgreement = this.uriEnv + 'validation/agreement/generate';
|
|
318
|
-
this.uriEnv = state.environment == 'QA' ? '/dev_' : '/';
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
const { state, onChange } = createStore({
|
|
323
323
|
flowStatus: FlowStatus.LANDING,
|
|
324
|
-
environment: '
|
|
324
|
+
environment: '',
|
|
325
325
|
requestId: '',
|
|
326
326
|
initialised: false,
|
|
327
327
|
token: '',
|
|
@@ -5842,6 +5842,15 @@ const IdentificationComponent = class {
|
|
|
5842
5842
|
state.apiBaseUrl = newValue;
|
|
5843
5843
|
}
|
|
5844
5844
|
}
|
|
5845
|
+
onEnvChange(newValue, _oldValue) {
|
|
5846
|
+
if (state.environment != '') {
|
|
5847
|
+
newValue = state.environment;
|
|
5848
|
+
return;
|
|
5849
|
+
}
|
|
5850
|
+
if (state.environment !== newValue) {
|
|
5851
|
+
state.environment = newValue;
|
|
5852
|
+
}
|
|
5853
|
+
}
|
|
5845
5854
|
agreementAcceptanceEmitted(data) {
|
|
5846
5855
|
try {
|
|
5847
5856
|
this.apiCall.GenerateAgreement(data.detail.agreementType);
|
|
@@ -5887,21 +5896,11 @@ const IdentificationComponent = class {
|
|
|
5887
5896
|
sessionStorage.setItem(SessionKeys.RequestIdKey, state.requestId);
|
|
5888
5897
|
}
|
|
5889
5898
|
state.apiBaseUrl = this.api_url;
|
|
5890
|
-
|
|
5891
|
-
state.environment = 'QA';
|
|
5892
|
-
}
|
|
5899
|
+
state.environment = this.env;
|
|
5893
5900
|
this.apiCall = new ApiCall();
|
|
5894
5901
|
await this.initializeRequest();
|
|
5895
5902
|
}
|
|
5896
5903
|
componentWillRender() {
|
|
5897
|
-
var reqId = sessionStorage.getItem(SessionKeys.RequestIdKey);
|
|
5898
|
-
if (reqId) {
|
|
5899
|
-
state.requestId = reqId;
|
|
5900
|
-
}
|
|
5901
|
-
var tkn = sessionStorage.getItem(SessionKeys.TokenKey);
|
|
5902
|
-
if (tkn) {
|
|
5903
|
-
state.token = tkn;
|
|
5904
|
-
}
|
|
5905
5904
|
state.flowStatus = FlowStatus[sessionStorage.getItem(SessionKeys.FlowStatusKey)];
|
|
5906
5905
|
if (!state.flowStatus) {
|
|
5907
5906
|
state.flowStatus = FlowStatus.LANDING;
|
|
@@ -5961,7 +5960,8 @@ const IdentificationComponent = class {
|
|
|
5961
5960
|
static get watchers() { return {
|
|
5962
5961
|
"token": ["onTokenChange"],
|
|
5963
5962
|
"order_id": ["onOrderIdChange"],
|
|
5964
|
-
"api_url": ["onApiUrlChange"]
|
|
5963
|
+
"api_url": ["onApiUrlChange"],
|
|
5964
|
+
"env": ["onEnvChange"]
|
|
5965
5965
|
}; }
|
|
5966
5966
|
};
|
|
5967
5967
|
IdentificationComponent.style = identificationComponentCss;
|