@idscan/onboarding 2.6.2 → 2.6.3
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/@types/src/@types/Api/Requests.d.ts +2 -2
- package/dist/@types/src/@types/Api/Responses.d.ts +2 -2
- package/dist/@types/src/@types/Data.d.ts +3 -3
- package/dist/@types/src/@types/IDVCTypes.d.ts +3 -2
- package/dist/@types/src/@types/enums.d.ts +3 -2
- package/dist/@types/src/helpers/requestModelCheckers.d.ts +3 -3
- package/dist/@types/src/modules/Validation.d.ts +1 -0
- package/dist/js/wrapper.js +1 -1
- package/package.json +2 -2
- package/readme.md +4 -0
- package/dist/networks/generalTypeDetectionYolo.onnx.gzip +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Base64Image,
|
|
1
|
+
import type { Base64Image, IDVCDocumentTypeIndex } from '../IDVCTypes';
|
|
2
2
|
export type FaceAuthorizationModel = {
|
|
3
3
|
faceImageBase64: Base64Image;
|
|
4
4
|
};
|
|
@@ -8,7 +8,7 @@ export type ValidationModel = FaceAuthorizationModel & {
|
|
|
8
8
|
trackString: string;
|
|
9
9
|
ssn: string;
|
|
10
10
|
verifyFace: boolean;
|
|
11
|
-
documentType: 0 |
|
|
11
|
+
documentType: 0 | IDVCDocumentTypeIndex | 10;
|
|
12
12
|
captureMethod: string;
|
|
13
13
|
userAgent: string;
|
|
14
14
|
frontEndMetadata: string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import json from '../../mocks/validation.json';
|
|
2
|
-
import type {
|
|
2
|
+
import type { IDVCDocumentTypeIndex } from '../IDVCTypes';
|
|
3
3
|
import { ResponseStatus } from '../enums';
|
|
4
4
|
type JSON = string;
|
|
5
5
|
type AdditionalData = Record<string, string>;
|
|
@@ -67,7 +67,7 @@ export type SuccessConfiguration = {
|
|
|
67
67
|
showQrCode: boolean;
|
|
68
68
|
};
|
|
69
69
|
export type SuccessApplicantValidation = {
|
|
70
|
-
documentType:
|
|
70
|
+
documentType: IDVCDocumentTypeIndex;
|
|
71
71
|
document: ApplicantDocument;
|
|
72
72
|
attemptsLeft: number;
|
|
73
73
|
status: ResponseStatus;
|
|
@@ -2,7 +2,7 @@ import { ValidationStatus } from './enums';
|
|
|
2
2
|
import WrapperError from '../errors/WrapperError';
|
|
3
3
|
import type { StepCallback, StepConfig, StepMode } from './Step';
|
|
4
4
|
import type { SuccessConfiguration, ValidationApplicant } from './Api/Responses';
|
|
5
|
-
import type {
|
|
5
|
+
import type { IDVCDocumentTypeIndex, IDVCDocumentTypeName, RealFaceModeType, SupportedLanguage } from './IDVCTypes';
|
|
6
6
|
type ValidateCallbackData = ValidationApplicant & {
|
|
7
7
|
forceComplete?: boolean;
|
|
8
8
|
};
|
|
@@ -23,14 +23,14 @@ export type ConsentFormState = {
|
|
|
23
23
|
checkboxState: boolean;
|
|
24
24
|
};
|
|
25
25
|
export type DocumentType = {
|
|
26
|
-
type:
|
|
26
|
+
type: IDVCDocumentTypeName;
|
|
27
27
|
steps: StepConfig[];
|
|
28
28
|
};
|
|
29
29
|
export type DataForSubmit = {
|
|
30
30
|
metaData?: string;
|
|
31
31
|
payload?: Record<string, any>;
|
|
32
32
|
steps: StepCallback[];
|
|
33
|
-
documentType:
|
|
33
|
+
documentType: IDVCDocumentTypeIndex;
|
|
34
34
|
};
|
|
35
35
|
export interface IDVCConfigCallbacks {
|
|
36
36
|
onRetakeHook?: (data: StepCallback) => void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export type
|
|
1
|
+
import type { DocumentTypeIndex, DocumentTypeName } from '@idscan/idvc2/dist/types/environment/documentTypes';
|
|
2
|
+
export type IDVCDocumentTypeIndex = DocumentTypeIndex;
|
|
3
|
+
export type IDVCDocumentTypeName = DocumentTypeName;
|
|
3
4
|
export type SupportedLanguage = 'en' | 'es';
|
|
4
5
|
export type RealFaceModeType = 'auto' | 'none' | 'all';
|
|
5
6
|
export type Base64Image = string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { StepCallback } from '../@types/Step';
|
|
2
|
-
import type {
|
|
3
|
-
export declare const checkBackOrSecondImageProcessing: (documentType:
|
|
4
|
-
export declare const checkOcrEnabled: (documentType:
|
|
2
|
+
import type { IDVCDocumentTypeIndex } from '../@types/IDVCTypes';
|
|
3
|
+
export declare const checkBackOrSecondImageProcessing: (documentType: IDVCDocumentTypeIndex, steps: StepCallback[]) => boolean;
|
|
4
|
+
export declare const checkOcrEnabled: (documentType: IDVCDocumentTypeIndex, steps: StepCallback[]) => boolean;
|