@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.
Files changed (54) hide show
  1. package/dist/cjs/{Stream-097bd1e9.js → agreement-check_19.cjs.entry.js} +5238 -529
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/qbs-ect-cmp.cjs.js +1 -1
  4. package/dist/cjs/random-actions.cjs.entry.js +22 -0
  5. package/dist/cjs/store-ab631a7a.js +415 -0
  6. package/dist/collection/collection-manifest.json +2 -2
  7. package/dist/collection/components/common/capture-error/capture-error.js +6 -1
  8. package/dist/collection/components/common/id-back-capture/id-back-capture.js +2 -4
  9. package/dist/collection/components/common/id-capture/id-capture.js +2 -4
  10. package/dist/collection/components/common/id-tilt/id-tilt.js +3 -5
  11. package/dist/collection/components/common/random-actions/random-actions.js +20 -0
  12. package/dist/collection/components/common/selfie-capture/selfie-capture.js +3 -27
  13. package/dist/collection/components/common/selfie-tilt/selfie-tilt.css +7 -0
  14. package/dist/collection/components/common/selfie-tilt/selfie-tilt.js +212 -0
  15. package/dist/collection/components/flow/process-id/process-id.js +31 -28
  16. package/dist/collection/components/flow/user-liveness/user-liveness.js +87 -40
  17. package/dist/collection/helpers/Stream.js +1 -1
  18. package/dist/collection/libs/FaceML5Detector/FaceML5Detector.js +18 -15
  19. package/dist/collection/models/CaptureFlow.js +17 -9
  20. package/dist/collection/models/FlowSteps.js +3 -6
  21. package/dist/esm/{Stream-d1fb2210.js → agreement-check_19.entry.js} +5131 -420
  22. package/dist/esm/loader.js +1 -1
  23. package/dist/esm/qbs-ect-cmp.js +1 -1
  24. package/dist/esm/random-actions.entry.js +18 -0
  25. package/dist/esm/store-b5192087.js +399 -0
  26. package/dist/qbs-ect-cmp/{p-73a2e58b.js → p-094ad8f3.entry.js} +26 -26
  27. package/dist/qbs-ect-cmp/p-927cd530.entry.js +1 -0
  28. package/dist/qbs-ect-cmp/p-a6506178.js +1 -0
  29. package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
  30. package/dist/types/components/common/capture-error/capture-error.d.ts +3 -1
  31. package/dist/types/components/common/random-actions/random-actions.d.ts +7 -0
  32. package/dist/types/components/common/selfie-capture/selfie-capture.d.ts +0 -1
  33. package/dist/types/components/common/selfie-tilt/selfie-tilt.d.ts +30 -0
  34. package/dist/types/components/flow/user-liveness/user-liveness.d.ts +4 -4
  35. package/dist/types/components.d.ts +33 -37
  36. package/dist/types/libs/FaceML5Detector/FaceML5Detector.d.ts +3 -2
  37. package/dist/types/models/CaptureFlow.d.ts +8 -1
  38. package/dist/types/models/FlowSteps.d.ts +3 -6
  39. package/package.json +1 -1
  40. package/dist/cjs/agreement-check_18.cjs.entry.js +0 -4971
  41. package/dist/cjs/id-double-side.cjs.entry.js +0 -208
  42. package/dist/cjs/id-single-side.cjs.entry.js +0 -147
  43. package/dist/collection/components/flow/id-double-side/id-double-side.js +0 -285
  44. package/dist/collection/components/flow/id-single-side/id-single-side.css +0 -0
  45. package/dist/collection/components/flow/id-single-side/id-single-side.js +0 -216
  46. package/dist/esm/agreement-check_18.entry.js +0 -4950
  47. package/dist/esm/id-double-side.entry.js +0 -204
  48. package/dist/esm/id-single-side.entry.js +0 -143
  49. package/dist/qbs-ect-cmp/p-04e51eac.entry.js +0 -1
  50. package/dist/qbs-ect-cmp/p-deea462b.entry.js +0 -1
  51. package/dist/qbs-ect-cmp/p-f84883f8.entry.js +0 -1
  52. package/dist/types/components/flow/id-double-side/id-double-side.d.ts +0 -29
  53. package/dist/types/components/flow/id-single-side/id-single-side.d.ts +0 -24
  54. /package/dist/collection/components/{flow/id-double-side/id-double-side.css → common/random-actions/random-actions.css} +0 -0
