@ekyc_qoobiss/qbs-ect-cmp 1.2.3 → 1.2.5
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 +4 -2
- package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +1 -1
- package/dist/collection/helpers/ApiCall.js +3 -1
- package/dist/esm/agreement-check_17.entry.js +4 -2
- package/dist/qbs-ect-cmp/{p-299da0e7.entry.js → p-319d9efd.entry.js} +2 -2
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/models/IAddRequest.d.ts +1 -0
- package/package.json +1 -1
|
@@ -438,6 +438,7 @@ class ApiCall {
|
|
|
438
438
|
requestId: state.requestId,
|
|
439
439
|
clientDeviceInfo: JSON.stringify(deviceInfo),
|
|
440
440
|
redirectId: state.redirectId,
|
|
441
|
+
phoneNumber: state.phoneNumber,
|
|
441
442
|
};
|
|
442
443
|
let jsonResp = await this.post(this.urls.IdentityInsert, JSON.stringify(data));
|
|
443
444
|
if (state.requestId == '') {
|
|
@@ -446,6 +447,7 @@ class ApiCall {
|
|
|
446
447
|
state.hasIdBack = jsonResp.hasIdBack;
|
|
447
448
|
state.agreementsValidation = jsonResp.agreementsValidation;
|
|
448
449
|
state.phoneValidation = jsonResp.phoneValidation;
|
|
450
|
+
state.phoneNumber = jsonResp.phoneNumber;
|
|
449
451
|
return true;
|
|
450
452
|
}
|
|
451
453
|
async UploadFileForRequestB64(requestId, type, file) {
|
|
@@ -477,7 +479,7 @@ class ApiCall {
|
|
|
477
479
|
return OrderStatuses[resp.status];
|
|
478
480
|
}
|
|
479
481
|
async SendLink(link, phoneNumber) {
|
|
480
|
-
let data = { link: link, phoneNumber: phoneNumber };
|
|
482
|
+
let data = { requestId: state.requestId, link: link, phoneNumber: phoneNumber };
|
|
481
483
|
let resp = await this.post(this.urls.SendLink, JSON.stringify(data));
|
|
482
484
|
return resp.sent;
|
|
483
485
|
}
|
|
@@ -9221,7 +9223,7 @@ const MobileRedirect = class {
|
|
|
9221
9223
|
ev.target.value = this.contact;
|
|
9222
9224
|
}
|
|
9223
9225
|
render() {
|
|
9224
|
-
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", { hidden: this.waitingMobile }, index.h("div", { class: "text-center" }, index.h("p", { class: "font-size-2" }, this.infoTextTop)), index.h("div", { class: "qr-canvas align-center" }, index.h("img", { src: this.qrCode })), index.h("div", { class: "text-center" }, index.h("p", { class: "font-size-2" }, this.infoTextBottom)), index.h("div", { class: "input-container mb-15" }, index.h("label", { class: "font-size-18 mb-1 color-red", hidden: this.invalidValue == false }, index.h("b", null, MobileRedirectValues.Validation)), index.h("input", { type: "text", id: "codeInput", class: "main-input",
|
|
9226
|
+
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", { hidden: this.waitingMobile }, index.h("div", { class: "text-center" }, index.h("p", { class: "font-size-2" }, this.infoTextTop)), index.h("div", { class: "qr-canvas align-center" }, index.h("img", { src: this.qrCode })), index.h("div", { class: "text-center" }, index.h("p", { class: "font-size-2" }, this.infoTextBottom)), index.h("div", { class: "input-container mb-15" }, index.h("label", { class: "font-size-18 mb-1 color-red", hidden: this.invalidValue == false }, index.h("b", null, MobileRedirectValues.Validation)), index.h("input", { type: "text", id: "codeInput", class: "main-input", disabled: this.prefilledPhone, value: this.contact, onInput: ev => this.handleChangeContact(ev) })), index.h("div", { class: "pos-relative" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", onClick: () => this.buttonClick() }, "Trimite"), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, MobileRedirectValues.FooterText)))), index.h("div", { hidden: this.waitingMobile == false }, index.h("div", { class: "text-center" }, index.h("p", { class: "font-size-2" }, this.infoTextTop))))));
|
|
9225
9227
|
}
|
|
9226
9228
|
};
|
|
9227
9229
|
MobileRedirect.style = mobileRedirectCss;
|
|
@@ -85,7 +85,7 @@ export class MobileRedirect {
|
|
|
85
85
|
ev.target.value = this.contact;
|
|
86
86
|
}
|
|
87
87
|
render() {
|
|
88
|
-
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { hidden: this.waitingMobile }, h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextTop)), h("div", { class: "qr-canvas align-center" }, h("img", { src: this.qrCode })), h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextBottom)), h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1 color-red", hidden: this.invalidValue == false }, h("b", null, MobileRedirectValues.Validation)), h("input", { type: "text", id: "codeInput", class: "main-input",
|
|
88
|
+
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { hidden: this.waitingMobile }, h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextTop)), h("div", { class: "qr-canvas align-center" }, h("img", { src: this.qrCode })), h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextBottom)), h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1 color-red", hidden: this.invalidValue == false }, h("b", null, MobileRedirectValues.Validation)), h("input", { type: "text", id: "codeInput", class: "main-input", disabled: this.prefilledPhone, value: this.contact, onInput: ev => this.handleChangeContact(ev) })), h("div", { class: "pos-relative" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", onClick: () => this.buttonClick() }, "Trimite"), h("p", { class: "main-text font-size-18 text-right mb-0" }, MobileRedirectValues.FooterText)))), h("div", { hidden: this.waitingMobile == false }, h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextTop))))));
|
|
89
89
|
}
|
|
90
90
|
static get is() { return "mobile-redirect"; }
|
|
91
91
|
static get originalStyleUrls() {
|
|
@@ -59,6 +59,7 @@ export class ApiCall {
|
|
|
59
59
|
requestId: store.requestId,
|
|
60
60
|
clientDeviceInfo: JSON.stringify(deviceInfo),
|
|
61
61
|
redirectId: store.redirectId,
|
|
62
|
+
phoneNumber: store.phoneNumber,
|
|
62
63
|
};
|
|
63
64
|
let jsonResp = await this.post(this.urls.IdentityInsert, JSON.stringify(data));
|
|
64
65
|
if (store.requestId == '') {
|
|
@@ -67,6 +68,7 @@ export class ApiCall {
|
|
|
67
68
|
store.hasIdBack = jsonResp.hasIdBack;
|
|
68
69
|
store.agreementsValidation = jsonResp.agreementsValidation;
|
|
69
70
|
store.phoneValidation = jsonResp.phoneValidation;
|
|
71
|
+
store.phoneNumber = jsonResp.phoneNumber;
|
|
70
72
|
return true;
|
|
71
73
|
}
|
|
72
74
|
async UploadFileForRequestB64(requestId, type, file) {
|
|
@@ -98,7 +100,7 @@ export class ApiCall {
|
|
|
98
100
|
return OrderStatuses[resp.status];
|
|
99
101
|
}
|
|
100
102
|
async SendLink(link, phoneNumber) {
|
|
101
|
-
let data = { link: link, phoneNumber: phoneNumber };
|
|
103
|
+
let data = { requestId: store.requestId, link: link, phoneNumber: phoneNumber };
|
|
102
104
|
let resp = await this.post(this.urls.SendLink, JSON.stringify(data));
|
|
103
105
|
return resp.sent;
|
|
104
106
|
}
|
|
@@ -434,6 +434,7 @@ class ApiCall {
|
|
|
434
434
|
requestId: state.requestId,
|
|
435
435
|
clientDeviceInfo: JSON.stringify(deviceInfo),
|
|
436
436
|
redirectId: state.redirectId,
|
|
437
|
+
phoneNumber: state.phoneNumber,
|
|
437
438
|
};
|
|
438
439
|
let jsonResp = await this.post(this.urls.IdentityInsert, JSON.stringify(data));
|
|
439
440
|
if (state.requestId == '') {
|
|
@@ -442,6 +443,7 @@ class ApiCall {
|
|
|
442
443
|
state.hasIdBack = jsonResp.hasIdBack;
|
|
443
444
|
state.agreementsValidation = jsonResp.agreementsValidation;
|
|
444
445
|
state.phoneValidation = jsonResp.phoneValidation;
|
|
446
|
+
state.phoneNumber = jsonResp.phoneNumber;
|
|
445
447
|
return true;
|
|
446
448
|
}
|
|
447
449
|
async UploadFileForRequestB64(requestId, type, file) {
|
|
@@ -473,7 +475,7 @@ class ApiCall {
|
|
|
473
475
|
return OrderStatuses[resp.status];
|
|
474
476
|
}
|
|
475
477
|
async SendLink(link, phoneNumber) {
|
|
476
|
-
let data = { link: link, phoneNumber: phoneNumber };
|
|
478
|
+
let data = { requestId: state.requestId, link: link, phoneNumber: phoneNumber };
|
|
477
479
|
let resp = await this.post(this.urls.SendLink, JSON.stringify(data));
|
|
478
480
|
return resp.sent;
|
|
479
481
|
}
|
|
@@ -9217,7 +9219,7 @@ const MobileRedirect = class {
|
|
|
9217
9219
|
ev.target.value = this.contact;
|
|
9218
9220
|
}
|
|
9219
9221
|
render() {
|
|
9220
|
-
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { hidden: this.waitingMobile }, h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextTop)), h("div", { class: "qr-canvas align-center" }, h("img", { src: this.qrCode })), h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextBottom)), h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1 color-red", hidden: this.invalidValue == false }, h("b", null, MobileRedirectValues.Validation)), h("input", { type: "text", id: "codeInput", class: "main-input",
|
|
9222
|
+
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { hidden: this.waitingMobile }, h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextTop)), h("div", { class: "qr-canvas align-center" }, h("img", { src: this.qrCode })), h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextBottom)), h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1 color-red", hidden: this.invalidValue == false }, h("b", null, MobileRedirectValues.Validation)), h("input", { type: "text", id: "codeInput", class: "main-input", disabled: this.prefilledPhone, value: this.contact, onInput: ev => this.handleChangeContact(ev) })), h("div", { class: "pos-relative" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", onClick: () => this.buttonClick() }, "Trimite"), h("p", { class: "main-text font-size-18 text-right mb-0" }, MobileRedirectValues.FooterText)))), h("div", { hidden: this.waitingMobile == false }, h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextTop))))));
|
|
9221
9223
|
}
|
|
9222
9224
|
};
|
|
9223
9225
|
MobileRedirect.style = mobileRedirectCss;
|