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.
- package/dist/dts/common/ComparisonCheck.d.ts +7 -0
- package/dist/dts/common/ComparisonCheckResult.d.ts +5 -0
- package/dist/dts/common/DateComparisonCheck.d.ts +15 -0
- package/dist/dts/common/DateResult.d.ts +13 -0
- package/dist/dts/common/IdAnonymizationMode.d.ts +6 -0
- package/dist/dts/common/IdDocumentType.d.ts +22 -0
- package/dist/dts/common/IdImageType.d.ts +5 -0
- package/dist/dts/common/LocalizedOnlyId.d.ts +10 -0
- package/dist/dts/common/RejectedId.d.ts +10 -0
- package/dist/dts/common/StringComparisonCheck.d.ts +14 -0
- package/dist/dts/common/SupportedSides.d.ts +4 -0
- package/dist/dts/common/index.d.ts +11 -0
- package/dist/dts/defaults/IdDefaults.d.ts +34 -0
- package/dist/dts/defaults/SerializedTypes.d.ts +293 -0
- package/dist/dts/defaults/index.d.ts +3 -0
- package/dist/dts/defaults/loadDefaults.d.ts +1 -0
- package/dist/dts/id/AAMVABarcodeResult.d.ts +41 -0
- package/dist/dts/id/AamvaBarcodeVerificationResult.d.ts +5 -0
- package/dist/dts/id/AamvaBarcodeVerifier.d.ts +13 -0
- package/dist/dts/id/AamvaVizBarcodeComparisonResult.d.ts +19 -0
- package/dist/dts/id/AamvaVizBarcodeComparisonVerifier.d.ts +7 -0
- package/dist/dts/id/ApecBusinessTravelCardMrzResult.d.ts +14 -0
- package/dist/dts/id/ArgentinaIdBarcodeResult.d.ts +10 -0
- package/dist/dts/id/CapturedId.d.ts +79 -0
- package/dist/dts/id/CapturedResultType.d.ts +18 -0
- package/dist/dts/id/ChinaExitEntryPermitMRZResult.d.ts +10 -0
- package/dist/dts/id/ChinaMainlandTravelPermitMRZResult.d.ts +16 -0
- package/dist/dts/id/ChinaOneWayPermitBackMrzResult.d.ts +11 -0
- package/dist/dts/id/ChinaOneWayPermitFrontMrzResult.d.ts +11 -0
- package/dist/dts/id/ColombiaDlBarcodeResult.d.ts +10 -0
- package/dist/dts/id/ColombiaIdBarcodeResult.d.ts +9 -0
- package/dist/dts/id/CommonAccessCardBarcodeResult.d.ts +20 -0
- package/dist/dts/id/CommonCapturedIdFields.d.ts +25 -0
- package/dist/dts/id/DocumentType.d.ts +62 -0
- package/dist/dts/id/MRZResult.d.ts +13 -0
- package/dist/dts/id/ProfessionalDrivingPermit.d.ts +11 -0
- package/dist/dts/id/SouthAfricaDlBarcodeResult.d.ts +18 -0
- package/dist/dts/id/SouthAfricaIdBarcodeResult.d.ts +12 -0
- package/dist/dts/id/USUniformedServicesBarcodeResult.d.ts +46 -0
- package/dist/dts/id/USVisaVIZResult.d.ts +10 -0
- package/dist/dts/id/VIZResult.d.ts +25 -0
- package/dist/dts/id/VehicleRestriction.d.ts +12 -0
- package/dist/dts/id/index.d.ts +26 -0
- package/dist/dts/idcapture/IdCapture.d.ts +37 -0
- package/dist/dts/idcapture/IdCaptureError.d.ts +11 -0
- package/dist/dts/idcapture/IdCaptureFeedback.d.ts +15 -0
- package/dist/dts/idcapture/IdCaptureListener.d.ts +15 -0
- package/dist/dts/idcapture/IdCaptureOverlay.d.ts +37 -0
- package/dist/dts/idcapture/IdCaptureSession.d.ts +23 -0
- package/dist/dts/idcapture/IdCaptureSettings.d.ts +15 -0
- package/dist/dts/idcapture/IdLayout.d.ts +10 -0
- package/dist/dts/idcapture/IdLayoutLineStyle.d.ts +4 -0
- package/dist/dts/idcapture/IdLayoutStyle.d.ts +4 -0
- package/dist/dts/idcapture/controller/IdCaptureController.d.ts +12 -0
- package/dist/dts/idcapture/controller/IdCaptureListenerController.d.ts +14 -0
- package/dist/dts/idcapture/controller/IdCaptureListenerProxy.d.ts +19 -0
- package/dist/dts/idcapture/controller/IdCaptureProxy.d.ts +7 -0
- package/dist/dts/idcapture/index.d.ts +14 -0
- package/dist/dts/index.d.ts +4 -0
- package/dist/index.js +1487 -0
- package/dist/index.js.map +1 -0
- package/package.json +20 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,1487 @@
|
|
|
1
|
+
import { Quadrilateral, FactoryMaker, Feedback, CameraSettings, Color, CameraController, nameForSerialization, DefaultSerializeable, ignoreFromSerialization, Brush } from 'scandit-datacapture-frameworks-core';
|
|
2
|
+
|
|
3
|
+
var ComparisonCheckResult;
|
|
4
|
+
(function (ComparisonCheckResult) {
|
|
5
|
+
ComparisonCheckResult["Passed"] = "passed";
|
|
6
|
+
ComparisonCheckResult["Skipped"] = "skipped";
|
|
7
|
+
ComparisonCheckResult["Failed"] = "failed";
|
|
8
|
+
})(ComparisonCheckResult || (ComparisonCheckResult = {}));
|
|
9
|
+
|
|
10
|
+
class DateResult {
|
|
11
|
+
get day() { return this.json.day; }
|
|
12
|
+
get month() { return this.json.month; }
|
|
13
|
+
get year() { return this.json.year; }
|
|
14
|
+
get localDate() {
|
|
15
|
+
return new Date(this.json.year, this.json.month ? this.json.month - 1 : 1, this.json.day || 1);
|
|
16
|
+
}
|
|
17
|
+
get utcDate() {
|
|
18
|
+
return new Date(Date.UTC(this.json.year, this.json.month ? this.json.month - 1 : 1, this.json.day || 1));
|
|
19
|
+
}
|
|
20
|
+
static fromJSON(json) {
|
|
21
|
+
if (json === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
const dateResult = new DateResult();
|
|
25
|
+
dateResult.json = json;
|
|
26
|
+
return dateResult;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
class DateComparisonCheck {
|
|
31
|
+
get vizValue() {
|
|
32
|
+
return DateResult.fromJSON(this.json.vizValue);
|
|
33
|
+
}
|
|
34
|
+
get aamvaBarcodeValue() {
|
|
35
|
+
return DateResult.fromJSON(this.json.aamvaBarcodeValue);
|
|
36
|
+
}
|
|
37
|
+
get checkResult() { return this.json.checkResult; }
|
|
38
|
+
get resultDescription() { return this.json.resultDescription; }
|
|
39
|
+
static fromJSON(json) {
|
|
40
|
+
const result = new DateComparisonCheck();
|
|
41
|
+
result.json = json;
|
|
42
|
+
return result;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
var IdAnonymizationMode;
|
|
47
|
+
(function (IdAnonymizationMode) {
|
|
48
|
+
IdAnonymizationMode["None"] = "none";
|
|
49
|
+
IdAnonymizationMode["FieldsOnly"] = "fieldsOnly";
|
|
50
|
+
IdAnonymizationMode["ImagesOnly"] = "imagesOnly";
|
|
51
|
+
IdAnonymizationMode["FieldsAndImages"] = "fieldsAndImages";
|
|
52
|
+
})(IdAnonymizationMode || (IdAnonymizationMode = {}));
|
|
53
|
+
|
|
54
|
+
var IdDocumentType;
|
|
55
|
+
(function (IdDocumentType) {
|
|
56
|
+
IdDocumentType["AAMVABarcode"] = "aamvaBarcode";
|
|
57
|
+
IdDocumentType["ArgentinaIdBarcode"] = "argentinaIdBarcode";
|
|
58
|
+
IdDocumentType["ColombiaIdBarcode"] = "colombiaIdBarcode";
|
|
59
|
+
IdDocumentType["ColombiaDlBarcode"] = "colombiaDlBarcode";
|
|
60
|
+
IdDocumentType["CommonAccessCardBarcode"] = "commonAccessCardBarcode";
|
|
61
|
+
IdDocumentType["DLVIZ"] = "dlViz";
|
|
62
|
+
IdDocumentType["IdCardMRZ"] = "idCardMrz";
|
|
63
|
+
IdDocumentType["IdCardVIZ"] = "idCardViz";
|
|
64
|
+
IdDocumentType["PassportMRZ"] = "passportMrz";
|
|
65
|
+
IdDocumentType["PassportVIZ"] = "passportViz";
|
|
66
|
+
IdDocumentType["SouthAfricaDlBarcode"] = "southAfricaDlBarcode";
|
|
67
|
+
IdDocumentType["SouthAfricaIdBarcode"] = "southAfricaIdBarcode";
|
|
68
|
+
IdDocumentType["SwissDLMRZ"] = "swissDlMrz";
|
|
69
|
+
IdDocumentType["USUSIdBarcode"] = "usUsIdBarcode";
|
|
70
|
+
IdDocumentType["VisaMRZ"] = "visaMrz";
|
|
71
|
+
IdDocumentType["ChinaMainlandTravelPermitMRZ"] = "chinaMainlandTravelPermitMrz";
|
|
72
|
+
IdDocumentType["ChinaExitEntryPermitMRZ"] = "chinaExitEntryPermitMrz";
|
|
73
|
+
IdDocumentType["ChinaOneWayPermitBackMRZ"] = "chinaOneWayPermitBackMrz";
|
|
74
|
+
IdDocumentType["ChinaOneWayPermitFrontMRZ"] = "chinaOneWayPermitFrontMrz";
|
|
75
|
+
IdDocumentType["ApecBusinessTravelCardMRZ"] = "apecBusinessTravelCardMrz";
|
|
76
|
+
})(IdDocumentType || (IdDocumentType = {}));
|
|
77
|
+
|
|
78
|
+
var IdImageType;
|
|
79
|
+
(function (IdImageType) {
|
|
80
|
+
IdImageType["Face"] = "face";
|
|
81
|
+
IdImageType["IdFront"] = "idFront";
|
|
82
|
+
IdImageType["IdBack"] = "idBack";
|
|
83
|
+
})(IdImageType || (IdImageType = {}));
|
|
84
|
+
|
|
85
|
+
class LocalizedOnlyId {
|
|
86
|
+
get location() {
|
|
87
|
+
return this._location;
|
|
88
|
+
}
|
|
89
|
+
static fromJSON(json) {
|
|
90
|
+
const result = new LocalizedOnlyId();
|
|
91
|
+
result._location = Quadrilateral.fromJSON(json.location);
|
|
92
|
+
return result;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
class RejectedId {
|
|
97
|
+
get location() {
|
|
98
|
+
return this._location;
|
|
99
|
+
}
|
|
100
|
+
static fromJSON(json) {
|
|
101
|
+
const result = new RejectedId();
|
|
102
|
+
result._location = Quadrilateral.fromJSON(json.location);
|
|
103
|
+
return result;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
class StringComparisonCheck {
|
|
108
|
+
get vizValue() { return this.json.vizValue; }
|
|
109
|
+
get aamvaBarcodeValue() { return this.json.aamvaBarcodeValue; }
|
|
110
|
+
get checkResult() { return this.json.checkResult; }
|
|
111
|
+
get resultDescription() { return this.json.resultDescription; }
|
|
112
|
+
static fromJSON(json) {
|
|
113
|
+
const result = new StringComparisonCheck();
|
|
114
|
+
result.json = json;
|
|
115
|
+
return result;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
var SupportedSides;
|
|
120
|
+
(function (SupportedSides) {
|
|
121
|
+
SupportedSides["FrontOnly"] = "frontOnly";
|
|
122
|
+
SupportedSides["FrontAndBack"] = "frontAndBack";
|
|
123
|
+
})(SupportedSides || (SupportedSides = {}));
|
|
124
|
+
|
|
125
|
+
function getIdDefaults() {
|
|
126
|
+
return FactoryMaker.getInstance('IdDefaults');
|
|
127
|
+
}
|
|
128
|
+
function parseIdDefaults(jsonDefaults) {
|
|
129
|
+
const idDefaults = {
|
|
130
|
+
IdCapture: {
|
|
131
|
+
Feedback: {
|
|
132
|
+
idCaptured: Feedback.fromJSON(JSON.parse(jsonDefaults.IdCaptureFeedback).idCaptured),
|
|
133
|
+
idRejected: Feedback.fromJSON(JSON.parse(jsonDefaults.IdCaptureFeedback).idRejected),
|
|
134
|
+
idCaptureTimeout: Feedback.fromJSON(JSON.parse(jsonDefaults.IdCaptureFeedback).idCaptureTimeout),
|
|
135
|
+
},
|
|
136
|
+
RecommendedCameraSettings: CameraSettings
|
|
137
|
+
.fromJSON(jsonDefaults.RecommendedCameraSettings),
|
|
138
|
+
IdCaptureOverlayDefaults: {
|
|
139
|
+
defaultCapturedBrush: {
|
|
140
|
+
fillColor: Color
|
|
141
|
+
.fromJSON(jsonDefaults.IdCaptureOverlay.DefaultCapturedBrush.fillColor),
|
|
142
|
+
strokeColor: Color
|
|
143
|
+
.fromJSON(jsonDefaults.IdCaptureOverlay.DefaultCapturedBrush.strokeColor),
|
|
144
|
+
strokeWidth: jsonDefaults.IdCaptureOverlay.DefaultCapturedBrush.strokeWidth,
|
|
145
|
+
},
|
|
146
|
+
defaultLocalizedBrush: {
|
|
147
|
+
fillColor: Color
|
|
148
|
+
.fromJSON(jsonDefaults.IdCaptureOverlay.DefaultLocalizedBrush.fillColor),
|
|
149
|
+
strokeColor: Color
|
|
150
|
+
.fromJSON(jsonDefaults.IdCaptureOverlay.DefaultLocalizedBrush.strokeColor),
|
|
151
|
+
strokeWidth: jsonDefaults.IdCaptureOverlay.DefaultLocalizedBrush.strokeWidth,
|
|
152
|
+
},
|
|
153
|
+
defaultRejectedBrush: {
|
|
154
|
+
fillColor: Color
|
|
155
|
+
.fromJSON(jsonDefaults.IdCaptureOverlay.DefaultRejectedBrush.fillColor),
|
|
156
|
+
strokeColor: Color
|
|
157
|
+
.fromJSON(jsonDefaults.IdCaptureOverlay.DefaultRejectedBrush.strokeColor),
|
|
158
|
+
strokeWidth: jsonDefaults.IdCaptureOverlay.DefaultRejectedBrush.strokeWidth,
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
IdCaptureSettings: {
|
|
162
|
+
anonymizationMode: jsonDefaults.IdCaptureSettings.anonymizationMode
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
};
|
|
166
|
+
return idDefaults;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
function loadIdDefaults(jsonDefaults) {
|
|
170
|
+
const idDefaults = parseIdDefaults(jsonDefaults);
|
|
171
|
+
FactoryMaker.bindInstanceIfNotExists('IdDefaults', idDefaults);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
class AAMVABarcodeResult {
|
|
175
|
+
get aamvaVersion() { return this.json.aamvaVersion; }
|
|
176
|
+
get aliasFamilyName() { return this.json.aliasFamilyName; }
|
|
177
|
+
get aliasGivenName() { return this.json.aliasGivenName; }
|
|
178
|
+
get aliasSuffixName() { return this.json.aliasSuffixName; }
|
|
179
|
+
get isRealId() { return this.json.isRealId; }
|
|
180
|
+
get driverNamePrefix() { return this.json.driverNamePrefix; }
|
|
181
|
+
get driverNameSuffix() { return this.json.driverNameSuffix; }
|
|
182
|
+
get endorsementsCode() { return this.json.endorsementsCode; }
|
|
183
|
+
get eyeColor() { return this.json.eyeColor; }
|
|
184
|
+
get firstNameWithoutMiddleName() { return this.json.firstNameWithoutMiddleName; }
|
|
185
|
+
get firstNameTruncation() { return this.json.firstNameTruncation; }
|
|
186
|
+
get hairColor() { return this.json.hairColor; }
|
|
187
|
+
get heightCm() { return this.json.heightCm; }
|
|
188
|
+
get heightInch() { return this.json.heightInch; }
|
|
189
|
+
get iIN() { return this.json.iin; }
|
|
190
|
+
get issuingJurisdiction() { return this.json.issuingJurisdiction; }
|
|
191
|
+
get issuingJurisdictionIso() { return this.json.issuingJurisdictionIso; }
|
|
192
|
+
get jurisdictionVersion() { return this.json.jurisdictionVersion; }
|
|
193
|
+
get lastNameTruncation() { return this.json.lastNameTruncation; }
|
|
194
|
+
get middleName() { return this.json.middleName; }
|
|
195
|
+
get middleNameTruncation() { return this.json.middleNameTruncation; }
|
|
196
|
+
get placeOfBirth() { return this.json.placeOfBirth; }
|
|
197
|
+
get race() { return this.json.race; }
|
|
198
|
+
get restrictionsCode() { return this.json.restrictionsCode; }
|
|
199
|
+
get vehicleClass() { return this.json.vehicleClass; }
|
|
200
|
+
get weightKg() { return this.json.weightKg; }
|
|
201
|
+
get weightLbs() { return this.json.weightLbs; }
|
|
202
|
+
get cardRevisionDate() {
|
|
203
|
+
return DateResult.fromJSON(this.json.cardRevisionDate);
|
|
204
|
+
}
|
|
205
|
+
get documentDiscriminatorNumber() { return this.json.documentDiscriminatorNumber; }
|
|
206
|
+
get barcodeDataElements() { return this.json.barcodeDataElements; }
|
|
207
|
+
static fromJSON(json) {
|
|
208
|
+
const result = new AAMVABarcodeResult();
|
|
209
|
+
result.json = json;
|
|
210
|
+
return result;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
class AamvaBarcodeVerificationResult {
|
|
215
|
+
get allChecksPassed() { return this.json.allChecksPassed; }
|
|
216
|
+
static fromJSON(json) {
|
|
217
|
+
const result = new AamvaBarcodeVerificationResult();
|
|
218
|
+
result.json = json;
|
|
219
|
+
return result;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/******************************************************************************
|
|
224
|
+
Copyright (c) Microsoft Corporation.
|
|
225
|
+
|
|
226
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
227
|
+
purpose with or without fee is hereby granted.
|
|
228
|
+
|
|
229
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
230
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
231
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
232
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
233
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
234
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
235
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
236
|
+
***************************************************************************** */
|
|
237
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
function __decorate(decorators, target, key, desc) {
|
|
241
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
242
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
243
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
244
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
248
|
+
var e = new Error(message);
|
|
249
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
class IdCaptureController {
|
|
253
|
+
get _proxy() {
|
|
254
|
+
return FactoryMaker.getInstance('IdCaptureProxy');
|
|
255
|
+
}
|
|
256
|
+
static forIdCapture(idCapture) {
|
|
257
|
+
const controller = new IdCaptureController();
|
|
258
|
+
controller.idCapture = idCapture;
|
|
259
|
+
return controller;
|
|
260
|
+
}
|
|
261
|
+
reset() {
|
|
262
|
+
return this._proxy.resetMode();
|
|
263
|
+
}
|
|
264
|
+
verifyCapturedId(capturedId) {
|
|
265
|
+
return this._proxy.verifyCapturedId(capturedId);
|
|
266
|
+
}
|
|
267
|
+
createContextForBarcodeVerification(context) {
|
|
268
|
+
return this._proxy.createContextForBarcodeVerification(JSON.stringify(context.toJSON()));
|
|
269
|
+
}
|
|
270
|
+
verifyCapturedIdAsync(capturedId) {
|
|
271
|
+
return this._proxy.verifyCapturedIdAsync(capturedId);
|
|
272
|
+
}
|
|
273
|
+
setModeEnabledState(enabled) {
|
|
274
|
+
this._proxy.setModeEnabledState(enabled);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
class ApecBusinessTravelCardMrzResult {
|
|
279
|
+
get documentCode() { return this.json.documentCode; }
|
|
280
|
+
get capturedMrz() { return this.json.capturedMrz; }
|
|
281
|
+
get passportIssuerIso() { return this.json.passportIssuerIso; }
|
|
282
|
+
get passportNumber() { return this.json.passportNumber; }
|
|
283
|
+
get passportDateOfExpiry() {
|
|
284
|
+
return DateResult.fromJSON(this.json.passportDateOfExpiry);
|
|
285
|
+
}
|
|
286
|
+
static fromJSON(json) {
|
|
287
|
+
const result = new ApecBusinessTravelCardMrzResult();
|
|
288
|
+
result.json = json;
|
|
289
|
+
return result;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
class ArgentinaIdBarcodeResult {
|
|
294
|
+
get personalIdNumber() { return this.json.personalIdNumber; }
|
|
295
|
+
get documentCopy() { return this.json.documentCopy; }
|
|
296
|
+
static fromJSON(json) {
|
|
297
|
+
const result = new ArgentinaIdBarcodeResult();
|
|
298
|
+
result.json = json;
|
|
299
|
+
return result;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
class ChinaExitEntryPermitMRZResult {
|
|
304
|
+
get documentCode() { return this.json.documentCode; }
|
|
305
|
+
get capturedMrz() { return this.json.capturedMrz; }
|
|
306
|
+
static fromJSON(json) {
|
|
307
|
+
const result = new ChinaExitEntryPermitMRZResult();
|
|
308
|
+
result.json = json;
|
|
309
|
+
return result;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
class ChinaMainlandTravelPermitMRZResult {
|
|
314
|
+
get documentCode() { return this.json.documentCode; }
|
|
315
|
+
get capturedMrz() { return this.json.capturedMrz; }
|
|
316
|
+
get personalIdNumber() { return this.json.personalIdNumber; }
|
|
317
|
+
get renewalTimes() { return this.json.renewalTimes; }
|
|
318
|
+
get fullNameSimplifiedChinese() { return this.json.fullNameSimplifiedChinese; }
|
|
319
|
+
get omittedCharacterCountInGBKName() { return this.json.omittedCharacterCountInGBKName; }
|
|
320
|
+
get omittedNameCount() { return this.json.omittedNameCount; }
|
|
321
|
+
get issuingAuthorityCode() { return this.json.issuingAuthorityCode; }
|
|
322
|
+
static fromJSON(json) {
|
|
323
|
+
const result = new ChinaMainlandTravelPermitMRZResult();
|
|
324
|
+
result.json = json;
|
|
325
|
+
return result;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
class ChinaOneWayPermitBackMrzResult {
|
|
330
|
+
get documentCode() { return this.json.documentCode; }
|
|
331
|
+
get namesAreTruncated() { return this.json.namesAreTruncated; }
|
|
332
|
+
get capturedMrz() { return this.json.capturedMrz; }
|
|
333
|
+
static fromJSON(json) {
|
|
334
|
+
const result = new ChinaOneWayPermitBackMrzResult();
|
|
335
|
+
result.json = json;
|
|
336
|
+
return result;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
class ChinaOneWayPermitFrontMrzResult {
|
|
341
|
+
get documentCode() { return this.json.documentCode; }
|
|
342
|
+
get capturedMrz() { return this.json.capturedMrz; }
|
|
343
|
+
get fullNameSimplifiedChinese() { return this.json.fullNameSimplifiedChinese; }
|
|
344
|
+
static fromJSON(json) {
|
|
345
|
+
const result = new ChinaOneWayPermitFrontMrzResult();
|
|
346
|
+
result.json = json;
|
|
347
|
+
return result;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
class ColombiaDlBarcodeResult {
|
|
352
|
+
get categories() { return this.json.categories; }
|
|
353
|
+
get identificationType() { return this.json.identificationType; }
|
|
354
|
+
static fromJSON(json) {
|
|
355
|
+
const result = new ColombiaDlBarcodeResult();
|
|
356
|
+
result.json = json;
|
|
357
|
+
return result;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
class ColombiaIdBarcodeResult {
|
|
362
|
+
get bloodType() { return this.json.bloodType; }
|
|
363
|
+
static fromJSON(json) {
|
|
364
|
+
const result = new ColombiaIdBarcodeResult();
|
|
365
|
+
result.json = json;
|
|
366
|
+
return result;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
class MRZResult {
|
|
371
|
+
get documentCode() { return this.json.documentCode; }
|
|
372
|
+
get namesAreTruncated() { return this.json.namesAreTruncated; }
|
|
373
|
+
get optional() { return this.json.optional; }
|
|
374
|
+
get optional1() { return this.json.optional1; }
|
|
375
|
+
get capturedMrz() { return this.json.capturedMrz; }
|
|
376
|
+
static fromJSON(json) {
|
|
377
|
+
const result = new MRZResult();
|
|
378
|
+
result.json = json;
|
|
379
|
+
return result;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
class ProfessionalDrivingPermit {
|
|
384
|
+
get dateOfExpiry() { return DateResult.fromJSON(this.json.dateOfExpiry); }
|
|
385
|
+
get codes() { return this.json.codes; }
|
|
386
|
+
static fromJSON(json) {
|
|
387
|
+
if (json === null) {
|
|
388
|
+
return null;
|
|
389
|
+
}
|
|
390
|
+
const object = new ProfessionalDrivingPermit();
|
|
391
|
+
object.json = json;
|
|
392
|
+
return object;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
class VehicleRestriction {
|
|
397
|
+
get vehicleCode() { return this.json.vehicleCode; }
|
|
398
|
+
get vehicleRestriction() { return this.json.vehicleRestriction; }
|
|
399
|
+
get dateOfIssue() { return DateResult.fromJSON(this.json.dateOfIssue); }
|
|
400
|
+
static fromJSON(json) {
|
|
401
|
+
if (json === null) {
|
|
402
|
+
return null;
|
|
403
|
+
}
|
|
404
|
+
const object = new VehicleRestriction();
|
|
405
|
+
object.json = json;
|
|
406
|
+
return object;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
class SouthAfricaDlBarcodeResult {
|
|
411
|
+
get version() { return this.json.version; }
|
|
412
|
+
get licenseCountryOfIssue() { return this.json.licenseCountryOfIssue; }
|
|
413
|
+
get personalIdNumber() { return this.json.personalIdNumber; }
|
|
414
|
+
get personalIdNumberType() { return this.json.personalIdNumberType; }
|
|
415
|
+
get documentCopy() { return this.json.documentCopy; }
|
|
416
|
+
get driverRestrictionCodes() { return this.json.driverRestrictionCodes; }
|
|
417
|
+
get professionalDrivingPermit() {
|
|
418
|
+
return ProfessionalDrivingPermit.fromJSON(this.json.professionalDrivingPermit);
|
|
419
|
+
}
|
|
420
|
+
get vehicleRestrictions() {
|
|
421
|
+
return this.json.vehicleRestrictions.map(json => VehicleRestriction.fromJSON(json));
|
|
422
|
+
}
|
|
423
|
+
static fromJSON(json) {
|
|
424
|
+
const result = new SouthAfricaDlBarcodeResult();
|
|
425
|
+
result.json = json;
|
|
426
|
+
return result;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
class SouthAfricaIdBarcodeResult {
|
|
431
|
+
get countryOfBirth() { return this.json.countryOfBirth; }
|
|
432
|
+
get countryOfBirthIso() { return this.json.countryOfBirthIso; }
|
|
433
|
+
get citizenshipStatus() { return this.json.citizenshipStatus; }
|
|
434
|
+
get personalIdNumber() { return this.json.personalIdNumber; }
|
|
435
|
+
static fromJSON(json) {
|
|
436
|
+
const result = new SouthAfricaIdBarcodeResult();
|
|
437
|
+
result.json = json;
|
|
438
|
+
return result;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
class USUniformedServicesBarcodeResult {
|
|
443
|
+
get bloodType() { return this.json.bloodType; }
|
|
444
|
+
get branchOfService() { return this.json.branchOfService; }
|
|
445
|
+
get champusEffectiveDate() {
|
|
446
|
+
return DateResult.fromJSON(this.json.champusEffectiveDate);
|
|
447
|
+
}
|
|
448
|
+
get champusExpiryDate() {
|
|
449
|
+
return DateResult.fromJSON(this.json.champusExpiryDate);
|
|
450
|
+
}
|
|
451
|
+
get civilianHealthCareFlagCode() { return this.json.civilianHealthCareFlagCode; }
|
|
452
|
+
get civilianHealthCareFlagDescription() { return this.json.civilianHealthCareFlagDescription; }
|
|
453
|
+
get commissaryFlagCode() { return this.json.commissaryFlagCode; }
|
|
454
|
+
get commissaryFlagDescription() { return this.json.commissaryFlagDescription; }
|
|
455
|
+
get deersDependentSuffixCode() { return this.json.deersDependentSuffixCode; }
|
|
456
|
+
get deersDependentSuffixDescription() { return this.json.deersDependentSuffixDescription; }
|
|
457
|
+
get directCareFlagCode() { return this.json.directCareFlagCode; }
|
|
458
|
+
get directCareFlagDescription() { return this.json.directCareFlagDescription; }
|
|
459
|
+
get exchangeFlagCode() { return this.json.exchangeFlagCode; }
|
|
460
|
+
get exchangeFlagDescription() { return this.json.exchangeFlagDescription; }
|
|
461
|
+
get eyeColor() { return this.json.eyeColor; }
|
|
462
|
+
get familySequenceNumber() { return this.json.familySequenceNumber; }
|
|
463
|
+
get formNumber() { return this.json.formNumber; }
|
|
464
|
+
get genevaConventionCategory() { return this.json.genevaConventionCategory; }
|
|
465
|
+
get hairColor() { return this.json.hairColor; }
|
|
466
|
+
get height() { return this.json.height; }
|
|
467
|
+
get jpegData() { return this.json.jpegData; }
|
|
468
|
+
get mwrFlagCode() { return this.json.mwrFlagCode; }
|
|
469
|
+
get mwrFlagDescription() { return this.json.mwrFlagDescription; }
|
|
470
|
+
get payGrade() { return this.json.payGrade; }
|
|
471
|
+
get personDesignatorDocument() { return this.json.personDesignatorDocument; }
|
|
472
|
+
get rank() { return this.json.rank; }
|
|
473
|
+
get relationshipCode() { return this.json.relationshipCode; }
|
|
474
|
+
get relationshipDescription() { return this.json.relationshipDescription; }
|
|
475
|
+
get securityCode() { return this.json.securityCode; }
|
|
476
|
+
get serviceCode() { return this.json.serviceCode; }
|
|
477
|
+
get sponsorFlag() { return this.json.sponsorFlag; }
|
|
478
|
+
get sponsorName() { return this.json.sponsorName; }
|
|
479
|
+
get sponsorPersonDesignatorIdentifier() {
|
|
480
|
+
return this.json.sponsorPersonDesignatorIdentifier;
|
|
481
|
+
}
|
|
482
|
+
get statusCode() { return this.json.statusCode; }
|
|
483
|
+
get statusCodeDescription() { return this.json.statusCodeDescription; }
|
|
484
|
+
get version() { return this.json.version; }
|
|
485
|
+
get weight() { return this.json.weight; }
|
|
486
|
+
static fromJSON(json) {
|
|
487
|
+
const result = new USUniformedServicesBarcodeResult();
|
|
488
|
+
result.json = json;
|
|
489
|
+
return result;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
class USVisaVIZResult {
|
|
494
|
+
get visaNumber() { return this.json.visaNumber; }
|
|
495
|
+
get passportNumber() { return this.json.passportNumber; }
|
|
496
|
+
static fromJSON(json) {
|
|
497
|
+
const result = new USVisaVIZResult();
|
|
498
|
+
result.json = json;
|
|
499
|
+
return result;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
class CommonCapturedIdFields {
|
|
504
|
+
get firstName() { return this.json.firstName; }
|
|
505
|
+
get lastName() { return this.json.lastName; }
|
|
506
|
+
get fullName() { return this.json.fullName; }
|
|
507
|
+
get sex() { return this.json.sex; }
|
|
508
|
+
get dateOfBirth() {
|
|
509
|
+
return DateResult.fromJSON(this.json.dateOfBirth);
|
|
510
|
+
}
|
|
511
|
+
get age() { return this.json.age; }
|
|
512
|
+
get isExpired() { return this.json.isExpired; }
|
|
513
|
+
get nationality() { return this.json.nationality; }
|
|
514
|
+
get address() { return this.json.address; }
|
|
515
|
+
get documentAdditionalNumber() { return this.json.documentAdditionalNumber; }
|
|
516
|
+
get documentType() { return this.json.documentType; }
|
|
517
|
+
get documentNumber() { return this.json.documentNumber; }
|
|
518
|
+
get issuingCountry() { return this.json.issuingCountry; }
|
|
519
|
+
get issuingCountryIso() { return this.json.issuingCountryIso; }
|
|
520
|
+
get dateOfExpiry() {
|
|
521
|
+
return DateResult.fromJSON(this.json.dateOfExpiry);
|
|
522
|
+
}
|
|
523
|
+
get dateOfIssue() {
|
|
524
|
+
return DateResult.fromJSON(this.json.dateOfIssue);
|
|
525
|
+
}
|
|
526
|
+
static fromJSON(json, existingInstance) {
|
|
527
|
+
if (json === null) {
|
|
528
|
+
return null;
|
|
529
|
+
}
|
|
530
|
+
const firstName = json.firstName;
|
|
531
|
+
const lastName = json.lastName;
|
|
532
|
+
const fullName = json.fullName;
|
|
533
|
+
const sex = json.sex;
|
|
534
|
+
const dateOfBirth = DateResult.fromJSON(json.dateOfBirth);
|
|
535
|
+
const age = json.age;
|
|
536
|
+
const isExpired = json.isExpired;
|
|
537
|
+
const nationality = json.nationality;
|
|
538
|
+
const address = json.address;
|
|
539
|
+
const documentType = json.documentType;
|
|
540
|
+
const documentNumber = json.documentNumber;
|
|
541
|
+
const issuingCountry = json.issuingCountry;
|
|
542
|
+
const issuingCountryIso = json.issuingCountryIso;
|
|
543
|
+
const dateOfExpiry = DateResult.fromJSON(json.dateOfExpiry);
|
|
544
|
+
const dateOfIssue = DateResult.fromJSON(json.dateOfIssue);
|
|
545
|
+
if (existingInstance) {
|
|
546
|
+
if (!existingInstance.firstName) {
|
|
547
|
+
json.firstName = firstName;
|
|
548
|
+
}
|
|
549
|
+
if (!existingInstance.lastName) {
|
|
550
|
+
json.lastName = lastName;
|
|
551
|
+
}
|
|
552
|
+
if (!existingInstance.fullName) {
|
|
553
|
+
json.fullName = fullName;
|
|
554
|
+
}
|
|
555
|
+
if (!existingInstance.sex) {
|
|
556
|
+
json.sex = sex;
|
|
557
|
+
}
|
|
558
|
+
if (!existingInstance.dateOfBirth) {
|
|
559
|
+
json.dateOfBirth = dateOfBirth;
|
|
560
|
+
}
|
|
561
|
+
if (!existingInstance.age) {
|
|
562
|
+
json.age = age;
|
|
563
|
+
}
|
|
564
|
+
if (!existingInstance.isExpired) {
|
|
565
|
+
json.isExpired = isExpired;
|
|
566
|
+
}
|
|
567
|
+
if (!existingInstance.nationality) {
|
|
568
|
+
json.nationality = nationality;
|
|
569
|
+
}
|
|
570
|
+
if (!existingInstance.address) {
|
|
571
|
+
json.address = address;
|
|
572
|
+
}
|
|
573
|
+
if (!existingInstance.documentType) {
|
|
574
|
+
json.documentType = documentType;
|
|
575
|
+
}
|
|
576
|
+
if (!existingInstance.documentNumber) {
|
|
577
|
+
json.documentNumber = documentNumber;
|
|
578
|
+
}
|
|
579
|
+
if (!existingInstance.issuingCountry) {
|
|
580
|
+
json.issuingCountry = issuingCountry;
|
|
581
|
+
}
|
|
582
|
+
if (!existingInstance.issuingCountryIso) {
|
|
583
|
+
json.issuingCountryIso = issuingCountryIso;
|
|
584
|
+
}
|
|
585
|
+
if (!existingInstance.dateOfExpiry) {
|
|
586
|
+
json.dateOfExpiry = dateOfExpiry;
|
|
587
|
+
}
|
|
588
|
+
if (!existingInstance.dateOfIssue) {
|
|
589
|
+
json.dateOfIssue = dateOfIssue;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
const object = new CommonCapturedIdFields();
|
|
593
|
+
object.json = json;
|
|
594
|
+
return object;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
class VIZResult {
|
|
599
|
+
get additionalAddressInformation() { return this.json.additionalAddressInformation; }
|
|
600
|
+
get additionalNameInformation() { return this.json.additionalNameInformation; }
|
|
601
|
+
get documentAdditionalNumber() { return this.json.documentAdditionalNumber; }
|
|
602
|
+
get employer() { return this.json.employer; }
|
|
603
|
+
get issuingAuthority() { return this.json.issuingAuthority; }
|
|
604
|
+
get issuingJurisdiction() { return this.json.issuingJurisdiction; }
|
|
605
|
+
get issuingJurisdictionIso() { return this.json.issuingJurisdictionIso; }
|
|
606
|
+
get maritalStatus() { return this.json.maritalStatus; }
|
|
607
|
+
get personalIdNumber() { return this.json.personalIdNumber; }
|
|
608
|
+
get placeOfBirth() { return this.json.placeOfBirth; }
|
|
609
|
+
get profession() { return this.json.profession; }
|
|
610
|
+
get race() { return this.json.race; }
|
|
611
|
+
get religion() { return this.json.religion; }
|
|
612
|
+
get residentialStatus() { return this.json.residentialStatus; }
|
|
613
|
+
get capturedSides() { return this.json.capturedSides; }
|
|
614
|
+
get isBackSideCaptureSupported() { return this.json.isBackSideCaptureSupported; }
|
|
615
|
+
static fromJSON(json) {
|
|
616
|
+
const result = new VIZResult();
|
|
617
|
+
result.json = json;
|
|
618
|
+
return result;
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
class CommonAccessCardBarcodeResult {
|
|
623
|
+
get version() { return this.json.version; }
|
|
624
|
+
get personDesignatorDocument() { return this.json.personDesignatorDocument; }
|
|
625
|
+
get personDesignatorTypeCode() { return this.json.personDesignatorTypeCode; }
|
|
626
|
+
get ediPersonIdentifier() { return this.json.ediPersonIdentifier; }
|
|
627
|
+
get personnelCategoryCode() { return this.json.personnelCategoryCode; }
|
|
628
|
+
get branchOfService() { return this.json.branchOfService; }
|
|
629
|
+
get personnelEntitlementConditionType() { return this.json.personnelEntitlementConditionType; }
|
|
630
|
+
get rank() { return this.json.rank; }
|
|
631
|
+
get payPlanCode() { return this.json.payPlanCode; }
|
|
632
|
+
get payPlanGradeCode() { return this.json.payPlanGradeCode; }
|
|
633
|
+
get cardInstanceIdentifier() { return this.json.cardInstanceIdentifier; }
|
|
634
|
+
get personMiddleInitial() { return this.json.personMiddleInitial; }
|
|
635
|
+
static fromJSON(json) {
|
|
636
|
+
const result = new CommonAccessCardBarcodeResult();
|
|
637
|
+
result.json = json;
|
|
638
|
+
return result;
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
class CapturedId {
|
|
643
|
+
get firstName() { return this.commonCapturedFields.firstName; }
|
|
644
|
+
get lastName() { return this.commonCapturedFields.lastName; }
|
|
645
|
+
get fullName() { return this.commonCapturedFields.fullName; }
|
|
646
|
+
get sex() { return this.commonCapturedFields.sex; }
|
|
647
|
+
get dateOfBirth() {
|
|
648
|
+
return DateResult.fromJSON(this.commonCapturedFields.dateOfBirth);
|
|
649
|
+
}
|
|
650
|
+
get age() { return this.json.age; }
|
|
651
|
+
get isExpired() { return this.json.isExpired; }
|
|
652
|
+
get nationality() { return this.commonCapturedFields.nationality; }
|
|
653
|
+
get address() { return this.commonCapturedFields.address; }
|
|
654
|
+
get capturedResultType() { return this.json.capturedResultType; }
|
|
655
|
+
get capturedResultTypes() {
|
|
656
|
+
return this.json.capturedResultTypes;
|
|
657
|
+
}
|
|
658
|
+
get documentType() { return this.commonCapturedFields.documentType; }
|
|
659
|
+
get issuingCountryIso() { return this.commonCapturedFields.issuingCountryIso; }
|
|
660
|
+
get issuingCountry() { return this.commonCapturedFields.issuingCountry; }
|
|
661
|
+
get documentAdditionalNumber() { return this.commonCapturedFields.documentAdditionalNumber; }
|
|
662
|
+
get documentNumber() { return this.commonCapturedFields.documentNumber; }
|
|
663
|
+
get dateOfExpiry() {
|
|
664
|
+
return DateResult.fromJSON(this.commonCapturedFields.dateOfExpiry);
|
|
665
|
+
}
|
|
666
|
+
get dateOfIssue() {
|
|
667
|
+
return DateResult.fromJSON(this.commonCapturedFields.dateOfIssue);
|
|
668
|
+
}
|
|
669
|
+
get aamvaBarcodeResult() {
|
|
670
|
+
if (this._aamvaBarcodeResult == null && this.json.aamvaBarcodeResult != null) {
|
|
671
|
+
this._aamvaBarcodeResult = AAMVABarcodeResult.
|
|
672
|
+
fromJSON(this.json.aamvaBarcodeResult);
|
|
673
|
+
}
|
|
674
|
+
return this._aamvaBarcodeResult;
|
|
675
|
+
}
|
|
676
|
+
get argentinaIdBarcodeResult() {
|
|
677
|
+
if (this._argentinaIdBarcodeResult == null && this.json.argentinaIdBarcodeResult != null) {
|
|
678
|
+
this._argentinaIdBarcodeResult = ArgentinaIdBarcodeResult.
|
|
679
|
+
fromJSON(this.json.argentinaIdBarcodeResult);
|
|
680
|
+
}
|
|
681
|
+
return this._argentinaIdBarcodeResult;
|
|
682
|
+
}
|
|
683
|
+
get colombiaIdBarcodeResult() {
|
|
684
|
+
if (this._colombiaIdBarcodeResult == null && this.json.colombiaIdBarcodeResult != null) {
|
|
685
|
+
this._colombiaIdBarcodeResult = ColombiaIdBarcodeResult.
|
|
686
|
+
fromJSON(this.json.colombiaIdBarcodeResult);
|
|
687
|
+
}
|
|
688
|
+
return this._colombiaIdBarcodeResult;
|
|
689
|
+
}
|
|
690
|
+
get colombiaDlBarcodeResult() {
|
|
691
|
+
if (this._colombiaDlBarcodeResult == null && this.json.colombiaDlBarcodeResult != null) {
|
|
692
|
+
this._colombiaDlBarcodeResult = ColombiaDlBarcodeResult.
|
|
693
|
+
fromJSON(this.json.colombiaDlBarcodeResult);
|
|
694
|
+
}
|
|
695
|
+
return this._colombiaDlBarcodeResult;
|
|
696
|
+
}
|
|
697
|
+
get mrzResult() {
|
|
698
|
+
if (this._mrzResult == null && this.json.mrzResult != null) {
|
|
699
|
+
this._mrzResult = MRZResult.fromJSON(this.json.mrzResult);
|
|
700
|
+
}
|
|
701
|
+
return this._mrzResult;
|
|
702
|
+
}
|
|
703
|
+
get southAfricaIdBarcodeResult() {
|
|
704
|
+
if (this._southAfricaIdBarcodeResult == null && this.json.southAfricaIdBarcodeResult != null) {
|
|
705
|
+
this._southAfricaIdBarcodeResult = SouthAfricaIdBarcodeResult.
|
|
706
|
+
fromJSON(this.json.southAfricaIdBarcodeResult);
|
|
707
|
+
}
|
|
708
|
+
return this._southAfricaIdBarcodeResult;
|
|
709
|
+
}
|
|
710
|
+
get southAfricaDlBarcodeResult() {
|
|
711
|
+
if (this._southAfricaDlBarcodeResult == null && this.json.southAfricaDlBarcodeResult != null) {
|
|
712
|
+
this._southAfricaDlBarcodeResult = SouthAfricaDlBarcodeResult.
|
|
713
|
+
fromJSON(this.json.southAfricaDlBarcodeResult);
|
|
714
|
+
}
|
|
715
|
+
return this._southAfricaDlBarcodeResult;
|
|
716
|
+
}
|
|
717
|
+
get commonAccessCardBarcodeResult() {
|
|
718
|
+
if (this._commonAccessBarcodeResult == null && this.json.commonAccessCardBarcodeResult != null) {
|
|
719
|
+
this._commonAccessBarcodeResult = CommonAccessCardBarcodeResult.
|
|
720
|
+
fromJSON(this.json.commonAccessCardBarcodeResult);
|
|
721
|
+
}
|
|
722
|
+
return this._commonAccessBarcodeResult;
|
|
723
|
+
}
|
|
724
|
+
get usUniformedServicesBarcodeResult() {
|
|
725
|
+
if (this._usUniformedServicesBarcodeResult == null && this.json.usUniformedServicesBarcodeResult != null) {
|
|
726
|
+
const fromJSON = USUniformedServicesBarcodeResult.fromJSON;
|
|
727
|
+
this._usUniformedServicesBarcodeResult = fromJSON(this.json.usUniformedServicesBarcodeResult);
|
|
728
|
+
}
|
|
729
|
+
return this._usUniformedServicesBarcodeResult;
|
|
730
|
+
}
|
|
731
|
+
get usVisaViz() {
|
|
732
|
+
if (this._usVisaVizResult == null && this.json.usVisaVizResult != null) {
|
|
733
|
+
const fromJSON = USVisaVIZResult.fromJSON;
|
|
734
|
+
this._usVisaVizResult = fromJSON(this.json.usVisaVizResult);
|
|
735
|
+
}
|
|
736
|
+
return this._usVisaVizResult;
|
|
737
|
+
}
|
|
738
|
+
get vizResult() {
|
|
739
|
+
if (this._vizResult == null && this.json.vizResult != null) {
|
|
740
|
+
this._vizResult = VIZResult.fromJSON(this.json.vizResult);
|
|
741
|
+
}
|
|
742
|
+
return this._vizResult;
|
|
743
|
+
}
|
|
744
|
+
get chinaMainlandTravelPermitMRZResult() {
|
|
745
|
+
if (this._chinaMainlandTravelPermitMRZResult == null && this.json.chinaMainlandTravelPermitMrzResult != null) {
|
|
746
|
+
this._chinaMainlandTravelPermitMRZResult =
|
|
747
|
+
ChinaMainlandTravelPermitMRZResult
|
|
748
|
+
.fromJSON(this.json.chinaMainlandTravelPermitMrzResult);
|
|
749
|
+
}
|
|
750
|
+
return this._chinaMainlandTravelPermitMRZResult;
|
|
751
|
+
}
|
|
752
|
+
get chinaExitEntryPermitMRZResult() {
|
|
753
|
+
if (this._chinaExitEntryPermitMRZResult == null && this.json.chinaExitEntryPermitMrzResult != null) {
|
|
754
|
+
this._chinaExitEntryPermitMRZResult =
|
|
755
|
+
ChinaExitEntryPermitMRZResult
|
|
756
|
+
.fromJSON(this.json.chinaExitEntryPermitMrzResult);
|
|
757
|
+
}
|
|
758
|
+
return this._chinaExitEntryPermitMRZResult;
|
|
759
|
+
}
|
|
760
|
+
get chinaOneWayPermitBackMrzResult() {
|
|
761
|
+
if (this._chinaOneWayPermitBackMrzResult == null && this.json.chinaOneWayPermitBackMrzResult != null) {
|
|
762
|
+
this._chinaOneWayPermitBackMrzResult =
|
|
763
|
+
ChinaOneWayPermitBackMrzResult
|
|
764
|
+
.fromJSON(this.json.chinaOneWayPermitBackMrzResult);
|
|
765
|
+
}
|
|
766
|
+
return this._chinaOneWayPermitBackMrzResult;
|
|
767
|
+
}
|
|
768
|
+
get chinaOneWayPermitFrontMrzResult() {
|
|
769
|
+
if (this._chinaOneWayPermitFrontMrzResult == null && this.json.chinaOneWayPermitFrontMrzResult != null) {
|
|
770
|
+
this._chinaOneWayPermitFrontMrzResult =
|
|
771
|
+
ChinaOneWayPermitFrontMrzResult
|
|
772
|
+
.fromJSON(this.json.chinaOneWayPermitFrontMrzResult);
|
|
773
|
+
}
|
|
774
|
+
return this._chinaOneWayPermitFrontMrzResult;
|
|
775
|
+
}
|
|
776
|
+
get apecBusinessTravelCardMrzResult() {
|
|
777
|
+
if (this._apecBusinessTravelCardMrzResult == null && this.json.apecBusinessTravelCardMrzResult != null) {
|
|
778
|
+
this._apecBusinessTravelCardMrzResult =
|
|
779
|
+
ApecBusinessTravelCardMrzResult
|
|
780
|
+
.fromJSON(this.json.apecBusinessTravelCardMrzResult);
|
|
781
|
+
}
|
|
782
|
+
return this._apecBusinessTravelCardMrzResult;
|
|
783
|
+
}
|
|
784
|
+
static fromJSON(json) {
|
|
785
|
+
const result = new CapturedId();
|
|
786
|
+
result.json = json;
|
|
787
|
+
if (json.aamvaBarcodeResult) {
|
|
788
|
+
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.aamvaBarcodeResult, result.commonCapturedFields);
|
|
789
|
+
}
|
|
790
|
+
if (json.argentinaIdBarcodeResult) {
|
|
791
|
+
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.argentinaIdBarcodeResult, result.commonCapturedFields);
|
|
792
|
+
}
|
|
793
|
+
if (json.colombiaIdBarcodeResult) {
|
|
794
|
+
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.colombiaIdBarcodeResult, result.commonCapturedFields);
|
|
795
|
+
}
|
|
796
|
+
if (json.colombiaDlBarcodeResult) {
|
|
797
|
+
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.colombiaDlBarcodeResult, result.commonCapturedFields);
|
|
798
|
+
}
|
|
799
|
+
if (json.mrzResult) {
|
|
800
|
+
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.mrzResult, result.commonCapturedFields);
|
|
801
|
+
}
|
|
802
|
+
if (json.southAfricaIdBarcodeResult) {
|
|
803
|
+
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.southAfricaIdBarcodeResult, result.commonCapturedFields);
|
|
804
|
+
}
|
|
805
|
+
if (json.southAfricaDlBarcodeResult) {
|
|
806
|
+
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.southAfricaDlBarcodeResult, result.commonCapturedFields);
|
|
807
|
+
}
|
|
808
|
+
if (json.commonAccessCardBarcodeResult) {
|
|
809
|
+
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.commonAccessCardBarcodeResult, result.commonCapturedFields);
|
|
810
|
+
}
|
|
811
|
+
if (json.usUniformedServicesBarcodeResult) {
|
|
812
|
+
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.usUniformedServicesBarcodeResult, result.commonCapturedFields);
|
|
813
|
+
}
|
|
814
|
+
if (json.usVisaVizResult) {
|
|
815
|
+
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.usVisaVizResult, result.commonCapturedFields);
|
|
816
|
+
}
|
|
817
|
+
if (json.vizResult) {
|
|
818
|
+
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.vizResult, result.commonCapturedFields);
|
|
819
|
+
}
|
|
820
|
+
if (json.chinaMainlandTravelPermitMrzResult) {
|
|
821
|
+
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.chinaMainlandTravelPermitMrzResult, result.commonCapturedFields);
|
|
822
|
+
}
|
|
823
|
+
if (json.chinaExitEntryPermitMrzResult) {
|
|
824
|
+
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.chinaExitEntryPermitMrzResult, result.commonCapturedFields);
|
|
825
|
+
}
|
|
826
|
+
if (json.chinaOneWayPermitBackMrzResult) {
|
|
827
|
+
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.chinaOneWayPermitBackMrzResult, result.commonCapturedFields);
|
|
828
|
+
}
|
|
829
|
+
if (json.chinaOneWayPermitFrontMrzResult) {
|
|
830
|
+
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.chinaOneWayPermitFrontMrzResult, result.commonCapturedFields);
|
|
831
|
+
}
|
|
832
|
+
if (json.apecBusinessTravelCardMrzResult) {
|
|
833
|
+
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.apecBusinessTravelCardMrzResult, result.commonCapturedFields);
|
|
834
|
+
}
|
|
835
|
+
return result;
|
|
836
|
+
}
|
|
837
|
+
idImageOfType(type) {
|
|
838
|
+
if (this.json.imageInfo === null) {
|
|
839
|
+
return null;
|
|
840
|
+
}
|
|
841
|
+
return this.json.imageInfo[type];
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
class IdCaptureError {
|
|
846
|
+
get type() {
|
|
847
|
+
return this._type;
|
|
848
|
+
}
|
|
849
|
+
get message() {
|
|
850
|
+
return this._message;
|
|
851
|
+
}
|
|
852
|
+
static fromJSON(json) {
|
|
853
|
+
const error = new IdCaptureError();
|
|
854
|
+
error._type = json.type;
|
|
855
|
+
error._message = json.message;
|
|
856
|
+
return error;
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
class IdCaptureSession {
|
|
861
|
+
get newlyCapturedId() {
|
|
862
|
+
return this._newlyCapturedId;
|
|
863
|
+
}
|
|
864
|
+
get frameSequenceId() {
|
|
865
|
+
return this._frameSequenceId;
|
|
866
|
+
}
|
|
867
|
+
get localizedOnlyId() {
|
|
868
|
+
return this._localizedOnlyId;
|
|
869
|
+
}
|
|
870
|
+
get newlyRejectedId() {
|
|
871
|
+
return this._newlyRejectedId;
|
|
872
|
+
}
|
|
873
|
+
static fromJSON(json) {
|
|
874
|
+
const session = new IdCaptureSession();
|
|
875
|
+
if (json.newlyCapturedId) {
|
|
876
|
+
session._newlyCapturedId = CapturedId.fromJSON(json.newlyCapturedId);
|
|
877
|
+
}
|
|
878
|
+
if (json.localizedOnlyId) {
|
|
879
|
+
session._localizedOnlyId = LocalizedOnlyId.fromJSON(json.localizedOnlyId);
|
|
880
|
+
}
|
|
881
|
+
if (json.newlyRejectedId) {
|
|
882
|
+
session._newlyRejectedId = LocalizedOnlyId.fromJSON(json.newlyRejectedId);
|
|
883
|
+
}
|
|
884
|
+
session._frameSequenceId = json.frameSequenceId;
|
|
885
|
+
session._error = json.error ? IdCaptureError.fromJSON(json.error) : null;
|
|
886
|
+
return session;
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
var IdCaptureListenerEvents;
|
|
891
|
+
(function (IdCaptureListenerEvents) {
|
|
892
|
+
IdCaptureListenerEvents["inCallback"] = "IdCaptureListener.inCallback";
|
|
893
|
+
IdCaptureListenerEvents["didCapture"] = "IdCaptureListener.didCaptureId";
|
|
894
|
+
IdCaptureListenerEvents["didLocalize"] = "IdCaptureListener.didLocalizeId";
|
|
895
|
+
IdCaptureListenerEvents["didReject"] = "IdCaptureListener.didRejectId";
|
|
896
|
+
IdCaptureListenerEvents["didTimeOut"] = "IdCaptureListener.didTimeout";
|
|
897
|
+
})(IdCaptureListenerEvents || (IdCaptureListenerEvents = {}));
|
|
898
|
+
|
|
899
|
+
class IdCaptureListenerController {
|
|
900
|
+
get _proxy() {
|
|
901
|
+
return FactoryMaker.getInstance('IdCaptureListenerProxy');
|
|
902
|
+
}
|
|
903
|
+
static forIdCapture(idCapture) {
|
|
904
|
+
const controller = new IdCaptureListenerController();
|
|
905
|
+
controller.idCapture = idCapture;
|
|
906
|
+
controller._proxy.isModeEnabled = () => idCapture.isEnabled;
|
|
907
|
+
return controller;
|
|
908
|
+
}
|
|
909
|
+
constructor() {
|
|
910
|
+
this.eventEmitter = FactoryMaker.getInstance('EventEmitter');
|
|
911
|
+
}
|
|
912
|
+
subscribeListener() {
|
|
913
|
+
this._proxy.subscribeDidCaptureListener();
|
|
914
|
+
this._proxy.subscribeDidLocalizeListener();
|
|
915
|
+
this._proxy.subscribeDidRejectListener();
|
|
916
|
+
this._proxy.subscribeDidTimeOutListener();
|
|
917
|
+
this.eventEmitter.on(IdCaptureListenerEvents.inCallback, (value) => {
|
|
918
|
+
this.idCapture.isInListenerCallback = value;
|
|
919
|
+
});
|
|
920
|
+
this.eventEmitter.on(IdCaptureListenerEvents.didCapture, (body) => {
|
|
921
|
+
const payload = JSON.parse(body);
|
|
922
|
+
const session = IdCaptureSession.fromJSON(JSON.parse(payload.session));
|
|
923
|
+
this.notifyListenersOfDidCapture(session);
|
|
924
|
+
this._proxy.finishDidCaptureCallback(this.idCapture.isEnabled);
|
|
925
|
+
});
|
|
926
|
+
this.eventEmitter.on(IdCaptureListenerEvents.didLocalize, (body) => {
|
|
927
|
+
const payload = JSON.parse(body);
|
|
928
|
+
const session = IdCaptureSession.fromJSON(JSON.parse(payload.session));
|
|
929
|
+
this.notifyListenersOfDidLocalize(session);
|
|
930
|
+
this._proxy.finishDidLocalizeCallback(this.idCapture.isEnabled);
|
|
931
|
+
});
|
|
932
|
+
this.eventEmitter.on(IdCaptureListenerEvents.didReject, (body) => {
|
|
933
|
+
const payload = JSON.parse(body);
|
|
934
|
+
const session = IdCaptureSession.fromJSON(JSON.parse(payload.session));
|
|
935
|
+
this.notifyListenersOfDidReject(session);
|
|
936
|
+
this._proxy.finishDidRejectCallback(this.idCapture.isEnabled);
|
|
937
|
+
});
|
|
938
|
+
this.eventEmitter.on(IdCaptureListenerEvents.didTimeOut, (body) => {
|
|
939
|
+
const payload = JSON.parse(body);
|
|
940
|
+
const session = IdCaptureSession.fromJSON(JSON.parse(payload.session));
|
|
941
|
+
this.notifyListenersOfDidTimeOut(session);
|
|
942
|
+
this._proxy.finishDidTimeOutCallback(this.idCapture.isEnabled);
|
|
943
|
+
});
|
|
944
|
+
}
|
|
945
|
+
unsubscribeListener() {
|
|
946
|
+
this._proxy.unregisterListenerForEvents();
|
|
947
|
+
this.eventEmitter.removeListener(IdCaptureListenerEvents.inCallback);
|
|
948
|
+
this.eventEmitter.removeListener(IdCaptureListenerEvents.didCapture);
|
|
949
|
+
this.eventEmitter.removeListener(IdCaptureListenerEvents.didLocalize);
|
|
950
|
+
this.eventEmitter.removeListener(IdCaptureListenerEvents.didReject);
|
|
951
|
+
this.eventEmitter.removeListener(IdCaptureListenerEvents.didTimeOut);
|
|
952
|
+
}
|
|
953
|
+
notifyListenersOfDidCapture(session) {
|
|
954
|
+
const mode = this.idCapture;
|
|
955
|
+
mode.isInListenerCallback = true;
|
|
956
|
+
mode.listeners.forEach(listener => {
|
|
957
|
+
if (listener.didCaptureId) {
|
|
958
|
+
listener.didCaptureId(this.idCapture, session, CameraController.getLastFrame);
|
|
959
|
+
}
|
|
960
|
+
});
|
|
961
|
+
mode.isInListenerCallback = false;
|
|
962
|
+
}
|
|
963
|
+
notifyListenersOfDidLocalize(session) {
|
|
964
|
+
const mode = this.idCapture;
|
|
965
|
+
mode.isInListenerCallback = true;
|
|
966
|
+
mode.listeners.forEach(listener => {
|
|
967
|
+
if (listener.didLocalizeId) {
|
|
968
|
+
listener.didLocalizeId(this.idCapture, session, CameraController.getLastFrame);
|
|
969
|
+
}
|
|
970
|
+
});
|
|
971
|
+
mode.isInListenerCallback = false;
|
|
972
|
+
}
|
|
973
|
+
notifyListenersOfDidReject(session) {
|
|
974
|
+
const mode = this.idCapture;
|
|
975
|
+
mode.isInListenerCallback = true;
|
|
976
|
+
mode.listeners.forEach(listener => {
|
|
977
|
+
if (listener.didRejectId) {
|
|
978
|
+
listener.didRejectId(this.idCapture, session, CameraController.getLastFrame);
|
|
979
|
+
}
|
|
980
|
+
});
|
|
981
|
+
mode.isInListenerCallback = false;
|
|
982
|
+
}
|
|
983
|
+
notifyListenersOfDidTimeOut(session) {
|
|
984
|
+
const mode = this.idCapture;
|
|
985
|
+
mode.isInListenerCallback = true;
|
|
986
|
+
mode.listeners.forEach(listener => {
|
|
987
|
+
if (listener.didTimeoutInSession) {
|
|
988
|
+
listener.didTimeoutInSession(this.idCapture, session, CameraController.getLastFrame);
|
|
989
|
+
}
|
|
990
|
+
});
|
|
991
|
+
mode.isInListenerCallback = false;
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
class IdCapture extends DefaultSerializeable {
|
|
996
|
+
get isEnabled() {
|
|
997
|
+
return this._isEnabled;
|
|
998
|
+
}
|
|
999
|
+
set isEnabled(isEnabled) {
|
|
1000
|
+
this._isEnabled = isEnabled;
|
|
1001
|
+
if (!this.isInListenerCallback) {
|
|
1002
|
+
// If we're "in" a listener callback, we don't want to deserialize the context to update the enabled state,
|
|
1003
|
+
// but rather pass that back to be applied in the native callback.
|
|
1004
|
+
this.controller.setModeEnabledState(isEnabled);
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
get context() {
|
|
1008
|
+
return this._context;
|
|
1009
|
+
}
|
|
1010
|
+
get feedback() {
|
|
1011
|
+
return this._feedback;
|
|
1012
|
+
}
|
|
1013
|
+
set feedback(feedback) {
|
|
1014
|
+
this._feedback = feedback;
|
|
1015
|
+
this.didChange();
|
|
1016
|
+
}
|
|
1017
|
+
static get recommendedCameraSettings() {
|
|
1018
|
+
return new CameraSettings(IdCapture.idCaptureDefaults.IdCapture.RecommendedCameraSettings);
|
|
1019
|
+
}
|
|
1020
|
+
get _context() {
|
|
1021
|
+
return this.privateContext;
|
|
1022
|
+
}
|
|
1023
|
+
set _context(newContext) {
|
|
1024
|
+
if (newContext == null) {
|
|
1025
|
+
this.listenerController.unsubscribeListener();
|
|
1026
|
+
}
|
|
1027
|
+
else if (this.privateContext == null) {
|
|
1028
|
+
this.listenerController.subscribeListener();
|
|
1029
|
+
}
|
|
1030
|
+
this.privateContext = newContext;
|
|
1031
|
+
}
|
|
1032
|
+
static get idCaptureDefaults() {
|
|
1033
|
+
return FactoryMaker.getInstance('IdDefaults');
|
|
1034
|
+
}
|
|
1035
|
+
static forContext(context, settings) {
|
|
1036
|
+
const idCapture = new IdCapture();
|
|
1037
|
+
idCapture.settings = settings;
|
|
1038
|
+
if (context) {
|
|
1039
|
+
context.addMode(idCapture);
|
|
1040
|
+
}
|
|
1041
|
+
return idCapture;
|
|
1042
|
+
}
|
|
1043
|
+
constructor() {
|
|
1044
|
+
super();
|
|
1045
|
+
this.type = 'idCapture';
|
|
1046
|
+
this._isEnabled = true;
|
|
1047
|
+
this.privateContext = null;
|
|
1048
|
+
this.listeners = [];
|
|
1049
|
+
this.isInListenerCallback = false;
|
|
1050
|
+
this.controller = IdCaptureController.forIdCapture(this);
|
|
1051
|
+
this.listenerController = IdCaptureListenerController.forIdCapture(this);
|
|
1052
|
+
}
|
|
1053
|
+
applySettings(settings) {
|
|
1054
|
+
this.settings = settings;
|
|
1055
|
+
return this.didChange();
|
|
1056
|
+
}
|
|
1057
|
+
addListener(listener) {
|
|
1058
|
+
if (this.listeners.includes(listener)) {
|
|
1059
|
+
return;
|
|
1060
|
+
}
|
|
1061
|
+
this.listeners.push(listener);
|
|
1062
|
+
}
|
|
1063
|
+
removeListener(listener) {
|
|
1064
|
+
if (!this.listeners.includes(listener)) {
|
|
1065
|
+
return;
|
|
1066
|
+
}
|
|
1067
|
+
this.listeners.splice(this.listeners.indexOf(listener), 1);
|
|
1068
|
+
}
|
|
1069
|
+
reset() {
|
|
1070
|
+
return this.controller.reset();
|
|
1071
|
+
}
|
|
1072
|
+
didChange() {
|
|
1073
|
+
if (this.context) {
|
|
1074
|
+
return this.context.update();
|
|
1075
|
+
}
|
|
1076
|
+
else {
|
|
1077
|
+
return Promise.resolve();
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
__decorate([
|
|
1082
|
+
nameForSerialization('enabled')
|
|
1083
|
+
], IdCapture.prototype, "_isEnabled", void 0);
|
|
1084
|
+
__decorate([
|
|
1085
|
+
nameForSerialization('feedback')
|
|
1086
|
+
], IdCapture.prototype, "_feedback", void 0);
|
|
1087
|
+
__decorate([
|
|
1088
|
+
ignoreFromSerialization
|
|
1089
|
+
], IdCapture.prototype, "privateContext", void 0);
|
|
1090
|
+
__decorate([
|
|
1091
|
+
ignoreFromSerialization
|
|
1092
|
+
], IdCapture.prototype, "listeners", void 0);
|
|
1093
|
+
__decorate([
|
|
1094
|
+
ignoreFromSerialization
|
|
1095
|
+
], IdCapture.prototype, "controller", void 0);
|
|
1096
|
+
__decorate([
|
|
1097
|
+
ignoreFromSerialization
|
|
1098
|
+
], IdCapture.prototype, "listenerController", void 0);
|
|
1099
|
+
__decorate([
|
|
1100
|
+
ignoreFromSerialization
|
|
1101
|
+
], IdCapture.prototype, "isInListenerCallback", void 0);
|
|
1102
|
+
__decorate([
|
|
1103
|
+
ignoreFromSerialization
|
|
1104
|
+
], IdCapture, "idCaptureDefaults", null);
|
|
1105
|
+
|
|
1106
|
+
class IdCaptureFeedback extends DefaultSerializeable {
|
|
1107
|
+
static get defaultFeedback() {
|
|
1108
|
+
return new IdCaptureFeedback(IdCaptureFeedback.idDefaults.IdCapture.Feedback.idCaptured, IdCaptureFeedback.idDefaults.IdCapture.Feedback.idRejected, IdCaptureFeedback.idDefaults.IdCapture.Feedback.idCaptureTimeout);
|
|
1109
|
+
}
|
|
1110
|
+
static fromJSON(json) {
|
|
1111
|
+
const idCaptured = Feedback.fromJSON(json.idCaptured);
|
|
1112
|
+
const idRejected = Feedback.fromJSON(json.idRejected);
|
|
1113
|
+
const idCaptureTimeout = Feedback.fromJSON(json.idCaptureTimeout);
|
|
1114
|
+
return new IdCaptureFeedback(idCaptured, idRejected, idCaptureTimeout);
|
|
1115
|
+
}
|
|
1116
|
+
static get idDefaults() {
|
|
1117
|
+
return getIdDefaults();
|
|
1118
|
+
}
|
|
1119
|
+
constructor(idCaptured, idRejected, idCaptureTimeout) {
|
|
1120
|
+
super();
|
|
1121
|
+
this.idCaptured = IdCaptureFeedback.idDefaults.IdCapture.Feedback.idCaptured;
|
|
1122
|
+
this.idRejected = IdCaptureFeedback.idDefaults.IdCapture.Feedback.idRejected;
|
|
1123
|
+
this.idCaptureTimeout = IdCaptureFeedback.idDefaults.IdCapture.Feedback.idCaptureTimeout;
|
|
1124
|
+
this.idCaptured = idCaptured;
|
|
1125
|
+
this.idRejected = idRejected;
|
|
1126
|
+
this.idCaptureTimeout = idCaptureTimeout;
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
__decorate([
|
|
1130
|
+
ignoreFromSerialization
|
|
1131
|
+
], IdCaptureFeedback, "idDefaults", null);
|
|
1132
|
+
|
|
1133
|
+
var IdLayoutLineStyle;
|
|
1134
|
+
(function (IdLayoutLineStyle) {
|
|
1135
|
+
IdLayoutLineStyle["Light"] = "light";
|
|
1136
|
+
IdLayoutLineStyle["Bold"] = "bold";
|
|
1137
|
+
})(IdLayoutLineStyle || (IdLayoutLineStyle = {}));
|
|
1138
|
+
|
|
1139
|
+
var IdLayout;
|
|
1140
|
+
(function (IdLayout) {
|
|
1141
|
+
IdLayout["TD1"] = "td1";
|
|
1142
|
+
IdLayout["TD2"] = "td2";
|
|
1143
|
+
IdLayout["TD3"] = "td3";
|
|
1144
|
+
IdLayout["MRVa"] = "mrvA";
|
|
1145
|
+
IdLayout["VIZ"] = "viz";
|
|
1146
|
+
IdLayout["PDF417"] = "pdf417";
|
|
1147
|
+
IdLayout["Auto"] = "auto";
|
|
1148
|
+
IdLayout["None"] = "none";
|
|
1149
|
+
})(IdLayout || (IdLayout = {}));
|
|
1150
|
+
|
|
1151
|
+
var IdLayoutStyle;
|
|
1152
|
+
(function (IdLayoutStyle) {
|
|
1153
|
+
IdLayoutStyle["Rounded"] = "rounded";
|
|
1154
|
+
IdLayoutStyle["Square"] = "square";
|
|
1155
|
+
})(IdLayoutStyle || (IdLayoutStyle = {}));
|
|
1156
|
+
|
|
1157
|
+
class IdCaptureOverlay extends DefaultSerializeable {
|
|
1158
|
+
static get idCaptureDefaults() {
|
|
1159
|
+
return FactoryMaker.getInstance('IdDefaults');
|
|
1160
|
+
}
|
|
1161
|
+
static withIdCapture(idCapture) {
|
|
1162
|
+
return IdCaptureOverlay.withIdCaptureForView(idCapture, null);
|
|
1163
|
+
}
|
|
1164
|
+
static withIdCaptureForView(idCapture, view) {
|
|
1165
|
+
const overlay = new IdCaptureOverlay();
|
|
1166
|
+
overlay.idCapture = idCapture;
|
|
1167
|
+
if (view) {
|
|
1168
|
+
view.addOverlay(overlay);
|
|
1169
|
+
}
|
|
1170
|
+
return overlay;
|
|
1171
|
+
}
|
|
1172
|
+
constructor() {
|
|
1173
|
+
super();
|
|
1174
|
+
this.type = 'idCapture';
|
|
1175
|
+
this._idLayout = IdLayout.Auto;
|
|
1176
|
+
this._idLayoutStyle = IdLayoutStyle.Rounded;
|
|
1177
|
+
this._idLayoutLineStyle = IdLayoutLineStyle.Light;
|
|
1178
|
+
this._defaultCapturedBrush = new Brush(IdCaptureOverlay.idCaptureDefaults.IdCapture.IdCaptureOverlayDefaults.defaultCapturedBrush.fillColor, IdCaptureOverlay.idCaptureDefaults.IdCapture.IdCaptureOverlayDefaults.defaultCapturedBrush.strokeColor, IdCaptureOverlay.idCaptureDefaults.IdCapture.IdCaptureOverlayDefaults.defaultCapturedBrush.strokeWidth);
|
|
1179
|
+
this._defaultLocalizedBrush = new Brush(IdCaptureOverlay.idCaptureDefaults.IdCapture.IdCaptureOverlayDefaults.defaultLocalizedBrush.fillColor, IdCaptureOverlay.idCaptureDefaults.IdCapture.IdCaptureOverlayDefaults.defaultLocalizedBrush.strokeColor, IdCaptureOverlay.idCaptureDefaults.IdCapture.IdCaptureOverlayDefaults.defaultLocalizedBrush.strokeWidth);
|
|
1180
|
+
this._defaultRejectedBrush = new Brush(IdCaptureOverlay.idCaptureDefaults.IdCapture.IdCaptureOverlayDefaults.defaultRejectedBrush.fillColor, IdCaptureOverlay.idCaptureDefaults.IdCapture.IdCaptureOverlayDefaults.defaultRejectedBrush.strokeColor, IdCaptureOverlay.idCaptureDefaults.IdCapture.IdCaptureOverlayDefaults.defaultRejectedBrush.strokeWidth);
|
|
1181
|
+
this._capturedBrush = this._defaultCapturedBrush;
|
|
1182
|
+
this._localizedBrush = this._defaultLocalizedBrush;
|
|
1183
|
+
this._rejectedBrush = this._defaultRejectedBrush;
|
|
1184
|
+
}
|
|
1185
|
+
setIdLayout(idLayout) {
|
|
1186
|
+
this._idLayout = idLayout;
|
|
1187
|
+
this.idCapture.didChange();
|
|
1188
|
+
}
|
|
1189
|
+
get idLayoutStyle() {
|
|
1190
|
+
return this._idLayoutStyle;
|
|
1191
|
+
}
|
|
1192
|
+
set idLayoutStyle(style) {
|
|
1193
|
+
this._idLayoutStyle = style;
|
|
1194
|
+
this.idCapture.didChange();
|
|
1195
|
+
}
|
|
1196
|
+
get idLayoutLineStyle() {
|
|
1197
|
+
return this._idLayoutLineStyle;
|
|
1198
|
+
}
|
|
1199
|
+
set idLayoutLineStyle(lineStyle) {
|
|
1200
|
+
this._idLayoutLineStyle = lineStyle;
|
|
1201
|
+
this.idCapture.didChange();
|
|
1202
|
+
}
|
|
1203
|
+
get capturedBrush() {
|
|
1204
|
+
return this._capturedBrush;
|
|
1205
|
+
}
|
|
1206
|
+
set capturedBrush(brush) {
|
|
1207
|
+
this._capturedBrush = brush;
|
|
1208
|
+
this.idCapture.didChange();
|
|
1209
|
+
}
|
|
1210
|
+
get localizedBrush() {
|
|
1211
|
+
return this._localizedBrush;
|
|
1212
|
+
}
|
|
1213
|
+
set localizedBrush(brush) {
|
|
1214
|
+
this._localizedBrush = brush;
|
|
1215
|
+
this.idCapture.didChange();
|
|
1216
|
+
}
|
|
1217
|
+
get rejectedBrush() {
|
|
1218
|
+
return this._rejectedBrush;
|
|
1219
|
+
}
|
|
1220
|
+
set rejectedBrush(brush) {
|
|
1221
|
+
this._rejectedBrush = brush;
|
|
1222
|
+
this.idCapture.didChange();
|
|
1223
|
+
}
|
|
1224
|
+
get defaultCapturedBrush() {
|
|
1225
|
+
return this._defaultCapturedBrush;
|
|
1226
|
+
}
|
|
1227
|
+
get defaultLocalizedBrush() {
|
|
1228
|
+
return this._defaultLocalizedBrush;
|
|
1229
|
+
}
|
|
1230
|
+
get defaultRejectedBrush() {
|
|
1231
|
+
return this._defaultRejectedBrush;
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
__decorate([
|
|
1235
|
+
ignoreFromSerialization
|
|
1236
|
+
], IdCaptureOverlay.prototype, "idCapture", void 0);
|
|
1237
|
+
__decorate([
|
|
1238
|
+
ignoreFromSerialization
|
|
1239
|
+
], IdCaptureOverlay.prototype, "view", void 0);
|
|
1240
|
+
__decorate([
|
|
1241
|
+
nameForSerialization('idLayout')
|
|
1242
|
+
], IdCaptureOverlay.prototype, "_idLayout", void 0);
|
|
1243
|
+
__decorate([
|
|
1244
|
+
nameForSerialization('idLayoutStyle')
|
|
1245
|
+
], IdCaptureOverlay.prototype, "_idLayoutStyle", void 0);
|
|
1246
|
+
__decorate([
|
|
1247
|
+
nameForSerialization('idLayoutLineStyle')
|
|
1248
|
+
], IdCaptureOverlay.prototype, "_idLayoutLineStyle", void 0);
|
|
1249
|
+
__decorate([
|
|
1250
|
+
nameForSerialization('capturedBrush')
|
|
1251
|
+
], IdCaptureOverlay.prototype, "_capturedBrush", void 0);
|
|
1252
|
+
__decorate([
|
|
1253
|
+
nameForSerialization('localizedBrush')
|
|
1254
|
+
], IdCaptureOverlay.prototype, "_localizedBrush", void 0);
|
|
1255
|
+
__decorate([
|
|
1256
|
+
nameForSerialization('rejectedBrush')
|
|
1257
|
+
], IdCaptureOverlay.prototype, "_rejectedBrush", void 0);
|
|
1258
|
+
__decorate([
|
|
1259
|
+
ignoreFromSerialization
|
|
1260
|
+
], IdCaptureOverlay, "idCaptureDefaults", null);
|
|
1261
|
+
|
|
1262
|
+
class IdCaptureSettings extends DefaultSerializeable {
|
|
1263
|
+
constructor() {
|
|
1264
|
+
super();
|
|
1265
|
+
this.properties = {};
|
|
1266
|
+
this.imageToResult = {};
|
|
1267
|
+
this.supportedDocuments = [];
|
|
1268
|
+
this.supportedSides = SupportedSides.FrontOnly;
|
|
1269
|
+
this.anonymizationMode = IdCaptureSettings.idCaptureDefaults.IdCapture.IdCaptureSettings.anonymizationMode;
|
|
1270
|
+
}
|
|
1271
|
+
static get idCaptureDefaults() {
|
|
1272
|
+
return FactoryMaker.getInstance('IdDefaults');
|
|
1273
|
+
}
|
|
1274
|
+
setProperty(name, value) {
|
|
1275
|
+
this.properties[name] = value;
|
|
1276
|
+
}
|
|
1277
|
+
getProperty(name) {
|
|
1278
|
+
return this.properties[name];
|
|
1279
|
+
}
|
|
1280
|
+
setShouldPassImageTypeToResult(type, shouldPass) {
|
|
1281
|
+
this.imageToResult[type] = shouldPass;
|
|
1282
|
+
}
|
|
1283
|
+
getShouldPassImageTypeToResult(type) {
|
|
1284
|
+
return this.imageToResult[type] || false;
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
__decorate([
|
|
1288
|
+
ignoreFromSerialization
|
|
1289
|
+
], IdCaptureSettings, "idCaptureDefaults", null);
|
|
1290
|
+
|
|
1291
|
+
class AamvaBarcodeVerifier {
|
|
1292
|
+
constructor() {
|
|
1293
|
+
this.controller = new IdCaptureController();
|
|
1294
|
+
}
|
|
1295
|
+
static create(context) {
|
|
1296
|
+
const verifier = new AamvaBarcodeVerifier();
|
|
1297
|
+
return new Promise((resolve, reject) => {
|
|
1298
|
+
verifier
|
|
1299
|
+
.controller
|
|
1300
|
+
.createContextForBarcodeVerification(context)
|
|
1301
|
+
.then(() => {
|
|
1302
|
+
verifier.context = context;
|
|
1303
|
+
resolve(verifier);
|
|
1304
|
+
}, reject);
|
|
1305
|
+
});
|
|
1306
|
+
}
|
|
1307
|
+
verify(capturedId) {
|
|
1308
|
+
// Necessary for not exposing internal API on CapturedId, while only passing the private "json" property
|
|
1309
|
+
// to native iOS and Android.
|
|
1310
|
+
const capturedIdAsString = JSON.stringify(capturedId);
|
|
1311
|
+
const capturedIdJsonData = JSON.parse(capturedIdAsString).json;
|
|
1312
|
+
return new Promise((resolve, reject) => {
|
|
1313
|
+
this.controller
|
|
1314
|
+
.verifyCapturedIdAsync(JSON.stringify(capturedIdJsonData))
|
|
1315
|
+
.then((json) => {
|
|
1316
|
+
if (!json) {
|
|
1317
|
+
resolve(AamvaBarcodeVerificationResult
|
|
1318
|
+
.fromJSON(JSON.parse('{}')));
|
|
1319
|
+
}
|
|
1320
|
+
else {
|
|
1321
|
+
resolve(AamvaBarcodeVerificationResult
|
|
1322
|
+
.fromJSON(JSON.parse(json)));
|
|
1323
|
+
}
|
|
1324
|
+
}, reject);
|
|
1325
|
+
});
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
__decorate([
|
|
1329
|
+
ignoreFromSerialization
|
|
1330
|
+
], AamvaBarcodeVerifier.prototype, "controller", void 0);
|
|
1331
|
+
|
|
1332
|
+
class AamvaVizBarcodeComparisonResult {
|
|
1333
|
+
get checksPassed() { return this.json.checksPassed; }
|
|
1334
|
+
get resultDescription() { return this.json.resultDescription; }
|
|
1335
|
+
get issuingCountryIsoMatch() {
|
|
1336
|
+
return StringComparisonCheck
|
|
1337
|
+
.fromJSON(this.json.issuingCountryIsoMatch);
|
|
1338
|
+
}
|
|
1339
|
+
get issuingJurisdictionIsoMatch() {
|
|
1340
|
+
return StringComparisonCheck
|
|
1341
|
+
.fromJSON(this.json.issuingJurisdictionIsoMatch);
|
|
1342
|
+
}
|
|
1343
|
+
get documentNumbersMatch() {
|
|
1344
|
+
return StringComparisonCheck
|
|
1345
|
+
.fromJSON(this.json.documentNumbersMatch);
|
|
1346
|
+
}
|
|
1347
|
+
get fullNamesMatch() {
|
|
1348
|
+
return StringComparisonCheck
|
|
1349
|
+
.fromJSON(this.json.fullNamesMatch);
|
|
1350
|
+
}
|
|
1351
|
+
get datesOfBirthMatch() {
|
|
1352
|
+
return DateComparisonCheck
|
|
1353
|
+
.fromJSON(this.json.datesOfBirth);
|
|
1354
|
+
}
|
|
1355
|
+
get datesOfExpiryMatch() {
|
|
1356
|
+
return DateComparisonCheck
|
|
1357
|
+
.fromJSON(this.json.datesOfExpiry);
|
|
1358
|
+
}
|
|
1359
|
+
get datesOfIssueMatch() {
|
|
1360
|
+
return DateComparisonCheck
|
|
1361
|
+
.fromJSON(this.json.datesOfIssue);
|
|
1362
|
+
}
|
|
1363
|
+
static fromJSON(json) {
|
|
1364
|
+
const result = new AamvaVizBarcodeComparisonResult();
|
|
1365
|
+
result.json = json;
|
|
1366
|
+
return result;
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
class AamvaVizBarcodeComparisonVerifier {
|
|
1371
|
+
constructor() {
|
|
1372
|
+
this.controller = new IdCaptureController();
|
|
1373
|
+
}
|
|
1374
|
+
static create() {
|
|
1375
|
+
return new AamvaVizBarcodeComparisonVerifier();
|
|
1376
|
+
}
|
|
1377
|
+
verify(capturedId) {
|
|
1378
|
+
// Necessary for not exposing internal API on CapturedId, while only passing the private "json" property
|
|
1379
|
+
// to native iOS and Android.
|
|
1380
|
+
const capturedIdAsString = JSON.stringify(capturedId);
|
|
1381
|
+
const capturedIdJsonData = JSON.parse(capturedIdAsString).json;
|
|
1382
|
+
return new Promise((resolve, reject) => {
|
|
1383
|
+
this.controller
|
|
1384
|
+
.verifyCapturedId(JSON.stringify(capturedIdJsonData))
|
|
1385
|
+
.then((json) => {
|
|
1386
|
+
if (!json) {
|
|
1387
|
+
resolve(AamvaVizBarcodeComparisonResult
|
|
1388
|
+
.fromJSON(JSON.parse('{}')));
|
|
1389
|
+
}
|
|
1390
|
+
else {
|
|
1391
|
+
resolve(AamvaVizBarcodeComparisonResult
|
|
1392
|
+
.fromJSON(JSON.parse(json)));
|
|
1393
|
+
}
|
|
1394
|
+
}, reject);
|
|
1395
|
+
});
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
__decorate([
|
|
1399
|
+
ignoreFromSerialization
|
|
1400
|
+
], AamvaVizBarcodeComparisonVerifier.prototype, "controller", void 0);
|
|
1401
|
+
|
|
1402
|
+
var CapturedResultType;
|
|
1403
|
+
(function (CapturedResultType) {
|
|
1404
|
+
CapturedResultType["AAMVABarcodeResult"] = "aamvaBarcodeResult";
|
|
1405
|
+
CapturedResultType["ArgentinaIdBarcodeResult"] = "argentinaIdBarcodeResult";
|
|
1406
|
+
CapturedResultType["ColombiaIdBarcodeResult"] = "colombiaIdBarcodeResult";
|
|
1407
|
+
CapturedResultType["ColombiaDlBarcodeResult"] = "colombiaDlBarcodeResult";
|
|
1408
|
+
CapturedResultType["MRZResult"] = "mrzResult";
|
|
1409
|
+
CapturedResultType["SouthAfricaDlBarcodeResult"] = "southAfricaDlBarcodeResult";
|
|
1410
|
+
CapturedResultType["SouthAfricaIdBarcodeResult"] = "southAfricaIdBarcodeResult";
|
|
1411
|
+
CapturedResultType["CommonAccessCardBarcodeResult"] = "commonAccessCardBarcodeResult";
|
|
1412
|
+
CapturedResultType["USUniformedServicesBarcodeResult"] = "usUniformedServicesBarcodeResult";
|
|
1413
|
+
CapturedResultType["USVisaVIZResult"] = "usVisaVizResult";
|
|
1414
|
+
CapturedResultType["VIZResult"] = "vizResult";
|
|
1415
|
+
CapturedResultType["ChinaMainlandTravelPermitMRZResult"] = "chinaMainlandTravelPermitMrzResult";
|
|
1416
|
+
CapturedResultType["ChinaExitEntryPermitMRZResult"] = "chinaExitEntryPermitMrzResult";
|
|
1417
|
+
CapturedResultType["ChinaOneWayPermitBackMrzResult"] = "chinaOneWayPermitBackMrzResult";
|
|
1418
|
+
CapturedResultType["ChinaOneWayPermitFrontMrzResult"] = "chinaOneWayPermitFrontMrzResult";
|
|
1419
|
+
CapturedResultType["ApecBusinessTravelCardMrzResult"] = "apecBusinessTravelCardMrzResult";
|
|
1420
|
+
})(CapturedResultType || (CapturedResultType = {}));
|
|
1421
|
+
|
|
1422
|
+
var DocumentType;
|
|
1423
|
+
(function (DocumentType) {
|
|
1424
|
+
DocumentType["None"] = "none";
|
|
1425
|
+
DocumentType["ConsularId"] = "consularId";
|
|
1426
|
+
DocumentType["DrivingLicense"] = "drivingLicense";
|
|
1427
|
+
DocumentType["DrivingLicensePublicServicesCard"] = "drivingLicensePublicServicesCard";
|
|
1428
|
+
DocumentType["EmploymentPass"] = "employmentPass";
|
|
1429
|
+
DocumentType["FinCard"] = "finCard";
|
|
1430
|
+
DocumentType["Id"] = "id";
|
|
1431
|
+
DocumentType["MultipurposeId"] = "multipurposeId";
|
|
1432
|
+
DocumentType["MyKad"] = "myKad";
|
|
1433
|
+
DocumentType["MyKid"] = "myKid";
|
|
1434
|
+
DocumentType["MyPR"] = "myPr";
|
|
1435
|
+
DocumentType["MyTentera"] = "myTentera";
|
|
1436
|
+
DocumentType["PanCard"] = "panCard";
|
|
1437
|
+
DocumentType["ProfessionalId"] = "professionalId";
|
|
1438
|
+
DocumentType["PublicServicesCard"] = "publicServicesCard";
|
|
1439
|
+
DocumentType["ResidencePermit"] = "residencePermit";
|
|
1440
|
+
DocumentType["ResidentId"] = "residentId";
|
|
1441
|
+
DocumentType["TemporaryResidencePermit"] = "temporaryResidencePermit";
|
|
1442
|
+
DocumentType["VoterId"] = "voterId";
|
|
1443
|
+
DocumentType["WorkPermit"] = "workPermit";
|
|
1444
|
+
DocumentType["IKad"] = "iKad";
|
|
1445
|
+
DocumentType["MilitaryId"] = "militaryId";
|
|
1446
|
+
DocumentType["MyKas"] = "myKas";
|
|
1447
|
+
DocumentType["SocialSecurityCard"] = "socialSecurityCard";
|
|
1448
|
+
DocumentType["HealthInsuranceCard"] = "healthInsuranceCard";
|
|
1449
|
+
DocumentType["Passport"] = "passport";
|
|
1450
|
+
DocumentType["DiplomaticPassport"] = "diplomaticPassport";
|
|
1451
|
+
DocumentType["ServicePassport"] = "servicePassport";
|
|
1452
|
+
DocumentType["TemporaryPassport"] = "temporaryPassport";
|
|
1453
|
+
DocumentType["Visa"] = "visa";
|
|
1454
|
+
DocumentType["SPass"] = "sPass";
|
|
1455
|
+
DocumentType["AddressCard"] = "addressCard";
|
|
1456
|
+
DocumentType["AlienId"] = "alienId";
|
|
1457
|
+
DocumentType["AlienPassport"] = "alienPassport";
|
|
1458
|
+
DocumentType["GreenCard"] = "greenCard";
|
|
1459
|
+
DocumentType["MinorsId"] = "minorsId";
|
|
1460
|
+
DocumentType["PostalId"] = "postalId";
|
|
1461
|
+
DocumentType["ProfessionalDl"] = "professionalDl";
|
|
1462
|
+
DocumentType["TaxId"] = "taxId";
|
|
1463
|
+
DocumentType["WeaponPermit"] = "weaponPermit";
|
|
1464
|
+
DocumentType["BorderCrossingCard"] = "borderCrossingCard";
|
|
1465
|
+
DocumentType["DriverCard"] = "driverCard";
|
|
1466
|
+
DocumentType["GlobalEntryCard"] = "globalEntryCard";
|
|
1467
|
+
DocumentType["MyPolis"] = "myPolis";
|
|
1468
|
+
DocumentType["NexusCard"] = "nexusCard";
|
|
1469
|
+
DocumentType["PassportCard"] = "passportCard";
|
|
1470
|
+
DocumentType["ProofOfAgeCard"] = "proofOfAgeCard";
|
|
1471
|
+
DocumentType["RefugeeId"] = "refugeeId";
|
|
1472
|
+
DocumentType["TribalId"] = "tribalId";
|
|
1473
|
+
DocumentType["VeteranId"] = "veteranId";
|
|
1474
|
+
DocumentType["CitizenshipCertificate"] = "citizenshipCertificate";
|
|
1475
|
+
DocumentType["MyNumberCard"] = "myNumberCard";
|
|
1476
|
+
DocumentType["MinorsPassport"] = "minorsPassport";
|
|
1477
|
+
DocumentType["MinorsPublicServicesCard"] = "minorsPublicServicesCard";
|
|
1478
|
+
DocumentType["AsylumRequest"] = "asylumRequest";
|
|
1479
|
+
DocumentType["DriverQualificationCard"] = "driverQualificationCard";
|
|
1480
|
+
DocumentType["ProvisionalDl"] = "provisionalDl";
|
|
1481
|
+
DocumentType["RefugeePassport"] = "refugeePassport";
|
|
1482
|
+
DocumentType["SpecialId"] = "specialId";
|
|
1483
|
+
DocumentType["UniformedServicesId"] = "uniformedServicesId";
|
|
1484
|
+
})(DocumentType || (DocumentType = {}));
|
|
1485
|
+
|
|
1486
|
+
export { AAMVABarcodeResult, AamvaBarcodeVerificationResult, AamvaBarcodeVerifier, AamvaVizBarcodeComparisonResult, AamvaVizBarcodeComparisonVerifier, ApecBusinessTravelCardMrzResult, ArgentinaIdBarcodeResult, CapturedId, CapturedResultType, ChinaExitEntryPermitMRZResult, ChinaMainlandTravelPermitMRZResult, ChinaOneWayPermitBackMrzResult, ChinaOneWayPermitFrontMrzResult, ColombiaDlBarcodeResult, ColombiaIdBarcodeResult, CommonAccessCardBarcodeResult, CommonCapturedIdFields, ComparisonCheckResult, DateComparisonCheck, DateResult, DocumentType, IdAnonymizationMode, IdCapture, IdCaptureController, IdCaptureError, IdCaptureFeedback, IdCaptureListenerController, IdCaptureListenerEvents, IdCaptureOverlay, IdCaptureSession, IdCaptureSettings, IdDocumentType, IdImageType, IdLayout, IdLayoutLineStyle, IdLayoutStyle, LocalizedOnlyId, MRZResult, ProfessionalDrivingPermit, RejectedId, SouthAfricaDlBarcodeResult, SouthAfricaIdBarcodeResult, StringComparisonCheck, SupportedSides, USUniformedServicesBarcodeResult, USVisaVIZResult, VIZResult, VehicleRestriction, getIdDefaults, loadIdDefaults, parseIdDefaults };
|
|
1487
|
+
//# sourceMappingURL=index.js.map
|