@regulaforensics/react-native-document-reader-api 8.4.329-nightly → 8.4.371-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/RNDocumentReaderApi.podspec +1 -1
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +8 -0
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +346 -40
- package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +69 -12
- package/android/src/main/java/com/regula/plugin/documentreader/Utils.kt +62 -0
- package/example/package-lock.json +12 -12
- package/example/package.json +2 -2
- package/index.d.ts +369 -4
- package/index.js +248 -4
- package/ios/RGLWConfig.m +9 -2
- package/ios/RGLWJSONConstructor.h +19 -0
- package/ios/RGLWJSONConstructor.m +349 -0
- package/ios/RGLWMain.m +49 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -797,6 +797,22 @@ export class TAChallenge {
|
|
|
797
797
|
}
|
|
798
798
|
}
|
|
799
799
|
|
|
800
|
+
export class DetailsAge {
|
|
801
|
+
static fromJson(jsonObject) {
|
|
802
|
+
if (jsonObject == null) return null
|
|
803
|
+
const result = new DetailsAge()
|
|
804
|
+
|
|
805
|
+
result.threshold = jsonObject["threshold"]
|
|
806
|
+
result.overThreshold = jsonObject["overThreshold"]
|
|
807
|
+
result.over18 = jsonObject["over18"]
|
|
808
|
+
result.over21 = jsonObject["over21"]
|
|
809
|
+
result.over25 = jsonObject["over25"]
|
|
810
|
+
result.over65 = jsonObject["over65"]
|
|
811
|
+
|
|
812
|
+
return result
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
|
|
800
816
|
export class DocumentReaderResultsStatus {
|
|
801
817
|
static fromJson(jsonObject) {
|
|
802
818
|
if (jsonObject == null) return null
|
|
@@ -809,6 +825,10 @@ export class DocumentReaderResultsStatus {
|
|
|
809
825
|
result.detailsRFID = DetailsRFID.fromJson(jsonObject["detailsRFID"])
|
|
810
826
|
result.portrait = jsonObject["portrait"]
|
|
811
827
|
result.stopList = jsonObject["stopList"]
|
|
828
|
+
result.mDL = jsonObject["mDL"]
|
|
829
|
+
result.age = jsonObject["age"]
|
|
830
|
+
result.captureProcessIntegrity = jsonObject["captureProcessIntegrity"]
|
|
831
|
+
result.detailsAge = DetailsAge.fromJson(jsonObject["detailsAge"])
|
|
812
832
|
|
|
813
833
|
return result
|
|
814
834
|
}
|
|
@@ -875,6 +895,50 @@ export class VDSNCData {
|
|
|
875
895
|
}
|
|
876
896
|
}
|
|
877
897
|
|
|
898
|
+
export class DocFeature {
|
|
899
|
+
static fromJson(jsonObject) {
|
|
900
|
+
if (jsonObject == null) return null
|
|
901
|
+
const result = new DocFeature()
|
|
902
|
+
|
|
903
|
+
result.type = jsonObject["type"]
|
|
904
|
+
result.data = BytesData.fromJson(jsonObject["data"])
|
|
905
|
+
|
|
906
|
+
return result
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
export class VDSData {
|
|
911
|
+
static fromJson(jsonObject) {
|
|
912
|
+
if (jsonObject == null) return null
|
|
913
|
+
const result = new VDSData()
|
|
914
|
+
|
|
915
|
+
result.type = jsonObject["type"]
|
|
916
|
+
result.docType = jsonObject["docType"]
|
|
917
|
+
result.featureRef = jsonObject["featureRef"]
|
|
918
|
+
result.version = jsonObject["version"]
|
|
919
|
+
result.issuingCountry = jsonObject["issuingCountry"]
|
|
920
|
+
result.docIssueDate = jsonObject["docIssueDate"]
|
|
921
|
+
result.signature = BytesData.fromJson(jsonObject["signature"])
|
|
922
|
+
result.signatureDate = jsonObject["signatureDate"]
|
|
923
|
+
result.signer = jsonObject["signer"]
|
|
924
|
+
result.certificate = jsonObject["certificate"]
|
|
925
|
+
result.certificateChain = []
|
|
926
|
+
if (jsonObject["certificateChain"] != null)
|
|
927
|
+
for (const i in jsonObject["certificateChain"])
|
|
928
|
+
result.certificateChain.push(CertificateChain.fromJson(jsonObject["certificateChain"][i]))
|
|
929
|
+
result.docFeatures = []
|
|
930
|
+
if (jsonObject["docFeatures"] != null)
|
|
931
|
+
for (const i in jsonObject["docFeatures"])
|
|
932
|
+
result.docFeatures.push(DocFeature.fromJson(jsonObject["docFeatures"][i]))
|
|
933
|
+
result.notifications = []
|
|
934
|
+
if (jsonObject["notifications"] != null)
|
|
935
|
+
for (const i in jsonObject["notifications"])
|
|
936
|
+
result.notifications.push(jsonObject["notifications"][i])
|
|
937
|
+
|
|
938
|
+
return result
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
|
|
878
942
|
export class BytesData {
|
|
879
943
|
static fromJson(jsonObject) {
|
|
880
944
|
if (jsonObject == null) return null
|
|
@@ -1217,6 +1281,7 @@ export class DocumentReaderResults {
|
|
|
1217
1281
|
result.documentType.push(DocumentReaderDocumentType.fromJson(jsonObject["documentType"][i]))
|
|
1218
1282
|
result.status = DocumentReaderResultsStatus.fromJson(jsonObject["status"])
|
|
1219
1283
|
result.vdsncData = VDSNCData.fromJson(jsonObject["vdsncData"])
|
|
1284
|
+
result.vdsData = VDSData.fromJson(jsonObject["vdsData"])
|
|
1220
1285
|
result.dtcData = jsonObject["dtcData"]
|
|
1221
1286
|
result.transactionInfo = TransactionInfo.fromJson(jsonObject["transactionInfo"])
|
|
1222
1287
|
|
|
@@ -1259,6 +1324,7 @@ export class Functionality {
|
|
|
1259
1324
|
result.singleResult = jsonObject["singleResult"]
|
|
1260
1325
|
result.torchTurnedOn = jsonObject["torchTurnedOn"]
|
|
1261
1326
|
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
1327
|
+
result.homeIndicatorAutoHide = jsonObject["homeIndicatorAutoHide"]
|
|
1262
1328
|
result.showCaptureButtonDelayFromDetect = jsonObject["showCaptureButtonDelayFromDetect"]
|
|
1263
1329
|
result.showCaptureButtonDelayFromStart = jsonObject["showCaptureButtonDelayFromStart"]
|
|
1264
1330
|
result.rfidTimeout = jsonObject["rfidTimeout"]
|
|
@@ -1267,6 +1333,7 @@ export class Functionality {
|
|
|
1267
1333
|
result.captureMode = jsonObject["captureMode"]
|
|
1268
1334
|
result.cameraMode = jsonObject["cameraMode"]
|
|
1269
1335
|
result.cameraPositionIOS = jsonObject["cameraPositionIOS"]
|
|
1336
|
+
result.mdlTimeout = jsonObject["mdlTimeout"]
|
|
1270
1337
|
result.cameraFrame = jsonObject["cameraFrame"]
|
|
1271
1338
|
result.btDeviceName = jsonObject["btDeviceName"]
|
|
1272
1339
|
result.zoomFactor = jsonObject["zoomFactor"]
|
|
@@ -1469,6 +1536,7 @@ export class ProcessParams {
|
|
|
1469
1536
|
result.disableAuthResolutionFilter = jsonObject["disableAuthResolutionFilter"]
|
|
1470
1537
|
result.strictSecurityChecks = jsonObject["strictSecurityChecks"]
|
|
1471
1538
|
result.returnTransliteratedFields = jsonObject["returnTransliteratedFields"]
|
|
1539
|
+
result.checkCaptureProcessIntegrity = jsonObject["checkCaptureProcessIntegrity"]
|
|
1472
1540
|
result.barcodeParserType = jsonObject["barcodeParserType"]
|
|
1473
1541
|
result.perspectiveAngle = jsonObject["perspectiveAngle"]
|
|
1474
1542
|
result.minDPI = jsonObject["minDPI"]
|
|
@@ -1521,6 +1589,10 @@ export class ProcessParams {
|
|
|
1521
1589
|
if (jsonObject["lcidFilter"] != null)
|
|
1522
1590
|
for (const i in jsonObject["lcidFilter"])
|
|
1523
1591
|
result.lcidFilter.push(jsonObject["lcidFilter"][i])
|
|
1592
|
+
result.fieldTypesIgnoreFilter = []
|
|
1593
|
+
if (jsonObject["fieldTypesIgnoreFilter"] != null)
|
|
1594
|
+
for (const i in jsonObject["fieldTypesIgnoreFilter"])
|
|
1595
|
+
result.fieldTypesIgnoreFilter.push(jsonObject["fieldTypesIgnoreFilter"][i])
|
|
1524
1596
|
result.mrzFormatsFilter = []
|
|
1525
1597
|
if (jsonObject["mrzFormatsFilter"] != null)
|
|
1526
1598
|
for (const i in jsonObject["mrzFormatsFilter"])
|
|
@@ -1643,6 +1715,7 @@ export class Customization {
|
|
|
1643
1715
|
result.activityIndicatorPortraitPositionMultiplier = jsonObject["activityIndicatorPortraitPositionMultiplier"]
|
|
1644
1716
|
result.activityIndicatorLandscapePositionMultiplier = jsonObject["activityIndicatorLandscapePositionMultiplier"]
|
|
1645
1717
|
result.cameraPreviewVerticalPositionMultiplier = jsonObject["cameraPreviewVerticalPositionMultiplier"]
|
|
1718
|
+
result.multipageButtonPositionMultiplier = jsonObject["multipageButtonPositionMultiplier"]
|
|
1646
1719
|
result.multipageAnimationFrontImage = jsonObject["multipageAnimationFrontImage"]
|
|
1647
1720
|
result.multipageAnimationBackImage = jsonObject["multipageAnimationBackImage"]
|
|
1648
1721
|
result.borderBackgroundImage = jsonObject["borderBackgroundImage"]
|
|
@@ -1876,6 +1949,133 @@ export class PrepareProgress {
|
|
|
1876
1949
|
}
|
|
1877
1950
|
}
|
|
1878
1951
|
|
|
1952
|
+
export class DeviceEngagement {
|
|
1953
|
+
static fromJson(jsonObject) {
|
|
1954
|
+
if (jsonObject == null) return null
|
|
1955
|
+
const result = new DeviceEngagement()
|
|
1956
|
+
|
|
1957
|
+
result.deviceRetrievalMethods = []
|
|
1958
|
+
if (jsonObject["deviceRetrievalMethods"] != null)
|
|
1959
|
+
for (const i in jsonObject["deviceRetrievalMethods"])
|
|
1960
|
+
result.deviceRetrievalMethods.push(DeviceRetrievalMethod.fromJson(jsonObject["deviceRetrievalMethods"][i]))
|
|
1961
|
+
|
|
1962
|
+
return result
|
|
1963
|
+
}
|
|
1964
|
+
}
|
|
1965
|
+
|
|
1966
|
+
export class DeviceRetrievalMethod {
|
|
1967
|
+
static fromJson(jsonObject) {
|
|
1968
|
+
if (jsonObject == null) return null
|
|
1969
|
+
const result = new DeviceRetrievalMethod()
|
|
1970
|
+
|
|
1971
|
+
result.type = jsonObject["type"]
|
|
1972
|
+
result.version = jsonObject["version"]
|
|
1973
|
+
result.cmdMaxLength = jsonObject["cmdMaxLength"]
|
|
1974
|
+
result.respMaxLength = jsonObject["respMaxLength"]
|
|
1975
|
+
result.clientModeSupport = jsonObject["clientModeSupport"]
|
|
1976
|
+
result.clientModeUUID = jsonObject["clientModeUUID"]
|
|
1977
|
+
result.serverModeSupport = jsonObject["serverModeSupport"]
|
|
1978
|
+
result.serverModeUUID = jsonObject["serverModeUUID"]
|
|
1979
|
+
|
|
1980
|
+
return result
|
|
1981
|
+
}
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1984
|
+
export class DataRetrieval {
|
|
1985
|
+
static fromJson(jsonObject) {
|
|
1986
|
+
if (jsonObject == null) return null
|
|
1987
|
+
const result = new DataRetrieval()
|
|
1988
|
+
|
|
1989
|
+
result.deviceRetrieval = jsonObject["deviceRetrieval"]
|
|
1990
|
+
result.docRequestPreset = jsonObject["docRequestPreset"]
|
|
1991
|
+
result.intentToRetain = jsonObject["intentToRetain"]
|
|
1992
|
+
result.requests = []
|
|
1993
|
+
if (jsonObject["requests"] != null)
|
|
1994
|
+
for (const i in jsonObject["requests"])
|
|
1995
|
+
result.requests.push(jsonObject["requests"][i])
|
|
1996
|
+
|
|
1997
|
+
return result
|
|
1998
|
+
}
|
|
1999
|
+
}
|
|
2000
|
+
|
|
2001
|
+
export class DocumentRequestMDL {
|
|
2002
|
+
static fromJson(jsonObject) {
|
|
2003
|
+
if (jsonObject == null) return null
|
|
2004
|
+
const result = new DocumentRequestMDL()
|
|
2005
|
+
|
|
2006
|
+
result.docType = jsonObject["docType"]
|
|
2007
|
+
result.namespaces = []
|
|
2008
|
+
if (jsonObject["namespaces"] != null)
|
|
2009
|
+
for (const i in jsonObject["namespaces"])
|
|
2010
|
+
result.namespaces.push(NameSpaceMDL.fromJson(jsonObject["namespaces"][i]))
|
|
2011
|
+
|
|
2012
|
+
return result
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
export class NameSpaceMDL {
|
|
2017
|
+
static fromJson(jsonObject) {
|
|
2018
|
+
if (jsonObject == null) return null
|
|
2019
|
+
const result = new NameSpaceMDL()
|
|
2020
|
+
|
|
2021
|
+
result.name = jsonObject["name"]
|
|
2022
|
+
result.map = jsonObject["map"]
|
|
2023
|
+
|
|
2024
|
+
return result
|
|
2025
|
+
}
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
export class DocumentRequest18013MDL {
|
|
2029
|
+
static fromJson(jsonObject) {
|
|
2030
|
+
if (jsonObject == null) return null
|
|
2031
|
+
const result = new DocumentRequest18013MDL()
|
|
2032
|
+
|
|
2033
|
+
result.docType = jsonObject["docType"]
|
|
2034
|
+
result.namespaces = []
|
|
2035
|
+
if (jsonObject["namespaces"] != null)
|
|
2036
|
+
for (const i in jsonObject["namespaces"])
|
|
2037
|
+
result.namespaces.push(NameSpaceMDL.fromJson(jsonObject["namespaces"][i]))
|
|
2038
|
+
result.familyName = jsonObject["familyName"]
|
|
2039
|
+
result.givenName = jsonObject["givenName"]
|
|
2040
|
+
result.birthDate = jsonObject["birthDate"]
|
|
2041
|
+
result.issueDate = jsonObject["issueDate"]
|
|
2042
|
+
result.expiryDate = jsonObject["expiryDate"]
|
|
2043
|
+
result.issuingCountry = jsonObject["issuingCountry"]
|
|
2044
|
+
result.issuingAuthority = jsonObject["issuingAuthority"]
|
|
2045
|
+
result.documentNumber = jsonObject["documentNumber"]
|
|
2046
|
+
result.portrait = jsonObject["portrait"]
|
|
2047
|
+
result.drivingPrivileges = jsonObject["drivingPrivileges"]
|
|
2048
|
+
result.unDistinguishingSign = jsonObject["unDistinguishingSign"]
|
|
2049
|
+
result.administrativeNumber = jsonObject["administrativeNumber"]
|
|
2050
|
+
result.sex = jsonObject["sex"]
|
|
2051
|
+
result.height = jsonObject["height"]
|
|
2052
|
+
result.weight = jsonObject["weight"]
|
|
2053
|
+
result.eyeColour = jsonObject["eyeColour"]
|
|
2054
|
+
result.hairColour = jsonObject["hairColour"]
|
|
2055
|
+
result.birthPlace = jsonObject["birthPlace"]
|
|
2056
|
+
result.residentAddress = jsonObject["residentAddress"]
|
|
2057
|
+
result.portraitCaptureDate = jsonObject["portraitCaptureDate"]
|
|
2058
|
+
result.ageInYears = jsonObject["ageInYears"]
|
|
2059
|
+
result.ageBirthYear = jsonObject["ageBirthYear"]
|
|
2060
|
+
result.ageOver18 = jsonObject["ageOver18"]
|
|
2061
|
+
result.issuingJurisdiction = jsonObject["issuingJurisdiction"]
|
|
2062
|
+
result.nationality = jsonObject["nationality"]
|
|
2063
|
+
result.residentCity = jsonObject["residentCity"]
|
|
2064
|
+
result.residentState = jsonObject["residentState"]
|
|
2065
|
+
result.residentPostalCode = jsonObject["residentPostalCode"]
|
|
2066
|
+
result.residentCountry = jsonObject["residentCountry"]
|
|
2067
|
+
result.biometricTemplateFace = jsonObject["biometricTemplateFace"]
|
|
2068
|
+
result.biometricTemplateIris = jsonObject["biometricTemplateIris"]
|
|
2069
|
+
result.biometricTemplateFinger = jsonObject["biometricTemplateFinger"]
|
|
2070
|
+
result.biometricTemplateSignatureSign = jsonObject["biometricTemplateSignatureSign"]
|
|
2071
|
+
result.familyNameNationalCharacter = jsonObject["familyNameNationalCharacter"]
|
|
2072
|
+
result.givenNameNationalCharacter = jsonObject["givenNameNationalCharacter"]
|
|
2073
|
+
result.signatureUsualMark = jsonObject["signatureUsualMark"]
|
|
2074
|
+
|
|
2075
|
+
return result
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2078
|
+
|
|
1879
2079
|
// Enum
|
|
1880
2080
|
|
|
1881
2081
|
export const FontStyle = {
|
|
@@ -2228,13 +2428,16 @@ export const eRPRM_ResultType = {
|
|
|
2228
2428
|
RFID_RESULT_TYPE_RFID_IMAGE_DATA: 103,
|
|
2229
2429
|
RFID_RESULT_TYPE_RFID_BINARY_DATA: 104,
|
|
2230
2430
|
RFID_RESULT_TYPE_RFID_ORIGINAL_GRAPHICS: 105,
|
|
2431
|
+
RFID_RESULT_TYPE_RFID_DTC_VC: 109,
|
|
2432
|
+
RPRM_RESULT_TYPE_MDL_PARSED_RESPONSE: 121,
|
|
2433
|
+
RPRM_RESULT_TYPE_VDS_NC: 124,
|
|
2434
|
+
RPRM_RESULT_TYPE_VDS: 125,
|
|
2231
2435
|
RPRM_RESULT_TYPE_BARCODE_POSITION: 62,
|
|
2232
2436
|
RPRM_RESULT_TYPE_MRZ_POSITION: 61,
|
|
2233
2437
|
RPRM_RESULT_TYPE_LIVE_PORTRAIT: 32,
|
|
2234
2438
|
RPRM_RESULT_TYPE_STATUS: 33,
|
|
2235
2439
|
RPRM_RESULT_TYPE_PORTRAIT_COMPARISON: 34,
|
|
2236
2440
|
RPRM_RESULT_TYPE_EXT_PORTRAIT: 35,
|
|
2237
|
-
RFID_RESULT_TYPE_RFID_DTC_VC: 109,
|
|
2238
2441
|
}
|
|
2239
2442
|
|
|
2240
2443
|
export const FrameShapeType = {
|
|
@@ -2242,6 +2445,11 @@ export const FrameShapeType = {
|
|
|
2242
2445
|
CORNER: 1,
|
|
2243
2446
|
}
|
|
2244
2447
|
|
|
2448
|
+
export const eMDLDeviceRetrieval = {
|
|
2449
|
+
NFC: 1,
|
|
2450
|
+
BLE: 2,
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2245
2453
|
export const eRFID_BaudRate = {
|
|
2246
2454
|
rfbr_106: 1,
|
|
2247
2455
|
rfbr_212: 2,
|
|
@@ -2308,6 +2516,9 @@ export const PKDResourceType = {
|
|
|
2308
2516
|
DEFL: 5,
|
|
2309
2517
|
DEVL: 6,
|
|
2310
2518
|
BL: 7,
|
|
2519
|
+
LDIF_TA: 8,
|
|
2520
|
+
ML_TA: 9,
|
|
2521
|
+
CBOR: 10,
|
|
2311
2522
|
|
|
2312
2523
|
getType: function (value) {
|
|
2313
2524
|
switch (value) {
|
|
@@ -2347,11 +2558,10 @@ export const DocumentReaderErrorCodes = {
|
|
|
2347
2558
|
NO_RESULT: 3,
|
|
2348
2559
|
REMOVE_DATABASE: 4,
|
|
2349
2560
|
FETCHING_DATABASE: 5,
|
|
2350
|
-
DB_ID_NOT_FOUND: 6,
|
|
2351
2561
|
DB_DESCRIPTION_NOT_FOUND: 7,
|
|
2352
2562
|
SAVE_DB: 8,
|
|
2353
2563
|
DOWNLOAD_DB_INCORRECT_CHECKSUM: 9,
|
|
2354
|
-
|
|
2564
|
+
DOWNLOAD_DB: 10,
|
|
2355
2565
|
RFID_ERROR: 12,
|
|
2356
2566
|
LICENSE_ABSENT_OR_CORRUPTED: 13,
|
|
2357
2567
|
LICENSE_INVALID_DATE: 14,
|
|
@@ -2365,13 +2575,14 @@ export const DocumentReaderErrorCodes = {
|
|
|
2365
2575
|
LICENSE_NO_DATABASE: 22,
|
|
2366
2576
|
LICENSE_DATABASE_INCORRECT: 23,
|
|
2367
2577
|
INVALID_TCC_PARAMS: 24,
|
|
2368
|
-
|
|
2578
|
+
ALREADY_IN_PROGRESS: 25,
|
|
2369
2579
|
START_BACKEND_PROCESSING: 26,
|
|
2370
2580
|
ADD_DATA_TO_PACKAGE: 27,
|
|
2371
2581
|
FINALIZE_FAILED: 28,
|
|
2372
2582
|
CAMERA_NO_PERMISSION: 29,
|
|
2373
2583
|
CAMERA_NOT_AVAILABLE: 30,
|
|
2374
2584
|
CANNOT_USE_CAMERA_IN_SCENARIO: 40,
|
|
2585
|
+
BLUETOOTH_NO_PERMISSION: 41,
|
|
2375
2586
|
NATIVE_JAVA_EXCEPTION: 1000,
|
|
2376
2587
|
BACKEND_ONLINE_PROCESSING: 303,
|
|
2377
2588
|
WRONG_INPUT: 400,
|
|
@@ -2382,6 +2593,7 @@ export const DocumentReaderErrorCodes = {
|
|
|
2382
2593
|
FEATURE_BLUETOOTH_LE_NOT_SUPPORTED: 601,
|
|
2383
2594
|
APP_BACKGROUND: 700,
|
|
2384
2595
|
ONLINE_PROCESSING_WRONG_INPUT: 800,
|
|
2596
|
+
MDL_EXCEPTION: 900,
|
|
2385
2597
|
}
|
|
2386
2598
|
|
|
2387
2599
|
export const ScenarioIdentifier = {
|
|
@@ -2548,6 +2760,11 @@ export const eSignManagementAction = {
|
|
|
2548
2760
|
smaSignData: 7,
|
|
2549
2761
|
}
|
|
2550
2762
|
|
|
2763
|
+
export const eMDLDeviceEngagement = {
|
|
2764
|
+
QR: 0,
|
|
2765
|
+
NFC: 1,
|
|
2766
|
+
}
|
|
2767
|
+
|
|
2551
2768
|
export const eCheckDiagnose = {
|
|
2552
2769
|
UNKNOWN: 0,
|
|
2553
2770
|
PASS: 1,
|
|
@@ -2679,6 +2896,11 @@ export const eCheckDiagnose = {
|
|
|
2679
2896
|
INCORRECT_OBJECT_COLOR: 250,
|
|
2680
2897
|
}
|
|
2681
2898
|
|
|
2899
|
+
export const eMDLIntentToRetain = {
|
|
2900
|
+
FALSE: 0,
|
|
2901
|
+
TRUE: 1,
|
|
2902
|
+
}
|
|
2903
|
+
|
|
2682
2904
|
export const RFIDDelegate = {
|
|
2683
2905
|
NULL: 0,
|
|
2684
2906
|
NO_PA: 1,
|
|
@@ -4175,6 +4397,9 @@ export const eVisualFieldType = {
|
|
|
4175
4397
|
FT_NATIONALITY_CODE_ALPHA2: 697,
|
|
4176
4398
|
FT_FIRST_ISSUE_DATE_CHECKDIGIT: 698,
|
|
4177
4399
|
FT_FIRST_ISSUE_DATE_CHECKSUM: 699,
|
|
4400
|
+
FT_COMMERCIAL_INDICATOR: 701,
|
|
4401
|
+
FT_NON_DOMICILED_INDICATOR: 702,
|
|
4402
|
+
FT_JURISDICTION_SPECIFIC_DATA: 703,
|
|
4178
4403
|
}
|
|
4179
4404
|
|
|
4180
4405
|
export const DocReaderOrientation = {
|
|
@@ -4366,6 +4591,14 @@ export const DocReaderFrame = {
|
|
|
4366
4591
|
DOCUMENT: "document",
|
|
4367
4592
|
}
|
|
4368
4593
|
|
|
4594
|
+
export const eMDLDocRequestPreset = {
|
|
4595
|
+
ALL: 0,
|
|
4596
|
+
AGE: 1,
|
|
4597
|
+
STANDARD_ID: 2,
|
|
4598
|
+
TRAVEL: 3,
|
|
4599
|
+
DRIVERS_LICENSE: 4,
|
|
4600
|
+
}
|
|
4601
|
+
|
|
4369
4602
|
export const eRPRM_Lights = {
|
|
4370
4603
|
NONE: 0,
|
|
4371
4604
|
RPRM_LIGHT_UV: 128,
|
|
@@ -4394,6 +4627,7 @@ export const Enum = {
|
|
|
4394
4627
|
RGLMeasureSystem,
|
|
4395
4628
|
eRPRM_ResultType,
|
|
4396
4629
|
FrameShapeType,
|
|
4630
|
+
eMDLDeviceRetrieval,
|
|
4397
4631
|
eRFID_BaudRate,
|
|
4398
4632
|
LineCap,
|
|
4399
4633
|
eRPRM_FieldVerificationResult,
|
|
@@ -4412,7 +4646,9 @@ export const Enum = {
|
|
|
4412
4646
|
BarcodeResult,
|
|
4413
4647
|
eRFID_Application_Type,
|
|
4414
4648
|
eSignManagementAction,
|
|
4649
|
+
eMDLDeviceEngagement,
|
|
4415
4650
|
eCheckDiagnose,
|
|
4651
|
+
eMDLIntentToRetain,
|
|
4416
4652
|
RFIDDelegate,
|
|
4417
4653
|
TextProcessing,
|
|
4418
4654
|
LogLevel,
|
|
@@ -4445,6 +4681,7 @@ export const Enum = {
|
|
|
4445
4681
|
LCID,
|
|
4446
4682
|
CustomizationImage,
|
|
4447
4683
|
DocReaderFrame,
|
|
4684
|
+
eMDLDocRequestPreset,
|
|
4448
4685
|
eRPRM_Lights,
|
|
4449
4686
|
eMrzDetectionModes,
|
|
4450
4687
|
}
|
|
@@ -4510,5 +4747,12 @@ DocumentReader.getDocReaderDocumentsDatabase = (successCallback, errorCallback)
|
|
|
4510
4747
|
DocumentReader.finalizePackage = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "finalizePackage", [], successCallback, errorCallback)
|
|
4511
4748
|
DocumentReader.endBackendTransaction = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "endBackendTransaction", [], successCallback, errorCallback)
|
|
4512
4749
|
DocumentReader.getTranslation = (className, value, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getTranslation", [className, value], successCallback, errorCallback)
|
|
4750
|
+
DocumentReader.startReadMDl = (type, dataRetrieval, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "startReadMDl", [type, dataRetrieval], successCallback, errorCallback)
|
|
4751
|
+
DocumentReader.startEngageDevice = (type, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "startEngageDevice", [type], successCallback, errorCallback)
|
|
4752
|
+
DocumentReader.engageDeviceNFC = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "engageDeviceNFC", [], successCallback, errorCallback)
|
|
4753
|
+
DocumentReader.engageDeviceData = (data, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "engageDeviceData", [data], successCallback, errorCallback)
|
|
4754
|
+
DocumentReader.startRetrieveData = (deviceEngagement, dataRetrieval, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "startRetrieveData", [deviceEngagement, dataRetrieval], successCallback, errorCallback)
|
|
4755
|
+
DocumentReader.retrieveDataNFC = (dataRetrieval, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "retrieveDataNFC", [dataRetrieval], successCallback, errorCallback)
|
|
4756
|
+
DocumentReader.retrieveDataBLE = (deviceEngagement, dataRetrieval, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "retrieveDataBLE", [deviceEngagement, dataRetrieval], successCallback, errorCallback)
|
|
4513
4757
|
|
|
4514
4758
|
export default DocumentReader
|
package/ios/RGLWConfig.m
CHANGED
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
functionality.singleResult = [[options valueForKey:@"singleResult"] boolValue];
|
|
36
36
|
if(options[@"torchTurnedOn"]) functionality.torchTurnedOn = [options[@"torchTurnedOn"] boolValue];
|
|
37
37
|
if(options[@"preventScreenRecording"]) functionality.preventScreenRecording = [options[@"preventScreenRecording"] boolValue];
|
|
38
|
+
if(options[@"homeIndicatorAutoHide"]) functionality.homeIndicatorAutoHide = [options[@"homeIndicatorAutoHide"] boolValue];
|
|
38
39
|
|
|
39
40
|
// Int
|
|
40
41
|
if([options valueForKey:@"showCaptureButtonDelayFromDetect"] != nil)
|
|
@@ -61,6 +62,7 @@
|
|
|
61
62
|
// Float
|
|
62
63
|
if([options valueForKey:@"zoomFactor"] != nil)
|
|
63
64
|
functionality.zoomFactor = [[options valueForKey:@"zoomFactor"] floatValue];
|
|
65
|
+
if(options[@"mdlTimeout"]) functionality.mDLTimeout = [options[@"mdlTimeout"] doubleValue];
|
|
64
66
|
|
|
65
67
|
// Custom
|
|
66
68
|
// in android - cameraSize
|
|
@@ -90,6 +92,7 @@
|
|
|
90
92
|
result[@"singleResult"] = [NSNumber numberWithBool:functionality.singleResult];
|
|
91
93
|
result[@"torchTurnedOn"] = @(functionality.torchTurnedOn);
|
|
92
94
|
result[@"preventScreenRecording"] = @(functionality.preventScreenRecording);
|
|
95
|
+
result[@"homeIndicatorAutoHide"] = @(functionality.homeIndicatorAutoHide);
|
|
93
96
|
|
|
94
97
|
// Int
|
|
95
98
|
result[@"showCaptureButtonDelayFromDetect"] = [NSNumber numberWithDouble:functionality.showCaptureButtonDelayFromDetect];
|
|
@@ -107,6 +110,7 @@
|
|
|
107
110
|
|
|
108
111
|
// Float
|
|
109
112
|
result[@"zoomFactor"] = [NSNumber numberWithFloat:functionality.zoomFactor];
|
|
113
|
+
result[@"mdlTimeout"] = @(functionality.mDLTimeout);
|
|
110
114
|
|
|
111
115
|
// Custom
|
|
112
116
|
// in android - cameraSize
|
|
@@ -256,8 +260,8 @@
|
|
|
256
260
|
processParams.documentGroupFilter = [options mutableArrayValueForKey:@"documentGroupFilter"];
|
|
257
261
|
if([options valueForKey:@"lcidIgnoreFilter"] != nil)
|
|
258
262
|
processParams.lcidIgnoreFilter = [options mutableArrayValueForKey:@"lcidIgnoreFilter"];
|
|
259
|
-
if([
|
|
260
|
-
|
|
263
|
+
if (options[@"lcidFilter"]) processParams.lcidFilter = options[@"lcidFilter"];
|
|
264
|
+
if (options[@"fieldTypesIgnoreFilter"]) processParams.fieldTypesIgnoreFilter = options[@"fieldTypesIgnoreFilter"];
|
|
261
265
|
|
|
262
266
|
// JSONObject
|
|
263
267
|
if (options[@"customParams"]) processParams.customParams = options[@"customParams"];
|
|
@@ -357,6 +361,7 @@
|
|
|
357
361
|
result[@"documentGroupFilter"] = processParams.documentGroupFilter;
|
|
358
362
|
result[@"lcidIgnoreFilter"] = processParams.lcidIgnoreFilter;
|
|
359
363
|
result[@"lcidFilter"] = processParams.lcidFilter;
|
|
364
|
+
result[@"fieldTypesIgnoreFilter"] = processParams.fieldTypesIgnoreFilter;
|
|
360
365
|
result[@"mrzFormatsFilter"] = processParams.mrzFormatsFilter;
|
|
361
366
|
result[@"resultTypeOutput"] = processParams.resultTypeOutput;
|
|
362
367
|
|
|
@@ -454,6 +459,7 @@
|
|
|
454
459
|
if(options[@"activityIndicatorPortraitPositionMultiplier"]) customization.activityIndicatorPortraitPositionMultiplier = [options[@"activityIndicatorPortraitPositionMultiplier"] floatValue];
|
|
455
460
|
if(options[@"activityIndicatorLandscapePositionMultiplier"]) customization.activityIndicatorLandscapePositionMultiplier = [options[@"activityIndicatorLandscapePositionMultiplier"] floatValue];
|
|
456
461
|
if(options[@"cameraPreviewVerticalPositionMultiplier"]) customization.previewLayerPositionMultiplier = [options[@"cameraPreviewVerticalPositionMultiplier"] floatValue];
|
|
462
|
+
if(options[@"multipageButtonPositionMultiplier"]) customization.multipageButtonPositionMultiplier = [options[@"multipageButtonPositionMultiplier"] floatValue];
|
|
457
463
|
|
|
458
464
|
// Drawable
|
|
459
465
|
if([options valueForKey:@"multipageAnimationFrontImage"] != nil)
|
|
@@ -568,6 +574,7 @@
|
|
|
568
574
|
result[@"activityIndicatorPortraitPositionMultiplier"] = [NSNumber numberWithFloat:customization.activityIndicatorPortraitPositionMultiplier];
|
|
569
575
|
result[@"activityIndicatorLandscapePositionMultiplier"] = [NSNumber numberWithFloat:customization.activityIndicatorLandscapePositionMultiplier];
|
|
570
576
|
result[@"cameraPreviewVerticalPositionMultiplier"] = [NSNumber numberWithFloat:customization.previewLayerPositionMultiplier];
|
|
577
|
+
result[@"multipageButtonPositionMultiplier"] = [NSNumber numberWithFloat:customization.multipageButtonPositionMultiplier];
|
|
571
578
|
|
|
572
579
|
// Drawable
|
|
573
580
|
result[@"multipageAnimationFrontImage"] = [RGLWJSONConstructor base64WithImage:customization.multipageAnimationFrontImage];
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
+(NSString* _Nullable)generateCompletion:(NSNumber*_Nonnull)action :(RGLDocumentReaderResults*_Nullable)results :(NSError*_Nullable)error;
|
|
21
21
|
+(NSString* _Nonnull)generatePACertificateCompletion:(NSData *_Nullable)serialNumber :(RGLPAResourcesIssuer *_Nullable)issuer;
|
|
22
22
|
+(NSString* _Nullable)generateFinalizePackageCompletion:(NSNumber*_Nonnull)action :(RGLTransactionInfo*_Nullable)info :(NSError*_Nullable)error;
|
|
23
|
+
+(NSString* _Nullable)generateDeviceEngagementCompletion:(RGLDeviceEngagement* _Nullable)deviceEngagement :(NSError* _Nullable)error;
|
|
23
24
|
|
|
24
25
|
+(RGLConfig* _Nullable)configFromJson:(NSDictionary* _Nullable)input;
|
|
25
26
|
+(NSDictionary* _Nullable)generateConfig:(RGLConfig* _Nullable)input;
|
|
@@ -126,6 +127,10 @@
|
|
|
126
127
|
+(NSDictionary* _Nullable)generateBytesData:(RGLBytesData* _Nullable)input;
|
|
127
128
|
+(RGLVDSNCData* _Nullable)vdsncDataFromJson:(NSDictionary* _Nullable)input;
|
|
128
129
|
+(NSDictionary* _Nullable)generateVDSNCData:(RGLVDSNCData* _Nullable)input;
|
|
130
|
+
+(RGLDocFeature* _Nullable)docFeatureFromJson:(NSDictionary* _Nullable)input;
|
|
131
|
+
+(NSDictionary* _Nullable)generateDocFeature:(RGLDocFeature* _Nullable)input;
|
|
132
|
+
+(RGLVDSData* _Nullable)vdsDataFromJson:(NSDictionary* _Nullable)input;
|
|
133
|
+
+(NSDictionary* _Nullable)generateVDSData:(RGLVDSData* _Nullable)input;
|
|
129
134
|
+(RGLOpticalStatus* _Nullable)opticalStatusFromJson:(NSDictionary* _Nullable)input;
|
|
130
135
|
+(NSDictionary* _Nullable)generateOpticalStatus:(RGLOpticalStatus* _Nullable)input;
|
|
131
136
|
+(RGLRFIDSessionDataStatus* _Nullable)rfidSessionDataStatusFromJson:(NSDictionary* _Nullable)input;
|
|
@@ -175,6 +180,20 @@
|
|
|
175
180
|
+(NSDictionary* _Nullable)generateTCCParams:(RGLTCCParams* _Nullable)input;
|
|
176
181
|
+(RGLTransactionInfo* _Nullable)transactionInfoFromJson:(NSDictionary* _Nullable)input;
|
|
177
182
|
+(NSDictionary* _Nullable)generateTransactionInfo:(RGLTransactionInfo* _Nullable)input;
|
|
183
|
+
+(RGLDetailsAge* _Nullable)detailsAgeFromJson:(NSDictionary* _Nullable)input;
|
|
184
|
+
+(NSDictionary* _Nullable)generateDetailsAge:(RGLDetailsAge* _Nullable)input;
|
|
185
|
+
+(RGLDeviceRetrievalMethod* _Nullable)deviceRetrievalMethodFromJson:(NSDictionary* _Nullable)input;
|
|
186
|
+
+(NSDictionary* _Nullable)generateDeviceRetrievalMethod:(RGLDeviceRetrievalMethod* _Nullable)input;
|
|
187
|
+
+(RGLDocumentRequest18013MDL* _Nullable)documentRequest18013MDLFromJson:(NSDictionary* _Nullable)input;
|
|
188
|
+
+(NSDictionary* _Nullable)generateDocumentRequest18013MDL:(RGLDocumentRequest18013MDL* _Nullable)input;
|
|
189
|
+
+(RGLDataRetrieval* _Nullable)dataRetrievalFromJson:(NSDictionary* _Nullable)input;
|
|
190
|
+
+(NSDictionary* _Nullable)generateDataRetrieval:(RGLDataRetrieval* _Nullable)input;
|
|
191
|
+
+(RGLDeviceEngagement* _Nullable)deviceEngagementFromJson:(NSDictionary* _Nullable)input;
|
|
192
|
+
+(NSDictionary* _Nullable)generateDeviceEngagement:(RGLDeviceEngagement* _Nullable)input;
|
|
193
|
+
+(RGLNameSpaceMDL* _Nullable)nameSpaceMDLFromJson:(NSDictionary* _Nullable)input;
|
|
194
|
+
+(NSDictionary* _Nullable)generateNameSpaceMDL:(RGLNameSpaceMDL* _Nullable)input;
|
|
195
|
+
+(RGLDocumentRequestMDL* _Nullable)documentRequestMDLFromJson:(NSDictionary* _Nullable)input;
|
|
196
|
+
+(NSDictionary* _Nullable)generateDocumentRequestMDL:(RGLDocumentRequestMDL* _Nullable)input;
|
|
178
197
|
|
|
179
198
|
@end
|
|
180
199
|
|