@idscan/onboarding 2.7.5 → 2.9.0

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 (63) hide show
  1. package/dist/Wrapper.css +1 -0
  2. package/dist/custom_types/custom.d.ts +20 -0
  3. package/dist/networks/Blur-chunk.js +1 -1
  4. package/dist/networks/Bubble-chunk.js +1 -1
  5. package/dist/networks/Face-chunk.js +1 -1
  6. package/dist/networks/GeneralTypeDetectionYolo-chunk.js +1 -1
  7. package/dist/networks/MRZ-chunk.js +1 -1
  8. package/dist/networks/PDF-chunk.js +1 -1
  9. package/dist/networks/ZXing-chunk.js +1 -1
  10. package/dist/{@types/src → src}/@types/Api/Requests.d.ts +1 -1
  11. package/dist/{@types/src → src}/@types/Api/Responses.d.ts +2 -2
  12. package/dist/{@types/src → src}/@types/Data.d.ts +6 -4
  13. package/dist/{@types/src → src}/@types/Step.d.ts +1 -1
  14. package/dist/{@types/src → src}/Wrapper.d.ts +0 -2
  15. package/dist/{@types/src → src}/config.d.ts +6 -4
  16. package/dist/{@types/src → src}/errors/ConfigError.d.ts +1 -1
  17. package/dist/{@types/src → src}/errors/FaceAuthorizationError.d.ts +1 -1
  18. package/dist/{@types/src → src}/errors/HttpError.d.ts +1 -1
  19. package/dist/{@types/src → src}/errors/NotValidApplicant.d.ts +1 -1
  20. package/dist/{@types/src → src}/errors/RequestTimeoutError.d.ts +1 -1
  21. package/dist/{@types/src → src}/errors/ValidationError.d.ts +1 -1
  22. package/dist/{@types/src → src}/helpers/fingerPrint.d.ts +1 -1
  23. package/dist/{@types/src → src}/helpers/requestModelCheckers.d.ts +2 -2
  24. package/dist/{@types/src → src}/helpers/utils.d.ts +1 -1
  25. package/dist/src/mocks/validation.json.d.ts +9 -0
  26. package/dist/{@types/src → src}/modules/Lib.d.ts +3 -3
  27. package/dist/{@types/src → src}/modules/QRCodeModal.d.ts +1 -1
  28. package/dist/{@types/src → src}/modules/Validation.d.ts +1 -1
  29. package/dist/{@types/src → src}/modules/ValidationModal.d.ts +1 -1
  30. package/dist/vite.config.d.ts +2 -0
  31. package/dist/wrapper.es.js +4376 -0
  32. package/dist/wrapper.es.js.map +1 -0
  33. package/dist/wrapper.umd.js +2 -0
  34. package/dist/wrapper.umd.js.map +1 -0
  35. package/package.json +15 -35
  36. package/readme.md +7 -0
  37. package/dist/@types/Fingerprinting/src/@types/Data.d.ts +0 -10
  38. package/dist/@types/Fingerprinting/src/main.d.ts +0 -29
  39. package/dist/@types/Fingerprinting/src/modules/batteryInfo.d.ts +0 -7
  40. package/dist/@types/Fingerprinting/src/modules/browserInfo.d.ts +0 -20
  41. package/dist/@types/Fingerprinting/src/modules/canvasInfo.d.ts +0 -1
  42. package/dist/@types/Fingerprinting/src/modules/connectionInfo.d.ts +0 -9
  43. package/dist/@types/Fingerprinting/src/modules/fontsInfo.d.ts +0 -3
  44. package/dist/@types/Fingerprinting/src/modules/html5Info.d.ts +0 -8
  45. package/dist/@types/Fingerprinting/src/modules/ipWebRTCInfo.d.ts +0 -1
  46. package/dist/@types/Fingerprinting/src/modules/screenInfo.d.ts +0 -14
  47. package/dist/@types/Fingerprinting/src/modules/timeZoneInfo.d.ts +0 -1
  48. package/dist/@types/Fingerprinting/src/modules/videoCodecsInfo.d.ts +0 -1
  49. package/dist/@types/Fingerprinting/src/modules/webGLInfo.d.ts +0 -10
  50. package/dist/@types/Fingerprinting/src/utils/sha256.d.ts +0 -2
  51. package/dist/@types/src/helpers/styleInject.d.ts +0 -1
  52. package/dist/js/wrapper.js +0 -1
  53. /package/dist/{@types/src → src}/@types/IDVCTypes.d.ts +0 -0
  54. /package/dist/{@types/src → src}/@types/enums.d.ts +0 -0
  55. /package/dist/{@types/src → src}/entry.d.ts +0 -0
  56. /package/dist/{@types/src → src}/errors/WrapperError.d.ts +0 -0
  57. /package/dist/{@types/src → src}/helpers/mobileChecker.d.ts +0 -0
  58. /package/dist/{@types/src → src}/helpers/typeGuard.d.ts +0 -0
  59. /package/dist/{@types/src → src}/helpers/validators.d.ts +0 -0
  60. /package/dist/{@types/src → src}/mocks/defaultValues.d.ts +0 -0
  61. /package/dist/{@types/src → src}/modules/Api.d.ts +0 -0
  62. /package/dist/{@types/src → src}/modules/ConsentForm.d.ts +0 -0
  63. /package/dist/{@types/src → src}/modules/Modal.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import type { Base64Image, IDVCDocumentTypeIndex } from '../IDVCTypes';
