@ekyc_qoobiss/qbs-ect-cmp 3.6.39 → 3.6.41

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 (67) hide show
  1. package/dist/cjs/{TranslationUtils-bfe4477a.js → TranslationUtils-dd73945b.js} +31 -43
  2. package/dist/cjs/{agreement-check_19.cjs.entry.js → agreement-check_17.cjs.entry.js} +245 -882
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/qbs-ect-cmp.cjs.js +1 -1
  5. package/dist/cjs/random-actions.cjs.entry.js +1 -1
  6. package/dist/collection/collection-manifest.json +1 -3
  7. package/dist/collection/components/common/how-to-info/how-to-info.js +11 -34
  8. package/dist/collection/components/common/id-capture/id-capture.js +39 -19
  9. package/dist/collection/components/common/selfie-capture/selfie-capture.js +26 -27
  10. package/dist/collection/components/controls/camera/camera.js +1 -62
  11. package/dist/collection/components/flow/agreement-info/agreement-info.js +4 -5
  12. package/dist/collection/components/flow/landing-validation/landing-validation.js +11 -19
  13. package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +1 -1
  14. package/dist/collection/components/flow/process-id/process-id.js +47 -161
  15. package/dist/collection/components/flow/sms-code-validation/sms-code-validation.js +7 -56
  16. package/dist/collection/components/flow/sms-send/sms-send.css +0 -0
  17. package/dist/collection/components/flow/sms-send/sms-send.js +91 -0
  18. package/dist/collection/components/flow/user-liveness/user-liveness.js +45 -118
  19. package/dist/collection/components/identification-component/identification-component.js +14 -41
  20. package/dist/collection/helpers/ApiCall.js +14 -15
  21. package/dist/collection/helpers/ML5.js +1 -1
  22. package/dist/collection/helpers/Stream.js +1 -47
  23. package/dist/collection/helpers/store.js +0 -18
  24. package/dist/collection/helpers/textValues.js +2 -0
  25. package/dist/collection/models/CaptureFlow.js +0 -16
  26. package/dist/collection/models/FlowStatus.js +16 -10
  27. package/dist/esm/{TranslationUtils-7e68bc94.js → TranslationUtils-741a728a.js} +31 -43
  28. package/dist/esm/{agreement-check_19.entry.js → agreement-check_17.entry.js} +245 -880
  29. package/dist/esm/loader.js +1 -1
  30. package/dist/esm/qbs-ect-cmp.js +1 -1
  31. package/dist/esm/random-actions.entry.js +1 -1
  32. package/dist/qbs-ect-cmp/p-87c689d6.js +1 -0
  33. package/dist/qbs-ect-cmp/{p-d1d9feaf.entry.js → p-a130edd5.entry.js} +1 -1
  34. package/dist/qbs-ect-cmp/{p-4e3b735b.entry.js → p-b3fa0a37.entry.js} +2 -2
  35. package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
  36. package/dist/types/components/common/how-to-info/how-to-info.d.ts +0 -1
  37. package/dist/types/components/common/id-capture/id-capture.d.ts +5 -1
  38. package/dist/types/components/common/selfie-capture/selfie-capture.d.ts +3 -2
  39. package/dist/types/components/controls/camera/camera.d.ts +0 -7
  40. package/dist/types/components/flow/process-id/process-id.d.ts +0 -3
  41. package/dist/types/components/flow/sms-code-validation/sms-code-validation.d.ts +0 -3
  42. package/dist/types/components/flow/sms-send/sms-send.d.ts +17 -0
  43. package/dist/types/components/flow/user-liveness/user-liveness.d.ts +2 -6
  44. package/dist/types/components/identification-component/identification-component.d.ts +1 -2
  45. package/dist/types/components.d.ts +18 -65
  46. package/dist/types/helpers/ApiCall.d.ts +9 -3
  47. package/dist/types/helpers/Stream.d.ts +0 -11
  48. package/dist/types/helpers/textValues.d.ts +2 -0
  49. package/dist/types/models/CaptureFlow.d.ts +2 -19
  50. package/dist/types/models/FlowStatus.d.ts +18 -10
  51. package/dist/types/models/IAbortResult.d.ts +1 -0
  52. package/dist/types/models/IAddRequest.d.ts +1 -1
  53. package/dist/types/models/IEctStore.d.ts +0 -6
  54. package/dist/types/models/IOtpCheck.d.ts +1 -0
  55. package/dist/types/models/IOtpSend.d.ts +1 -0
  56. package/dist/types/models/IUploadFile.d.ts +1 -0
  57. package/package.json +1 -1
  58. package/dist/collection/components/common/id-back-capture/id-back-capture.css +0 -35
  59. package/dist/collection/components/common/id-back-capture/id-back-capture.js +0 -219
  60. package/dist/collection/components/common/id-tilt/id-tilt.css +0 -35
  61. package/dist/collection/components/common/id-tilt/id-tilt.js +0 -220
  62. package/dist/collection/components/common/selfie-tilt/selfie-tilt.css +0 -7
  63. package/dist/collection/components/common/selfie-tilt/selfie-tilt.js +0 -221
  64. package/dist/qbs-ect-cmp/p-d35256e9.js +0 -1
  65. package/dist/types/components/common/id-back-capture/id-back-capture.d.ts +0 -28
  66. package/dist/types/components/common/id-tilt/id-tilt.d.ts +0 -28
  67. package/dist/types/components/common/selfie-tilt/selfie-tilt.d.ts +0 -31
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-8942656c.js";export{s as setNonce}from"./p-8942656c.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((e=>t([["p-054dc5b3",[[1,"loader-dots"]]],["p-d1d9feaf",[[0,"random-actions"]]],["p-4e3b735b",[[1,"identification-component",{token:[1537],order_id:[1537],api_url:[1537],env:[1537],redirect_id:[1537],phone_number:[1537],lang_iso:[1537],idSide:[32],errorMessage:[32],errorTitle:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"],[9,"scroll","handleScroll"]]],[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,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{agreementType:[1,"agreement-type"],htmlContent:[32],buttonEnabled:[32],scrollClass:[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
+ import{p as e,b as t}from"./p-8942656c.js";export{s as setNonce}from"./p-8942656c.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((e=>t([["p-054dc5b3",[[1,"loader-dots"]]],["p-a130edd5",[[0,"random-actions"]]],["p-b3fa0a37",[[1,"identification-component",{token:[1537],order_id:[1537],api_url:[1537],env:[1537],redirect_id:[1537],phone_number:[1537],lang_iso:[1537],errorMessage:[32],errorTitle:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"],[9,"scroll","handleScroll"]]],[0,"process-id",{showTimeout:[32],showInvalid:[32],flow:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{showError:[32],flow:[32],howToDone:[32]},[[0,"howToInfoDone","howToDoneEvent"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"]]],[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],code:[32],canSend:[32]}],[0,"sms-send",{buttonText:[32],phoneNumber:[32],prefilledPhone:[32],canSend:[32]}],[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,"selfie-capture",{videoStarted:[32],captureTaken:[32],verified:[32],titleMesage:[32],demoEnded:[32],demoVideo:[32],captureHeight:[32],captureWidth:[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{agreementType:[1,"agreement-type"],htmlContent:[32],buttonEnabled:[32],scrollClass:[32]}],[0,"capture-error",{type:[1],buttonEnabled:[32],buttonText:[32]}],[0,"how-to-info",{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)));
@@ -2,7 +2,6 @@ import { EventEmitter } from '../../../stencil-public-runtime';
2
2
  export declare class HowToInfo {
3
3
  private baseComponent;
4
4
  private translations;
5
- idSide: string;
6
5
  topTitle: string;
7
6
  subTitle: string;
8
7
  imagePath: string;
@@ -2,6 +2,9 @@ import { EventEmitter } from '../../../stencil-public-runtime';
2
2
  export declare class IdCapture {
3
3
  private baseComponent;
4
4
  private translations;
5
+ private flowStep;
6
+ private pose;
7
+ private verificationMode;
5
8
  component: HTMLElement;
6
9
  private videoStarted;
7
10
  private cameraSize;
@@ -17,12 +20,13 @@ export declare class IdCapture {
17
20
  constructor();
18
21
  eventVideoStarted(event: any): void;
19
22
  componentWillLoad(): Promise<void>;
23
+ initVariables(): void;
20
24
  componentDidLoad(): Promise<void>;
21
25
  openCamera(): Promise<void>;
22
26
  closeCamera(): void;
23
27
  disconnectedCallback(): void;
24
28
  takePhoto(): Promise<void>;
25
29
  verificationFinished(): Promise<void>;
26
- photoIsReady: (photos: any) => void;
30
+ photoIsReady: (photos: Blob) => void;
27
31
  render(): any;
28
32
  }
@@ -9,13 +9,15 @@ export declare class SelfieCapture {
9
9
  private titleMesage;
10
10
  private demoEnded;
11
11
  private demoVideo;
12
- private uploadingLink;
13
12
  private captureHeight;
14
13
  private captureWidth;
15
14
  eventPhotoCapture: EventEmitter;
16
15
  apiErrorEvent: EventEmitter<any>;
17
16
  eventTimeElapsed: EventEmitter;
18
17
  private cameras;
18
+ private mainStream;
19
+ private currentStep;
20
+ private verificationMode;
19
21
  constructor();
20
22
  eventVideoStarted(event: any): void;
21
23
  componentWillLoad(): Promise<void>;
@@ -25,6 +27,5 @@ export declare class SelfieCapture {
25
27
  disconnectedCallback(): void;
26
28
  takePhoto(): Promise<void>;
27
29
  verificationFinished(): Promise<void>;
28
- photoIsReady: (photos: any) => void;
29
30
  render(): any;
30
31
  }
@@ -1,6 +1,4 @@
1
1
  import { EventEmitter } from '../../../stencil-public-runtime';
2
- import { IDPose } from '../../../libs/IDML5Detector/IDPose';
3
- import { FacePose } from '../../../libs/FaceML5Detector/FacePose';
4
2
  export declare class Camera {
5
3
  component: HTMLElement;
6
4
  modelPath: string;
@@ -9,22 +7,17 @@ export declare class Camera {
9
7
  private cameraVideo;
10
8
  private cameraCanvas;
11
9
  eventVideoStarted: EventEmitter;
12
- eventCloseCamera: EventEmitter;
13
- errorCameraEvent: any;
14
10
  eventTakePhoto: EventEmitter;
15
11
  eventRecordingSelfieReady: EventEmitter;
16
12
  eventRecordingIdReady: EventEmitter;
17
13
  eventTimeElapsed: EventEmitter;
18
- eventChangeTitle: EventEmitter;
19
14
  verificationFinished: EventEmitter;
20
15
  componentDidLoad(): void;
21
16
  render(): any;
22
- callbackErrors: (error: Error, isError: boolean) => void;
23
17
  callbackAutoCapturing: () => void;
24
18
  callbackSelfieRecordingReady: (recording: Blob) => void;
25
19
  callbackIdRecordingReady: (recording: Blob) => void;
26
20
  callbackTimeElapsed: () => void;
27
- callbackChangeTitle: (message: FacePose | IDPose) => void;
28
21
  callbackVideoStarted: () => void;
29
22
  callbackVerificationFinished: () => void;
30
23
  startStream(): void;
@@ -3,7 +3,6 @@ export declare class ProcessId {
3
3
  private captureRetryCount;
4
4
  private baseComponent;
5
5
  private recordingResultCount;
6
- private captureStep;
7
6
  private showTimeout;
8
7
  private showInvalid;
9
8
  private flow;
@@ -15,13 +14,11 @@ export declare class ProcessId {
15
14
  timeElapsed(): void;
16
15
  captureErrorDone(): void;
17
16
  captureIdImage(event: any): Promise<void>;
18
- captureIdBackImage(event: any): Promise<void>;
19
17
  capturedIdRecording(event: any): Promise<void>;
20
18
  componentDidLoad(): Promise<void>;
21
19
  uploadPhotos(uploadType: string, photoFile: File): Promise<boolean>;
22
20
  uploadRecording(uploadType: string, recordingFile: File): Promise<boolean>;
23
21
  private triggerErrorFlow;
24
- endFlow(): Promise<void>;
25
22
  disconnectedCallback(): Promise<void>;
26
23
  switchCamera(): void;
27
24
  render(): any;
@@ -3,9 +3,7 @@ export declare class SmsCodeValidation {
3
3
  private title;
4
4
  private details;
5
5
  private buttonText;
6
- private phoneNumber;
7
6
  private code;
8
- private prefilledPhone;
9
7
  private canSend;
10
8
  private baseComponent;
11
9
  private translations;
@@ -15,7 +13,6 @@ export declare class SmsCodeValidation {
15
13
  disconnectedCallback(): Promise<void>;
16
14
  componentWillRender(): Promise<void>;
17
15
  componentDidLoad(): Promise<void>;
18
- handleChangePhone(ev: any): void;
19
16
  handleChangeCode(ev: any): void;
20
17
  render(): any;
21
18
  }
@@ -0,0 +1,17 @@
1
+ import { EventEmitter } from '../../../stencil-public-runtime';
2
+ export declare class SmsSend {
3
+ private buttonText;
4
+ private phoneNumber;
5
+ private prefilledPhone;
6
+ private canSend;
7
+ private baseComponent;
8
+ private translations;
9
+ apiErrorEvent: EventEmitter<any>;
10
+ constructor();
11
+ private doAction;
12
+ disconnectedCallback(): Promise<void>;
13
+ componentWillRender(): Promise<void>;
14
+ componentDidLoad(): Promise<void>;
15
+ handleChangePhone(ev: any): void;
16
+ render(): any;
17
+ }
@@ -1,8 +1,8 @@
1
1
  import { EventEmitter } from '../../../stencil-public-runtime';
2
2
  export declare class UserLiveness {
3
3
  showError: boolean;
4
- private captureStep;
5
4
  private flow;
5
+ private howToDone;
6
6
  private baseComponent;
7
7
  private recordingResultCount;
8
8
  private recordingRetryCount;
@@ -10,16 +10,12 @@ export declare class UserLiveness {
10
10
  constructor();
11
11
  componentDidLoad(): Promise<void>;
12
12
  componentWillLoad(): void;
13
- howToDone(): void;
13
+ howToDoneEvent(): void;
14
14
  timeElapsed(): void;
15
15
  captureErrorDone(): void;
16
16
  captureSelfieImage(event: any): Promise<void>;
17
17
  capturedSelfieRecording(event: any): Promise<void>;
18
- verificationFinished(_event: any): Promise<void>;
19
18
  disconnectedCallback(): Promise<void>;
20
- uploadPhoto(photoFile: File, photoType: string): Promise<void>;
21
- uploadRecording(uploadRec: File, recType: string): Promise<boolean>;
22
19
  private triggerErrorFlow;
23
- endFlow(): void;
24
20
  render(): any;
25
21
  }
@@ -6,12 +6,12 @@ export declare class IdentificationComponent {
6
6
  redirect_id: string;
7
7
  phone_number: string;
8
8
  lang_iso: string;
9
- private idSide;
10
9
  private errorMessage;
11
10
  private errorTitle;
12
11
  private logInit;
13
12
  private baseComponent;
14
13
  private flowStatusToSet;
14
+ private initialised;
15
15
  onTokenChange(newValue: string, _oldValue: string): Promise<void>;
16
16
  agreementAcceptanceEmitted(data: any): void;
17
17
  apiErrorEmitter(data: any, zone: string): Promise<void>;
@@ -19,7 +19,6 @@ export declare class IdentificationComponent {
19
19
  constructor();
20
20
  componentWillLoad(): Promise<void>;
21
21
  componentDidLoad(): Promise<void>;
22
- componentWillRender(): void;
23
22
  initializeRequest(): Promise<void>;
24
23
  disconnectedCallback(): void;
25
24
  render(): any;
@@ -28,14 +28,9 @@ export namespace Components {
28
28
  "message": string;
29
29
  }
30
30
  interface HowToInfo {
31
- "idSide": string;
32
- }
33
- interface IdBackCapture {
34
31
  }
35
32
  interface IdCapture {
36
33
  }
37
- interface IdTilt {
38
- }
39
34
  interface IdentificationComponent {
40
35
  "api_url": string;
41
36
  "env": string;
@@ -57,10 +52,10 @@ export namespace Components {
57
52
  }
58
53
  interface SelfieCapture {
59
54
  }
60
- interface SelfieTilt {
61
- }
62
55
  interface SmsCodeValidation {
63
56
  }
57
+ interface SmsSend {
58
+ }
64
59
  interface UserLiveness {
65
60
  }
66
61
  }
@@ -92,18 +87,10 @@ export interface HowToInfoCustomEvent<T> extends CustomEvent<T> {
92
87
  detail: T;
93
88
  target: HTMLHowToInfoElement;
94
89
  }
95
- export interface IdBackCaptureCustomEvent<T> extends CustomEvent<T> {
96
- detail: T;
97
- target: HTMLIdBackCaptureElement;
98
- }
99
90
  export interface IdCaptureCustomEvent<T> extends CustomEvent<T> {
100
91
  detail: T;
101
92
  target: HTMLIdCaptureElement;
102
93
  }
103
- export interface IdTiltCustomEvent<T> extends CustomEvent<T> {
104
- detail: T;
105
- target: HTMLIdTiltElement;
106
- }
107
94
  export interface LandingValidationCustomEvent<T> extends CustomEvent<T> {
108
95
  detail: T;
109
96
  target: HTMLLandingValidationElement;
@@ -120,14 +107,14 @@ export interface SelfieCaptureCustomEvent<T> extends CustomEvent<T> {
120
107
  detail: T;
121
108
  target: HTMLSelfieCaptureElement;
122
109
  }
123
- export interface SelfieTiltCustomEvent<T> extends CustomEvent<T> {
124
- detail: T;
125
- target: HTMLSelfieTiltElement;
126
- }
127
110
  export interface SmsCodeValidationCustomEvent<T> extends CustomEvent<T> {
128
111
  detail: T;
129
112
  target: HTMLSmsCodeValidationElement;
130
113
  }
114
+ export interface SmsSendCustomEvent<T> extends CustomEvent<T> {
115
+ detail: T;
116
+ target: HTMLSmsSendElement;
117
+ }
131
118
  export interface UserLivenessCustomEvent<T> extends CustomEvent<T> {
132
119
  detail: T;
133
120
  target: HTMLUserLivenessElement;
@@ -181,24 +168,12 @@ declare global {
181
168
  prototype: HTMLHowToInfoElement;
182
169
  new (): HTMLHowToInfoElement;
183
170
  };
184
- interface HTMLIdBackCaptureElement extends Components.IdBackCapture, HTMLStencilElement {
185
- }
186
- var HTMLIdBackCaptureElement: {
187
- prototype: HTMLIdBackCaptureElement;
188
- new (): HTMLIdBackCaptureElement;
189
- };
190
171
  interface HTMLIdCaptureElement extends Components.IdCapture, HTMLStencilElement {
191
172
  }
192
173
  var HTMLIdCaptureElement: {
193
174
  prototype: HTMLIdCaptureElement;
194
175
  new (): HTMLIdCaptureElement;
195
176
  };
196
- interface HTMLIdTiltElement extends Components.IdTilt, HTMLStencilElement {
197
- }
198
- var HTMLIdTiltElement: {
199
- prototype: HTMLIdTiltElement;
200
- new (): HTMLIdTiltElement;
201
- };
202
177
  interface HTMLIdentificationComponentElement extends Components.IdentificationComponent, HTMLStencilElement {
203
178
  }
204
179
  var HTMLIdentificationComponentElement: {
@@ -241,18 +216,18 @@ declare global {
241
216
  prototype: HTMLSelfieCaptureElement;
242
217
  new (): HTMLSelfieCaptureElement;
243
218
  };
244
- interface HTMLSelfieTiltElement extends Components.SelfieTilt, HTMLStencilElement {
245
- }
246
- var HTMLSelfieTiltElement: {
247
- prototype: HTMLSelfieTiltElement;
248
- new (): HTMLSelfieTiltElement;
249
- };
250
219
  interface HTMLSmsCodeValidationElement extends Components.SmsCodeValidation, HTMLStencilElement {
251
220
  }
252
221
  var HTMLSmsCodeValidationElement: {
253
222
  prototype: HTMLSmsCodeValidationElement;
254
223
  new (): HTMLSmsCodeValidationElement;
255
224
  };
225
+ interface HTMLSmsSendElement extends Components.SmsSend, HTMLStencilElement {
226
+ }
227
+ var HTMLSmsSendElement: {
228
+ prototype: HTMLSmsSendElement;
229
+ new (): HTMLSmsSendElement;
230
+ };
256
231
  interface HTMLUserLivenessElement extends Components.UserLiveness, HTMLStencilElement {
257
232
  }
258
233
  var HTMLUserLivenessElement: {
@@ -268,9 +243,7 @@ declare global {
268
243
  "end-redirect": HTMLEndRedirectElement;
269
244
  "error-end": HTMLErrorEndElement;
270
245
  "how-to-info": HTMLHowToInfoElement;
271
- "id-back-capture": HTMLIdBackCaptureElement;
272
246
  "id-capture": HTMLIdCaptureElement;
273
- "id-tilt": HTMLIdTiltElement;
274
247
  "identification-component": HTMLIdentificationComponentElement;
275
248
  "landing-validation": HTMLLandingValidationElement;
276
249
  "loader-dots": HTMLLoaderDotsElement;
@@ -278,8 +251,8 @@ declare global {
278
251
  "process-id": HTMLProcessIdElement;
279
252
  "random-actions": HTMLRandomActionsElement;
280
253
  "selfie-capture": HTMLSelfieCaptureElement;
281
- "selfie-tilt": HTMLSelfieTiltElement;
282
254
  "sms-code-validation": HTMLSmsCodeValidationElement;
255
+ "sms-send": HTMLSmsSendElement;
283
256
  "user-liveness": HTMLUserLivenessElement;
284
257
  }
285
258
  }
@@ -295,9 +268,6 @@ declare namespace LocalJSX {
295
268
  interface CameraComp {
296
269
  "captureMode"?: string;
297
270
  "modelPath"?: string;
298
- "onChangeTitle"?: (event: CameraCompCustomEvent<any>) => void;
299
- "onCloseCamera"?: (event: CameraCompCustomEvent<any>) => void;
300
- "onErrorCamera"?: (event: CameraCompCustomEvent<any>) => void;
301
271
  "onRecordingIdCapture"?: (event: CameraCompCustomEvent<any>) => void;
302
272
  "onRecordingSelfieCapture"?: (event: CameraCompCustomEvent<any>) => void;
303
273
  "onTakePhoto"?: (event: CameraCompCustomEvent<any>) => void;
@@ -321,25 +291,14 @@ declare namespace LocalJSX {
321
291
  "message"?: string;
322
292
  }
323
293
  interface HowToInfo {
324
- "idSide"?: string;
325
294
  "onApiError"?: (event: HowToInfoCustomEvent<any>) => void;
326
295
  "onHowToInfoDone"?: (event: HowToInfoCustomEvent<any>) => void;
327
296
  }
328
- interface IdBackCapture {
329
- "onApiError"?: (event: IdBackCaptureCustomEvent<any>) => void;
330
- "onPhotoIdBackCapture"?: (event: IdBackCaptureCustomEvent<any>) => void;
331
- "onTimeElapsed"?: (event: IdBackCaptureCustomEvent<any>) => void;
332
- }
333
297
  interface IdCapture {
334
298
  "onApiError"?: (event: IdCaptureCustomEvent<any>) => void;
335
299
  "onPhotoIdCapture"?: (event: IdCaptureCustomEvent<any>) => void;
336
300
  "onTimeElapsed"?: (event: IdCaptureCustomEvent<any>) => void;
337
301
  }
338
- interface IdTilt {
339
- "onApiError"?: (event: IdTiltCustomEvent<any>) => void;
340
- "onPhotoTiltCapture"?: (event: IdTiltCustomEvent<any>) => void;
341
- "onTimeElapsed"?: (event: IdTiltCustomEvent<any>) => void;
342
- }
343
302
  interface IdentificationComponent {
344
303
  "api_url"?: string;
345
304
  "env"?: string;
@@ -367,14 +326,12 @@ declare namespace LocalJSX {
367
326
  "onPhotoSelfieCapture"?: (event: SelfieCaptureCustomEvent<any>) => void;
368
327
  "onTimeElapsed"?: (event: SelfieCaptureCustomEvent<any>) => void;
369
328
  }
370
- interface SelfieTilt {
371
- "onApiError"?: (event: SelfieTiltCustomEvent<any>) => void;
372
- "onPhotoSelfieTiltCapture"?: (event: SelfieTiltCustomEvent<any>) => void;
373
- "onTimeElapsed"?: (event: SelfieTiltCustomEvent<any>) => void;
374
- }
375
329
  interface SmsCodeValidation {
376
330
  "onApiError"?: (event: SmsCodeValidationCustomEvent<any>) => void;
377
331
  }
332
+ interface SmsSend {
333
+ "onApiError"?: (event: SmsSendCustomEvent<any>) => void;
334
+ }
378
335
  interface UserLiveness {
379
336
  "onApiError"?: (event: UserLivenessCustomEvent<any>) => void;
380
337
  }
@@ -387,9 +344,7 @@ declare namespace LocalJSX {
387
344
  "end-redirect": EndRedirect;
388
345
  "error-end": ErrorEnd;
389
346
  "how-to-info": HowToInfo;
390
- "id-back-capture": IdBackCapture;
391
347
  "id-capture": IdCapture;
392
- "id-tilt": IdTilt;
393
348
  "identification-component": IdentificationComponent;
394
349
  "landing-validation": LandingValidation;
395
350
  "loader-dots": LoaderDots;
@@ -397,8 +352,8 @@ declare namespace LocalJSX {
397
352
  "process-id": ProcessId;
398
353
  "random-actions": RandomActions;
399
354
  "selfie-capture": SelfieCapture;
400
- "selfie-tilt": SelfieTilt;
401
355
  "sms-code-validation": SmsCodeValidation;
356
+ "sms-send": SmsSend;
402
357
  "user-liveness": UserLiveness;
403
358
  }
404
359
  }
@@ -414,9 +369,7 @@ declare module "@stencil/core" {
414
369
  "end-redirect": LocalJSX.EndRedirect & JSXBase.HTMLAttributes<HTMLEndRedirectElement>;
415
370
  "error-end": LocalJSX.ErrorEnd & JSXBase.HTMLAttributes<HTMLErrorEndElement>;
416
371
  "how-to-info": LocalJSX.HowToInfo & JSXBase.HTMLAttributes<HTMLHowToInfoElement>;
417
- "id-back-capture": LocalJSX.IdBackCapture & JSXBase.HTMLAttributes<HTMLIdBackCaptureElement>;
418
372
  "id-capture": LocalJSX.IdCapture & JSXBase.HTMLAttributes<HTMLIdCaptureElement>;
419
- "id-tilt": LocalJSX.IdTilt & JSXBase.HTMLAttributes<HTMLIdTiltElement>;
420
373
  "identification-component": LocalJSX.IdentificationComponent & JSXBase.HTMLAttributes<HTMLIdentificationComponentElement>;
421
374
  "landing-validation": LocalJSX.LandingValidation & JSXBase.HTMLAttributes<HTMLLandingValidationElement>;
422
375
  "loader-dots": LocalJSX.LoaderDots & JSXBase.HTMLAttributes<HTMLLoaderDotsElement>;
@@ -424,8 +377,8 @@ declare module "@stencil/core" {
424
377
  "process-id": LocalJSX.ProcessId & JSXBase.HTMLAttributes<HTMLProcessIdElement>;
425
378
  "random-actions": LocalJSX.RandomActions & JSXBase.HTMLAttributes<HTMLRandomActionsElement>;
426
379
  "selfie-capture": LocalJSX.SelfieCapture & JSXBase.HTMLAttributes<HTMLSelfieCaptureElement>;
427
- "selfie-tilt": LocalJSX.SelfieTilt & JSXBase.HTMLAttributes<HTMLSelfieTiltElement>;
428
380
  "sms-code-validation": LocalJSX.SmsCodeValidation & JSXBase.HTMLAttributes<HTMLSmsCodeValidationElement>;
381
+ "sms-send": LocalJSX.SmsSend & JSXBase.HTMLAttributes<HTMLSmsSendElement>;
429
382
  "user-liveness": LocalJSX.UserLiveness & JSXBase.HTMLAttributes<HTMLUserLivenessElement>;
430
383
  }
431
384
  }
@@ -1,4 +1,8 @@
1
+ import { OtpCheck } from '../models/IOtpCheck';
2
+ import { OtpSend } from '../models/IOtpSend';
1
3
  import { OrderStatuses } from '../models/OrderStatuses';
4
+ import { FlowStatus } from '../models/FlowStatus';
5
+ import { AbortResult } from '../models/IAbortResult';
2
6
  import { FlowMoments, FlowSteps } from '../models/FlowSteps';
3
7
  import { DeviceState } from '../models/IDevice';
4
8
  import { TranslationValues } from '../models/ITranslationValues';
@@ -9,8 +13,8 @@ export declare class ApiCall {
9
13
  private http;
10
14
  private post;
11
15
  private get;
12
- SendOTPCode(requestId: string, phoneNumber: string): Promise<boolean | Error>;
13
- CheckOTPCode(requestId: string, otpCode: string): Promise<boolean | Error>;
16
+ SendOTPCode(requestId: string, phoneNumber: string): Promise<OtpSend>;
17
+ CheckOTPCode(requestId: string, otpCode: string): Promise<OtpCheck>;
14
18
  AddIdentificationRequest(deviceInfo: DeviceState, version: string): Promise<any | Error>;
15
19
  UploadFileForRequestB64(requestId: string, type: string, file: File): Promise<boolean>;
16
20
  GetAgreement(agreementType: string): Promise<string>;
@@ -19,7 +23,9 @@ export declare class ApiCall {
19
23
  SendLink(link: string, phoneNumber: string): Promise<boolean>;
20
24
  AddLog(error: any, context: any): Promise<boolean>;
21
25
  AddStep(step: FlowSteps, moment: FlowMoments): Promise<boolean>;
22
- AbortRequest(): Promise<boolean>;
26
+ AbortRequest(): Promise<AbortResult>;
23
27
  GetTranslations(langIso: string): Promise<TranslationValues>;
28
+ LandingValidationStartFlow(cameraIsAccessible: boolean): Promise<FlowStatus>;
29
+ GetNextFlowState(): Promise<FlowStatus>;
24
30
  toBase64: (file: File) => Promise<unknown>;
25
31
  }
@@ -1,5 +1,4 @@
1
1
  import { FacePose } from '../libs/FaceML5Detector/FacePose';
2
- import { IDPose } from '../libs/IDML5Detector/IDPose';
3
2
  import { VerificationMode } from '../models/IVerificationMode';
4
3
  export declare class Stream {
5
4
  static mp4MimeType: {
@@ -28,18 +27,14 @@ export declare class Stream {
28
27
  private verificationMode;
29
28
  private readonly idML5Detector;
30
29
  private readonly faceML5Detector;
31
- private callbackErrors;
32
30
  private callbackAutoCapturing;
33
31
  private callbackRecordingReady;
34
32
  private callbackTimeElapsed;
35
33
  private verificationFinished;
36
- private callbackChangeTitle;
37
34
  private callbackVideoStarted;
38
35
  setFaceDetection(val: boolean): void;
39
36
  setIdDetection(val: boolean): void;
40
- setCallbackChangeTitle(fun: (pose: FacePose | IDPose) => void): void;
41
37
  setCallbackVideoStarted(fun: () => void): void;
42
- setCallbackErrors(fun: (error: Error, isError: boolean) => void): void;
43
38
  setCallbackAutoCapturing(fun: () => void): void;
44
39
  setCallbackRecordingReady(fun: (recording: Blob) => void): void;
45
40
  setCallbackTimeElapsed(fun: () => void): void;
@@ -50,11 +45,8 @@ export declare class Stream {
50
45
  timeElapsed(): void;
51
46
  verificationReady(): void;
52
47
  updateHtmlElements(videoElement: HTMLVideoElement, canvasElement: HTMLCanvasElement, component: HTMLElement): void;
53
- static orientationChange(): void;
54
48
  startStream(stream: MediaStream): void;
55
49
  initStream(stream: MediaStream): Promise<void>;
56
- pauseStream: () => void;
57
- resumeStream(): Promise<void>;
58
50
  private recordStream;
59
51
  private updateCanvasSize;
60
52
  private updateVideoSize;
@@ -65,7 +57,4 @@ export declare class Stream {
65
57
  startIdDetection(): Promise<void>;
66
58
  startFaceDetection(): Promise<void>;
67
59
  initFacePose(): void;
68
- requestFacePose(): FacePose;
69
- changeFacePose(): void;
70
- changeIDPose(pose: IDPose): void;
71
60
  }
@@ -34,5 +34,7 @@ export declare class ApiUrls {
34
34
  readonly AddStep: string;
35
35
  readonly AbortRequest: string;
36
36
  readonly Translations: string;
37
+ readonly StartFlow: string;
38
+ readonly NextFlowState: string;
37
39
  constructor();
38
40
  }
@@ -1,11 +1,8 @@
1
1
  export interface CaptureFlow {
2
- front: CaptureSide;
3
- back: CaptureSide;
4
- tilt: CaptureSide;
2
+ capture: CaptureSide;
3
+ howToDone: boolean;
5
4
  }
6
5
  export interface CaptureSide {
7
- photoDone: boolean;
8
- recordingDone: boolean;
9
6
  fileName: string;
10
7
  recName: string;
11
8
  photoType: CaptureUploadTypes;
@@ -22,17 +19,3 @@ export declare enum CaptureUploadTypes {
22
19
  TiltVideo = "TiltVideo",
23
20
  None = "None"
24
21
  }
25
- export declare enum IdCaptureFlowStatus {
26
- HowToFront = 0,
27
- IdFront = 1,
28
- HowToBack = 2,
29
- IdBack = 3,
30
- Tilt = 4,
31
- End = 5
32
- }
33
- export declare enum SelfieFlowStatus {
34
- HowToSelfie = 0,
35
- Selfie = 1,
36
- Gesture = 2,
37
- End = 3
38
- }
@@ -1,13 +1,21 @@
1
1
  export declare enum FlowStatus {
2
2
  LANDING = 0,
3
- AGREEMENT = 1,
4
- PHONE = 2,
5
- CODE = 3,
6
- CODEERROR = 4,
7
- ID = 5,
8
- LIVENESS = 6,
9
- COMPLETE = 7,
10
- ERROREND = 8,
11
- CAMERAERROR = 9,
12
- NONE = 10
3
+ MOBILE = 1,
4
+ AGREEMENT = 2,
5
+ PHONE = 3,
6
+ CODE = 4,
7
+ CODEERROR = 5,
8
+ IDFRONT = 6,
9
+ IDBACK = 7,
10
+ IDTILT = 8,
11
+ LIVENESS = 9,
12
+ LIVENESSGESTURE = 10,
13
+ COMPLETE = 11,
14
+ ERROREND = 12,
15
+ CAMERAERROR = 13,
16
+ ABORTED = 14,
17
+ NONE = 15
18
+ }
19
+ export interface FlowResult {
20
+ state: string;
13
21
  }
@@ -1,3 +1,4 @@
1
1
  export interface AbortResult {
2
2
  saved: boolean;
3
+ state: string;
3
4
  }
@@ -1,9 +1,9 @@
1
1
  export interface AddRequest {
2
2
  requestId: string;
3
- hasIdBack: boolean;
4
3
  hasIdTilt: boolean;
5
4
  hasSelfieGesture: boolean;
6
5
  agreementsValidation: boolean;
7
6
  phoneValidation: boolean;
8
7
  phoneNumber: string;
8
+ status: string;
9
9
  }
@@ -6,15 +6,9 @@ export interface EctStore {
6
6
  debug: boolean;
7
7
  requestId: string;
8
8
  redirectId: string;
9
- initialised: boolean;
10
9
  token: string;
11
10
  cameraIds: string[];
12
11
  cameraId: string;
13
- hasIdBack: boolean;
14
- hasSelfieGesture: boolean;
15
- hasIdTilt: boolean;
16
- agreementsValidation: boolean;
17
- phoneValidation: boolean;
18
12
  phoneNumber: string;
19
13
  apiBaseUrl: string;
20
14
  device: DeviceState;
@@ -1,3 +1,4 @@
1
1
  export interface OtpCheck {
2
2
  valid: boolean;
3
+ status: string;
3
4
  }
@@ -1,3 +1,4 @@
1
1
  export interface OtpSend {
2
2
  sent: boolean;
3
+ status: string;
3
4
  }
@@ -1,4 +1,5 @@
1
1
  export interface UploadFile {
2
2
  saved: boolean;
3
3
  isValid?: boolean;
4
+ state: string;
4
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekyc_qoobiss/qbs-ect-cmp",
3
- "version": "3.6.39",
3
+ "version": "3.6.41",
4
4
  "description": "Person Identification Component",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.js",