@scandit/web-datacapture-id 7.0.2 → 7.1.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/build/js/DataConsistencyCheck.d.ts +9 -0
- package/build/js/DataConsistencyVerifier.d.ts +9 -0
- package/build/js/Duration.d.ts +11 -0
- package/build/js/Enums.d.ts +10 -0
- package/build/js/IdCaptureSettings.d.ts +12 -0
- package/build/js/RejectionReason.d.ts +7 -1
- package/build/js/SerializedTypes.d.ts +19 -1
- package/build/js/captured-id/CapturedId.d.ts +6 -0
- package/build/js/captured-id/DataConsistencyResult.d.ts +17 -0
- package/build/js/captured-id/VerificationResult.d.ts +9 -0
- package/build/js/index.d.ts +3 -0
- package/build/js/index.js +3 -10
- package/build/js/worker/IdCaptureWorkerManager.d.ts +2 -1
- package/build/js/worker/dataCaptureEngine.d.ts +3 -1
- package/build/js/worker/dataCaptureWorkerRelated.d.ts +49 -45
- package/package.json +3 -3
- package/sdc-lib/resources/models/barcode_classification_default_model.0e0f78dcf2b31abc9b4fc5c1b7c5cb342a7d5e63.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_default_model.47d1f96d10ccb378344a3009cded24a85c22a5f9.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_dpm_default_model.866e3546778825d3a9bc1f2070c892de9c525092.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_french_post_default_model.8843b5d5d2eb71ebeab43204fbb9574c76f94fe7.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_generic_postal_code_default_model.48b44ea31495024d80a11e1ca3ecde3d958eaf2d.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_oned_default_model.5f2c85a7773b298068deecb49059c7a477c280c4.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_twod_default_model.795c17cef2bf529a00a9e0d235c1b8ddfca66cf5.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_upu_enhanced_orange.da67055d9aa866fe157514a4d55c2c504ec68306.model +0 -0
- package/sdc-lib/resources/models/eu_dl_localization_model.e440ae4acaf7c7a2f42814ddc46c0920423eb372.model +0 -0
- package/sdc-lib/resources/models/id_ocr_model.f42a207632c0e54aed010bff4b40df1264e3f304.model +0 -0
- package/sdc-lib/resources/models/invalidated_id_classification_default.a055873831c99a035fa94bbf7a8568b1e8e004e5.model +0 -0
- package/sdc-lib/resources/models/mrz_line_localization_model.4573c5a05b53d7f5cfac0f0fda2ead609011df50.model +0 -0
- package/sdc-lib/resources/models/mrz_localization_model.c6b469e57923be136dfd2b6d3fef354eadda3e04.model +0 -0
- package/sdc-lib/resources/models/ocr_mrz_default_model.050ddaa9b8339897a9c7bc8b7dea02f2c6f11856.model +0 -0
- package/sdc-lib/resources/models/uk_dl_code_localization_model.e440ae4acaf7c7a2f42814ddc46c0920423eb372.model +0 -0
- package/sdc-lib/scandit-datacapture-sdk-id-pthreads.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-id-pthreads.wasm +0 -0
- package/sdc-lib/scandit-datacapture-sdk-id-simd-pthreads.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-id-simd-pthreads.wasm +0 -0
- package/sdc-lib/scandit-datacapture-sdk-id-simd.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-id-simd.wasm +0 -0
- package/sdc-lib/scandit-datacapture-sdk-id.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-id.wasm +0 -0
- package/sdc-lib/resources/models/barcode_classification_default_model.5ed1ecfaacbd108767a80013d11d9af73b8e1d5e.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_default_model.f88251f1bff0c68526d9898ef4c8f3b411c3c59e.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_dpm_default_model.acd01c12893d98af3a7e472200dbce4afd57631d.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_french_post_default_model.e1d7ffb4d1fb636b1c267d2da0ad6003584e668d.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_generic_postal_code_default_model.7852c9b58cc2d253466ca3ea60bbd02ca09533ca.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_oned_default_model.058a356e6c57475ec928de2f95440aefa46ed5fe.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_twod_default_model.54c8ddfd8620c8b508f4108fcba6529ce45f8440.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_upu_enhanced_orange.656bffc22efe3137515d791184b1aa471d439310.model +0 -0
- package/sdc-lib/resources/models/eu_dl_localization_model.579be0f8cae6c931b93e199d1afec3b61542474c.model +0 -0
- package/sdc-lib/resources/models/id_ocr_model.f5b3ffba2d21fa97fa4945f0bb0c1cff9651c677.model +0 -0
- package/sdc-lib/resources/models/invalidated_id_classification_default.1f8f6e0345ece7d50a7126f2e5d15aa6b2e2a9bf.model +0 -0
- package/sdc-lib/resources/models/mrz_line_localization_model.98a5b38e889546c69f1d43beeda91071ad132340.model +0 -0
- package/sdc-lib/resources/models/mrz_localization_model.87d7e0dacb3845548449cc8ccb78526d93212cff.model +0 -0
- package/sdc-lib/resources/models/ocr_mrz_default_model.e0dd4c48916ff4ee266439f87cc68eb1793093c3.model +0 -0
- package/sdc-lib/resources/models/uk_dl_code_localization_model.579be0f8cae6c931b93e199d1afec3b61542474c.model +0 -0
- package/sdc-lib/scandit-datacapture-sdk-id-pthreads.worker.js +0 -1
- package/sdc-lib/scandit-datacapture-sdk-id-simd-pthreads.worker.js +0 -1
- /package/{THIRD-PARTY.txt → THIRD_PARTY.txt} +0 -0
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DataCaptureContext } from "@scandit/web-datacapture-core";
|
|
2
|
+
import type { CapturedId } from "./captured-id/CapturedId";
|
|
3
|
+
import { DataConsistencyResult } from "./captured-id/DataConsistencyResult";
|
|
4
|
+
export declare class DataConsistencyVerifier {
|
|
5
|
+
private _context;
|
|
6
|
+
private constructor();
|
|
7
|
+
static create(context: DataCaptureContext): DataConsistencyVerifier;
|
|
8
|
+
verify(capturedId: CapturedId): Promise<DataConsistencyResult | null>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DurationJSON } from "./SerializedTypes";
|
|
2
|
+
export declare class Duration {
|
|
3
|
+
private _days;
|
|
4
|
+
private _months;
|
|
5
|
+
private _years;
|
|
6
|
+
constructor(days: number, months: number, years: number);
|
|
7
|
+
get days(): number;
|
|
8
|
+
get months(): number;
|
|
9
|
+
get years(): number;
|
|
10
|
+
toJSONObject(): DurationJSON;
|
|
11
|
+
}
|
package/build/js/Enums.d.ts
CHANGED
|
@@ -29,3 +29,13 @@ export declare enum IdLayoutLineStyle {
|
|
|
29
29
|
Light = "light",
|
|
30
30
|
Bold = "bold"
|
|
31
31
|
}
|
|
32
|
+
export declare enum UsRealIdStatus {
|
|
33
|
+
NotAvailable = "notAvailable",
|
|
34
|
+
NotRealIdCompliant = "notRealIdCompliant",
|
|
35
|
+
RealIdCompliant = "realIdCompliant"
|
|
36
|
+
}
|
|
37
|
+
export declare enum Sex {
|
|
38
|
+
Female = "female",
|
|
39
|
+
Male = "male",
|
|
40
|
+
Unspecified = "unspecified"
|
|
41
|
+
}
|
|
@@ -3,6 +3,8 @@ import type { Serializable } from "@scandit/web-datacapture-core/build/js/privat
|
|
|
3
3
|
import { IdAnonymizationMode, IdCaptureTrigger, IdImageType } from "./Enums";
|
|
4
4
|
import type { IdCaptureDocument, IdCaptureDocumentJSON } from "./document/IdCaptureDocument";
|
|
5
5
|
import type { ScannerJSON, IdCaptureScanner } from "./scanner/Scanner";
|
|
6
|
+
import { Duration } from "./Duration";
|
|
7
|
+
import type { DurationJSON } from "./SerializedTypes";
|
|
6
8
|
export interface IdCaptureSettingsJSON {
|
|
7
9
|
acceptedDocuments: IdCaptureDocumentJSON[];
|
|
8
10
|
rejectedDocuments: IdCaptureDocumentJSON[];
|
|
@@ -12,6 +14,11 @@ export interface IdCaptureSettingsJSON {
|
|
|
12
14
|
captureTrigger: IdCaptureTrigger;
|
|
13
15
|
rejectVoidedIds: boolean;
|
|
14
16
|
decodeBackOfEuropeanDrivingLicense: boolean;
|
|
17
|
+
rejectExpiredIds: boolean;
|
|
18
|
+
rejectNotRealIdCompliant: boolean;
|
|
19
|
+
rejectInconsistentData: boolean;
|
|
20
|
+
rejectHolderBelowAge: number | null;
|
|
21
|
+
rejectIdsExpiringIn: DurationJSON | null;
|
|
15
22
|
properties: JSONType;
|
|
16
23
|
}
|
|
17
24
|
export declare class IdCaptureSettings implements Serializable<IdCaptureSettingsJSON> {
|
|
@@ -22,6 +29,11 @@ export declare class IdCaptureSettings implements Serializable<IdCaptureSettings
|
|
|
22
29
|
captureTrigger: IdCaptureTrigger;
|
|
23
30
|
rejectVoidedIds: boolean;
|
|
24
31
|
decodeBackOfEuropeanDrivingLicense: boolean;
|
|
32
|
+
rejectExpiredIds: boolean;
|
|
33
|
+
rejectNotRealIdCompliant: boolean;
|
|
34
|
+
rejectInconsistentData: boolean;
|
|
35
|
+
rejectHolderBelowAge: number | null;
|
|
36
|
+
rejectIdsExpiringIn: Duration | null;
|
|
25
37
|
private properties;
|
|
26
38
|
private imageToResult;
|
|
27
39
|
constructor();
|
|
@@ -3,5 +3,11 @@ export declare enum RejectionReason {
|
|
|
3
3
|
InvalidFormat = "invalidFormat",
|
|
4
4
|
DocumentVoided = "documentVoided",
|
|
5
5
|
Timeout = "timeout",
|
|
6
|
-
SingleImageNotRecognized = "singleImageNotRecognized"
|
|
6
|
+
SingleImageNotRecognized = "singleImageNotRecognized",
|
|
7
|
+
DocumentExpired = "documentExpired",
|
|
8
|
+
DocumentExpiresSoon = "documentExpiresSoon",
|
|
9
|
+
NotRealIdCompliant = "notRealIdCompliant",
|
|
10
|
+
HolderUnderage = "holderUnderage",
|
|
11
|
+
ForgedAamvaBarcode = "forgedAamvaBarcode",
|
|
12
|
+
InconsistentData = "inconsistentData"
|
|
7
13
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { QuadrilateralJSON } from "@scandit/web-datacapture-core";
|
|
2
|
+
import type { DataConsistencyCheck } from "./DataConsistencyCheck";
|
|
2
3
|
export interface DateResultJSON {
|
|
3
4
|
day: number | null;
|
|
4
5
|
month: number | null;
|
|
@@ -76,7 +77,9 @@ export interface CapturedIdJSON {
|
|
|
76
77
|
idVerificationDataComparisonAvailable: boolean;
|
|
77
78
|
barcodeResult: BarcodeResultJSON | null;
|
|
78
79
|
mrzResult: MRZResultJSON | null;
|
|
80
|
+
verificationResult: VerificationResultJSON | null;
|
|
79
81
|
vizResult: VIZResultJSON | null;
|
|
82
|
+
usRealIdStatus: string | null;
|
|
80
83
|
}
|
|
81
84
|
interface RawImageInfo {
|
|
82
85
|
data: Uint8ClampedArray | null;
|
|
@@ -105,7 +108,7 @@ interface FieldLocations {
|
|
|
105
108
|
frontFieldLocations: Partial<Record<string, QuadrilateralJSON>>;
|
|
106
109
|
}
|
|
107
110
|
export type VIZResultExtendedWithFieldLocationsJSON = FieldLocations & VIZResultExtendedJSON;
|
|
108
|
-
export type CapturedIdWithExtendedVIZJSON = Omit<CapturedIdJSON, keyof CapturedIdCommonFieldsJSON | "idVerificationDataComparisonAvailable"> & {
|
|
111
|
+
export type CapturedIdWithExtendedVIZJSON = Omit<CapturedIdJSON, keyof CapturedIdCommonFieldsJSON | "idVerificationDataComparisonAvailable" | "usRealIdStatus"> & {
|
|
109
112
|
vizResult: VIZResultExtendedJSON;
|
|
110
113
|
};
|
|
111
114
|
export type CapturedIdWithExtendedVIZAndLocationsJSON = Omit<CapturedIdJSON, keyof CapturedIdCommonFieldsJSON> & {
|
|
@@ -238,6 +241,7 @@ export interface VIZResultJSON extends CommonFieldsJSON {
|
|
|
238
241
|
sponsor: string | null;
|
|
239
242
|
visaNumber: string | null;
|
|
240
243
|
passportNumber: string | null;
|
|
244
|
+
usRealIdStatus: string | null;
|
|
241
245
|
}
|
|
242
246
|
export interface IdCaptureErrorJSON {
|
|
243
247
|
type: string;
|
|
@@ -265,4 +269,18 @@ export interface BarcodeMetadataJSON {
|
|
|
265
269
|
moduleCountX: number;
|
|
266
270
|
moduleCountY: number;
|
|
267
271
|
}
|
|
272
|
+
export interface DataConsistencyResultJSON {
|
|
273
|
+
allChecksPassed: boolean;
|
|
274
|
+
failedChecks: DataConsistencyCheck[];
|
|
275
|
+
skippedChecks: DataConsistencyCheck[];
|
|
276
|
+
passedChecks: DataConsistencyCheck[];
|
|
277
|
+
}
|
|
278
|
+
export interface VerificationResultJSON {
|
|
279
|
+
dataConsistencyResult: DataConsistencyResultJSON | null;
|
|
280
|
+
}
|
|
281
|
+
export interface DurationJSON {
|
|
282
|
+
days: number;
|
|
283
|
+
months: number;
|
|
284
|
+
years: number;
|
|
285
|
+
}
|
|
268
286
|
export {};
|
|
@@ -7,16 +7,20 @@ import { DateResult } from "./DateResult";
|
|
|
7
7
|
import { IdImages } from "./IdImages";
|
|
8
8
|
import { MRZResult } from "./MRZResult";
|
|
9
9
|
import { VIZResult } from "./VIZResult";
|
|
10
|
+
import { VerificationResult } from "./VerificationResult";
|
|
11
|
+
import { type Sex, UsRealIdStatus } from "../Enums";
|
|
10
12
|
import type { Region } from "../Region";
|
|
11
13
|
export declare class CapturedId implements Serializable<CapturedIdJSON> {
|
|
12
14
|
private json;
|
|
13
15
|
private _barcodeResult;
|
|
14
16
|
private _mrzResult;
|
|
15
17
|
private _vizResult;
|
|
18
|
+
private _verificationResult;
|
|
16
19
|
get firstName(): string | null;
|
|
17
20
|
get lastName(): string | null;
|
|
18
21
|
get secondaryLastName(): string | null;
|
|
19
22
|
get fullName(): string;
|
|
23
|
+
get sexType(): Sex;
|
|
20
24
|
get sex(): string | null;
|
|
21
25
|
get dateOfBirth(): DateResult | null;
|
|
22
26
|
get age(): number | null;
|
|
@@ -30,9 +34,11 @@ export declare class CapturedId implements Serializable<CapturedIdJSON> {
|
|
|
30
34
|
get dateOfExpiry(): DateResult | null;
|
|
31
35
|
get isExpired(): boolean | null;
|
|
32
36
|
get dateOfIssue(): DateResult | null;
|
|
37
|
+
get usRealIdStatus(): UsRealIdStatus;
|
|
33
38
|
get barcode(): BarcodeResult | null;
|
|
34
39
|
get mrzResult(): MRZResult | null;
|
|
35
40
|
get vizResult(): VIZResult | null;
|
|
41
|
+
get verificationResult(): VerificationResult;
|
|
36
42
|
get images(): IdImages;
|
|
37
43
|
private get barcodeResultsJSON();
|
|
38
44
|
private get mrzResultsJSON();
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Serializable } from "@scandit/web-datacapture-core/build/js/private/Serializable";
|
|
2
|
+
import { DataConsistencyCheck } from "../DataConsistencyCheck";
|
|
3
|
+
import type { DataConsistencyResultJSON } from "../SerializedTypes";
|
|
4
|
+
export declare class DataConsistencyResult implements Serializable<DataConsistencyResultJSON> {
|
|
5
|
+
private json;
|
|
6
|
+
get allChecksPassed(): boolean;
|
|
7
|
+
get failedChecks(): DataConsistencyCheck[];
|
|
8
|
+
get skippedChecks(): DataConsistencyCheck[];
|
|
9
|
+
get passedChecks(): DataConsistencyCheck[];
|
|
10
|
+
private static fromJSON;
|
|
11
|
+
frontReviewImage(): Promise<string>;
|
|
12
|
+
toJSONObject(): DataConsistencyResultJSON;
|
|
13
|
+
private pushQuadForKey;
|
|
14
|
+
private pushQuadsForKeys;
|
|
15
|
+
private getMismatchedQuads;
|
|
16
|
+
private highlightImage;
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Serializable } from "@scandit/web-datacapture-core/build/js/private/Serializable";
|
|
2
|
+
import { DataConsistencyResult } from "./DataConsistencyResult";
|
|
3
|
+
import type { VerificationResultJSON } from "../SerializedTypes";
|
|
4
|
+
export declare class VerificationResult implements Serializable<VerificationResultJSON> {
|
|
5
|
+
protected json: VerificationResultJSON;
|
|
6
|
+
get dataConsistency(): DataConsistencyResult | null;
|
|
7
|
+
private static fromJSON;
|
|
8
|
+
toJSONObject(): VerificationResultJSON;
|
|
9
|
+
}
|
package/build/js/index.d.ts
CHANGED
|
@@ -12,7 +12,9 @@ export * from "./IdCaptureSettings";
|
|
|
12
12
|
export * from "./Region";
|
|
13
13
|
export * from "./AamvaBarcodeVerifier";
|
|
14
14
|
export * from "./AamvaBarcodeVerifierResult";
|
|
15
|
+
export * from "./DataConsistencyVerifier";
|
|
15
16
|
export * from "./RejectionReason";
|
|
17
|
+
export * from "./Duration";
|
|
16
18
|
export * from "./document/IdCaptureDocument";
|
|
17
19
|
export * from "./document/DriverLicense";
|
|
18
20
|
export * from "./document/HealthInsuranceCard";
|
|
@@ -27,6 +29,7 @@ export * from "./scanner/FullDocumentScanner";
|
|
|
27
29
|
export * from "./scanner/SingleSideScanner";
|
|
28
30
|
export * from "./captured-id/BarcodeResult";
|
|
29
31
|
export * from "./captured-id/CapturedId";
|
|
32
|
+
export * from "./captured-id/DataConsistencyResult";
|
|
30
33
|
export * from "./captured-id/DateResult";
|
|
31
34
|
export * from "./captured-id/DrivingLicenseCategory";
|
|
32
35
|
export * from "./captured-id/DrivingLicenseDetails";
|