1
+ import { Base64Image, IDVCDocumentTypeIndex } from '../IDVCTypes';
2
2
  export type FaceAuthorizationModel = {
3
3
  faceImageBase64: Base64Image;
4
4
  };
@@ -1,5 +1,5 @@
1
- import json from '../../mocks/validation.json';
2
- import type { IDVCDocumentTypeIndex } from '../IDVCTypes';
1
+ import { default as json } from '../../mocks/validation.json';
2
+ import { IDVCDocumentTypeIndex } from '../IDVCTypes';
3
3
  import { ResponseStatus } from '../enums';
4
4
  type JSON = string;
5
5
  type AdditionalData = Record<string, string>;
@@ -1,8 +1,8 @@
1
1
  import { ValidationStatus } from './enums';
2
- import WrapperError from '../errors/WrapperError';
3
- import type { StepCallback, StepConfig, StepMode } from './Step';
4
- import type { SuccessConfiguration, ValidationApplicant } from './Api/Responses';
5
- import type { IDVCDocumentTypeIndex, IDVCDocumentTypeName, RealFaceModeType, SupportedLanguage } from './IDVCTypes';
2
+ import { default as WrapperError } from '../errors/WrapperError';
3
+ import { StepCallback, StepConfig, StepMode } from './Step';
4
+ import { SuccessConfiguration, ValidationApplicant } from './Api/Responses';
5
+ import { IDVCDocumentTypeIndex, IDVCDocumentTypeName, RealFaceModeType, SupportedLanguage } from './IDVCTypes';
6
6
  type ValidateCallbackData = ValidationApplicant & {
7
7
  forceComplete?: boolean;
8
8
  };
@@ -43,6 +43,8 @@ export interface IDVCConfigCallbacks {
43
43
  onValidate?: (data: ValidateCallbackData) => void;
44
44
  onReloaded?: () => void;
45
45
  onError?: (data: WrapperError) => void;
46
+ onGetOptionsStart?: () => void;
47
+ onGetOptionsComplete?: (result: SuccessConfiguration) => void;
46
48
  }
