scandit-datacapture-frameworks-id 6.21.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.
Files changed (62) hide show
  1. package/dist/dts/common/ComparisonCheck.d.ts +7 -0
  2. package/dist/dts/common/ComparisonCheckResult.d.ts +5 -0
  3. package/dist/dts/common/DateComparisonCheck.d.ts +15 -0
  4. package/dist/dts/common/DateResult.d.ts +13 -0
  5. package/dist/dts/common/IdAnonymizationMode.d.ts +6 -0
  6. package/dist/dts/common/IdDocumentType.d.ts +22 -0
  7. package/dist/dts/common/IdImageType.d.ts +5 -0
  8. package/dist/dts/common/LocalizedOnlyId.d.ts +10 -0
  9. package/dist/dts/common/RejectedId.d.ts +10 -0
  10. package/dist/dts/common/StringComparisonCheck.d.ts +14 -0
  11. package/dist/dts/common/SupportedSides.d.ts +4 -0
  12. package/dist/dts/common/index.d.ts +11 -0
  13. package/dist/dts/defaults/IdDefaults.d.ts +34 -0
  14. package/dist/dts/defaults/SerializedTypes.d.ts +293 -0
  15. package/dist/dts/defaults/index.d.ts +3 -0
  16. package/dist/dts/defaults/loadDefaults.d.ts +1 -0
  17. package/dist/dts/id/AAMVABarcodeResult.d.ts +41 -0
  18. package/dist/dts/id/AamvaBarcodeVerificationResult.d.ts +5 -0
  19. package/dist/dts/id/AamvaBarcodeVerifier.d.ts +13 -0
  20. package/dist/dts/id/AamvaVizBarcodeComparisonResult.d.ts +19 -0
  21. package/dist/dts/id/AamvaVizBarcodeComparisonVerifier.d.ts +7 -0
  22. package/dist/dts/id/ApecBusinessTravelCardMrzResult.d.ts +14 -0
  23. package/dist/dts/id/ArgentinaIdBarcodeResult.d.ts +10 -0
  24. package/dist/dts/id/CapturedId.d.ts +79 -0
  25. package/dist/dts/id/CapturedResultType.d.ts +18 -0
  26. package/dist/dts/id/ChinaExitEntryPermitMRZResult.d.ts +10 -0
  27. package/dist/dts/id/ChinaMainlandTravelPermitMRZResult.d.ts +16 -0
  28. package/dist/dts/id/ChinaOneWayPermitBackMrzResult.d.ts +11 -0
  29. package/dist/dts/id/ChinaOneWayPermitFrontMrzResult.d.ts +11 -0
  30. package/dist/dts/id/ColombiaDlBarcodeResult.d.ts +10 -0
  31. package/dist/dts/id/ColombiaIdBarcodeResult.d.ts +9 -0
  32. package/dist/dts/id/CommonAccessCardBarcodeResult.d.ts +20 -0
  33. package/dist/dts/id/CommonCapturedIdFields.d.ts +25 -0
  34. package/dist/dts/id/DocumentType.d.ts +62 -0
  35. package/dist/dts/id/MRZResult.d.ts +13 -0
  36. package/dist/dts/id/ProfessionalDrivingPermit.d.ts +11 -0
  37. package/dist/dts/id/SouthAfricaDlBarcodeResult.d.ts +18 -0
  38. package/dist/dts/id/SouthAfricaIdBarcodeResult.d.ts +12 -0
  39. package/dist/dts/id/USUniformedServicesBarcodeResult.d.ts +46 -0
  40. package/dist/dts/id/USVisaVIZResult.d.ts +10 -0
  41. package/dist/dts/id/VIZResult.d.ts +25 -0
  42. package/dist/dts/id/VehicleRestriction.d.ts +12 -0
  43. package/dist/dts/id/index.d.ts +26 -0
  44. package/dist/dts/idcapture/IdCapture.d.ts +37 -0
  45. package/dist/dts/idcapture/IdCaptureError.d.ts +11 -0
  46. package/dist/dts/idcapture/IdCaptureFeedback.d.ts +15 -0
  47. package/dist/dts/idcapture/IdCaptureListener.d.ts +15 -0
  48. package/dist/dts/idcapture/IdCaptureOverlay.d.ts +37 -0
  49. package/dist/dts/idcapture/IdCaptureSession.d.ts +23 -0
  50. package/dist/dts/idcapture/IdCaptureSettings.d.ts +15 -0
  51. package/dist/dts/idcapture/IdLayout.d.ts +10 -0
  52. package/dist/dts/idcapture/IdLayoutLineStyle.d.ts +4 -0
  53. package/dist/dts/idcapture/IdLayoutStyle.d.ts +4 -0
  54. package/dist/dts/idcapture/controller/IdCaptureController.d.ts +12 -0
  55. package/dist/dts/idcapture/controller/IdCaptureListenerController.d.ts +14 -0
  56. package/dist/dts/idcapture/controller/IdCaptureListenerProxy.d.ts +19 -0
  57. package/dist/dts/idcapture/controller/IdCaptureProxy.d.ts +7 -0
  58. package/dist/dts/idcapture/index.d.ts +14 -0
  59. package/dist/dts/index.d.ts +4 -0
  60. package/dist/index.js +1487 -0
  61. package/dist/index.js.map +1 -0
  62. package/package.json +20 -0