@@ -1 +0,0 @@
1
- import{r as i,c as t,h as s}from"./p-aacd7024.js";import{B as h,F as a,l as e,s as o,c as n,S as r}from"./p-73a2e58b.js";const l=class{constructor(s){i(this,s),this.apiErrorEvent=t(this,"apiError",7),this.recordingResultCount=0,this.showTimeout=void 0,this.showHowTo=void 0,this.idFlow={verificationFinished:!1,photoDone:!1,recordingDone:!1,photoFile:null,recordingFile:null},this.baseComponent=new h(a.CiFront),this.baseComponent.setEventEmitter(this.apiErrorEvent),this.captureRetryCount=0,this.showHowTo=!0}captureErrorDone(){this.idFlow.photoFile=null,this.idFlow.recordingFile=null,this.showTimeout=!1}howToDone(){this.showHowTo=!1}timeElapsed(){this.showTimeout=!0}async captureIdImage(i){let t=i.detail;if(0==t.size)return await this.baseComponent.apiCall.AddLog({message:"Empty id photo",blobData:t},e()),void(this.showTimeout=!0);try{this.idFlow.photoFile=new File([t],"idImage.png",{type:"image/png"}),await this.uploadPhoto()}catch(i){this.apiErrorEvent.emit(i)}}async verificationFinished(i){this.idFlow.verificationFinished=!0,await this.endFlow()}async capturedIdRecording(i){let t=i.detail;if(0==t.size&&0==this.recordingResultCount)return void this.recordingResultCount++;if(0==t.size)return await this.baseComponent.apiCall.AddLog({message:"Empty ID recording",blobData:t},e()),void(this.showTimeout=!0);let s=t.type==r.mp4MimeType.type?r.mp4MimeType:r.webmMimeType;if(o.flowStatus==n.ID)try{this.idFlow.recordingFile=new File([t],"idVideo."+s.extension,{type:s.type}),await this.uploadRecording()}catch(i){this.apiErrorEvent.emit(i)}}async componentDidLoad(){await this.baseComponent.initialize()}async uploadPhoto(){null==this.idFlow.photoFile||this.idFlow.photoDone||(this.idFlow.photoDone=await this.baseComponent.apiCall.UploadFileForRequestB64(o.requestId,"IdFront",this.idFlow.photoFile),this.idFlow.photoDone?await this.endFlow():(this.idFlow.photoFile=null,this.idFlow.recordingFile=null,this.switchCamera(),this.showTimeout=!0))}async uploadRecording(){null==this.idFlow.recordingFile||this.idFlow.recordingDone||(this.idFlow.recordingDone=await this.baseComponent.apiCall.UploadFileForRequestB64(o.requestId,"IdFrontVideo",this.idFlow.recordingFile),this.idFlow.recordingDone?await this.endFlow():(this.idFlow.photoFile=null,this.idFlow.recordingFile=null,this.showTimeout=!0))}async endFlow(){this.idFlow.photoDone&&this.idFlow.recordingDone&&this.idFlow.verificationFinished&&(o.flowStatus=n.LIVENESS)}async disconnectedCallback(){await this.baseComponent.finalize()}switchCamera(){if(1==this.captureRetryCount){let i=o.cameraIds.indexOf(o.cameraId);o.cameraId=i===o.cameraIds.length-1?o.cameraIds[0]:o.cameraIds[i+1],this.captureRetryCount=0}else this.captureRetryCount++}render(){let i=s("capture-error",{type:"ID"}),t=s("id-capture",{id:"idFront"}),h=s("how-to-info",{idSide:"front"});return this.showHowTo?h:this.showTimeout?i:t}};l.style="";export{l as id_single_side}
@@ -1,29 +0,0 @@
1
- import { EventEmitter } from '../../../stencil-public-runtime';
2
- export declare class IdDoubleSide {
3
- private captureRetryCount;
4
- private baseComponent;
5
- private recordingResultCount;
6
- private showTimeout;
7
- private showInvalid;
8
- private showHowTo;
9
- private front;
10
- private flow;
11
- apiErrorEvent: EventEmitter<any>;
12
- constructor();
13
- componentWillLoad(): void;
14
- howToDone(): void;
15
- timeElapsed(): void;
16
- captureErrorDone(): void;
17
- captureIdImage(event: any): Promise<void>;
18
- captureIdBackImage(event: any): Promise<void>;
19
- capturedIdRecording(event: any): Promise<void>;
20
- verificationFinished(_event: any): Promise<void>;
21
- componentDidLoad(): Promise<void>;
22
- uploadPhoto(): Promise<void>;
23
- uploadRecording(): Promise<void>;
24
- private triggerErrorFlow;
25
- endFlow(): Promise<void>;
26
- disconnectedCallback(): Promise<void>;
27
- switchCamera(): void;
28
- render(): any;
29
- }
@@ -1,24 +0,0 @@
1
- import { EventEmitter } from '../../../stencil-public-runtime';
2
- export declare class IdSingleSide {
3
- private captureRetryCount;
4
- private baseComponent;
5
- private recordingResultCount;
6
- private showTimeout;
7
- private showHowTo;
8
- private idFlow;
9
- apiErrorEvent: EventEmitter<any>;
10
- constructor();
11
- captureErrorDone(): void;
12
- howToDone(): void;
13
- timeElapsed(): void;
14
- captureIdImage(event: any): Promise<void>;
15
- verificationFinished(_event: any): Promise<void>;
16
- capturedIdRecording(event: any): Promise<void>;
17
- componentDidLoad(): Promise<void>;
18
- uploadPhoto(): Promise<void>;
19
- uploadRecording(): Promise<void>;
20
- endFlow(): Promise<void>;
21
- disconnectedCallback(): Promise<void>;
22
- switchCamera(): void;
23
- render(): any;
24
- }