47
49
  export interface IDVCConfig {
48
50
  priority: string;
@@ -1,4 +1,4 @@
1
- import type { StepType } from '@idscan/idvc2/dist/types/environment/stepsDescription';
1
+ import { StepType } from '@idscan/idvc2/dist/types/environment/stepsDescription';
2
2
  type Base64Image = string | null;
3
3
  export type StepMode = {
4
4
  uploader: boolean;
@@ -1,5 +1,3 @@
1
- import 'core-js/stable';
2
- import 'regenerator-runtime/runtime';
3
1
  import { IWrapperConfig, JSONString } from './@types/Data';
4
2
  export default class Wrapper {
5
3
  private api;
@@ -9,17 +9,19 @@ export default class Configs {
9
9
  validate: () => void;
10
10
  parseFromWeb(options: SuccessConfiguration): void;
11
11
  faceAuthorizationConfig(jsonSettings: IDVCConfig): IDVCConfig;
12
- getFirstStepModeState(): () => import("./@types/Step").StepMode | undefined;
13
- get firstStepMode(): import("./@types/Step").StepMode | undefined;
12
+ getFirstStepModeState(): () => import('./@types/Step').StepMode | undefined;
13
+ get firstStepMode(): import('./@types/Step').StepMode | undefined;
14
14
  set applicantId(applicantId: string);
15
15
  get applicantId(): string;
16
16
  get domainId(): string;
17
17
  get publicKey(): string;
18
18
  get domainApi(): string;
19
- get onValidate(): (data: import("./@types/Api/Responses").SuccessApplicantValidation & import("./@types/Api/Responses").FailedApplicantValidationResult & {
19
+ get onValidate(): (data: import('./@types/Api/Responses').SuccessApplicantValidation & import('./@types/Api/Responses').FailedApplicantValidationResult & {
20
20
  forceComplete?: boolean;
21
21
  }) => void;
22
- get onError(): (data: import("./errors/WrapperError").default) => void;
22
+ get onError(): (data: import('./errors/WrapperError').default) => void;
23
+ get onGetOptionsStart(): () => void;
24
+ get onGetOptionsComplete(): (result: SuccessConfiguration) => void;
23
25
  set libConfig(config: IDVCConfig);
24
26
  get libConfig(): IDVCConfig;
25
27
  get cssStylesConfig(): string;
@@ -1,4 +1,4 @@
1
- import WrapperError from './WrapperError';
1
+ import { default as WrapperError } from './WrapperError';
2
2
  export default class ConfigError extends WrapperError {
3
3
  constructor(name: string);
4
4
  }
@@ -1,5 +1,5 @@
1
1
  import { CompletedApplicant } from '../@types/Api/Responses';
2
- import WrapperError from './WrapperError';
2
+ import { default as WrapperError } from './WrapperError';
3
3
  export default class FaceAuthorizationError extends WrapperError {
4
4
  constructor(error: CompletedApplicant);
5
5
  setHeader({ code }: CompletedApplicant): void;
@@ -1,4 +1,4 @@
1
- import WrapperError from './WrapperError';
1
+ import { default as WrapperError } from './WrapperError';
2
2
  export default class HttpError extends WrapperError {
3
3
  constructor(response: Response);
4
4
  }
@@ -1,4 +1,4 @@
1
- import WrapperError from './WrapperError';
1
+ import { default as WrapperError } from './WrapperError';
2
2
  export default class NotValidApplicant extends WrapperError {
3
3
  constructor(name: string);
4
4
  }
@@ -1,4 +1,4 @@
1
- import WrapperError from './WrapperError';
1
+ import { default as WrapperError } from './WrapperError';
2
2
  export default class RequestTimeoutError extends WrapperError {
3
3
  constructor(name: string);
4
4
  }
@@ -1,5 +1,5 @@
1
1
  import { CompletedApplicant } from '../@types/Api/Responses';
2
- import WrapperError from './WrapperError';
2
+ import { default as WrapperError } from './WrapperError';
3
3
  export default class ValidationError extends WrapperError {
4
4
  constructor(error: CompletedApplicant);
5
5
  setHeader({ code }: CompletedApplicant): void;
@@ -1,4 +1,4 @@
1
- import Fingerprint from '../../Fingerprinting/src/main';
1
+ import { default as Fingerprint } from '../../Fingerprinting/src/main';
2
2
  import { INavigatorInfo } from '../../Fingerprinting/src/modules/browserInfo';
3
3
  export declare const createFingerPrintModel: () => Promise<{
4
4
  browserMetadata: {
@@ -1,4 +1,4 @@
1
- import type { StepCallback } from '../@types/Step';
2
- import type { IDVCDocumentTypeIndex } from '../@types/IDVCTypes';
1
+ import { StepCallback } from '../@types/Step';
2
+ import { IDVCDocumentTypeIndex } from '../@types/IDVCTypes';
3
3
  export declare const checkBackOrSecondImageProcessing: (documentType: IDVCDocumentTypeIndex, steps: StepCallback[]) => boolean;
4
4
  export declare const checkOcrEnabled: (documentType: IDVCDocumentTypeIndex, steps: StepCallback[]) => boolean;
@@ -1,4 +1,4 @@
1
- import type { DocumentType, IDVCConfig, IWebLibDocument } from '../@types/Data';
1
+ import { DocumentType, IDVCConfig, IWebLibDocument } from '../@types/Data';
2
2
  export declare const createGuid: () => string;
3
3
  /**
4
4
  * 1. Filter Active DocumentTypes
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ "success": {"validationResponseId":6223,"validationRequestId":"8151f48d-bab1-4491-037d-08d9b3c5cfec","documentType":1,"document":{"abbr3Country":"USA","abbrCountry":"US","address":"25805 VAN LEUVEN ST 136","city":"LOMA LINDA","class":"C","country":"United States of America","dob":"1961-01-07","expires":"2024-01-07","eyes":"Brown","familyName":"GILMER","firstName":"DARIENNE","fullName":"DARIENNE ELIZABETH GILMER","gender":"Female","hair":"Black","height":"064 IN","id":"C3568758","idType":"DL","issued":"2019-01-07","middleName":"ELIZABETH","postalBox":null,"privateName":"ELIZABETH","state":"CA","template":"09","weight":"77","zip":"92354-0000"},"attemptsLeft":0,"status":0,"validationStatus":{"expired":false,"documentIsValid":true,"faceIsValid":true},"invalidDataErrors":null,"faceSuccess":null,"documentSuccess":null,"documentHasNotExpired":null,"documentValidationTests":[{"displayName":"DMV","name":"DMVValidation","status":0,"statusString":"Failed","reason":"Internal Server Error"},{"displayName":"IdentiFraud","name":"IdentiFraudValidation","status":-1,"statusString":"Disabled","reason":"Integration was turned off"}]},
3
+ "badRequest": {"code":"BadRequest","message":"Request 8151f48d-bab1-4491-037d-08d9b3c5cfec was already completed","propertyErrors":null,"multipleErrors":null,"traceId":"00-79d8750f93829a48b8c46bfd1ac4c8b6-385d90679b4edb45-00"},
4
+ "dataInvalid": {"validationResponseId":6224,"validationRequestId":"fa33df4c-7d5c-4485-037e-08d9b3c5cfec","documentType":0,"document":null,"attemptsLeft":19,"status":2,"validationStatus":{"expired":false,"documentIsValid":false,"faceIsValid":false},"invalidDataErrors":[{"code":"FaceDocNotDetectError","message":"The face has not been found on the document"},{"code":"PDF417Error","message":"Unable to capture data from the back of the document"},{"code":"OCRError","message":"Unable to capture data from the front of the document"}],"faceSuccess":null,"documentSuccess":null,"documentHasNotExpired":null,"documentValidationTests":null},
5
+ "validationFailed": {"validationResponseId":6230,"validationRequestId":"eae11ae1-1c8f-40bd-0381-08d9b3c5cfec","documentType":2,"document":{"abbr3Country":"USA","abbrCountry":"US","address":null,"city":null,"class":null,"country":"United States of America","dob":"1986-07-24","expires":"2030-07-13","eyes":null,"familyName":"LEVELS","firstName":"DAVID HARRISON","fullName":"LEVELS DAVID HARRISON","gender":"M","hair":null,"height":null,"id":"659328258","idType":"PASSPORT","issued":null,"middleName":null,"postalBox":null,"privateName":null,"state":null,"template":null,"weight":null,"zip":null},"attemptsLeft":18,"status":1,"validationStatus":{"expired":false,"documentIsValid":true,"faceIsValid":false},"invalidDataErrors":null,"faceSuccess":null,"documentSuccess":null,"documentHasNotExpired":null,"documentValidationTests":null}
6
+ }
7
+ ;
8
+
9
+ export default _default;
@@ -1,6 +1,6 @@
1
- import type { IDocumentTypeConfig } from '@idscan/idvc2/dist/types/modules/validator';
2
- import type { DataForSubmit, IDVCConfig, LibConfig } from '../@types/Data';
3
- import type { ValidationModel } from '../@types/Api/Requests';
1
+ import { IDocumentTypeConfig } from '@idscan/idvc2/dist/types/modules/validator';
2
+ import { DataForSubmit, IDVCConfig, LibConfig } from '../@types/Data';
3
+ import { ValidationModel } from '../@types/Api/Requests';
4
4
  export default class Lib {
5
5
  private library;
6
6
  private IdvcConfig;
@@ -1,4 +1,4 @@
1
- import Modal from './Modal';
1
+ import { default as Modal } from './Modal';
2
2
  import { QRCodeModalState } from '../@types/enums';
3
3
  export default class QRCodeModal extends Modal {
4
4
  private qrCodeCanvas;
@@ -1,4 +1,4 @@
1
- import ValidationModal from './ValidationModal';
1
+ import { default as ValidationModal } from './ValidationModal';
2
2
  import { ValidationApplicant } from '../@types/Api/Responses';
3
3
  export default class Validation {
4
4
  private modal;
@@ -1,6 +1,6 @@
1
1
  import { ValidationButtonNames, ValidationButtonsState } from '../@types/Data';
2
2
  import { ValidationStatus } from '../@types/enums';
3
- import Modal from './Modal';
3
+ import { default as Modal } from './Modal';
4
4
  export default class ValidationModal extends Modal {
5
5
  private headerSign;
6
6
  private tryAgainBtn;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vite').UserConfigFnObject;
2
+ export default _default;