scandit-cordova-datacapture-id
Advanced tools
Comparing version 6.11.0-beta.2 to 6.11.0-beta.3
{ | ||
"name": "scandit-cordova-datacapture-id", | ||
"version": "6.11.0-beta.2", | ||
"version": "6.11.0-beta.3", | ||
"description": "Scandit Data Capture SDK for Cordova", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RejectedId = exports.LocalizedOnlyId = 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; | ||
/// <amd-module name="scandit-cordova-datacapture-id.CapturedId"/> | ||
// ^ needed because Cordova can't resolve "../xx" style dependencies | ||
const Common_1 = require("scandit-cordova-datacapture-core.Common"); | ||
class DateResult { | ||
@@ -318,2 +321,7 @@ get day() { return this.json.day; } | ||
} | ||
static fromJSON(json) { | ||
const result = new LocalizedOnlyId(); | ||
result._location = Common_1.Quadrilateral.fromJSON(json.location); | ||
return result; | ||
} | ||
} | ||
@@ -325,3 +333,8 @@ exports.LocalizedOnlyId = LocalizedOnlyId; | ||
} | ||
static fromJSON(json) { | ||
const result = new RejectedId(); | ||
result._location = Common_1.Quadrilateral.fromJSON(json.location); | ||
return result; | ||
} | ||
} | ||
exports.RejectedId = RejectedId; |
/// <amd-module name="scandit-cordova-datacapture-id.SerializedTypes" /> | ||
import { QuadrilateralJSON } from 'Common'; | ||
export interface DateResultJSON { | ||
@@ -164,2 +165,8 @@ day: number; | ||
} | ||
export interface LocalizedIdJSON { | ||
location: QuadrilateralJSON; | ||
} | ||
export interface RejectedIdJSON { | ||
location: QuadrilateralJSON; | ||
} | ||
export interface IdCaptureErrorJSON { | ||
@@ -171,4 +178,6 @@ type: string; | ||
newlyCapturedId: CapturedIdJSON | null; | ||
localizedOnlyId: LocalizedIdJSON; | ||
newlyRejectedId: RejectedIdJSON; | ||
frameSequenceId: number; | ||
error: IdCaptureErrorJSON; | ||
} |
@@ -66,2 +66,3 @@ "use strict"; | ||
DocumentType["VeteranId"] = "veteranId"; | ||
DocumentType["CitizenshipCertificate"] = "citizenshipCertificate"; | ||
})(DocumentType = exports.DocumentType || (exports.DocumentType = {})); | ||
@@ -68,0 +69,0 @@ var IdDocumentType; |
@@ -50,2 +50,8 @@ "use strict"; | ||
} | ||
if (json.localizedOnlyId) { | ||
session._localizedOnlyId = CapturedId_1.LocalizedOnlyId.fromJSON(json.localizedOnlyId); | ||
} | ||
if (json.newlyRejectedId) { | ||
session._newlyRejectedId = CapturedId_1.LocalizedOnlyId.fromJSON(json.newlyRejectedId); | ||
} | ||
session._frameSequenceId = json.frameSequenceId; | ||
@@ -52,0 +58,0 @@ session._error = json.error ? IdCaptureError.fromJSON(json.error) : null; |
@@ -39,2 +39,8 @@ declare module Scandit { | ||
} | ||
interface PrivateLocalizedId { | ||
fromJSON(json: LocalizedIdJSON): LocalizedOnlyId; | ||
} | ||
interface PrivateRejectedId { | ||
fromJSON(json: RejectedIdJSON): RejectedId; | ||
} | ||
export class DateResult { | ||
@@ -232,2 +238,3 @@ private json; | ||
get location(): Quadrilateral; | ||
private static fromJSON; | ||
} | ||
@@ -237,2 +244,3 @@ export class RejectedId { | ||
get location(): Quadrilateral; | ||
private static fromJSON; | ||
} | ||
@@ -298,3 +306,4 @@ | ||
TribalId = "tribalId", | ||
VeteranId = "veteranId" | ||
VeteranId = "veteranId", | ||
CitizenshipCertificate = "citizenshipCertificate" | ||
} | ||
@@ -301,0 +310,0 @@ export enum IdDocumentType { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103621
1597