@ekyc_qoobiss/qbs-ect-cmp 1.12.9 → 2.0.1

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 (39) hide show
  1. package/README.md +2 -0
  2. package/dist/cjs/agreement-check_17.cjs.entry.js +113 -38
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/qbs-ect-cmp.cjs.js +1 -1
  5. package/dist/collection/components/common/agreement-check/agreement-check.js +1 -1
  6. package/dist/collection/components/common/capture-error/capture-error.js +1 -1
  7. package/dist/collection/components/common/how-to-info/how-to-info.js +1 -1
  8. package/dist/collection/components/flow/agreement-info/agreement-info.js +1 -1
  9. package/dist/collection/components/flow/landing-validation/landing-validation.js +32 -2
  10. package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +17 -6
  11. package/dist/collection/components/flow/sms-code-validation/sms-code-validation.js +14 -3
  12. package/dist/collection/components/identification-component/identification-component.css +9 -72
  13. package/dist/collection/components/identification-component/identification-component.js +56 -14
  14. package/dist/collection/helpers/ApiCall.js +8 -1
  15. package/dist/collection/helpers/Cameras.js +2 -2
  16. package/dist/collection/helpers/Events.js +15 -5
  17. package/dist/collection/helpers/store.js +1 -0
  18. package/dist/collection/helpers/textValues.js +3 -0
  19. package/dist/collection/models/IAbortResult.js +1 -0
  20. package/dist/collection/models/OrderStatuses.js +1 -0
  21. package/dist/esm/agreement-check_17.entry.js +113 -38
  22. package/dist/esm/loader.js +1 -1
  23. package/dist/esm/qbs-ect-cmp.js +1 -1
  24. package/dist/qbs-ect-cmp/{p-1071c7e5.entry.js → p-7b895b56.entry.js} +2 -2
  25. package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
  26. package/dist/types/components/flow/landing-validation/landing-validation.d.ts +4 -0
  27. package/dist/types/components/flow/mobile-redirect/mobile-redirect.d.ts +1 -0
  28. package/dist/types/components/flow/sms-code-validation/sms-code-validation.d.ts +2 -0
  29. package/dist/types/components/identification-component/identification-component.d.ts +3 -1
  30. package/dist/types/components.d.ts +7 -0
  31. package/dist/types/helpers/ApiCall.d.ts +1 -0
  32. package/dist/types/helpers/Cameras.d.ts +1 -1
  33. package/dist/types/helpers/Events.d.ts +2 -1
  34. package/dist/types/helpers/store.d.ts +1 -0
  35. package/dist/types/helpers/textValues.d.ts +3 -0
  36. package/dist/types/models/IAbortResult.d.ts +3 -0
  37. package/dist/types/models/IAddRequest.d.ts +1 -0
  38. package/dist/types/models/OrderStatuses.d.ts +2 -1
  39. package/package.json +1 -1
