@regulaforensics/cordova-plugin-document-reader-api 8.4.303-nightly → 8.4.346-rc
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/example/package.json +2 -2
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/src/android/Config.kt +8 -0
- package/src/android/JSONConstructor.kt +346 -40
- package/src/android/Main.kt +69 -12
- package/src/android/Utils.kt +62 -0
- package/src/android/build.gradle +2 -2
- package/src/ios/RGLWConfig.m +9 -2
- package/src/ios/RGLWJSONConstructor.h +19 -0
- package/src/ios/RGLWJSONConstructor.m +349 -0
- package/src/ios/RGLWMain.m +49 -0
- package/www/DocumentReader.js +257 -4
package/www/DocumentReader.js
CHANGED
|
@@ -795,6 +795,22 @@ class TAChallenge {
|
|
|
795
795
|
}
|
|
796
796
|
}
|
|
797
797
|
|
|
798
|
+
class DetailsAge {
|
|
799
|
+
static fromJson(jsonObject) {
|
|
800
|
+
if (jsonObject == null) return null
|
|
801
|
+
const result = new DetailsAge()
|
|
802
|
+
|
|
803
|
+
result.threshold = jsonObject["threshold"]
|
|
804
|
+
result.overThreshold = jsonObject["overThreshold"]
|
|
805
|
+
result.over18 = jsonObject["over18"]
|
|
806
|
+
result.over21 = jsonObject["over21"]
|
|
807
|
+
result.over25 = jsonObject["over25"]
|
|
808
|
+
result.over65 = jsonObject["over65"]
|
|
809
|
+
|
|
810
|
+
return result
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
|
|
798
814
|
class DocumentReaderResultsStatus {
|
|
799
815
|
static fromJson(jsonObject) {
|
|
800
816
|
if (jsonObject == null) return null
|
|
@@ -807,6 +823,10 @@ class DocumentReaderResultsStatus {
|
|
|
807
823
|
result.detailsRFID = DetailsRFID.fromJson(jsonObject["detailsRFID"])
|
|
808
824
|
result.portrait = jsonObject["portrait"]
|
|
809
825
|
result.stopList = jsonObject["stopList"]
|
|
826
|
+
result.mDL = jsonObject["mDL"]
|
|
827
|
+
result.age = jsonObject["age"]
|
|
828
|
+
result.captureProcessIntegrity = jsonObject["captureProcessIntegrity"]
|
|
829
|
+
result.detailsAge = DetailsAge.fromJson(jsonObject["detailsAge"])
|
|
810
830
|
|
|
811
831
|
return result
|
|
812
832
|
}
|
|
@@ -873,6 +893,50 @@ class VDSNCData {
|
|
|
873
893
|
}
|
|
874
894
|
}
|
|
875
895
|
|
|
896
|
+
class DocFeature {
|
|
897
|
+
static fromJson(jsonObject) {
|
|
898
|
+
if (jsonObject == null) return null
|
|
899
|
+
const result = new DocFeature()
|
|
900
|
+
|
|
901
|
+
result.type = jsonObject["type"]
|
|
902
|
+
result.data = BytesData.fromJson(jsonObject["data"])
|
|
903
|
+
|
|
904
|
+
return result
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
class VDSData {
|
|
909
|
+
static fromJson(jsonObject) {
|
|
910
|
+
if (jsonObject == null) return null
|
|
911
|
+
const result = new VDSData()
|
|
912
|
+
|
|
913
|
+
result.type = jsonObject["type"]
|
|
914
|
+
result.docType = jsonObject["docType"]
|
|
915
|
+
result.featureRef = jsonObject["featureRef"]
|
|
916
|
+
result.version = jsonObject["version"]
|
|
917
|
+
result.issuingCountry = jsonObject["issuingCountry"]
|
|
918
|
+
result.docIssueDate = jsonObject["docIssueDate"]
|
|
919
|
+
result.signature = BytesData.fromJson(jsonObject["signature"])
|
|
920
|
+
result.signatureDate = jsonObject["signatureDate"]
|
|
921
|
+
result.signer = jsonObject["signer"]
|
|
922
|
+
result.certificate = jsonObject["certificate"]
|
|
923
|
+
result.certificateChain = []
|
|
924
|
+
if (jsonObject["certificateChain"] != null)
|
|
925
|
+
for (const i in jsonObject["certificateChain"])
|
|
926
|
+
result.certificateChain.push(CertificateChain.fromJson(jsonObject["certificateChain"][i]))
|
|
927
|
+
result.docFeatures = []
|
|
928
|
+
if (jsonObject["docFeatures"] != null)
|
|
929
|
+
for (const i in jsonObject["docFeatures"])
|
|
930
|
+
result.docFeatures.push(DocFeature.fromJson(jsonObject["docFeatures"][i]))
|
|
931
|
+
result.notifications = []
|
|
932
|
+
if (jsonObject["notifications"] != null)
|
|
933
|
+
for (const i in jsonObject["notifications"])
|
|
934
|
+
result.notifications.push(jsonObject["notifications"][i])
|
|
935
|
+
|
|
936
|
+
return result
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
|
|
876
940
|
class BytesData {
|
|
877
941
|
static fromJson(jsonObject) {
|
|
878
942
|
if (jsonObject == null) return null
|
|
@@ -1142,6 +1206,7 @@ class DocumentReaderResults {
|
|
|
1142
1206
|
result.documentType.push(DocumentReaderDocumentType.fromJson(jsonObject["documentType"][i]))
|
|
1143
1207
|
result.status = DocumentReaderResultsStatus.fromJson(jsonObject["status"])
|
|
1144
1208
|
result.vdsncData = VDSNCData.fromJson(jsonObject["vdsncData"])
|
|
1209
|
+
result.vdsData = VDSData.fromJson(jsonObject["vdsData"])
|
|
1145
1210
|
result.dtcData = jsonObject["dtcData"]
|
|
1146
1211
|
result.transactionInfo = TransactionInfo.fromJson(jsonObject["transactionInfo"])
|
|
1147
1212
|
|
|
@@ -1184,6 +1249,7 @@ class Functionality {
|
|
|
1184
1249
|
result.singleResult = jsonObject["singleResult"]
|
|
1185
1250
|
result.torchTurnedOn = jsonObject["torchTurnedOn"]
|
|
1186
1251
|
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
1252
|
+
result.homeIndicatorAutoHide = jsonObject["homeIndicatorAutoHide"]
|
|
1187
1253
|
result.showCaptureButtonDelayFromDetect = jsonObject["showCaptureButtonDelayFromDetect"]
|
|
1188
1254
|
result.showCaptureButtonDelayFromStart = jsonObject["showCaptureButtonDelayFromStart"]
|
|
1189
1255
|
result.rfidTimeout = jsonObject["rfidTimeout"]
|
|
@@ -1192,6 +1258,7 @@ class Functionality {
|
|
|
1192
1258
|
result.captureMode = jsonObject["captureMode"]
|
|
1193
1259
|
result.cameraMode = jsonObject["cameraMode"]
|
|
1194
1260
|
result.cameraPositionIOS = jsonObject["cameraPositionIOS"]
|
|
1261
|
+
result.mdlTimeout = jsonObject["mdlTimeout"]
|
|
1195
1262
|
result.cameraFrame = jsonObject["cameraFrame"]
|
|
1196
1263
|
result.btDeviceName = jsonObject["btDeviceName"]
|
|
1197
1264
|
result.zoomFactor = jsonObject["zoomFactor"]
|
|
@@ -1394,6 +1461,7 @@ class ProcessParams {
|
|
|
1394
1461
|
result.disableAuthResolutionFilter = jsonObject["disableAuthResolutionFilter"]
|
|
1395
1462
|
result.strictSecurityChecks = jsonObject["strictSecurityChecks"]
|
|
1396
1463
|
result.returnTransliteratedFields = jsonObject["returnTransliteratedFields"]
|
|
1464
|
+
result.checkCaptureProcessIntegrity = jsonObject["checkCaptureProcessIntegrity"]
|
|
1397
1465
|
result.barcodeParserType = jsonObject["barcodeParserType"]
|
|
1398
1466
|
result.perspectiveAngle = jsonObject["perspectiveAngle"]
|
|
1399
1467
|
result.minDPI = jsonObject["minDPI"]
|
|
@@ -1446,6 +1514,10 @@ class ProcessParams {
|
|
|
1446
1514
|
if (jsonObject["lcidFilter"] != null)
|
|
1447
1515
|
for (const i in jsonObject["lcidFilter"])
|
|
1448
1516
|
result.lcidFilter.push(jsonObject["lcidFilter"][i])
|
|
1517
|
+
result.fieldTypesIgnoreFilter = []
|
|
1518
|
+
if (jsonObject["fieldTypesIgnoreFilter"] != null)
|
|
1519
|
+
for (const i in jsonObject["fieldTypesIgnoreFilter"])
|
|
1520
|
+
result.fieldTypesIgnoreFilter.push(jsonObject["fieldTypesIgnoreFilter"][i])
|
|
1449
1521
|
result.mrzFormatsFilter = []
|
|
1450
1522
|
if (jsonObject["mrzFormatsFilter"] != null)
|
|
1451
1523
|
for (const i in jsonObject["mrzFormatsFilter"])
|
|
@@ -1568,6 +1640,7 @@ class Customization {
|
|
|
1568
1640
|
result.activityIndicatorPortraitPositionMultiplier = jsonObject["activityIndicatorPortraitPositionMultiplier"]
|
|
1569
1641
|
result.activityIndicatorLandscapePositionMultiplier = jsonObject["activityIndicatorLandscapePositionMultiplier"]
|
|
1570
1642
|
result.cameraPreviewVerticalPositionMultiplier = jsonObject["cameraPreviewVerticalPositionMultiplier"]
|
|
1643
|
+
result.multipageButtonPositionMultiplier = jsonObject["multipageButtonPositionMultiplier"]
|
|
1571
1644
|
result.multipageAnimationFrontImage = jsonObject["multipageAnimationFrontImage"]
|
|
1572
1645
|
result.multipageAnimationBackImage = jsonObject["multipageAnimationBackImage"]
|
|
1573
1646
|
result.borderBackgroundImage = jsonObject["borderBackgroundImage"]
|
|
@@ -1801,6 +1874,133 @@ class PrepareProgress {
|
|
|
1801
1874
|
}
|
|
1802
1875
|
}
|
|
1803
1876
|
|
|
1877
|
+
class DeviceEngagement {
|
|
1878
|
+
static fromJson(jsonObject) {
|
|
1879
|
+
if (jsonObject == null) return null
|
|
1880
|
+
const result = new DeviceEngagement()
|
|
1881
|
+
|
|
1882
|
+
result.deviceRetrievalMethods = []
|
|
1883
|
+
if (jsonObject["deviceRetrievalMethods"] != null)
|
|
1884
|
+
for (const i in jsonObject["deviceRetrievalMethods"])
|
|
1885
|
+
result.deviceRetrievalMethods.push(DeviceRetrievalMethod.fromJson(jsonObject["deviceRetrievalMethods"][i]))
|
|
1886
|
+
|
|
1887
|
+
return result
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
class DeviceRetrievalMethod {
|
|
1892
|
+
static fromJson(jsonObject) {
|
|
1893
|
+
if (jsonObject == null) return null
|
|
1894
|
+
const result = new DeviceRetrievalMethod()
|
|
1895
|
+
|
|
1896
|
+
result.type = jsonObject["type"]
|
|
1897
|
+
result.version = jsonObject["version"]
|
|
1898
|
+
result.cmdMaxLength = jsonObject["cmdMaxLength"]
|
|
1899
|
+
result.respMaxLength = jsonObject["respMaxLength"]
|
|
1900
|
+
result.clientModeSupport = jsonObject["clientModeSupport"]
|
|
1901
|
+
result.clientModeUUID = jsonObject["clientModeUUID"]
|
|
1902
|
+
result.serverModeSupport = jsonObject["serverModeSupport"]
|
|
1903
|
+
result.serverModeUUID = jsonObject["serverModeUUID"]
|
|
1904
|
+
|
|
1905
|
+
return result
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
class DataRetrieval {
|
|
1910
|
+
static fromJson(jsonObject) {
|
|
1911
|
+
if (jsonObject == null) return null
|
|
1912
|
+
const result = new DataRetrieval()
|
|
1913
|
+
|
|
1914
|
+
result.deviceRetrieval = jsonObject["deviceRetrieval"]
|
|
1915
|
+
result.docRequestPreset = jsonObject["docRequestPreset"]
|
|
1916
|
+
result.intentToRetain = jsonObject["intentToRetain"]
|
|
1917
|
+
result.requests = []
|
|
1918
|
+
if (jsonObject["requests"] != null)
|
|
1919
|
+
for (const i in jsonObject["requests"])
|
|
1920
|
+
result.requests.push(jsonObject["requests"][i])
|
|
1921
|
+
|
|
1922
|
+
return result
|
|
1923
|
+
}
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
class DocumentRequestMDL {
|
|
1927
|
+
static fromJson(jsonObject) {
|
|
1928
|
+
if (jsonObject == null) return null
|
|
1929
|
+
const result = new DocumentRequestMDL()
|
|
1930
|
+
|
|
1931
|
+
result.docType = jsonObject["docType"]
|
|
1932
|
+
result.namespaces = []
|
|
1933
|
+
if (jsonObject["namespaces"] != null)
|
|
1934
|
+
for (const i in jsonObject["namespaces"])
|
|
1935
|
+
result.namespaces.push(NameSpaceMDL.fromJson(jsonObject["namespaces"][i]))
|
|
1936
|
+
|
|
1937
|
+
return result
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
class NameSpaceMDL {
|
|
1942
|
+
static fromJson(jsonObject) {
|
|
1943
|
+
if (jsonObject == null) return null
|
|
1944
|
+
const result = new NameSpaceMDL()
|
|
1945
|
+
|
|
1946
|
+
result.name = jsonObject["name"]
|
|
1947
|
+
result.map = jsonObject["map"]
|
|
1948
|
+
|
|
1949
|
+
return result
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
class DocumentRequest18013MDL {
|
|
1954
|
+
static fromJson(jsonObject) {
|
|
1955
|
+
if (jsonObject == null) return null
|
|
1956
|
+
const result = new DocumentRequest18013MDL()
|
|
1957
|
+
|
|
1958
|
+
result.docType = jsonObject["docType"]
|
|
1959
|
+
result.namespaces = []
|
|
1960
|
+
if (jsonObject["namespaces"] != null)
|
|
1961
|
+
for (const i in jsonObject["namespaces"])
|
|
1962
|
+
result.namespaces.push(NameSpaceMDL.fromJson(jsonObject["namespaces"][i]))
|
|
1963
|
+
result.familyName = jsonObject["familyName"]
|
|
1964
|
+
result.givenName = jsonObject["givenName"]
|
|
1965
|
+
result.birthDate = jsonObject["birthDate"]
|
|
1966
|
+
result.issueDate = jsonObject["issueDate"]
|
|
1967
|
+
result.expiryDate = jsonObject["expiryDate"]
|
|
1968
|
+
result.issuingCountry = jsonObject["issuingCountry"]
|
|
1969
|
+
result.issuingAuthority = jsonObject["issuingAuthority"]
|
|
1970
|
+
result.documentNumber = jsonObject["documentNumber"]
|
|
1971
|
+
result.portrait = jsonObject["portrait"]
|
|
1972
|
+
result.drivingPrivileges = jsonObject["drivingPrivileges"]
|
|
1973
|
+
result.unDistinguishingSign = jsonObject["unDistinguishingSign"]
|
|
1974
|
+
result.administrativeNumber = jsonObject["administrativeNumber"]
|
|
1975
|
+
result.sex = jsonObject["sex"]
|
|
1976
|
+
result.height = jsonObject["height"]
|
|
1977
|
+
result.weight = jsonObject["weight"]
|
|
1978
|
+
result.eyeColour = jsonObject["eyeColour"]
|
|
1979
|
+
result.hairColour = jsonObject["hairColour"]
|
|
1980
|
+
result.birthPlace = jsonObject["birthPlace"]
|
|
1981
|
+
result.residentAddress = jsonObject["residentAddress"]
|
|
1982
|
+
result.portraitCaptureDate = jsonObject["portraitCaptureDate"]
|
|
1983
|
+
result.ageInYears = jsonObject["ageInYears"]
|
|
1984
|
+
result.ageBirthYear = jsonObject["ageBirthYear"]
|
|
1985
|
+
result.ageOver18 = jsonObject["ageOver18"]
|
|
1986
|
+
result.issuingJurisdiction = jsonObject["issuingJurisdiction"]
|
|
1987
|
+
result.nationality = jsonObject["nationality"]
|
|
1988
|
+
result.residentCity = jsonObject["residentCity"]
|
|
1989
|
+
result.residentState = jsonObject["residentState"]
|
|
1990
|
+
result.residentPostalCode = jsonObject["residentPostalCode"]
|
|
1991
|
+
result.residentCountry = jsonObject["residentCountry"]
|
|
1992
|
+
result.biometricTemplateFace = jsonObject["biometricTemplateFace"]
|
|
1993
|
+
result.biometricTemplateIris = jsonObject["biometricTemplateIris"]
|
|
1994
|
+
result.biometricTemplateFinger = jsonObject["biometricTemplateFinger"]
|
|
1995
|
+
result.biometricTemplateSignatureSign = jsonObject["biometricTemplateSignatureSign"]
|
|
1996
|
+
result.familyNameNationalCharacter = jsonObject["familyNameNationalCharacter"]
|
|
1997
|
+
result.givenNameNationalCharacter = jsonObject["givenNameNationalCharacter"]
|
|
1998
|
+
result.signatureUsualMark = jsonObject["signatureUsualMark"]
|
|
1999
|
+
|
|
2000
|
+
return result
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
|
|
1804
2004
|
// Enum
|
|
1805
2005
|
|
|
1806
2006
|
const FontStyle = {
|
|
@@ -2153,13 +2353,16 @@ const eRPRM_ResultType = {
|
|
|
2153
2353
|
RFID_RESULT_TYPE_RFID_IMAGE_DATA: 103,
|
|
2154
2354
|
RFID_RESULT_TYPE_RFID_BINARY_DATA: 104,
|
|
2155
2355
|
RFID_RESULT_TYPE_RFID_ORIGINAL_GRAPHICS: 105,
|
|
2356
|
+
RFID_RESULT_TYPE_RFID_DTC_VC: 109,
|
|
2357
|
+
RPRM_RESULT_TYPE_MDL_PARSED_RESPONSE: 121,
|
|
2358
|
+
RPRM_RESULT_TYPE_VDS_NC: 124,
|
|
2359
|
+
RPRM_RESULT_TYPE_VDS: 125,
|
|
2156
2360
|
RPRM_RESULT_TYPE_BARCODE_POSITION: 62,
|
|
2157
2361
|
RPRM_RESULT_TYPE_MRZ_POSITION: 61,
|
|
2158
2362
|
RPRM_RESULT_TYPE_LIVE_PORTRAIT: 32,
|
|
2159
2363
|
RPRM_RESULT_TYPE_STATUS: 33,
|
|
2160
2364
|
RPRM_RESULT_TYPE_PORTRAIT_COMPARISON: 34,
|
|
2161
2365
|
RPRM_RESULT_TYPE_EXT_PORTRAIT: 35,
|
|
2162
|
-
RFID_RESULT_TYPE_RFID_DTC_VC: 109,
|
|
2163
2366
|
}
|
|
2164
2367
|
|
|
2165
2368
|
const FrameShapeType = {
|
|
@@ -2167,6 +2370,11 @@ const FrameShapeType = {
|
|
|
2167
2370
|
CORNER: 1,
|
|
2168
2371
|
}
|
|
2169
2372
|
|
|
2373
|
+
const eMDLDeviceRetrieval = {
|
|
2374
|
+
NFC: 1,
|
|
2375
|
+
BLE: 2,
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2170
2378
|
const eRFID_BaudRate = {
|
|
2171
2379
|
rfbr_106: 1,
|
|
2172
2380
|
rfbr_212: 2,
|
|
@@ -2233,6 +2441,9 @@ const PKDResourceType = {
|
|
|
2233
2441
|
DEFL: 5,
|
|
2234
2442
|
DEVL: 6,
|
|
2235
2443
|
BL: 7,
|
|
2444
|
+
LDIF_TA: 8,
|
|
2445
|
+
ML_TA: 9,
|
|
2446
|
+
CBOR: 10,
|
|
2236
2447
|
|
|
2237
2448
|
getType: function (value) {
|
|
2238
2449
|
switch (value) {
|
|
@@ -2272,11 +2483,10 @@ const DocumentReaderErrorCodes = {
|
|
|
2272
2483
|
NO_RESULT: 3,
|
|
2273
2484
|
REMOVE_DATABASE: 4,
|
|
2274
2485
|
FETCHING_DATABASE: 5,
|
|
2275
|
-
DB_ID_NOT_FOUND: 6,
|
|
2276
2486
|
DB_DESCRIPTION_NOT_FOUND: 7,
|
|
2277
2487
|
SAVE_DB: 8,
|
|
2278
2488
|
DOWNLOAD_DB_INCORRECT_CHECKSUM: 9,
|
|
2279
|
-
|
|
2489
|
+
DOWNLOAD_DB: 10,
|
|
2280
2490
|
RFID_ERROR: 12,
|
|
2281
2491
|
LICENSE_ABSENT_OR_CORRUPTED: 13,
|
|
2282
2492
|
LICENSE_INVALID_DATE: 14,
|
|
@@ -2290,13 +2500,14 @@ const DocumentReaderErrorCodes = {
|
|
|
2290
2500
|
LICENSE_NO_DATABASE: 22,
|
|
2291
2501
|
LICENSE_DATABASE_INCORRECT: 23,
|
|
2292
2502
|
INVALID_TCC_PARAMS: 24,
|
|
2293
|
-
|
|
2503
|
+
ALREADY_IN_PROGRESS: 25,
|
|
2294
2504
|
START_BACKEND_PROCESSING: 26,
|
|
2295
2505
|
ADD_DATA_TO_PACKAGE: 27,
|
|
2296
2506
|
FINALIZE_FAILED: 28,
|
|
2297
2507
|
CAMERA_NO_PERMISSION: 29,
|
|
2298
2508
|
CAMERA_NOT_AVAILABLE: 30,
|
|
2299
2509
|
CANNOT_USE_CAMERA_IN_SCENARIO: 40,
|
|
2510
|
+
BLUETOOTH_NO_PERMISSION: 41,
|
|
2300
2511
|
NATIVE_JAVA_EXCEPTION: 1000,
|
|
2301
2512
|
BACKEND_ONLINE_PROCESSING: 303,
|
|
2302
2513
|
WRONG_INPUT: 400,
|
|
@@ -2307,6 +2518,7 @@ const DocumentReaderErrorCodes = {
|
|
|
2307
2518
|
FEATURE_BLUETOOTH_LE_NOT_SUPPORTED: 601,
|
|
2308
2519
|
APP_BACKGROUND: 700,
|
|
2309
2520
|
ONLINE_PROCESSING_WRONG_INPUT: 800,
|
|
2521
|
+
MDL_EXCEPTION: 900,
|
|
2310
2522
|
}
|
|
2311
2523
|
|
|
2312
2524
|
const ScenarioIdentifier = {
|
|
@@ -2473,6 +2685,11 @@ const eSignManagementAction = {
|
|
|
2473
2685
|
smaSignData: 7,
|
|
2474
2686
|
}
|
|
2475
2687
|
|
|
2688
|
+
const eMDLDeviceEngagement = {
|
|
2689
|
+
QR: 0,
|
|
2690
|
+
NFC: 1,
|
|
2691
|
+
}
|
|
2692
|
+
|
|
2476
2693
|
const eCheckDiagnose = {
|
|
2477
2694
|
UNKNOWN: 0,
|
|
2478
2695
|
PASS: 1,
|
|
@@ -2604,6 +2821,11 @@ const eCheckDiagnose = {
|
|
|
2604
2821
|
INCORRECT_OBJECT_COLOR: 250,
|
|
2605
2822
|
}
|
|
2606
2823
|
|
|
2824
|
+
const eMDLIntentToRetain = {
|
|
2825
|
+
FALSE: 0,
|
|
2826
|
+
TRUE: 1,
|
|
2827
|
+
}
|
|
2828
|
+
|
|
2607
2829
|
const RFIDDelegate = {
|
|
2608
2830
|
NULL: 0,
|
|
2609
2831
|
NO_PA: 1,
|
|
@@ -4100,6 +4322,9 @@ const eVisualFieldType = {
|
|
|
4100
4322
|
FT_NATIONALITY_CODE_ALPHA2: 697,
|
|
4101
4323
|
FT_FIRST_ISSUE_DATE_CHECKDIGIT: 698,
|
|
4102
4324
|
FT_FIRST_ISSUE_DATE_CHECKSUM: 699,
|
|
4325
|
+
FT_COMMERCIAL_INDICATOR: 701,
|
|
4326
|
+
FT_NON_DOMICILED_INDICATOR: 702,
|
|
4327
|
+
FT_JURISDICTION_SPECIFIC_DATA: 703,
|
|
4103
4328
|
}
|
|
4104
4329
|
|
|
4105
4330
|
const DocReaderOrientation = {
|
|
@@ -4291,6 +4516,14 @@ const DocReaderFrame = {
|
|
|
4291
4516
|
DOCUMENT: "document",
|
|
4292
4517
|
}
|
|
4293
4518
|
|
|
4519
|
+
const eMDLDocRequestPreset = {
|
|
4520
|
+
ALL: 0,
|
|
4521
|
+
AGE: 1,
|
|
4522
|
+
STANDARD_ID: 2,
|
|
4523
|
+
TRAVEL: 3,
|
|
4524
|
+
DRIVERS_LICENSE: 4,
|
|
4525
|
+
}
|
|
4526
|
+
|
|
4294
4527
|
const eRPRM_Lights = {
|
|
4295
4528
|
NONE: 0,
|
|
4296
4529
|
RPRM_LIGHT_UV: 128,
|
|
@@ -4319,6 +4552,7 @@ const Enum = {
|
|
|
4319
4552
|
RGLMeasureSystem,
|
|
4320
4553
|
eRPRM_ResultType,
|
|
4321
4554
|
FrameShapeType,
|
|
4555
|
+
eMDLDeviceRetrieval,
|
|
4322
4556
|
eRFID_BaudRate,
|
|
4323
4557
|
LineCap,
|
|
4324
4558
|
eRPRM_FieldVerificationResult,
|
|
@@ -4337,7 +4571,9 @@ const Enum = {
|
|
|
4337
4571
|
BarcodeResult,
|
|
4338
4572
|
eRFID_Application_Type,
|
|
4339
4573
|
eSignManagementAction,
|
|
4574
|
+
eMDLDeviceEngagement,
|
|
4340
4575
|
eCheckDiagnose,
|
|
4576
|
+
eMDLIntentToRetain,
|
|
4341
4577
|
RFIDDelegate,
|
|
4342
4578
|
TextProcessing,
|
|
4343
4579
|
LogLevel,
|
|
@@ -4370,6 +4606,7 @@ const Enum = {
|
|
|
4370
4606
|
LCID,
|
|
4371
4607
|
CustomizationImage,
|
|
4372
4608
|
DocReaderFrame,
|
|
4609
|
+
eMDLDocRequestPreset,
|
|
4373
4610
|
eRPRM_Lights,
|
|
4374
4611
|
eMrzDetectionModes,
|
|
4375
4612
|
}
|
|
@@ -4435,6 +4672,13 @@ DocumentReader.getDocReaderDocumentsDatabase = (successCallback, errorCallback)
|
|
|
4435
4672
|
DocumentReader.finalizePackage = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["finalizePackage"])
|
|
4436
4673
|
DocumentReader.endBackendTransaction = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["endBackendTransaction"])
|
|
4437
4674
|
DocumentReader.getTranslation = (className, value, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getTranslation", className, value])
|
|
4675
|
+
DocumentReader.startReadMDl = (type, dataRetrieval, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["startReadMDl", type, dataRetrieval])
|
|
4676
|
+
DocumentReader.startEngageDevice = (type, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["startEngageDevice", type])
|
|
4677
|
+
DocumentReader.engageDeviceNFC = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["engageDeviceNFC"])
|
|
4678
|
+
DocumentReader.engageDeviceData = (data, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["engageDeviceData", data])
|
|
4679
|
+
DocumentReader.startRetrieveData = (deviceEngagement, dataRetrieval, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["startRetrieveData", deviceEngagement, dataRetrieval])
|
|
4680
|
+
DocumentReader.retrieveDataNFC = (dataRetrieval, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["retrieveDataNFC", dataRetrieval])
|
|
4681
|
+
DocumentReader.retrieveDataBLE = (deviceEngagement, dataRetrieval, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["retrieveDataBLE", deviceEngagement, dataRetrieval])
|
|
4438
4682
|
|
|
4439
4683
|
DocumentReader.textFieldValueByType = (results, fieldType, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["textFieldValueByType", results.rawResult, fieldType])
|
|
4440
4684
|
DocumentReader.textFieldValueByTypeLcid = (results, fieldType, lcid, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["textFieldValueByTypeLcid", results.rawResult, fieldType, lcid])
|
|
@@ -4504,10 +4748,13 @@ DocumentReaderPlugin.ImageInputParam = ImageInputParam
|
|
|
4504
4748
|
DocumentReaderPlugin.PAResourcesIssuer = PAResourcesIssuer
|
|
4505
4749
|
DocumentReaderPlugin.PAAttribute = PAAttribute
|
|
4506
4750
|
DocumentReaderPlugin.TAChallenge = TAChallenge
|
|
4751
|
+
DocumentReaderPlugin.DetailsAge = DetailsAge
|
|
4507
4752
|
DocumentReaderPlugin.DocumentReaderResultsStatus = DocumentReaderResultsStatus
|
|
4508
4753
|
DocumentReaderPlugin.DetailsOptical = DetailsOptical
|
|
4509
4754
|
DocumentReaderPlugin.DetailsRFID = DetailsRFID
|
|
4510
4755
|
DocumentReaderPlugin.VDSNCData = VDSNCData
|
|
4756
|
+
DocumentReaderPlugin.DocFeature = DocFeature
|
|
4757
|
+
DocumentReaderPlugin.VDSData = VDSData
|
|
4511
4758
|
DocumentReaderPlugin.BytesData = BytesData
|
|
4512
4759
|
DocumentReaderPlugin.ImageInputData = ImageInputData
|
|
4513
4760
|
DocumentReaderPlugin.DocReaderDocumentsDatabase = DocReaderDocumentsDatabase
|
|
@@ -4546,5 +4793,11 @@ DocumentReaderPlugin.EIDDataGroups = EIDDataGroups
|
|
|
4546
4793
|
DocumentReaderPlugin.DTCDataGroup = DTCDataGroup
|
|
4547
4794
|
DocumentReaderPlugin.RFIDScenario = RFIDScenario
|
|
4548
4795
|
DocumentReaderPlugin.PrepareProgress = PrepareProgress
|
|
4796
|
+
DocumentReaderPlugin.DeviceEngagement = DeviceEngagement
|
|
4797
|
+
DocumentReaderPlugin.DeviceRetrievalMethod = DeviceRetrievalMethod
|
|
4798
|
+
DocumentReaderPlugin.DataRetrieval = DataRetrieval
|
|
4799
|
+
DocumentReaderPlugin.DocumentRequestMDL = DocumentRequestMDL
|
|
4800
|
+
DocumentReaderPlugin.NameSpaceMDL = NameSpaceMDL
|
|
4801
|
+
DocumentReaderPlugin.DocumentRequest18013MDL = DocumentRequest18013MDL
|
|
4549
4802
|
|
|
4550
4803
|
module.exports = DocumentReaderPlugin
|