@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.
- package/dist/Wrapper.css +1 -0
- package/dist/custom_types/custom.d.ts +20 -0
- package/dist/networks/Blur-chunk.js +1 -1
- package/dist/networks/Bubble-chunk.js +1 -1
- package/dist/networks/Face-chunk.js +1 -1
- package/dist/networks/GeneralTypeDetectionYolo-chunk.js +1 -1
- package/dist/networks/MRZ-chunk.js +1 -1
- package/dist/networks/PDF-chunk.js +1 -1
- package/dist/networks/ZXing-chunk.js +1 -1
- package/dist/{@types/src → src}/@types/Api/Requests.d.ts +1 -1
- package/dist/{@types/src → src}/@types/Api/Responses.d.ts +2 -2
- package/dist/{@types/src → src}/@types/Data.d.ts +6 -4
- package/dist/{@types/src → src}/@types/Step.d.ts +1 -1
- package/dist/{@types/src → src}/Wrapper.d.ts +0 -2
- package/dist/{@types/src → src}/config.d.ts +6 -4
- package/dist/{@types/src → src}/errors/ConfigError.d.ts +1 -1
- package/dist/{@types/src → src}/errors/FaceAuthorizationError.d.ts +1 -1
- package/dist/{@types/src → src}/errors/HttpError.d.ts +1 -1
- package/dist/{@types/src → src}/errors/NotValidApplicant.d.ts +1 -1
- package/dist/{@types/src → src}/errors/RequestTimeoutError.d.ts +1 -1
- package/dist/{@types/src → src}/errors/ValidationError.d.ts +1 -1
- package/dist/{@types/src → src}/helpers/fingerPrint.d.ts +1 -1
- package/dist/{@types/src → src}/helpers/requestModelCheckers.d.ts +2 -2
- package/dist/{@types/src → src}/helpers/utils.d.ts +1 -1
- package/dist/src/mocks/validation.json.d.ts +9 -0
- package/dist/{@types/src → src}/modules/Lib.d.ts +3 -3
- package/dist/{@types/src → src}/modules/QRCodeModal.d.ts +1 -1
- package/dist/{@types/src → src}/modules/Validation.d.ts +1 -1
- package/dist/{@types/src → src}/modules/ValidationModal.d.ts +1 -1
- package/dist/vite.config.d.ts +2 -0
- package/dist/wrapper.es.js +4376 -0
- package/dist/wrapper.es.js.map +1 -0
- package/dist/wrapper.umd.js +2 -0
- package/dist/wrapper.umd.js.map +1 -0
- package/package.json +15 -35
- package/readme.md +7 -0
- package/dist/@types/Fingerprinting/src/@types/Data.d.ts +0 -10
- package/dist/@types/Fingerprinting/src/main.d.ts +0 -29
- package/dist/@types/Fingerprinting/src/modules/batteryInfo.d.ts +0 -7
- package/dist/@types/Fingerprinting/src/modules/browserInfo.d.ts +0 -20
- package/dist/@types/Fingerprinting/src/modules/canvasInfo.d.ts +0 -1
- package/dist/@types/Fingerprinting/src/modules/connectionInfo.d.ts +0 -9
- package/dist/@types/Fingerprinting/src/modules/fontsInfo.d.ts +0 -3
- package/dist/@types/Fingerprinting/src/modules/html5Info.d.ts +0 -8
- package/dist/@types/Fingerprinting/src/modules/ipWebRTCInfo.d.ts +0 -1
- package/dist/@types/Fingerprinting/src/modules/screenInfo.d.ts +0 -14
- package/dist/@types/Fingerprinting/src/modules/timeZoneInfo.d.ts +0 -1
- package/dist/@types/Fingerprinting/src/modules/videoCodecsInfo.d.ts +0 -1
- package/dist/@types/Fingerprinting/src/modules/webGLInfo.d.ts +0 -10
- package/dist/@types/Fingerprinting/src/utils/sha256.d.ts +0 -2
- package/dist/@types/src/helpers/styleInject.d.ts +0 -1
- package/dist/js/wrapper.js +0 -1
- /package/dist/{@types/src → src}/@types/IDVCTypes.d.ts +0 -0
- /package/dist/{@types/src → src}/@types/enums.d.ts +0 -0
- /package/dist/{@types/src → src}/entry.d.ts +0 -0
- /package/dist/{@types/src → src}/errors/WrapperError.d.ts +0 -0
- /package/dist/{@types/src → src}/helpers/mobileChecker.d.ts +0 -0
- /package/dist/{@types/src → src}/helpers/typeGuard.d.ts +0 -0
- /package/dist/{@types/src → src}/helpers/validators.d.ts +0 -0
- /package/dist/{@types/src → src}/mocks/defaultValues.d.ts +0 -0
- /package/dist/{@types/src → src}/modules/Api.d.ts +0 -0
- /package/dist/{@types/src → src}/modules/ConsentForm.d.ts +0 -0
- /package/dist/{@types/src → src}/modules/Modal.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import json from '../../mocks/validation.json';
|
|
2
|
-
import
|
|
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
|
|
4
|
-
import
|
|
5
|
-
import
|
|
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;
|
|
@@ -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(
|
|
13
|
-
get firstStepMode(): import(
|
|
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(
|
|
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(
|
|
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,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,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
|
|
2
|
-
import
|
|
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;
|
|
@@ -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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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,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;
|