scandit-datacapture-frameworks-id 6.28.1 → 7.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dts/common/IdCaptureRegion.d.ts +254 -0
- package/dist/dts/common/IdImageType.d.ts +2 -2
- package/dist/dts/common/IdImages.d.ts +13 -0
- package/dist/dts/common/IdSide.d.ts +4 -0
- package/dist/dts/common/RegionSpecificSubtype.d.ts +66 -0
- package/dist/dts/common/RejectionReason.d.ts +4 -3
- package/dist/dts/common/index.d.ts +4 -11
- package/dist/dts/defaults/IdDefaults.d.ts +1 -1
- package/dist/dts/defaults/SerializedTypes.d.ts +40 -157
- package/dist/dts/id/BarcodeResult.d.ts +97 -0
- package/dist/dts/id/CapturedId.d.ts +19 -46
- package/dist/dts/id/CapturedResultType.d.ts +2 -15
- package/dist/dts/id/CommonCapturedIdFields.d.ts +5 -3
- package/dist/dts/id/MRZResult.d.ts +10 -0
- package/dist/dts/id/VIZResult.d.ts +6 -0
- package/dist/dts/id/index.d.ts +1 -19
- package/dist/dts/idcapture/IdCaptureFeedback.d.ts +0 -3
- package/dist/dts/idcapture/IdCaptureListener.d.ts +4 -12
- package/dist/dts/idcapture/IdCaptureOverlay.d.ts +0 -3
- package/dist/dts/idcapture/IdCaptureSettings.d.ts +7 -3
- package/dist/dts/idcapture/controller/IdCaptureController.d.ts +0 -4
- package/dist/dts/idcapture/controller/IdCaptureListenerController.d.ts +0 -2
- package/dist/dts/idcapture/controller/IdCaptureListenerProxy.d.ts +1 -7
- package/dist/dts/idcapture/index.d.ts +0 -3
- package/dist/dts/iddocumenttype/DriverLicense.d.ts +16 -0
- package/dist/dts/iddocumenttype/HealthInsuranceCard.d.ts +16 -0
- package/dist/dts/iddocumenttype/IdCaptureDocument.d.ts +11 -0
- package/dist/dts/iddocumenttype/IdCaptureDocumentType.d.ts +9 -0
- package/dist/dts/iddocumenttype/IdCard.d.ts +16 -0
- package/dist/dts/iddocumenttype/Passport.d.ts +16 -0
- package/dist/dts/iddocumenttype/RegionSpecific.d.ts +19 -0
- package/dist/dts/iddocumenttype/ResidencePermit.d.ts +16 -0
- package/dist/dts/iddocumenttype/VisaIcao.d.ts +16 -0
- package/dist/dts/iddocumenttype/index.d.ts +9 -0
- package/dist/dts/index.d.ts +2 -0
- package/dist/dts/scanner/FullDocumentScanner.d.ts +10 -0
- package/dist/dts/scanner/IdCaptureScanner.d.ts +2 -0
- package/dist/dts/scanner/SingleSideScanner.d.ts +13 -0
- package/dist/dts/scanner/index.d.ts +3 -0
- package/dist/index.js +1129 -934
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/dts/common/ComparisonCheck.d.ts +0 -7
- package/dist/dts/common/ComparisonCheckResult.d.ts +0 -5
- package/dist/dts/common/DateComparisonCheck.d.ts +0 -15
- package/dist/dts/common/IdDocumentType.d.ts +0 -22
- package/dist/dts/common/LocalizedOnlyId.d.ts +0 -10
- package/dist/dts/common/RejectedId.d.ts +0 -13
- package/dist/dts/common/StringComparisonCheck.d.ts +0 -14
- package/dist/dts/common/VizMrzComparisonCheck.d.ts +0 -7
- package/dist/dts/common/VizMrzComparisonCheckResult.d.ts +0 -5
- package/dist/dts/common/VizMrzDateComparisonCheck.d.ts +0 -15
- package/dist/dts/common/VizMrzStringComparisonCheck.d.ts +0 -14
- package/dist/dts/id/AAMVABarcodeResult.d.ts +0 -41
- package/dist/dts/id/AamvaVizBarcodeComparisonResult.d.ts +0 -20
- package/dist/dts/id/AamvaVizBarcodeComparisonVerifier.d.ts +0 -7
- package/dist/dts/id/ApecBusinessTravelCardMrzResult.d.ts +0 -14
- package/dist/dts/id/ArgentinaIdBarcodeResult.d.ts +0 -10
- package/dist/dts/id/ChinaExitEntryPermitMRZResult.d.ts +0 -10
- package/dist/dts/id/ChinaMainlandTravelPermitMRZResult.d.ts +0 -16
- package/dist/dts/id/ChinaOneWayPermitBackMrzResult.d.ts +0 -11
- package/dist/dts/id/ChinaOneWayPermitFrontMrzResult.d.ts +0 -11
- package/dist/dts/id/ColombiaDlBarcodeResult.d.ts +0 -10
- package/dist/dts/id/ColombiaIdBarcodeResult.d.ts +0 -9
- package/dist/dts/id/CommonAccessCardBarcodeResult.d.ts +0 -20
- package/dist/dts/id/DocumentType.d.ts +0 -83
- package/dist/dts/id/SouthAfricaDlBarcodeResult.d.ts +0 -18
- package/dist/dts/id/SouthAfricaIdBarcodeResult.d.ts +0 -12
- package/dist/dts/id/USUniformedServicesBarcodeResult.d.ts +0 -46
- package/dist/dts/id/USVisaVIZResult.d.ts +0 -10
- package/dist/dts/id/VizMrzComparisonResult.d.ts +0 -17
- package/dist/dts/id/VizMrzComparisonVerifier.d.ts +0 -8
- package/dist/dts/idcapture/IdCaptureError.d.ts +0 -11
- package/dist/dts/idcapture/IdCaptureSession.d.ts +0 -23
- package/dist/dts/idcapture/IdLayout.d.ts +0 -10
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
export declare enum IdCaptureRegion {
|
|
2
|
+
Any = "any",
|
|
3
|
+
EuAndSchengen = "euAndSchengen",
|
|
4
|
+
Aruba = "aruba",
|
|
5
|
+
Afghanistan = "afghanistan",
|
|
6
|
+
Angola = "angola",
|
|
7
|
+
Anguilla = "anguilla",
|
|
8
|
+
AlandIslands = "alandIslands",
|
|
9
|
+
Albania = "albania",
|
|
10
|
+
Andorra = "andorra",
|
|
11
|
+
Uae = "uae",
|
|
12
|
+
Argentina = "argentina",
|
|
13
|
+
Armenia = "armenia",
|
|
14
|
+
AmericanSamoa = "americanSamoa",
|
|
15
|
+
Antarctica = "antarctica",
|
|
16
|
+
FrenchSouthernTerritories = "frenchSouthernTerritories",
|
|
17
|
+
AntiguaAndBarbuda = "antiguaAndBarbuda",
|
|
18
|
+
Australia = "australia",
|
|
19
|
+
Austria = "austria",
|
|
20
|
+
Azerbaijan = "azerbaijan",
|
|
21
|
+
Burundi = "burundi",
|
|
22
|
+
Belgium = "belgium",
|
|
23
|
+
Benin = "benin",
|
|
24
|
+
BonaireSintEustatiusAndSaba = "bonaireSintEustatiusAndSaba",
|
|
25
|
+
BurkinaFaso = "burkinaFaso",
|
|
26
|
+
Bangladesh = "bangladesh",
|
|
27
|
+
Bulgaria = "bulgaria",
|
|
28
|
+
Bahrain = "bahrain",
|
|
29
|
+
Bahamas = "bahamas",
|
|
30
|
+
BosniaHerzegovina = "bosniaHerzegovina",
|
|
31
|
+
SaintBarthelemy = "saintBarthelemy",
|
|
32
|
+
Belarus = "belarus",
|
|
33
|
+
Belize = "belize",
|
|
34
|
+
Bermuda = "bermuda",
|
|
35
|
+
Bolivia = "bolivia",
|
|
36
|
+
Brazil = "brazil",
|
|
37
|
+
Barbados = "barbados",
|
|
38
|
+
BruneiDarussalam = "bruneiDarussalam",
|
|
39
|
+
Bhutan = "bhutan",
|
|
40
|
+
BouvetIsland = "bouvetIsland",
|
|
41
|
+
Botswana = "botswana",
|
|
42
|
+
Car = "car",
|
|
43
|
+
Canada = "canada",
|
|
44
|
+
CocosIslands = "cocosIslands",
|
|
45
|
+
Switzerland = "switzerland",
|
|
46
|
+
Chile = "chile",
|
|
47
|
+
China = "china",
|
|
48
|
+
CoteIvoire = "coteIvoire",
|
|
49
|
+
Cameroon = "cameroon",
|
|
50
|
+
DemocraticRepublicOfCongo = "democraticRepublicOfCongo",
|
|
51
|
+
Congo = "congo",
|
|
52
|
+
CookIslands = "cookIslands",
|
|
53
|
+
Colombia = "colombia",
|
|
54
|
+
Comoros = "comoros",
|
|
55
|
+
CaboVerde = "caboVerde",
|
|
56
|
+
CostaRica = "costaRica",
|
|
57
|
+
Cuba = "cuba",
|
|
58
|
+
Curacao = "curacao",
|
|
59
|
+
ChristmasIsland = "christmasIsland",
|
|
60
|
+
CaymanIslands = "caymanIslands",
|
|
61
|
+
Cyprus = "cyprus",
|
|
62
|
+
Czechia = "czechia",
|
|
63
|
+
Germany = "germany",
|
|
64
|
+
Djibouti = "djibouti",
|
|
65
|
+
Dominica = "dominica",
|
|
66
|
+
Denmark = "denmark",
|
|
67
|
+
DominicanRepublic = "dominicanRepublic",
|
|
68
|
+
Algeria = "algeria",
|
|
69
|
+
Ecuador = "ecuador",
|
|
70
|
+
Egypt = "egypt",
|
|
71
|
+
Eritrea = "eritrea",
|
|
72
|
+
WesternSahara = "westernSahara",
|
|
73
|
+
Spain = "spain",
|
|
74
|
+
Estonia = "estonia",
|
|
75
|
+
Ethiopia = "ethiopia",
|
|
76
|
+
Finland = "finland",
|
|
77
|
+
Fiji = "fiji",
|
|
78
|
+
FalklandIslands = "falklandIslands",
|
|
79
|
+
France = "france",
|
|
80
|
+
FaroeIslands = "faroeIslands",
|
|
81
|
+
Micronesia = "micronesia",
|
|
82
|
+
Gabon = "gabon",
|
|
83
|
+
Uk = "uk",
|
|
84
|
+
Georgia = "georgia",
|
|
85
|
+
Guernsey = "guernsey",
|
|
86
|
+
Ghana = "ghana",
|
|
87
|
+
Gibraltar = "gibraltar",
|
|
88
|
+
Guinea = "guinea",
|
|
89
|
+
Guadeloupe = "guadeloupe",
|
|
90
|
+
Gambia = "gambia",
|
|
91
|
+
GuineaBissau = "guineaBissau",
|
|
92
|
+
EquatorialGuinea = "equatorialGuinea",
|
|
93
|
+
Greece = "greece",
|
|
94
|
+
Grenada = "grenada",
|
|
95
|
+
Greenland = "greenland",
|
|
96
|
+
Guatemala = "guatemala",
|
|
97
|
+
FrenchGuiana = "frenchGuiana",
|
|
98
|
+
Guam = "guam",
|
|
99
|
+
Guyana = "guyana",
|
|
100
|
+
HongKong = "hongKong",
|
|
101
|
+
HeardIslandAndMcDonaldIslands = "heardIslandAndMcDonaldIslands",
|
|
102
|
+
Honduras = "honduras",
|
|
103
|
+
Croatia = "croatia",
|
|
104
|
+
Haiti = "haiti",
|
|
105
|
+
Hungary = "hungary",
|
|
106
|
+
Indonesia = "indonesia",
|
|
107
|
+
IsleOfMan = "isleOfMan",
|
|
108
|
+
India = "india",
|
|
109
|
+
BritishIndianOceanTerritory = "britishIndianOceanTerritory",
|
|
110
|
+
Ireland = "ireland",
|
|
111
|
+
Iran = "iran",
|
|
112
|
+
Iraq = "iraq",
|
|
113
|
+
Iceland = "iceland",
|
|
114
|
+
Israel = "israel",
|
|
115
|
+
Italy = "italy",
|
|
116
|
+
Jamaica = "jamaica",
|
|
117
|
+
Jersey = "jersey",
|
|
118
|
+
Jordan = "jordan",
|
|
119
|
+
Japan = "japan",
|
|
120
|
+
Kazakhstan = "kazakhstan",
|
|
121
|
+
Kenya = "kenya",
|
|
122
|
+
Kyrgyzstan = "kyrgyzstan",
|
|
123
|
+
Cambodia = "cambodia",
|
|
124
|
+
Kiribati = "kiribati",
|
|
125
|
+
SaintKittsAndNevis = "saintKittsAndNevis",
|
|
126
|
+
SouthKorea = "southKorea",
|
|
127
|
+
Kuwait = "kuwait",
|
|
128
|
+
Lao = "lao",
|
|
129
|
+
Lebanon = "lebanon",
|
|
130
|
+
Liberia = "liberia",
|
|
131
|
+
Libya = "libya",
|
|
132
|
+
SaintLucia = "saintLucia",
|
|
133
|
+
Liechtenstein = "liechtenstein",
|
|
134
|
+
SriLanka = "sriLanka",
|
|
135
|
+
Lesotho = "lesotho",
|
|
136
|
+
Lithuania = "lithuania",
|
|
137
|
+
Luxembourg = "luxembourg",
|
|
138
|
+
Latvia = "latvia",
|
|
139
|
+
Macao = "macao",
|
|
140
|
+
FrenchSaintMartin = "frenchSaintMartin",
|
|
141
|
+
Morocco = "morocco",
|
|
142
|
+
Monaco = "monaco",
|
|
143
|
+
Moldova = "moldova",
|
|
144
|
+
Madagascar = "madagascar",
|
|
145
|
+
Maldives = "maldives",
|
|
146
|
+
Mexico = "mexico",
|
|
147
|
+
MarshallIslands = "marshallIslands",
|
|
148
|
+
NorthMacedonia = "northMacedonia",
|
|
149
|
+
Mali = "mali",
|
|
150
|
+
Malta = "malta",
|
|
151
|
+
Myanmar = "myanmar",
|
|
152
|
+
Montenegro = "montenegro",
|
|
153
|
+
Mongolia = "mongolia",
|
|
154
|
+
NorthernMarianaIslands = "northernMarianaIslands",
|
|
155
|
+
Mozambique = "mozambique",
|
|
156
|
+
Mauritania = "mauritania",
|
|
157
|
+
Montserrat = "montserrat",
|
|
158
|
+
Martinique = "martinique",
|
|
159
|
+
Mauritius = "mauritius",
|
|
160
|
+
Malawi = "malawi",
|
|
161
|
+
Malaysia = "malaysia",
|
|
162
|
+
Mayotte = "mayotte",
|
|
163
|
+
Namibia = "namibia",
|
|
164
|
+
NewCaledonia = "newCaledonia",
|
|
165
|
+
Niger = "niger",
|
|
166
|
+
NorfolkIsland = "norfolkIsland",
|
|
167
|
+
Nigeria = "nigeria",
|
|
168
|
+
Nicaragua = "nicaragua",
|
|
169
|
+
Niue = "niue",
|
|
170
|
+
Netherlands = "netherlands",
|
|
171
|
+
Norway = "norway",
|
|
172
|
+
Nepal = "nepal",
|
|
173
|
+
Nauru = "nauru",
|
|
174
|
+
NewZealand = "newZealand",
|
|
175
|
+
Oman = "oman",
|
|
176
|
+
Pakistan = "pakistan",
|
|
177
|
+
Panama = "panama",
|
|
178
|
+
Pitcairn = "pitcairn",
|
|
179
|
+
Peru = "peru",
|
|
180
|
+
Philippines = "philippines",
|
|
181
|
+
Palau = "palau",
|
|
182
|
+
PapuaNewGuinea = "papuaNewGuinea",
|
|
183
|
+
Poland = "poland",
|
|
184
|
+
PuertoRico = "puertoRico",
|
|
185
|
+
NorthKorea = "northKorea",
|
|
186
|
+
Portugal = "portugal",
|
|
187
|
+
Paraguay = "paraguay",
|
|
188
|
+
Palestine = "palestine",
|
|
189
|
+
FrenchPolynesia = "frenchPolynesia",
|
|
190
|
+
Qatar = "qatar",
|
|
191
|
+
Reunion = "reunion",
|
|
192
|
+
Romania = "romania",
|
|
193
|
+
Russia = "russia",
|
|
194
|
+
Rwanda = "rwanda",
|
|
195
|
+
SaudiArabia = "saudiArabia",
|
|
196
|
+
Sudan = "sudan",
|
|
197
|
+
Senegal = "senegal",
|
|
198
|
+
Singapore = "singapore",
|
|
199
|
+
SouthGeorgiaAndTheSouthSandwichIslands = "southGeorgiaAndTheSouthSandwichIslands",
|
|
200
|
+
SaintHelena = "saintHelena",
|
|
201
|
+
SvalbardAndJanMayen = "svalbardAndJanMayen",
|
|
202
|
+
SolomonIslands = "solomonIslands",
|
|
203
|
+
SierraLeone = "sierraLeone",
|
|
204
|
+
ElSalvador = "elSalvador",
|
|
205
|
+
SanMarino = "sanMarino",
|
|
206
|
+
Somalia = "somalia",
|
|
207
|
+
SaintPierreAndMiquelon = "saintPierreAndMiquelon",
|
|
208
|
+
Serbia = "serbia",
|
|
209
|
+
SouthSudan = "southSudan",
|
|
210
|
+
SaoTomeAndPrincipe = "saoTomeAndPrincipe",
|
|
211
|
+
Suriname = "suriname",
|
|
212
|
+
Slovakia = "slovakia",
|
|
213
|
+
Slovenia = "slovenia",
|
|
214
|
+
Sweden = "sweden",
|
|
215
|
+
Eswatini = "eswatini",
|
|
216
|
+
DutchSintMaarten = "dutchSintMaarten",
|
|
217
|
+
Seychelles = "seychelles",
|
|
218
|
+
Syria = "syria",
|
|
219
|
+
TurksAndCaicosIslands = "turksAndCaicosIslands",
|
|
220
|
+
Chad = "chad",
|
|
221
|
+
Togo = "togo",
|
|
222
|
+
Thailand = "thailand",
|
|
223
|
+
Tajikistan = "tajikistan",
|
|
224
|
+
Tokelau = "tokelau",
|
|
225
|
+
Turkmenistan = "turkmenistan",
|
|
226
|
+
TimorLeste = "timorLeste",
|
|
227
|
+
Tonga = "tonga",
|
|
228
|
+
TrinidadAndTobago = "trinidadAndTobago",
|
|
229
|
+
Tunisia = "tunisia",
|
|
230
|
+
Turkey = "turkey",
|
|
231
|
+
Tuvalu = "tuvalu",
|
|
232
|
+
Taiwan = "taiwan",
|
|
233
|
+
Tanzania = "tanzania",
|
|
234
|
+
Uganda = "uganda",
|
|
235
|
+
Ukraine = "ukraine",
|
|
236
|
+
UsMinorOutlyingIslands = "usMinorOutlyingIslands",
|
|
237
|
+
Uruguay = "uruguay",
|
|
238
|
+
Us = "us",
|
|
239
|
+
Uzbekistan = "uzbekistan",
|
|
240
|
+
HolySee = "holySee",
|
|
241
|
+
SaintVincentAndTheGrenadines = "saintVincentAndTheGrenadines",
|
|
242
|
+
Venezuela = "venezuela",
|
|
243
|
+
BritishVirginIslands = "britishVirginIslands",
|
|
244
|
+
UsVirginIslands = "usVirginIslands",
|
|
245
|
+
Vietnam = "vietnam",
|
|
246
|
+
Vanuatu = "vanuatu",
|
|
247
|
+
WallisAndFutuna = "wallisAndFutuna",
|
|
248
|
+
Samoa = "samoa",
|
|
249
|
+
Kosovo = "kosovo",
|
|
250
|
+
Yemen = "yemen",
|
|
251
|
+
SouthAfrica = "southAfrica",
|
|
252
|
+
Zambia = "zambia",
|
|
253
|
+
Zimbabwe = "zimbabwe"
|
|
254
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ImageInfoJSON } from "../defaults";
|
|
2
|
+
import { IdSide } from "./IdSide";
|
|
3
|
+
export declare class IdImages {
|
|
4
|
+
private json;
|
|
5
|
+
get face(): string | null;
|
|
6
|
+
get frame(): string | null;
|
|
7
|
+
getFrame(side: IdSide): string | null;
|
|
8
|
+
getCroppedDocument(side: IdSide): string | null;
|
|
9
|
+
private static fromJSON;
|
|
10
|
+
}
|
|
11
|
+
export interface PrivateIdImages {
|
|
12
|
+
fromJSON(json: ImageInfoJSON | null): IdImages;
|
|
13
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare enum RegionSpecificSubtype {
|
|
2
|
+
UsBorderCrossingCard = "usBorderCrossingCard",
|
|
3
|
+
ChinaExitEntryPermit = "chinaExitEntryPermit",
|
|
4
|
+
UsGlobalEntryCard = "usGlobalEntryCard",
|
|
5
|
+
ChinaMainlandTravelPermitTaiwan = "chinaMainlandTravelPermitTaiwan",
|
|
6
|
+
UsNexusCard = "usNexusCard",
|
|
7
|
+
ChinaMainlandTravelPermitHongKongMacau = "chinaMainlandTravelPermitHongKongMacau",
|
|
8
|
+
ApecBusinessTravelCard = "apecBusinessTravelCard",
|
|
9
|
+
PakistanAfghanCitizenCard = "pakistanAfghanCitizenCard",
|
|
10
|
+
SingaporeFinCard = "singaporeFinCard",
|
|
11
|
+
UsGreenCard = "usGreenCard",
|
|
12
|
+
MalaysiaIkad = "malaysiaIkad",
|
|
13
|
+
MalaysiaMykad = "malaysiaMykad",
|
|
14
|
+
MalaysiaMypr = "malaysiaMypr",
|
|
15
|
+
MexicoConsularVoterId = "mexicoConsularVoterId",
|
|
16
|
+
GermanyEid = "germanyEid",
|
|
17
|
+
UsCommonAccessCard = "usCommonAccessCard",
|
|
18
|
+
PhilippinesMultipurposeId = "philippinesMultipurposeId",
|
|
19
|
+
MalaysiaMykas = "malaysiaMykas",
|
|
20
|
+
MalaysiaMykid = "malaysiaMykid",
|
|
21
|
+
MalaysiaMytentera = "malaysiaMytentera",
|
|
22
|
+
MexicoProfessionalId = "mexicoProfessionalId",
|
|
23
|
+
MalaysiaRefugeeId = "malaysiaRefugeeId",
|
|
24
|
+
CanadaTribalId = "canadaTribalId",
|
|
25
|
+
UsUniformedServicesId = "usUniformedServicesId",
|
|
26
|
+
UsVeteranId = "usVeteranId",
|
|
27
|
+
PhilippinesWorkPermit = "philippinesWorkPermit",
|
|
28
|
+
SingaporeWorkPermit = "singaporeWorkPermit",
|
|
29
|
+
UsWorkPermit = "usWorkPermit",
|
|
30
|
+
PhilippinesSocialSecurityCard = "philippinesSocialSecurityCard",
|
|
31
|
+
SwedenSocialSecurityCard = "swedenSocialSecurityCard",
|
|
32
|
+
CanadaSocialSecurityCard = "canadaSocialSecurityCard",
|
|
33
|
+
UsSocialSecurityCard = "usSocialSecurityCard",
|
|
34
|
+
BelgiumMinorsId = "belgiumMinorsId",
|
|
35
|
+
ColombiaMinorsId = "colombiaMinorsId",
|
|
36
|
+
PeruMinorsId = "peruMinorsId",
|
|
37
|
+
BoliviaMinorsId = "boliviaMinorsId",
|
|
38
|
+
HungaryAddressCard = "hungaryAddressCard",
|
|
39
|
+
UkAsylumRequest = "ukAsylumRequest",
|
|
40
|
+
CanadaCitizenshipCertificate = "canadaCitizenshipCertificate",
|
|
41
|
+
SingaporeEmploymentPass = "singaporeEmploymentPass",
|
|
42
|
+
CanadaMinorsPublicServicesCard = "canadaMinorsPublicServicesCard",
|
|
43
|
+
MalaysiaMypolis = "malaysiaMypolis",
|
|
44
|
+
PhilippinesNbiClearance = "philippinesNbiClearance",
|
|
45
|
+
IndiaPanCard = "indiaPanCard",
|
|
46
|
+
PhilippinesPostalId = "philippinesPostalId",
|
|
47
|
+
PakistanProofOfRegistration = "pakistanProofOfRegistration",
|
|
48
|
+
SingaporeSPass = "singaporeSPass",
|
|
49
|
+
SwedenSisId = "swedenSisId",
|
|
50
|
+
ColombiaTemporaryProtectionPermit = "colombiaTemporaryProtectionPermit",
|
|
51
|
+
UsTwicCard = "usTwicCard",
|
|
52
|
+
UsWeaponPermit = "usWeaponPermit",
|
|
53
|
+
CanadaWeaponPermit = "canadaWeaponPermit",
|
|
54
|
+
IrelandPublicServicesCard = "irelandPublicServicesCard",
|
|
55
|
+
CanadaPublicServicesCard = "canadaPublicServicesCard",
|
|
56
|
+
PakistanConsularId = "pakistanConsularId",
|
|
57
|
+
GuatemalaConsularId = "guatemalaConsularId",
|
|
58
|
+
MexicoConsularId = "mexicoConsularId",
|
|
59
|
+
PhilippinesTaxId = "philippinesTaxId",
|
|
60
|
+
MexicoTaxId = "mexicoTaxId",
|
|
61
|
+
ChinaOneWayPermit = "chinaOneWayPermit",
|
|
62
|
+
UsMedicalMarijuanaCard = "usMedicalMarijuanaCard",
|
|
63
|
+
UsMunicipalId = "usMunicipalId",
|
|
64
|
+
AustraliaAsicCard = "australiaAsicCard",
|
|
65
|
+
UaeVehicleRegistrationCard = "uaeVehicleRegistrationCard"
|
|
66
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare enum RejectionReason {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
DocumentVoided = "documentVoided"
|
|
2
|
+
NotAcceptedDocumentType = "notAcceptedDocumentType",
|
|
3
|
+
InvalidFormat = "invalidFormat",
|
|
4
|
+
DocumentVoided = "documentVoided",
|
|
5
|
+
Timeout = "timeout"
|
|
5
6
|
}
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
export * from './ComparisonCheck';
|
|
2
|
-
export * from './ComparisonCheckResult';
|
|
3
|
-
export * from './DateComparisonCheck';
|
|
4
1
|
export * from './DateResult';
|
|
5
2
|
export * from './IdAnonymizationMode';
|
|
6
|
-
export * from './IdDocumentType';
|
|
7
3
|
export * from './IdImageType';
|
|
8
|
-
export * from './LocalizedOnlyId';
|
|
9
|
-
export * from './RejectedId';
|
|
10
|
-
export * from './StringComparisonCheck';
|
|
11
4
|
export * from './SupportedSides';
|
|
12
5
|
export * from './TextHintPosition';
|
|
13
|
-
export * from './VizMrzComparisonCheck';
|
|
14
|
-
export * from './VizMrzComparisonCheckResult';
|
|
15
|
-
export * from './VizMrzDateComparisonCheck';
|
|
16
|
-
export * from './VizMrzStringComparisonCheck';
|
|
17
6
|
export * from './RejectionReason';
|
|
7
|
+
export * from './IdCaptureRegion';
|
|
8
|
+
export * from './RegionSpecificSubtype';
|
|
9
|
+
export * from './IdSide';
|
|
10
|
+
export * from './IdImages';
|
|
@@ -5,7 +5,6 @@ export interface IdDefaults {
|
|
|
5
5
|
Feedback: {
|
|
6
6
|
idCaptured: Feedback;
|
|
7
7
|
idRejected: Feedback;
|
|
8
|
-
idCaptureTimeout: Feedback;
|
|
9
8
|
};
|
|
10
9
|
IdCaptureOverlayDefaults: {
|
|
11
10
|
defaultCapturedBrush: {
|
|
@@ -28,6 +27,7 @@ export interface IdDefaults {
|
|
|
28
27
|
IdCaptureSettings: {
|
|
29
28
|
anonymizationMode: IdAnonymizationMode;
|
|
30
29
|
rejectVoidedIds: boolean;
|
|
30
|
+
decodeBackOfEuropeanDrivingLicense: boolean;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { RejectionReason } from "../common/RejectionReason";
|
|
1
|
+
import { IdCaptureRegion, RegionSpecificSubtype } from "../common";
|
|
2
|
+
import { IdCaptureDocumentType } from "../iddocumenttype";
|
|
4
3
|
export interface DateResultJSON {
|
|
5
4
|
day: number;
|
|
6
5
|
month: number;
|
|
@@ -27,17 +26,22 @@ export interface CommonCapturedIdFieldsJSON {
|
|
|
27
26
|
nationality: string | null;
|
|
28
27
|
address: string | null;
|
|
29
28
|
documentAdditionalNumber: string | null;
|
|
30
|
-
documentType:
|
|
29
|
+
documentType: IdCaptureDocumentType | null;
|
|
30
|
+
documentSubtype: RegionSpecificSubtype | null;
|
|
31
31
|
documentNumber: string | null;
|
|
32
|
-
issuingCountry:
|
|
32
|
+
issuingCountry: IdCaptureRegion;
|
|
33
33
|
issuingCountryIso: string | null;
|
|
34
34
|
dateOfExpiry: DateResultJSON | null;
|
|
35
35
|
dateOfIssue: DateResultJSON | null;
|
|
36
36
|
}
|
|
37
37
|
export interface ImageInfoJSON {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
front: ImageJSON | null;
|
|
39
|
+
back: ImageJSON | null;
|
|
40
|
+
}
|
|
41
|
+
export interface ImageJSON {
|
|
42
|
+
face: string | null;
|
|
43
|
+
frame: string | null;
|
|
44
|
+
croppedDocument: string | null;
|
|
41
45
|
}
|
|
42
46
|
export interface CapturedIdJSON {
|
|
43
47
|
capturedResultType: string;
|
|
@@ -52,7 +56,7 @@ export interface CapturedIdJSON {
|
|
|
52
56
|
isExpired: boolean | null;
|
|
53
57
|
nationality: string | null;
|
|
54
58
|
address: string | null;
|
|
55
|
-
documentType:
|
|
59
|
+
documentType: IdCaptureDocumentType | null;
|
|
56
60
|
issuingCountryIso: string | null;
|
|
57
61
|
issuingCountry: string | null;
|
|
58
62
|
documentAdditionalNumber: string | null;
|
|
@@ -60,24 +64,11 @@ export interface CapturedIdJSON {
|
|
|
60
64
|
dateOfExpiry: DateResultJSON | null;
|
|
61
65
|
dateOfIssue: DateResultJSON | null;
|
|
62
66
|
imageInfo: ImageInfoJSON | null;
|
|
63
|
-
|
|
64
|
-
argentinaIdBarcodeResult: ArgentinaIdBarcodeResultJSON | null;
|
|
65
|
-
colombiaIdBarcodeResult: ColombiaIdBarcodeResultJSON | null;
|
|
66
|
-
colombiaDlBarcodeResult: ColombiaDlBarcodeResultJSON | null;
|
|
67
|
-
commonAccessCardBarcodeResult: CommonAccessCardBarcodeResultJSON | null;
|
|
67
|
+
barcodeResult: BarcodeResultJSON | null;
|
|
68
68
|
mrzResult: MRZResultJSON | null;
|
|
69
|
-
southAfricaDlBarcodeResult: SouthAfricaDlBarcodeResultJSON | null;
|
|
70
|
-
southAfricaIdBarcodeResult: SouthAfricaIdBarcodeResultJSON | null;
|
|
71
|
-
usUniformedServicesBarcodeResult: USUniformedServicesBarcodeResultJSON | null;
|
|
72
|
-
usVisaVizResult: USVisaVizResultJSON | null;
|
|
73
69
|
vizResult: VIZResultJSON | null;
|
|
74
|
-
chinaMainlandTravelPermitMrzResult: ChinaMainlandTravelPermitMRZResultJSON | null;
|
|
75
|
-
chinaExitEntryPermitMrzResult: ChinaExitEntryPermitMRZResultJSON | null;
|
|
76
|
-
chinaOneWayPermitBackMrzResult: ChinaOneWayPermitBackMrzResultJSON | null;
|
|
77
|
-
chinaOneWayPermitFrontMrzResult: ChinaOneWayPermitFrontMrzResultJSON | null;
|
|
78
|
-
apecBusinessTravelCardMrzResult: ApecBusinessTravelCardMrzResultJSON | null;
|
|
79
70
|
}
|
|
80
|
-
export interface
|
|
71
|
+
export interface BarcodeResultJSON {
|
|
81
72
|
aamvaVersion: number;
|
|
82
73
|
isRealId: boolean;
|
|
83
74
|
aliasFamilyName: string | null;
|
|
@@ -110,23 +101,11 @@ export interface AAMVABarcodeResultJSON {
|
|
|
110
101
|
barcodeDataElements: {
|
|
111
102
|
[key: string]: string;
|
|
112
103
|
};
|
|
113
|
-
}
|
|
114
|
-
export interface AamvaBarcodeVerificationResultJSON {
|
|
115
|
-
allChecksPassed: boolean;
|
|
116
|
-
verificationStatus: "authentic" | "maybeForged" | "forged";
|
|
117
|
-
}
|
|
118
|
-
export interface ArgentinaIdBarcodeResultJSON {
|
|
119
104
|
documentCopy: string;
|
|
120
105
|
personalIdNumber: string;
|
|
121
|
-
}
|
|
122
|
-
export interface ColombiaIdBarcodeResultJSON {
|
|
123
106
|
bloodType: string;
|
|
124
|
-
}
|
|
125
|
-
export interface ColombiaDlBarcodeResultJSON {
|
|
126
107
|
categories: string[];
|
|
127
108
|
identificationType: string;
|
|
128
|
-
}
|
|
129
|
-
export interface CommonAccessCardBarcodeResultJSON {
|
|
130
109
|
version: string;
|
|
131
110
|
personDesignatorDocument: number;
|
|
132
111
|
personDesignatorTypeCode: string;
|
|
@@ -139,33 +118,14 @@ export interface CommonAccessCardBarcodeResultJSON {
|
|
|
139
118
|
payPlanGradeCode: string;
|
|
140
119
|
cardInstanceIdentifier: string;
|
|
141
120
|
personMiddleInitial: string;
|
|
142
|
-
}
|
|
143
|
-
export interface MRZResultJSON {
|
|
144
|
-
documentCode: string;
|
|
145
|
-
namesAreTruncated: boolean;
|
|
146
|
-
optional: string | null;
|
|
147
|
-
optional1: string | null;
|
|
148
|
-
capturedMrz: string;
|
|
149
|
-
}
|
|
150
|
-
export interface SouthAfricaDlBarcodeResultJSON {
|
|
151
|
-
version: number;
|
|
152
121
|
licenseCountryOfIssue: string;
|
|
153
|
-
personalIdNumber: string;
|
|
154
122
|
personalIdNumberType: string;
|
|
155
|
-
documentCopy: number;
|
|
156
123
|
driverRestrictionCodes: number[];
|
|
157
124
|
professionalDrivingPermit: ProfessionalDrivingPermitJSON | null;
|
|
158
125
|
vehicleRestrictions: VehicleRestrictionJSON[];
|
|
159
|
-
}
|
|
160
|
-
export interface SouthAfricaIdBarcodeResultJSON {
|
|
161
126
|
countryOfBirth: string;
|
|
162
127
|
countryOfBirthIso: string;
|
|
163
128
|
citizenshipStatus: string;
|
|
164
|
-
personalIdNumber: string;
|
|
165
|
-
}
|
|
166
|
-
export interface USUniformedServicesBarcodeResultJSON {
|
|
167
|
-
bloodType: string | null;
|
|
168
|
-
branchOfService: string;
|
|
169
129
|
champusEffectiveDate: DateResultJSON | null;
|
|
170
130
|
champusExpiryDate: DateResultJSON | null;
|
|
171
131
|
civilianHealthCareFlagCode: string;
|
|
@@ -178,18 +138,14 @@ export interface USUniformedServicesBarcodeResultJSON {
|
|
|
178
138
|
directCareFlagDescription: string;
|
|
179
139
|
exchangeFlagCode: string;
|
|
180
140
|
exchangeFlagDescription: string;
|
|
181
|
-
eyeColor: string;
|
|
182
141
|
familySequenceNumber: number;
|
|
183
142
|
formNumber: string;
|
|
184
143
|
genevaConventionCategory: string | null;
|
|
185
|
-
hairColor: string;
|
|
186
144
|
height: number;
|
|
187
145
|
jpegData: string;
|
|
188
146
|
mwrFlagCode: string;
|
|
189
147
|
mwrFlagDescription: string;
|
|
190
148
|
payGrade: string | null;
|
|
191
|
-
personDesignatorDocument: number;
|
|
192
|
-
rank: string;
|
|
193
149
|
relationshipCode: string | null;
|
|
194
150
|
relationshipDescription: string | null;
|
|
195
151
|
securityCode: string;
|
|
@@ -199,12 +155,27 @@ export interface USUniformedServicesBarcodeResultJSON {
|
|
|
199
155
|
sponsorName: string | null;
|
|
200
156
|
statusCode: string;
|
|
201
157
|
statusCodeDescription: string;
|
|
202
|
-
version: number;
|
|
203
158
|
weight: number;
|
|
204
159
|
}
|
|
205
|
-
export interface
|
|
206
|
-
|
|
207
|
-
|
|
160
|
+
export interface AamvaBarcodeVerificationResultJSON {
|
|
161
|
+
allChecksPassed: boolean;
|
|
162
|
+
verificationStatus: "authentic" | "maybeForged" | "forged";
|
|
163
|
+
}
|
|
164
|
+
export interface MRZResultJSON {
|
|
165
|
+
documentCode: string;
|
|
166
|
+
namesAreTruncated: boolean;
|
|
167
|
+
optional: string | null;
|
|
168
|
+
optional1: string | null;
|
|
169
|
+
capturedMrz: string;
|
|
170
|
+
personalIdNumber: string | null;
|
|
171
|
+
renewalTimes: number | null;
|
|
172
|
+
fullNameSimplifiedChinese: string | null;
|
|
173
|
+
omittedCharacterCountInGbkName: number | null;
|
|
174
|
+
omittedNameCount: number | null;
|
|
175
|
+
issuingAuthorityCode: string | null;
|
|
176
|
+
passportIssuerIso: string | null;
|
|
177
|
+
passportNumber: string | null;
|
|
178
|
+
passportDateOfExpiry: DateResultJSON | null;
|
|
208
179
|
}
|
|
209
180
|
export interface VIZResultJSON {
|
|
210
181
|
additionalAddressInformation: string | null;
|
|
@@ -227,98 +198,10 @@ export interface VIZResultJSON {
|
|
|
227
198
|
sponsor: string | null;
|
|
228
199
|
mothersName: string | null;
|
|
229
200
|
fathersName: string | null;
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
rejectionReason: RejectionReason;
|
|
237
|
-
}
|
|
238
|
-
export interface IdCaptureErrorJSON {
|
|
239
|
-
type: string;
|
|
240
|
-
message: string;
|
|
241
|
-
}
|
|
242
|
-
export interface IdCaptureSessionJSON {
|
|
243
|
-
newlyCapturedId: CapturedIdJSON | null;
|
|
244
|
-
localizedOnlyId: LocalizedIdJSON;
|
|
245
|
-
newlyRejectedId: RejectedIdJSON;
|
|
246
|
-
frameSequenceId: number;
|
|
247
|
-
error: IdCaptureErrorJSON;
|
|
248
|
-
}
|
|
249
|
-
export interface ComparisonCheckJSON {
|
|
250
|
-
checkResult: ComparisonCheckResult;
|
|
251
|
-
resultDescription: string;
|
|
252
|
-
}
|
|
253
|
-
export interface VizMrzComparisonCheckJSON {
|
|
254
|
-
checkResult: VizMrzComparisonCheckResult;
|
|
255
|
-
resultDescription: string;
|
|
256
|
-
}
|
|
257
|
-
export interface StringComparisonCheckJSON extends ComparisonCheckJSON {
|
|
258
|
-
vizValue: string | null;
|
|
259
|
-
aamvaBarcodeValue: string | null;
|
|
260
|
-
}
|
|
261
|
-
export interface VizMrzStringComparisonCheckJSON extends VizMrzComparisonCheckJSON {
|
|
262
|
-
vizValue: string;
|
|
263
|
-
mrzValue: string;
|
|
264
|
-
}
|
|
265
|
-
export interface DateComparisonCheckJSON extends ComparisonCheckJSON {
|
|
266
|
-
vizValue: DateResultJSON | null;
|
|
267
|
-
aamvaBarcodeValue: DateResultJSON | null;
|
|
268
|
-
}
|
|
269
|
-
export interface VizMrzDateComparisonCheckJSON extends VizMrzComparisonCheckJSON {
|
|
270
|
-
vizValue: DateResultJSON | null;
|
|
271
|
-
mrzValue: DateResultJSON | null;
|
|
272
|
-
}
|
|
273
|
-
export interface AamvaVizBarcodeComparisonResultJSON {
|
|
274
|
-
checksPassed: boolean;
|
|
275
|
-
resultDescription: string;
|
|
276
|
-
issuingCountryIsoMatch: StringComparisonCheckJSON;
|
|
277
|
-
issuingJurisdictionIsoMatch: StringComparisonCheckJSON;
|
|
278
|
-
documentNumbersMatch: StringComparisonCheckJSON;
|
|
279
|
-
fullNamesMatch: StringComparisonCheckJSON;
|
|
280
|
-
datesOfBirthMatch: DateComparisonCheckJSON;
|
|
281
|
-
datesOfExpiryMatch: DateComparisonCheckJSON;
|
|
282
|
-
datesOfIssueMatch: DateComparisonCheckJSON;
|
|
283
|
-
frontMismatchImage: string | null;
|
|
284
|
-
}
|
|
285
|
-
export interface ChinaMainlandTravelPermitMRZResultJSON {
|
|
286
|
-
documentCode: string;
|
|
287
|
-
capturedMrz: string;
|
|
288
|
-
personalIdNumber: string;
|
|
289
|
-
renewalTimes: number;
|
|
290
|
-
fullNameSimplifiedChinese: string;
|
|
291
|
-
omittedCharacterCountInGBKName: number;
|
|
292
|
-
omittedNameCount: number;
|
|
293
|
-
issuingAuthorityCode: string | null;
|
|
294
|
-
}
|
|
295
|
-
export interface ChinaExitEntryPermitMRZResultJSON {
|
|
296
|
-
documentCode: string;
|
|
297
|
-
capturedMrz: string;
|
|
298
|
-
}
|
|
299
|
-
export interface ChinaOneWayPermitBackMrzResultJSON {
|
|
300
|
-
documentCode: string;
|
|
301
|
-
capturedMrz: string;
|
|
302
|
-
namesAreTruncated: boolean;
|
|
303
|
-
}
|
|
304
|
-
export interface ChinaOneWayPermitFrontMrzResultJSON {
|
|
305
|
-
documentCode: string;
|
|
306
|
-
capturedMrz: string;
|
|
307
|
-
fullNameSimplifiedChinese: string;
|
|
308
|
-
}
|
|
309
|
-
export interface ApecBusinessTravelCardMrzResultJSON {
|
|
310
|
-
documentCode: string;
|
|
311
|
-
capturedMrz: string;
|
|
312
|
-
passportIssuerIso: string;
|
|
313
|
-
passportNumber: string;
|
|
314
|
-
passportDateOfExpiry: DateResultJSON | null;
|
|
315
|
-
}
|
|
316
|
-
export interface VizMrzComparisonResultJSON {
|
|
317
|
-
checksPassed: boolean;
|
|
318
|
-
resultDescription: string;
|
|
319
|
-
issuingCountryIsoMatch: VizMrzStringComparisonCheckJSON;
|
|
320
|
-
documentNumbersMatch: VizMrzStringComparisonCheckJSON;
|
|
321
|
-
fullNamesMatch: VizMrzStringComparisonCheckJSON;
|
|
322
|
-
datesOfBirthMatch: VizMrzDateComparisonCheckJSON;
|
|
323
|
-
datesOfExpiryMatch: VizMrzDateComparisonCheckJSON;
|
|
201
|
+
visaNumber: string | null;
|
|
202
|
+
passportNumber: string | null;
|
|
203
|
+
firstName: string | null;
|
|
204
|
+
lastName: string | null;
|
|
205
|
+
secondaryLastName: string | null;
|
|
206
|
+
fullName: string;
|
|
324
207
|
}
|