scandit-datacapture-frameworks-id 7.5.0 → 7.6.0-beta.1
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/Duration.d.ts +19 -0
- package/dist/dts/common/RegionSpecificSubtype.d.ts +3 -1
- package/dist/dts/common/index.d.ts +1 -0
- package/dist/dts/defaults/IdDefaults.d.ts +7 -0
- package/dist/dts/defaults/SerializedTypes.d.ts +2 -0
- package/dist/dts/id/AamvaBarcodeVerifier.d.ts +3 -0
- package/dist/dts/id/MRZResult.d.ts +8 -0
- package/dist/dts/idcapture/IdCapture.d.ts +14 -2
- package/dist/dts/idcapture/IdCaptureOverlay.d.ts +17 -3
- package/dist/dts/idcapture/IdCaptureSettings.d.ts +7 -0
- package/dist/dts/idcapture/controller/IdCaptureController.d.ts +1 -5
- package/dist/dts/idcapture/controller/IdCaptureListenerController.d.ts +4 -2
- package/dist/dts/idcapture/controller/IdCaptureListenerProxy.d.ts +0 -1
- package/dist/dts/idcapture/controller/IdCaptureOverlayController.d.ts +15 -0
- package/dist/dts/idcapture/index.d.ts +1 -0
- package/dist/index.js +234 -91
- package/dist/index.js.map +1 -1
- package/package.json +5 -3
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DefaultSerializeable } from 'scandit-datacapture-frameworks-core';
|
|
2
|
+
export interface DurationJSON {
|
|
3
|
+
days: number;
|
|
4
|
+
months: number;
|
|
5
|
+
years: number;
|
|
6
|
+
}
|
|
7
|
+
export interface PrivateDuration {
|
|
8
|
+
fromJSON(json: DurationJSON): Duration;
|
|
9
|
+
}
|
|
10
|
+
export declare class Duration extends DefaultSerializeable {
|
|
11
|
+
private _days;
|
|
12
|
+
private _months;
|
|
13
|
+
private _years;
|
|
14
|
+
get days(): number;
|
|
15
|
+
get months(): number;
|
|
16
|
+
get years(): number;
|
|
17
|
+
constructor(days: number, months: number, years: number);
|
|
18
|
+
private static fromJSON;
|
|
19
|
+
}
|
|
@@ -62,5 +62,7 @@ export declare enum RegionSpecificSubtype {
|
|
|
62
62
|
UsMedicalMarijuanaCard = "usMedicalMarijuanaCard",
|
|
63
63
|
UsMunicipalId = "usMunicipalId",
|
|
64
64
|
AustraliaAsicCard = "australiaAsicCard",
|
|
65
|
-
UaeVehicleRegistrationCard = "uaeVehicleRegistrationCard"
|
|
65
|
+
UaeVehicleRegistrationCard = "uaeVehicleRegistrationCard",
|
|
66
|
+
UaeEsaadCard = "uaeEsaadCard",
|
|
67
|
+
UkMilitaryId = "ukMilitaryId"
|
|
66
68
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CameraSettings, Color, Feedback } from "scandit-datacapture-frameworks-core";
|
|
2
2
|
import { IdAnonymizationMode } from "../common/IdAnonymizationMode";
|
|
3
|
+
import { Duration } from "../common/Duration";
|
|
3
4
|
export interface IdDefaults {
|
|
4
5
|
IdCapture: {
|
|
5
6
|
Feedback: {
|
|
@@ -28,6 +29,12 @@ export interface IdDefaults {
|
|
|
28
29
|
anonymizationMode: IdAnonymizationMode;
|
|
29
30
|
rejectVoidedIds: boolean;
|
|
30
31
|
decodeBackOfEuropeanDrivingLicense: boolean;
|
|
32
|
+
rejectExpiredIds: boolean;
|
|
33
|
+
rejectIdsExpiringIn: Duration | null;
|
|
34
|
+
rejectNotRealIdCompliant: boolean;
|
|
35
|
+
rejectForgedAamvaBarcodes: boolean;
|
|
36
|
+
rejectInconsistentData: boolean;
|
|
37
|
+
rejectHolderBelowAge: number | null;
|
|
31
38
|
};
|
|
32
39
|
};
|
|
33
40
|
}
|
|
@@ -164,6 +164,8 @@ export interface MRZResultJSON {
|
|
|
164
164
|
namesAreTruncated: boolean;
|
|
165
165
|
optional: string | null;
|
|
166
166
|
optional1: string | null;
|
|
167
|
+
optionalDataInLine1: string | null;
|
|
168
|
+
optionalDataInLine2: string | null;
|
|
167
169
|
capturedMrz: string;
|
|
168
170
|
personalIdNumber: string | null;
|
|
169
171
|
renewalTimes: number | null;
|
|
@@ -2,6 +2,9 @@ import { DataCaptureContext } from "scandit-datacapture-frameworks-core";
|
|
|
2
2
|
import { AamvaBarcodeVerificationResultJSON } from "../defaults";
|
|
3
3
|
import { CapturedId } from "./CapturedId";
|
|
4
4
|
import { AamvaBarcodeVerificationResult } from "./AamvaBarcodeVerificationResult";
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Replaced by IdCaptureSettings.rejectForgedAamvaBarcodes
|
|
7
|
+
*/
|
|
5
8
|
export declare class AamvaBarcodeVerifier {
|
|
6
9
|
private controller;
|
|
7
10
|
private context;
|
|
@@ -4,8 +4,16 @@ 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
|
+
*/
|
|
7
10
|
get optional(): string | null;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Use optionalDataInLine1 and optionalDataInLine2 instead. This property will be removed in SDK version 8.0.
|
|
13
|
+
*/
|
|
8
14
|
get optional1(): string | null;
|
|
15
|
+
get optionalDataInLine1(): string | null;
|
|
16
|
+
get optionalDataInLine2(): string | null;
|
|
9
17
|
get capturedMrz(): string;
|
|
10
18
|
get personalIdNumber(): string | null;
|
|
11
19
|
get renewalTimes(): number | null;
|
|
@@ -9,6 +9,11 @@ export declare class IdCapture extends DefaultSerializeable implements DataCaptu
|
|
|
9
9
|
get context(): DataCaptureContext | null;
|
|
10
10
|
get feedback(): IdCaptureFeedback;
|
|
11
11
|
set feedback(feedback: IdCaptureFeedback);
|
|
12
|
+
static createRecommendedCameraSettings(): CameraSettings;
|
|
13
|
+
private static _recommendedCameraSettings;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use createRecommendedCameraSettings() instead to get a new instance that can be safely modified.
|
|
16
|
+
*/
|
|
12
17
|
static get recommendedCameraSettings(): CameraSettings;
|
|
13
18
|
private type;
|
|
14
19
|
private _isEnabled;
|
|
@@ -22,8 +27,16 @@ export declare class IdCapture extends DefaultSerializeable implements DataCaptu
|
|
|
22
27
|
private listenerController;
|
|
23
28
|
private isInListenerCallback;
|
|
24
29
|
private static get idCaptureDefaults();
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated Since 7.6. This factory will be removed in 8.0.
|
|
32
|
+
* Use the public constructor instead and configure the instance manually:
|
|
33
|
+
* ```ts
|
|
34
|
+
* const idCapture = new IdCapture(settings);
|
|
35
|
+
* context.setMode(idCapture);
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
25
38
|
static forContext(context: DataCaptureContext | null, settings: IdCaptureSettings): IdCapture;
|
|
26
|
-
|
|
39
|
+
constructor(settings: IdCaptureSettings);
|
|
27
40
|
applySettings(settings: IdCaptureSettings): Promise<void>;
|
|
28
41
|
addListener(listener: IdCaptureListener): void;
|
|
29
42
|
removeListener(listener: IdCaptureListener): void;
|
|
@@ -31,7 +44,6 @@ export declare class IdCapture extends DefaultSerializeable implements DataCaptu
|
|
|
31
44
|
}
|
|
32
45
|
export interface PrivateIdCapture extends PrivateDataCaptureMode {
|
|
33
46
|
_context: DataCaptureContext | null;
|
|
34
|
-
isInListenerCallback: boolean;
|
|
35
47
|
listeners: IdCaptureListener[];
|
|
36
48
|
controller: IdCaptureController;
|
|
37
49
|
}
|
|
@@ -5,8 +5,10 @@ import { IdLayoutStyle } from './IdLayoutStyle';
|
|
|
5
5
|
import { TextHintPosition } from '../common/TextHintPosition';
|
|
6
6
|
export declare class IdCaptureOverlay extends DefaultSerializeable implements DataCaptureOverlay {
|
|
7
7
|
private type;
|
|
8
|
-
private
|
|
9
|
-
private
|
|
8
|
+
private controller;
|
|
9
|
+
private _view;
|
|
10
|
+
private get view();
|
|
11
|
+
private set view(value);
|
|
10
12
|
private _idLayoutStyle;
|
|
11
13
|
private _idLayoutLineStyle;
|
|
12
14
|
private _textHintPosition;
|
|
@@ -20,9 +22,21 @@ export declare class IdCaptureOverlay extends DefaultSerializeable implements Da
|
|
|
20
22
|
private _rejectedBrush;
|
|
21
23
|
private _frontSideTextHint;
|
|
22
24
|
private _backSideTextHint;
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated Since 7.6. These factories will be removed in 8.0.
|
|
27
|
+
* Use the public constructor instead and add the overlay to the view manually:
|
|
28
|
+
* const overlay = new IdCaptureOverlay(idCapture);
|
|
29
|
+
* view.addOverlay(overlay);
|
|
30
|
+
*/
|
|
23
31
|
static withIdCapture(idCapture: IdCapture): IdCaptureOverlay;
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated Since 7.6. These factories will be removed in 8.0.
|
|
34
|
+
* Use the public constructor instead and add the overlay to the view manually:
|
|
35
|
+
* const overlay = new IdCaptureOverlay(idCapture);
|
|
36
|
+
* view.addOverlay(overlay);
|
|
37
|
+
*/
|
|
24
38
|
static withIdCaptureForView(idCapture: IdCapture, view: DataCaptureView | null): IdCaptureOverlay;
|
|
25
|
-
|
|
39
|
+
constructor();
|
|
26
40
|
setFrontSideTextHint(text: string): void;
|
|
27
41
|
setBackSideTextHint(text: string): void;
|
|
28
42
|
get idLayoutStyle(): IdLayoutStyle;
|
|
@@ -2,6 +2,7 @@ import { DefaultSerializeable } from 'scandit-datacapture-frameworks-core';
|
|
|
2
2
|
import { IdAnonymizationMode, IdImageType } from '../common';
|
|
3
3
|
import { IdCaptureDocument } from '../iddocumenttype';
|
|
4
4
|
import { IdCaptureScanner } from '../scanner';
|
|
5
|
+
import { Duration } from '../common/Duration';
|
|
5
6
|
export declare class IdCaptureSettings extends DefaultSerializeable {
|
|
6
7
|
private properties;
|
|
7
8
|
private imageToResult;
|
|
@@ -11,6 +12,12 @@ export declare class IdCaptureSettings extends DefaultSerializeable {
|
|
|
11
12
|
acceptedDocuments: IdCaptureDocument[];
|
|
12
13
|
rejectedDocuments: IdCaptureDocument[];
|
|
13
14
|
scannerType: IdCaptureScanner;
|
|
15
|
+
rejectExpiredIds: boolean;
|
|
16
|
+
rejectIdsExpiringIn: Duration | null;
|
|
17
|
+
rejectNotRealIdCompliant: boolean;
|
|
18
|
+
rejectForgedAamvaBarcodes: boolean;
|
|
19
|
+
rejectInconsistentData: boolean;
|
|
20
|
+
rejectHolderBelowAge: number | null;
|
|
14
21
|
constructor();
|
|
15
22
|
private static get idCaptureDefaults();
|
|
16
23
|
setProperty(name: string, value: any): void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BaseController, DataCaptureContext, NativeCallResult } from 'scandit-datacapture-frameworks-core';
|
|
2
2
|
import { IdCapture } from '../IdCapture';
|
|
3
3
|
import { IdCaptureSettings } from '../IdCaptureSettings';
|
|
4
|
-
import { IdCaptureOverlay } from '../IdCaptureOverlay';
|
|
5
4
|
import { IdCaptureFeedback } from '../IdCaptureFeedback';
|
|
6
5
|
export interface IdCaptureProxy {
|
|
7
6
|
createContextForBarcodeVerification(contextJSON: string): Promise<void>;
|
|
@@ -10,19 +9,16 @@ export interface IdCaptureProxy {
|
|
|
10
9
|
setModeEnabledState(enabled: boolean): void;
|
|
11
10
|
updateIdCaptureMode(modeJson: string): Promise<void>;
|
|
12
11
|
applyIdCaptureModeSettings(newSettingsJson: string): Promise<void>;
|
|
13
|
-
updateIdCaptureOverlay(overlayJson: string): Promise<void>;
|
|
14
12
|
updateFeedback(feedbackJson: string): Promise<void>;
|
|
15
13
|
}
|
|
16
14
|
export declare class IdCaptureController extends BaseController<IdCaptureProxy> {
|
|
17
15
|
private idCapture;
|
|
18
|
-
|
|
19
|
-
constructor();
|
|
16
|
+
constructor(idCapture?: IdCapture | null);
|
|
20
17
|
reset(): Promise<void>;
|
|
21
18
|
createContextForBarcodeVerification(context: DataCaptureContext): Promise<void>;
|
|
22
19
|
verifyCapturedIdAsync(capturedId: string): Promise<string | null>;
|
|
23
20
|
setModeEnabledState(enabled: boolean): void;
|
|
24
21
|
updateIdCaptureMode(): Promise<void>;
|
|
25
22
|
applyIdCaptureModeSettings(newSettings: IdCaptureSettings): Promise<void>;
|
|
26
|
-
updateIdCaptureOverlay(overlay: IdCaptureOverlay): Promise<void>;
|
|
27
23
|
updateFeedback(feedback: IdCaptureFeedback): Promise<void>;
|
|
28
24
|
}
|
|
@@ -2,11 +2,13 @@ import { IdCapture } from '../IdCapture';
|
|
|
2
2
|
export declare class IdCaptureListenerController {
|
|
3
3
|
private idCapture;
|
|
4
4
|
private eventEmitter;
|
|
5
|
+
private hasListeners;
|
|
5
6
|
private get _proxy();
|
|
6
|
-
|
|
7
|
-
private
|
|
7
|
+
constructor(idCapture: IdCapture);
|
|
8
|
+
private initialize;
|
|
8
9
|
subscribeListener(): void;
|
|
9
10
|
unsubscribeListener(): void;
|
|
10
11
|
private notifyListenersOfDidCapture;
|
|
11
12
|
private notifyListenersOfDidReject;
|
|
13
|
+
dispose(): void;
|
|
12
14
|
}
|
|
@@ -7,7 +7,6 @@ export interface IdCaptureListenerProxy {
|
|
|
7
7
|
unregisterListenerForEvents(): void;
|
|
8
8
|
}
|
|
9
9
|
export declare enum IdCaptureListenerEvents {
|
|
10
|
-
inCallback = "IdCaptureListener.inCallback",
|
|
11
10
|
didCapture = "IdCaptureListener.didCaptureId",
|
|
12
11
|
didReject = "IdCaptureListener.didRejectId"
|
|
13
12
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseNewController, EventEmitter } from 'scandit-datacapture-frameworks-core';
|
|
2
|
+
import { IdCaptureOverlay } from '../IdCaptureOverlay';
|
|
3
|
+
export interface IdCaptureOverlayProxy {
|
|
4
|
+
$updateIdCaptureOverlay({ overlayJson }: {
|
|
5
|
+
overlayJson: string;
|
|
6
|
+
}): Promise<void>;
|
|
7
|
+
dispose(): void;
|
|
8
|
+
eventEmitter: EventEmitter;
|
|
9
|
+
}
|
|
10
|
+
export declare class IdCaptureOverlayController extends BaseNewController<IdCaptureOverlayProxy> {
|
|
11
|
+
private overlay;
|
|
12
|
+
constructor(overlay: IdCaptureOverlay);
|
|
13
|
+
updateIdCaptureOverlay(overlay: IdCaptureOverlay): Promise<void>;
|
|
14
|
+
dispose(): void;
|
|
15
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './controller/IdCaptureController';
|
|
2
2
|
export * from './controller/IdCaptureListenerController';
|
|
3
3
|
export * from './controller/IdCaptureListenerProxy';
|
|
4
|
+
export * from './controller/IdCaptureOverlayController';
|
|
4
5
|
export * from './IdCapture';
|
|
5
6
|
export * from './IdCaptureFeedback';
|
|
6
7
|
export * from './IdCaptureListener';
|