@@ -1 +1 @@
1
- import{p as e,b as i}from"./p-06e42b28.js";export{s as setNonce}from"./p-06e42b28.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((e=>i([["p-4c8e922b",[[1,"loader-dots"]]],["p-1071c7e5",[[1,"identification-component",{token:[1537],order_id:[1537],api_url:[1537],env:[1537],redirect_id:[1537],idSide:[32],errorMessage:[32],errorTitle:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{device:[16],showTimeout:[32],showInvalid:[32],showHowTo:[32],front:[32],flow:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"id-single-side",{device:[16],showTimeout:[32],showHowTo:[32],idFlow:[32]},[[0,"captureErrorDone","captureErrorDone"],[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"photoIdCapture","captureIdImage"],[0,"verificationFinished","verificationFinished"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{device:[16],showError:[32],showHowTo:[32],selfieFlow:[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,"end-redirect"],[0,"error-end",{message:[1],errorTitle:[1,"error-title"]}],[0,"landing-validation",{device:[16],warningText:[32]}],[0,"mobile-redirect",{infoTextTop:[32],infoTextBottom:[32],contact:[32],invalidValue:[32],waitingMobile:[32],orderStatus:[32],redirectLink:[32],qrCode:[32]}],[0,"sms-code-validation",{title:[32],details:[32],buttonText:[32],phoneNumber:[32],code:[32]}],[0,"id-back-capture",{device:[16],videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{device:[16],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]}],[0,"id-capture",{device:[16],videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"capture-error",{type:[1]}],[0,"how-to-info",{idSide:[1,"id-side"],topTitle:[32],subTitle:[32],imagePath:[32],buttonText:[32]}],[0,"camera-comp",{modelPath:[1,"model-path"],device:[16],probabilityThreshold:[2,"probability-threshold"],captureMode:[1,"capture-mode"]}]]]],e)));
1
+ import{p as e,b as i}from"./p-06e42b28.js";export{s as setNonce}from"./p-06e42b28.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((e=>i([["p-4c8e922b",[[1,"loader-dots"]]],["p-7b895b56",[[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,"id-double-side",{device:[16],showTimeout:[32],showInvalid:[32],showHowTo:[32],front:[32],flow:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"id-single-side",{device:[16],showTimeout:[32],showHowTo:[32],idFlow:[32]},[[0,"captureErrorDone","captureErrorDone"],[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"photoIdCapture","captureIdImage"],[0,"verificationFinished","verificationFinished"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{device:[16],showError:[32],showHowTo:[32],selfieFlow:[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,"end-redirect"],[0,"error-end",{message:[1],errorTitle:[1,"error-title"]}],[0,"landing-validation",{device:[16],warningText:[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",{device:[16],videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{device:[16],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]}],[0,"id-capture",{device:[16],videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"capture-error",{type:[1]}],[0,"how-to-info",{idSide:[1,"id-side"],topTitle:[32],subTitle:[32],imagePath:[32],buttonText:[32]}],[0,"camera-comp",{modelPath:[1,"model-path"],device:[16],probabilityThreshold:[2,"probability-threshold"],captureMode:[1,"capture-mode"]}]]]],e)));
@@ -1,10 +1,14 @@
1
+ import { EventEmitter } from '../../../stencil-public-runtime';
1
2
  import { Device } from '../../../models/IDevice';
2
3
  export declare class LandingValidation {
3
4
  device: Device;
4
5
  warningText: string;
6
+ private apiCall;
7
+ apiErrorEvent: EventEmitter<any>;
5
8
  componentWillLoad(): Promise<void>;
6
9
  componentDidLoad(): void;
7
10
  initRequest(): Promise<void>;
8
11
  startFlow(): Promise<void>;
12
+ leaveFlow(): Promise<void>;
9
13
  render(): any;
10
14
  }
