@idscan/onboarding 2.10.0 → 2.10.2
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 -1
- package/dist/Wrapper.d.ts +223 -0
- package/dist/networks/Face-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/src/Wrapper.d.ts +2 -1
- package/dist/wrapper.es.js +305 -175
- package/dist/wrapper.umd.js +1 -2
- package/package.json +26 -13
- package/readme.md +7 -0
- package/dist/custom_types/custom.d.ts +0 -20
- package/dist/src/@types/Api/Requests.d.ts +0 -22
- package/dist/src/@types/Api/Responses.d.ts +0 -97
- package/dist/src/@types/Data.d.ts +0 -110
- package/dist/src/@types/IDVCTypes.d.ts +0 -5
- package/dist/src/@types/Step.d.ts +0 -26
- package/dist/src/@types/enums.d.ts +0 -89
- package/dist/src/config.d.ts +0 -35
- package/dist/src/entry.d.ts +0 -1
- package/dist/src/errors/ConfigError.d.ts +0 -4
- package/dist/src/errors/FaceAuthorizationError.d.ts +0 -6
- package/dist/src/errors/HttpError.d.ts +0 -4
- package/dist/src/errors/NotValidApplicant.d.ts +0 -4
- package/dist/src/errors/RequestTimeoutError.d.ts +0 -4
- package/dist/src/errors/ValidationError.d.ts +0 -6
- package/dist/src/errors/WrapperError.d.ts +0 -5
- package/dist/src/helpers/fingerPrint.d.ts +0 -19
- package/dist/src/helpers/mobileChecker.d.ts +0 -15
- package/dist/src/helpers/requestModelCheckers.d.ts +0 -4
- package/dist/src/helpers/typeGuard.d.ts +0 -1
- package/dist/src/helpers/utils.d.ts +0 -9
- package/dist/src/helpers/validators.d.ts +0 -7
- package/dist/src/mocks/defaultValues.d.ts +0 -2
- package/dist/src/mocks/validation.json.d.ts +0 -9
- package/dist/src/modules/Api.d.ts +0 -21
- package/dist/src/modules/ConsentForm.d.ts +0 -19
- package/dist/src/modules/Lib.d.ts +0 -24
- package/dist/src/modules/Modal.d.ts +0 -26
- package/dist/src/modules/QRCodeModal.d.ts +0 -25
- package/dist/src/modules/Validation.d.ts +0 -24
- package/dist/src/modules/ValidationModal.d.ts +0 -15
- package/dist/vite.config.d.ts +0 -2
- package/dist/wrapper.es.js.map +0 -1
- package/dist/wrapper.umd.js.map +0 -1
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
type ConsentFormParams = {
|
|
2
|
-
mountElementID: string;
|
|
3
|
-
consentBodyText: string;
|
|
4
|
-
consentCheckboxText: string;
|
|
5
|
-
};
|
|
6
|
-
export default class ConsentForm {
|
|
7
|
-
private proceedBtn;
|
|
8
|
-
private cancelBtn;
|
|
9
|
-
private inputEl;
|
|
10
|
-
private checkboxEl;
|
|
11
|
-
private el;
|
|
12
|
-
private state;
|
|
13
|
-
private target;
|
|
14
|
-
constructor({ mountElementID, consentBodyText, consentCheckboxText, }: ConsentFormParams);
|
|
15
|
-
init(): void;
|
|
16
|
-
get form(): HTMLElement;
|
|
17
|
-
isValidInput(): boolean;
|
|
18
|
-
}
|
|
19
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
-
export default class Lib {
|
|
5
|
-
private library;
|
|
6
|
-
private IdvcConfig;
|
|
7
|
-
private CSSStylesConfig;
|
|
8
|
-
private CSSVariablesConfig;
|
|
9
|
-
initializeLibrary(loadIDVCFromCDN: boolean, idvcVersion: string, IDVCModule?: any): Promise<void>;
|
|
10
|
-
private loadFromNodeModules;
|
|
11
|
-
private loadFromCDN;
|
|
12
|
-
get initialized(): boolean;
|
|
13
|
-
get version(): any;
|
|
14
|
-
set configs({ IdvcConfig, CSSStylesConfig, CSSVariablesConfig }: LibConfig);
|
|
15
|
-
set loading(val: boolean);
|
|
16
|
-
postInitialize(): void;
|
|
17
|
-
cleanBase64: (base64EncodedImage: string | undefined | null) => string;
|
|
18
|
-
validationModel: (data: DataForSubmit) => ValidationModel;
|
|
19
|
-
reloadComponent(newConfig: IDVCConfig | Record<string, never>): void;
|
|
20
|
-
updateDocumentTypes(docTypes: IDocumentTypeConfig): void;
|
|
21
|
-
restart(): void;
|
|
22
|
-
showLoader(val: boolean, bottomText?: string, topText?: string): void;
|
|
23
|
-
mixSubmit(name: keyof IDVCConfig, fn: (data: any) => void): void;
|
|
24
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export default class Modal {
|
|
2
|
-
protected mountEl: HTMLElement;
|
|
3
|
-
modalContainer: HTMLElement;
|
|
4
|
-
protected background: HTMLElement;
|
|
5
|
-
protected container: HTMLElement;
|
|
6
|
-
protected headerContainer: HTMLElement;
|
|
7
|
-
protected headerText: HTMLElement;
|
|
8
|
-
protected body: HTMLElement;
|
|
9
|
-
protected footer: HTMLElement;
|
|
10
|
-
protected spinner: HTMLElement;
|
|
11
|
-
protected closeBtn: HTMLElement;
|
|
12
|
-
protected _closable: boolean;
|
|
13
|
-
constructor(mountEl: HTMLElement | string);
|
|
14
|
-
init(html?: string): void;
|
|
15
|
-
set closable(val: boolean);
|
|
16
|
-
set header(val: string);
|
|
17
|
-
set showBackground(val: boolean);
|
|
18
|
-
set content(val: string);
|
|
19
|
-
toggleCloseBtn(): void;
|
|
20
|
-
closeHandler(): void;
|
|
21
|
-
hideSpinner(): void;
|
|
22
|
-
hide(): void;
|
|
23
|
-
show(): void;
|
|
24
|
-
showSpinner(val: boolean): void;
|
|
25
|
-
prepareBackgroundStyles(): void;
|
|
26
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { default as Modal } from './Modal';
|
|
2
|
-
import { QRCodeModalState } from '../@types/enums';
|
|
3
|
-
export default class QRCodeModal extends Modal {
|
|
4
|
-
private qrCodeCanvas;
|
|
5
|
-
private successResultContainer;
|
|
6
|
-
private errorResultContainer;
|
|
7
|
-
private processReadyContainer;
|
|
8
|
-
private processValidatingContainer;
|
|
9
|
-
private terminateProcessingButton;
|
|
10
|
-
private modalState;
|
|
11
|
-
private mappedState;
|
|
12
|
-
private readonly applicantId;
|
|
13
|
-
private QRCodeURL;
|
|
14
|
-
private domainApi;
|
|
15
|
-
private readonly embeddedAppConnectionId;
|
|
16
|
-
private readonly qrCodeLinkOrigin;
|
|
17
|
-
constructor(mountEl: HTMLElement | string, applicantId: string, domainApi: string, embeddedAppConnectionId: string, qrCodeLinkOrigin: string, state?: QRCodeModalState);
|
|
18
|
-
init(html?: string): void;
|
|
19
|
-
initQRCodeURL(): void;
|
|
20
|
-
set state(newState: QRCodeModalState);
|
|
21
|
-
terminateProcessHandler(): void;
|
|
22
|
-
changeModalBodyView(modalState: QRCodeModalState): void;
|
|
23
|
-
generateQR(url: string): Promise<void>;
|
|
24
|
-
show(): void;
|
|
25
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { default as ValidationModal } from './ValidationModal';
|
|
2
|
-
import { ValidationApplicant } from '../@types/Api/Responses';
|
|
3
|
-
export default class Validation {
|
|
4
|
-
private modal;
|
|
5
|
-
private statuses;
|
|
6
|
-
private status;
|
|
7
|
-
private code;
|
|
8
|
-
private message;
|
|
9
|
-
private isCompleted;
|
|
10
|
-
private invalidDataErrors;
|
|
11
|
-
private attemptsLeft;
|
|
12
|
-
private attemptsCount;
|
|
13
|
-
private notificationType;
|
|
14
|
-
private result;
|
|
15
|
-
constructor(response: ValidationApplicant, modal: ValidationModal);
|
|
16
|
-
parseResponse(response: ValidationApplicant): void;
|
|
17
|
-
calculateType(): void;
|
|
18
|
-
calculateHeader(): void;
|
|
19
|
-
calculateContent(): void;
|
|
20
|
-
calculateFooter(): void;
|
|
21
|
-
prepareModal(): void;
|
|
22
|
-
showModal(): void;
|
|
23
|
-
hideModal(): void;
|
|
24
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ValidationButtonNames, ValidationButtonsState } from '../@types/Data';
|
|
2
|
-
import { ValidationStatus } from '../@types/enums';
|
|
3
|
-
import { default as Modal } from './Modal';
|
|
4
|
-
export default class ValidationModal extends Modal {
|
|
5
|
-
private headerSign;
|
|
6
|
-
private tryAgainBtn;
|
|
7
|
-
private completeBtn;
|
|
8
|
-
init(html?: string): void;
|
|
9
|
-
set type(rawType: ValidationStatus);
|
|
10
|
-
set buttons({ tryAgain, complete }: ValidationButtonsState);
|
|
11
|
-
applySuccessValidationStyles(): void;
|
|
12
|
-
setBtnVisible(btnName: ValidationButtonNames, visible: boolean): void;
|
|
13
|
-
addTryAgainHandler(): void;
|
|
14
|
-
addCompleteHandler(handler?: () => void): void;
|
|
15
|
-
}
|
package/dist/vite.config.d.ts
DELETED