@@ -0,0 +1,18 @@
1
+ export declare enum CapturedResultType {
2
+ AAMVABarcodeResult = "aamvaBarcodeResult",
3
+ ArgentinaIdBarcodeResult = "argentinaIdBarcodeResult",
4
+ ColombiaIdBarcodeResult = "colombiaIdBarcodeResult",
5
+ ColombiaDlBarcodeResult = "colombiaDlBarcodeResult",
6
+ MRZResult = "mrzResult",
7
+ SouthAfricaDlBarcodeResult = "southAfricaDlBarcodeResult",
8
+ SouthAfricaIdBarcodeResult = "southAfricaIdBarcodeResult",
9
+ CommonAccessCardBarcodeResult = "commonAccessCardBarcodeResult",
10
+ USUniformedServicesBarcodeResult = "usUniformedServicesBarcodeResult",
11
+ USVisaVIZResult = "usVisaVizResult",
12
+ VIZResult = "vizResult",
13
+ ChinaMainlandTravelPermitMRZResult = "chinaMainlandTravelPermitMrzResult",
14
+ ChinaExitEntryPermitMRZResult = "chinaExitEntryPermitMrzResult",
15
+ ChinaOneWayPermitBackMrzResult = "chinaOneWayPermitBackMrzResult",
16
+ ChinaOneWayPermitFrontMrzResult = "chinaOneWayPermitFrontMrzResult",
17
+ ApecBusinessTravelCardMrzResult = "apecBusinessTravelCardMrzResult"
18
+ }
@@ -0,0 +1,10 @@
1
+ import { ChinaExitEntryPermitMRZResultJSON } from "../defaults";
2
+ export declare class ChinaExitEntryPermitMRZResult {
3
+ private json;
4
+ get documentCode(): string;
5
+ get capturedMrz(): string;
6
+ private static fromJSON;
7
+ }
8
+ export interface PrivateChinaExitEntryPermitMRZResult {
9
+ fromJSON(json: ChinaExitEntryPermitMRZResultJSON): ChinaExitEntryPermitMRZResult;
10
+ }
@@ -0,0 +1,16 @@
1
+ import { ChinaMainlandTravelPermitMRZResultJSON } from "../defaults";
2
+ export declare class ChinaMainlandTravelPermitMRZResult {
3
+ private json;
4
+ get documentCode(): string;
5
+ get capturedMrz(): string;
6
+ get personalIdNumber(): string;
7
+ get renewalTimes(): number;
8
+ get fullNameSimplifiedChinese(): string;
9
+ get omittedCharacterCountInGBKName(): number;
10
+ get omittedNameCount(): number;
11
+ get issuingAuthorityCode(): string | null;
12
+ private static fromJSON;
13
+ }
14
+ export interface PrivateChinaMainlandTravelPermitMrzResult {
15
+ fromJSON(json: ChinaMainlandTravelPermitMRZResultJSON): ChinaMainlandTravelPermitMRZResult;
16
+ }
@@ -0,0 +1,11 @@
1
+ import { ChinaOneWayPermitBackMrzResultJSON } from "../defaults";
2
+ export declare class ChinaOneWayPermitBackMrzResult {
3
+ private json;
4
+ get documentCode(): string;
5
+ get namesAreTruncated(): boolean;
6
+ get capturedMrz(): string;
7
+ private static fromJSON;
8
+ }
9
+ export interface PrivateChinaOneWayPermitBackMrzResult {
10
+ fromJSON(json: ChinaOneWayPermitBackMrzResultJSON): ChinaOneWayPermitBackMrzResult;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { ChinaOneWayPermitFrontMrzResultJSON } from "../defaults";
2
+ export declare class ChinaOneWayPermitFrontMrzResult {
3
+ private json;
4
+ get documentCode(): string;
5
+ get capturedMrz(): string;
6
+ get fullNameSimplifiedChinese(): string;
7
+ private static fromJSON;
8
+ }
9
+ export interface PrivateChinaOneWayPermitFrontMrzResult {
10
+ fromJSON(json: ChinaOneWayPermitFrontMrzResultJSON): ChinaOneWayPermitFrontMrzResult;
11
+ }
@@ -0,0 +1,10 @@
1
+ import { ColombiaDlBarcodeResultJSON } from "../defaults";
2
+ export declare class ColombiaDlBarcodeResult {
3
+ private json;
4
+ get categories(): string[];
5
+ get identificationType(): string;
6
+ private static fromJSON;
7
+ }
8
+ export interface PrivateColombiaDlBarcodeResult {
9
+ fromJSON(json: ColombiaDlBarcodeResultJSON): ColombiaDlBarcodeResult;
10
+ }
@@ -0,0 +1,9 @@
1
+ import { ColombiaIdBarcodeResultJSON } from "../defaults";
2
+ export declare class ColombiaIdBarcodeResult {
3
+ private json;
4
+ get bloodType(): string;
5
+ private static fromJSON;
6
+ }
7
+ export interface PrivateColombiaIdBarcodeResult {
8
+ fromJSON(json: ColombiaIdBarcodeResultJSON): ColombiaIdBarcodeResult;
9
+ }
@@ -0,0 +1,20 @@
1
+ import { CommonAccessCardBarcodeResultJSON } from "../defaults";
2
+ export declare class CommonAccessCardBarcodeResult {
3
+ private json;
4
+ get version(): string;
5
+ get personDesignatorDocument(): number;
6
+ get personDesignatorTypeCode(): string;
7
+ get ediPersonIdentifier(): string;
8
+ get personnelCategoryCode(): string;
9
+ get branchOfService(): string;
10
+ get personnelEntitlementConditionType(): string;
11
+ get rank(): string;
12
+ get payPlanCode(): string;
13
+ get payPlanGradeCode(): string;
14
+ get cardInstanceIdentifier(): string;
15
+ get personMiddleInitial(): string;
16
+ private static fromJSON;
17
+ }
18
+ export interface PrivateCommonAccessCardBarcodeResult {
19
+ fromJSON(json: CommonAccessCardBarcodeResultJSON): CommonAccessCardBarcodeResult;
20
+ }
@@ -0,0 +1,25 @@
1
+ import { DateResult } from "../common";
2
+ import { CommonCapturedIdFieldsJSON } from "../defaults";
3
+ export declare class CommonCapturedIdFields {
4
+ private json;
5
+ get firstName(): string | null;
6
+ get lastName(): string | null;
7
+ get fullName(): string;
8
+ get sex(): string | null;
9
+ get dateOfBirth(): DateResult | null;
10
+ get age(): number | null;
11
+ get isExpired(): boolean | null;
12
+ get nationality(): string | null;
13
+ get address(): string | null;
14
+ get documentAdditionalNumber(): string | null;
15
+ get documentType(): string | null;
16
+ get documentNumber(): string | null;
17
+ get issuingCountry(): string | null;
18
+ get issuingCountryIso(): string | null;
19
+ get dateOfExpiry(): DateResult | null;
20
+ get dateOfIssue(): DateResult | null;
21
+ private static fromJSON;
22
+ }
23
+ export interface PrivateCommonCapturedIdFields {
24
+ fromJSON(json: CommonCapturedIdFieldsJSON | null, existingInstance: CommonCapturedIdFields | null): CommonCapturedIdFields;
25
+ }
@@ -0,0 +1,62 @@
1
+ export declare enum DocumentType {
2
+ None = "none",
3
+ ConsularId = "consularId",
4
+ DrivingLicense = "drivingLicense",
5
+ DrivingLicensePublicServicesCard = "drivingLicensePublicServicesCard",
6
+ EmploymentPass = "employmentPass",
7
+ FinCard = "finCard",
8
+ Id = "id",
9
+ MultipurposeId = "multipurposeId",
10
+ MyKad = "myKad",
11
+ MyKid = "myKid",
12
+ MyPR = "myPr",
13
+ MyTentera = "myTentera",
14
+ PanCard = "panCard",
15
+ ProfessionalId = "professionalId",
16
+ PublicServicesCard = "publicServicesCard",
17
+ ResidencePermit = "residencePermit",
18
+ ResidentId = "residentId",
19
+ TemporaryResidencePermit = "temporaryResidencePermit",
20
+ VoterId = "voterId",
21
+ WorkPermit = "workPermit",
22
+ IKad = "iKad",
23
+ MilitaryId = "militaryId",
24
+ MyKas = "myKas",
25
+ SocialSecurityCard = "socialSecurityCard",
26
+ HealthInsuranceCard = "healthInsuranceCard",
27
+ Passport = "passport",
28
+ DiplomaticPassport = "diplomaticPassport",
29
+ ServicePassport = "servicePassport",
30
+ TemporaryPassport = "temporaryPassport",
31
+ Visa = "visa",
32
+ SPass = "sPass",
33
+ AddressCard = "addressCard",
34
+ AlienId = "alienId",
35
+ AlienPassport = "alienPassport",
36
+ GreenCard = "greenCard",
37
+ MinorsId = "minorsId",
38
+ PostalId = "postalId",
39
+ ProfessionalDl = "professionalDl",
40
+ TaxId = "taxId",
41
+ WeaponPermit = "weaponPermit",
42
+ BorderCrossingCard = "borderCrossingCard",
43
+ DriverCard = "driverCard",
44
+ GlobalEntryCard = "globalEntryCard",
45
+ MyPolis = "myPolis",
46
+ NexusCard = "nexusCard",
47
+ PassportCard = "passportCard",
48
+ ProofOfAgeCard = "proofOfAgeCard",
49
+ RefugeeId = "refugeeId",
50
+ TribalId = "tribalId",
51
+ VeteranId = "veteranId",
52
+ CitizenshipCertificate = "citizenshipCertificate",
53
+ MyNumberCard = "myNumberCard",
54
+ MinorsPassport = "minorsPassport",
55
+ MinorsPublicServicesCard = "minorsPublicServicesCard",
56
+ AsylumRequest = "asylumRequest",
57
+ DriverQualificationCard = "driverQualificationCard",
58
+ ProvisionalDl = "provisionalDl",
59
+ RefugeePassport = "refugeePassport",
60
+ SpecialId = "specialId",
61
+ UniformedServicesId = "uniformedServicesId"
62
+ }
@@ -0,0 +1,13 @@
1
+ import { MRZResultJSON } from "../defaults";
2
+ export declare class MRZResult {
3
+ private json;
4
+ get documentCode(): string;
5
+ get namesAreTruncated(): boolean;
6
+ get optional(): string | null;
7
+ get optional1(): string | null;
8
+ get capturedMrz(): string;
9
+ private static fromJSON;
10
+ }
11
+ export interface PrivateMRZResult {
12
+ fromJSON(json: MRZResultJSON): MRZResult;
13
+ }
@@ -0,0 +1,11 @@
1
+ import { ProfessionalDrivingPermitJSON } from "../defaults";
2
+ import { DateResult } from "../common/DateResult";
3
+ export declare class ProfessionalDrivingPermit {
4
+ private json;
5
+ get dateOfExpiry(): DateResult;
6
+ get codes(): string[];
7
+ private static fromJSON;
8
+ }
9
+ export interface PrivateProfessionalDrivingPermit {
10
+ fromJSON(json: ProfessionalDrivingPermitJSON | null): ProfessionalDrivingPermit;
11
+ }
@@ -0,0 +1,18 @@
1
+ import { SouthAfricaDlBarcodeResultJSON } from "../defaults";
2
+ import { ProfessionalDrivingPermit } from "./ProfessionalDrivingPermit";
3
+ import { VehicleRestriction } from "./VehicleRestriction";
4
+ export declare class SouthAfricaDlBarcodeResult {
5
+ private json;
6
+ get version(): number;
7
+ get licenseCountryOfIssue(): string;
8
+ get personalIdNumber(): string;
9
+ get personalIdNumberType(): string;
10
+ get documentCopy(): number;
11
+ get driverRestrictionCodes(): number[];
12
+ get professionalDrivingPermit(): ProfessionalDrivingPermit | null;
13
+ get vehicleRestrictions(): VehicleRestriction[];
14
+ private static fromJSON;
15
+ }
16
+ export interface PrivateSouthAfricaDlBarcodeResult {
17
+ fromJSON(json: SouthAfricaDlBarcodeResultJSON): SouthAfricaDlBarcodeResult;
18
+ }
@@ -0,0 +1,12 @@
1
+ import { SouthAfricaIdBarcodeResultJSON } from "../defaults";
2
+ export declare class SouthAfricaIdBarcodeResult {
3
+ private json;
4
+ get countryOfBirth(): string;
5
+ get countryOfBirthIso(): string;
6
+ get citizenshipStatus(): string;
7
+ get personalIdNumber(): string;
8
+ private static fromJSON;
9
+ }
10
+ export interface PrivateSouthAfricaIdBarcodeResult {
11
+ fromJSON(json: SouthAfricaIdBarcodeResultJSON): SouthAfricaIdBarcodeResult;
12
+ }
@@ -0,0 +1,46 @@
1
+ import { USUniformedServicesBarcodeResultJSON } from "../defaults";
2
+ import { DateResult } from "../common/DateResult";
3
+ export declare class USUniformedServicesBarcodeResult {
4
+ private json;
5
+ get bloodType(): string | null;
6
+ get branchOfService(): string;
7
+ get champusEffectiveDate(): DateResult | null;
8
+ get champusExpiryDate(): DateResult | null;
9
+ get civilianHealthCareFlagCode(): string;
10
+ get civilianHealthCareFlagDescription(): string;
11
+ get commissaryFlagCode(): string;
12
+ get commissaryFlagDescription(): string;
13
+ get deersDependentSuffixCode(): number;
14
+ get deersDependentSuffixDescription(): string;
15
+ get directCareFlagCode(): string;
16
+ get directCareFlagDescription(): string;
17
+ get exchangeFlagCode(): string;
18
+ get exchangeFlagDescription(): string;
19
+ get eyeColor(): string;
20
+ get familySequenceNumber(): number;
21
+ get formNumber(): string;
22
+ get genevaConventionCategory(): string | null;
23
+ get hairColor(): string;
24
+ get height(): number;
25
+ get jpegData(): string | null;
26
+ get mwrFlagCode(): string;
27
+ get mwrFlagDescription(): string;
28
+ get payGrade(): string | null;
29
+ get personDesignatorDocument(): number;
30
+ get rank(): string;
31
+ get relationshipCode(): string | null;
32
+ get relationshipDescription(): string | null;
33
+ get securityCode(): string;
34
+ get serviceCode(): string;
35
+ get sponsorFlag(): string;
36
+ get sponsorName(): string | null;
37
+ get sponsorPersonDesignatorIdentifier(): number | null;
38
+ get statusCode(): string;
39
+ get statusCodeDescription(): string;
40
+ get version(): number;
41
+ get weight(): number;
42
+ private static fromJSON;
43
+ }
44
+ export interface PrivateUSUniformedServicesBarcodeResult {
45
+ fromJSON(json: USUniformedServicesBarcodeResultJSON): USUniformedServicesBarcodeResult;
46
+ }
@@ -0,0 +1,10 @@
1
+ import { USVisaVizResultJSON } from "../defaults";
2
+ export declare class USVisaVIZResult {
3
+ private json;
4
+ get visaNumber(): string;
5
+ get passportNumber(): string;
6
+ private static fromJSON;
7
+ }
8
+ export interface PrivateUSVisaVizResult {
9
+ fromJSON(json: USVisaVizResultJSON): USVisaVIZResult;
10
+ }
@@ -0,0 +1,25 @@
1
+ import { VIZResultJSON } from "../defaults";
2
+ import { SupportedSides } from "../common";
3
+ export declare class VIZResult {
4
+ private json;
5
+ get additionalAddressInformation(): string | null;
6
+ get additionalNameInformation(): string | null;
7
+ get documentAdditionalNumber(): string | null;
8
+ get employer(): string | null;
9
+ get issuingAuthority(): string | null;
10
+ get issuingJurisdiction(): string | null;
11
+ get issuingJurisdictionIso(): string | null;
12
+ get maritalStatus(): string | null;
13
+ get personalIdNumber(): string | null;
14
+ get placeOfBirth(): string | null;
15
+ get profession(): string | null;
16
+ get race(): string | null;
17
+ get religion(): string | null;
18
+ get residentialStatus(): string | null;
19
+ get capturedSides(): SupportedSides;
20
+ get isBackSideCaptureSupported(): boolean;
21
+ private static fromJSON;
22
+ }
23
+ export interface PrivateVIZResult {
24
+ fromJSON(json: VIZResultJSON): VIZResult;
25
+ }
@@ -0,0 +1,12 @@
1
+ import { VehicleRestrictionJSON } from "../defaults";
2
+ import { DateResult } from "../common/DateResult";
3
+ export declare class VehicleRestriction {
4
+ private json;
5
+ get vehicleCode(): string;
6
+ get vehicleRestriction(): string;
7
+ get dateOfIssue(): DateResult;
8
+ private static fromJSON;
9
+ }
10
+ export interface PrivateVehicleRestriction {
11
+ fromJSON(json: VehicleRestrictionJSON | null): VehicleRestriction;
12
+ }
@@ -0,0 +1,26 @@
1
+ export * from './AAMVABarcodeResult';
2
+ export * from './AamvaBarcodeVerificationResult';
3
+ export * from './AamvaBarcodeVerifier';
4
+ export * from './AamvaVizBarcodeComparisonResult';
5
+ export * from './AamvaVizBarcodeComparisonVerifier';
6
+ export * from './ApecBusinessTravelCardMrzResult';
7
+ export * from './ArgentinaIdBarcodeResult';
8
+ export * from './CapturedId';
9
+ export * from './CapturedResultType';
10
+ export * from './ChinaExitEntryPermitMRZResult';
11
+ export * from './ChinaMainlandTravelPermitMRZResult';
12
+ export * from './ChinaOneWayPermitBackMrzResult';
13
+ export * from './ChinaOneWayPermitFrontMrzResult';
14
+ export * from './ColombiaDlBarcodeResult';
15
+ export * from './ColombiaIdBarcodeResult';
16
+ export * from './CommonAccessCardBarcodeResult';
17
+ export * from './CommonCapturedIdFields';
18
+ export * from './DocumentType';
19
+ export * from './MRZResult';
20
+ export * from './ProfessionalDrivingPermit';
21
+ export * from './SouthAfricaDlBarcodeResult';
22
+ export * from './SouthAfricaIdBarcodeResult';
23
+ export * from './USUniformedServicesBarcodeResult';
24
+ export * from './USVisaVIZResult';
25
+ export * from './VehicleRestriction';
26
+ export * from './VIZResult';
@@ -0,0 +1,37 @@
1
+ import { DefaultSerializeable, DataCaptureMode, DataCaptureContext, CameraSettings, PrivateDataCaptureMode } from "scandit-datacapture-frameworks-core";
2
+ import { IdCaptureListener } from "./IdCaptureListener";
3
+ import { IdCaptureSettings } from "./IdCaptureSettings";
4
+ import { IdCaptureFeedback } from "./IdCaptureFeedback";
5
+ export declare class IdCapture extends DefaultSerializeable implements DataCaptureMode {
6
+ get isEnabled(): boolean;
7
+ set isEnabled(isEnabled: boolean);
8
+ get context(): DataCaptureContext | null;
9
+ get feedback(): IdCaptureFeedback;
10
+ set feedback(feedback: IdCaptureFeedback);
11
+ static get recommendedCameraSettings(): CameraSettings;
12
+ private type;
13
+ private _isEnabled;
14
+ private _feedback;
15
+ private settings;
16
+ private privateContext;
17
+ private get _context();
18
+ private set _context(value);
19
+ private listeners;
20
+ private controller;
21
+ private listenerController;
22
+ private isInListenerCallback;
23
+ private static get idCaptureDefaults();
24
+ static forContext(context: DataCaptureContext | null, settings: IdCaptureSettings): IdCapture;
25
+ private constructor();
26
+ applySettings(settings: IdCaptureSettings): Promise<void>;
27
+ addListener(listener: IdCaptureListener): void;
28
+ removeListener(listener: IdCaptureListener): void;
29
+ reset(): Promise<void>;
30
+ private didChange;
31
+ }
32
+ export interface PrivateIdCapture extends PrivateDataCaptureMode {
33
+ _context: DataCaptureContext | null;
34
+ isInListenerCallback: boolean;
35
+ listeners: IdCaptureListener[];
36
+ didChange: () => Promise<void>;
37
+ }
@@ -0,0 +1,11 @@
1
+ import { IdCaptureErrorJSON } from "../defaults";
2
+ export declare class IdCaptureError {
3
+ private _type;
4
+ get type(): string;
5
+ private _message;
6
+ get message(): string;
7
+ private static fromJSON;
8
+ }
9
+ export interface PrivateIdCaptureError {
10
+ fromJSON(json: IdCaptureErrorJSON): IdCaptureError;
11
+ }
@@ -0,0 +1,15 @@
1
+ import { DefaultSerializeable, Feedback } from "scandit-datacapture-frameworks-core";
2
+ export declare class IdCaptureFeedback extends DefaultSerializeable {
3
+ static get defaultFeedback(): IdCaptureFeedback;
4
+ idCaptured: Feedback;
5
+ idRejected: Feedback;
6
+ idCaptureTimeout: Feedback;
7
+ private static fromJSON;
8
+ private static get idDefaults();
9
+ private constructor();
10
+ }
11
+ export interface IdCaptureFeedbackJSON {
12
+ idCaptured: Feedback;
13
+ idRejected: Feedback;
14
+ idCaptureTimeout: Feedback;
15
+ }
@@ -0,0 +1,15 @@
1
+ import { FrameData } from 'scandit-datacapture-frameworks-core';
2
+ import { IdCapture } from './IdCapture';
3
+ import { IdCaptureSession } from './IdCaptureSession';
4
+ import { IdCaptureError } from './IdCaptureError';
5
+ export interface IdCaptureListener {
6
+ didCaptureId?(idCapture: IdCapture, session: IdCaptureSession, getFrameData: () => Promise<FrameData>): void;
7
+ didLocalizeId?(idCapture: IdCapture, session: IdCaptureSession, getFrameData: () => Promise<FrameData>): void;
8
+ didRejectId?(idCapture: IdCapture, session: IdCaptureSession, getFrameData: () => Promise<FrameData>): void;
9
+ /**
10
+ * @deprecated This method is no longer executed by the listener.
11
+ * See didRejectId and didTimeoutInSession for scenarios previously reported by this callback.
12
+ */
13
+ didFailWithError?(idCapture: IdCapture, error: IdCaptureError, session: IdCaptureSession, getFrameData: () => Promise<FrameData>): void;
14
+ didTimeoutInSession?(idCapture: IdCapture, session: IdCaptureSession, getFrameData: () => Promise<FrameData>): void;
15
+ }
@@ -0,0 +1,37 @@
1
+ import { Brush, DataCaptureOverlay, DataCaptureView, DefaultSerializeable } from 'scandit-datacapture-frameworks-core';
2
+ import { IdCapture } from './IdCapture';
3
+ import { IdLayoutLineStyle } from './IdLayoutLineStyle';
4
+ import { IdLayout } from './IdLayout';
5
+ import { IdLayoutStyle } from './IdLayoutStyle';
6
+ export declare class IdCaptureOverlay extends DefaultSerializeable implements DataCaptureOverlay {
7
+ private type;
8
+ private idCapture;
9
+ private view;
10
+ private _idLayout;
11
+ private _idLayoutStyle;
12
+ private _idLayoutLineStyle;
13
+ private static get idCaptureDefaults();
14
+ private _defaultCapturedBrush;
15
+ private _defaultLocalizedBrush;
16
+ private _defaultRejectedBrush;
17
+ private _capturedBrush;
18
+ private _localizedBrush;
19
+ private _rejectedBrush;
20
+ static withIdCapture(idCapture: IdCapture): IdCaptureOverlay;
21
+ static withIdCaptureForView(idCapture: IdCapture, view: DataCaptureView | null): IdCaptureOverlay;
22
+ private constructor();
23
+ setIdLayout(idLayout: IdLayout): void;
24
+ get idLayoutStyle(): IdLayoutStyle;
25
+ set idLayoutStyle(style: IdLayoutStyle);
26
+ get idLayoutLineStyle(): IdLayoutLineStyle;
27
+ set idLayoutLineStyle(lineStyle: IdLayoutLineStyle);
28
+ get capturedBrush(): Brush;
29
+ set capturedBrush(brush: Brush);
30
+ get localizedBrush(): Brush;
31
+ set localizedBrush(brush: Brush);
32
+ get rejectedBrush(): Brush;
33
+ set rejectedBrush(brush: Brush);
34
+ get defaultCapturedBrush(): Brush;
35
+ get defaultLocalizedBrush(): Brush;
36
+ get defaultRejectedBrush(): Brush;
37
+ }
@@ -0,0 +1,23 @@
1
+ import { CapturedId } from '../id/CapturedId';
2
+ import { IdCaptureSessionJSON } from '../defaults/SerializedTypes';
3
+ import { LocalizedOnlyId, RejectedId } from '../common';
4
+ import { IdCaptureError } from './IdCaptureError';
5
+ export declare class IdCaptureSession {
6
+ private _newlyCapturedId;
7
+ get newlyCapturedId(): CapturedId | null;
8
+ private _frameSequenceId;
9
+ get frameSequenceId(): number;
10
+ private _localizedOnlyId;
11
+ get localizedOnlyId(): LocalizedOnlyId | null;
12
+ private _newlyRejectedId;
13
+ get newlyRejectedId(): RejectedId | null;
14
+ private _error;
15
+ private static fromJSON;
16
+ }
17
+ export interface PrivateIdCaptureSession {
18
+ _error: IdCaptureError | null;
19
+ fromJSON(json: IdCaptureSessionJSON): IdCaptureSession;
20
+ }
21
+ export interface PrivateIdCaptureSessionEventPayload {
22
+ session: string;
23
+ }
@@ -0,0 +1,15 @@
1
+ import { DefaultSerializeable } from 'scandit-datacapture-frameworks-core';
2
+ import { IdDocumentType, IdAnonymizationMode, IdImageType, SupportedSides } from '../common';
3
+ export declare class IdCaptureSettings extends DefaultSerializeable {
4
+ private properties;
5
+ private imageToResult;
6
+ supportedDocuments: IdDocumentType[];
7
+ supportedSides: SupportedSides;
8
+ anonymizationMode: IdAnonymizationMode;
9
+ constructor();
10
+ private static get idCaptureDefaults();
11
+ setProperty(name: string, value: any): void;
12
+ getProperty(name: string): any;
13
+ setShouldPassImageTypeToResult(type: IdImageType, shouldPass: boolean): void;
14
+ getShouldPassImageTypeToResult(type: IdImageType): boolean;
15
+ }
@@ -0,0 +1,10 @@
1
+ export declare enum IdLayout {
2
+ TD1 = "td1",
3
+ TD2 = "td2",
4
+ TD3 = "td3",
5
+ MRVa = "mrvA",
6
+ VIZ = "viz",
7
+ PDF417 = "pdf417",
8
+ Auto = "auto",
9
+ None = "none"
10
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum IdLayoutLineStyle {
2
+ Light = "light",
3
+ Bold = "bold"
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum IdLayoutStyle {
2
+ Rounded = "rounded",
3
+ Square = "square"
4
+ }
@@ -0,0 +1,12 @@
1
+ import { DataCaptureContext } from 'scandit-datacapture-frameworks-core';
2
+ import { IdCapture } from '../IdCapture';
3
+ export declare class IdCaptureController {
4
+ private idCapture;
5
+ private get _proxy();
6
+ static forIdCapture(idCapture: IdCapture): IdCaptureController;
7
+ reset(): Promise<void>;
8
+ verifyCapturedId(capturedId: string): Promise<string | null>;
9
+ createContextForBarcodeVerification(context: DataCaptureContext): Promise<string | null>;
10
+ verifyCapturedIdAsync(capturedId: string): Promise<string | null>;
11
+ setModeEnabledState(enabled: boolean): void;
12
+ }
@@ -0,0 +1,14 @@
1
+ import { IdCapture } from '../IdCapture';
2
+ export declare class IdCaptureListenerController {
3
+ private idCapture;
4
+ private eventEmitter;
5
+ private get _proxy();
6
+ static forIdCapture(idCapture: IdCapture): IdCaptureListenerController;
7
+ private constructor();
8
+ subscribeListener(): void;
9
+ unsubscribeListener(): void;
10
+ private notifyListenersOfDidCapture;
11
+ private notifyListenersOfDidLocalize;
12
+ private notifyListenersOfDidReject;
13
+ private notifyListenersOfDidTimeOut;
14
+ }
@@ -0,0 +1,19 @@
1
+ export interface IdCaptureListenerProxy {
2
+ isModeEnabled: () => boolean;
3
+ subscribeDidCaptureListener(): void;
4
+ subscribeDidLocalizeListener(): void;
5
+ subscribeDidRejectListener(): void;
6
+ subscribeDidTimeOutListener(): void;
7
+ finishDidCaptureCallback(isEnabled: boolean): void;
8
+ finishDidLocalizeCallback(isEnabled: boolean): void;
9
+ finishDidRejectCallback(isEnabled: boolean): void;
10
+ finishDidTimeOutCallback(isEnabled: boolean): void;
11
+ unregisterListenerForEvents(): void;
12
+ }
13
+ export declare enum IdCaptureListenerEvents {
14
+ inCallback = "IdCaptureListener.inCallback",
15
+ didCapture = "IdCaptureListener.didCaptureId",
16
+ didLocalize = "IdCaptureListener.didLocalizeId",
17
+ didReject = "IdCaptureListener.didRejectId",
18
+ didTimeOut = "IdCaptureListener.didTimeout"
19
+ }
@@ -0,0 +1,7 @@
1
+ export interface IdCaptureProxy {
2
+ createContextForBarcodeVerification(contextJSON: string): Promise<void>;
3
+ resetMode(): Promise<void>;
4
+ verifyCapturedId(capturedId: string): Promise<string | null>;
5
+ verifyCapturedIdAsync(capturedId: string): Promise<string | null>;
6
+ setModeEnabledState(enabled: boolean): void;
7
+ }
@@ -0,0 +1,14 @@
1
+ export * from './controller/IdCaptureController';
2
+ export * from './controller/IdCaptureListenerController';
3
+ export * from './controller/IdCaptureListenerProxy';
4
+ export * from './controller/IdCaptureProxy';
5
+ export * from './IdCapture';
6
+ export * from './IdCaptureError';
7
+ export * from './IdCaptureFeedback';
8
+ export * from './IdCaptureListener';
9
+ export * from './IdCaptureOverlay';
10
+ export * from './IdCaptureSession';
11
+ export * from './IdCaptureSettings';
12
+ export * from './IdLayout';
13
+ export * from './IdLayoutLineStyle';
14
+ export * from './IdLayoutStyle';