Socket
Socket
Sign inDemoInstall

scandit-cordova-datacapture-id

Package Overview
Dependencies
Maintainers
4
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scandit-cordova-datacapture-id - npm Package Compare versions

Comparing version 6.7.3 to 6.8.0-beta.1

2

package.json
{
"name": "scandit-cordova-datacapture-id",
"version": "6.7.3",
"version": "6.8.0-beta.1",
"description": "Scandit Data Capture SDK for Cordova",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VIZResult = exports.USUniformedServicesBarcodeResult = exports.MRZResult = exports.AAMVABarcodeResult = exports.CapturedId = exports.DateResult = void 0;
exports.SouthAfricaDlBarcodeResult = exports.SouthAfricaIdBarcodeResult = exports.ColombiaIdBarcodeResult = exports.ArgentinaIdBarcodeResult = exports.VIZResult = exports.USUniformedServicesBarcodeResult = exports.MRZResult = exports.AAMVABarcodeResult = exports.CapturedId = exports.VehicleRestriction = exports.ProfessionalDrivingPermit = exports.DateResult = void 0;
class DateResult {
get day() {
return this.json.day;
}
get month() {
return this.json.month;
}
get year() {
return this.json.year;
}
get day() { return this.json.day; }
get month() { return this.json.month; }
get year() { return this.json.year; }
static fromJSON(json) {

@@ -24,2 +18,33 @@ if (json === null) {

exports.DateResult = DateResult;
class ProfessionalDrivingPermit {
get dateOfExpiry() {
return DateResult.fromJSON(this.json.dateOfExpiry);
}
get codes() { return this.json.codes; }
static fromJSON(json) {
if (json === null) {
return null;
}
const object = new ProfessionalDrivingPermit();
object.json = json;
return object;
}
}
exports.ProfessionalDrivingPermit = ProfessionalDrivingPermit;
class VehicleRestriction {
get vehicleCode() { return this.json.vehicleCode; }
get vehicleRestriction() { return this.json.vehicleRestriction; }
get dateOfIssue() {
return DateResult.fromJSON(this.json.dateOfIssue);
}
static fromJSON(json) {
if (json === null) {
return null;
}
const object = new VehicleRestriction();
object.json = json;
return object;
}
}
exports.VehicleRestriction = VehicleRestriction;
class CapturedId {

@@ -53,9 +78,16 @@ get firstName() { return this.json.firstName; }

}
get usUniformedServicesBarcodeResult() {
if (this._usUniformedServicesBarcodeResult == null && this.json.usUniformedServicesBarcodeResult != null) {
const fromJSON = USUniformedServicesBarcodeResult.fromJSON;
this._usUniformedServicesBarcodeResult = fromJSON(this.json.usUniformedServicesBarcodeResult);
get argentinaIdBarcodeResult() {
if (this._argentinaIdBarcodeResult == null && this.json.argentinaIdBarcodeResult != null) {
this._argentinaIdBarcodeResult = ArgentinaIdBarcodeResult.
fromJSON(this.json.argentinaIdBarcodeResult);
}
return this._usUniformedServicesBarcodeResult;
return this._argentinaIdBarcodeResult;
}
get colombiaIdBarcodeResult() {
if (this._colombiaIdBarcodeResult == null && this.json.colombiaIdBarcodeResult != null) {
this._colombiaIdBarcodeResult = ColombiaIdBarcodeResult.
fromJSON(this.json.colombiaIdBarcodeResult);
}
return this._colombiaIdBarcodeResult;
}
get mrzResult() {

@@ -67,2 +99,23 @@ if (this._mrzResult == null && this.json.mrzResult != null) {

}
get southAfricaIdBarcodeResult() {
if (this._southAfricaIdBarcodeResult == null && this.json.southAfricaIdBarcodeResult != null) {
this._southAfricaIdBarcodeResult = SouthAfricaIdBarcodeResult.
fromJSON(this.json.southAfricaIdBarcodeResult);
}
return this._southAfricaIdBarcodeResult;
}
get southAfricaDlBarcodeResult() {
if (this._southAfricaDlBarcodeResult == null && this.json.southAfricaDlBarcodeResult != null) {
this._southAfricaDlBarcodeResult = SouthAfricaDlBarcodeResult.
fromJSON(this.json.southAfricaDlBarcodeResult);
}
return this._southAfricaDlBarcodeResult;
}
get usUniformedServicesBarcodeResult() {
if (this._usUniformedServicesBarcodeResult == null && this.json.usUniformedServicesBarcodeResult != null) {
const fromJSON = USUniformedServicesBarcodeResult.fromJSON;
this._usUniformedServicesBarcodeResult = fromJSON(this.json.usUniformedServicesBarcodeResult);
}
return this._usUniformedServicesBarcodeResult;
}
get vizResult() {

@@ -130,2 +183,3 @@ if (this._vizResult == null && this.json.vizResult != null) {

get optional1() { return this.json.optional1; }
get capturedMrz() { return this.json.capturedMrz; }
static fromJSON(json) {

@@ -212,1 +266,53 @@ const result = new MRZResult();

exports.VIZResult = VIZResult;
class ArgentinaIdBarcodeResult {
get personalIdNumber() { return this.json.personalIdNumber; }
get documentCopy() { return this.json.documentCopy; }
static fromJSON(json) {
const result = new ArgentinaIdBarcodeResult();
result.json = json;
return result;
}
}
exports.ArgentinaIdBarcodeResult = ArgentinaIdBarcodeResult;
class ColombiaIdBarcodeResult {
get bloodType() { return this.json.bloodType; }
static fromJSON(json) {
const result = new ColombiaIdBarcodeResult();
result.json = json;
return result;
}
}
exports.ColombiaIdBarcodeResult = ColombiaIdBarcodeResult;
class SouthAfricaIdBarcodeResult {
get countryOfBirth() { return this.json.countryOfBirth; }
get countryOfBirthIso() { return this.json.countryOfBirthIso; }
get citizenshipStatus() { return this.json.citizenshipStatus; }
get personalIdNumber() { return this.json.personalIdNumber; }
static fromJSON(json) {
const result = new SouthAfricaIdBarcodeResult();
result.json = json;
return result;
}
}
exports.SouthAfricaIdBarcodeResult = SouthAfricaIdBarcodeResult;
class SouthAfricaDlBarcodeResult {
get version() { return this.json.version; }
get licenseCountryOfIssue() { return this.json.licenseCountryOfIssue; }
get personalIdNumber() { return this.json.personalIdNumber; }
get personalIdNumberType() { return this.json.personalIdNumberType; }
get documentCopy() { return this.json.documentCopy; }
get driverRestrictionCodes() { return this.json.driverRestrictionCodes; }
get professionalDrivingPermit() {
return ProfessionalDrivingPermit
.fromJSON(this.json.professionalDrivingPermit);
}
get vehicleRestrictions() {
return this.json.vehicleRestrictions.map(json => VehicleRestriction.fromJSON(json));
}
static fromJSON(json) {
const result = new SouthAfricaDlBarcodeResult();
result.json = json;
return result;
}
}
exports.SouthAfricaDlBarcodeResult = SouthAfricaDlBarcodeResult;

@@ -7,2 +7,11 @@ /// <amd-module name="scandit-cordova-datacapture-id.SerializedTypes" />

}
export interface ProfessionalDrivingPermitJSON {
dateOfExpiry: DateResultJSON;
codes: string[];
}
export interface VehicleRestrictionJSON {
vehicleCode: string;
vehicleRestriction: string;
dateOfIssue: DateResultJSON;
}
export interface ImageInfoJSON {

@@ -30,3 +39,7 @@ face: string;

aamvaBarcodeResult: AAMVABarcodeResultJSON | null;
argentinaIdBarcodeResult: ArgentinaIdBarcodeResultJSON | null;
colombiaIdBarcodeResult: ColombiaIdBarcodeResultJSON | null;
mrzResult: MRZResultJSON | null;
southAfricaDlBarcodeResult: SouthAfricaDlBarcodeResultJSON | null;
southAfricaIdBarcodeResult: SouthAfricaIdBarcodeResultJSON | null;
usUniformedServicesBarcodeResult: USUniformedServicesBarcodeResultJSON | null;

@@ -67,2 +80,9 @@ vizResult: VIZResultJSON | null;

}
export interface ArgentinaIdBarcodeResultJSON {
documentCopy: string;
personalIdNumber: string;
}
export interface ColombiaIdBarcodeResultJSON {
bloodType: string;
}
export interface MRZResultJSON {

@@ -73,3 +93,20 @@ documentCode: string;

optional1: string | null;
capturedMrz: string;
}
export interface SouthAfricaDlBarcodeResultJSON {
version: number;
licenseCountryOfIssue: string;
personalIdNumber: string;
personalIdNumberType: string;
documentCopy: number;
driverRestrictionCodes: number[];
professionalDrivingPermit: ProfessionalDrivingPermitJSON | null;
vehicleRestrictions: VehicleRestrictionJSON[];
}
export interface SouthAfricaIdBarcodeResultJSON {
countryOfBirth: string;
countryOfBirthIso: string;
citizenshipStatus: string;
personalIdNumber: string;
}
export interface USUniformedServicesBarcodeResultJSON {

@@ -76,0 +113,0 @@ bloodType: string | null;

@@ -5,7 +5,11 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.IdLayout = exports.IdImageType = exports.SupportedSides = exports.IdDocumentType = exports.DocumentType = exports.CapturedResultType = void 0;
exports.IdLayoutLineStyle = exports.IdLayoutStyle = exports.IdLayout = exports.IdImageType = exports.SupportedSides = exports.IdDocumentType = exports.DocumentType = exports.CapturedResultType = void 0;
var CapturedResultType;
(function (CapturedResultType) {
CapturedResultType["AAMVABarcodeResult"] = "aamvaBarcodeResult";
CapturedResultType["ArgentinaIdBarcodeResult"] = "argentinaIdBarcodeResult";
CapturedResultType["ColombiaIdBarcodeResult"] = "colombiaIdBarcodeResult";
CapturedResultType["MRZResult"] = "mrzResult";
CapturedResultType["SouthAfricaDlBarcodeResult"] = "southAfricaDlBarcodeResult";
CapturedResultType["SouthAfricaIdBarcodeResult"] = "southAfricaIdBarcodeResult";
CapturedResultType["USUniformedServicesBarcodeResult"] = "usUniformedServicesBarcodeResult";

@@ -53,13 +57,27 @@ CapturedResultType["VIZResult"] = "vizResult";

DocumentType["WeaponPermit"] = "weaponPermit";
DocumentType["BorderCrossingCard"] = "borderCrossingCard";
DocumentType["DriverCard"] = "driverCard";
DocumentType["GlobalEntryCard"] = "globalEntryCard";
DocumentType["MyPolis"] = "myPolis";
DocumentType["NexusCard"] = "nexusCard";
DocumentType["PassportCard"] = "passportCard";
DocumentType["ProofOfAgeCard"] = "proofOfAgeCard";
DocumentType["RefugeeId"] = "refugeeId";
DocumentType["TribalId"] = "tribalId";
DocumentType["VeteranId"] = "veteranId";
})(DocumentType = exports.DocumentType || (exports.DocumentType = {}));
var IdDocumentType;
(function (IdDocumentType) {
IdDocumentType["AAMVABarcode"] = "aamvaBarcode";
IdDocumentType["ArgentinaIdBarcode"] = "argentinaIdBarcode";
IdDocumentType["ColombiaIdBarcode"] = "colombiaIdBarcode";
IdDocumentType["DLVIZ"] = "dlViz";
IdDocumentType["AAMVABarcode"] = "aamvaBarcode";
IdDocumentType["VisaMRZ"] = "visaMrz";
IdDocumentType["IdCardMRZ"] = "idCardMrz";
IdDocumentType["IdCardVIZ"] = "idCardViz";
IdDocumentType["PassportMRZ"] = "passportMrz";
IdDocumentType["SouthAfricaDlBarcode"] = "southAfricaDlBarcode";
IdDocumentType["SouthAfricaIdBarcode"] = "southAfricaIdBarcode";
IdDocumentType["SwissDLMRZ"] = "swissDlMrz";
IdDocumentType["IdCardMRZ"] = "idCardMrz";
IdDocumentType["IdCardVIZ"] = "idCardViz";
IdDocumentType["USUSIdBarcode"] = "usUsIdBarcode";
IdDocumentType["VisaMRZ"] = "visaMrz";
})(IdDocumentType = exports.IdDocumentType || (exports.IdDocumentType = {}));

@@ -88,1 +106,11 @@ var SupportedSides;

})(IdLayout = exports.IdLayout || (exports.IdLayout = {}));
var IdLayoutStyle;
(function (IdLayoutStyle) {
IdLayoutStyle["Rounded"] = "rounded";
IdLayoutStyle["Square"] = "square";
})(IdLayoutStyle = exports.IdLayoutStyle || (exports.IdLayoutStyle = {}));
var IdLayoutLineStyle;
(function (IdLayoutLineStyle) {
IdLayoutLineStyle["Light"] = "light";
IdLayoutLineStyle["Bold"] = "bold";
})(IdLayoutLineStyle = exports.IdLayoutLineStyle || (exports.IdLayoutLineStyle = {}));

@@ -53,2 +53,4 @@ "use strict";

this._idLayout = Enums_1.IdLayout.Auto;
this._idLayoutStyle = Enums_1.IdLayoutStyle.Rounded;
this._idLayoutLineStyle = Enums_1.IdLayoutLineStyle.Light;
}

@@ -70,2 +72,14 @@ static withIdCapture(idCapture) {

}
get idLayoutStyle() {
return this._idLayoutStyle;
}
set idLayoutStyle(style) {
this._idLayoutStyle = style;
}
get idLayoutLineStyle() {
return this._idLayoutLineStyle;
}
set idLayoutLineStyle(lineStyle) {
this._idLayoutLineStyle = lineStyle;
}
}

@@ -78,2 +92,8 @@ __decorate([

], IdCaptureOverlay.prototype, "_idLayout", void 0);
__decorate([
Serializeable_1.nameForSerialization('idLayoutStyle')
], IdCaptureOverlay.prototype, "_idLayoutStyle", void 0);
__decorate([
Serializeable_1.nameForSerialization('idLayoutLineStyle')
], IdCaptureOverlay.prototype, "_idLayoutLineStyle", void 0);
exports.IdCaptureOverlay = IdCaptureOverlay;
declare module Scandit {
interface PrivateDateResult {
fromJSON(json: DateResultJSON | null): DateResult;
}
interface PrivateProfessionalDrivingPermit {
fromJSON(json: ProfessionalDrivingPermitJSON | null): ProfessionalDrivingPermit;
}
interface PrivateVehicleRestriction {
fromJSON(json: VehicleRestrictionJSON | null): VehicleRestriction;
}
interface PrivateAAMVABarcodeResult {
fromJSON(json: AAMVABarcodeResultJSON): AAMVABarcodeResult;
}
interface PrivateArgentinaIdBarcodeResult {
fromJSON(json: ArgentinaIdBarcodeResultJSON): ArgentinaIdBarcodeResult;
}
interface PrivateColombiaIdBarcodeResult {
fromJSON(json: ColombiaIdBarcodeResultJSON): ColombiaIdBarcodeResult;
}
interface PrivateMRZResult {

@@ -15,2 +30,8 @@ fromJSON(json: MRZResultJSON): MRZResult;

}
interface PrivateSouthAfricaIdBarcodeResult {
fromJSON(json: SouthAfricaIdBarcodeResultJSON): SouthAfricaIdBarcodeResult;
}
interface PrivateSouthAfricaDlBarcodeResult {
fromJSON(json: SouthAfricaDlBarcodeResultJSON): SouthAfricaDlBarcodeResult;
}
interface PrivateCapturedId {

@@ -26,2 +47,15 @@ fromJSON(json: CapturedIdJSON): CapturedId;

}
export class ProfessionalDrivingPermit {
private json;
get dateOfExpiry(): DateResult;
get codes(): string[];
private static fromJSON;
}
export class VehicleRestriction {
private json;
get vehicleCode(): string;
get vehicleRestriction(): string;
get dateOfIssue(): DateResult;
private static fromJSON;
}
export class CapturedId {

@@ -45,6 +79,14 @@ private json;

get aamvaBarcodeResult(): AAMVABarcodeResult | null;
private _argentinaIdBarcodeResult;
get argentinaIdBarcodeResult(): ArgentinaIdBarcodeResult | null;
private _colombiaIdBarcodeResult;
get colombiaIdBarcodeResult(): ColombiaIdBarcodeResult | null;
private _mrzResult;
get mrzResult(): MRZResult | null;
private _southAfricaIdBarcodeResult;
get southAfricaIdBarcodeResult(): SouthAfricaIdBarcodeResult | null;
private _southAfricaDlBarcodeResult;
get southAfricaDlBarcodeResult(): SouthAfricaDlBarcodeResult | null;
private _usUniformedServicesBarcodeResult;
get usUniformedServicesBarcodeResult(): USUniformedServicesBarcodeResult | null;
private _mrzResult;
get mrzResult(): MRZResult | null;
private _vizResult;

@@ -95,2 +137,3 @@ get vizResult(): VIZResult | null;

get optional1(): string | null;
get capturedMrz(): string;
private static fromJSON;

@@ -158,2 +201,33 @@ }

}
export class ArgentinaIdBarcodeResult {
private json;
get personalIdNumber(): string;
get documentCopy(): string;
private static fromJSON;
}
export class ColombiaIdBarcodeResult {
private json;
get bloodType(): string;
private static fromJSON;
}
export class SouthAfricaIdBarcodeResult {
private json;
get countryOfBirth(): string;
get countryOfBirthIso(): string;
get citizenshipStatus(): string;
get personalIdNumber(): string;
private static fromJSON;
}
export class SouthAfricaDlBarcodeResult {
private json;
get version(): number;
get licenseCountryOfIssue(): string;
get personalIdNumber(): string;
get personalIdNumberType(): string;
get documentCopy(): number;
get driverRestrictionCodes(): number[];
get professionalDrivingPermit(): ProfessionalDrivingPermit | null;
get vehicleRestrictions(): VehicleRestriction[];
private static fromJSON;
}

@@ -163,3 +237,7 @@

AAMVABarcodeResult = "aamvaBarcodeResult",
ArgentinaIdBarcodeResult = "argentinaIdBarcodeResult",
ColombiaIdBarcodeResult = "colombiaIdBarcodeResult",
MRZResult = "mrzResult",
SouthAfricaDlBarcodeResult = "southAfricaDlBarcodeResult",
SouthAfricaIdBarcodeResult = "southAfricaIdBarcodeResult",
USUniformedServicesBarcodeResult = "usUniformedServicesBarcodeResult",

@@ -205,13 +283,27 @@ VIZResult = "vizResult"

TaxId = "taxId",
WeaponPermit = "weaponPermit"
WeaponPermit = "weaponPermit",
BorderCrossingCard = "borderCrossingCard",
DriverCard = "driverCard",
GlobalEntryCard = "globalEntryCard",
MyPolis = "myPolis",
NexusCard = "nexusCard",
PassportCard = "passportCard",
ProofOfAgeCard = "proofOfAgeCard",
RefugeeId = "refugeeId",
TribalId = "tribalId",
VeteranId = "veteranId"
}
export enum IdDocumentType {
AAMVABarcode = "aamvaBarcode",
ArgentinaIdBarcode = "argentinaIdBarcode",
ColombiaIdBarcode = "colombiaIdBarcode",
DLVIZ = "dlViz",
AAMVABarcode = "aamvaBarcode",
VisaMRZ = "visaMrz",
IdCardMRZ = "idCardMrz",
IdCardVIZ = "idCardViz",
PassportMRZ = "passportMrz",
SouthAfricaDlBarcode = "southAfricaDlBarcode",
SouthAfricaIdBarcode = "southAfricaIdBarcode",
SwissDLMRZ = "swissDlMrz",
IdCardMRZ = "idCardMrz",
IdCardVIZ = "idCardViz",
USUSIdBarcode = "usUsIdBarcode"
USUSIdBarcode = "usUsIdBarcode",
VisaMRZ = "visaMrz"
}

@@ -237,2 +329,10 @@ export enum SupportedSides {

}
export enum IdLayoutStyle {
Rounded = "rounded",
Square = "square"
}
export enum IdLayoutLineStyle {
Light = "light",
Bold = "bold"
}

@@ -295,2 +395,4 @@

private _idLayout;
private _idLayoutStyle;
private _idLayoutLineStyle;
static withIdCapture(idCapture: IdCapture): IdCaptureOverlay;

@@ -300,2 +402,6 @@ static withIdCaptureForView(idCapture: IdCapture, view: DataCaptureView | null): IdCaptureOverlay;

setIdLayout(idLayout: IdLayout): void;
get idLayoutStyle(): IdLayoutStyle;
set idLayoutStyle(style: IdLayoutStyle);
get idLayoutLineStyle(): IdLayoutLineStyle;
set idLayoutLineStyle(lineStyle: IdLayoutLineStyle);
}

@@ -302,0 +408,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc