@scandit/web-datacapture-id 7.0.0-beta.1 → 7.0.0
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/Enums.d.ts +1 -29
- package/build/js/IdCaptureSettings.d.ts +3 -1
- package/build/js/SerializedTypes.d.ts +6 -1
- package/build/js/captured-id/BarcodeMetadata.d.ts +10 -0
- package/build/js/captured-id/BarcodeResult.d.ts +2 -0
- package/build/js/captured-id/CapturedId.d.ts +0 -2
- package/build/js/captured-id/VIZResult.d.ts +2 -2
- package/build/js/index.js +4 -4
- package/build/js/worker/dataCaptureEngine.d.ts +1 -0
- package/package.json +2 -2
- 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-pthreads.worker.js +1 -1
- 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-pthreads.worker.js +1 -1
- 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/build/js/Enums.d.ts
CHANGED
|
@@ -1,32 +1,4 @@
|
|
|
1
|
-
export declare enum
|
|
2
|
-
BarcodeResult = "barcodeResult",
|
|
3
|
-
MRZResult = "mrzResult",
|
|
4
|
-
VIZResult = "vizResult"
|
|
5
|
-
}
|
|
6
|
-
export declare enum IdDocumentType {
|
|
7
|
-
AAMVABarcode = "aamvaBarcode",
|
|
8
|
-
ApecBusinessTravelCardMRZ = "apecBusinessTravelCardMrz",
|
|
9
|
-
ArgentinaIdBarcode = "argentinaIdBarcode",
|
|
10
|
-
ChinaMainlandTravelPermitMRZ = "chinaMainlandTravelPermitMrz",
|
|
11
|
-
ChinaExitEntryPermitMRZ = "chinaExitEntryPermitMrz",
|
|
12
|
-
ChinaOneWayPermitFrontMRZ = "chinaOneWayPermitFrontMrz",
|
|
13
|
-
ChinaOneWayPermitBackMRZ = "chinaOneWayPermitBackMrz",
|
|
14
|
-
ColombiaDlBarcode = "colombiaDlBarcode",
|
|
15
|
-
ColombiaIdBarcode = "colombiaIdBarcode",
|
|
16
|
-
CommonAccessCardBarcode = "commonAccessCardBarcode",
|
|
17
|
-
DLVIZ = "dlViz",
|
|
18
|
-
HealthInsuranceCardVIZ = "healthInsuranceCardViz",
|
|
19
|
-
IdCardMRZ = "idCardMrz",
|
|
20
|
-
IdCardVIZ = "idCardViz",
|
|
21
|
-
PassportMRZ = "passportMrz",
|
|
22
|
-
PassportVIZ = "passportViz",
|
|
23
|
-
SouthAfricaDlBarcode = "southAfricaDlBarcode",
|
|
24
|
-
SouthAfricaIdBarcode = "southAfricaIdBarcode",
|
|
25
|
-
SwissDLMRZ = "swissDlMrz",
|
|
26
|
-
USUSIdBarcode = "usUsIdBarcode",
|
|
27
|
-
VisaMRZ = "visaMrz"
|
|
28
|
-
}
|
|
29
|
-
export declare enum SupportedSides {
|
|
1
|
+
export declare enum CapturedSides {
|
|
30
2
|
FrontOnly = "frontOnly",
|
|
31
3
|
FrontAndBack = "frontAndBack"
|
|
32
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type JSONType } from "@scandit/web-datacapture-core";
|
|
2
2
|
import type { Serializable } from "@scandit/web-datacapture-core/build/js/private/Serializable";
|
|
3
3
|
import { IdAnonymizationMode, IdCaptureTrigger, IdImageType } from "./Enums";
|
|
4
4
|
import type { IdCaptureDocument, IdCaptureDocumentJSON } from "./document/IdCaptureDocument";
|
|
@@ -30,4 +30,6 @@ export declare class IdCaptureSettings implements Serializable<IdCaptureSettings
|
|
|
30
30
|
setShouldPassImageTypeToResult(type: IdImageType, shouldPass: boolean): void;
|
|
31
31
|
getShouldPassImageTypeToResult(type: IdImageType): boolean;
|
|
32
32
|
toJSONObject(): IdCaptureSettingsJSON;
|
|
33
|
+
private static fromJSON;
|
|
34
|
+
private createDocumentFromTypeAndRegion;
|
|
33
35
|
}
|
|
@@ -72,7 +72,6 @@ export interface CapturedIdJSON {
|
|
|
72
72
|
dateOfIssue: DateResultJSON | null;
|
|
73
73
|
documentType: string | null;
|
|
74
74
|
documentSubtype: string | null;
|
|
75
|
-
capturedResultTypes: string[];
|
|
76
75
|
imageInfo: ImageInfoJSON | null;
|
|
77
76
|
idVerificationDataComparisonAvailable: boolean;
|
|
78
77
|
barcodeResult: BarcodeResultJSON | null;
|
|
@@ -117,6 +116,7 @@ export interface BarcodeResultJSON extends CommonFieldsJSON {
|
|
|
117
116
|
aliasFamilyName: string | null;
|
|
118
117
|
aliasGivenName: string | null;
|
|
119
118
|
aliasSuffixName: string | null;
|
|
119
|
+
barcodeMetadata: BarcodeMetadataJSON | null;
|
|
120
120
|
bloodType: string | null;
|
|
121
121
|
branchOfService: string | null;
|
|
122
122
|
cardInstanceIdentifier: string | null;
|
|
@@ -260,4 +260,9 @@ export interface RejectedIdJSON {
|
|
|
260
260
|
export interface AamvaBarcodeVerificationResultJSON {
|
|
261
261
|
allChecksPassed: boolean;
|
|
262
262
|
}
|
|
263
|
+
export interface BarcodeMetadataJSON {
|
|
264
|
+
errorCorrection: number;
|
|
265
|
+
moduleCountX: number;
|
|
266
|
+
moduleCountY: number;
|
|
267
|
+
}
|
|
263
268
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Serializable } from "@scandit/web-datacapture-core/build/js/private/Serializable";
|
|
2
|
+
import type { BarcodeMetadataJSON } from "../SerializedTypes";
|
|
3
|
+
export declare class BarcodeMetadata implements Serializable<BarcodeMetadataJSON> {
|
|
4
|
+
private json;
|
|
5
|
+
get errorCorrection(): number;
|
|
6
|
+
get moduleCountX(): number;
|
|
7
|
+
get moduleCountY(): number;
|
|
8
|
+
private static fromJSON;
|
|
9
|
+
toJSONObject(): BarcodeMetadataJSON;
|
|
10
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Serializable } from "@scandit/web-datacapture-core/build/js/private/Serializable";
|
|
2
|
+
import { BarcodeMetadata } from "./BarcodeMetadata";
|
|
2
3
|
import { DateResult } from "./DateResult";
|
|
3
4
|
import type { BarcodeResultJSON } from "../SerializedTypes";
|
|
4
5
|
import { ProfessionalDrivingPermit } from "../captured-id/ProfessionalDrivingPermit";
|
|
@@ -49,6 +50,7 @@ export declare class BarcodeResult implements Serializable<BarcodeResultJSON> {
|
|
|
49
50
|
get identificationType(): string | null;
|
|
50
51
|
get issuingJurisdiction(): string | null;
|
|
51
52
|
get issuingJurisdictionIso(): string | null;
|
|
53
|
+
get barcodeMetadata(): BarcodeMetadata | null;
|
|
52
54
|
get jpegData(): string | null;
|
|
53
55
|
get jurisdictionVersion(): number | null;
|
|
54
56
|
get lastNameTruncation(): string | null;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Serializable } from "@scandit/web-datacapture-core/build/js/private/Serializable";
|
|
2
|
-
import type { CapturedResultType } from "../Enums";
|
|
3
2
|
import type { CapturedIdJSON } from "../SerializedTypes";
|
|
4
3
|
import type { IdCaptureDocument } from "../document/IdCaptureDocument";
|
|
5
4
|
import type { RegionSpecificSubtype } from "../document/RegionSpecificSubtype";
|
|
@@ -31,7 +30,6 @@ export declare class CapturedId implements Serializable<CapturedIdJSON> {
|
|
|
31
30
|
get dateOfExpiry(): DateResult | null;
|
|
32
31
|
get isExpired(): boolean | null;
|
|
33
32
|
get dateOfIssue(): DateResult | null;
|
|
34
|
-
get capturedResultTypes(): CapturedResultType[];
|
|
35
33
|
get barcode(): BarcodeResult | null;
|
|
36
34
|
get mrzResult(): MRZResult | null;
|
|
37
35
|
get vizResult(): VIZResult | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Serializable } from "@scandit/web-datacapture-core/build/js/private/Serializable";
|
|
2
|
-
import type {
|
|
2
|
+
import type { CapturedSides } from "../Enums";
|
|
3
3
|
import { DrivingLicenseDetails } from "./DrivingLicenseDetails";
|
|
4
4
|
import type { VIZResultJSON } from "../SerializedTypes";
|
|
5
5
|
export declare class VIZResult implements Serializable<VIZResultJSON> {
|
|
@@ -24,7 +24,7 @@ export declare class VIZResult implements Serializable<VIZResultJSON> {
|
|
|
24
24
|
get residentialStatus(): string | null;
|
|
25
25
|
get mothersName(): string | null;
|
|
26
26
|
get fathersName(): string | null;
|
|
27
|
-
get capturedSides():
|
|
27
|
+
get capturedSides(): CapturedSides;
|
|
28
28
|
get isBackSideCaptureSupported(): boolean;
|
|
29
29
|
get drivingLicenseDetails(): DrivingLicenseDetails | null;
|
|
30
30
|
get bloodType(): string | null;
|