scandit-datacapture-frameworks-id 7.6.2 → 8.0.0-beta.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/dts/common/DataConsistencyCheck.d.ts +9 -0
- package/dist/dts/common/DateResult.d.ts +1 -1
- package/dist/dts/common/RegionSpecificSubtype.d.ts +0 -1
- package/dist/dts/common/Sex.d.ts +5 -0
- package/dist/dts/common/index.d.ts +2 -0
- package/dist/dts/defaults/IdDefaults.d.ts +7 -1
- package/dist/dts/defaults/SerializedTypes.d.ts +68 -33
- package/dist/dts/id/AamvaBarcodeVerificationResult.d.ts +0 -3
- package/dist/dts/id/BarcodeResult.d.ts +10 -0
- package/dist/dts/id/CapturedId.d.ts +29 -13
- package/dist/dts/id/DataConsistencyResult.d.ts +14 -0
- package/dist/dts/id/DrivingLicenseCategory.d.ts +12 -0
- package/dist/dts/id/DrivingLicenseDetails.d.ts +13 -0
- package/dist/dts/id/IdFieldType.d.ts +31 -0
- package/dist/dts/id/MRZResult.d.ts +11 -9
- package/dist/dts/id/MobileDocumentDataElement.d.ts +33 -0
- package/dist/dts/id/MobileDocumentOCRResult.d.ts +22 -0
- package/dist/dts/id/MobileDocumentResult.d.ts +35 -0
- package/dist/dts/id/ProfessionalDrivingPermit.d.ts +1 -1
- package/dist/dts/id/VIZResult.d.ts +12 -3
- package/dist/dts/id/VerificationResult.d.ts +14 -0
- package/dist/dts/id/index.d.ts +10 -4
- package/dist/dts/idcapture/IdCapture.d.ts +11 -21
- package/dist/dts/idcapture/IdCaptureFeedback.d.ts +3 -1
- package/dist/dts/idcapture/IdCaptureOverlay.d.ts +4 -16
- package/dist/dts/idcapture/IdCaptureSettings.d.ts +4 -1
- package/dist/dts/idcapture/controller/IdCaptureController.d.ts +22 -11
- package/dist/dts/idcapture/controller/IdCaptureListenerController.d.ts +34 -5
- package/dist/dts/idcapture/index.d.ts +0 -1
- package/dist/dts/scanner/FullDocumentScanner.d.ts +2 -2
- package/dist/dts/scanner/IdCaptureScanner.d.ts +9 -1
- package/dist/dts/scanner/MobileDocumentScanner.d.ts +11 -0
- package/dist/dts/scanner/PhysicalDocumentScanner.d.ts +2 -0
- package/dist/dts/scanner/SingleSideScanner.d.ts +2 -2
- package/dist/dts/scanner/index.d.ts +2 -0
- package/dist/index.js +755 -481
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/dist/dts/id/AamvaBarcodeVerifier.d.ts +0 -16
- package/dist/dts/id/CommonCapturedIdFields.d.ts +0 -28
- package/dist/dts/idcapture/controller/IdCaptureListenerProxy.d.ts +0 -12
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare enum DataConsistencyCheck {
|
|
2
|
+
IssuingCountryComparison = "issuingCountryComparison",
|
|
3
|
+
IssuingJurisdictionComparison = "issuingJurisdictionComparison",
|
|
4
|
+
FullNameComparison = "fullNameComparison",
|
|
5
|
+
DocumentNumberComparison = "documentNumberComparison",
|
|
6
|
+
DateOfBirthComparison = "dateOfBirthComparison",
|
|
7
|
+
DateOfExpiryComparison = "dateOfExpiryComparison",
|
|
8
|
+
DateOfIssueComparison = "dateOfIssueComparison"
|
|
9
|
+
}
|
|
@@ -8,7 +8,6 @@ export declare enum RegionSpecificSubtype {
|
|
|
8
8
|
ApecBusinessTravelCard = "apecBusinessTravelCard",
|
|
9
9
|
PakistanAfghanCitizenCard = "pakistanAfghanCitizenCard",
|
|
10
10
|
SingaporeFinCard = "singaporeFinCard",
|
|
11
|
-
UsGreenCard = "usGreenCard",
|
|
12
11
|
MalaysiaIkad = "malaysiaIkad",
|
|
13
12
|
MalaysiaMykad = "malaysiaMykad",
|
|
14
13
|
MalaysiaMypr = "malaysiaMypr",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './DateResult';
|
|
2
|
+
export * from './DataConsistencyCheck';
|
|
2
3
|
export * from './IdAnonymizationMode';
|
|
3
4
|
export * from './IdImageType';
|
|
4
5
|
export * from './CapturedSides';
|
|
@@ -10,3 +11,4 @@ export * from './RegionSpecificSubtype';
|
|
|
10
11
|
export * from './IdSide';
|
|
11
12
|
export * from './IdImages';
|
|
12
13
|
export * from './Duration';
|
|
14
|
+
export * from './Sex';
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import { CameraSettings, Color, Feedback } from "scandit-datacapture-frameworks-core";
|
|
1
|
+
import { CameraSettings, Color, Feedback, Sound } from "scandit-datacapture-frameworks-core";
|
|
2
2
|
import { IdAnonymizationMode } from "../common/IdAnonymizationMode";
|
|
3
3
|
import { Duration } from "../common/Duration";
|
|
4
|
+
import { IdLayoutStyle } from "../idcapture/IdLayoutStyle";
|
|
5
|
+
import { IdLayoutLineStyle } from "../idcapture/IdLayoutLineStyle";
|
|
4
6
|
export interface IdDefaults {
|
|
5
7
|
IdCapture: {
|
|
6
8
|
Feedback: {
|
|
7
9
|
idCaptured: Feedback;
|
|
8
10
|
idRejected: Feedback;
|
|
9
11
|
};
|
|
12
|
+
DefaultSuccessSound: Sound;
|
|
13
|
+
DefaultFailureSound: Sound;
|
|
10
14
|
IdCaptureOverlayDefaults: {
|
|
11
15
|
defaultCapturedBrush: {
|
|
12
16
|
fillColor: Color;
|
|
@@ -23,6 +27,8 @@ export interface IdDefaults {
|
|
|
23
27
|
strokeColor: Color;
|
|
24
28
|
strokeWidth: number;
|
|
25
29
|
};
|
|
30
|
+
defaultIdLayoutStyle: IdLayoutStyle;
|
|
31
|
+
defaultIdLayoutLineStyle: IdLayoutLineStyle;
|
|
26
32
|
};
|
|
27
33
|
RecommendedCameraSettings: CameraSettings;
|
|
28
34
|
IdCaptureSettings: {
|
|
@@ -5,6 +5,18 @@ export interface DateResultJSON {
|
|
|
5
5
|
month: number;
|
|
6
6
|
year: number;
|
|
7
7
|
}
|
|
8
|
+
export interface CommonIdFieldsJSON {
|
|
9
|
+
firstName: string | null;
|
|
10
|
+
lastName: string | null;
|
|
11
|
+
fullName: string;
|
|
12
|
+
sex: string | null;
|
|
13
|
+
dateOfBirth: DateResultJSON | null;
|
|
14
|
+
nationality: string | null;
|
|
15
|
+
address: string | null;
|
|
16
|
+
documentNumber: string | null;
|
|
17
|
+
dateOfExpiry: DateResultJSON | null;
|
|
18
|
+
dateOfIssue: DateResultJSON | null;
|
|
19
|
+
}
|
|
8
20
|
export interface ProfessionalDrivingPermitJSON {
|
|
9
21
|
dateOfExpiry: DateResultJSON;
|
|
10
22
|
codes: string[];
|
|
@@ -14,26 +26,58 @@ export interface VehicleRestrictionJSON {
|
|
|
14
26
|
vehicleRestriction: string;
|
|
15
27
|
dateOfIssue: DateResultJSON;
|
|
16
28
|
}
|
|
17
|
-
export interface
|
|
29
|
+
export interface DrivingLicenseCategoryJSON {
|
|
30
|
+
code: string;
|
|
31
|
+
dateOfIssue: DateResultJSON | null;
|
|
32
|
+
dateOfExpiry: DateResultJSON | null;
|
|
33
|
+
}
|
|
34
|
+
export interface DrivingLicenseDetailsJSON {
|
|
35
|
+
drivingLicenseCategories: DrivingLicenseCategoryJSON[];
|
|
36
|
+
restrictions: string | null;
|
|
37
|
+
endorsements: string | null;
|
|
38
|
+
}
|
|
39
|
+
export interface DataConsistencyResultJSON {
|
|
40
|
+
allChecksPassed: boolean;
|
|
41
|
+
failedChecks: string[];
|
|
42
|
+
skippedChecks: string[];
|
|
43
|
+
passedChecks: string[];
|
|
44
|
+
frontReviewImage: string | null;
|
|
45
|
+
}
|
|
46
|
+
export interface MobileDocumentResultJSON extends CommonIdFieldsJSON {
|
|
47
|
+
portrait: string | null;
|
|
48
|
+
issuingAuthority: string;
|
|
49
|
+
administrativeNumber: string | null;
|
|
50
|
+
height: number | null;
|
|
51
|
+
weight: number | null;
|
|
52
|
+
eyeColor: string | null;
|
|
53
|
+
hairColor: string | null;
|
|
54
|
+
birthPlace: string | null;
|
|
55
|
+
drivingLicenseCategories: DrivingLicenseCategoryJSON[];
|
|
56
|
+
residentCity: string | null;
|
|
57
|
+
residentCountry: string | null;
|
|
58
|
+
age: number | null;
|
|
59
|
+
issuingCountryIso: string | null;
|
|
60
|
+
issuingJurisdictionIso: string | null;
|
|
61
|
+
}
|
|
62
|
+
export interface MobileDocumentOCRResultJSON {
|
|
18
63
|
firstName: string | null;
|
|
19
64
|
lastName: string | null;
|
|
20
65
|
fullName: string;
|
|
21
|
-
secondaryLastName: string | null;
|
|
22
|
-
sex: string | null;
|
|
23
66
|
dateOfBirth: DateResultJSON | null;
|
|
24
|
-
|
|
25
|
-
|
|
67
|
+
documentNumber: string | null;
|
|
68
|
+
dateOfExpiry: DateResultJSON | null;
|
|
69
|
+
issuingJurisdiction: string | null;
|
|
70
|
+
issuingJurisdictionIso: string | null;
|
|
71
|
+
sex: string | null;
|
|
26
72
|
nationality: string | null;
|
|
27
73
|
address: string | null;
|
|
28
74
|
documentAdditionalNumber: string | null;
|
|
29
|
-
documentType: IdCaptureDocumentType | null;
|
|
30
|
-
documentSubtype: RegionSpecificSubtype | null;
|
|
31
|
-
documentNumber: string | null;
|
|
32
|
-
issuingCountry: IdCaptureRegion;
|
|
33
|
-
issuingCountryIso: string | null;
|
|
34
|
-
dateOfExpiry: DateResultJSON | null;
|
|
35
75
|
dateOfIssue: DateResultJSON | null;
|
|
36
76
|
}
|
|
77
|
+
export interface VerificationResultJSON {
|
|
78
|
+
dataConsistencyResult: DataConsistencyResultJSON | null;
|
|
79
|
+
aamvaBarcodeVerification: AamvaBarcodeVerificationResultJSON | null;
|
|
80
|
+
}
|
|
37
81
|
export interface ImageInfoJSON {
|
|
38
82
|
front: ImageJSON | null;
|
|
39
83
|
back: ImageJSON | null;
|
|
@@ -43,30 +87,25 @@ export interface ImageJSON {
|
|
|
43
87
|
frame: string | null;
|
|
44
88
|
croppedDocument: string | null;
|
|
45
89
|
}
|
|
46
|
-
export interface CapturedIdJSON {
|
|
47
|
-
firstName: string | null;
|
|
48
|
-
lastName: string | null;
|
|
49
|
-
fullName: string;
|
|
50
|
-
secondaryLastName: string | null;
|
|
51
|
-
sex: string | null;
|
|
52
|
-
dateOfBirth: DateResultJSON | null;
|
|
90
|
+
export interface CapturedIdJSON extends CommonIdFieldsJSON {
|
|
53
91
|
age: number | null;
|
|
54
92
|
isExpired: boolean | null;
|
|
55
|
-
nationality: string | null;
|
|
56
|
-
address: string | null;
|
|
57
93
|
documentType: IdCaptureDocumentType | null;
|
|
94
|
+
documentSubtype: RegionSpecificSubtype | null;
|
|
58
95
|
issuingCountryIso: string | null;
|
|
59
|
-
issuingCountry:
|
|
96
|
+
issuingCountry: IdCaptureRegion;
|
|
60
97
|
documentAdditionalNumber: string | null;
|
|
61
|
-
documentNumber: string | null;
|
|
62
|
-
dateOfExpiry: DateResultJSON | null;
|
|
63
|
-
dateOfIssue: DateResultJSON | null;
|
|
64
98
|
imageInfo: ImageInfoJSON | null;
|
|
65
99
|
barcodeResult: BarcodeResultJSON | null;
|
|
66
100
|
mrzResult: MRZResultJSON | null;
|
|
67
101
|
vizResult: VIZResultJSON | null;
|
|
102
|
+
mobileDocument: MobileDocumentResultJSON | null;
|
|
103
|
+
mobileDocumentOcrResult: MobileDocumentOCRResultJSON | null;
|
|
104
|
+
verificationResult: VerificationResultJSON | null;
|
|
105
|
+
isCitizenPassport: boolean;
|
|
106
|
+
anonymizedFields: string[];
|
|
68
107
|
}
|
|
69
|
-
export interface BarcodeResultJSON {
|
|
108
|
+
export interface BarcodeResultJSON extends CommonIdFieldsJSON {
|
|
70
109
|
aamvaVersion: number;
|
|
71
110
|
isRealId: boolean;
|
|
72
111
|
aliasFamilyName: string | null;
|
|
@@ -159,11 +198,9 @@ export interface AamvaBarcodeVerificationResultJSON {
|
|
|
159
198
|
allChecksPassed: boolean;
|
|
160
199
|
verificationStatus: 'authentic' | 'maybeForged' | 'forged';
|
|
161
200
|
}
|
|
162
|
-
export interface MRZResultJSON {
|
|
201
|
+
export interface MRZResultJSON extends CommonIdFieldsJSON {
|
|
163
202
|
documentCode: string;
|
|
164
203
|
namesAreTruncated: boolean;
|
|
165
|
-
optional: string | null;
|
|
166
|
-
optional1: string | null;
|
|
167
204
|
optionalDataInLine1: string | null;
|
|
168
205
|
optionalDataInLine2: string | null;
|
|
169
206
|
capturedMrz: string;
|
|
@@ -177,7 +214,7 @@ export interface MRZResultJSON {
|
|
|
177
214
|
passportNumber: string | null;
|
|
178
215
|
passportDateOfExpiry: DateResultJSON | null;
|
|
179
216
|
}
|
|
180
|
-
export interface VIZResultJSON {
|
|
217
|
+
export interface VIZResultJSON extends CommonIdFieldsJSON {
|
|
181
218
|
additionalAddressInformation: string | null;
|
|
182
219
|
additionalNameInformation: string | null;
|
|
183
220
|
documentAdditionalNumber: string | null;
|
|
@@ -201,8 +238,6 @@ export interface VIZResultJSON {
|
|
|
201
238
|
fathersName: string | null;
|
|
202
239
|
visaNumber: string | null;
|
|
203
240
|
passportNumber: string | null;
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
secondaryLastName: string | null;
|
|
207
|
-
fullName: string;
|
|
241
|
+
vehicleOwner: string | null;
|
|
242
|
+
drivingLicenseDetails: DrivingLicenseDetailsJSON | null;
|
|
208
243
|
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { AamvaBarcodeVerificationStatus } from "./AamvaBarcodeVerificationStatus";
|
|
2
2
|
export declare class AamvaBarcodeVerificationResult {
|
|
3
3
|
private json;
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated
|
|
6
|
-
*/
|
|
7
4
|
get allChecksPassed(): boolean;
|
|
8
5
|
private _status;
|
|
9
6
|
get status(): AamvaBarcodeVerificationStatus;
|
|
@@ -91,6 +91,16 @@ export declare class BarcodeResult {
|
|
|
91
91
|
get barcodeDataElements(): {
|
|
92
92
|
[key: string]: string;
|
|
93
93
|
};
|
|
94
|
+
get firstName(): string | null;
|
|
95
|
+
get lastName(): string | null;
|
|
96
|
+
get fullName(): string | null;
|
|
97
|
+
get sex(): string | null;
|
|
98
|
+
get dateOfBirth(): DateResult | null;
|
|
99
|
+
get nationality(): string | null;
|
|
100
|
+
get address(): string | null;
|
|
101
|
+
get documentNumber(): string | null;
|
|
102
|
+
get dateOfExpiry(): DateResult | null;
|
|
103
|
+
get dateOfIssue(): DateResult | null;
|
|
94
104
|
}
|
|
95
105
|
export interface PrivateBarcodeResult {
|
|
96
106
|
fromJSON(json: BarcodeResultJSON): BarcodeResult;
|
|
@@ -1,32 +1,25 @@
|
|
|
1
1
|
import { CapturedIdJSON } from '../defaults/SerializedTypes';
|
|
2
|
-
import { IdCaptureRegion, RegionSpecificSubtype, UsRealIdStatus } from '../common';
|
|
2
|
+
import { IdCaptureRegion, RegionSpecificSubtype, Sex, UsRealIdStatus } from '../common';
|
|
3
3
|
import { DateResult } from '../common/DateResult';
|
|
4
4
|
import { MRZResult } from './MRZResult';
|
|
5
5
|
import { VIZResult } from './VIZResult';
|
|
6
6
|
import { BarcodeResult } from './BarcodeResult';
|
|
7
7
|
import { IdCaptureDocument } from '../iddocumenttype';
|
|
8
8
|
import { IdImages } from '../common/IdImages';
|
|
9
|
+
import { MobileDocumentOCRResult } from './MobileDocumentOCRResult';
|
|
10
|
+
import { MobileDocumentResult } from './MobileDocumentResult';
|
|
11
|
+
import { VerificationResult } from './VerificationResult';
|
|
12
|
+
import { IdFieldType } from './IdFieldType';
|
|
9
13
|
export declare class CapturedId {
|
|
10
14
|
private json;
|
|
11
|
-
private commonCapturedFields;
|
|
12
|
-
get firstName(): string | null;
|
|
13
|
-
get lastName(): string | null;
|
|
14
|
-
get fullName(): string;
|
|
15
|
-
get secondaryLastName(): string | null;
|
|
16
|
-
get sex(): string | null;
|
|
17
|
-
get dateOfBirth(): DateResult | null;
|
|
18
15
|
get age(): number | null;
|
|
19
16
|
get isExpired(): boolean | null;
|
|
20
|
-
get
|
|
21
|
-
get address(): string | null;
|
|
17
|
+
get isCitizenPassport(): boolean;
|
|
22
18
|
private _document;
|
|
23
19
|
get document(): IdCaptureDocument | null;
|
|
24
20
|
get issuingCountryIso(): string | null;
|
|
25
21
|
get issuingCountry(): IdCaptureRegion;
|
|
26
22
|
get documentAdditionalNumber(): string | null;
|
|
27
|
-
get documentNumber(): string | null;
|
|
28
|
-
get dateOfExpiry(): DateResult | null;
|
|
29
|
-
get dateOfIssue(): DateResult | null;
|
|
30
23
|
private _barcodeResult;
|
|
31
24
|
get barcode(): BarcodeResult | null;
|
|
32
25
|
private _mrzResult;
|
|
@@ -43,6 +36,29 @@ export declare class CapturedId {
|
|
|
43
36
|
isResidencePermit(): boolean;
|
|
44
37
|
isHealthInsuranceCard(): boolean;
|
|
45
38
|
get images(): IdImages;
|
|
39
|
+
get firstName(): string | null;
|
|
40
|
+
get lastName(): string | null;
|
|
41
|
+
get fullName(): string | null;
|
|
42
|
+
get sex(): string | null;
|
|
43
|
+
get dateOfBirth(): DateResult | null;
|
|
44
|
+
get nationality(): string | null;
|
|
45
|
+
get address(): string | null;
|
|
46
|
+
get documentNumber(): string | null;
|
|
47
|
+
get dateOfExpiry(): DateResult | null;
|
|
48
|
+
get dateOfIssue(): DateResult | null;
|
|
49
|
+
get sexType(): Sex;
|
|
50
|
+
private _mobileDocument;
|
|
51
|
+
get mobileDocument(): MobileDocumentResult | null;
|
|
52
|
+
private _mobileDocumentOcr;
|
|
53
|
+
/**
|
|
54
|
+
* The additional information extracted from a mobile document using optical character recognition (OCR).
|
|
55
|
+
* Returns null if not available.
|
|
56
|
+
*/
|
|
57
|
+
get mobileDocumentOcr(): MobileDocumentOCRResult | null;
|
|
58
|
+
private _verificationResult;
|
|
59
|
+
get verificationResult(): VerificationResult;
|
|
60
|
+
get anonymizedFields(): IdFieldType[];
|
|
61
|
+
isAnonymized(field: IdFieldType): boolean;
|
|
46
62
|
private static fromJSON;
|
|
47
63
|
private static getDocument;
|
|
48
64
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DataConsistencyResultJSON } from "../defaults";
|
|
2
|
+
import { DataConsistencyCheck } from "../common/DataConsistencyCheck";
|
|
3
|
+
export declare class DataConsistencyResult {
|
|
4
|
+
private json;
|
|
5
|
+
get allChecksPassed(): boolean;
|
|
6
|
+
get failedChecks(): DataConsistencyCheck[];
|
|
7
|
+
get skippedChecks(): DataConsistencyCheck[];
|
|
8
|
+
get passedChecks(): DataConsistencyCheck[];
|
|
9
|
+
get frontReviewImage(): string | null;
|
|
10
|
+
private static fromJSON;
|
|
11
|
+
}
|
|
12
|
+
export interface PrivateDataConsistencyResult {
|
|
13
|
+
fromJSON(json: DataConsistencyResultJSON | null): DataConsistencyResult | null;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DrivingLicenseCategoryJSON } from "../defaults";
|
|
2
|
+
import { DateResult } from "../common/DateResult";
|
|
3
|
+
export declare class DrivingLicenseCategory {
|
|
4
|
+
private json;
|
|
5
|
+
get code(): string;
|
|
6
|
+
get dateOfIssue(): DateResult | null;
|
|
7
|
+
get dateOfExpiry(): DateResult | null;
|
|
8
|
+
private static fromJSON;
|
|
9
|
+
}
|
|
10
|
+
export interface PrivateDrivingLicenseCategory {
|
|
11
|
+
fromJSON(json: DrivingLicenseCategoryJSON | null): DrivingLicenseCategory | null;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DrivingLicenseDetailsJSON } from "../defaults";
|
|
2
|
+
import { DrivingLicenseCategory } from "./DrivingLicenseCategory";
|
|
3
|
+
export declare class DrivingLicenseDetails {
|
|
4
|
+
private json;
|
|
5
|
+
private _drivingLicenseCategories;
|
|
6
|
+
get drivingLicenseCategories(): DrivingLicenseCategory[];
|
|
7
|
+
get restrictions(): string | null;
|
|
8
|
+
get endorsements(): string | null;
|
|
9
|
+
private static fromJSON;
|
|
10
|
+
}
|
|
11
|
+
export interface PrivateDrivingLicenseDetails {
|
|
12
|
+
fromJSON(json: DrivingLicenseDetailsJSON | null): DrivingLicenseDetails | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare enum IdFieldType {
|
|
2
|
+
AdditionalAddressInformation = "additionalAddressInformation",
|
|
3
|
+
AdditionalNameInformation = "additionalNameInformation",
|
|
4
|
+
Address = "address",
|
|
5
|
+
Age = "age",
|
|
6
|
+
BarcodeDictionary = "barcodeDictionary",
|
|
7
|
+
BloodType = "bloodType",
|
|
8
|
+
DateOfBirth = "dateOfBirth",
|
|
9
|
+
DateOfExpiry = "dateOfExpiry",
|
|
10
|
+
DateOfIssue = "dateOfIssue",
|
|
11
|
+
DocumentAdditionalNumber = "documentAdditionalNumber",
|
|
12
|
+
DocumentNumber = "documentNumber",
|
|
13
|
+
Employer = "employer",
|
|
14
|
+
FathersName = "fathersName",
|
|
15
|
+
FirstName = "firstName",
|
|
16
|
+
FullName = "fullName",
|
|
17
|
+
IssuingAuthority = "issuingAuthority",
|
|
18
|
+
LastName = "lastName",
|
|
19
|
+
MaritalStatus = "maritalStatus",
|
|
20
|
+
MothersName = "mothersName",
|
|
21
|
+
MrzOptionalDataInLine1 = "mrzOptionalDataInLine1",
|
|
22
|
+
MrzOptionalDataInLine2 = "mrzOptionalDataInLine2",
|
|
23
|
+
Nationality = "nationality",
|
|
24
|
+
PersonalIdNumber = "personalIdNumber",
|
|
25
|
+
PlaceOfBirth = "placeOfBirth",
|
|
26
|
+
Profession = "profession",
|
|
27
|
+
Race = "race",
|
|
28
|
+
Religion = "religion",
|
|
29
|
+
ResidentialStatus = "residentialStatus",
|
|
30
|
+
Sex = "sex"
|
|
31
|
+
}
|
|
@@ -4,17 +4,9 @@ export declare class MRZResult {
|
|
|
4
4
|
private json;
|
|
5
5
|
get documentCode(): string;
|
|
6
6
|
get namesAreTruncated(): boolean;
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated Use optionalDataInLine1 and optionalDataInLine2 instead. This property will be removed in SDK version 8.0.
|
|
9
|
-
*/
|
|
10
|
-
get optional(): string | null;
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated Use optionalDataInLine1 and optionalDataInLine2 instead. This property will be removed in SDK version 8.0.
|
|
13
|
-
*/
|
|
14
|
-
get optional1(): string | null;
|
|
15
7
|
get optionalDataInLine1(): string | null;
|
|
16
8
|
get optionalDataInLine2(): string | null;
|
|
17
|
-
get capturedMrz(): string;
|
|
9
|
+
get capturedMrz(): string | null;
|
|
18
10
|
get personalIdNumber(): string | null;
|
|
19
11
|
get renewalTimes(): number | null;
|
|
20
12
|
get fullNameSimplifiedChinese(): string | null;
|
|
@@ -24,6 +16,16 @@ export declare class MRZResult {
|
|
|
24
16
|
get passportIssuerIso(): string | null;
|
|
25
17
|
get passportNumber(): string | null;
|
|
26
18
|
get passportDateOfExpiry(): DateResult | null;
|
|
19
|
+
get firstName(): string | null;
|
|
20
|
+
get lastName(): string | null;
|
|
21
|
+
get fullName(): string | null;
|
|
22
|
+
get sex(): string | null;
|
|
23
|
+
get dateOfBirth(): DateResult | null;
|
|
24
|
+
get nationality(): string | null;
|
|
25
|
+
get address(): string | null;
|
|
26
|
+
get documentNumber(): string | null;
|
|
27
|
+
get dateOfExpiry(): DateResult | null;
|
|
28
|
+
get dateOfIssue(): DateResult | null;
|
|
27
29
|
private static fromJSON;
|
|
28
30
|
}
|
|
29
31
|
export interface PrivateMRZResult {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare enum MobileDocumentDataElement {
|
|
2
|
+
FamilyName = "familyName",
|
|
3
|
+
GivenName = "givenName",
|
|
4
|
+
BirthDate = "birthDate",
|
|
5
|
+
IssueDate = "issueDate",
|
|
6
|
+
ExpiryDate = "expiryDate",
|
|
7
|
+
IssuingCountry = "issuingCountry",
|
|
8
|
+
IssuingAuthority = "issuingAuthority",
|
|
9
|
+
DocumentNumber = "documentNumber",
|
|
10
|
+
Portrait = "portrait",
|
|
11
|
+
DrivingPrivileges = "drivingPrivileges",
|
|
12
|
+
AdministrativeNumber = "administrativeNumber",
|
|
13
|
+
SexIso = "sexIso",
|
|
14
|
+
Height = "height",
|
|
15
|
+
Weight = "weight",
|
|
16
|
+
EyeColour = "eyeColour",
|
|
17
|
+
HairColour = "hairColour",
|
|
18
|
+
BirthPlace = "birthPlace",
|
|
19
|
+
ResidentAddress = "residentAddress",
|
|
20
|
+
IssuingJurisdiction = "issuingJurisdiction",
|
|
21
|
+
Nationality = "nationality",
|
|
22
|
+
NameSuffix = "nameSuffix",
|
|
23
|
+
FamilyNameTruncation = "familyNameTruncation",
|
|
24
|
+
GivenNameTruncation = "givenNameTruncation",
|
|
25
|
+
AkaFamilyName = "akaFamilyName",
|
|
26
|
+
AkaGivenName = "akaGivenName",
|
|
27
|
+
AkaSuffix = "akaSuffix",
|
|
28
|
+
WeightRange = "weightRange",
|
|
29
|
+
RaceEthnicity = "raceEthnicity",
|
|
30
|
+
ResidentCounty = "residentCounty",
|
|
31
|
+
SexAamva = "sexAamva",
|
|
32
|
+
AamvaVersion = "aamvaVersion"
|
|
33
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DateResult } from "../common";
|
|
2
|
+
import type { MobileDocumentOCRResultJSON } from '../defaults';
|
|
3
|
+
export declare class MobileDocumentOCRResult {
|
|
4
|
+
private json;
|
|
5
|
+
get firstName(): string | null;
|
|
6
|
+
get lastName(): string | null;
|
|
7
|
+
get fullName(): string | null;
|
|
8
|
+
get dateOfBirth(): DateResult | null;
|
|
9
|
+
get documentNumber(): string | null;
|
|
10
|
+
get dateOfExpiry(): DateResult | null;
|
|
11
|
+
get issuingJurisdiction(): string | null;
|
|
12
|
+
get issuingJurisdictionIso(): string | null;
|
|
13
|
+
get sex(): string | null;
|
|
14
|
+
get nationality(): string | null;
|
|
15
|
+
get address(): string | null;
|
|
16
|
+
get documentAdditionalNumber(): string | null;
|
|
17
|
+
get dateOfIssue(): DateResult | null;
|
|
18
|
+
private static fromJSON;
|
|
19
|
+
}
|
|
20
|
+
export interface PrivateMobileDocumentOCRResult {
|
|
21
|
+
fromJSON(json: MobileDocumentOCRResultJSON | null): MobileDocumentOCRResult | null;
|
|
22
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { MobileDocumentResultJSON } from "../defaults";
|
|
2
|
+
import { DateResult } from "../common/DateResult";
|
|
3
|
+
import { DrivingLicenseCategory } from "./DrivingLicenseCategory";
|
|
4
|
+
export declare class MobileDocumentResult {
|
|
5
|
+
private json;
|
|
6
|
+
private _drivingLicenseCategories;
|
|
7
|
+
get portrait(): string | null;
|
|
8
|
+
get issuingAuthority(): string;
|
|
9
|
+
get administrativeNumber(): string | null;
|
|
10
|
+
get height(): number | null;
|
|
11
|
+
get weight(): number | null;
|
|
12
|
+
get eyeColor(): string | null;
|
|
13
|
+
get hairColor(): string | null;
|
|
14
|
+
get birthPlace(): string | null;
|
|
15
|
+
get drivingLicenseCategories(): DrivingLicenseCategory[];
|
|
16
|
+
get residentCity(): string | null;
|
|
17
|
+
get residentCountry(): string | null;
|
|
18
|
+
get firstName(): string | null;
|
|
19
|
+
get lastName(): string | null;
|
|
20
|
+
get fullName(): string | null;
|
|
21
|
+
get sex(): string | null;
|
|
22
|
+
get dateOfBirth(): DateResult | null;
|
|
23
|
+
get age(): number | null;
|
|
24
|
+
get nationality(): string | null;
|
|
25
|
+
get address(): string | null;
|
|
26
|
+
get issuingCountryIso(): string | null;
|
|
27
|
+
get issuingJurisdictionIso(): string | null;
|
|
28
|
+
get documentNumber(): string | null;
|
|
29
|
+
get dateOfExpiry(): DateResult | null;
|
|
30
|
+
get dateOfIssue(): DateResult | null;
|
|
31
|
+
private static fromJSON;
|
|
32
|
+
}
|
|
33
|
+
export interface PrivateMobileDocumentResult {
|
|
34
|
+
fromJSON(json: MobileDocumentResultJSON | null): MobileDocumentResult | null;
|
|
35
|
+
}
|
|
@@ -7,5 +7,5 @@ export declare class ProfessionalDrivingPermit {
|
|
|
7
7
|
private static fromJSON;
|
|
8
8
|
}
|
|
9
9
|
export interface PrivateProfessionalDrivingPermit {
|
|
10
|
-
fromJSON(json: ProfessionalDrivingPermitJSON | null): ProfessionalDrivingPermit;
|
|
10
|
+
fromJSON(json: ProfessionalDrivingPermitJSON | null): ProfessionalDrivingPermit | null;
|
|
11
11
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { VIZResultJSON } from '../defaults';
|
|
2
|
-
import { CapturedSides, UsRealIdStatus } from '../common';
|
|
2
|
+
import { CapturedSides, DateResult, UsRealIdStatus } from '../common';
|
|
3
|
+
import { DrivingLicenseDetails } from './DrivingLicenseDetails';
|
|
3
4
|
export declare class VIZResult {
|
|
4
5
|
private json;
|
|
5
6
|
get additionalAddressInformation(): string | null;
|
|
@@ -25,10 +26,18 @@ export declare class VIZResult {
|
|
|
25
26
|
get fathersName(): string | null;
|
|
26
27
|
get passportNumber(): string | null;
|
|
27
28
|
get visaNumber(): string | null;
|
|
29
|
+
get vehicleOwner(): string | null;
|
|
30
|
+
get drivingLicenseDetails(): DrivingLicenseDetails | null;
|
|
28
31
|
get firstName(): string | null;
|
|
29
32
|
get lastName(): string | null;
|
|
30
|
-
get
|
|
31
|
-
get
|
|
33
|
+
get fullName(): string | null;
|
|
34
|
+
get sex(): string | null;
|
|
35
|
+
get dateOfBirth(): DateResult | null;
|
|
36
|
+
get nationality(): string | null;
|
|
37
|
+
get address(): string | null;
|
|
38
|
+
get documentNumber(): string | null;
|
|
39
|
+
get dateOfExpiry(): DateResult | null;
|
|
40
|
+
get dateOfIssue(): DateResult | null;
|
|
32
41
|
private static fromJSON;
|
|
33
42
|
}
|
|
34
43
|
export interface PrivateVIZResult {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { VerificationResultJSON } from "../defaults";
|
|
2
|
+
import { DataConsistencyResult } from "./DataConsistencyResult";
|
|
3
|
+
import { AamvaBarcodeVerificationResult } from "./AamvaBarcodeVerificationResult";
|
|
4
|
+
export declare class VerificationResult {
|
|
5
|
+
private json;
|
|
6
|
+
private _dataConsistency;
|
|
7
|
+
private _aamvaBarcodeVerification;
|
|
8
|
+
get dataConsistency(): DataConsistencyResult | null;
|
|
9
|
+
get aamvaBarcodeVerification(): AamvaBarcodeVerificationResult | null;
|
|
10
|
+
private static fromJSON;
|
|
11
|
+
}
|
|
12
|
+
export interface PrivateVerificationResult {
|
|
13
|
+
fromJSON(json: VerificationResultJSON | null): VerificationResult;
|
|
14
|
+
}
|
package/dist/dts/id/index.d.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
export * from './AamvaBarcodeVerificationResult';
|
|
2
|
-
export * from './
|
|
2
|
+
export * from './AamvaBarcodeVerificationStatus';
|
|
3
|
+
export * from './BarcodeResult';
|
|
3
4
|
export * from './CapturedId';
|
|
4
|
-
export * from './
|
|
5
|
+
export * from './DataConsistencyResult';
|
|
6
|
+
export * from './DrivingLicenseCategory';
|
|
7
|
+
export * from './DrivingLicenseDetails';
|
|
8
|
+
export * from './IdFieldType';
|
|
9
|
+
export * from './MobileDocumentOCRResult';
|
|
10
|
+
export * from './MobileDocumentResult';
|
|
5
11
|
export * from './MRZResult';
|
|
6
12
|
export * from './ProfessionalDrivingPermit';
|
|
7
13
|
export * from './VehicleRestriction';
|
|
14
|
+
export * from './VerificationResult';
|
|
8
15
|
export * from './VIZResult';
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './BarcodeResult';
|
|
16
|
+
export * from './MobileDocumentDataElement';
|