@ekyc_qoobiss/qbs-ect-cmp 3.6.14 → 3.6.16
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/{Stream-097bd1e9.js → agreement-check_19.cjs.entry.js} +5238 -529
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/qbs-ect-cmp.cjs.js +1 -1
- package/dist/cjs/random-actions.cjs.entry.js +22 -0
- package/dist/cjs/store-ab631a7a.js +415 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/common/capture-error/capture-error.js +6 -1
- package/dist/collection/components/common/id-back-capture/id-back-capture.js +2 -4
- package/dist/collection/components/common/id-capture/id-capture.js +2 -4
- package/dist/collection/components/common/id-tilt/id-tilt.js +3 -5
- package/dist/collection/components/common/random-actions/random-actions.js +20 -0
- package/dist/collection/components/common/selfie-capture/selfie-capture.js +3 -27
- package/dist/collection/components/common/selfie-tilt/selfie-tilt.css +7 -0
- package/dist/collection/components/common/selfie-tilt/selfie-tilt.js +212 -0
- package/dist/collection/components/flow/process-id/process-id.js +31 -28
- package/dist/collection/components/flow/user-liveness/user-liveness.js +87 -40
- package/dist/collection/helpers/Stream.js +1 -1
- package/dist/collection/libs/FaceML5Detector/FaceML5Detector.js +18 -15
- package/dist/collection/models/CaptureFlow.js +17 -9
- package/dist/collection/models/FlowSteps.js +3 -6
- package/dist/esm/{Stream-d1fb2210.js → agreement-check_19.entry.js} +5131 -420
- package/dist/esm/loader.js +1 -1
- package/dist/esm/qbs-ect-cmp.js +1 -1
- package/dist/esm/random-actions.entry.js +18 -0
- package/dist/esm/store-b5192087.js +399 -0
- package/dist/qbs-ect-cmp/{p-73a2e58b.js → p-094ad8f3.entry.js} +26 -26
- package/dist/qbs-ect-cmp/p-927cd530.entry.js +1 -0
- package/dist/qbs-ect-cmp/p-a6506178.js +1 -0
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/common/capture-error/capture-error.d.ts +3 -1
- package/dist/types/components/common/random-actions/random-actions.d.ts +7 -0
- package/dist/types/components/common/selfie-capture/selfie-capture.d.ts +0 -1
- package/dist/types/components/common/selfie-tilt/selfie-tilt.d.ts +30 -0
- package/dist/types/components/flow/user-liveness/user-liveness.d.ts +4 -4
- package/dist/types/components.d.ts +33 -37
- package/dist/types/libs/FaceML5Detector/FaceML5Detector.d.ts +3 -2
- package/dist/types/models/CaptureFlow.d.ts +8 -1
- package/dist/types/models/FlowSteps.d.ts +3 -6
- package/package.json +1 -1
- package/dist/cjs/agreement-check_18.cjs.entry.js +0 -4971
- package/dist/cjs/id-double-side.cjs.entry.js +0 -208
- package/dist/cjs/id-single-side.cjs.entry.js +0 -147
- package/dist/collection/components/flow/id-double-side/id-double-side.js +0 -285
- package/dist/collection/components/flow/id-single-side/id-single-side.css +0 -0
- package/dist/collection/components/flow/id-single-side/id-single-side.js +0 -216
- package/dist/esm/agreement-check_18.entry.js +0 -4950
- package/dist/esm/id-double-side.entry.js +0 -204
- package/dist/esm/id-single-side.entry.js +0 -143
- package/dist/qbs-ect-cmp/p-04e51eac.entry.js +0 -1
- package/dist/qbs-ect-cmp/p-deea462b.entry.js +0 -1
- package/dist/qbs-ect-cmp/p-f84883f8.entry.js +0 -1
- package/dist/types/components/flow/id-double-side/id-double-side.d.ts +0 -29
- package/dist/types/components/flow/id-single-side/id-single-side.d.ts +0 -24
- /package/dist/collection/components/{flow/id-double-side/id-double-side.css → common/random-actions/random-actions.css} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as s}from"./p-aacd7024.js";import{H as o}from"./p-a6506178.js";const i=class{constructor(s){t(this,s)}componentWillLoad(){}buttonClick(){}render(){return s("div",{class:"container"},s("div",{class:"row"},s("div",{class:"text-center"},s("h1",null,this.topTitle)),s("div",{class:"pos-relative show-bottom"},s("div",{class:"btn-buletin"},s("button",{class:"main-button",onClick:()=>this.buttonClick()},this.buttonText),s("p",{class:"main-text font-size-18 text-right mb-0"},o.FooterText)))))}};i.style="";export{i as random_actions}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,f as t}from"./p-aacd7024.js";const a=e=>!("isConnected"in e)||e.isConnected,i=(()=>{let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let t of e.keys())e.set(t,e.get(t).filter(a))})(...t)}),2e3)}})(),n=e=>"function"==typeof e?e():e;var s;!function(e){e[e.LANDING=0]="LANDING",e[e.AGREEMENT=1]="AGREEMENT",e[e.PHONE=2]="PHONE",e[e.CODE=3]="CODE",e[e.CODEERROR=4]="CODEERROR",e[e.ID=5]="ID",e[e.LIVENESS=6]="LIVENESS",e[e.COMPLETE=7]="COMPLETE",e[e.ERROREND=8]="ERROREND",e[e.CAMERAERROR=9]="CAMERAERROR",e[e.NONE=10]="NONE"}(s||(s={}));class r{}r.FooterText="Qoobiss eKYC",r.VideoLenght=3100;class c extends r{}c.IdTitile="Prezintă actul tău de identitate",c.IdSubTitileFace="Este necesară captarea actului de identitate. Urmează intrucțiunile ce vor fi afișate pe ecran.",c.IdSubTitileBack="Este necesară captarea pe verso a actului de identitate. Urmează intrucțiunile ce vor fi afișate pe ecran.",c.IdButton="Sunt gata!",c.SelfieTitile="Validare video",c.SelfieSubTitile="Este necesară realizarea unei înregistrări video. Respectă intrucțiunile ce vor fi afișate pe ecran.",c.SelfieButton="Sunt gata!";class o extends r{}o.Title="Validarea identității la distanță este o procedură simplă și rapidă",o.Description="Asigură-te că ai:",o.IdInfo="Actul de identitate, în original",o.DeviceInfo="Un telefon mobil sau un calculator cu camera web",o.SmsInfo="Acces la un telefon mobil ce permite primirea de mesaje SMS",o.Warning="ATENȚIE! În cadrul acestui proces se poate utiliza doar cartea de identitate Românească.",o.WarningMd="ATENȚIE! In cadrul acestui proces se pot utiliza doar buletinele de identitate din Republica Moldova.",o.Terms="Prin continuarea procesului, confirmi că ai citit termenii de utilizare și ești de acord cu aceștia.",o.Button="Am înțeles",o.ButtonLeave="Nu sunt pregătit";class d extends r{}d.Title="Este necesar să validăm numărul tău de telefon",d.Description="Introdu mai jos numarul tau de telefon:",d.Button="Trimite SMS de verificare",d.Label="Numarul tau de telefon";class l extends r{}l.Title="Introdu codul de validare primit prin sms:",l.Description=" ",l.Button="Validează",l.Error="Codul introdus nu este valid. Asigură-te că îl introduci corect";class u extends r{}u.Title="Procesul a fost finalizat.",u.Description="Vei fi redirecționat în câteva momente.",u.Message="Îți mulțumim!";class p{}p.FlowStatusKey="qbs-ect-flowstatus",p.RequestIdKey="qbs-ect-requestid",p.TokenKey="qbs-ect-token",p.InitialisedKey="qbs-ect-initialised",p.HasIdBackKey="qbs-ect-has-id-back",p.AgreementValidationKey="qbs-ect-agreement-validation",p.PhoneValidationKey="qbs-ect-phone-validation",p.RefreshDoneKey="qbs-ect-refresh-done";class m extends r{}m.Button="Încerc din nou",m.Title="Încadrează actul de identitate în chenarul de pe ecran.",m.TitleBack="Încadrează spatele actului de identitate în chenarul de pe ecran.",m.TtileRotate="Întoarce actul de identitate.",m.ErrorTitleR1="Nu am putut colecta informațiile din actul de identitate!",m.ErrorTitleR2="Te rugăm să mai încerci o dată!",m.ErrorR1="Încadrează actul de identitate în așa fel încât chenarul să se potrivească perfect pe colțurile actului de identitate. Trebuie să fie vizibilă întreaga suprafață a actului de identitate. ",m.ErrorR2="Ai grijă să te afli într-o zonă cu suficientă lumină și să nu acoperi părți ale actului de identitate cu degetele. Ai grijă de asemenea să nu se formeze reflexii de lumină pe suprafața acestuia.",m.IDPoseMapping={0:"",1:"Înclină actul de identitate spre spate.",2:"",3:"",4:""},m.IDPoseDemoMapping={0:"https://ekyc.blob.core.windows.net/$web/animations/id/id_front.mp4",1:"https://ekyc.blob.core.windows.net/$web/animations/id/id_front_tilt.mp4",2:"https://ekyc.blob.core.windows.net/$web/animations/id/id_rotate.mp4",3:"https://ekyc.blob.core.windows.net/$web/animations/id/id_back.mp4",4:"https://ekyc.blob.core.windows.net/$web/animations/id/id_back_tilt.mp4"},m.Loading="Transferăm datele. Asteptați...";class f extends r{}f.Title="Încadrează fața în chenarul de pe ecran.",f.FinalTitle="Îndreaptă capul și încadrează fața în chenarul de pe ecran.",f.ErrorTitleR1="Procesul a eșuat!",f.ErrorTitleR2="Te rugăm să mai încerci o dată!",f.ErrorR1="Încadrează fața în așa fel încât chenarul să se suprapună peste linia bărbiei și a frunții, exact așa cum vezi în animația de pe ecran. ",f.ErrorR2="Rămâi cu fața încadrată în chenar și execută gestul solicitat după ce animația cu explicația a dispărut de pe ecran.",f.Loading="Transferăm datele. Asteptați...",f.FacePoseMapping={0:"Întoarce capul spre stânga.",1:"Întoarce capul spre dreapta.",2:"Înclină capul spre spate.",3:"Înclină capul în față.",4:""},f.FacePoseDemoMapping={0:"https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_rotate_left.mp4",1:"https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_rotate_right.mp4",2:"https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_back.mp4",3:"https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_front.mp4",4:"https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_main.mp4"};class b extends r{}b.Title="Pentru începerea identificării avem nevoie de acordurile tale:",b.Button="Încep identificarea",b.Terms="Am luat la cunoștință și sunt de acord cu Termenii și condițiile generale de utilizare",b.Agreement="Îmi exprim acordul pentru prelucrarea datelor cu caracter personal";class h extends r{}h.ButtonYes="Sunt de acord",h.ButtonNo="Nu sunt de acord";class g{constructor(){this.uriEnv="/",this.uriEnv="QA"==S.environment?"/dev_":"/",this.OtpSend=this.uriEnv+"validation/otp/send",this.OtpCheck=this.uriEnv+"validation/otp/check",this.IdentityInsert=this.uriEnv+"validation/identity/insert",this.UploadCapture=this.uriEnv+"validation/upload/capture",this.GetAgreement=this.uriEnv+"validation/agreement/content",this.GenerateAgreement=this.uriEnv+"validation/agreement/generate",this.SendLink=this.uriEnv+"validation/otp/sendlink",this.GetStatus=this.uriEnv+"validation/identity/status",this.AddLog=this.uriEnv+"validation/logs/add",this.AddStep=this.uriEnv+"validation/logs/step",this.AbortRequest=this.uriEnv+"validation/identity/abort"}}class w extends r{}w.InfoTop="Pentru a continua scanați codul de mai jos cu un smartphone.",w.InfoBottom="Sau introduceți un număr de telefon pentru a primi link-ul pe smartphone.",w.Validation="Număr de telefon invalid!",w.InfoWaiting="Așteptăm finalizarea procesului pe smartphone.",w.InfoAborted="Procesului de pe smartphone a fost amanat.";class v extends r{}v.Title="Procesul de indetificare nu poate continua.",v.Description="Nu am putut detecta nicio camera. Cel mai probabil nu ai acordat drept de acces acestui site, Te rugam sa dai acces si sa apesi butonul de mai jos dupa aceea.",v.Button="Reincep procesul",v.HowToLink="https://ekyc.blob.core.windows.net/$web/animations/enable_permissions_sm.mp4";const{state:S,onChange:k}=(()=>{const a=((e,t=((e,t)=>e!==t))=>{const a=n(e);let i=new Map(Object.entries(null!=a?a:{}));const s={dispose:[],get:[],set:[],reset:[]},r=()=>{var t;i=new Map(Object.entries(null!==(t=n(e))&&void 0!==t?t:{})),s.reset.forEach((e=>e()))},c=e=>(s.get.forEach((t=>t(e))),i.get(e)),o=(e,a)=>{const n=i.get(e);t(a,n,e)&&(i.set(e,a),s.set.forEach((t=>t(e,a,n))))},d="undefined"==typeof Proxy?{}:new Proxy(a,{get:(e,t)=>c(t),ownKeys:()=>Array.from(i.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>i.has(t),set:(e,t,a)=>(o(t,a),!0)}),l=(e,t)=>(s[e].push(t),()=>{((e,t)=>{const a=e.indexOf(t);a>=0&&(e[a]=e[e.length-1],e.length--)})(s[e],t)});return{state:d,get:c,set:o,on:l,onChange:(t,a)=>{const i=l("set",((e,i)=>{e===t&&a(i)})),s=l("reset",(()=>a(n(e)[t])));return()=>{i(),s()}},use:(...e)=>{const t=e.reduce(((e,t)=>(t.set&&e.push(l("set",t.set)),t.get&&e.push(l("get",t.get)),t.reset&&e.push(l("reset",t.reset)),t.dispose&&e.push(l("dispose",t.dispose)),e)),[]);return()=>t.forEach((e=>e()))},dispose:()=>{s.dispose.forEach((e=>e())),r()},reset:r,forceUpdate:e=>{const t=i.get(e);s.set.forEach((a=>a(e,t,t)))}}})({flowStatus:s.NONE,environment:"PROD",debug:!1,requestId:"",redirectId:"",initialised:!1,token:"",cameraIds:[],cameraId:"",hasIdBack:!1,hasSelfieGesture:!1,hasIdTilt:!1,agreementsValidation:!0,phoneValidation:!0,phoneNumber:"",apiBaseUrl:"https://apiro.id-kyc.com",device:null,recordingRetryCount:0},void 0);return a.use((()=>{if("function"!=typeof e)return{};const a=new Map;return{dispose:()=>a.clear(),get:t=>{const i=e();i&&((e,t,a)=>{const i=e.get(t);i?i.includes(a)||i.push(a):e.set(t,[a])})(a,t,i)},set:e=>{const n=a.get(e);n&&a.set(e,n.filter(t)),i(a)},reset:()=>{a.forEach((e=>e.forEach(t))),i(a)}}})()),a})();k("environment",(e=>{S.debug="QA"==e})),k("flowStatus",(e=>{sessionStorage.setItem(p.FlowStatusKey,s[e])})),k("token",(e=>{sessionStorage.setItem(p.TokenKey,e)})),k("requestId",(e=>{sessionStorage.setItem(p.RequestIdKey,e)})),k("initialised",(e=>{sessionStorage.setItem(p.InitialisedKey,String(e))})),k("hasIdBack",(e=>{sessionStorage.setItem(p.HasIdBackKey,String(e))})),k("agreementsValidation",(e=>{sessionStorage.setItem(p.AgreementValidationKey,String(e))})),k("phoneValidation",(e=>{sessionStorage.setItem(p.PhoneValidationKey,String(e))}));export{g as A,v as C,s as F,r as G,c as H,m as I,o as L,w as M,d as P,p as S,h as a,b,f as c,u as d,l as e,S as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-aacd7024.js";export{s as setNonce}from"./p-aacd7024.js";(()=>{const t=import.meta.url,
|
|
1
|
+
import{p as e,b as t}from"./p-aacd7024.js";export{s as setNonce}from"./p-aacd7024.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((e=>t([["p-7c33dd41",[[1,"loader-dots"]]],["p-927cd530",[[0,"random-actions"]]],["p-094ad8f3",[[1,"identification-component",{token:[1537],order_id:[1537],api_url:[1537],env:[1537],redirect_id:[1537],phone_number:[1537],idSide:[32],errorMessage:[32],errorTitle:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"process-id",{captureStep:[32],showTimeout:[32],showInvalid:[32],flow:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{showError:[32],captureStep:[32],flow:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-info",{agreementsChecked:[32],termsChecked:[32],openAgreements:[32],openTerms:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"camera-error",{title:[32],description:[32],buttonDisabled:[32],demoVideo:[32]}],[0,"end-redirect"],[0,"error-end",{message:[1],errorTitle:[1,"error-title"]}],[0,"landing-validation",{warningText:[32],buttonDisabled:[32]}],[0,"mobile-redirect",{infoTextTop:[32],infoTextBottom:[32],contact:[32],invalidValue:[32],waitingMobile:[32],orderStatus:[32],redirectLink:[32],qrCode:[32],prefilledPhone:[32]}],[0,"sms-code-validation",{title:[32],details:[32],buttonText:[32],phoneNumber:[32],code:[32],prefilledPhone:[32],canSend:[32]}],[0,"id-back-capture",{videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"id-capture",{videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"id-tilt",{videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-capture",{videoStarted:[32],captureTaken:[32],verified:[32],titleMesage:[32],demoEnded:[32],demoVideo:[32],uploadingLink:[32],captureHeight:[32],captureWidth:[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-tilt",{videoStarted:[32],captureTaken:[32],verified:[32],titleMesage:[32],demoEnded:[32],demoVideo:[32],uploadingLink:[32],captureHeight:[32],captureWidth:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{agreementType:[1,"agreement-type"],htmlContent:[32],buttonEnabled:[32]}],[0,"capture-error",{type:[1],buttonEnabled:[32],buttonText:[32]}],[0,"how-to-info",{idSide:[1,"id-side"],topTitle:[32],subTitle:[32],imagePath:[32],buttonText:[32],buttonEnabled:[32]}],[0,"camera-comp",{modelPath:[1,"model-path"],probabilityThreshold:[2,"probability-threshold"],captureMode:[1,"capture-mode"]}]]]],e)));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
2
|
export declare class CaptureError {
|
|
3
|
+
private baseComponent;
|
|
3
4
|
type: string;
|
|
4
5
|
private buttonEnabled;
|
|
5
6
|
private buttonText;
|
|
@@ -8,8 +9,9 @@ export declare class CaptureError {
|
|
|
8
9
|
private descriptionR1;
|
|
9
10
|
private descriptionR2;
|
|
10
11
|
eventCaptureErrorDone: EventEmitter;
|
|
12
|
+
constructor();
|
|
11
13
|
componentWillLoad(): Promise<void>;
|
|
12
14
|
componentDidLoad(): Promise<void>;
|
|
13
|
-
buttonClick(): void
|
|
15
|
+
buttonClick(): Promise<void>;
|
|
14
16
|
render(): any;
|
|
15
17
|
}
|
|
@@ -15,7 +15,6 @@ export declare class SelfieCapture {
|
|
|
15
15
|
apiErrorEvent: EventEmitter<any>;
|
|
16
16
|
private cameras;
|
|
17
17
|
constructor();
|
|
18
|
-
eventChangeTitle(event: any): Promise<void>;
|
|
19
18
|
eventVideoStarted(event: any): void;
|
|
20
19
|
componentWillLoad(): void;
|
|
21
20
|
componentDidLoad(): Promise<void>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
export declare class SelfieTilt {
|
|
3
|
+
private baseComponent;
|
|
4
|
+
component: HTMLElement;
|
|
5
|
+
private videoStarted;
|
|
6
|
+
private captureTaken;
|
|
7
|
+
private verified;
|
|
8
|
+
private titleMesage;
|
|
9
|
+
private demoEnded;
|
|
10
|
+
private demoVideo;
|
|
11
|
+
private uploadingLink;
|
|
12
|
+
private captureHeight;
|
|
13
|
+
private captureWidth;
|
|
14
|
+
eventPhotoCapture: EventEmitter;
|
|
15
|
+
apiErrorEvent: EventEmitter<any>;
|
|
16
|
+
private cameras;
|
|
17
|
+
private mainStream;
|
|
18
|
+
constructor();
|
|
19
|
+
eventChangeTitle(event: any): Promise<void>;
|
|
20
|
+
eventVideoStarted(event: any): void;
|
|
21
|
+
componentWillLoad(): void;
|
|
22
|
+
componentDidLoad(): Promise<void>;
|
|
23
|
+
openCamera(): Promise<void>;
|
|
24
|
+
closeCamera(): void;
|
|
25
|
+
disconnectedCallback(): void;
|
|
26
|
+
takePhoto(): Promise<void>;
|
|
27
|
+
verificationFinished(): void;
|
|
28
|
+
photoIsReady: (photos: any) => void;
|
|
29
|
+
render(): any;
|
|
30
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
2
|
export declare class UserLiveness {
|
|
3
3
|
showError: boolean;
|
|
4
|
-
|
|
5
|
-
private
|
|
4
|
+
private captureStep;
|
|
5
|
+
private flow;
|
|
6
6
|
private baseComponent;
|
|
7
7
|
private recordingResultCount;
|
|
8
8
|
apiErrorEvent: EventEmitter<any>;
|
|
@@ -16,8 +16,8 @@ export declare class UserLiveness {
|
|
|
16
16
|
capturedSelfieRecording(event: any): Promise<void>;
|
|
17
17
|
verificationFinished(_event: any): Promise<void>;
|
|
18
18
|
disconnectedCallback(): Promise<void>;
|
|
19
|
-
uploadPhoto(): Promise<void>;
|
|
20
|
-
uploadRecording(): Promise<
|
|
19
|
+
uploadPhoto(photoFile: File, photoType: string): Promise<void>;
|
|
20
|
+
uploadRecording(uploadRec: File, recType: string): Promise<boolean>;
|
|
21
21
|
private triggerErrorFlow;
|
|
22
22
|
endFlow(): Promise<void>;
|
|
23
23
|
render(): any;
|
|
@@ -34,10 +34,6 @@ export namespace Components {
|
|
|
34
34
|
}
|
|
35
35
|
interface IdCapture {
|
|
36
36
|
}
|
|
37
|
-
interface IdDoubleSide {
|
|
38
|
-
}
|
|
39
|
-
interface IdSingleSide {
|
|
40
|
-
}
|
|
41
37
|
interface IdTilt {
|
|
42
38
|
}
|
|
43
39
|
interface IdentificationComponent {
|
|
@@ -56,8 +52,12 @@ export namespace Components {
|
|
|
56
52
|
}
|
|
57
53
|
interface ProcessId {
|
|
58
54
|
}
|
|
55
|
+
interface RandomActions {
|
|
56
|
+
}
|
|
59
57
|
interface SelfieCapture {
|
|
60
58
|
}
|
|
59
|
+
interface SelfieTilt {
|
|
60
|
+
}
|
|
61
61
|
interface SmsCodeValidation {
|
|
62
62
|
}
|
|
63
63
|
interface UserLiveness {
|
|
@@ -99,14 +99,6 @@ export interface IdCaptureCustomEvent<T> extends CustomEvent<T> {
|
|
|
99
99
|
detail: T;
|
|
100
100
|
target: HTMLIdCaptureElement;
|
|
101
101
|
}
|
|
102
|
-
export interface IdDoubleSideCustomEvent<T> extends CustomEvent<T> {
|
|
103
|
-
detail: T;
|
|
104
|
-
target: HTMLIdDoubleSideElement;
|
|
105
|
-
}
|
|
106
|
-
export interface IdSingleSideCustomEvent<T> extends CustomEvent<T> {
|
|
107
|
-
detail: T;
|
|
108
|
-
target: HTMLIdSingleSideElement;
|
|
109
|
-
}
|
|
110
102
|
export interface IdTiltCustomEvent<T> extends CustomEvent<T> {
|
|
111
103
|
detail: T;
|
|
112
104
|
target: HTMLIdTiltElement;
|
|
@@ -127,6 +119,10 @@ export interface SelfieCaptureCustomEvent<T> extends CustomEvent<T> {
|
|
|
127
119
|
detail: T;
|
|
128
120
|
target: HTMLSelfieCaptureElement;
|
|
129
121
|
}
|
|
122
|
+
export interface SelfieTiltCustomEvent<T> extends CustomEvent<T> {
|
|
123
|
+
detail: T;
|
|
124
|
+
target: HTMLSelfieTiltElement;
|
|
125
|
+
}
|
|
130
126
|
export interface SmsCodeValidationCustomEvent<T> extends CustomEvent<T> {
|
|
131
127
|
detail: T;
|
|
132
128
|
target: HTMLSmsCodeValidationElement;
|
|
@@ -196,18 +192,6 @@ declare global {
|
|
|
196
192
|
prototype: HTMLIdCaptureElement;
|
|
197
193
|
new (): HTMLIdCaptureElement;
|
|
198
194
|
};
|
|
199
|
-
interface HTMLIdDoubleSideElement extends Components.IdDoubleSide, HTMLStencilElement {
|
|
200
|
-
}
|
|
201
|
-
var HTMLIdDoubleSideElement: {
|
|
202
|
-
prototype: HTMLIdDoubleSideElement;
|
|
203
|
-
new (): HTMLIdDoubleSideElement;
|
|
204
|
-
};
|
|
205
|
-
interface HTMLIdSingleSideElement extends Components.IdSingleSide, HTMLStencilElement {
|
|
206
|
-
}
|
|
207
|
-
var HTMLIdSingleSideElement: {
|
|
208
|
-
prototype: HTMLIdSingleSideElement;
|
|
209
|
-
new (): HTMLIdSingleSideElement;
|
|
210
|
-
};
|
|
211
195
|
interface HTMLIdTiltElement extends Components.IdTilt, HTMLStencilElement {
|
|
212
196
|
}
|
|
213
197
|
var HTMLIdTiltElement: {
|
|
@@ -244,12 +228,24 @@ declare global {
|
|
|
244
228
|
prototype: HTMLProcessIdElement;
|
|
245
229
|
new (): HTMLProcessIdElement;
|
|
246
230
|
};
|
|
231
|
+
interface HTMLRandomActionsElement extends Components.RandomActions, HTMLStencilElement {
|
|
232
|
+
}
|
|
233
|
+
var HTMLRandomActionsElement: {
|
|
234
|
+
prototype: HTMLRandomActionsElement;
|
|
235
|
+
new (): HTMLRandomActionsElement;
|
|
236
|
+
};
|
|
247
237
|
interface HTMLSelfieCaptureElement extends Components.SelfieCapture, HTMLStencilElement {
|
|
248
238
|
}
|
|
249
239
|
var HTMLSelfieCaptureElement: {
|
|
250
240
|
prototype: HTMLSelfieCaptureElement;
|
|
251
241
|
new (): HTMLSelfieCaptureElement;
|
|
252
242
|
};
|
|
243
|
+
interface HTMLSelfieTiltElement extends Components.SelfieTilt, HTMLStencilElement {
|
|
244
|
+
}
|
|
245
|
+
var HTMLSelfieTiltElement: {
|
|
246
|
+
prototype: HTMLSelfieTiltElement;
|
|
247
|
+
new (): HTMLSelfieTiltElement;
|
|
248
|
+
};
|
|
253
249
|
interface HTMLSmsCodeValidationElement extends Components.SmsCodeValidation, HTMLStencilElement {
|
|
254
250
|
}
|
|
255
251
|
var HTMLSmsCodeValidationElement: {
|
|
@@ -273,15 +269,15 @@ declare global {
|
|
|
273
269
|
"how-to-info": HTMLHowToInfoElement;
|
|
274
270
|
"id-back-capture": HTMLIdBackCaptureElement;
|
|
275
271
|
"id-capture": HTMLIdCaptureElement;
|
|
276
|
-
"id-double-side": HTMLIdDoubleSideElement;
|
|
277
|
-
"id-single-side": HTMLIdSingleSideElement;
|
|
278
272
|
"id-tilt": HTMLIdTiltElement;
|
|
279
273
|
"identification-component": HTMLIdentificationComponentElement;
|
|
280
274
|
"landing-validation": HTMLLandingValidationElement;
|
|
281
275
|
"loader-dots": HTMLLoaderDotsElement;
|
|
282
276
|
"mobile-redirect": HTMLMobileRedirectElement;
|
|
283
277
|
"process-id": HTMLProcessIdElement;
|
|
278
|
+
"random-actions": HTMLRandomActionsElement;
|
|
284
279
|
"selfie-capture": HTMLSelfieCaptureElement;
|
|
280
|
+
"selfie-tilt": HTMLSelfieTiltElement;
|
|
285
281
|
"sms-code-validation": HTMLSmsCodeValidationElement;
|
|
286
282
|
"user-liveness": HTMLUserLivenessElement;
|
|
287
283
|
}
|
|
@@ -336,15 +332,9 @@ declare namespace LocalJSX {
|
|
|
336
332
|
"onApiError"?: (event: IdCaptureCustomEvent<any>) => void;
|
|
337
333
|
"onPhotoIdCapture"?: (event: IdCaptureCustomEvent<any>) => void;
|
|
338
334
|
}
|
|
339
|
-
interface IdDoubleSide {
|
|
340
|
-
"onApiError"?: (event: IdDoubleSideCustomEvent<any>) => void;
|
|
341
|
-
}
|
|
342
|
-
interface IdSingleSide {
|
|
343
|
-
"onApiError"?: (event: IdSingleSideCustomEvent<any>) => void;
|
|
344
|
-
}
|
|
345
335
|
interface IdTilt {
|
|
346
336
|
"onApiError"?: (event: IdTiltCustomEvent<any>) => void;
|
|
347
|
-
"
|
|
337
|
+
"onPhotoTiltCapture"?: (event: IdTiltCustomEvent<any>) => void;
|
|
348
338
|
}
|
|
349
339
|
interface IdentificationComponent {
|
|
350
340
|
"api_url"?: string;
|
|
@@ -365,10 +355,16 @@ declare namespace LocalJSX {
|
|
|
365
355
|
interface ProcessId {
|
|
366
356
|
"onApiError"?: (event: ProcessIdCustomEvent<any>) => void;
|
|
367
357
|
}
|
|
358
|
+
interface RandomActions {
|
|
359
|
+
}
|
|
368
360
|
interface SelfieCapture {
|
|
369
361
|
"onApiError"?: (event: SelfieCaptureCustomEvent<any>) => void;
|
|
370
362
|
"onPhotoSelfieCapture"?: (event: SelfieCaptureCustomEvent<any>) => void;
|
|
371
363
|
}
|
|
364
|
+
interface SelfieTilt {
|
|
365
|
+
"onApiError"?: (event: SelfieTiltCustomEvent<any>) => void;
|
|
366
|
+
"onPhotoSelfieTiltCapture"?: (event: SelfieTiltCustomEvent<any>) => void;
|
|
367
|
+
}
|
|
372
368
|
interface SmsCodeValidation {
|
|
373
369
|
"onApiError"?: (event: SmsCodeValidationCustomEvent<any>) => void;
|
|
374
370
|
}
|
|
@@ -386,15 +382,15 @@ declare namespace LocalJSX {
|
|
|
386
382
|
"how-to-info": HowToInfo;
|
|
387
383
|
"id-back-capture": IdBackCapture;
|
|
388
384
|
"id-capture": IdCapture;
|
|
389
|
-
"id-double-side": IdDoubleSide;
|
|
390
|
-
"id-single-side": IdSingleSide;
|
|
391
385
|
"id-tilt": IdTilt;
|
|
392
386
|
"identification-component": IdentificationComponent;
|
|
393
387
|
"landing-validation": LandingValidation;
|
|
394
388
|
"loader-dots": LoaderDots;
|
|
395
389
|
"mobile-redirect": MobileRedirect;
|
|
396
390
|
"process-id": ProcessId;
|
|
391
|
+
"random-actions": RandomActions;
|
|
397
392
|
"selfie-capture": SelfieCapture;
|
|
393
|
+
"selfie-tilt": SelfieTilt;
|
|
398
394
|
"sms-code-validation": SmsCodeValidation;
|
|
399
395
|
"user-liveness": UserLiveness;
|
|
400
396
|
}
|
|
@@ -413,15 +409,15 @@ declare module "@stencil/core" {
|
|
|
413
409
|
"how-to-info": LocalJSX.HowToInfo & JSXBase.HTMLAttributes<HTMLHowToInfoElement>;
|
|
414
410
|
"id-back-capture": LocalJSX.IdBackCapture & JSXBase.HTMLAttributes<HTMLIdBackCaptureElement>;
|
|
415
411
|
"id-capture": LocalJSX.IdCapture & JSXBase.HTMLAttributes<HTMLIdCaptureElement>;
|
|
416
|
-
"id-double-side": LocalJSX.IdDoubleSide & JSXBase.HTMLAttributes<HTMLIdDoubleSideElement>;
|
|
417
|
-
"id-single-side": LocalJSX.IdSingleSide & JSXBase.HTMLAttributes<HTMLIdSingleSideElement>;
|
|
418
412
|
"id-tilt": LocalJSX.IdTilt & JSXBase.HTMLAttributes<HTMLIdTiltElement>;
|
|
419
413
|
"identification-component": LocalJSX.IdentificationComponent & JSXBase.HTMLAttributes<HTMLIdentificationComponentElement>;
|
|
420
414
|
"landing-validation": LocalJSX.LandingValidation & JSXBase.HTMLAttributes<HTMLLandingValidationElement>;
|
|
421
415
|
"loader-dots": LocalJSX.LoaderDots & JSXBase.HTMLAttributes<HTMLLoaderDotsElement>;
|
|
422
416
|
"mobile-redirect": LocalJSX.MobileRedirect & JSXBase.HTMLAttributes<HTMLMobileRedirectElement>;
|
|
423
417
|
"process-id": LocalJSX.ProcessId & JSXBase.HTMLAttributes<HTMLProcessIdElement>;
|
|
418
|
+
"random-actions": LocalJSX.RandomActions & JSXBase.HTMLAttributes<HTMLRandomActionsElement>;
|
|
424
419
|
"selfie-capture": LocalJSX.SelfieCapture & JSXBase.HTMLAttributes<HTMLSelfieCaptureElement>;
|
|
420
|
+
"selfie-tilt": LocalJSX.SelfieTilt & JSXBase.HTMLAttributes<HTMLSelfieTiltElement>;
|
|
425
421
|
"sms-code-validation": LocalJSX.SmsCodeValidation & JSXBase.HTMLAttributes<HTMLSmsCodeValidationElement>;
|
|
426
422
|
"user-liveness": LocalJSX.UserLiveness & JSXBase.HTMLAttributes<HTMLUserLivenessElement>;
|
|
427
423
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Stream } from '../../helpers/Stream';
|
|
2
|
+
import { VerificationMode } from '../../models/IVerificationMode';
|
|
2
3
|
export declare class FaceML5Detector {
|
|
3
4
|
static instance: FaceML5Detector;
|
|
4
5
|
private MAX_DETECTION;
|
|
@@ -17,7 +18,7 @@ export declare class FaceML5Detector {
|
|
|
17
18
|
private requestedFacePose;
|
|
18
19
|
private presentedFacePose;
|
|
19
20
|
private validFacePose;
|
|
20
|
-
private
|
|
21
|
+
private checkPose;
|
|
21
22
|
private readonly MAX_NUMBER_FACES;
|
|
22
23
|
private readonly MIN_FACE_SCORE;
|
|
23
24
|
private readonly MIN_OCCUPIED_SPACE_FOR_DESKTOP;
|
|
@@ -27,7 +28,7 @@ export declare class FaceML5Detector {
|
|
|
27
28
|
static getInstance(stream: Stream, isMobile: boolean): FaceML5Detector;
|
|
28
29
|
constructor(stream: Stream, isMobile: boolean);
|
|
29
30
|
updateHtmlElements(videoElement: HTMLVideoElement, canvasElement: HTMLCanvasElement, _component: HTMLElement): void;
|
|
30
|
-
initDetector(): void;
|
|
31
|
+
initDetector(mode: VerificationMode): void;
|
|
31
32
|
private detectFaces;
|
|
32
33
|
private gotResults;
|
|
33
34
|
private drawFrame;
|
|
@@ -16,12 +16,13 @@ export declare enum CaptureUploadTypes {
|
|
|
16
16
|
IdBack = "IdBack",
|
|
17
17
|
IdFrontVideo = "IdFrontVideo",
|
|
18
18
|
IdBackVideo = "IdBackVideo",
|
|
19
|
+
Selfie = "Selfie",
|
|
19
20
|
SelfieVideo = "SelfieVideo",
|
|
20
21
|
SelfieGestureVideo = "SelfieGestureVideo",
|
|
21
22
|
TiltVideo = "TiltVideo",
|
|
22
23
|
None = "None"
|
|
23
24
|
}
|
|
24
|
-
export declare enum
|
|
25
|
+
export declare enum IdCaptureFlowStatus {
|
|
25
26
|
HowToFront = 0,
|
|
26
27
|
IdFront = 1,
|
|
27
28
|
HowToBack = 2,
|
|
@@ -29,3 +30,9 @@ export declare enum CaptureFlowStatus {
|
|
|
29
30
|
Tilt = 4,
|
|
30
31
|
End = 5
|
|
31
32
|
}
|
|
33
|
+
export declare enum SelfieFlowStatus {
|
|
34
|
+
HowToSelfie = 0,
|
|
35
|
+
Selfie = 1,
|
|
36
|
+
Gesture = 2,
|
|
37
|
+
End = 3
|
|
38
|
+
}
|
|
@@ -7,20 +7,17 @@ export declare enum FlowSteps {
|
|
|
7
7
|
OtpCheck,
|
|
8
8
|
CiFront,
|
|
9
9
|
CiFrontHowTo,
|
|
10
|
-
CiFrontHoldAnimation,
|
|
11
|
-
CiFrontTiltAnimation,
|
|
12
10
|
CiFrontCapture,
|
|
13
11
|
CiBack,
|
|
14
12
|
CiBackHowTo,
|
|
15
|
-
CiBackHoldAnimation,
|
|
16
|
-
CiBackTiltAnimation,
|
|
17
13
|
CiBackCapture,
|
|
18
14
|
CiTilt,
|
|
15
|
+
CiError,
|
|
19
16
|
SelfieHowTo,
|
|
20
|
-
|
|
21
|
-
SelfieTiltAnimation,
|
|
17
|
+
SelfieTilt,
|
|
22
18
|
SelfieCapture,
|
|
23
19
|
Selfie,
|
|
20
|
+
SelfieError,
|
|
24
21
|
End,
|
|
25
22
|
CameraError
|
|
26
23
|
}
|