UNPKG

@idscan/idvc2

Version:

component for the capturing documents

40 lines (39 loc) 1.66 kB
export type DocumentTypeIndex = 1 | 2 | 3 | 4 | 6 | 7 | 9 | 10 | 11; export type DIVEDocumentTypeIndex = 1 | 2 | 3 | 6 | 7 | 9 | 10 | 11; export type DocumentTypeName = 'DL' | 'IC' | 'Passport' | 'PassportCard' | 'GreenCard' | 'InternationalId' | 'Barcode' | 'FaceAuthorization' | 'EmploymentAuthorization'; export type HumanName = 'Driver\'s License' | 'Identification Card' | 'Passport' | 'US Passport Card' | 'Green Card' | 'International ID' | '1-D and 2-D Barcodes' | 'Face Authorization' | 'Employment Authorization'; export type ImageSource = 'video' | 'file'; export declare enum DocumentTypeIDs { 'DL' = 1, 'IC' = 1, 'Passport' = 2, 'PassportCard' = 3, 'GreenCard' = 6, 'InternationalId' = 7, 'Barcode' = 11, 'FaceAuthorization' = 10, 'EmploymentAuthorization' = 9 } export interface DocumentRecord { name: DocumentTypeName; id: DocumentTypeIndex; diveDocumentID: DIVEDocumentTypeIndex; nName: string; humanName: HumanName; } interface DocumentType { readonly items: DocumentRecord[]; length: number; ids(): DocumentTypeIndex[]; names(): DocumentTypeName[]; nameById(id: DocumentTypeIndex | 0): DocumentTypeName | ''; humanNameById(id: DocumentTypeIndex | 0): HumanName | ''; humanNames(): HumanName[]; humanNameByName(name: DocumentTypeName): HumanName | ''; idByName(name: DocumentTypeName): DocumentTypeIndex | 0; idsByNames(names: DocumentTypeName[]): (DocumentTypeIndex | 0)[]; recordById(id: DocumentTypeIndex | 0): DocumentRecord | null; setHumanName(names: any): void; } declare const documentType: DocumentType; export default documentType;