scandit-react-native-datacapture-id 6.28.1 → 7.0.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/README.md +3 -1
- package/THIRD_PARTY.txt +296 -53
- package/{THIRD_PARTY_OCR.txt → THIRD_PARTY_ID.txt} +103 -65
- package/android/build.gradle +1 -1
- package/android/src/main/kotlin/com/scandit/datacapture/reactnative/id/ScanditDataCaptureIdModule.kt +0 -20
- package/dist/dts/index.d.ts +7 -3
- package/dist/dts/native/IdCaptureListenerProxy.d.ts +0 -2
- package/dist/dts/native/IdCaptureProxy.d.ts +0 -2
- package/dist/id.js +1134 -949
- package/dist/id.js.map +1 -1
- package/dist/index.js +1 -20
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/ios/Sources/ScanditDataCaptureId.m +0 -10
- package/ios/Sources/ScanditDataCaptureId.swift +0 -26
- package/package.json +4 -4
- package/scandit-react-native-datacapture-id.podspec +2 -2
- package/dist/dts/private/PrivateIdCapture.d.ts +0 -11
- package/dist/dts/private/PrivateIdCaptureSession.d.ts +0 -8
package/dist/id.js
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import { nameForSerialization,
|
|
2
|
-
|
|
3
|
-
var ComparisonCheckResult;
|
|
4
|
-
(function (ComparisonCheckResult) {
|
|
5
|
-
ComparisonCheckResult["Passed"] = "passed";
|
|
6
|
-
ComparisonCheckResult["Skipped"] = "skipped";
|
|
7
|
-
ComparisonCheckResult["Failed"] = "failed";
|
|
8
|
-
})(ComparisonCheckResult || (ComparisonCheckResult = {}));
|
|
1
|
+
import { nameForSerialization, FactoryMaker, Feedback, CameraSettings, Color, BaseController, DefaultSerializeable, ignoreFromSerialization, Brush } from 'scandit-react-native-datacapture-core/dist/core';
|
|
9
2
|
|
|
10
3
|
class DateResult {
|
|
11
4
|
get day() { return this.json.day; }
|
|
@@ -27,22 +20,6 @@ class DateResult {
|
|
|
27
20
|
}
|
|
28
21
|
}
|
|
29
22
|
|
|
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
23
|
var IdAnonymizationMode;
|
|
47
24
|
(function (IdAnonymizationMode) {
|
|
48
25
|
IdAnonymizationMode["None"] = "none";
|
|
@@ -51,80 +28,18 @@ var IdAnonymizationMode;
|
|
|
51
28
|
IdAnonymizationMode["FieldsAndImages"] = "fieldsAndImages";
|
|
52
29
|
})(IdAnonymizationMode || (IdAnonymizationMode = {}));
|
|
53
30
|
|
|
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
31
|
var IdImageType;
|
|
79
32
|
(function (IdImageType) {
|
|
80
33
|
IdImageType["Face"] = "face";
|
|
81
|
-
IdImageType["
|
|
82
|
-
IdImageType["
|
|
34
|
+
IdImageType["CroppedDocument"] = "croppedDocument";
|
|
35
|
+
IdImageType["Frame"] = "frame";
|
|
83
36
|
})(IdImageType || (IdImageType = {}));
|
|
84
37
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
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
|
-
get rejectionReason() {
|
|
101
|
-
return this._rejectionReason;
|
|
102
|
-
}
|
|
103
|
-
static fromJSON(json) {
|
|
104
|
-
const result = new RejectedId();
|
|
105
|
-
result._location = Quadrilateral.fromJSON(json.location);
|
|
106
|
-
result._rejectionReason = json.rejectionReason;
|
|
107
|
-
return result;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
class StringComparisonCheck {
|
|
112
|
-
get vizValue() { return this.json.vizValue; }
|
|
113
|
-
get aamvaBarcodeValue() { return this.json.aamvaBarcodeValue; }
|
|
114
|
-
get checkResult() { return this.json.checkResult; }
|
|
115
|
-
get resultDescription() { return this.json.resultDescription; }
|
|
116
|
-
static fromJSON(json) {
|
|
117
|
-
const result = new StringComparisonCheck();
|
|
118
|
-
result.json = json;
|
|
119
|
-
return result;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
var SupportedSides;
|
|
124
|
-
(function (SupportedSides) {
|
|
125
|
-
SupportedSides["FrontOnly"] = "frontOnly";
|
|
126
|
-
SupportedSides["FrontAndBack"] = "frontAndBack";
|
|
127
|
-
})(SupportedSides || (SupportedSides = {}));
|
|
38
|
+
var CapturedSides;
|
|
39
|
+
(function (CapturedSides) {
|
|
40
|
+
CapturedSides["FrontOnly"] = "frontOnly";
|
|
41
|
+
CapturedSides["FrontAndBack"] = "frontAndBack";
|
|
42
|
+
})(CapturedSides || (CapturedSides = {}));
|
|
128
43
|
|
|
129
44
|
var TextHintPosition;
|
|
130
45
|
(function (TextHintPosition) {
|
|
@@ -132,48 +47,378 @@ var TextHintPosition;
|
|
|
132
47
|
TextHintPosition["BelowViewfinder"] = "belowViewfinder";
|
|
133
48
|
})(TextHintPosition || (TextHintPosition = {}));
|
|
134
49
|
|
|
135
|
-
var
|
|
136
|
-
(function (
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
50
|
+
var RejectionReason;
|
|
51
|
+
(function (RejectionReason) {
|
|
52
|
+
RejectionReason["NotAcceptedDocumentType"] = "notAcceptedDocumentType";
|
|
53
|
+
RejectionReason["InvalidFormat"] = "invalidFormat";
|
|
54
|
+
RejectionReason["DocumentVoided"] = "documentVoided";
|
|
55
|
+
RejectionReason["Timeout"] = "timeout";
|
|
56
|
+
RejectionReason["SingleImageNotRecognized"] = "singleImageNotRecognized";
|
|
57
|
+
})(RejectionReason || (RejectionReason = {}));
|
|
141
58
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
59
|
+
var IdCaptureRegion;
|
|
60
|
+
(function (IdCaptureRegion) {
|
|
61
|
+
IdCaptureRegion["Any"] = "any";
|
|
62
|
+
IdCaptureRegion["EuAndSchengen"] = "euAndSchengen";
|
|
63
|
+
IdCaptureRegion["Aruba"] = "aruba";
|
|
64
|
+
IdCaptureRegion["Afghanistan"] = "afghanistan";
|
|
65
|
+
IdCaptureRegion["Angola"] = "angola";
|
|
66
|
+
IdCaptureRegion["Anguilla"] = "anguilla";
|
|
67
|
+
IdCaptureRegion["AlandIslands"] = "alandIslands";
|
|
68
|
+
IdCaptureRegion["Albania"] = "albania";
|
|
69
|
+
IdCaptureRegion["Andorra"] = "andorra";
|
|
70
|
+
IdCaptureRegion["Uae"] = "uae";
|
|
71
|
+
IdCaptureRegion["Argentina"] = "argentina";
|
|
72
|
+
IdCaptureRegion["Armenia"] = "armenia";
|
|
73
|
+
IdCaptureRegion["AmericanSamoa"] = "americanSamoa";
|
|
74
|
+
IdCaptureRegion["Antarctica"] = "antarctica";
|
|
75
|
+
IdCaptureRegion["FrenchSouthernTerritories"] = "frenchSouthernTerritories";
|
|
76
|
+
IdCaptureRegion["AntiguaAndBarbuda"] = "antiguaAndBarbuda";
|
|
77
|
+
IdCaptureRegion["Australia"] = "australia";
|
|
78
|
+
IdCaptureRegion["Austria"] = "austria";
|
|
79
|
+
IdCaptureRegion["Azerbaijan"] = "azerbaijan";
|
|
80
|
+
IdCaptureRegion["Burundi"] = "burundi";
|
|
81
|
+
IdCaptureRegion["Belgium"] = "belgium";
|
|
82
|
+
IdCaptureRegion["Benin"] = "benin";
|
|
83
|
+
IdCaptureRegion["BonaireSintEustatiusAndSaba"] = "bonaireSintEustatiusAndSaba";
|
|
84
|
+
IdCaptureRegion["BurkinaFaso"] = "burkinaFaso";
|
|
85
|
+
IdCaptureRegion["Bangladesh"] = "bangladesh";
|
|
86
|
+
IdCaptureRegion["Bulgaria"] = "bulgaria";
|
|
87
|
+
IdCaptureRegion["Bahrain"] = "bahrain";
|
|
88
|
+
IdCaptureRegion["Bahamas"] = "bahamas";
|
|
89
|
+
IdCaptureRegion["BosniaHerzegovina"] = "bosniaHerzegovina";
|
|
90
|
+
IdCaptureRegion["SaintBarthelemy"] = "saintBarthelemy";
|
|
91
|
+
IdCaptureRegion["Belarus"] = "belarus";
|
|
92
|
+
IdCaptureRegion["Belize"] = "belize";
|
|
93
|
+
IdCaptureRegion["Bermuda"] = "bermuda";
|
|
94
|
+
IdCaptureRegion["Bolivia"] = "bolivia";
|
|
95
|
+
IdCaptureRegion["Brazil"] = "brazil";
|
|
96
|
+
IdCaptureRegion["Barbados"] = "barbados";
|
|
97
|
+
IdCaptureRegion["BruneiDarussalam"] = "bruneiDarussalam";
|
|
98
|
+
IdCaptureRegion["Bhutan"] = "bhutan";
|
|
99
|
+
IdCaptureRegion["BouvetIsland"] = "bouvetIsland";
|
|
100
|
+
IdCaptureRegion["Botswana"] = "botswana";
|
|
101
|
+
IdCaptureRegion["Car"] = "car";
|
|
102
|
+
IdCaptureRegion["Canada"] = "canada";
|
|
103
|
+
IdCaptureRegion["CocosIslands"] = "cocosIslands";
|
|
104
|
+
IdCaptureRegion["Switzerland"] = "switzerland";
|
|
105
|
+
IdCaptureRegion["Chile"] = "chile";
|
|
106
|
+
IdCaptureRegion["China"] = "china";
|
|
107
|
+
IdCaptureRegion["CoteIvoire"] = "coteIvoire";
|
|
108
|
+
IdCaptureRegion["Cameroon"] = "cameroon";
|
|
109
|
+
IdCaptureRegion["DemocraticRepublicOfCongo"] = "democraticRepublicOfCongo";
|
|
110
|
+
IdCaptureRegion["Congo"] = "congo";
|
|
111
|
+
IdCaptureRegion["CookIslands"] = "cookIslands";
|
|
112
|
+
IdCaptureRegion["Colombia"] = "colombia";
|
|
113
|
+
IdCaptureRegion["Comoros"] = "comoros";
|
|
114
|
+
IdCaptureRegion["CaboVerde"] = "caboVerde";
|
|
115
|
+
IdCaptureRegion["CostaRica"] = "costaRica";
|
|
116
|
+
IdCaptureRegion["Cuba"] = "cuba";
|
|
117
|
+
IdCaptureRegion["Curacao"] = "curacao";
|
|
118
|
+
IdCaptureRegion["ChristmasIsland"] = "christmasIsland";
|
|
119
|
+
IdCaptureRegion["CaymanIslands"] = "caymanIslands";
|
|
120
|
+
IdCaptureRegion["Cyprus"] = "cyprus";
|
|
121
|
+
IdCaptureRegion["Czechia"] = "czechia";
|
|
122
|
+
IdCaptureRegion["Germany"] = "germany";
|
|
123
|
+
IdCaptureRegion["Djibouti"] = "djibouti";
|
|
124
|
+
IdCaptureRegion["Dominica"] = "dominica";
|
|
125
|
+
IdCaptureRegion["Denmark"] = "denmark";
|
|
126
|
+
IdCaptureRegion["DominicanRepublic"] = "dominicanRepublic";
|
|
127
|
+
IdCaptureRegion["Algeria"] = "algeria";
|
|
128
|
+
IdCaptureRegion["Ecuador"] = "ecuador";
|
|
129
|
+
IdCaptureRegion["Egypt"] = "egypt";
|
|
130
|
+
IdCaptureRegion["Eritrea"] = "eritrea";
|
|
131
|
+
IdCaptureRegion["WesternSahara"] = "westernSahara";
|
|
132
|
+
IdCaptureRegion["Spain"] = "spain";
|
|
133
|
+
IdCaptureRegion["Estonia"] = "estonia";
|
|
134
|
+
IdCaptureRegion["Ethiopia"] = "ethiopia";
|
|
135
|
+
IdCaptureRegion["Finland"] = "finland";
|
|
136
|
+
IdCaptureRegion["Fiji"] = "fiji";
|
|
137
|
+
IdCaptureRegion["FalklandIslands"] = "falklandIslands";
|
|
138
|
+
IdCaptureRegion["France"] = "france";
|
|
139
|
+
IdCaptureRegion["FaroeIslands"] = "faroeIslands";
|
|
140
|
+
IdCaptureRegion["Micronesia"] = "micronesia";
|
|
141
|
+
IdCaptureRegion["Gabon"] = "gabon";
|
|
142
|
+
IdCaptureRegion["Uk"] = "uk";
|
|
143
|
+
IdCaptureRegion["Georgia"] = "georgia";
|
|
144
|
+
IdCaptureRegion["Guernsey"] = "guernsey";
|
|
145
|
+
IdCaptureRegion["Ghana"] = "ghana";
|
|
146
|
+
IdCaptureRegion["Gibraltar"] = "gibraltar";
|
|
147
|
+
IdCaptureRegion["Guinea"] = "guinea";
|
|
148
|
+
IdCaptureRegion["Guadeloupe"] = "guadeloupe";
|
|
149
|
+
IdCaptureRegion["Gambia"] = "gambia";
|
|
150
|
+
IdCaptureRegion["GuineaBissau"] = "guineaBissau";
|
|
151
|
+
IdCaptureRegion["EquatorialGuinea"] = "equatorialGuinea";
|
|
152
|
+
IdCaptureRegion["Greece"] = "greece";
|
|
153
|
+
IdCaptureRegion["Grenada"] = "grenada";
|
|
154
|
+
IdCaptureRegion["Greenland"] = "greenland";
|
|
155
|
+
IdCaptureRegion["Guatemala"] = "guatemala";
|
|
156
|
+
IdCaptureRegion["FrenchGuiana"] = "frenchGuiana";
|
|
157
|
+
IdCaptureRegion["Guam"] = "guam";
|
|
158
|
+
IdCaptureRegion["Guyana"] = "guyana";
|
|
159
|
+
IdCaptureRegion["HongKong"] = "hongKong";
|
|
160
|
+
IdCaptureRegion["HeardIslandAndMcDonaldIslands"] = "heardIslandAndMcDonaldIslands";
|
|
161
|
+
IdCaptureRegion["Honduras"] = "honduras";
|
|
162
|
+
IdCaptureRegion["Croatia"] = "croatia";
|
|
163
|
+
IdCaptureRegion["Haiti"] = "haiti";
|
|
164
|
+
IdCaptureRegion["Hungary"] = "hungary";
|
|
165
|
+
IdCaptureRegion["Indonesia"] = "indonesia";
|
|
166
|
+
IdCaptureRegion["IsleOfMan"] = "isleOfMan";
|
|
167
|
+
IdCaptureRegion["India"] = "india";
|
|
168
|
+
IdCaptureRegion["BritishIndianOceanTerritory"] = "britishIndianOceanTerritory";
|
|
169
|
+
IdCaptureRegion["Ireland"] = "ireland";
|
|
170
|
+
IdCaptureRegion["Iran"] = "iran";
|
|
171
|
+
IdCaptureRegion["Iraq"] = "iraq";
|
|
172
|
+
IdCaptureRegion["Iceland"] = "iceland";
|
|
173
|
+
IdCaptureRegion["Israel"] = "israel";
|
|
174
|
+
IdCaptureRegion["Italy"] = "italy";
|
|
175
|
+
IdCaptureRegion["Jamaica"] = "jamaica";
|
|
176
|
+
IdCaptureRegion["Jersey"] = "jersey";
|
|
177
|
+
IdCaptureRegion["Jordan"] = "jordan";
|
|
178
|
+
IdCaptureRegion["Japan"] = "japan";
|
|
179
|
+
IdCaptureRegion["Kazakhstan"] = "kazakhstan";
|
|
180
|
+
IdCaptureRegion["Kenya"] = "kenya";
|
|
181
|
+
IdCaptureRegion["Kyrgyzstan"] = "kyrgyzstan";
|
|
182
|
+
IdCaptureRegion["Cambodia"] = "cambodia";
|
|
183
|
+
IdCaptureRegion["Kiribati"] = "kiribati";
|
|
184
|
+
IdCaptureRegion["SaintKittsAndNevis"] = "saintKittsAndNevis";
|
|
185
|
+
IdCaptureRegion["SouthKorea"] = "southKorea";
|
|
186
|
+
IdCaptureRegion["Kuwait"] = "kuwait";
|
|
187
|
+
IdCaptureRegion["Lao"] = "lao";
|
|
188
|
+
IdCaptureRegion["Lebanon"] = "lebanon";
|
|
189
|
+
IdCaptureRegion["Liberia"] = "liberia";
|
|
190
|
+
IdCaptureRegion["Libya"] = "libya";
|
|
191
|
+
IdCaptureRegion["SaintLucia"] = "saintLucia";
|
|
192
|
+
IdCaptureRegion["Liechtenstein"] = "liechtenstein";
|
|
193
|
+
IdCaptureRegion["SriLanka"] = "sriLanka";
|
|
194
|
+
IdCaptureRegion["Lesotho"] = "lesotho";
|
|
195
|
+
IdCaptureRegion["Lithuania"] = "lithuania";
|
|
196
|
+
IdCaptureRegion["Luxembourg"] = "luxembourg";
|
|
197
|
+
IdCaptureRegion["Latvia"] = "latvia";
|
|
198
|
+
IdCaptureRegion["Macao"] = "macao";
|
|
199
|
+
IdCaptureRegion["FrenchSaintMartin"] = "frenchSaintMartin";
|
|
200
|
+
IdCaptureRegion["Morocco"] = "morocco";
|
|
201
|
+
IdCaptureRegion["Monaco"] = "monaco";
|
|
202
|
+
IdCaptureRegion["Moldova"] = "moldova";
|
|
203
|
+
IdCaptureRegion["Madagascar"] = "madagascar";
|
|
204
|
+
IdCaptureRegion["Maldives"] = "maldives";
|
|
205
|
+
IdCaptureRegion["Mexico"] = "mexico";
|
|
206
|
+
IdCaptureRegion["MarshallIslands"] = "marshallIslands";
|
|
207
|
+
IdCaptureRegion["NorthMacedonia"] = "northMacedonia";
|
|
208
|
+
IdCaptureRegion["Mali"] = "mali";
|
|
209
|
+
IdCaptureRegion["Malta"] = "malta";
|
|
210
|
+
IdCaptureRegion["Myanmar"] = "myanmar";
|
|
211
|
+
IdCaptureRegion["Montenegro"] = "montenegro";
|
|
212
|
+
IdCaptureRegion["Mongolia"] = "mongolia";
|
|
213
|
+
IdCaptureRegion["NorthernMarianaIslands"] = "northernMarianaIslands";
|
|
214
|
+
IdCaptureRegion["Mozambique"] = "mozambique";
|
|
215
|
+
IdCaptureRegion["Mauritania"] = "mauritania";
|
|
216
|
+
IdCaptureRegion["Montserrat"] = "montserrat";
|
|
217
|
+
IdCaptureRegion["Martinique"] = "martinique";
|
|
218
|
+
IdCaptureRegion["Mauritius"] = "mauritius";
|
|
219
|
+
IdCaptureRegion["Malawi"] = "malawi";
|
|
220
|
+
IdCaptureRegion["Malaysia"] = "malaysia";
|
|
221
|
+
IdCaptureRegion["Mayotte"] = "mayotte";
|
|
222
|
+
IdCaptureRegion["Namibia"] = "namibia";
|
|
223
|
+
IdCaptureRegion["NewCaledonia"] = "newCaledonia";
|
|
224
|
+
IdCaptureRegion["Niger"] = "niger";
|
|
225
|
+
IdCaptureRegion["NorfolkIsland"] = "norfolkIsland";
|
|
226
|
+
IdCaptureRegion["Nigeria"] = "nigeria";
|
|
227
|
+
IdCaptureRegion["Nicaragua"] = "nicaragua";
|
|
228
|
+
IdCaptureRegion["Niue"] = "niue";
|
|
229
|
+
IdCaptureRegion["Netherlands"] = "netherlands";
|
|
230
|
+
IdCaptureRegion["Norway"] = "norway";
|
|
231
|
+
IdCaptureRegion["Nepal"] = "nepal";
|
|
232
|
+
IdCaptureRegion["Nauru"] = "nauru";
|
|
233
|
+
IdCaptureRegion["NewZealand"] = "newZealand";
|
|
234
|
+
IdCaptureRegion["Oman"] = "oman";
|
|
235
|
+
IdCaptureRegion["Pakistan"] = "pakistan";
|
|
236
|
+
IdCaptureRegion["Panama"] = "panama";
|
|
237
|
+
IdCaptureRegion["Pitcairn"] = "pitcairn";
|
|
238
|
+
IdCaptureRegion["Peru"] = "peru";
|
|
239
|
+
IdCaptureRegion["Philippines"] = "philippines";
|
|
240
|
+
IdCaptureRegion["Palau"] = "palau";
|
|
241
|
+
IdCaptureRegion["PapuaNewGuinea"] = "papuaNewGuinea";
|
|
242
|
+
IdCaptureRegion["Poland"] = "poland";
|
|
243
|
+
IdCaptureRegion["PuertoRico"] = "puertoRico";
|
|
244
|
+
IdCaptureRegion["NorthKorea"] = "northKorea";
|
|
245
|
+
IdCaptureRegion["Portugal"] = "portugal";
|
|
246
|
+
IdCaptureRegion["Paraguay"] = "paraguay";
|
|
247
|
+
IdCaptureRegion["Palestine"] = "palestine";
|
|
248
|
+
IdCaptureRegion["FrenchPolynesia"] = "frenchPolynesia";
|
|
249
|
+
IdCaptureRegion["Qatar"] = "qatar";
|
|
250
|
+
IdCaptureRegion["Reunion"] = "reunion";
|
|
251
|
+
IdCaptureRegion["Romania"] = "romania";
|
|
252
|
+
IdCaptureRegion["Russia"] = "russia";
|
|
253
|
+
IdCaptureRegion["Rwanda"] = "rwanda";
|
|
254
|
+
IdCaptureRegion["SaudiArabia"] = "saudiArabia";
|
|
255
|
+
IdCaptureRegion["Sudan"] = "sudan";
|
|
256
|
+
IdCaptureRegion["Senegal"] = "senegal";
|
|
257
|
+
IdCaptureRegion["Singapore"] = "singapore";
|
|
258
|
+
IdCaptureRegion["SouthGeorgiaAndTheSouthSandwichIslands"] = "southGeorgiaAndTheSouthSandwichIslands";
|
|
259
|
+
IdCaptureRegion["SaintHelena"] = "saintHelena";
|
|
260
|
+
IdCaptureRegion["SvalbardAndJanMayen"] = "svalbardAndJanMayen";
|
|
261
|
+
IdCaptureRegion["SolomonIslands"] = "solomonIslands";
|
|
262
|
+
IdCaptureRegion["SierraLeone"] = "sierraLeone";
|
|
263
|
+
IdCaptureRegion["ElSalvador"] = "elSalvador";
|
|
264
|
+
IdCaptureRegion["SanMarino"] = "sanMarino";
|
|
265
|
+
IdCaptureRegion["Somalia"] = "somalia";
|
|
266
|
+
IdCaptureRegion["SaintPierreAndMiquelon"] = "saintPierreAndMiquelon";
|
|
267
|
+
IdCaptureRegion["Serbia"] = "serbia";
|
|
268
|
+
IdCaptureRegion["SouthSudan"] = "southSudan";
|
|
269
|
+
IdCaptureRegion["SaoTomeAndPrincipe"] = "saoTomeAndPrincipe";
|
|
270
|
+
IdCaptureRegion["Suriname"] = "suriname";
|
|
271
|
+
IdCaptureRegion["Slovakia"] = "slovakia";
|
|
272
|
+
IdCaptureRegion["Slovenia"] = "slovenia";
|
|
273
|
+
IdCaptureRegion["Sweden"] = "sweden";
|
|
274
|
+
IdCaptureRegion["Eswatini"] = "eswatini";
|
|
275
|
+
IdCaptureRegion["DutchSintMaarten"] = "dutchSintMaarten";
|
|
276
|
+
IdCaptureRegion["Seychelles"] = "seychelles";
|
|
277
|
+
IdCaptureRegion["Syria"] = "syria";
|
|
278
|
+
IdCaptureRegion["TurksAndCaicosIslands"] = "turksAndCaicosIslands";
|
|
279
|
+
IdCaptureRegion["Chad"] = "chad";
|
|
280
|
+
IdCaptureRegion["Togo"] = "togo";
|
|
281
|
+
IdCaptureRegion["Thailand"] = "thailand";
|
|
282
|
+
IdCaptureRegion["Tajikistan"] = "tajikistan";
|
|
283
|
+
IdCaptureRegion["Tokelau"] = "tokelau";
|
|
284
|
+
IdCaptureRegion["Turkmenistan"] = "turkmenistan";
|
|
285
|
+
IdCaptureRegion["TimorLeste"] = "timorLeste";
|
|
286
|
+
IdCaptureRegion["Tonga"] = "tonga";
|
|
287
|
+
IdCaptureRegion["TrinidadAndTobago"] = "trinidadAndTobago";
|
|
288
|
+
IdCaptureRegion["Tunisia"] = "tunisia";
|
|
289
|
+
IdCaptureRegion["Turkey"] = "turkey";
|
|
290
|
+
IdCaptureRegion["Tuvalu"] = "tuvalu";
|
|
291
|
+
IdCaptureRegion["Taiwan"] = "taiwan";
|
|
292
|
+
IdCaptureRegion["Tanzania"] = "tanzania";
|
|
293
|
+
IdCaptureRegion["Uganda"] = "uganda";
|
|
294
|
+
IdCaptureRegion["Ukraine"] = "ukraine";
|
|
295
|
+
IdCaptureRegion["UsMinorOutlyingIslands"] = "usMinorOutlyingIslands";
|
|
296
|
+
IdCaptureRegion["Uruguay"] = "uruguay";
|
|
297
|
+
IdCaptureRegion["Us"] = "us";
|
|
298
|
+
IdCaptureRegion["Uzbekistan"] = "uzbekistan";
|
|
299
|
+
IdCaptureRegion["HolySee"] = "holySee";
|
|
300
|
+
IdCaptureRegion["SaintVincentAndTheGrenadines"] = "saintVincentAndTheGrenadines";
|
|
301
|
+
IdCaptureRegion["Venezuela"] = "venezuela";
|
|
302
|
+
IdCaptureRegion["BritishVirginIslands"] = "britishVirginIslands";
|
|
303
|
+
IdCaptureRegion["UsVirginIslands"] = "usVirginIslands";
|
|
304
|
+
IdCaptureRegion["Vietnam"] = "vietnam";
|
|
305
|
+
IdCaptureRegion["Vanuatu"] = "vanuatu";
|
|
306
|
+
IdCaptureRegion["WallisAndFutuna"] = "wallisAndFutuna";
|
|
307
|
+
IdCaptureRegion["Samoa"] = "samoa";
|
|
308
|
+
IdCaptureRegion["Kosovo"] = "kosovo";
|
|
309
|
+
IdCaptureRegion["Yemen"] = "yemen";
|
|
310
|
+
IdCaptureRegion["SouthAfrica"] = "southAfrica";
|
|
311
|
+
IdCaptureRegion["Zambia"] = "zambia";
|
|
312
|
+
IdCaptureRegion["Zimbabwe"] = "zimbabwe";
|
|
313
|
+
})(IdCaptureRegion || (IdCaptureRegion = {}));
|
|
314
|
+
|
|
315
|
+
var RegionSpecificSubtype;
|
|
316
|
+
(function (RegionSpecificSubtype) {
|
|
317
|
+
RegionSpecificSubtype["UsBorderCrossingCard"] = "usBorderCrossingCard";
|
|
318
|
+
RegionSpecificSubtype["ChinaExitEntryPermit"] = "chinaExitEntryPermit";
|
|
319
|
+
RegionSpecificSubtype["UsGlobalEntryCard"] = "usGlobalEntryCard";
|
|
320
|
+
RegionSpecificSubtype["ChinaMainlandTravelPermitTaiwan"] = "chinaMainlandTravelPermitTaiwan";
|
|
321
|
+
RegionSpecificSubtype["UsNexusCard"] = "usNexusCard";
|
|
322
|
+
RegionSpecificSubtype["ChinaMainlandTravelPermitHongKongMacau"] = "chinaMainlandTravelPermitHongKongMacau";
|
|
323
|
+
RegionSpecificSubtype["ApecBusinessTravelCard"] = "apecBusinessTravelCard";
|
|
324
|
+
RegionSpecificSubtype["PakistanAfghanCitizenCard"] = "pakistanAfghanCitizenCard";
|
|
325
|
+
RegionSpecificSubtype["SingaporeFinCard"] = "singaporeFinCard";
|
|
326
|
+
RegionSpecificSubtype["UsGreenCard"] = "usGreenCard";
|
|
327
|
+
RegionSpecificSubtype["MalaysiaIkad"] = "malaysiaIkad";
|
|
328
|
+
RegionSpecificSubtype["MalaysiaMykad"] = "malaysiaMykad";
|
|
329
|
+
RegionSpecificSubtype["MalaysiaMypr"] = "malaysiaMypr";
|
|
330
|
+
RegionSpecificSubtype["MexicoConsularVoterId"] = "mexicoConsularVoterId";
|
|
331
|
+
RegionSpecificSubtype["GermanyEid"] = "germanyEid";
|
|
332
|
+
RegionSpecificSubtype["UsCommonAccessCard"] = "usCommonAccessCard";
|
|
333
|
+
RegionSpecificSubtype["PhilippinesMultipurposeId"] = "philippinesMultipurposeId";
|
|
334
|
+
RegionSpecificSubtype["MalaysiaMykas"] = "malaysiaMykas";
|
|
335
|
+
RegionSpecificSubtype["MalaysiaMykid"] = "malaysiaMykid";
|
|
336
|
+
RegionSpecificSubtype["MalaysiaMytentera"] = "malaysiaMytentera";
|
|
337
|
+
RegionSpecificSubtype["MexicoProfessionalId"] = "mexicoProfessionalId";
|
|
338
|
+
RegionSpecificSubtype["MalaysiaRefugeeId"] = "malaysiaRefugeeId";
|
|
339
|
+
RegionSpecificSubtype["CanadaTribalId"] = "canadaTribalId";
|
|
340
|
+
RegionSpecificSubtype["UsUniformedServicesId"] = "usUniformedServicesId";
|
|
341
|
+
RegionSpecificSubtype["UsVeteranId"] = "usVeteranId";
|
|
342
|
+
RegionSpecificSubtype["PhilippinesWorkPermit"] = "philippinesWorkPermit";
|
|
343
|
+
RegionSpecificSubtype["SingaporeWorkPermit"] = "singaporeWorkPermit";
|
|
344
|
+
RegionSpecificSubtype["UsWorkPermit"] = "usWorkPermit";
|
|
345
|
+
RegionSpecificSubtype["PhilippinesSocialSecurityCard"] = "philippinesSocialSecurityCard";
|
|
346
|
+
RegionSpecificSubtype["SwedenSocialSecurityCard"] = "swedenSocialSecurityCard";
|
|
347
|
+
RegionSpecificSubtype["CanadaSocialSecurityCard"] = "canadaSocialSecurityCard";
|
|
348
|
+
RegionSpecificSubtype["UsSocialSecurityCard"] = "usSocialSecurityCard";
|
|
349
|
+
RegionSpecificSubtype["BelgiumMinorsId"] = "belgiumMinorsId";
|
|
350
|
+
RegionSpecificSubtype["ColombiaMinorsId"] = "colombiaMinorsId";
|
|
351
|
+
RegionSpecificSubtype["PeruMinorsId"] = "peruMinorsId";
|
|
352
|
+
RegionSpecificSubtype["BoliviaMinorsId"] = "boliviaMinorsId";
|
|
353
|
+
RegionSpecificSubtype["HungaryAddressCard"] = "hungaryAddressCard";
|
|
354
|
+
RegionSpecificSubtype["UkAsylumRequest"] = "ukAsylumRequest";
|
|
355
|
+
RegionSpecificSubtype["CanadaCitizenshipCertificate"] = "canadaCitizenshipCertificate";
|
|
356
|
+
RegionSpecificSubtype["SingaporeEmploymentPass"] = "singaporeEmploymentPass";
|
|
357
|
+
RegionSpecificSubtype["CanadaMinorsPublicServicesCard"] = "canadaMinorsPublicServicesCard";
|
|
358
|
+
RegionSpecificSubtype["MalaysiaMypolis"] = "malaysiaMypolis";
|
|
359
|
+
RegionSpecificSubtype["PhilippinesNbiClearance"] = "philippinesNbiClearance";
|
|
360
|
+
RegionSpecificSubtype["IndiaPanCard"] = "indiaPanCard";
|
|
361
|
+
RegionSpecificSubtype["PhilippinesPostalId"] = "philippinesPostalId";
|
|
362
|
+
RegionSpecificSubtype["PakistanProofOfRegistration"] = "pakistanProofOfRegistration";
|
|
363
|
+
RegionSpecificSubtype["SingaporeSPass"] = "singaporeSPass";
|
|
364
|
+
RegionSpecificSubtype["SwedenSisId"] = "swedenSisId";
|
|
365
|
+
RegionSpecificSubtype["ColombiaTemporaryProtectionPermit"] = "colombiaTemporaryProtectionPermit";
|
|
366
|
+
RegionSpecificSubtype["UsTwicCard"] = "usTwicCard";
|
|
367
|
+
RegionSpecificSubtype["UsWeaponPermit"] = "usWeaponPermit";
|
|
368
|
+
RegionSpecificSubtype["CanadaWeaponPermit"] = "canadaWeaponPermit";
|
|
369
|
+
RegionSpecificSubtype["IrelandPublicServicesCard"] = "irelandPublicServicesCard";
|
|
370
|
+
RegionSpecificSubtype["CanadaPublicServicesCard"] = "canadaPublicServicesCard";
|
|
371
|
+
RegionSpecificSubtype["PakistanConsularId"] = "pakistanConsularId";
|
|
372
|
+
RegionSpecificSubtype["GuatemalaConsularId"] = "guatemalaConsularId";
|
|
373
|
+
RegionSpecificSubtype["MexicoConsularId"] = "mexicoConsularId";
|
|
374
|
+
RegionSpecificSubtype["PhilippinesTaxId"] = "philippinesTaxId";
|
|
375
|
+
RegionSpecificSubtype["MexicoTaxId"] = "mexicoTaxId";
|
|
376
|
+
RegionSpecificSubtype["ChinaOneWayPermit"] = "chinaOneWayPermit";
|
|
377
|
+
RegionSpecificSubtype["UsMedicalMarijuanaCard"] = "usMedicalMarijuanaCard";
|
|
378
|
+
RegionSpecificSubtype["UsMunicipalId"] = "usMunicipalId";
|
|
379
|
+
RegionSpecificSubtype["AustraliaAsicCard"] = "australiaAsicCard";
|
|
380
|
+
RegionSpecificSubtype["UaeVehicleRegistrationCard"] = "uaeVehicleRegistrationCard";
|
|
381
|
+
})(RegionSpecificSubtype || (RegionSpecificSubtype = {}));
|
|
382
|
+
|
|
383
|
+
var IdSide;
|
|
384
|
+
(function (IdSide) {
|
|
385
|
+
IdSide["Front"] = "front";
|
|
386
|
+
IdSide["Back"] = "back";
|
|
387
|
+
})(IdSide || (IdSide = {}));
|
|
388
|
+
|
|
389
|
+
class IdImages {
|
|
390
|
+
constructor() {
|
|
391
|
+
this.json = null;
|
|
392
|
+
}
|
|
393
|
+
get face() { var _a, _b, _c; return (_c = (_b = (_a = this.json) === null || _a === void 0 ? void 0 : _a.front) === null || _b === void 0 ? void 0 : _b.face) !== null && _c !== void 0 ? _c : null; }
|
|
394
|
+
get frame() { var _a, _b, _c; return (_c = (_b = (_a = this.json) === null || _a === void 0 ? void 0 : _a.front) === null || _b === void 0 ? void 0 : _b.frame) !== null && _c !== void 0 ? _c : null; }
|
|
395
|
+
getFrame(side) {
|
|
396
|
+
var _a, _b, _c, _d, _e, _f;
|
|
397
|
+
switch (side) {
|
|
398
|
+
case IdSide.Front:
|
|
399
|
+
return (_c = (_b = (_a = this.json) === null || _a === void 0 ? void 0 : _a.front) === null || _b === void 0 ? void 0 : _b.frame) !== null && _c !== void 0 ? _c : null;
|
|
400
|
+
case IdSide.Back:
|
|
401
|
+
return (_f = (_e = (_d = this.json) === null || _d === void 0 ? void 0 : _d.back) === null || _e === void 0 ? void 0 : _e.frame) !== null && _f !== void 0 ? _f : null;
|
|
402
|
+
}
|
|
148
403
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
404
|
+
getCroppedDocument(side) {
|
|
405
|
+
var _a, _b, _c, _d, _e, _f;
|
|
406
|
+
switch (side) {
|
|
407
|
+
case IdSide.Front:
|
|
408
|
+
return (_c = (_b = (_a = this.json) === null || _a === void 0 ? void 0 : _a.front) === null || _b === void 0 ? void 0 : _b.croppedDocument) !== null && _c !== void 0 ? _c : null;
|
|
409
|
+
case IdSide.Back:
|
|
410
|
+
return (_f = (_e = (_d = this.json) === null || _d === void 0 ? void 0 : _d.back) === null || _e === void 0 ? void 0 : _e.croppedDocument) !== null && _f !== void 0 ? _f : null;
|
|
411
|
+
}
|
|
155
412
|
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
class VizMrzStringComparisonCheck {
|
|
159
|
-
get vizValue() { return this.json.vizValue; }
|
|
160
|
-
get mrzValue() { return this.json.mrzValue; }
|
|
161
|
-
get checkResult() { return this.json.checkResult; }
|
|
162
|
-
get resultDescription() { return this.json.resultDescription; }
|
|
163
413
|
static fromJSON(json) {
|
|
164
|
-
const result = new
|
|
165
|
-
|
|
414
|
+
const result = new IdImages();
|
|
415
|
+
if (json != null) {
|
|
416
|
+
result.json = json;
|
|
417
|
+
}
|
|
166
418
|
return result;
|
|
167
419
|
}
|
|
168
420
|
}
|
|
169
421
|
|
|
170
|
-
var RejectionReason;
|
|
171
|
-
(function (RejectionReason) {
|
|
172
|
-
RejectionReason["DocumentTypeNotEnabled"] = "documentTypeNotEnabled";
|
|
173
|
-
RejectionReason["IncorrectBarcodeFormat"] = "incorrectBarcodeFormat";
|
|
174
|
-
RejectionReason["DocumentVoided"] = "documentVoided";
|
|
175
|
-
})(RejectionReason || (RejectionReason = {}));
|
|
176
|
-
|
|
177
422
|
function getIdDefaults() {
|
|
178
423
|
return FactoryMaker.getInstance('IdDefaults');
|
|
179
424
|
}
|
|
@@ -183,7 +428,6 @@ function parseIdDefaults(jsonDefaults) {
|
|
|
183
428
|
Feedback: {
|
|
184
429
|
idCaptured: Feedback.fromJSON(JSON.parse(jsonDefaults.IdCaptureFeedback).idCaptured),
|
|
185
430
|
idRejected: Feedback.fromJSON(JSON.parse(jsonDefaults.IdCaptureFeedback).idRejected),
|
|
186
|
-
idCaptureTimeout: Feedback.fromJSON(JSON.parse(jsonDefaults.IdCaptureFeedback).idCaptureTimeout),
|
|
187
431
|
},
|
|
188
432
|
RecommendedCameraSettings: CameraSettings
|
|
189
433
|
.fromJSON(jsonDefaults.RecommendedCameraSettings),
|
|
@@ -213,6 +457,7 @@ function parseIdDefaults(jsonDefaults) {
|
|
|
213
457
|
IdCaptureSettings: {
|
|
214
458
|
anonymizationMode: jsonDefaults.IdCaptureSettings.anonymizationMode,
|
|
215
459
|
rejectVoidedIds: jsonDefaults.IdCaptureSettings.rejectVoidedIds,
|
|
460
|
+
decodeBackOfEuropeanDrivingLicense: jsonDefaults.IdCaptureSettings.decodeBackOfEuropeanDrivingLicense,
|
|
216
461
|
},
|
|
217
462
|
},
|
|
218
463
|
};
|
|
@@ -224,46 +469,6 @@ function loadIdDefaults(jsonDefaults) {
|
|
|
224
469
|
FactoryMaker.bindInstanceIfNotExists('IdDefaults', idDefaults);
|
|
225
470
|
}
|
|
226
471
|
|
|
227
|
-
class AAMVABarcodeResult {
|
|
228
|
-
get aamvaVersion() { return this.json.aamvaVersion; }
|
|
229
|
-
get aliasFamilyName() { return this.json.aliasFamilyName; }
|
|
230
|
-
get aliasGivenName() { return this.json.aliasGivenName; }
|
|
231
|
-
get aliasSuffixName() { return this.json.aliasSuffixName; }
|
|
232
|
-
get isRealId() { return this.json.isRealId; }
|
|
233
|
-
get driverNamePrefix() { return this.json.driverNamePrefix; }
|
|
234
|
-
get driverNameSuffix() { return this.json.driverNameSuffix; }
|
|
235
|
-
get endorsementsCode() { return this.json.endorsementsCode; }
|
|
236
|
-
get eyeColor() { return this.json.eyeColor; }
|
|
237
|
-
get firstNameWithoutMiddleName() { return this.json.firstNameWithoutMiddleName; }
|
|
238
|
-
get firstNameTruncation() { return this.json.firstNameTruncation; }
|
|
239
|
-
get hairColor() { return this.json.hairColor; }
|
|
240
|
-
get heightCm() { return this.json.heightCm; }
|
|
241
|
-
get heightInch() { return this.json.heightInch; }
|
|
242
|
-
get iIN() { return this.json.iin; }
|
|
243
|
-
get issuingJurisdiction() { return this.json.issuingJurisdiction; }
|
|
244
|
-
get issuingJurisdictionIso() { return this.json.issuingJurisdictionIso; }
|
|
245
|
-
get jurisdictionVersion() { return this.json.jurisdictionVersion; }
|
|
246
|
-
get lastNameTruncation() { return this.json.lastNameTruncation; }
|
|
247
|
-
get middleName() { return this.json.middleName; }
|
|
248
|
-
get middleNameTruncation() { return this.json.middleNameTruncation; }
|
|
249
|
-
get placeOfBirth() { return this.json.placeOfBirth; }
|
|
250
|
-
get race() { return this.json.race; }
|
|
251
|
-
get restrictionsCode() { return this.json.restrictionsCode; }
|
|
252
|
-
get vehicleClass() { return this.json.vehicleClass; }
|
|
253
|
-
get weightKg() { return this.json.weightKg; }
|
|
254
|
-
get weightLbs() { return this.json.weightLbs; }
|
|
255
|
-
get cardRevisionDate() {
|
|
256
|
-
return DateResult.fromJSON(this.json.cardRevisionDate);
|
|
257
|
-
}
|
|
258
|
-
get documentDiscriminatorNumber() { return this.json.documentDiscriminatorNumber; }
|
|
259
|
-
get barcodeDataElements() { return this.json.barcodeDataElements; }
|
|
260
|
-
static fromJSON(json) {
|
|
261
|
-
const result = new AAMVABarcodeResult();
|
|
262
|
-
result.json = json;
|
|
263
|
-
return result;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
472
|
var AamvaBarcodeVerificationStatus;
|
|
268
473
|
(function (AamvaBarcodeVerificationStatus) {
|
|
269
474
|
AamvaBarcodeVerificationStatus["Authentic"] = "authentic";
|
|
@@ -311,7 +516,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
311
516
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
312
517
|
PERFORMANCE OF THIS SOFTWARE.
|
|
313
518
|
***************************************************************************** */
|
|
314
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
519
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
315
520
|
|
|
316
521
|
|
|
317
522
|
function __decorate(decorators, target, key, desc) {
|
|
@@ -338,18 +543,12 @@ class IdCaptureController extends BaseController {
|
|
|
338
543
|
reset() {
|
|
339
544
|
return this._proxy.resetMode();
|
|
340
545
|
}
|
|
341
|
-
verifyCapturedId(capturedId) {
|
|
342
|
-
return this._proxy.verifyCapturedId(capturedId);
|
|
343
|
-
}
|
|
344
546
|
createContextForBarcodeVerification(context) {
|
|
345
547
|
return this._proxy.createContextForBarcodeVerification(JSON.stringify(context.toJSON()));
|
|
346
548
|
}
|
|
347
549
|
verifyCapturedIdAsync(capturedId) {
|
|
348
550
|
return this._proxy.verifyCapturedIdAsync(capturedId);
|
|
349
551
|
}
|
|
350
|
-
verifyVizMrz(capturedId) {
|
|
351
|
-
return this._proxy.verifyVizMrz(capturedId);
|
|
352
|
-
}
|
|
353
552
|
setModeEnabledState(enabled) {
|
|
354
553
|
this._proxy.setModeEnabledState(enabled);
|
|
355
554
|
}
|
|
@@ -367,104 +566,30 @@ class IdCaptureController extends BaseController {
|
|
|
367
566
|
}
|
|
368
567
|
}
|
|
369
568
|
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
return DateResult.fromJSON(this.json.passportDateOfExpiry);
|
|
377
|
-
}
|
|
378
|
-
static fromJSON(json) {
|
|
379
|
-
const result = new ApecBusinessTravelCardMrzResult();
|
|
380
|
-
result.json = json;
|
|
381
|
-
return result;
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
class ArgentinaIdBarcodeResult {
|
|
386
|
-
get personalIdNumber() { return this.json.personalIdNumber; }
|
|
387
|
-
get documentCopy() { return this.json.documentCopy; }
|
|
388
|
-
static fromJSON(json) {
|
|
389
|
-
const result = new ArgentinaIdBarcodeResult();
|
|
390
|
-
result.json = json;
|
|
391
|
-
return result;
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
class ChinaExitEntryPermitMRZResult {
|
|
396
|
-
get documentCode() { return this.json.documentCode; }
|
|
397
|
-
get capturedMrz() { return this.json.capturedMrz; }
|
|
398
|
-
static fromJSON(json) {
|
|
399
|
-
const result = new ChinaExitEntryPermitMRZResult();
|
|
400
|
-
result.json = json;
|
|
401
|
-
return result;
|
|
402
|
-
}
|
|
403
|
-
}
|
|
569
|
+
var IdCaptureListenerEvents;
|
|
570
|
+
(function (IdCaptureListenerEvents) {
|
|
571
|
+
IdCaptureListenerEvents["inCallback"] = "IdCaptureListener.inCallback";
|
|
572
|
+
IdCaptureListenerEvents["didCapture"] = "IdCaptureListener.didCaptureId";
|
|
573
|
+
IdCaptureListenerEvents["didReject"] = "IdCaptureListener.didRejectId";
|
|
574
|
+
})(IdCaptureListenerEvents || (IdCaptureListenerEvents = {}));
|
|
404
575
|
|
|
405
|
-
class
|
|
576
|
+
class MRZResult {
|
|
406
577
|
get documentCode() { return this.json.documentCode; }
|
|
578
|
+
get namesAreTruncated() { return this.json.namesAreTruncated; }
|
|
579
|
+
get optional() { return this.json.optional; }
|
|
580
|
+
get optional1() { return this.json.optional1; }
|
|
407
581
|
get capturedMrz() { return this.json.capturedMrz; }
|
|
408
582
|
get personalIdNumber() { return this.json.personalIdNumber; }
|
|
409
583
|
get renewalTimes() { return this.json.renewalTimes; }
|
|
410
584
|
get fullNameSimplifiedChinese() { return this.json.fullNameSimplifiedChinese; }
|
|
411
|
-
get
|
|
585
|
+
get omittedCharacterCountInGbkName() { return this.json.omittedCharacterCountInGbkName; }
|
|
412
586
|
get omittedNameCount() { return this.json.omittedNameCount; }
|
|
413
587
|
get issuingAuthorityCode() { return this.json.issuingAuthorityCode; }
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
return
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
class ChinaOneWayPermitBackMrzResult {
|
|
422
|
-
get documentCode() { return this.json.documentCode; }
|
|
423
|
-
get namesAreTruncated() { return this.json.namesAreTruncated; }
|
|
424
|
-
get capturedMrz() { return this.json.capturedMrz; }
|
|
425
|
-
static fromJSON(json) {
|
|
426
|
-
const result = new ChinaOneWayPermitBackMrzResult();
|
|
427
|
-
result.json = json;
|
|
428
|
-
return result;
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
class ChinaOneWayPermitFrontMrzResult {
|
|
433
|
-
get documentCode() { return this.json.documentCode; }
|
|
434
|
-
get capturedMrz() { return this.json.capturedMrz; }
|
|
435
|
-
get fullNameSimplifiedChinese() { return this.json.fullNameSimplifiedChinese; }
|
|
436
|
-
static fromJSON(json) {
|
|
437
|
-
const result = new ChinaOneWayPermitFrontMrzResult();
|
|
438
|
-
result.json = json;
|
|
439
|
-
return result;
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
class ColombiaDlBarcodeResult {
|
|
444
|
-
get categories() { return this.json.categories; }
|
|
445
|
-
get identificationType() { return this.json.identificationType; }
|
|
446
|
-
static fromJSON(json) {
|
|
447
|
-
const result = new ColombiaDlBarcodeResult();
|
|
448
|
-
result.json = json;
|
|
449
|
-
return result;
|
|
588
|
+
get passportIssuerIso() { return this.json.passportIssuerIso; }
|
|
589
|
+
get passportNumber() { return this.json.passportNumber; }
|
|
590
|
+
get passportDateOfExpiry() {
|
|
591
|
+
return DateResult.fromJSON(this.json.passportDateOfExpiry);
|
|
450
592
|
}
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
class ColombiaIdBarcodeResult {
|
|
454
|
-
get bloodType() { return this.json.bloodType; }
|
|
455
|
-
static fromJSON(json) {
|
|
456
|
-
const result = new ColombiaIdBarcodeResult();
|
|
457
|
-
result.json = json;
|
|
458
|
-
return result;
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
class MRZResult {
|
|
463
|
-
get documentCode() { return this.json.documentCode; }
|
|
464
|
-
get namesAreTruncated() { return this.json.namesAreTruncated; }
|
|
465
|
-
get optional() { return this.json.optional; }
|
|
466
|
-
get optional1() { return this.json.optional1; }
|
|
467
|
-
get capturedMrz() { return this.json.capturedMrz; }
|
|
468
593
|
static fromJSON(json) {
|
|
469
594
|
const result = new MRZResult();
|
|
470
595
|
result.json = json;
|
|
@@ -472,126 +597,6 @@ class MRZResult {
|
|
|
472
597
|
}
|
|
473
598
|
}
|
|
474
599
|
|
|
475
|
-
class ProfessionalDrivingPermit {
|
|
476
|
-
get dateOfExpiry() { return DateResult.fromJSON(this.json.dateOfExpiry); }
|
|
477
|
-
get codes() { return this.json.codes; }
|
|
478
|
-
static fromJSON(json) {
|
|
479
|
-
if (json === null) {
|
|
480
|
-
return null;
|
|
481
|
-
}
|
|
482
|
-
const object = new ProfessionalDrivingPermit();
|
|
483
|
-
object.json = json;
|
|
484
|
-
return object;
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
class VehicleRestriction {
|
|
489
|
-
get vehicleCode() { return this.json.vehicleCode; }
|
|
490
|
-
get vehicleRestriction() { return this.json.vehicleRestriction; }
|
|
491
|
-
get dateOfIssue() { return DateResult.fromJSON(this.json.dateOfIssue); }
|
|
492
|
-
static fromJSON(json) {
|
|
493
|
-
if (json === null) {
|
|
494
|
-
return null;
|
|
495
|
-
}
|
|
496
|
-
const object = new VehicleRestriction();
|
|
497
|
-
object.json = json;
|
|
498
|
-
return object;
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
class SouthAfricaDlBarcodeResult {
|
|
503
|
-
get version() { return this.json.version; }
|
|
504
|
-
get licenseCountryOfIssue() { return this.json.licenseCountryOfIssue; }
|
|
505
|
-
get personalIdNumber() { return this.json.personalIdNumber; }
|
|
506
|
-
get personalIdNumberType() { return this.json.personalIdNumberType; }
|
|
507
|
-
get documentCopy() { return this.json.documentCopy; }
|
|
508
|
-
get driverRestrictionCodes() { return this.json.driverRestrictionCodes; }
|
|
509
|
-
get professionalDrivingPermit() {
|
|
510
|
-
return ProfessionalDrivingPermit.fromJSON(this.json.professionalDrivingPermit);
|
|
511
|
-
}
|
|
512
|
-
get vehicleRestrictions() {
|
|
513
|
-
return this.json.vehicleRestrictions.map(json => VehicleRestriction.fromJSON(json));
|
|
514
|
-
}
|
|
515
|
-
static fromJSON(json) {
|
|
516
|
-
const result = new SouthAfricaDlBarcodeResult();
|
|
517
|
-
result.json = json;
|
|
518
|
-
return result;
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
class SouthAfricaIdBarcodeResult {
|
|
523
|
-
get countryOfBirth() { return this.json.countryOfBirth; }
|
|
524
|
-
get countryOfBirthIso() { return this.json.countryOfBirthIso; }
|
|
525
|
-
get citizenshipStatus() { return this.json.citizenshipStatus; }
|
|
526
|
-
get personalIdNumber() { return this.json.personalIdNumber; }
|
|
527
|
-
static fromJSON(json) {
|
|
528
|
-
const result = new SouthAfricaIdBarcodeResult();
|
|
529
|
-
result.json = json;
|
|
530
|
-
return result;
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
class USUniformedServicesBarcodeResult {
|
|
535
|
-
get bloodType() { return this.json.bloodType; }
|
|
536
|
-
get branchOfService() { return this.json.branchOfService; }
|
|
537
|
-
get champusEffectiveDate() {
|
|
538
|
-
return DateResult.fromJSON(this.json.champusEffectiveDate);
|
|
539
|
-
}
|
|
540
|
-
get champusExpiryDate() {
|
|
541
|
-
return DateResult.fromJSON(this.json.champusExpiryDate);
|
|
542
|
-
}
|
|
543
|
-
get civilianHealthCareFlagCode() { return this.json.civilianHealthCareFlagCode; }
|
|
544
|
-
get civilianHealthCareFlagDescription() { return this.json.civilianHealthCareFlagDescription; }
|
|
545
|
-
get commissaryFlagCode() { return this.json.commissaryFlagCode; }
|
|
546
|
-
get commissaryFlagDescription() { return this.json.commissaryFlagDescription; }
|
|
547
|
-
get deersDependentSuffixCode() { return this.json.deersDependentSuffixCode; }
|
|
548
|
-
get deersDependentSuffixDescription() { return this.json.deersDependentSuffixDescription; }
|
|
549
|
-
get directCareFlagCode() { return this.json.directCareFlagCode; }
|
|
550
|
-
get directCareFlagDescription() { return this.json.directCareFlagDescription; }
|
|
551
|
-
get exchangeFlagCode() { return this.json.exchangeFlagCode; }
|
|
552
|
-
get exchangeFlagDescription() { return this.json.exchangeFlagDescription; }
|
|
553
|
-
get eyeColor() { return this.json.eyeColor; }
|
|
554
|
-
get familySequenceNumber() { return this.json.familySequenceNumber; }
|
|
555
|
-
get formNumber() { return this.json.formNumber; }
|
|
556
|
-
get genevaConventionCategory() { return this.json.genevaConventionCategory; }
|
|
557
|
-
get hairColor() { return this.json.hairColor; }
|
|
558
|
-
get height() { return this.json.height; }
|
|
559
|
-
get jpegData() { return this.json.jpegData; }
|
|
560
|
-
get mwrFlagCode() { return this.json.mwrFlagCode; }
|
|
561
|
-
get mwrFlagDescription() { return this.json.mwrFlagDescription; }
|
|
562
|
-
get payGrade() { return this.json.payGrade; }
|
|
563
|
-
get personDesignatorDocument() { return this.json.personDesignatorDocument; }
|
|
564
|
-
get rank() { return this.json.rank; }
|
|
565
|
-
get relationshipCode() { return this.json.relationshipCode; }
|
|
566
|
-
get relationshipDescription() { return this.json.relationshipDescription; }
|
|
567
|
-
get securityCode() { return this.json.securityCode; }
|
|
568
|
-
get serviceCode() { return this.json.serviceCode; }
|
|
569
|
-
get sponsorFlag() { return this.json.sponsorFlag; }
|
|
570
|
-
get sponsorName() { return this.json.sponsorName; }
|
|
571
|
-
get sponsorPersonDesignatorIdentifier() {
|
|
572
|
-
return this.json.sponsorPersonDesignatorIdentifier;
|
|
573
|
-
}
|
|
574
|
-
get statusCode() { return this.json.statusCode; }
|
|
575
|
-
get statusCodeDescription() { return this.json.statusCodeDescription; }
|
|
576
|
-
get version() { return this.json.version; }
|
|
577
|
-
get weight() { return this.json.weight; }
|
|
578
|
-
static fromJSON(json) {
|
|
579
|
-
const result = new USUniformedServicesBarcodeResult();
|
|
580
|
-
result.json = json;
|
|
581
|
-
return result;
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
class USVisaVIZResult {
|
|
586
|
-
get visaNumber() { return this.json.visaNumber; }
|
|
587
|
-
get passportNumber() { return this.json.passportNumber; }
|
|
588
|
-
static fromJSON(json) {
|
|
589
|
-
const result = new USVisaVIZResult();
|
|
590
|
-
result.json = json;
|
|
591
|
-
return result;
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
|
|
595
600
|
class CommonCapturedIdFields {
|
|
596
601
|
get firstName() { return this.json.firstName; }
|
|
597
602
|
get lastName() { return this.json.lastName; }
|
|
@@ -607,6 +612,7 @@ class CommonCapturedIdFields {
|
|
|
607
612
|
get address() { return this.json.address; }
|
|
608
613
|
get documentAdditionalNumber() { return this.json.documentAdditionalNumber; }
|
|
609
614
|
get documentType() { return this.json.documentType; }
|
|
615
|
+
get documentSubtype() { return this.json.documentSubtype; }
|
|
610
616
|
get documentNumber() { return this.json.documentNumber; }
|
|
611
617
|
get issuingCountry() { return this.json.issuingCountry; }
|
|
612
618
|
get issuingCountryIso() { return this.json.issuingCountryIso; }
|
|
@@ -631,6 +637,7 @@ class CommonCapturedIdFields {
|
|
|
631
637
|
const nationality = json.nationality;
|
|
632
638
|
const address = json.address;
|
|
633
639
|
const documentType = json.documentType;
|
|
640
|
+
const documentSubtype = json.documentSubtype;
|
|
634
641
|
const documentNumber = json.documentNumber;
|
|
635
642
|
const issuingCountry = json.issuingCountry;
|
|
636
643
|
const issuingCountryIso = json.issuingCountryIso;
|
|
@@ -670,6 +677,9 @@ class CommonCapturedIdFields {
|
|
|
670
677
|
if (!existingInstance.documentType) {
|
|
671
678
|
json.documentType = documentType;
|
|
672
679
|
}
|
|
680
|
+
if (!existingInstance.documentSubtype) {
|
|
681
|
+
json.documentSubtype = documentSubtype;
|
|
682
|
+
}
|
|
673
683
|
if (!existingInstance.documentNumber) {
|
|
674
684
|
json.documentNumber = documentNumber;
|
|
675
685
|
}
|
|
@@ -692,55 +702,613 @@ class CommonCapturedIdFields {
|
|
|
692
702
|
}
|
|
693
703
|
}
|
|
694
704
|
|
|
695
|
-
class VIZResult {
|
|
696
|
-
get additionalAddressInformation() { return this.json.additionalAddressInformation; }
|
|
697
|
-
get additionalNameInformation() { return this.json.additionalNameInformation; }
|
|
698
|
-
get documentAdditionalNumber() { return this.json.documentAdditionalNumber; }
|
|
699
|
-
get employer() { return this.json.employer; }
|
|
700
|
-
get issuingAuthority() { return this.json.issuingAuthority; }
|
|
701
|
-
get issuingJurisdiction() { return this.json.issuingJurisdiction; }
|
|
702
|
-
get issuingJurisdictionIso() { return this.json.issuingJurisdictionIso; }
|
|
703
|
-
get maritalStatus() { return this.json.maritalStatus; }
|
|
704
|
-
get personalIdNumber() { return this.json.personalIdNumber; }
|
|
705
|
-
get placeOfBirth() { return this.json.placeOfBirth; }
|
|
706
|
-
get profession() { return this.json.profession; }
|
|
707
|
-
get race() { return this.json.race; }
|
|
708
|
-
get religion() { return this.json.religion; }
|
|
709
|
-
get residentialStatus() { return this.json.residentialStatus; }
|
|
710
|
-
get capturedSides() { return this.json.capturedSides; }
|
|
711
|
-
get isBackSideCaptureSupported() { return this.json.isBackSideCaptureSupported; }
|
|
712
|
-
get bloodType() { return this.json.bloodType; }
|
|
713
|
-
get sponsor() { return this.json.sponsor; }
|
|
714
|
-
get mothersName() { return this.json.mothersName; }
|
|
715
|
-
get fathersName() { return this.json.fathersName; }
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
705
|
+
class VIZResult {
|
|
706
|
+
get additionalAddressInformation() { return this.json.additionalAddressInformation; }
|
|
707
|
+
get additionalNameInformation() { return this.json.additionalNameInformation; }
|
|
708
|
+
get documentAdditionalNumber() { return this.json.documentAdditionalNumber; }
|
|
709
|
+
get employer() { return this.json.employer; }
|
|
710
|
+
get issuingAuthority() { return this.json.issuingAuthority; }
|
|
711
|
+
get issuingJurisdiction() { return this.json.issuingJurisdiction; }
|
|
712
|
+
get issuingJurisdictionIso() { return this.json.issuingJurisdictionIso; }
|
|
713
|
+
get maritalStatus() { return this.json.maritalStatus; }
|
|
714
|
+
get personalIdNumber() { return this.json.personalIdNumber; }
|
|
715
|
+
get placeOfBirth() { return this.json.placeOfBirth; }
|
|
716
|
+
get profession() { return this.json.profession; }
|
|
717
|
+
get race() { return this.json.race; }
|
|
718
|
+
get religion() { return this.json.religion; }
|
|
719
|
+
get residentialStatus() { return this.json.residentialStatus; }
|
|
720
|
+
get capturedSides() { return this.json.capturedSides; }
|
|
721
|
+
get isBackSideCaptureSupported() { return this.json.isBackSideCaptureSupported; }
|
|
722
|
+
get bloodType() { return this.json.bloodType; }
|
|
723
|
+
get sponsor() { return this.json.sponsor; }
|
|
724
|
+
get mothersName() { return this.json.mothersName; }
|
|
725
|
+
get fathersName() { return this.json.fathersName; }
|
|
726
|
+
get passportNumber() { return this.json.passportNumber; }
|
|
727
|
+
get visaNumber() { return this.json.visaNumber; }
|
|
728
|
+
get firstName() { return this.json.firstName; }
|
|
729
|
+
get lastName() { return this.json.lastName; }
|
|
730
|
+
get secondaryLastName() { return this.json.secondaryLastName; }
|
|
731
|
+
get fullName() { return this.json.fullName; }
|
|
732
|
+
static fromJSON(json) {
|
|
733
|
+
const result = new VIZResult();
|
|
734
|
+
result.json = json;
|
|
735
|
+
return result;
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
class ProfessionalDrivingPermit {
|
|
740
|
+
get dateOfExpiry() { return DateResult.fromJSON(this.json.dateOfExpiry); }
|
|
741
|
+
get codes() { return this.json.codes; }
|
|
742
|
+
static fromJSON(json) {
|
|
743
|
+
if (json === null) {
|
|
744
|
+
return null;
|
|
745
|
+
}
|
|
746
|
+
const object = new ProfessionalDrivingPermit();
|
|
747
|
+
object.json = json;
|
|
748
|
+
return object;
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
class VehicleRestriction {
|
|
753
|
+
get vehicleCode() { return this.json.vehicleCode; }
|
|
754
|
+
get vehicleRestriction() { return this.json.vehicleRestriction; }
|
|
755
|
+
get dateOfIssue() { return DateResult.fromJSON(this.json.dateOfIssue); }
|
|
756
|
+
static fromJSON(json) {
|
|
757
|
+
if (json === null) {
|
|
758
|
+
return null;
|
|
759
|
+
}
|
|
760
|
+
const object = new VehicleRestriction();
|
|
761
|
+
object.json = json;
|
|
762
|
+
return object;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
class BarcodeResult {
|
|
767
|
+
constructor(json) {
|
|
768
|
+
this.json = json;
|
|
769
|
+
}
|
|
770
|
+
static fromJSON(json) {
|
|
771
|
+
return new BarcodeResult(json);
|
|
772
|
+
}
|
|
773
|
+
get aamvaVersion() {
|
|
774
|
+
return this.json.aamvaVersion;
|
|
775
|
+
}
|
|
776
|
+
get aliasFamilyName() {
|
|
777
|
+
return this.json.aliasFamilyName;
|
|
778
|
+
}
|
|
779
|
+
get aliasGivenName() {
|
|
780
|
+
return this.json.aliasGivenName;
|
|
781
|
+
}
|
|
782
|
+
get aliasSuffixName() {
|
|
783
|
+
return this.json.aliasSuffixName;
|
|
784
|
+
}
|
|
785
|
+
get bloodType() {
|
|
786
|
+
return this.json.bloodType;
|
|
787
|
+
}
|
|
788
|
+
get branchOfService() {
|
|
789
|
+
return this.json.branchOfService;
|
|
790
|
+
}
|
|
791
|
+
get cardInstanceIdentifier() {
|
|
792
|
+
return this.json.cardInstanceIdentifier;
|
|
793
|
+
}
|
|
794
|
+
get cardRevisionDate() {
|
|
795
|
+
return DateResult.fromJSON(this.json.cardRevisionDate);
|
|
796
|
+
}
|
|
797
|
+
get categories() {
|
|
798
|
+
return this.json.categories;
|
|
799
|
+
}
|
|
800
|
+
get champusEffectiveDate() {
|
|
801
|
+
return DateResult.fromJSON(this.json.champusEffectiveDate);
|
|
802
|
+
}
|
|
803
|
+
get champusExpiryDate() {
|
|
804
|
+
return DateResult.fromJSON(this.json.champusExpiryDate);
|
|
805
|
+
}
|
|
806
|
+
get citizenshipStatus() {
|
|
807
|
+
return this.json.citizenshipStatus;
|
|
808
|
+
}
|
|
809
|
+
get civilianHealthCareFlagCode() {
|
|
810
|
+
return this.json.civilianHealthCareFlagCode;
|
|
811
|
+
}
|
|
812
|
+
get civilianHealthCareFlagDescription() {
|
|
813
|
+
return this.json.civilianHealthCareFlagDescription;
|
|
814
|
+
}
|
|
815
|
+
get commissaryFlagCode() {
|
|
816
|
+
return this.json.commissaryFlagCode;
|
|
817
|
+
}
|
|
818
|
+
get commissaryFlagDescription() {
|
|
819
|
+
return this.json.commissaryFlagDescription;
|
|
820
|
+
}
|
|
821
|
+
get countryOfBirth() {
|
|
822
|
+
return this.json.countryOfBirth;
|
|
823
|
+
}
|
|
824
|
+
get countryOfBirthIso() {
|
|
825
|
+
return this.json.countryOfBirthIso;
|
|
826
|
+
}
|
|
827
|
+
get deersDependentSuffixCode() {
|
|
828
|
+
return this.json.deersDependentSuffixCode;
|
|
829
|
+
}
|
|
830
|
+
get deersDependentSuffixDescription() {
|
|
831
|
+
return this.json.deersDependentSuffixDescription;
|
|
832
|
+
}
|
|
833
|
+
get directCareFlagCode() {
|
|
834
|
+
return this.json.directCareFlagCode;
|
|
835
|
+
}
|
|
836
|
+
get directCareFlagDescription() {
|
|
837
|
+
return this.json.directCareFlagDescription;
|
|
838
|
+
}
|
|
839
|
+
get documentCopy() {
|
|
840
|
+
return this.json.documentCopy;
|
|
841
|
+
}
|
|
842
|
+
get documentDiscriminatorNumber() {
|
|
843
|
+
return this.json.documentDiscriminatorNumber;
|
|
844
|
+
}
|
|
845
|
+
get driverNamePrefix() {
|
|
846
|
+
return this.json.driverNamePrefix;
|
|
847
|
+
}
|
|
848
|
+
get driverNameSuffix() {
|
|
849
|
+
return this.json.driverNameSuffix;
|
|
850
|
+
}
|
|
851
|
+
get driverRestrictionCodes() {
|
|
852
|
+
return this.json.driverRestrictionCodes;
|
|
853
|
+
}
|
|
854
|
+
get ediPersonIdentifier() {
|
|
855
|
+
return this.json.ediPersonIdentifier;
|
|
856
|
+
}
|
|
857
|
+
get endorsementsCode() {
|
|
858
|
+
return this.json.endorsementsCode;
|
|
859
|
+
}
|
|
860
|
+
get exchangeFlagCode() {
|
|
861
|
+
return this.json.exchangeFlagCode;
|
|
862
|
+
}
|
|
863
|
+
get exchangeFlagDescription() {
|
|
864
|
+
return this.json.exchangeFlagDescription;
|
|
865
|
+
}
|
|
866
|
+
get eyeColor() {
|
|
867
|
+
return this.json.eyeColor;
|
|
868
|
+
}
|
|
869
|
+
get familySequenceNumber() {
|
|
870
|
+
return this.json.familySequenceNumber;
|
|
871
|
+
}
|
|
872
|
+
get firstNameTruncation() {
|
|
873
|
+
return this.json.firstNameTruncation;
|
|
874
|
+
}
|
|
875
|
+
get firstNameWithoutMiddleName() {
|
|
876
|
+
return this.json.firstNameWithoutMiddleName;
|
|
877
|
+
}
|
|
878
|
+
get formNumber() {
|
|
879
|
+
return this.json.formNumber;
|
|
880
|
+
}
|
|
881
|
+
get genevaConventionCategory() {
|
|
882
|
+
return this.json.genevaConventionCategory;
|
|
883
|
+
}
|
|
884
|
+
get hairColor() {
|
|
885
|
+
return this.json.hairColor;
|
|
886
|
+
}
|
|
887
|
+
get heightCm() {
|
|
888
|
+
return this.json.heightCm;
|
|
889
|
+
}
|
|
890
|
+
get heightInch() {
|
|
891
|
+
return this.json.heightInch;
|
|
892
|
+
}
|
|
893
|
+
get iin() {
|
|
894
|
+
return this.json.iin;
|
|
895
|
+
}
|
|
896
|
+
get identificationType() {
|
|
897
|
+
return this.json.identificationType;
|
|
898
|
+
}
|
|
899
|
+
get issuingJurisdiction() {
|
|
900
|
+
return this.json.issuingJurisdiction;
|
|
901
|
+
}
|
|
902
|
+
get issuingJurisdictionIso() {
|
|
903
|
+
return this.json.issuingJurisdictionIso;
|
|
904
|
+
}
|
|
905
|
+
get jpegData() {
|
|
906
|
+
return this.json.jpegData;
|
|
907
|
+
}
|
|
908
|
+
get jurisdictionVersion() {
|
|
909
|
+
return this.json.jurisdictionVersion;
|
|
910
|
+
}
|
|
911
|
+
get lastNameTruncation() {
|
|
912
|
+
return this.json.lastNameTruncation;
|
|
913
|
+
}
|
|
914
|
+
get licenseCountryOfIssue() {
|
|
915
|
+
return this.json.licenseCountryOfIssue;
|
|
916
|
+
}
|
|
917
|
+
get middleName() {
|
|
918
|
+
return this.json.middleName;
|
|
919
|
+
}
|
|
920
|
+
get middleNameTruncation() {
|
|
921
|
+
return this.json.middleNameTruncation;
|
|
922
|
+
}
|
|
923
|
+
get mwrFlagCode() {
|
|
924
|
+
return this.json.mwrFlagCode;
|
|
925
|
+
}
|
|
926
|
+
get mwrFlagDescription() {
|
|
927
|
+
return this.json.mwrFlagDescription;
|
|
928
|
+
}
|
|
929
|
+
get payGrade() {
|
|
930
|
+
return this.json.payGrade;
|
|
931
|
+
}
|
|
932
|
+
get payPlanCode() {
|
|
933
|
+
return this.json.payPlanCode;
|
|
934
|
+
}
|
|
935
|
+
get payPlanGradeCode() {
|
|
936
|
+
return this.json.payPlanGradeCode;
|
|
937
|
+
}
|
|
938
|
+
get personDesignatorDocument() {
|
|
939
|
+
return this.json.personDesignatorDocument;
|
|
940
|
+
}
|
|
941
|
+
get personDesignatorTypeCode() {
|
|
942
|
+
return this.json.personDesignatorTypeCode;
|
|
943
|
+
}
|
|
944
|
+
get personMiddleInitial() {
|
|
945
|
+
return this.json.personMiddleInitial;
|
|
946
|
+
}
|
|
947
|
+
get personalIdNumber() {
|
|
948
|
+
return this.json.personalIdNumber;
|
|
949
|
+
}
|
|
950
|
+
get personalIdNumberType() {
|
|
951
|
+
return this.json.personalIdNumberType;
|
|
952
|
+
}
|
|
953
|
+
get personnelCategoryCode() {
|
|
954
|
+
return this.json.personnelCategoryCode;
|
|
955
|
+
}
|
|
956
|
+
get personnelEntitlementConditionType() {
|
|
957
|
+
return this.json.personnelEntitlementConditionType;
|
|
958
|
+
}
|
|
959
|
+
get placeOfBirth() {
|
|
960
|
+
return this.json.placeOfBirth;
|
|
961
|
+
}
|
|
962
|
+
get professionalDrivingPermit() {
|
|
963
|
+
return ProfessionalDrivingPermit.fromJSON(this.json.professionalDrivingPermit);
|
|
964
|
+
}
|
|
965
|
+
get race() {
|
|
966
|
+
return this.json.race;
|
|
967
|
+
}
|
|
968
|
+
get rank() {
|
|
969
|
+
return this.json.rank;
|
|
970
|
+
}
|
|
971
|
+
get relationshipCode() {
|
|
972
|
+
return this.json.relationshipCode;
|
|
973
|
+
}
|
|
974
|
+
get relationshipDescription() {
|
|
975
|
+
return this.json.relationshipDescription;
|
|
976
|
+
}
|
|
977
|
+
get restrictionsCode() {
|
|
978
|
+
return this.json.restrictionsCode;
|
|
979
|
+
}
|
|
980
|
+
get securityCode() {
|
|
981
|
+
return this.json.securityCode;
|
|
982
|
+
}
|
|
983
|
+
get serviceCode() {
|
|
984
|
+
return this.json.serviceCode;
|
|
985
|
+
}
|
|
986
|
+
get sponsorFlag() {
|
|
987
|
+
return this.json.sponsorFlag;
|
|
988
|
+
}
|
|
989
|
+
get sponsorName() {
|
|
990
|
+
return this.json.sponsorName;
|
|
991
|
+
}
|
|
992
|
+
get sponsorPersonDesignatorIdentifier() {
|
|
993
|
+
return this.json.sponsorPersonDesignatorIdentifier;
|
|
994
|
+
}
|
|
995
|
+
get statusCode() {
|
|
996
|
+
return this.json.statusCode;
|
|
997
|
+
}
|
|
998
|
+
get statusCodeDescription() {
|
|
999
|
+
return this.json.statusCodeDescription;
|
|
1000
|
+
}
|
|
1001
|
+
get vehicleClass() {
|
|
1002
|
+
return this.json.vehicleClass;
|
|
1003
|
+
}
|
|
1004
|
+
get vehicleRestrictions() {
|
|
1005
|
+
return this.json.vehicleRestrictions.map(json => VehicleRestriction.fromJSON(json));
|
|
1006
|
+
}
|
|
1007
|
+
get version() {
|
|
1008
|
+
return this.json.version;
|
|
1009
|
+
}
|
|
1010
|
+
get weightKg() {
|
|
1011
|
+
return this.json.weightKg;
|
|
1012
|
+
}
|
|
1013
|
+
get weightLbs() {
|
|
1014
|
+
return this.json.weightLbs;
|
|
1015
|
+
}
|
|
1016
|
+
get isRealId() {
|
|
1017
|
+
return this.json.isRealId;
|
|
1018
|
+
}
|
|
1019
|
+
get barcodeDataElements() {
|
|
1020
|
+
return this.json.barcodeDataElements;
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
var IdCaptureDocumentType;
|
|
1025
|
+
(function (IdCaptureDocumentType) {
|
|
1026
|
+
IdCaptureDocumentType["IdCard"] = "idCard";
|
|
1027
|
+
IdCaptureDocumentType["DriverLicense"] = "driverLicense";
|
|
1028
|
+
IdCaptureDocumentType["Passport"] = "passport";
|
|
1029
|
+
IdCaptureDocumentType["VisaIcao"] = "visaIcao";
|
|
1030
|
+
IdCaptureDocumentType["RegionSpecific"] = "regionSpecific";
|
|
1031
|
+
IdCaptureDocumentType["ResidencePermit"] = "residencePermit";
|
|
1032
|
+
IdCaptureDocumentType["HealthInsuranceCard"] = "healthInsuranceCard";
|
|
1033
|
+
})(IdCaptureDocumentType || (IdCaptureDocumentType = {}));
|
|
1034
|
+
|
|
1035
|
+
class DriverLicense extends DefaultSerializeable {
|
|
1036
|
+
constructor(region) {
|
|
1037
|
+
super();
|
|
1038
|
+
this._documentType = IdCaptureDocumentType.DriverLicense;
|
|
1039
|
+
this._region = region;
|
|
1040
|
+
}
|
|
1041
|
+
get region() {
|
|
1042
|
+
return this._region;
|
|
1043
|
+
}
|
|
1044
|
+
get isIdCard() {
|
|
1045
|
+
return this._documentType === IdCaptureDocumentType.IdCard;
|
|
1046
|
+
}
|
|
1047
|
+
get isDriverLicense() {
|
|
1048
|
+
return this._documentType === IdCaptureDocumentType.DriverLicense;
|
|
1049
|
+
}
|
|
1050
|
+
get isPassport() {
|
|
1051
|
+
return this._documentType === IdCaptureDocumentType.Passport;
|
|
1052
|
+
}
|
|
1053
|
+
get isVisaIcao() {
|
|
1054
|
+
return this._documentType === IdCaptureDocumentType.VisaIcao;
|
|
1055
|
+
}
|
|
1056
|
+
get isRegionSpecific() {
|
|
1057
|
+
return this._documentType === IdCaptureDocumentType.RegionSpecific;
|
|
1058
|
+
}
|
|
1059
|
+
get isResidencePermit() {
|
|
1060
|
+
return this._documentType === IdCaptureDocumentType.ResidencePermit;
|
|
1061
|
+
}
|
|
1062
|
+
get isHealthInsuranceCard() {
|
|
1063
|
+
return this._documentType === IdCaptureDocumentType.HealthInsuranceCard;
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
__decorate([
|
|
1067
|
+
nameForSerialization('region')
|
|
1068
|
+
], DriverLicense.prototype, "_region", void 0);
|
|
1069
|
+
__decorate([
|
|
1070
|
+
nameForSerialization('documentType')
|
|
1071
|
+
], DriverLicense.prototype, "_documentType", void 0);
|
|
1072
|
+
|
|
1073
|
+
class HealthInsuranceCard extends DefaultSerializeable {
|
|
1074
|
+
constructor(region) {
|
|
1075
|
+
super();
|
|
1076
|
+
this._documentType = IdCaptureDocumentType.HealthInsuranceCard;
|
|
1077
|
+
this._region = region;
|
|
1078
|
+
}
|
|
1079
|
+
get region() {
|
|
1080
|
+
return this._region;
|
|
1081
|
+
}
|
|
1082
|
+
get isIdCard() {
|
|
1083
|
+
return this._documentType === IdCaptureDocumentType.IdCard;
|
|
1084
|
+
}
|
|
1085
|
+
get isDriverLicense() {
|
|
1086
|
+
return this._documentType === IdCaptureDocumentType.DriverLicense;
|
|
1087
|
+
}
|
|
1088
|
+
get isPassport() {
|
|
1089
|
+
return this._documentType === IdCaptureDocumentType.Passport;
|
|
1090
|
+
}
|
|
1091
|
+
get isVisaIcao() {
|
|
1092
|
+
return this._documentType === IdCaptureDocumentType.VisaIcao;
|
|
1093
|
+
}
|
|
1094
|
+
get isRegionSpecific() {
|
|
1095
|
+
return this._documentType === IdCaptureDocumentType.RegionSpecific;
|
|
1096
|
+
}
|
|
1097
|
+
get isResidencePermit() {
|
|
1098
|
+
return this._documentType === IdCaptureDocumentType.ResidencePermit;
|
|
1099
|
+
}
|
|
1100
|
+
get isHealthInsuranceCard() {
|
|
1101
|
+
return this._documentType === IdCaptureDocumentType.HealthInsuranceCard;
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
__decorate([
|
|
1105
|
+
nameForSerialization('region')
|
|
1106
|
+
], HealthInsuranceCard.prototype, "_region", void 0);
|
|
1107
|
+
__decorate([
|
|
1108
|
+
nameForSerialization('documentType')
|
|
1109
|
+
], HealthInsuranceCard.prototype, "_documentType", void 0);
|
|
1110
|
+
|
|
1111
|
+
class IdCard extends DefaultSerializeable {
|
|
1112
|
+
constructor(region) {
|
|
1113
|
+
super();
|
|
1114
|
+
this._documentType = IdCaptureDocumentType.IdCard;
|
|
1115
|
+
this._region = region;
|
|
1116
|
+
}
|
|
1117
|
+
get region() {
|
|
1118
|
+
return this._region;
|
|
1119
|
+
}
|
|
1120
|
+
get isIdCard() {
|
|
1121
|
+
return this._documentType === IdCaptureDocumentType.IdCard;
|
|
1122
|
+
}
|
|
1123
|
+
get isDriverLicense() {
|
|
1124
|
+
return this._documentType === IdCaptureDocumentType.DriverLicense;
|
|
1125
|
+
}
|
|
1126
|
+
get isPassport() {
|
|
1127
|
+
return this._documentType === IdCaptureDocumentType.Passport;
|
|
1128
|
+
}
|
|
1129
|
+
get isVisaIcao() {
|
|
1130
|
+
return this._documentType === IdCaptureDocumentType.VisaIcao;
|
|
1131
|
+
}
|
|
1132
|
+
get isRegionSpecific() {
|
|
1133
|
+
return this._documentType === IdCaptureDocumentType.RegionSpecific;
|
|
1134
|
+
}
|
|
1135
|
+
get isResidencePermit() {
|
|
1136
|
+
return this._documentType === IdCaptureDocumentType.ResidencePermit;
|
|
1137
|
+
}
|
|
1138
|
+
get isHealthInsuranceCard() {
|
|
1139
|
+
return this._documentType === IdCaptureDocumentType.HealthInsuranceCard;
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
__decorate([
|
|
1143
|
+
nameForSerialization('region')
|
|
1144
|
+
], IdCard.prototype, "_region", void 0);
|
|
1145
|
+
__decorate([
|
|
1146
|
+
nameForSerialization('documentType')
|
|
1147
|
+
], IdCard.prototype, "_documentType", void 0);
|
|
1148
|
+
|
|
1149
|
+
class Passport extends DefaultSerializeable {
|
|
1150
|
+
constructor(region) {
|
|
1151
|
+
super();
|
|
1152
|
+
this._documentType = IdCaptureDocumentType.Passport;
|
|
1153
|
+
this._region = region;
|
|
1154
|
+
}
|
|
1155
|
+
get region() {
|
|
1156
|
+
return this._region;
|
|
1157
|
+
}
|
|
1158
|
+
get isIdCard() {
|
|
1159
|
+
return this._documentType === IdCaptureDocumentType.IdCard;
|
|
1160
|
+
}
|
|
1161
|
+
get isDriverLicense() {
|
|
1162
|
+
return this._documentType === IdCaptureDocumentType.DriverLicense;
|
|
1163
|
+
}
|
|
1164
|
+
get isPassport() {
|
|
1165
|
+
return this._documentType === IdCaptureDocumentType.Passport;
|
|
1166
|
+
}
|
|
1167
|
+
get isVisaIcao() {
|
|
1168
|
+
return this._documentType === IdCaptureDocumentType.VisaIcao;
|
|
1169
|
+
}
|
|
1170
|
+
get isRegionSpecific() {
|
|
1171
|
+
return this._documentType === IdCaptureDocumentType.RegionSpecific;
|
|
1172
|
+
}
|
|
1173
|
+
get isResidencePermit() {
|
|
1174
|
+
return this._documentType === IdCaptureDocumentType.ResidencePermit;
|
|
1175
|
+
}
|
|
1176
|
+
get isHealthInsuranceCard() {
|
|
1177
|
+
return this._documentType === IdCaptureDocumentType.HealthInsuranceCard;
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
__decorate([
|
|
1181
|
+
nameForSerialization('region')
|
|
1182
|
+
], Passport.prototype, "_region", void 0);
|
|
1183
|
+
__decorate([
|
|
1184
|
+
nameForSerialization('documentType')
|
|
1185
|
+
], Passport.prototype, "_documentType", void 0);
|
|
1186
|
+
|
|
1187
|
+
class RegionSpecific extends DefaultSerializeable {
|
|
1188
|
+
constructor(subtype) {
|
|
1189
|
+
super();
|
|
1190
|
+
this._documentType = IdCaptureDocumentType.RegionSpecific;
|
|
1191
|
+
this._region = IdCaptureRegion.Any;
|
|
1192
|
+
this._documentSubtype = subtype;
|
|
1193
|
+
}
|
|
1194
|
+
get region() {
|
|
1195
|
+
return this._region;
|
|
1196
|
+
}
|
|
1197
|
+
get subtype() {
|
|
1198
|
+
return this._documentSubtype;
|
|
1199
|
+
}
|
|
1200
|
+
get isIdCard() {
|
|
1201
|
+
return this._documentType === IdCaptureDocumentType.IdCard;
|
|
1202
|
+
}
|
|
1203
|
+
get isDriverLicense() {
|
|
1204
|
+
return this._documentType === IdCaptureDocumentType.DriverLicense;
|
|
1205
|
+
}
|
|
1206
|
+
get isPassport() {
|
|
1207
|
+
return this._documentType === IdCaptureDocumentType.Passport;
|
|
1208
|
+
}
|
|
1209
|
+
get isVisaIcao() {
|
|
1210
|
+
return this._documentType === IdCaptureDocumentType.VisaIcao;
|
|
1211
|
+
}
|
|
1212
|
+
get isRegionSpecific() {
|
|
1213
|
+
return this._documentType === IdCaptureDocumentType.RegionSpecific;
|
|
1214
|
+
}
|
|
1215
|
+
get isResidencePermit() {
|
|
1216
|
+
return this._documentType === IdCaptureDocumentType.ResidencePermit;
|
|
1217
|
+
}
|
|
1218
|
+
get isHealthInsuranceCard() {
|
|
1219
|
+
return this._documentType === IdCaptureDocumentType.HealthInsuranceCard;
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
__decorate([
|
|
1223
|
+
nameForSerialization('region')
|
|
1224
|
+
], RegionSpecific.prototype, "_region", void 0);
|
|
1225
|
+
__decorate([
|
|
1226
|
+
nameForSerialization('documentSubtype')
|
|
1227
|
+
], RegionSpecific.prototype, "_documentSubtype", void 0);
|
|
1228
|
+
__decorate([
|
|
1229
|
+
nameForSerialization('documentType')
|
|
1230
|
+
], RegionSpecific.prototype, "_documentType", void 0);
|
|
1231
|
+
|
|
1232
|
+
class ResidencePermit extends DefaultSerializeable {
|
|
1233
|
+
constructor(region) {
|
|
1234
|
+
super();
|
|
1235
|
+
this._documentType = IdCaptureDocumentType.ResidencePermit;
|
|
1236
|
+
this._region = region;
|
|
1237
|
+
}
|
|
1238
|
+
get region() {
|
|
1239
|
+
return this._region;
|
|
1240
|
+
}
|
|
1241
|
+
get isIdCard() {
|
|
1242
|
+
return this._documentType === IdCaptureDocumentType.IdCard;
|
|
1243
|
+
}
|
|
1244
|
+
get isDriverLicense() {
|
|
1245
|
+
return this._documentType === IdCaptureDocumentType.DriverLicense;
|
|
1246
|
+
}
|
|
1247
|
+
get isPassport() {
|
|
1248
|
+
return this._documentType === IdCaptureDocumentType.Passport;
|
|
1249
|
+
}
|
|
1250
|
+
get isVisaIcao() {
|
|
1251
|
+
return this._documentType === IdCaptureDocumentType.VisaIcao;
|
|
1252
|
+
}
|
|
1253
|
+
get isRegionSpecific() {
|
|
1254
|
+
return this._documentType === IdCaptureDocumentType.RegionSpecific;
|
|
1255
|
+
}
|
|
1256
|
+
get isResidencePermit() {
|
|
1257
|
+
return this._documentType === IdCaptureDocumentType.ResidencePermit;
|
|
1258
|
+
}
|
|
1259
|
+
get isHealthInsuranceCard() {
|
|
1260
|
+
return this._documentType === IdCaptureDocumentType.HealthInsuranceCard;
|
|
720
1261
|
}
|
|
721
1262
|
}
|
|
1263
|
+
__decorate([
|
|
1264
|
+
nameForSerialization('region')
|
|
1265
|
+
], ResidencePermit.prototype, "_region", void 0);
|
|
1266
|
+
__decorate([
|
|
1267
|
+
nameForSerialization('documentType')
|
|
1268
|
+
], ResidencePermit.prototype, "_documentType", void 0);
|
|
722
1269
|
|
|
723
|
-
class
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
get
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
get
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
get
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
return
|
|
1270
|
+
class VisaIcao extends DefaultSerializeable {
|
|
1271
|
+
constructor(region) {
|
|
1272
|
+
super();
|
|
1273
|
+
this._documentType = IdCaptureDocumentType.VisaIcao;
|
|
1274
|
+
this._region = region;
|
|
1275
|
+
}
|
|
1276
|
+
get region() {
|
|
1277
|
+
return this._region;
|
|
1278
|
+
}
|
|
1279
|
+
get isIdCard() {
|
|
1280
|
+
return this._documentType === IdCaptureDocumentType.IdCard;
|
|
1281
|
+
}
|
|
1282
|
+
get isDriverLicense() {
|
|
1283
|
+
return this._documentType === IdCaptureDocumentType.DriverLicense;
|
|
1284
|
+
}
|
|
1285
|
+
get isPassport() {
|
|
1286
|
+
return this._documentType === IdCaptureDocumentType.Passport;
|
|
1287
|
+
}
|
|
1288
|
+
get isVisaIcao() {
|
|
1289
|
+
return this._documentType === IdCaptureDocumentType.VisaIcao;
|
|
1290
|
+
}
|
|
1291
|
+
get isRegionSpecific() {
|
|
1292
|
+
return this._documentType === IdCaptureDocumentType.RegionSpecific;
|
|
1293
|
+
}
|
|
1294
|
+
get isResidencePermit() {
|
|
1295
|
+
return this._documentType === IdCaptureDocumentType.ResidencePermit;
|
|
1296
|
+
}
|
|
1297
|
+
get isHealthInsuranceCard() {
|
|
1298
|
+
return this._documentType === IdCaptureDocumentType.HealthInsuranceCard;
|
|
740
1299
|
}
|
|
741
1300
|
}
|
|
1301
|
+
__decorate([
|
|
1302
|
+
nameForSerialization('region')
|
|
1303
|
+
], VisaIcao.prototype, "_region", void 0);
|
|
1304
|
+
__decorate([
|
|
1305
|
+
nameForSerialization('documentType')
|
|
1306
|
+
], VisaIcao.prototype, "_documentType", void 0);
|
|
742
1307
|
|
|
743
1308
|
class CapturedId {
|
|
1309
|
+
constructor() {
|
|
1310
|
+
this._document = null;
|
|
1311
|
+
}
|
|
744
1312
|
get firstName() { return this.commonCapturedFields.firstName; }
|
|
745
1313
|
get lastName() { return this.commonCapturedFields.lastName; }
|
|
746
1314
|
get fullName() { return this.commonCapturedFields.fullName; }
|
|
@@ -753,11 +1321,7 @@ class CapturedId {
|
|
|
753
1321
|
get isExpired() { return this.json.isExpired; }
|
|
754
1322
|
get nationality() { return this.commonCapturedFields.nationality; }
|
|
755
1323
|
get address() { return this.commonCapturedFields.address; }
|
|
756
|
-
get
|
|
757
|
-
get capturedResultTypes() {
|
|
758
|
-
return this.json.capturedResultTypes;
|
|
759
|
-
}
|
|
760
|
-
get documentType() { return this.commonCapturedFields.documentType; }
|
|
1324
|
+
get document() { return this._document; }
|
|
761
1325
|
get issuingCountryIso() { return this.commonCapturedFields.issuingCountryIso; }
|
|
762
1326
|
get issuingCountry() { return this.commonCapturedFields.issuingCountry; }
|
|
763
1327
|
get documentAdditionalNumber() { return this.commonCapturedFields.documentAdditionalNumber; }
|
|
@@ -768,33 +1332,12 @@ class CapturedId {
|
|
|
768
1332
|
get dateOfIssue() {
|
|
769
1333
|
return DateResult.fromJSON(this.commonCapturedFields.dateOfIssue);
|
|
770
1334
|
}
|
|
771
|
-
get
|
|
772
|
-
if (this.
|
|
773
|
-
this.
|
|
774
|
-
fromJSON(this.json.
|
|
1335
|
+
get barcode() {
|
|
1336
|
+
if (this._barcodeResult == null && this.json.barcodeResult != null) {
|
|
1337
|
+
this._barcodeResult = BarcodeResult.
|
|
1338
|
+
fromJSON(this.json.barcodeResult);
|
|
775
1339
|
}
|
|
776
|
-
return this.
|
|
777
|
-
}
|
|
778
|
-
get argentinaIdBarcodeResult() {
|
|
779
|
-
if (this._argentinaIdBarcodeResult == null && this.json.argentinaIdBarcodeResult != null) {
|
|
780
|
-
this._argentinaIdBarcodeResult = ArgentinaIdBarcodeResult.
|
|
781
|
-
fromJSON(this.json.argentinaIdBarcodeResult);
|
|
782
|
-
}
|
|
783
|
-
return this._argentinaIdBarcodeResult;
|
|
784
|
-
}
|
|
785
|
-
get colombiaIdBarcodeResult() {
|
|
786
|
-
if (this._colombiaIdBarcodeResult == null && this.json.colombiaIdBarcodeResult != null) {
|
|
787
|
-
this._colombiaIdBarcodeResult = ColombiaIdBarcodeResult.
|
|
788
|
-
fromJSON(this.json.colombiaIdBarcodeResult);
|
|
789
|
-
}
|
|
790
|
-
return this._colombiaIdBarcodeResult;
|
|
791
|
-
}
|
|
792
|
-
get colombiaDlBarcodeResult() {
|
|
793
|
-
if (this._colombiaDlBarcodeResult == null && this.json.colombiaDlBarcodeResult != null) {
|
|
794
|
-
this._colombiaDlBarcodeResult = ColombiaDlBarcodeResult.
|
|
795
|
-
fromJSON(this.json.colombiaDlBarcodeResult);
|
|
796
|
-
}
|
|
797
|
-
return this._colombiaDlBarcodeResult;
|
|
1340
|
+
return this._barcodeResult;
|
|
798
1341
|
}
|
|
799
1342
|
get mrzResult() {
|
|
800
1343
|
if (this._mrzResult == null && this.json.mrzResult != null) {
|
|
@@ -802,202 +1345,86 @@ class CapturedId {
|
|
|
802
1345
|
}
|
|
803
1346
|
return this._mrzResult;
|
|
804
1347
|
}
|
|
805
|
-
get southAfricaIdBarcodeResult() {
|
|
806
|
-
if (this._southAfricaIdBarcodeResult == null && this.json.southAfricaIdBarcodeResult != null) {
|
|
807
|
-
this._southAfricaIdBarcodeResult = SouthAfricaIdBarcodeResult.
|
|
808
|
-
fromJSON(this.json.southAfricaIdBarcodeResult);
|
|
809
|
-
}
|
|
810
|
-
return this._southAfricaIdBarcodeResult;
|
|
811
|
-
}
|
|
812
|
-
get southAfricaDlBarcodeResult() {
|
|
813
|
-
if (this._southAfricaDlBarcodeResult == null && this.json.southAfricaDlBarcodeResult != null) {
|
|
814
|
-
this._southAfricaDlBarcodeResult = SouthAfricaDlBarcodeResult.
|
|
815
|
-
fromJSON(this.json.southAfricaDlBarcodeResult);
|
|
816
|
-
}
|
|
817
|
-
return this._southAfricaDlBarcodeResult;
|
|
818
|
-
}
|
|
819
|
-
get commonAccessCardBarcodeResult() {
|
|
820
|
-
if (this._commonAccessBarcodeResult == null && this.json.commonAccessCardBarcodeResult != null) {
|
|
821
|
-
this._commonAccessBarcodeResult = CommonAccessCardBarcodeResult.
|
|
822
|
-
fromJSON(this.json.commonAccessCardBarcodeResult);
|
|
823
|
-
}
|
|
824
|
-
return this._commonAccessBarcodeResult;
|
|
825
|
-
}
|
|
826
|
-
get usUniformedServicesBarcodeResult() {
|
|
827
|
-
if (this._usUniformedServicesBarcodeResult == null && this.json.usUniformedServicesBarcodeResult != null) {
|
|
828
|
-
const fromJSON = USUniformedServicesBarcodeResult.fromJSON;
|
|
829
|
-
this._usUniformedServicesBarcodeResult = fromJSON(this.json.usUniformedServicesBarcodeResult);
|
|
830
|
-
}
|
|
831
|
-
return this._usUniformedServicesBarcodeResult;
|
|
832
|
-
}
|
|
833
|
-
get usVisaViz() {
|
|
834
|
-
if (this._usVisaVizResult == null && this.json.usVisaVizResult != null) {
|
|
835
|
-
const fromJSON = USVisaVIZResult.fromJSON;
|
|
836
|
-
this._usVisaVizResult = fromJSON(this.json.usVisaVizResult);
|
|
837
|
-
}
|
|
838
|
-
return this._usVisaVizResult;
|
|
839
|
-
}
|
|
840
1348
|
get vizResult() {
|
|
841
1349
|
if (this._vizResult == null && this.json.vizResult != null) {
|
|
842
1350
|
this._vizResult = VIZResult.fromJSON(this.json.vizResult);
|
|
843
1351
|
}
|
|
844
1352
|
return this._vizResult;
|
|
845
1353
|
}
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
ChinaMainlandTravelPermitMRZResult
|
|
850
|
-
.fromJSON(this.json.chinaMainlandTravelPermitMrzResult);
|
|
851
|
-
}
|
|
852
|
-
return this._chinaMainlandTravelPermitMRZResult;
|
|
1354
|
+
isIdCard() {
|
|
1355
|
+
var _a;
|
|
1356
|
+
return ((_a = this.document) === null || _a === void 0 ? void 0 : _a.isIdCard) === true;
|
|
853
1357
|
}
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
ChinaExitEntryPermitMRZResult
|
|
858
|
-
.fromJSON(this.json.chinaExitEntryPermitMrzResult);
|
|
859
|
-
}
|
|
860
|
-
return this._chinaExitEntryPermitMRZResult;
|
|
1358
|
+
isDriverLicense() {
|
|
1359
|
+
var _a;
|
|
1360
|
+
return ((_a = this.document) === null || _a === void 0 ? void 0 : _a.isDriverLicense) === true;
|
|
861
1361
|
}
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
ChinaOneWayPermitBackMrzResult
|
|
866
|
-
.fromJSON(this.json.chinaOneWayPermitBackMrzResult);
|
|
867
|
-
}
|
|
868
|
-
return this._chinaOneWayPermitBackMrzResult;
|
|
1362
|
+
isPassport() {
|
|
1363
|
+
var _a;
|
|
1364
|
+
return ((_a = this.document) === null || _a === void 0 ? void 0 : _a.isPassport) === true;
|
|
869
1365
|
}
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
ChinaOneWayPermitFrontMrzResult
|
|
874
|
-
.fromJSON(this.json.chinaOneWayPermitFrontMrzResult);
|
|
875
|
-
}
|
|
876
|
-
return this._chinaOneWayPermitFrontMrzResult;
|
|
1366
|
+
isVisaIcao() {
|
|
1367
|
+
var _a;
|
|
1368
|
+
return ((_a = this.document) === null || _a === void 0 ? void 0 : _a.isVisaIcao) === true;
|
|
877
1369
|
}
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
return this.
|
|
1370
|
+
isRegionSpecific(subtype) {
|
|
1371
|
+
var _a;
|
|
1372
|
+
return ((_a = this.document) === null || _a === void 0 ? void 0 : _a.isRegionSpecific) === true && this.document.subtype === subtype;
|
|
1373
|
+
}
|
|
1374
|
+
isResidencePermit() {
|
|
1375
|
+
var _a;
|
|
1376
|
+
return ((_a = this.document) === null || _a === void 0 ? void 0 : _a.isResidencePermit) === true;
|
|
1377
|
+
}
|
|
1378
|
+
isHealthInsuranceCard() {
|
|
1379
|
+
var _a;
|
|
1380
|
+
return ((_a = this.document) === null || _a === void 0 ? void 0 : _a.isHealthInsuranceCard) === true;
|
|
1381
|
+
}
|
|
1382
|
+
get images() {
|
|
1383
|
+
return this._images;
|
|
885
1384
|
}
|
|
886
1385
|
static fromJSON(json) {
|
|
887
1386
|
const result = new CapturedId();
|
|
888
1387
|
result.json = json;
|
|
889
|
-
if (json.
|
|
890
|
-
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.
|
|
891
|
-
}
|
|
892
|
-
if (json.argentinaIdBarcodeResult) {
|
|
893
|
-
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.argentinaIdBarcodeResult, result.commonCapturedFields);
|
|
894
|
-
}
|
|
895
|
-
if (json.colombiaIdBarcodeResult) {
|
|
896
|
-
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.colombiaIdBarcodeResult, result.commonCapturedFields);
|
|
897
|
-
}
|
|
898
|
-
if (json.colombiaDlBarcodeResult) {
|
|
899
|
-
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.colombiaDlBarcodeResult, result.commonCapturedFields);
|
|
1388
|
+
if (json.barcodeResult) {
|
|
1389
|
+
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.barcodeResult, result.commonCapturedFields);
|
|
900
1390
|
}
|
|
901
1391
|
if (json.mrzResult) {
|
|
902
1392
|
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.mrzResult, result.commonCapturedFields);
|
|
903
1393
|
}
|
|
904
|
-
if (json.southAfricaIdBarcodeResult) {
|
|
905
|
-
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.southAfricaIdBarcodeResult, result.commonCapturedFields);
|
|
906
|
-
}
|
|
907
|
-
if (json.southAfricaDlBarcodeResult) {
|
|
908
|
-
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.southAfricaDlBarcodeResult, result.commonCapturedFields);
|
|
909
|
-
}
|
|
910
|
-
if (json.commonAccessCardBarcodeResult) {
|
|
911
|
-
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.commonAccessCardBarcodeResult, result.commonCapturedFields);
|
|
912
|
-
}
|
|
913
|
-
if (json.usUniformedServicesBarcodeResult) {
|
|
914
|
-
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.usUniformedServicesBarcodeResult, result.commonCapturedFields);
|
|
915
|
-
}
|
|
916
|
-
if (json.usVisaVizResult) {
|
|
917
|
-
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.usVisaVizResult, result.commonCapturedFields);
|
|
918
|
-
}
|
|
919
1394
|
if (json.vizResult) {
|
|
920
1395
|
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.vizResult, result.commonCapturedFields);
|
|
921
1396
|
}
|
|
922
|
-
if (
|
|
923
|
-
result.
|
|
924
|
-
}
|
|
925
|
-
if (json.chinaExitEntryPermitMrzResult) {
|
|
926
|
-
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.chinaExitEntryPermitMrzResult, result.commonCapturedFields);
|
|
927
|
-
}
|
|
928
|
-
if (json.chinaOneWayPermitBackMrzResult) {
|
|
929
|
-
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.chinaOneWayPermitBackMrzResult, result.commonCapturedFields);
|
|
930
|
-
}
|
|
931
|
-
if (json.chinaOneWayPermitFrontMrzResult) {
|
|
932
|
-
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.chinaOneWayPermitFrontMrzResult, result.commonCapturedFields);
|
|
933
|
-
}
|
|
934
|
-
if (json.apecBusinessTravelCardMrzResult) {
|
|
935
|
-
result.commonCapturedFields = CommonCapturedIdFields.fromJSON(json.apecBusinessTravelCardMrzResult, result.commonCapturedFields);
|
|
1397
|
+
if (result.commonCapturedFields && result.commonCapturedFields.documentType) {
|
|
1398
|
+
result._document = this.getDocument(result.issuingCountry, result.commonCapturedFields.documentType, result.commonCapturedFields.documentSubtype);
|
|
936
1399
|
}
|
|
1400
|
+
result._images = IdImages.fromJSON(json.imageInfo);
|
|
937
1401
|
return result;
|
|
938
1402
|
}
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
}
|
|
961
|
-
|
|
962
|
-
class IdCaptureSession {
|
|
963
|
-
get newlyCapturedId() {
|
|
964
|
-
return this._newlyCapturedId;
|
|
965
|
-
}
|
|
966
|
-
get frameSequenceId() {
|
|
967
|
-
return this._frameSequenceId;
|
|
968
|
-
}
|
|
969
|
-
get localizedOnlyId() {
|
|
970
|
-
return this._localizedOnlyId;
|
|
971
|
-
}
|
|
972
|
-
get newlyRejectedId() {
|
|
973
|
-
return this._newlyRejectedId;
|
|
974
|
-
}
|
|
975
|
-
static fromJSON(json) {
|
|
976
|
-
const session = new IdCaptureSession();
|
|
977
|
-
if (json.newlyCapturedId) {
|
|
978
|
-
session._newlyCapturedId = CapturedId.fromJSON(json.newlyCapturedId);
|
|
979
|
-
}
|
|
980
|
-
if (json.localizedOnlyId) {
|
|
981
|
-
session._localizedOnlyId = LocalizedOnlyId.fromJSON(json.localizedOnlyId);
|
|
982
|
-
}
|
|
983
|
-
if (json.newlyRejectedId) {
|
|
984
|
-
session._newlyRejectedId = LocalizedOnlyId.fromJSON(json.newlyRejectedId);
|
|
1403
|
+
static getDocument(issuingCountry, documentType, documentSubtype) {
|
|
1404
|
+
switch (documentType) {
|
|
1405
|
+
case IdCaptureDocumentType.DriverLicense:
|
|
1406
|
+
return new DriverLicense(issuingCountry);
|
|
1407
|
+
case IdCaptureDocumentType.HealthInsuranceCard:
|
|
1408
|
+
return new HealthInsuranceCard(issuingCountry);
|
|
1409
|
+
case IdCaptureDocumentType.IdCard:
|
|
1410
|
+
return new IdCard(issuingCountry);
|
|
1411
|
+
case IdCaptureDocumentType.Passport:
|
|
1412
|
+
return new Passport(issuingCountry);
|
|
1413
|
+
case IdCaptureDocumentType.RegionSpecific:
|
|
1414
|
+
if (!documentSubtype) {
|
|
1415
|
+
throw new Error('documentSubtype cannot be null for RegionSpecific documents.');
|
|
1416
|
+
}
|
|
1417
|
+
return new RegionSpecific(documentSubtype);
|
|
1418
|
+
case IdCaptureDocumentType.ResidencePermit:
|
|
1419
|
+
return new ResidencePermit(issuingCountry);
|
|
1420
|
+
case IdCaptureDocumentType.VisaIcao:
|
|
1421
|
+
return new VisaIcao(issuingCountry);
|
|
1422
|
+
default:
|
|
1423
|
+
throw new Error(`Unknown document type ${documentType}`);
|
|
985
1424
|
}
|
|
986
|
-
session._frameSequenceId = json.frameSequenceId;
|
|
987
|
-
session._error = json.error ? IdCaptureError.fromJSON(json.error) : null;
|
|
988
|
-
return session;
|
|
989
1425
|
}
|
|
990
1426
|
}
|
|
991
1427
|
|
|
992
|
-
var IdCaptureListenerEvents;
|
|
993
|
-
(function (IdCaptureListenerEvents) {
|
|
994
|
-
IdCaptureListenerEvents["inCallback"] = "IdCaptureListener.inCallback";
|
|
995
|
-
IdCaptureListenerEvents["didCapture"] = "IdCaptureListener.didCaptureId";
|
|
996
|
-
IdCaptureListenerEvents["didLocalize"] = "IdCaptureListener.didLocalizeId";
|
|
997
|
-
IdCaptureListenerEvents["didReject"] = "IdCaptureListener.didRejectId";
|
|
998
|
-
IdCaptureListenerEvents["didTimeOut"] = "IdCaptureListener.didTimeout";
|
|
999
|
-
})(IdCaptureListenerEvents || (IdCaptureListenerEvents = {}));
|
|
1000
|
-
|
|
1001
1428
|
class IdCaptureListenerController {
|
|
1002
1429
|
get _proxy() {
|
|
1003
1430
|
return FactoryMaker.getInstance('IdCaptureListenerProxy');
|
|
@@ -1013,81 +1440,48 @@ class IdCaptureListenerController {
|
|
|
1013
1440
|
}
|
|
1014
1441
|
subscribeListener() {
|
|
1015
1442
|
this._proxy.subscribeDidCaptureListener();
|
|
1016
|
-
this._proxy.subscribeDidLocalizeListener();
|
|
1017
1443
|
this._proxy.subscribeDidRejectListener();
|
|
1018
|
-
this._proxy.subscribeDidTimeOutListener();
|
|
1019
1444
|
this.eventEmitter.on(IdCaptureListenerEvents.inCallback, (value) => {
|
|
1020
1445
|
this.idCapture.isInListenerCallback = value;
|
|
1021
1446
|
});
|
|
1022
1447
|
this.eventEmitter.on(IdCaptureListenerEvents.didCapture, (body) => {
|
|
1023
1448
|
const payload = JSON.parse(body);
|
|
1024
|
-
const
|
|
1025
|
-
this.notifyListenersOfDidCapture(
|
|
1449
|
+
const captureId = CapturedId.fromJSON(JSON.parse(payload.id));
|
|
1450
|
+
this.notifyListenersOfDidCapture(captureId);
|
|
1026
1451
|
this._proxy.finishDidCaptureCallback(this.idCapture.isEnabled);
|
|
1027
1452
|
});
|
|
1028
|
-
this.eventEmitter.on(IdCaptureListenerEvents.didLocalize, (body) => {
|
|
1029
|
-
const payload = JSON.parse(body);
|
|
1030
|
-
const session = IdCaptureSession.fromJSON(JSON.parse(payload.session));
|
|
1031
|
-
this.notifyListenersOfDidLocalize(session);
|
|
1032
|
-
this._proxy.finishDidLocalizeCallback(this.idCapture.isEnabled);
|
|
1033
|
-
});
|
|
1034
1453
|
this.eventEmitter.on(IdCaptureListenerEvents.didReject, (body) => {
|
|
1035
1454
|
const payload = JSON.parse(body);
|
|
1036
|
-
|
|
1037
|
-
|
|
1455
|
+
let rejectedId = null;
|
|
1456
|
+
if (payload.id != null) {
|
|
1457
|
+
rejectedId = CapturedId.fromJSON(JSON.parse(payload.id));
|
|
1458
|
+
}
|
|
1459
|
+
this.notifyListenersOfDidReject(rejectedId, payload.rejectionReason);
|
|
1038
1460
|
this._proxy.finishDidRejectCallback(this.idCapture.isEnabled);
|
|
1039
1461
|
});
|
|
1040
|
-
this.eventEmitter.on(IdCaptureListenerEvents.didTimeOut, (body) => {
|
|
1041
|
-
const payload = JSON.parse(body);
|
|
1042
|
-
const session = IdCaptureSession.fromJSON(JSON.parse(payload.session));
|
|
1043
|
-
this.notifyListenersOfDidTimeOut(session);
|
|
1044
|
-
this._proxy.finishDidTimeOutCallback(this.idCapture.isEnabled);
|
|
1045
|
-
});
|
|
1046
1462
|
}
|
|
1047
1463
|
unsubscribeListener() {
|
|
1048
1464
|
this._proxy.unregisterListenerForEvents();
|
|
1049
1465
|
this.eventEmitter.removeAllListeners(IdCaptureListenerEvents.inCallback);
|
|
1050
1466
|
this.eventEmitter.removeAllListeners(IdCaptureListenerEvents.didCapture);
|
|
1051
|
-
this.eventEmitter.removeAllListeners(IdCaptureListenerEvents.didLocalize);
|
|
1052
1467
|
this.eventEmitter.removeAllListeners(IdCaptureListenerEvents.didReject);
|
|
1053
|
-
this.eventEmitter.removeAllListeners(IdCaptureListenerEvents.didTimeOut);
|
|
1054
1468
|
}
|
|
1055
|
-
notifyListenersOfDidCapture(
|
|
1469
|
+
notifyListenersOfDidCapture(captureId) {
|
|
1056
1470
|
const mode = this.idCapture;
|
|
1057
1471
|
mode.isInListenerCallback = true;
|
|
1058
1472
|
mode.listeners.forEach(listener => {
|
|
1059
1473
|
if (listener.didCaptureId) {
|
|
1060
|
-
listener.didCaptureId(this.idCapture,
|
|
1061
|
-
}
|
|
1062
|
-
});
|
|
1063
|
-
mode.isInListenerCallback = false;
|
|
1064
|
-
}
|
|
1065
|
-
notifyListenersOfDidLocalize(session) {
|
|
1066
|
-
const mode = this.idCapture;
|
|
1067
|
-
mode.isInListenerCallback = true;
|
|
1068
|
-
mode.listeners.forEach(listener => {
|
|
1069
|
-
if (listener.didLocalizeId) {
|
|
1070
|
-
listener.didLocalizeId(this.idCapture, session, CameraController.getLastFrame);
|
|
1474
|
+
listener.didCaptureId(this.idCapture, captureId);
|
|
1071
1475
|
}
|
|
1072
1476
|
});
|
|
1073
1477
|
mode.isInListenerCallback = false;
|
|
1074
1478
|
}
|
|
1075
|
-
notifyListenersOfDidReject(
|
|
1479
|
+
notifyListenersOfDidReject(captureId, rejectionReason) {
|
|
1076
1480
|
const mode = this.idCapture;
|
|
1077
1481
|
mode.isInListenerCallback = true;
|
|
1078
1482
|
mode.listeners.forEach(listener => {
|
|
1079
1483
|
if (listener.didRejectId) {
|
|
1080
|
-
listener.didRejectId(this.idCapture,
|
|
1081
|
-
}
|
|
1082
|
-
});
|
|
1083
|
-
mode.isInListenerCallback = false;
|
|
1084
|
-
}
|
|
1085
|
-
notifyListenersOfDidTimeOut(session) {
|
|
1086
|
-
const mode = this.idCapture;
|
|
1087
|
-
mode.isInListenerCallback = true;
|
|
1088
|
-
mode.listeners.forEach(listener => {
|
|
1089
|
-
if (listener.didTimeoutInSession) {
|
|
1090
|
-
listener.didTimeoutInSession(this.idCapture, session, CameraController.getLastFrame);
|
|
1484
|
+
listener.didRejectId(this.idCapture, captureId, rejectionReason);
|
|
1091
1485
|
}
|
|
1092
1486
|
});
|
|
1093
1487
|
mode.isInListenerCallback = false;
|
|
@@ -1096,7 +1490,7 @@ class IdCaptureListenerController {
|
|
|
1096
1490
|
|
|
1097
1491
|
class IdCaptureFeedback extends DefaultSerializeable {
|
|
1098
1492
|
static get defaultFeedback() {
|
|
1099
|
-
return new IdCaptureFeedback(IdCaptureFeedback.idDefaults.IdCapture.Feedback.idCaptured, IdCaptureFeedback.idDefaults.IdCapture.Feedback.idRejected
|
|
1493
|
+
return new IdCaptureFeedback(IdCaptureFeedback.idDefaults.IdCapture.Feedback.idCaptured, IdCaptureFeedback.idDefaults.IdCapture.Feedback.idRejected);
|
|
1100
1494
|
}
|
|
1101
1495
|
get idCaptured() {
|
|
1102
1496
|
return this._idCaptured;
|
|
@@ -1112,18 +1506,10 @@ class IdCaptureFeedback extends DefaultSerializeable {
|
|
|
1112
1506
|
this._idRejected = idRejected;
|
|
1113
1507
|
this.updateFeedback();
|
|
1114
1508
|
}
|
|
1115
|
-
get idCaptureTimeout() {
|
|
1116
|
-
return this._idCaptureTimeout;
|
|
1117
|
-
}
|
|
1118
|
-
set idCaptureTimeout(idCaptureTimeout) {
|
|
1119
|
-
this._idCaptureTimeout = idCaptureTimeout;
|
|
1120
|
-
this.updateFeedback();
|
|
1121
|
-
}
|
|
1122
1509
|
static fromJSON(json) {
|
|
1123
1510
|
const idCaptured = Feedback.fromJSON(json.idCaptured);
|
|
1124
1511
|
const idRejected = Feedback.fromJSON(json.idRejected);
|
|
1125
|
-
|
|
1126
|
-
return new IdCaptureFeedback(idCaptured, idRejected, idCaptureTimeout);
|
|
1512
|
+
return new IdCaptureFeedback(idCaptured, idRejected);
|
|
1127
1513
|
}
|
|
1128
1514
|
static get idDefaults() {
|
|
1129
1515
|
return getIdDefaults();
|
|
@@ -1132,15 +1518,13 @@ class IdCaptureFeedback extends DefaultSerializeable {
|
|
|
1132
1518
|
var _a;
|
|
1133
1519
|
(_a = this.controller) === null || _a === void 0 ? void 0 : _a.updateFeedback(this);
|
|
1134
1520
|
}
|
|
1135
|
-
constructor(idCaptured, idRejected
|
|
1521
|
+
constructor(idCaptured, idRejected) {
|
|
1136
1522
|
super();
|
|
1137
1523
|
this.controller = null;
|
|
1138
1524
|
this._idCaptured = IdCaptureFeedback.idDefaults.IdCapture.Feedback.idCaptured;
|
|
1139
1525
|
this._idRejected = IdCaptureFeedback.idDefaults.IdCapture.Feedback.idRejected;
|
|
1140
|
-
this._idCaptureTimeout = IdCaptureFeedback.idDefaults.IdCapture.Feedback.idCaptureTimeout;
|
|
1141
1526
|
this.idCaptured = idCaptured;
|
|
1142
1527
|
this.idRejected = idRejected;
|
|
1143
|
-
this.idCaptureTimeout = idCaptureTimeout;
|
|
1144
1528
|
}
|
|
1145
1529
|
}
|
|
1146
1530
|
__decorate([
|
|
@@ -1152,9 +1536,6 @@ __decorate([
|
|
|
1152
1536
|
__decorate([
|
|
1153
1537
|
nameForSerialization('idRejected')
|
|
1154
1538
|
], IdCaptureFeedback.prototype, "_idRejected", void 0);
|
|
1155
|
-
__decorate([
|
|
1156
|
-
nameForSerialization('idCaptureTimeout')
|
|
1157
|
-
], IdCaptureFeedback.prototype, "_idCaptureTimeout", void 0);
|
|
1158
1539
|
__decorate([
|
|
1159
1540
|
ignoreFromSerialization
|
|
1160
1541
|
], IdCaptureFeedback, "idDefaults", null);
|
|
@@ -1267,18 +1648,6 @@ var IdLayoutLineStyle;
|
|
|
1267
1648
|
IdLayoutLineStyle["Bold"] = "bold";
|
|
1268
1649
|
})(IdLayoutLineStyle || (IdLayoutLineStyle = {}));
|
|
1269
1650
|
|
|
1270
|
-
var IdLayout;
|
|
1271
|
-
(function (IdLayout) {
|
|
1272
|
-
IdLayout["TD1"] = "td1";
|
|
1273
|
-
IdLayout["TD2"] = "td2";
|
|
1274
|
-
IdLayout["TD3"] = "td3";
|
|
1275
|
-
IdLayout["MRVa"] = "mrvA";
|
|
1276
|
-
IdLayout["VIZ"] = "viz";
|
|
1277
|
-
IdLayout["PDF417"] = "pdf417";
|
|
1278
|
-
IdLayout["Auto"] = "auto";
|
|
1279
|
-
IdLayout["None"] = "none";
|
|
1280
|
-
})(IdLayout || (IdLayout = {}));
|
|
1281
|
-
|
|
1282
1651
|
var IdLayoutStyle;
|
|
1283
1652
|
(function (IdLayoutStyle) {
|
|
1284
1653
|
IdLayoutStyle["Rounded"] = "rounded";
|
|
@@ -1303,7 +1672,6 @@ class IdCaptureOverlay extends DefaultSerializeable {
|
|
|
1303
1672
|
constructor() {
|
|
1304
1673
|
super();
|
|
1305
1674
|
this.type = 'idCapture';
|
|
1306
|
-
this._idLayout = IdLayout.Auto;
|
|
1307
1675
|
this._idLayoutStyle = IdLayoutStyle.Rounded;
|
|
1308
1676
|
this._idLayoutLineStyle = IdLayoutLineStyle.Light;
|
|
1309
1677
|
this._textHintPosition = TextHintPosition.AboveViewfinder;
|
|
@@ -1317,10 +1685,6 @@ class IdCaptureOverlay extends DefaultSerializeable {
|
|
|
1317
1685
|
this._frontSideTextHint = null;
|
|
1318
1686
|
this._backSideTextHint = null;
|
|
1319
1687
|
}
|
|
1320
|
-
setIdLayout(idLayout) {
|
|
1321
|
-
this._idLayout = idLayout;
|
|
1322
|
-
this.idCapture.controller.updateIdCaptureOverlay(this);
|
|
1323
|
-
}
|
|
1324
1688
|
setFrontSideTextHint(text) {
|
|
1325
1689
|
this._frontSideTextHint = text;
|
|
1326
1690
|
this.idCapture.controller.updateIdCaptureOverlay(this);
|
|
@@ -1394,9 +1758,6 @@ __decorate([
|
|
|
1394
1758
|
__decorate([
|
|
1395
1759
|
ignoreFromSerialization
|
|
1396
1760
|
], IdCaptureOverlay.prototype, "view", void 0);
|
|
1397
|
-
__decorate([
|
|
1398
|
-
nameForSerialization('idLayout')
|
|
1399
|
-
], IdCaptureOverlay.prototype, "_idLayout", void 0);
|
|
1400
1761
|
__decorate([
|
|
1401
1762
|
nameForSerialization('idLayoutStyle')
|
|
1402
1763
|
], IdCaptureOverlay.prototype, "_idLayoutStyle", void 0);
|
|
@@ -1428,15 +1789,80 @@ __decorate([
|
|
|
1428
1789
|
ignoreFromSerialization
|
|
1429
1790
|
], IdCaptureOverlay, "idCaptureDefaults", null);
|
|
1430
1791
|
|
|
1792
|
+
class SingleSideScanner extends DefaultSerializeable {
|
|
1793
|
+
constructor(barcode, machineReadableZone, visualInspectionZone) {
|
|
1794
|
+
super();
|
|
1795
|
+
this._isFull = false;
|
|
1796
|
+
this._barcode = barcode;
|
|
1797
|
+
this._machineReadableZone = machineReadableZone;
|
|
1798
|
+
this._visualInspectionZone = visualInspectionZone;
|
|
1799
|
+
this.options = {
|
|
1800
|
+
barcode: this._barcode,
|
|
1801
|
+
machineReadableZone: this._machineReadableZone,
|
|
1802
|
+
visualInspectionZone: this._visualInspectionZone
|
|
1803
|
+
};
|
|
1804
|
+
}
|
|
1805
|
+
get barcode() {
|
|
1806
|
+
return this._barcode;
|
|
1807
|
+
}
|
|
1808
|
+
get machineReadableZone() {
|
|
1809
|
+
return this._machineReadableZone;
|
|
1810
|
+
}
|
|
1811
|
+
get visualInspectionZone() {
|
|
1812
|
+
return this._visualInspectionZone;
|
|
1813
|
+
}
|
|
1814
|
+
}
|
|
1815
|
+
__decorate([
|
|
1816
|
+
nameForSerialization('isFull')
|
|
1817
|
+
], SingleSideScanner.prototype, "_isFull", void 0);
|
|
1818
|
+
__decorate([
|
|
1819
|
+
ignoreFromSerialization
|
|
1820
|
+
], SingleSideScanner.prototype, "_barcode", void 0);
|
|
1821
|
+
__decorate([
|
|
1822
|
+
ignoreFromSerialization
|
|
1823
|
+
], SingleSideScanner.prototype, "_machineReadableZone", void 0);
|
|
1824
|
+
__decorate([
|
|
1825
|
+
ignoreFromSerialization
|
|
1826
|
+
], SingleSideScanner.prototype, "_visualInspectionZone", void 0);
|
|
1827
|
+
|
|
1828
|
+
class FullDocumentScanner extends DefaultSerializeable {
|
|
1829
|
+
constructor() {
|
|
1830
|
+
super();
|
|
1831
|
+
this._isFull = true;
|
|
1832
|
+
this._barcode = true;
|
|
1833
|
+
this._machineReadableZone = true;
|
|
1834
|
+
this._visualInspectionZone = true;
|
|
1835
|
+
this.options = {
|
|
1836
|
+
barcode: this._barcode,
|
|
1837
|
+
machineReadableZone: this._machineReadableZone,
|
|
1838
|
+
visualInspectionZone: this._visualInspectionZone
|
|
1839
|
+
};
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
__decorate([
|
|
1843
|
+
nameForSerialization('isFull')
|
|
1844
|
+
], FullDocumentScanner.prototype, "_isFull", void 0);
|
|
1845
|
+
__decorate([
|
|
1846
|
+
ignoreFromSerialization
|
|
1847
|
+
], FullDocumentScanner.prototype, "_barcode", void 0);
|
|
1848
|
+
__decorate([
|
|
1849
|
+
ignoreFromSerialization
|
|
1850
|
+
], FullDocumentScanner.prototype, "_machineReadableZone", void 0);
|
|
1851
|
+
__decorate([
|
|
1852
|
+
ignoreFromSerialization
|
|
1853
|
+
], FullDocumentScanner.prototype, "_visualInspectionZone", void 0);
|
|
1854
|
+
|
|
1431
1855
|
class IdCaptureSettings extends DefaultSerializeable {
|
|
1432
1856
|
constructor() {
|
|
1433
1857
|
super();
|
|
1434
1858
|
this.properties = {};
|
|
1435
1859
|
this.imageToResult = {};
|
|
1436
|
-
this.supportedDocuments = [];
|
|
1437
|
-
this.supportedSides = SupportedSides.FrontOnly;
|
|
1438
1860
|
this.anonymizationMode = IdCaptureSettings.idCaptureDefaults.IdCapture.IdCaptureSettings.anonymizationMode;
|
|
1439
1861
|
this.rejectVoidedIds = IdCaptureSettings.idCaptureDefaults.IdCapture.IdCaptureSettings.rejectVoidedIds;
|
|
1862
|
+
this.decodeBackOfEuropeanDrivingLicense = IdCaptureSettings.idCaptureDefaults.IdCapture.IdCaptureSettings.decodeBackOfEuropeanDrivingLicense;
|
|
1863
|
+
this.acceptedDocuments = [];
|
|
1864
|
+
this.rejectedDocuments = [];
|
|
1865
|
+
this.scannerType = new SingleSideScanner(false, false, false);
|
|
1440
1866
|
}
|
|
1441
1867
|
static get idCaptureDefaults() {
|
|
1442
1868
|
return FactoryMaker.getInstance('IdDefaults');
|
|
@@ -1499,245 +1925,4 @@ __decorate([
|
|
|
1499
1925
|
ignoreFromSerialization
|
|
1500
1926
|
], AamvaBarcodeVerifier.prototype, "controller", void 0);
|
|
1501
1927
|
|
|
1502
|
-
|
|
1503
|
-
get checksPassed() { return this.json.checksPassed; }
|
|
1504
|
-
get resultDescription() { return this.json.resultDescription; }
|
|
1505
|
-
get issuingCountryIsoMatch() {
|
|
1506
|
-
return StringComparisonCheck
|
|
1507
|
-
.fromJSON(this.json.issuingCountryIsoMatch);
|
|
1508
|
-
}
|
|
1509
|
-
get issuingJurisdictionIsoMatch() {
|
|
1510
|
-
return StringComparisonCheck
|
|
1511
|
-
.fromJSON(this.json.issuingJurisdictionIsoMatch);
|
|
1512
|
-
}
|
|
1513
|
-
get documentNumbersMatch() {
|
|
1514
|
-
return StringComparisonCheck
|
|
1515
|
-
.fromJSON(this.json.documentNumbersMatch);
|
|
1516
|
-
}
|
|
1517
|
-
get fullNamesMatch() {
|
|
1518
|
-
return StringComparisonCheck
|
|
1519
|
-
.fromJSON(this.json.fullNamesMatch);
|
|
1520
|
-
}
|
|
1521
|
-
get datesOfBirthMatch() {
|
|
1522
|
-
return DateComparisonCheck
|
|
1523
|
-
.fromJSON(this.json.datesOfBirthMatch);
|
|
1524
|
-
}
|
|
1525
|
-
get datesOfExpiryMatch() {
|
|
1526
|
-
return DateComparisonCheck
|
|
1527
|
-
.fromJSON(this.json.datesOfExpiryMatch);
|
|
1528
|
-
}
|
|
1529
|
-
get datesOfIssueMatch() {
|
|
1530
|
-
return DateComparisonCheck
|
|
1531
|
-
.fromJSON(this.json.datesOfIssueMatch);
|
|
1532
|
-
}
|
|
1533
|
-
get frontMismatchImage() {
|
|
1534
|
-
return this.json.frontMismatchImage;
|
|
1535
|
-
}
|
|
1536
|
-
static fromJSON(json) {
|
|
1537
|
-
const result = new AamvaVizBarcodeComparisonResult();
|
|
1538
|
-
result.json = json;
|
|
1539
|
-
return result;
|
|
1540
|
-
}
|
|
1541
|
-
}
|
|
1542
|
-
|
|
1543
|
-
class AamvaVizBarcodeComparisonVerifier {
|
|
1544
|
-
constructor() {
|
|
1545
|
-
this.controller = new IdCaptureController();
|
|
1546
|
-
}
|
|
1547
|
-
static create() {
|
|
1548
|
-
return new AamvaVizBarcodeComparisonVerifier();
|
|
1549
|
-
}
|
|
1550
|
-
verify(capturedId) {
|
|
1551
|
-
// Necessary for not exposing internal API on CapturedId, while only passing the private "json" property
|
|
1552
|
-
// to native iOS and Android.
|
|
1553
|
-
const capturedIdAsString = JSON.stringify(capturedId);
|
|
1554
|
-
const capturedIdJsonData = JSON.parse(capturedIdAsString).json;
|
|
1555
|
-
return new Promise((resolve, reject) => {
|
|
1556
|
-
this.controller
|
|
1557
|
-
.verifyCapturedId(JSON.stringify(capturedIdJsonData))
|
|
1558
|
-
.then((json) => {
|
|
1559
|
-
if (!json) {
|
|
1560
|
-
resolve(AamvaVizBarcodeComparisonResult
|
|
1561
|
-
.fromJSON(JSON.parse('{}')));
|
|
1562
|
-
}
|
|
1563
|
-
else {
|
|
1564
|
-
resolve(AamvaVizBarcodeComparisonResult
|
|
1565
|
-
.fromJSON(JSON.parse(json)));
|
|
1566
|
-
}
|
|
1567
|
-
}, reject);
|
|
1568
|
-
});
|
|
1569
|
-
}
|
|
1570
|
-
}
|
|
1571
|
-
__decorate([
|
|
1572
|
-
ignoreFromSerialization
|
|
1573
|
-
], AamvaVizBarcodeComparisonVerifier.prototype, "controller", void 0);
|
|
1574
|
-
|
|
1575
|
-
var CapturedResultType;
|
|
1576
|
-
(function (CapturedResultType) {
|
|
1577
|
-
CapturedResultType["AAMVABarcodeResult"] = "aamvaBarcodeResult";
|
|
1578
|
-
CapturedResultType["ArgentinaIdBarcodeResult"] = "argentinaIdBarcodeResult";
|
|
1579
|
-
CapturedResultType["ColombiaIdBarcodeResult"] = "colombiaIdBarcodeResult";
|
|
1580
|
-
CapturedResultType["ColombiaDlBarcodeResult"] = "colombiaDlBarcodeResult";
|
|
1581
|
-
CapturedResultType["MRZResult"] = "mrzResult";
|
|
1582
|
-
CapturedResultType["SouthAfricaDlBarcodeResult"] = "southAfricaDlBarcodeResult";
|
|
1583
|
-
CapturedResultType["SouthAfricaIdBarcodeResult"] = "southAfricaIdBarcodeResult";
|
|
1584
|
-
CapturedResultType["CommonAccessCardBarcodeResult"] = "commonAccessCardBarcodeResult";
|
|
1585
|
-
CapturedResultType["USUniformedServicesBarcodeResult"] = "usUniformedServicesBarcodeResult";
|
|
1586
|
-
CapturedResultType["USVisaVIZResult"] = "usVisaVizResult";
|
|
1587
|
-
CapturedResultType["VIZResult"] = "vizResult";
|
|
1588
|
-
CapturedResultType["ChinaMainlandTravelPermitMRZResult"] = "chinaMainlandTravelPermitMrzResult";
|
|
1589
|
-
CapturedResultType["ChinaExitEntryPermitMRZResult"] = "chinaExitEntryPermitMrzResult";
|
|
1590
|
-
CapturedResultType["ChinaOneWayPermitBackMrzResult"] = "chinaOneWayPermitBackMrzResult";
|
|
1591
|
-
CapturedResultType["ChinaOneWayPermitFrontMrzResult"] = "chinaOneWayPermitFrontMrzResult";
|
|
1592
|
-
CapturedResultType["ApecBusinessTravelCardMrzResult"] = "apecBusinessTravelCardMrzResult";
|
|
1593
|
-
})(CapturedResultType || (CapturedResultType = {}));
|
|
1594
|
-
|
|
1595
|
-
var DocumentType;
|
|
1596
|
-
(function (DocumentType) {
|
|
1597
|
-
DocumentType["None"] = "none";
|
|
1598
|
-
DocumentType["ConsularId"] = "consularId";
|
|
1599
|
-
DocumentType["DrivingLicense"] = "drivingLicense";
|
|
1600
|
-
DocumentType["DrivingLicensePublicServicesCard"] = "drivingLicensePublicServicesCard";
|
|
1601
|
-
DocumentType["EmploymentPass"] = "employmentPass";
|
|
1602
|
-
DocumentType["FinCard"] = "finCard";
|
|
1603
|
-
DocumentType["Id"] = "id";
|
|
1604
|
-
DocumentType["MultipurposeId"] = "multipurposeId";
|
|
1605
|
-
DocumentType["MyKad"] = "myKad";
|
|
1606
|
-
DocumentType["MyKid"] = "myKid";
|
|
1607
|
-
DocumentType["MyPR"] = "myPr";
|
|
1608
|
-
DocumentType["MyTentera"] = "myTentera";
|
|
1609
|
-
DocumentType["PanCard"] = "panCard";
|
|
1610
|
-
DocumentType["ProfessionalId"] = "professionalId";
|
|
1611
|
-
DocumentType["PublicServicesCard"] = "publicServicesCard";
|
|
1612
|
-
DocumentType["ResidencePermit"] = "residencePermit";
|
|
1613
|
-
DocumentType["ResidentId"] = "residentId";
|
|
1614
|
-
DocumentType["TemporaryResidencePermit"] = "temporaryResidencePermit";
|
|
1615
|
-
DocumentType["VoterId"] = "voterId";
|
|
1616
|
-
DocumentType["WorkPermit"] = "workPermit";
|
|
1617
|
-
DocumentType["IKad"] = "iKad";
|
|
1618
|
-
DocumentType["MilitaryId"] = "militaryId";
|
|
1619
|
-
DocumentType["MyKas"] = "myKas";
|
|
1620
|
-
DocumentType["SocialSecurityCard"] = "socialSecurityCard";
|
|
1621
|
-
DocumentType["HealthInsuranceCard"] = "healthInsuranceCard";
|
|
1622
|
-
DocumentType["Passport"] = "passport";
|
|
1623
|
-
DocumentType["DiplomaticPassport"] = "diplomaticPassport";
|
|
1624
|
-
DocumentType["ServicePassport"] = "servicePassport";
|
|
1625
|
-
DocumentType["TemporaryPassport"] = "temporaryPassport";
|
|
1626
|
-
DocumentType["Visa"] = "visa";
|
|
1627
|
-
DocumentType["SPass"] = "sPass";
|
|
1628
|
-
DocumentType["AddressCard"] = "addressCard";
|
|
1629
|
-
DocumentType["AlienId"] = "alienId";
|
|
1630
|
-
DocumentType["AlienPassport"] = "alienPassport";
|
|
1631
|
-
DocumentType["GreenCard"] = "greenCard";
|
|
1632
|
-
DocumentType["MinorsId"] = "minorsId";
|
|
1633
|
-
DocumentType["PostalId"] = "postalId";
|
|
1634
|
-
DocumentType["ProfessionalDl"] = "professionalDl";
|
|
1635
|
-
DocumentType["TaxId"] = "taxId";
|
|
1636
|
-
DocumentType["WeaponPermit"] = "weaponPermit";
|
|
1637
|
-
DocumentType["BorderCrossingCard"] = "borderCrossingCard";
|
|
1638
|
-
DocumentType["DriverCard"] = "driverCard";
|
|
1639
|
-
DocumentType["GlobalEntryCard"] = "globalEntryCard";
|
|
1640
|
-
DocumentType["MyPolis"] = "myPolis";
|
|
1641
|
-
DocumentType["NexusCard"] = "nexusCard";
|
|
1642
|
-
DocumentType["PassportCard"] = "passportCard";
|
|
1643
|
-
DocumentType["ProofOfAgeCard"] = "proofOfAgeCard";
|
|
1644
|
-
DocumentType["RefugeeId"] = "refugeeId";
|
|
1645
|
-
DocumentType["TribalId"] = "tribalId";
|
|
1646
|
-
DocumentType["VeteranId"] = "veteranId";
|
|
1647
|
-
DocumentType["CitizenshipCertificate"] = "citizenshipCertificate";
|
|
1648
|
-
DocumentType["MyNumberCard"] = "myNumberCard";
|
|
1649
|
-
DocumentType["MinorsPassport"] = "minorsPassport";
|
|
1650
|
-
DocumentType["MinorsPublicServicesCard"] = "minorsPublicServicesCard";
|
|
1651
|
-
DocumentType["AsylumRequest"] = "asylumRequest";
|
|
1652
|
-
DocumentType["DriverQualificationCard"] = "driverQualificationCard";
|
|
1653
|
-
DocumentType["ProvisionalDl"] = "provisionalDl";
|
|
1654
|
-
DocumentType["RefugeePassport"] = "refugeePassport";
|
|
1655
|
-
DocumentType["SpecialId"] = "specialId";
|
|
1656
|
-
DocumentType["UniformedServicesId"] = "uniformedServicesId";
|
|
1657
|
-
DocumentType["ImmigrantVisa"] = "immigrantVisa";
|
|
1658
|
-
DocumentType["ConsularVoterId"] = "consularVoterId";
|
|
1659
|
-
DocumentType["TwicCard"] = "twicCard";
|
|
1660
|
-
DocumentType["ExitEntryPermit"] = "exitEntryPermit";
|
|
1661
|
-
DocumentType["MainlandTravelPermitHongKongMacau"] = "mainlandTravelPermitHongKongMacau";
|
|
1662
|
-
DocumentType["MainlandTravelPermitTaiwan"] = "mainlandTravelPermitTaiwan";
|
|
1663
|
-
DocumentType["NbiClearance"] = "nbiClearance";
|
|
1664
|
-
DocumentType["ProofOfRegistration"] = "proofOfRegistration";
|
|
1665
|
-
DocumentType["TemporaryProtectionPermit"] = "temporaryProtectionPermit";
|
|
1666
|
-
DocumentType["MunicipalId"] = "municipalId";
|
|
1667
|
-
DocumentType["AfghanCitizenCard"] = "afghanCitizenCard";
|
|
1668
|
-
DocumentType["Eid"] = "eid";
|
|
1669
|
-
DocumentType["Pass"] = "pass";
|
|
1670
|
-
DocumentType["SisId"] = "sisId";
|
|
1671
|
-
DocumentType["MedicalMarijuanaCard"] = "medicalMarijuanaCard";
|
|
1672
|
-
DocumentType["AsicCard"] = "asicCard";
|
|
1673
|
-
DocumentType["BidoonCard"] = "bidoonCard";
|
|
1674
|
-
DocumentType["InterimHealthInsuranceCard"] = "interimHealthInsuranceCard";
|
|
1675
|
-
DocumentType["NonVoterId"] = "nonVoterId";
|
|
1676
|
-
DocumentType["ReciprocalHealthInsuranceCard"] = "reciprocalHealthInsuranceCard";
|
|
1677
|
-
DocumentType["VehicleRegistration"] = "vehicleRegistration";
|
|
1678
|
-
})(DocumentType || (DocumentType = {}));
|
|
1679
|
-
|
|
1680
|
-
class VizMrzComparisonResult {
|
|
1681
|
-
get checksPassed() { return this.json.checksPassed; }
|
|
1682
|
-
get resultDescription() { return this.json.resultDescription; }
|
|
1683
|
-
get issuingCountryIsoMatch() {
|
|
1684
|
-
return VizMrzStringComparisonCheck
|
|
1685
|
-
.fromJSON(this.json.issuingCountryIsoMatch);
|
|
1686
|
-
}
|
|
1687
|
-
get documentNumbersMatch() {
|
|
1688
|
-
return VizMrzStringComparisonCheck
|
|
1689
|
-
.fromJSON(this.json.documentNumbersMatch);
|
|
1690
|
-
}
|
|
1691
|
-
get fullNamesMatch() {
|
|
1692
|
-
return VizMrzStringComparisonCheck
|
|
1693
|
-
.fromJSON(this.json.fullNamesMatch);
|
|
1694
|
-
}
|
|
1695
|
-
get datesOfBirthMatch() {
|
|
1696
|
-
return VizMrzDateComparisonCheck
|
|
1697
|
-
.fromJSON(this.json.datesOfBirthMatch);
|
|
1698
|
-
}
|
|
1699
|
-
get datesOfExpiryMatch() {
|
|
1700
|
-
return VizMrzDateComparisonCheck
|
|
1701
|
-
.fromJSON(this.json.datesOfExpiryMatch);
|
|
1702
|
-
}
|
|
1703
|
-
static fromJSON(json) {
|
|
1704
|
-
const result = new VizMrzComparisonResult();
|
|
1705
|
-
result.json = json;
|
|
1706
|
-
return result;
|
|
1707
|
-
}
|
|
1708
|
-
}
|
|
1709
|
-
|
|
1710
|
-
class VizMrzComparisonVerifier {
|
|
1711
|
-
constructor() {
|
|
1712
|
-
this.controller = new IdCaptureController();
|
|
1713
|
-
}
|
|
1714
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1715
|
-
static create(context) {
|
|
1716
|
-
return new VizMrzComparisonVerifier();
|
|
1717
|
-
}
|
|
1718
|
-
verify(capturedId) {
|
|
1719
|
-
// Necessary for not exposing internal API on CapturedId, while only passing the private "json" property
|
|
1720
|
-
// to native iOS and Android.
|
|
1721
|
-
const capturedIdAsString = JSON.stringify(capturedId);
|
|
1722
|
-
const capturedIdJsonData = JSON.parse(capturedIdAsString).json;
|
|
1723
|
-
return new Promise((resolve, reject) => {
|
|
1724
|
-
this.controller
|
|
1725
|
-
.verifyVizMrz(JSON.stringify(capturedIdJsonData))
|
|
1726
|
-
.then((json) => {
|
|
1727
|
-
if (!json) {
|
|
1728
|
-
resolve(VizMrzComparisonResult
|
|
1729
|
-
.fromJSON(JSON.parse('{}')));
|
|
1730
|
-
}
|
|
1731
|
-
else {
|
|
1732
|
-
resolve(VizMrzComparisonResult
|
|
1733
|
-
.fromJSON(JSON.parse(json)));
|
|
1734
|
-
}
|
|
1735
|
-
}, reject);
|
|
1736
|
-
});
|
|
1737
|
-
}
|
|
1738
|
-
}
|
|
1739
|
-
__decorate([
|
|
1740
|
-
ignoreFromSerialization
|
|
1741
|
-
], VizMrzComparisonVerifier.prototype, "controller", void 0);
|
|
1742
|
-
|
|
1743
|
-
export { AAMVABarcodeResult, AamvaBarcodeVerificationResult, AamvaBarcodeVerificationStatus, 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, RejectionReason, SouthAfricaDlBarcodeResult, SouthAfricaIdBarcodeResult, StringComparisonCheck, SupportedSides, TextHintPosition, USUniformedServicesBarcodeResult, USVisaVIZResult, VIZResult, VehicleRestriction, VizMrzComparisonCheckResult, VizMrzComparisonResult, VizMrzComparisonVerifier, VizMrzDateComparisonCheck, VizMrzStringComparisonCheck, getIdDefaults, loadIdDefaults, parseIdDefaults };
|
|
1928
|
+
export { AamvaBarcodeVerificationResult, AamvaBarcodeVerificationStatus, AamvaBarcodeVerifier, BarcodeResult, CapturedId, CapturedSides, CommonCapturedIdFields, DateResult, DriverLicense, FullDocumentScanner, HealthInsuranceCard, IdAnonymizationMode, IdCapture, IdCaptureController, IdCaptureDocumentType, IdCaptureFeedback, IdCaptureListenerController, IdCaptureListenerEvents, IdCaptureOverlay, IdCaptureRegion, IdCaptureSettings, IdCard, IdImageType, IdImages, IdLayoutLineStyle, IdLayoutStyle, IdSide, MRZResult, Passport, ProfessionalDrivingPermit, RegionSpecific, RegionSpecificSubtype, RejectionReason, ResidencePermit, SingleSideScanner, TextHintPosition, VIZResult, VehicleRestriction, VisaIcao, getIdDefaults, loadIdDefaults, parseIdDefaults };
|