@idscan/onboarding 2.6.4 → 2.7.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.
- package/dist/@types/src/@types/Api/Responses.d.ts +1 -0
- package/dist/@types/src/@types/Data.d.ts +2 -0
- package/dist/@types/src/@types/IDVCTypes.d.ts +2 -3
- package/dist/@types/src/@types/Step.d.ts +1 -1
- package/dist/@types/src/@types/enums.d.ts +6 -0
- package/dist/@types/src/Wrapper.d.ts +2 -3
- package/dist/@types/src/config.d.ts +1 -0
- package/dist/@types/src/helpers/styleInject.d.ts +1 -0
- package/dist/@types/src/helpers/validators.d.ts +2 -1
- package/dist/@types/src/modules/Api.d.ts +2 -0
- package/dist/@types/src/modules/Lib.d.ts +8 -5
- package/dist/@types/src/modules/Validation.d.ts +1 -0
- package/dist/js/wrapper.js +1 -2
- package/dist/networks/GeneralTypeDetectionYolo-chunk.js +1 -1
- package/dist/networks/PDF-chunk.js +1 -1
- package/dist/networks/yoloFaceFingers.onnx.gzip +0 -0
- package/package.json +5 -3
- package/readme.md +13 -2
- package/dist/css/onboarding.css +0 -2
- package/dist/js/wrapper.js.LICENSE.txt +0 -1
- package/dist/networks/generalTypeDetectionYolo29052024.onnx.gzip +0 -0
|
@@ -8,6 +8,7 @@ type ValidateCallbackData = ValidationApplicant & {
|
|
|
8
8
|
};
|
|
9
9
|
export type ValidationButtonNames = 'tryAgain' | 'complete';
|
|
10
10
|
export type JSONString = string;
|
|
11
|
+
export type PackageNumberVersion = string;
|
|
11
12
|
export type Statuses = Record<string, string>;
|
|
12
13
|
export type ValidationButtonsState = {
|
|
13
14
|
[key in ValidationButtonNames]: boolean;
|
|
@@ -97,6 +98,7 @@ export interface IWrapperConfig {
|
|
|
97
98
|
wrapperSettings?: Partial<Omit<SuccessConfiguration, 'jsonSettings' | 'cssStyles' | 'cssVariables'>>;
|
|
98
99
|
qrCodeLinkOrigin?: string;
|
|
99
100
|
getApplicantIdFromURL?: boolean;
|
|
101
|
+
IDVCDownloadVersion?: PackageNumberVersion | 'latest';
|
|
100
102
|
}
|
|
101
103
|
export interface LibConfig {
|
|
102
104
|
IdvcConfig: IDVCConfig;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export type
|
|
3
|
-
export type IDVCDocumentTypeName = DocumentTypeName;
|
|
1
|
+
export type IDVCDocumentTypeIndex = 1 | 2 | 3 | 6 | 7 | 8 | 9 | 10 | 11;
|
|
2
|
+
export type IDVCDocumentTypeName = 'ID' | 'Passport' | 'PassportCard' | 'GreenCard' | 'InternationalId' | 'VIN' | 'Barcode' | 'FaceAuthorization' | 'EmploymentAuthorization';
|
|
4
3
|
export type SupportedLanguage = 'en' | 'es';
|
|
5
4
|
export type RealFaceModeType = 'auto' | 'none' | 'all';
|
|
6
5
|
export type Base64Image = string;
|
|
@@ -32,6 +32,12 @@ export declare enum WorkMode {
|
|
|
32
32
|
VALIDATION = "validation",
|
|
33
33
|
FACE_AUTHORIZATION = "faceAuthorization"
|
|
34
34
|
}
|
|
35
|
+
export declare enum NotificationText {
|
|
36
|
+
'' = 0,
|
|
37
|
+
'sent via SMS' = 1,
|
|
38
|
+
'sent via email' = 2,
|
|
39
|
+
'sent via SMS or email' = 3
|
|
40
|
+
}
|
|
35
41
|
export declare enum DocumentTypeIDs {
|
|
36
42
|
'ID' = 1,
|
|
37
43
|
'Passport' = 2,
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import '@idscan/idvc2/dist/css/idvc.css';
|
|
2
|
-
import './assets/scss/index.scss';
|
|
3
1
|
import 'core-js/stable';
|
|
4
2
|
import 'regenerator-runtime/runtime';
|
|
5
3
|
import { IWrapperConfig, JSONString } from './@types/Data';
|
|
@@ -7,6 +5,7 @@ export default class Wrapper {
|
|
|
7
5
|
private api;
|
|
8
6
|
private lib;
|
|
9
7
|
private configs;
|
|
8
|
+
private IDVCModule;
|
|
10
9
|
private validationOutput;
|
|
11
10
|
private form;
|
|
12
11
|
private validationModal;
|
|
@@ -17,7 +16,7 @@ export default class Wrapper {
|
|
|
17
16
|
private readonly fingerPrintData;
|
|
18
17
|
private qrCodeBtn;
|
|
19
18
|
private wrapperContainerId;
|
|
20
|
-
constructor(config: IWrapperConfig);
|
|
19
|
+
constructor(config: IWrapperConfig, IDVCModule?: any);
|
|
21
20
|
private get isEmbeddedFromQR();
|
|
22
21
|
private get QRCodeIsAvailable();
|
|
23
22
|
updateConfig(newConfig: JSONString): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const applyStyles: (scssString: string) => void;
|
|
@@ -2,5 +2,6 @@ declare const notEmptyString: (val: string) => boolean;
|
|
|
2
2
|
declare const isUUID: (str: string) => boolean;
|
|
3
3
|
declare const isPublicKey: (str: string) => boolean;
|
|
4
4
|
declare const isElExist: (str: string) => boolean;
|
|
5
|
-
|
|
5
|
+
declare const isPackageVersionNumber: (input: string) => boolean;
|
|
6
|
+
export { notEmptyString, isUUID, isPublicKey, isElExist, isPackageVersionNumber, };
|
|
6
7
|
export type ValidateFunctions = typeof notEmptyString | typeof isUUID | typeof isPublicKey | typeof isElExist;
|
|
@@ -3,6 +3,7 @@ import { CompletedApplicant, SuccessConfiguration, ValidationApplicantResult } f
|
|
|
3
3
|
export default class Api {
|
|
4
4
|
private readonly baseUrl;
|
|
5
5
|
private readonly baseEmbeddedUrl;
|
|
6
|
+
private readonly idvcManifestUrl;
|
|
6
7
|
private HEADERS;
|
|
7
8
|
constructor(publicKey: string, domainApi?: string);
|
|
8
9
|
checkApplicantIdIsNotClosed({ applicantId, demoMode, faceAuth, faceOnly, }: {
|
|
@@ -11,6 +12,7 @@ export default class Api {
|
|
|
11
12
|
faceAuth?: boolean | undefined;
|
|
12
13
|
faceOnly?: boolean | undefined;
|
|
13
14
|
}): Promise<boolean> | never;
|
|
15
|
+
getCurrentIdvcVersion(): Promise<string>;
|
|
14
16
|
getOptions(integrationId: string): Promise<SuccessConfiguration | never>;
|
|
15
17
|
validateApplicant(data: ValidationRequest, demoMode?: boolean, isFaceAuth?: boolean): ValidationApplicantResult;
|
|
16
18
|
forceClose(applicantId: string): Promise<CompletedApplicant | never>;
|
|
@@ -1,16 +1,19 @@
|
|
|
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';
|
|
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';
|
|
4
4
|
export default class Lib {
|
|
5
5
|
private library;
|
|
6
6
|
private IdvcConfig;
|
|
7
7
|
private CSSStylesConfig;
|
|
8
8
|
private CSSVariablesConfig;
|
|
9
|
+
initializeLibrary(loadIDVCFromCDN: boolean, idvcVersion: string, IDVCModule?: any): Promise<void>;
|
|
10
|
+
private loadFromNodeModules;
|
|
11
|
+
private loadFromCDN;
|
|
9
12
|
get initialized(): boolean;
|
|
10
|
-
get version():
|
|
13
|
+
get version(): any;
|
|
11
14
|
set configs({ IdvcConfig, CSSStylesConfig, CSSVariablesConfig }: LibConfig);
|
|
12
15
|
set loading(val: boolean);
|
|
13
|
-
|
|
16
|
+
postInitialize(): void;
|
|
14
17
|
cleanBase64: (base64EncodedImage: string | undefined | null) => string;
|
|
15
18
|
validationModel: (data: DataForSubmit) => ValidationModel;
|
|
16
19
|
reloadComponent(newConfig: IDVCConfig | Record<string, never>): void;
|
|
@@ -9,6 +9,7 @@ export default class Validation {
|
|
|
9
9
|
private invalidDataErrors;
|
|
10
10
|
private attemptsLeft;
|
|
11
11
|
private attemptsCount;
|
|
12
|
+
private notificationType;
|
|
12
13
|
private result;
|
|
13
14
|
constructor(response: ValidationApplicant, modal: ValidationModal);
|
|
14
15
|
parseResponse(response: ValidationApplicant): void;
|