UNPKG

@scandit/web-datacapture-id

Version:

Scandit Data Capture SDK for the Web

56 lines (55 loc) 2.5 kB
import type { JSONType } from "@scandit/web-datacapture-core"; import type { Serializable } from "@scandit/web-datacapture-core/build/js/private/Serializable"; import { Duration } from "./Duration"; import type { DurationJSON } from "./SerializedTypes"; import { IdAnonymizationMode, IdCaptureTrigger, IdImageType, type IdFieldType } from "./Enums"; import type { IdCaptureDocument, IdCaptureDocumentJSON } from "./document/IdCaptureDocument"; import { IdCaptureScanner, type IdCaptureScannerJSON } from "./scanner/IdCaptureScanner"; export interface IdCaptureSettingsJSON { acceptedDocuments: IdCaptureDocumentJSON[]; rejectedDocuments: IdCaptureDocumentJSON[]; scannerType: IdCaptureScannerJSON; imageToResult: Record<IdImageType, boolean>; anonymizationMode: IdAnonymizationMode; anonymizationMap: Record<string, IdFieldType[]>; captureTrigger: IdCaptureTrigger; rejectVoidedIds: boolean; decodeBackOfEuropeanDrivingLicense: boolean; rejectExpiredIds: boolean; rejectNotRealIdCompliant: boolean; rejectInconsistentData: boolean; rejectHolderBelowAge: number | null; rejectIdsExpiringIn: DurationJSON | null; notifyOnSideCapture: boolean; properties: JSONType; } export declare class IdCaptureSettings implements Serializable<IdCaptureSettingsJSON> { acceptedDocuments: IdCaptureDocument[]; rejectedDocuments: IdCaptureDocument[]; scanner: IdCaptureScanner; anonymizationMode: IdAnonymizationMode; captureTrigger: IdCaptureTrigger; rejectVoidedIds: boolean; decodeBackOfEuropeanDrivingLicense: boolean; rejectExpiredIds: boolean; rejectNotRealIdCompliant: boolean; rejectInconsistentData: boolean; rejectHolderBelowAge: number | null; rejectIdsExpiringIn: Duration | null; notifyOnSideCapture: boolean; private properties; private imageToResult; private anonymizationMap; constructor(); setProperty(name: string, value: any): void; getProperty(name: string): any; setShouldPassImageTypeToResult(type: IdImageType, shouldPass: boolean): void; getShouldPassImageTypeToResult(type: IdImageType): boolean; addAnonymizedField(document: IdCaptureDocument, fieldType: IdFieldType): void; removeAnonymizedField(document: IdCaptureDocument, fieldType: IdFieldType): void; clearAnonymizedFields(): void; clone(): IdCaptureSettings; toJSONObject(): IdCaptureSettingsJSON; private static fromJSON; private static createDocumentFromJSON; }