@@ -8,6 +8,7 @@ export declare class MobileRedirect {
8
8
  private orderStatus;
9
9
  private redirectLink;
10
10
  private qrCode;
11
+ private prefilledPhone;
11
12
  private apiCall;
12
13
  apiErrorEvent: EventEmitter<any>;
13
14
  constructor();
@@ -6,6 +6,8 @@ export declare class SmsCodeValidation {
6
6
  private apiCall;
7
7
  private phoneNumber;
8
8
  private code;
9
+ private prefilledPhone;
10
+ private canSend;
9
11
  constructor();
10
12
  apiErrorEvent: EventEmitter<any>;
11
13
  private doAction;
@@ -4,6 +4,7 @@ export declare class IdentificationComponent {
4
4
  api_url: string;
5
5
  env: string;
6
6
  redirect_id: string;
7
+ phone_number: string;
7
8
  private idSide;
8
9
  private errorMessage;
9
10
  private errorTitle;
@@ -14,8 +15,9 @@ export declare class IdentificationComponent {
14
15
  onApiUrlChange(newValue: string, _oldValue: string): void;
15
16
  onEnvChange(newValue: string, _oldValue: string): void;
16
17
  onRedirectIdChange(newValue: string, _oldValue: string): Promise<void>;
18
+ onPhoneChange(newValue: string, _oldValue: string): Promise<void>;
17
19
  agreementAcceptanceEmitted(data: any): void;
18
- apiErrorEmitter(data: any): Promise<void>;
20
+ apiErrorEmitter(data: any, zone: any): Promise<void>;
19
21
  constructor();
20
22
  componentWillLoad(): Promise<void>;
21
23
  componentWillRender(): void;
@@ -46,6 +46,7 @@ export namespace Components {
46
46
  "api_url": string;
47
47
  "env": string;
48
48
  "order_id": string;
49
+ "phone_number": string;
49
50
  "redirect_id": string;
50
51
  "token": string;
51
52
  }
@@ -97,6 +98,10 @@ export interface IdSingleSideCustomEvent<T> extends CustomEvent<T> {
97
98
  detail: T;
98
99
  target: HTMLIdSingleSideElement;
99
100
  }
101
+ export interface LandingValidationCustomEvent<T> extends CustomEvent<T> {
102
+ detail: T;
103
+ target: HTMLLandingValidationElement;
104
+ }
100
105
  export interface MobileRedirectCustomEvent<T> extends CustomEvent<T> {
101
106
  detail: T;
102
107
  target: HTMLMobileRedirectElement;
@@ -300,11 +305,13 @@ declare namespace LocalJSX {
300
305
  "api_url"?: string;
301
306
  "env"?: string;
302
307
  "order_id"?: string;
308
+ "phone_number"?: string;
303
309
  "redirect_id"?: string;
304
310
  "token"?: string;
305
311
  }
306
312
  interface LandingValidation {
307
313
  "device"?: Device;
314
+ "onApiError"?: (event: LandingValidationCustomEvent<any>) => void;
308
315
  }
309
316
  interface LoaderDots {
310
317
  }
@@ -15,5 +15,6 @@ export declare class ApiCall {
15
15
  GetStatus(requestId: string): Promise<OrderStatuses>;
16
16
  SendLink(link: string, phoneNumber: string): Promise<boolean>;
17
17
  AddLog(error: any): Promise<boolean>;
18
+ AbortRequest(): Promise<boolean>;
18
19
  toBase64: (file: File) => Promise<unknown>;
19
20
  }
@@ -1,6 +1,6 @@
1
1
  import { Camera } from '../models/ICamera';
2
- import { Constraints } from '../models/IConstraints';
3
2
  import { Device } from '../models/IDevice';
3
+ import { Constraints } from '../models/IConstraints';
4
4
  export declare class Cameras {
5
5
  GetCameras(deviceInfo: Device): Promise<Camera[]>;
6
6
  GetConstraints(selectedDeviceId: string, device: Device, portrait?: boolean): Constraints | any;
@@ -1,7 +1,8 @@
1
1
  export default class Events {
2
- static cameraModule: any;
2
+ static callingModule: any;
3
3
  static init(element: any): void;
4
4
  static flowStarted(): void;
5
+ static flowAborted(): void;
5
6
  static flowCompleted(): void;
6
7
  static flowError(error: string): void;
7
8
  static tokenExpired(): void;
@@ -11,6 +11,7 @@ declare const state: {
11
11
  hasIdBack: boolean;
12
12
  agreementsValidation: boolean;
13
13
  phoneValidation: boolean;
14
+ phoneNumber: string;
14
15
  apiBaseUrl: string;
15
16
  };
16
17
  export default state;
@@ -23,6 +23,7 @@ export declare class LandingValues extends GlobalValues {
23
23
  static readonly WarningMd: string;
24
24
  static readonly Terms: string;
25
25
  static readonly Button: string;
26
+ static readonly ButtonLeave: string;
26
27
  }
27
28
  export declare class PhoneValidationValues extends GlobalValues {
28
29
  static readonly Title: string;
@@ -97,6 +98,7 @@ export declare class ApiUrls {
97
98
  readonly SendLink: string;
98
99
  readonly GetStatus: string;
99
100
  readonly AddLog: string;
101
+ readonly AbortRequest: string;
100
102
  constructor();
101
103
  }
102
104
  export declare class MobileRedirectValues extends GlobalValues {
@@ -104,4 +106,5 @@ export declare class MobileRedirectValues extends GlobalValues {
104
106
  static readonly InfoBottom: string;
105
107
  static readonly Validation: string;
106
108
  static readonly InfoWaiting: string;
109
+ static readonly InfoAborted: string;
107
110
  }
@@ -0,0 +1,3 @@
1
+ export interface AbortResult {
2
+ saved: boolean;
3
+ }
@@ -3,4 +3,5 @@ export interface AddRequest {
3
3
  hasIdBack: boolean;
4
4
  agreementsValidation: boolean;
5
5
  phoneValidation: boolean;
6
+ phoneNumber: string;
6
7
  }
@@ -2,5 +2,6 @@ export declare enum OrderStatuses {
2
2
  Capturing = 0,
3
3
  FinishedCapturing = 1,
4
4
  Waiting = 2,
5
- NotFound = 3
5
+ NotFound = 3,
6
+ Aborted = 4
6
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekyc_qoobiss/qbs-ect-cmp",
3
- "version": "1.12.9",
3
+ "version": "2.0.1",
4
4
  "description": "Person Identification Component",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.js",