@regulaforensics/react-native-document-reader-api 7.1.0 → 7.2.0

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/index.js CHANGED
@@ -638,10 +638,7 @@ export class DocumentReaderBarcodeField {
638
638
  result.status = jsonObject["status"]
639
639
  result.pageIndex = jsonObject["pageIndex"]
640
640
  result.pdf417Info = PDF417Info.fromJson(jsonObject["pdf417Info"])
641
- result.data = []
642
- if (jsonObject["data"] != null)
643
- for (const i in jsonObject["data"])
644
- result.data.push(jsonObject["data"][i])
641
+ result.data = jsonObject["data"]
645
642
 
646
643
  return result
647
644
  }
@@ -762,10 +759,7 @@ export class PAResourcesIssuer {
762
759
  if (jsonObject == null) return null
763
760
  const result = new PAResourcesIssuer()
764
761
 
765
- result.data = []
766
- if (jsonObject["data"] != null)
767
- for (const i in jsonObject["data"])
768
- result.data.push(jsonObject["data"][i])
762
+ result.data = jsonObject["data"]
769
763
  result.friendlyName = jsonObject["friendlyName"]
770
764
  result.attributes = []
771
765
  if (jsonObject["attributes"] != null)
@@ -793,10 +787,7 @@ export class TAChallenge {
793
787
  if (jsonObject == null) return null
794
788
  const result = new TAChallenge()
795
789
 
796
- result.data = []
797
- if (jsonObject["data"] != null)
798
- for (const i in jsonObject["data"])
799
- result.data.push(jsonObject["data"][i])
790
+ result.data = jsonObject["data"]
800
791
  result.auxPCD = jsonObject["auxPCD"]
801
792
  result.challengePICC = jsonObject["challengePICC"]
802
793
  result.hashPK = jsonObject["hashPK"]
@@ -909,10 +900,7 @@ export class ImageInputData {
909
900
  result.width = jsonObject["width"]
910
901
  result.height = jsonObject["height"]
911
902
  result.bitmap = jsonObject["bitmap"]
912
- result.imgBytes = []
913
- if (jsonObject["imgBytes"] != null)
914
- for (const i in jsonObject["imgBytes"])
915
- result.imgBytes.push(jsonObject["imgBytes"][i])
903
+ result.imgBytes = jsonObject["imgBytes"]
916
904
 
917
905
  return result
918
906
  }
@@ -1000,128 +988,6 @@ export class DocumentReaderValidity {
1000
988
  }
1001
989
  }
1002
990
 
1003
- export class FaceApiParams {
1004
- static fromJson(jsonObject) {
1005
- if (jsonObject == null) return null
1006
- const result = new FaceApiParams()
1007
-
1008
- result.url = jsonObject["url"]
1009
- result.mode = jsonObject["mode"]
1010
- result.searchParams = Search.fromJson(jsonObject["searchParams"])
1011
- result.threshold = jsonObject["threshold"]
1012
- result.serviceTimeout = jsonObject["serviceTimeout"]
1013
- result.proxy = jsonObject["proxy"]
1014
- result.proxyPassword = jsonObject["proxyPassword"]
1015
- result.proxyType = jsonObject["proxyType"]
1016
-
1017
- return result
1018
- }
1019
- }
1020
-
1021
- export class Search {
1022
- static fromJson(jsonObject) {
1023
- if (jsonObject == null) return null
1024
- const result = new Search()
1025
-
1026
- result.limit = jsonObject["limit"]
1027
- result.threshold = jsonObject["threshold"]
1028
- result.groupIds = []
1029
- if (jsonObject["groupIds"] != null)
1030
- for (const i in jsonObject["groupIds"])
1031
- result.groupIds.push(jsonObject["groupIds"][i])
1032
-
1033
- return result
1034
- }
1035
- }
1036
-
1037
- export class AuthenticityParams {
1038
- static fromJson(jsonObject) {
1039
- if (jsonObject == null) return null
1040
- const result = new AuthenticityParams()
1041
-
1042
- result.useLivenessCheck = jsonObject["useLivenessCheck"]
1043
- result.livenessParams = LivenessParams.fromJson(jsonObject["livenessParams"])
1044
- result.checkUVLuminiscence = jsonObject["checkUVLuminiscence"]
1045
- result.checkIRB900 = jsonObject["checkIRB900"]
1046
- result.checkImagePatterns = jsonObject["checkImagePatterns"]
1047
- result.checkFibers = jsonObject["checkFibers"]
1048
- result.checkExtMRZ = jsonObject["checkExtMRZ"]
1049
- result.checkExtOCR = jsonObject["checkExtOCR"]
1050
- result.checkAxial = jsonObject["checkAxial"]
1051
- result.checkBarcodeFormat = jsonObject["checkBarcodeFormat"]
1052
- result.checkIRVisibility = jsonObject["checkIRVisibility"]
1053
- result.checkIPI = jsonObject["checkIPI"]
1054
- result.checkPhotoEmbedding = jsonObject["checkPhotoEmbedding"]
1055
- result.checkPhotoComparison = jsonObject["checkPhotoComparison"]
1056
- result.checkLetterScreen = jsonObject["checkLetterScreen"]
1057
-
1058
- return result
1059
- }
1060
- }
1061
-
1062
- export class LivenessParams {
1063
- static fromJson(jsonObject) {
1064
- if (jsonObject == null) return null
1065
- const result = new LivenessParams()
1066
-
1067
- result.checkOVI = jsonObject["checkOVI"]
1068
- result.checkMLI = jsonObject["checkMLI"]
1069
- result.checkHolo = jsonObject["checkHolo"]
1070
- result.checkED = jsonObject["checkED"]
1071
-
1072
- return result
1073
- }
1074
- }
1075
-
1076
- export class ImageQA {
1077
- static fromJson(jsonObject) {
1078
- if (jsonObject == null) return null
1079
- const result = new ImageQA()
1080
-
1081
- result.dpiThreshold = jsonObject["dpiThreshold"]
1082
- result.angleThreshold = jsonObject["angleThreshold"]
1083
- result.focusCheck = jsonObject["focusCheck"]
1084
- result.glaresCheck = jsonObject["glaresCheck"]
1085
- result.colornessCheck = jsonObject["colornessCheck"]
1086
- result.screenCapture = jsonObject["screenCapture"]
1087
- result.documentPositionIndent = jsonObject["documentPositionIndent"]
1088
- result.expectedPass = []
1089
- if (jsonObject["expectedPass"] != null)
1090
- for (const i in jsonObject["expectedPass"])
1091
- result.expectedPass.push(jsonObject["expectedPass"][i])
1092
- result.glaresCheckParams = GlaresCheckParams.fromJson(jsonObject["glaresCheckParams"])
1093
- result.brightnessThreshold = jsonObject["brightnessThreshold"]
1094
-
1095
- return result
1096
- }
1097
- }
1098
-
1099
- export class GlaresCheckParams {
1100
- static fromJson(jsonObject) {
1101
- if (jsonObject == null) return null
1102
- const result = new GlaresCheckParams()
1103
-
1104
- result.imgMarginPart = jsonObject["imgMarginPart"]
1105
- result.maxGlaringPart = jsonObject["maxGlaringPart"]
1106
-
1107
- return result
1108
- }
1109
- }
1110
-
1111
- export class RFIDParams {
1112
- static fromJson(jsonObject) {
1113
- if (jsonObject == null) return null
1114
- const result = new RFIDParams()
1115
-
1116
- result.paIgnoreNotificationCodes = []
1117
- if (jsonObject["paIgnoreNotificationCodes"] != null)
1118
- for (const i in jsonObject["paIgnoreNotificationCodes"])
1119
- result.paIgnoreNotificationCodes.push(jsonObject["paIgnoreNotificationCodes"][i])
1120
-
1121
- return result
1122
- }
1123
- }
1124
-
1125
991
  export class OnlineProcessingConfig {
1126
992
  static fromJson(jsonObject) {
1127
993
  if (jsonObject == null) return null
@@ -1129,7 +995,7 @@ export class OnlineProcessingConfig {
1129
995
 
1130
996
  result.mode = jsonObject["mode"]
1131
997
  result.url = jsonObject["url"]
1132
- result.processParam = jsonObject["processParam"]
998
+ result.processParam = ProcessParams.fromJson(jsonObject["processParam"])
1133
999
  result.imageFormat = jsonObject["imageFormat"]
1134
1000
  result.imageCompressionQuality = jsonObject["imageCompressionQuality"]
1135
1001
 
@@ -1353,6 +1219,592 @@ export class DocumentReaderResults {
1353
1219
  }
1354
1220
  }
1355
1221
 
1222
+ export class CameraSize {
1223
+ static fromJson(jsonObject) {
1224
+ if (jsonObject == null) return null
1225
+ const result = new CameraSize()
1226
+
1227
+ result.width = jsonObject["width"]
1228
+ result.height = jsonObject["height"]
1229
+
1230
+ return result
1231
+ }
1232
+ }
1233
+
1234
+ export class Functionality {
1235
+ static fromJson(jsonObject) {
1236
+ if (jsonObject == null) return null
1237
+ const result = new Functionality()
1238
+
1239
+ result.pictureOnBoundsReady = jsonObject["pictureOnBoundsReady"]
1240
+ result.showTorchButton = jsonObject["showTorchButton"]
1241
+ result.showCloseButton = jsonObject["showCloseButton"]
1242
+ result.videoCaptureMotionControl = jsonObject["videoCaptureMotionControl"]
1243
+ result.showCaptureButton = jsonObject["showCaptureButton"]
1244
+ result.showChangeFrameButton = jsonObject["showChangeFrameButton"]
1245
+ result.showSkipNextPageButton = jsonObject["showSkipNextPageButton"]
1246
+ result.useAuthenticator = jsonObject["useAuthenticator"]
1247
+ result.skipFocusingFrames = jsonObject["skipFocusingFrames"]
1248
+ result.showCameraSwitchButton = jsonObject["showCameraSwitchButton"]
1249
+ result.displayMetadata = jsonObject["displayMetadata"]
1250
+ result.isZoomEnabled = jsonObject["isZoomEnabled"]
1251
+ result.isCameraTorchCheckDisabled = jsonObject["isCameraTorchCheckDisabled"]
1252
+ result.recordScanningProcess = jsonObject["recordScanningProcess"]
1253
+ result.manualMultipageMode = jsonObject["manualMultipageMode"]
1254
+ result.singleResult = jsonObject["singleResult"]
1255
+ result.showCaptureButtonDelayFromDetect = jsonObject["showCaptureButtonDelayFromDetect"]
1256
+ result.showCaptureButtonDelayFromStart = jsonObject["showCaptureButtonDelayFromStart"]
1257
+ result.rfidTimeout = jsonObject["rfidTimeout"]
1258
+ result.forcePagesCount = jsonObject["forcePagesCount"]
1259
+ result.orientation = jsonObject["orientation"]
1260
+ result.captureMode = jsonObject["captureMode"]
1261
+ result.cameraMode = jsonObject["cameraMode"]
1262
+ result.cameraPositionIOS = jsonObject["cameraPositionIOS"]
1263
+ result.cameraFrame = jsonObject["cameraFrame"]
1264
+ result.btDeviceName = jsonObject["btDeviceName"]
1265
+ result.zoomFactor = jsonObject["zoomFactor"]
1266
+ result.exposure = jsonObject["exposure"]
1267
+ result.excludedCamera2Models = []
1268
+ if (jsonObject["excludedCamera2Models"] != null)
1269
+ for (const i in jsonObject["excludedCamera2Models"])
1270
+ result.excludedCamera2Models.push(jsonObject["excludedCamera2Models"][i])
1271
+ result.cameraSize = CameraSize.fromJson(jsonObject["cameraSize"])
1272
+ result.videoSessionPreset = jsonObject["videoSessionPreset"]
1273
+
1274
+ return result
1275
+ }
1276
+ }
1277
+
1278
+ export class GlaresCheckParams {
1279
+ static fromJson(jsonObject) {
1280
+ if (jsonObject == null) return null
1281
+ const result = new GlaresCheckParams()
1282
+
1283
+ result.imgMarginPart = jsonObject["imgMarginPart"]
1284
+ result.maxGlaringPart = jsonObject["maxGlaringPart"]
1285
+
1286
+ return result
1287
+ }
1288
+ }
1289
+
1290
+ export class ImageQA {
1291
+ static fromJson(jsonObject) {
1292
+ if (jsonObject == null) return null
1293
+ const result = new ImageQA()
1294
+
1295
+ result.dpiThreshold = jsonObject["dpiThreshold"]
1296
+ result.angleThreshold = jsonObject["angleThreshold"]
1297
+ result.focusCheck = jsonObject["focusCheck"]
1298
+ result.glaresCheck = jsonObject["glaresCheck"]
1299
+ result.glaresCheckParams = GlaresCheckParams.fromJson(jsonObject["glaresCheckParams"])
1300
+ result.colornessCheck = jsonObject["colornessCheck"]
1301
+ result.screenCapture = jsonObject["screenCapture"]
1302
+ result.expectedPass = []
1303
+ if (jsonObject["expectedPass"] != null)
1304
+ for (const i in jsonObject["expectedPass"])
1305
+ result.expectedPass.push(jsonObject["expectedPass"][i])
1306
+ result.documentPositionIndent = jsonObject["documentPositionIndent"]
1307
+ result.brightnessThreshold = jsonObject["brightnessThreshold"]
1308
+
1309
+ return result
1310
+ }
1311
+ }
1312
+
1313
+ export class RFIDParams {
1314
+ static fromJson(jsonObject) {
1315
+ if (jsonObject == null) return null
1316
+ const result = new RFIDParams()
1317
+
1318
+ result.paIgnoreNotificationCodes = []
1319
+ if (jsonObject["paIgnoreNotificationCodes"] != null)
1320
+ for (const i in jsonObject["paIgnoreNotificationCodes"])
1321
+ result.paIgnoreNotificationCodes.push(jsonObject["paIgnoreNotificationCodes"][i])
1322
+
1323
+ return result
1324
+ }
1325
+ }
1326
+
1327
+ export class FaceApiSearchParams {
1328
+ static fromJson(jsonObject) {
1329
+ if (jsonObject == null) return null
1330
+ const result = new FaceApiSearchParams()
1331
+
1332
+ result.limit = jsonObject["limit"]
1333
+ result.threshold = jsonObject["threshold"]
1334
+ result.groupIds = []
1335
+ if (jsonObject["groupIds"] != null)
1336
+ for (const i in jsonObject["groupIds"])
1337
+ result.groupIds.push(jsonObject["groupIds"][i])
1338
+
1339
+ return result
1340
+ }
1341
+ }
1342
+
1343
+ export class FaceApiParams {
1344
+ static fromJson(jsonObject) {
1345
+ if (jsonObject == null) return null
1346
+ const result = new FaceApiParams()
1347
+
1348
+ result.url = jsonObject["url"]
1349
+ result.mode = jsonObject["mode"]
1350
+ result.threshold = jsonObject["threshold"]
1351
+ result.searchParams = FaceApiSearchParams.fromJson(jsonObject["searchParams"])
1352
+ result.serviceTimeout = jsonObject["serviceTimeout"]
1353
+ result.proxy = jsonObject["proxy"]
1354
+ result.proxyPassword = jsonObject["proxyPassword"]
1355
+ result.proxyType = jsonObject["proxyType"]
1356
+
1357
+ return result
1358
+ }
1359
+ }
1360
+
1361
+ export class BackendProcessingConfig {
1362
+ static fromJson(jsonObject) {
1363
+ if (jsonObject == null) return null
1364
+ const result = new BackendProcessingConfig()
1365
+
1366
+ result.url = jsonObject["url"]
1367
+ result.httpHeaders = jsonObject["httpHeaders"]
1368
+ result.rfidServerSideChipVerification = jsonObject["rfidServerSideChipVerification"]
1369
+
1370
+ return result
1371
+ }
1372
+ }
1373
+
1374
+ export class LivenessParams {
1375
+ static fromJson(jsonObject) {
1376
+ if (jsonObject == null) return null
1377
+ const result = new LivenessParams()
1378
+
1379
+ result.checkOVI = jsonObject["checkOVI"]
1380
+ result.checkMLI = jsonObject["checkMLI"]
1381
+ result.checkHolo = jsonObject["checkHolo"]
1382
+ result.checkED = jsonObject["checkED"]
1383
+
1384
+ return result
1385
+ }
1386
+ }
1387
+
1388
+ export class AuthenticityParams {
1389
+ static fromJson(jsonObject) {
1390
+ if (jsonObject == null) return null
1391
+ const result = new AuthenticityParams()
1392
+
1393
+ result.useLivenessCheck = jsonObject["useLivenessCheck"]
1394
+ result.livenessParams = LivenessParams.fromJson(jsonObject["livenessParams"])
1395
+ result.checkUVLuminiscence = jsonObject["checkUVLuminiscence"]
1396
+ result.checkIRB900 = jsonObject["checkIRB900"]
1397
+ result.checkImagePatterns = jsonObject["checkImagePatterns"]
1398
+ result.checkFibers = jsonObject["checkFibers"]
1399
+ result.checkExtMRZ = jsonObject["checkExtMRZ"]
1400
+ result.checkExtOCR = jsonObject["checkExtOCR"]
1401
+ result.checkAxial = jsonObject["checkAxial"]
1402
+ result.checkBarcodeFormat = jsonObject["checkBarcodeFormat"]
1403
+ result.checkIRVisibility = jsonObject["checkIRVisibility"]
1404
+ result.checkIPI = jsonObject["checkIPI"]
1405
+ result.checkPhotoEmbedding = jsonObject["checkPhotoEmbedding"]
1406
+ result.checkPhotoComparison = jsonObject["checkPhotoComparison"]
1407
+ result.checkLetterScreen = jsonObject["checkLetterScreen"]
1408
+
1409
+ return result
1410
+ }
1411
+ }
1412
+
1413
+ export class ProcessParams {
1414
+ static fromJson(jsonObject) {
1415
+ if (jsonObject == null) return null
1416
+ const result = new ProcessParams()
1417
+
1418
+ result.multipageProcessing = jsonObject["multipageProcessing"]
1419
+ result.logs = jsonObject["logs"]
1420
+ result.debugSaveImages = jsonObject["debugSaveImages"]
1421
+ result.debugSaveLogs = jsonObject["debugSaveLogs"]
1422
+ result.returnUncroppedImage = jsonObject["returnUncroppedImage"]
1423
+ result.uvTorchEnabled = jsonObject["uvTorchEnabled"]
1424
+ result.debugSaveCroppedImages = jsonObject["debugSaveCroppedImages"]
1425
+ result.disableFocusingCheck = jsonObject["disableFocusingCheck"]
1426
+ result.debugSaveRFIDSession = jsonObject["debugSaveRFIDSession"]
1427
+ result.doublePageSpread = jsonObject["doublePageSpread"]
1428
+ result.manualCrop = jsonObject["manualCrop"]
1429
+ result.integralImage = jsonObject["integralImage"]
1430
+ result.returnCroppedBarcode = jsonObject["returnCroppedBarcode"]
1431
+ result.checkRequiredTextFields = jsonObject["checkRequiredTextFields"]
1432
+ result.depersonalizeLog = jsonObject["depersonalizeLog"]
1433
+ result.generateDoublePageSpreadImage = jsonObject["generateDoublePageSpreadImage"]
1434
+ result.alreadyCropped = jsonObject["alreadyCropped"]
1435
+ result.matchTextFieldMask = jsonObject["matchTextFieldMask"]
1436
+ result.updateOCRValidityByGlare = jsonObject["updateOCRValidityByGlare"]
1437
+ result.noGraphics = jsonObject["noGraphics"]
1438
+ result.multiDocOnImage = jsonObject["multiDocOnImage"]
1439
+ result.forceReadMrzBeforeLocate = jsonObject["forceReadMrzBeforeLocate"]
1440
+ result.parseBarcodes = jsonObject["parseBarcodes"]
1441
+ result.shouldReturnPackageForReprocess = jsonObject["shouldReturnPackageForReprocess"]
1442
+ result.disablePerforationOCR = jsonObject["disablePerforationOCR"]
1443
+ result.respectImageQuality = jsonObject["respectImageQuality"]
1444
+ result.splitNames = jsonObject["splitNames"]
1445
+ result.useFaceApi = jsonObject["useFaceApi"]
1446
+ result.useAuthenticityCheck = jsonObject["useAuthenticityCheck"]
1447
+ result.checkHologram = jsonObject["checkHologram"]
1448
+ result.barcodeParserType = jsonObject["barcodeParserType"]
1449
+ result.perspectiveAngle = jsonObject["perspectiveAngle"]
1450
+ result.minDPI = jsonObject["minDPI"]
1451
+ result.imageDpiOutMax = jsonObject["imageDpiOutMax"]
1452
+ result.forceDocFormat = jsonObject["forceDocFormat"]
1453
+ result.shiftExpiryDate = jsonObject["shiftExpiryDate"]
1454
+ result.minimalHolderAge = jsonObject["minimalHolderAge"]
1455
+ result.imageOutputMaxHeight = jsonObject["imageOutputMaxHeight"]
1456
+ result.imageOutputMaxWidth = jsonObject["imageOutputMaxWidth"]
1457
+ result.processAuth = jsonObject["processAuth"]
1458
+ result.convertCase = jsonObject["convertCase"]
1459
+ result.measureSystem = jsonObject["measureSystem"]
1460
+ result.forceDocID = jsonObject["forceDocID"]
1461
+ result.dateFormat = jsonObject["dateFormat"]
1462
+ result.scenario = jsonObject["scenario"]
1463
+ result.captureButtonScenario = jsonObject["captureButtonScenario"]
1464
+ result.sessionLogFolder = jsonObject["sessionLogFolder"]
1465
+ result.timeout = jsonObject["timeout"]
1466
+ result.timeoutFromFirstDetect = jsonObject["timeoutFromFirstDetect"]
1467
+ result.timeoutFromFirstDocType = jsonObject["timeoutFromFirstDocType"]
1468
+ result.documentAreaMin = jsonObject["documentAreaMin"]
1469
+ result.documentIDList = []
1470
+ if (jsonObject["documentIDList"] != null)
1471
+ for (const i in jsonObject["documentIDList"])
1472
+ result.documentIDList.push(jsonObject["documentIDList"][i])
1473
+ result.barcodeTypes = []
1474
+ if (jsonObject["barcodeTypes"] != null)
1475
+ for (const i in jsonObject["barcodeTypes"])
1476
+ result.barcodeTypes.push(jsonObject["barcodeTypes"][i])
1477
+ result.fieldTypesFilter = []
1478
+ if (jsonObject["fieldTypesFilter"] != null)
1479
+ for (const i in jsonObject["fieldTypesFilter"])
1480
+ result.fieldTypesFilter.push(jsonObject["fieldTypesFilter"][i])
1481
+ result.resultTypeOutput = []
1482
+ if (jsonObject["resultTypeOutput"] != null)
1483
+ for (const i in jsonObject["resultTypeOutput"])
1484
+ result.resultTypeOutput.push(jsonObject["resultTypeOutput"][i])
1485
+ result.documentGroupFilter = []
1486
+ if (jsonObject["documentGroupFilter"] != null)
1487
+ for (const i in jsonObject["documentGroupFilter"])
1488
+ result.documentGroupFilter.push(jsonObject["documentGroupFilter"][i])
1489
+ result.lcidIgnoreFilter = []
1490
+ if (jsonObject["lcidIgnoreFilter"] != null)
1491
+ for (const i in jsonObject["lcidIgnoreFilter"])
1492
+ result.lcidIgnoreFilter.push(jsonObject["lcidIgnoreFilter"][i])
1493
+ result.lcidFilter = []
1494
+ if (jsonObject["lcidFilter"] != null)
1495
+ for (const i in jsonObject["lcidFilter"])
1496
+ result.lcidFilter.push(jsonObject["lcidFilter"][i])
1497
+ result.mrzFormatsFilter = []
1498
+ if (jsonObject["mrzFormatsFilter"] != null)
1499
+ for (const i in jsonObject["mrzFormatsFilter"])
1500
+ result.mrzFormatsFilter.push(jsonObject["mrzFormatsFilter"][i])
1501
+ result.imageQA = ImageQA.fromJson(jsonObject["imageQA"])
1502
+ result.rfidParams = RFIDParams.fromJson(jsonObject["rfidParams"])
1503
+ result.faceApiParams = FaceApiParams.fromJson(jsonObject["faceApiParams"])
1504
+ result.backendProcessingConfig = BackendProcessingConfig.fromJson(jsonObject["backendProcessingConfig"])
1505
+ result.authenticityParams = AuthenticityParams.fromJson(jsonObject["authenticityParams"])
1506
+ result.customParams = jsonObject["customParams"]
1507
+
1508
+ return result
1509
+ }
1510
+ }
1511
+
1512
+ export class Font {
1513
+ static fromJson(jsonObject) {
1514
+ if (jsonObject == null) return null
1515
+ const result = new Font()
1516
+
1517
+ result.name = jsonObject["name"]
1518
+ result.size = jsonObject["size"]
1519
+ result.style = jsonObject["style"]
1520
+
1521
+ return result
1522
+ }
1523
+ }
1524
+
1525
+ export class CustomizationColors {
1526
+ static fromJson(jsonObject) {
1527
+ if (jsonObject == null) return null
1528
+ const result = new CustomizationColors()
1529
+
1530
+ result.rfidProcessingScreenBackground = jsonObject["rfidProcessingScreenBackground"]
1531
+ result.rfidProcessingScreenHintLabelText = jsonObject["rfidProcessingScreenHintLabelText"]
1532
+ result.rfidProcessingScreenHintLabelBackground = jsonObject["rfidProcessingScreenHintLabelBackground"]
1533
+ result.rfidProcessingScreenProgressLabelText = jsonObject["rfidProcessingScreenProgressLabelText"]
1534
+ result.rfidProcessingScreenProgressBar = jsonObject["rfidProcessingScreenProgressBar"]
1535
+ result.rfidProcessingScreenProgressBarBackground = jsonObject["rfidProcessingScreenProgressBarBackground"]
1536
+ result.rfidProcessingScreenResultLabelText = jsonObject["rfidProcessingScreenResultLabelText"]
1537
+
1538
+ return result
1539
+ }
1540
+ }
1541
+
1542
+ export class CustomizationFonts {
1543
+ static fromJson(jsonObject) {
1544
+ if (jsonObject == null) return null
1545
+ const result = new CustomizationFonts()
1546
+
1547
+ result.rfidProcessingScreenHintLabel = Font.fromJson(jsonObject["rfidProcessingScreenHintLabel"])
1548
+ result.rfidProcessingScreenProgressLabel = Font.fromJson(jsonObject["rfidProcessingScreenProgressLabel"])
1549
+ result.rfidProcessingScreenResultLabel = Font.fromJson(jsonObject["rfidProcessingScreenResultLabel"])
1550
+
1551
+ return result
1552
+ }
1553
+ }
1554
+
1555
+ export class CustomizationImages {
1556
+ static fromJson(jsonObject) {
1557
+ if (jsonObject == null) return null
1558
+ const result = new CustomizationImages()
1559
+
1560
+ result.rfidProcessingScreenFailureImage = jsonObject["rfidProcessingScreenFailureImage"]
1561
+
1562
+ return result
1563
+ }
1564
+ }
1565
+
1566
+ export class Customization {
1567
+ static fromJson(jsonObject) {
1568
+ if (jsonObject == null) return null
1569
+ const result = new Customization()
1570
+
1571
+ result.showStatusMessages = jsonObject["showStatusMessages"]
1572
+ result.showResultStatusMessages = jsonObject["showResultStatusMessages"]
1573
+ result.showHelpAnimation = jsonObject["showHelpAnimation"]
1574
+ result.showNextPageAnimation = jsonObject["showNextPageAnimation"]
1575
+ result.showBackgroundMask = jsonObject["showBackgroundMask"]
1576
+ result.cameraFrameBorderWidth = jsonObject["cameraFrameBorderWidth"]
1577
+ result.cameraFrameLineLength = jsonObject["cameraFrameLineLength"]
1578
+ result.cameraFrameOffsetWidth = jsonObject["cameraFrameOffsetWidth"]
1579
+ result.cameraFrameShapeType = jsonObject["cameraFrameShapeType"]
1580
+ result.status = jsonObject["status"]
1581
+ result.resultStatus = jsonObject["resultStatus"]
1582
+ result.cameraFrameDefaultColor = jsonObject["cameraFrameDefaultColor"]
1583
+ result.cameraFrameActiveColor = jsonObject["cameraFrameActiveColor"]
1584
+ result.statusTextColor = jsonObject["statusTextColor"]
1585
+ result.resultStatusTextColor = jsonObject["resultStatusTextColor"]
1586
+ result.resultStatusBackgroundColor = jsonObject["resultStatusBackgroundColor"]
1587
+ result.multipageButtonBackgroundColor = jsonObject["multipageButtonBackgroundColor"]
1588
+ result.tintColor = jsonObject["tintColor"]
1589
+ result.activityIndicatorColor = jsonObject["activityIndicatorColor"]
1590
+ result.statusBackgroundColor = jsonObject["statusBackgroundColor"]
1591
+ result.cameraPreviewBackgroundColor = jsonObject["cameraPreviewBackgroundColor"]
1592
+ result.statusPositionMultiplier = jsonObject["statusPositionMultiplier"]
1593
+ result.resultStatusPositionMultiplier = jsonObject["resultStatusPositionMultiplier"]
1594
+ result.toolbarSize = jsonObject["toolbarSize"]
1595
+ result.backgroundMaskAlpha = jsonObject["backgroundMaskAlpha"]
1596
+ result.customStatusPositionMultiplier = jsonObject["customStatusPositionMultiplier"]
1597
+ result.livenessAnimationPositionMultiplier = jsonObject["livenessAnimationPositionMultiplier"]
1598
+ result.cameraFrameVerticalPositionMultiplier = jsonObject["cameraFrameVerticalPositionMultiplier"]
1599
+ result.cameraFrameLandscapeAspectRatio = jsonObject["cameraFrameLandscapeAspectRatio"]
1600
+ result.cameraFramePortraitAspectRatio = jsonObject["cameraFramePortraitAspectRatio"]
1601
+ result.cameraFrameCornerRadius = jsonObject["cameraFrameCornerRadius"]
1602
+ result.multipageAnimationFrontImage = jsonObject["multipageAnimationFrontImage"]
1603
+ result.multipageAnimationBackImage = jsonObject["multipageAnimationBackImage"]
1604
+ result.borderBackgroundImage = jsonObject["borderBackgroundImage"]
1605
+ result.helpAnimationImage = jsonObject["helpAnimationImage"]
1606
+ result.closeButtonImage = jsonObject["closeButtonImage"]
1607
+ result.captureButtonImage = jsonObject["captureButtonImage"]
1608
+ result.cameraSwitchButtonImage = jsonObject["cameraSwitchButtonImage"]
1609
+ result.torchButtonOnImage = jsonObject["torchButtonOnImage"]
1610
+ result.torchButtonOffImage = jsonObject["torchButtonOffImage"]
1611
+ result.changeFrameButtonExpandImage = jsonObject["changeFrameButtonExpandImage"]
1612
+ result.changeFrameButtonCollapseImage = jsonObject["changeFrameButtonCollapseImage"]
1613
+ result.livenessAnimationImage = jsonObject["livenessAnimationImage"]
1614
+ result.statusTextFont = Font.fromJson(jsonObject["statusTextFont"])
1615
+ result.resultStatusTextFont = Font.fromJson(jsonObject["resultStatusTextFont"])
1616
+ result.customLabelStatus = jsonObject["customLabelStatus"]
1617
+ result.cameraFrameLineCap = jsonObject["cameraFrameLineCap"]
1618
+ result.uiCustomizationLayer = jsonObject["uiCustomizationLayer"]
1619
+ result.helpAnimationImageContentMode = jsonObject["helpAnimationImageContentMode"]
1620
+ result.multipageAnimationFrontImageContentMode = jsonObject["multipageAnimationFrontImageContentMode"]
1621
+ result.multipageAnimationBackImageContentMode = jsonObject["multipageAnimationBackImageContentMode"]
1622
+ result.livenessAnimationImageContentMode = jsonObject["livenessAnimationImageContentMode"]
1623
+ result.borderBackgroundImageContentMode = jsonObject["borderBackgroundImageContentMode"]
1624
+ result.helpAnimationImageMatrix = []
1625
+ if (jsonObject["helpAnimationImageMatrix"] != null)
1626
+ for (const i in jsonObject["helpAnimationImageMatrix"])
1627
+ result.helpAnimationImageMatrix.push(jsonObject["helpAnimationImageMatrix"][i])
1628
+ result.multipageAnimationFrontImageMatrix = []
1629
+ if (jsonObject["multipageAnimationFrontImageMatrix"] != null)
1630
+ for (const i in jsonObject["multipageAnimationFrontImageMatrix"])
1631
+ result.multipageAnimationFrontImageMatrix.push(jsonObject["multipageAnimationFrontImageMatrix"][i])
1632
+ result.multipageAnimationBackImageMatrix = []
1633
+ if (jsonObject["multipageAnimationBackImageMatrix"] != null)
1634
+ for (const i in jsonObject["multipageAnimationBackImageMatrix"])
1635
+ result.multipageAnimationBackImageMatrix.push(jsonObject["multipageAnimationBackImageMatrix"][i])
1636
+ result.livenessAnimationImageMatrix = []
1637
+ if (jsonObject["livenessAnimationImageMatrix"] != null)
1638
+ for (const i in jsonObject["livenessAnimationImageMatrix"])
1639
+ result.livenessAnimationImageMatrix.push(jsonObject["livenessAnimationImageMatrix"][i])
1640
+ result.borderBackgroundImageMatrix = []
1641
+ if (jsonObject["borderBackgroundImageMatrix"] != null)
1642
+ for (const i in jsonObject["borderBackgroundImageMatrix"])
1643
+ result.borderBackgroundImageMatrix.push(jsonObject["borderBackgroundImageMatrix"][i])
1644
+ result.colors = CustomizationColors.fromJson(jsonObject["colors"])
1645
+ result.fonts = CustomizationFonts.fromJson(jsonObject["fonts"])
1646
+ result.images = CustomizationImages.fromJson(jsonObject["images"])
1647
+
1648
+ return result
1649
+ }
1650
+ }
1651
+
1652
+ export class EDLDataGroups {
1653
+ static fromJson(jsonObject) {
1654
+ if (jsonObject == null) return null
1655
+ const result = new EDLDataGroups()
1656
+
1657
+ result.DG1 = jsonObject["DG1"]
1658
+ result.DG2 = jsonObject["DG2"]
1659
+ result.DG3 = jsonObject["DG3"]
1660
+ result.DG4 = jsonObject["DG4"]
1661
+ result.DG5 = jsonObject["DG5"]
1662
+ result.DG6 = jsonObject["DG6"]
1663
+ result.DG7 = jsonObject["DG7"]
1664
+ result.DG8 = jsonObject["DG8"]
1665
+ result.DG9 = jsonObject["DG9"]
1666
+ result.DG10 = jsonObject["DG10"]
1667
+ result.DG11 = jsonObject["DG11"]
1668
+ result.DG12 = jsonObject["DG12"]
1669
+ result.DG13 = jsonObject["DG13"]
1670
+ result.DG14 = jsonObject["DG14"]
1671
+
1672
+ return result
1673
+ }
1674
+ }
1675
+
1676
+ export class EPassportDataGroups {
1677
+ static fromJson(jsonObject) {
1678
+ if (jsonObject == null) return null
1679
+ const result = new EPassportDataGroups()
1680
+
1681
+ result.DG1 = jsonObject["DG1"]
1682
+ result.DG2 = jsonObject["DG2"]
1683
+ result.DG3 = jsonObject["DG3"]
1684
+ result.DG4 = jsonObject["DG4"]
1685
+ result.DG5 = jsonObject["DG5"]
1686
+ result.DG6 = jsonObject["DG6"]
1687
+ result.DG7 = jsonObject["DG7"]
1688
+ result.DG8 = jsonObject["DG8"]
1689
+ result.DG9 = jsonObject["DG9"]
1690
+ result.DG10 = jsonObject["DG10"]
1691
+ result.DG11 = jsonObject["DG11"]
1692
+ result.DG12 = jsonObject["DG12"]
1693
+ result.DG13 = jsonObject["DG13"]
1694
+ result.DG14 = jsonObject["DG14"]
1695
+ result.DG15 = jsonObject["DG15"]
1696
+ result.DG16 = jsonObject["DG16"]
1697
+
1698
+ return result
1699
+ }
1700
+ }
1701
+
1702
+ export class EIDDataGroups {
1703
+ static fromJson(jsonObject) {
1704
+ if (jsonObject == null) return null
1705
+ const result = new EIDDataGroups()
1706
+
1707
+ result.DG1 = jsonObject["DG1"]
1708
+ result.DG2 = jsonObject["DG2"]
1709
+ result.DG3 = jsonObject["DG3"]
1710
+ result.DG4 = jsonObject["DG4"]
1711
+ result.DG5 = jsonObject["DG5"]
1712
+ result.DG6 = jsonObject["DG6"]
1713
+ result.DG7 = jsonObject["DG7"]
1714
+ result.DG8 = jsonObject["DG8"]
1715
+ result.DG9 = jsonObject["DG9"]
1716
+ result.DG10 = jsonObject["DG10"]
1717
+ result.DG11 = jsonObject["DG11"]
1718
+ result.DG12 = jsonObject["DG12"]
1719
+ result.DG13 = jsonObject["DG13"]
1720
+ result.DG14 = jsonObject["DG14"]
1721
+ result.DG15 = jsonObject["DG15"]
1722
+ result.DG16 = jsonObject["DG16"]
1723
+ result.DG17 = jsonObject["DG17"]
1724
+ result.DG18 = jsonObject["DG18"]
1725
+ result.DG19 = jsonObject["DG19"]
1726
+ result.DG20 = jsonObject["DG20"]
1727
+ result.DG21 = jsonObject["DG21"]
1728
+
1729
+ return result
1730
+ }
1731
+ }
1732
+
1733
+ export class RFIDScenario {
1734
+ static fromJson(jsonObject) {
1735
+ if (jsonObject == null) return null
1736
+ const result = new RFIDScenario()
1737
+
1738
+ result.paceStaticBinding = jsonObject["paceStaticBinding"]
1739
+ result.onlineTA = jsonObject["onlineTA"]
1740
+ result.writeEid = jsonObject["writeEid"]
1741
+ result.universalAccessRights = jsonObject["universalAccessRights"]
1742
+ result.authorizedRestrictedIdentification = jsonObject["authorizedRestrictedIdentification"]
1743
+ result.auxVerificationCommunityID = jsonObject["auxVerificationCommunityID"]
1744
+ result.auxVerificationDateOfBirth = jsonObject["auxVerificationDateOfBirth"]
1745
+ result.skipAA = jsonObject["skipAA"]
1746
+ result.strictProcessing = jsonObject["strictProcessing"]
1747
+ result.pkdDSCertPriority = jsonObject["pkdDSCertPriority"]
1748
+ result.pkdUseExternalCSCA = jsonObject["pkdUseExternalCSCA"]
1749
+ result.trustedPKD = jsonObject["trustedPKD"]
1750
+ result.passiveAuth = jsonObject["passiveAuth"]
1751
+ result.useSFI = jsonObject["useSFI"]
1752
+ result.readEPassport = jsonObject["readEPassport"]
1753
+ result.readEID = jsonObject["readEID"]
1754
+ result.readEDL = jsonObject["readEDL"]
1755
+ result.authorizedSTSignature = jsonObject["authorizedSTSignature"]
1756
+ result.authorizedSTQSignature = jsonObject["authorizedSTQSignature"]
1757
+ result.authorizedWriteDG17 = jsonObject["authorizedWriteDG17"]
1758
+ result.authorizedWriteDG18 = jsonObject["authorizedWriteDG18"]
1759
+ result.authorizedWriteDG19 = jsonObject["authorizedWriteDG19"]
1760
+ result.authorizedWriteDG20 = jsonObject["authorizedWriteDG20"]
1761
+ result.authorizedWriteDG21 = jsonObject["authorizedWriteDG21"]
1762
+ result.authorizedVerifyAge = jsonObject["authorizedVerifyAge"]
1763
+ result.authorizedVerifyCommunityID = jsonObject["authorizedVerifyCommunityID"]
1764
+ result.authorizedPrivilegedTerminal = jsonObject["authorizedPrivilegedTerminal"]
1765
+ result.authorizedCANAllowed = jsonObject["authorizedCANAllowed"]
1766
+ result.authorizedPINManagement = jsonObject["authorizedPINManagement"]
1767
+ result.authorizedInstallCert = jsonObject["authorizedInstallCert"]
1768
+ result.authorizedInstallQCert = jsonObject["authorizedInstallQCert"]
1769
+ result.applyAmendments = jsonObject["applyAmendments"]
1770
+ result.autoSettings = jsonObject["autoSettings"]
1771
+ result.proceedReadingAlways = jsonObject["proceedReadingAlways"]
1772
+ result.readingBuffer = jsonObject["readingBuffer"]
1773
+ result.onlineTAToSignDataType = jsonObject["onlineTAToSignDataType"]
1774
+ result.defaultReadingBufferSize = jsonObject["defaultReadingBufferSize"]
1775
+ result.signManagementAction = jsonObject["signManagementAction"]
1776
+ result.profilerType = jsonObject["profilerType"]
1777
+ result.authProcType = jsonObject["authProcType"]
1778
+ result.baseSMProcedure = jsonObject["baseSMProcedure"]
1779
+ result.pacePasswordType = jsonObject["pacePasswordType"]
1780
+ result.terminalType = jsonObject["terminalType"]
1781
+ result.password = jsonObject["password"]
1782
+ result.pkdPA = jsonObject["pkdPA"]
1783
+ result.pkdEAC = jsonObject["pkdEAC"]
1784
+ result.mrz = jsonObject["mrz"]
1785
+ result.eSignPINDefault = jsonObject["eSignPINDefault"]
1786
+ result.eSignPINNewValue = jsonObject["eSignPINNewValue"]
1787
+ result.eDLDataGroups = EDLDataGroups.fromJson(jsonObject["eDLDataGroups"])
1788
+ result.ePassportDataGroups = EPassportDataGroups.fromJson(jsonObject["ePassportDataGroups"])
1789
+ result.eIDDataGroups = EIDDataGroups.fromJson(jsonObject["eIDDataGroups"])
1790
+
1791
+ return result
1792
+ }
1793
+ }
1794
+
1795
+ export class PrepareProgress {
1796
+ static fromJson(jsonObject) {
1797
+ if (jsonObject == null) return null
1798
+ const result = new PrepareProgress()
1799
+
1800
+ result.downloadedBytes = jsonObject["downloadedBytes"]
1801
+ result.totalBytes = jsonObject["totalBytes"]
1802
+ result.progress = jsonObject["progress"]
1803
+
1804
+ return result
1805
+ }
1806
+ }
1807
+
1356
1808
  // Enum
1357
1809
 
1358
1810
  export const FontStyle = {
@@ -1708,11 +2160,6 @@ export const eRPRM_ResultType = {
1708
2160
  RPRM_RESULT_TYPE_EXT_PORTRAIT: 35,
1709
2161
  }
1710
2162
 
1711
- export const CameraTypes = {
1712
- FRONT: "front",
1713
- BACK: "back",
1714
- }
1715
-
1716
2163
  export const FrameShapeType = {
1717
2164
  LINE: 0,
1718
2165
  CORNER: 1,
@@ -1725,6 +2172,12 @@ export const eRFID_BaudRate = {
1725
2172
  rfbr_848: 8,
1726
2173
  }
1727
2174
 
2175
+ export const LineCap = {
2176
+ BUTT: 0,
2177
+ ROUND: 1,
2178
+ SQUARE: 2,
2179
+ }
2180
+
1728
2181
  export const eRPRM_FieldVerificationResult = {
1729
2182
  RCF_DISABLED: 0,
1730
2183
  RCF_VERIFIED: 1,
@@ -1830,6 +2283,11 @@ export const DocumentReaderErrorCodes = {
1830
2283
  LICENSE_DATABASE_INCORRECT: 23,
1831
2284
  INVALID_TCC_PARAMS: 24,
1832
2285
  RFID_IN_PROGRESS: 25,
2286
+ START_BACKEND_PROCESSING: 26,
2287
+ ADD_DATA_TO_PACKAGE: 27,
2288
+ FINALIZE_FAILED: 28,
2289
+ CAMERA_NO_PERMISSION: 29,
2290
+ CAMERA_NOT_AVAILABLE: 30,
1833
2291
  NATIVE_JAVA_EXCEPTION: 1000,
1834
2292
  BACKEND_ONLINE_PROCESSING: 303,
1835
2293
  WRONG_INPUT: 400,
@@ -1912,6 +2370,12 @@ export const eRFID_NotificationCodes = {
1912
2370
  RFID_NOTIFICATION_BIOMETRICS_EMPTY_PLACEHOLDER: 0x000F0000,
1913
2371
  }
1914
2372
 
2373
+ export const CameraPosition = {
2374
+ UNSPECIFIED: 0,
2375
+ BACK: 1,
2376
+ FRONT: 2,
2377
+ }
2378
+
1915
2379
  export const eRFID_Password_Type = {
1916
2380
  PPT_UNKNOWN: 0,
1917
2381
  PPT_MRZ: 1,
@@ -1922,6 +2386,23 @@ export const eRFID_Password_Type = {
1922
2386
  PPT_SAI: 6,
1923
2387
  }
1924
2388
 
2389
+ export const ViewContentMode = {
2390
+ UNKNOWN: -1,
2391
+ SCALE_TO_FILL: 0,
2392
+ SCALE_ASPECT_FIT: 1,
2393
+ SCALE_ASPECT_FILL: 2,
2394
+ REDRAW: 3,
2395
+ CENTER: 4,
2396
+ TOP: 5,
2397
+ BOTTOM: 6,
2398
+ LEFT: 7,
2399
+ RIGHT: 8,
2400
+ TOP_LEFT: 9,
2401
+ TOP_RIGHT: 10,
2402
+ BOTTOM_LEFT: 11,
2403
+ BOTTOM_RIGHT: 12,
2404
+ }
2405
+
1925
2406
  export const BarcodeResult = {
1926
2407
  NO_ERR: 0,
1927
2408
  NULL_PTR_ERR: -6001,
@@ -2076,6 +2557,12 @@ export const eCheckDiagnose = {
2076
2557
  LAS_INK_INVALID_LINES_FREQUENCY: 230,
2077
2558
  DOC_LIVENESS_ELECTRONIC_DEVICE_DETECTED: 240,
2078
2559
  DOC_LIVENESS_INVALID_BARCODE_BACKGROUND: 241,
2560
+ ICAO_IDB_BASE_32_ERROR: 243,
2561
+ ICAO_IDB_ZIPPED_ERROR: 244,
2562
+ ICAO_IDB_MESSAGE_ZONE_EMPTY: 245,
2563
+ ICAO_IDB_SIGNATURE_MUST_BE_PRESENT: 246,
2564
+ ICAO_IDB_SIGNATURE_MUST_NOT_BE_PRESENT: 247,
2565
+ ICAO_IDB_CERTIFICATE_MUST_NOT_BE_PRESENT: 248,
2079
2566
  LAST_DIAGNOSE_VALUE: 250,
2080
2567
  }
2081
2568
 
@@ -2350,6 +2837,10 @@ export const eLDS_ParsingNotificationCodes = {
2350
2837
  NTF_LDS_AUTH_ML_SIGNER_INFO_CERTIFICATE_CANT_FIND_CSCA: 0x92000117,
2351
2838
  NTF_LDS_AUTH_ML_SIGNER_INFO_CERTIFICATE_REVOKED: 0x92000118,
2352
2839
  NTF_LDS_AUTH_ML_SIGNER_INFO_CERTIFICATE_SIGNATURE_INVALID: 0x92000119,
2840
+ NTF_LDS_ICAO_CERTIFICATE_CHAIN_COUNTRY_NON_MATCHING: 0x90000250,
2841
+ NTF_LDS_ICAO_CERTIFICATE_VISUAL_MRZ_COUNTRY_NON_MATCHING: 0x90000251,
2842
+ NTF_LDS_MRZ_COUNTRYCODE_VISUALMRZ_NON_MATCHING: 0x00022019,
2843
+ NTF_LDS_ICAO_CERTIFICATE_MRZ_COUNTRY_NON_MATCHING: 0x90000252,
2353
2844
  }
2354
2845
 
2355
2846
  export const eImageQualityCheckType = {
@@ -2763,6 +3254,22 @@ export const RegDeviceConfigType = {
2763
3254
  DEVICE_7310: "DEVICE_7310",
2764
3255
  }
2765
3256
 
3257
+ export const CaptureSessionPreset = {
3258
+ UNKNOWN: -1,
3259
+ LOW: 0,
3260
+ MEDIUM: 1,
3261
+ HIGH: 2,
3262
+ PHOTO: 3,
3263
+ INPUT_PRIORITY: 4,
3264
+ PRESET_1280x720: 6,
3265
+ PRESET_1920x1080: 7,
3266
+ PRESET_3840x2160: 8,
3267
+ FRAME_960x540: 9,
3268
+ FRAME_1280x720: 10,
3269
+ PRESET_640x480: 12,
3270
+ PRESET_352x288: 13,
3271
+ }
3272
+
2766
3273
  export const CameraMode = {
2767
3274
  AUTO: 0,
2768
3275
  CAMERA1: 1,
@@ -3510,6 +4017,7 @@ export const eVisualFieldType = {
3510
4017
  FT_ADDRESS_BUILDING_TYPE: 680,
3511
4018
  FT_DATE_OF_RETIREMENT: 681,
3512
4019
  FT_DOCUMENT_STATUS: 682,
4020
+ FT_SIGNATURE: 683,
3513
4021
  }
3514
4022
 
3515
4023
  export const DocReaderOrientation = {
@@ -3712,61 +4220,6 @@ export const eRPRM_Lights = {
3712
4220
  RPRM_LIGHT_WHITE_FULL_OVD: (6 | 67108864),
3713
4221
  }
3714
4222
 
3715
- export const LineCap = {
3716
- Butt: 0,
3717
- Round: 1,
3718
- Square: 2,
3719
- }
3720
-
3721
- export const UIInterfaceOrientationMask = {
3722
- Portrait: 0,
3723
- LandscapeLeft: 1,
3724
- LandscapeRight: 2,
3725
- PortraitUpsideDown: 3,
3726
- Landscape: 4,
3727
- All: 5,
3728
- AllButUpsideDown: 6,
3729
- }
3730
-
3731
- export const AVCaptureSessionPreset = {
3732
- Low: 0,
3733
- Medium: 1,
3734
- High: 2,
3735
- Photo: 3,
3736
- InputPriority: 4,
3737
- QHD960x540: 5,
3738
- Hd1280x720: 6,
3739
- Hd1920x1080: 7,
3740
- Hd4K3840x2160: 8,
3741
- IFrame960x540: 9,
3742
- IFrame1280x720: 10,
3743
- Qvga320x240: 11,
3744
- Vga640x480: 12,
3745
- Cif352x288: 13,
3746
- }
3747
-
3748
- export const AVCaptureDevicePosition = {
3749
- Front: 0,
3750
- Back: 1,
3751
- Unspecified: 2,
3752
- }
3753
-
3754
- export const UIViewContentMode = {
3755
- ScaleToFill: 0,
3756
- ScaleAspectFit: 1,
3757
- ScaleAspectFill: 2,
3758
- Redraw: 3,
3759
- Center: 4,
3760
- Top: 5,
3761
- Bottom: 6,
3762
- Left: 7,
3763
- Right: 8,
3764
- TopLeft: 9,
3765
- TopRight: 10,
3766
- BottomLeft: 11,
3767
- BottomRight: 12,
3768
- }
3769
-
3770
4223
  export const Enum = {
3771
4224
  FontStyle,
3772
4225
  eRPRM_Authenticity,
@@ -3776,9 +4229,9 @@ export const Enum = {
3776
4229
  eRFID_CertificateType,
3777
4230
  RGLMeasureSystem,
3778
4231
  eRPRM_ResultType,
3779
- CameraTypes,
3780
4232
  FrameShapeType,
3781
4233
  eRFID_BaudRate,
4234
+ LineCap,
3782
4235
  eRPRM_FieldVerificationResult,
3783
4236
  DocReaderAction,
3784
4237
  eProcessGLCommands,
@@ -3788,7 +4241,9 @@ export const Enum = {
3788
4241
  ScenarioIdentifier,
3789
4242
  eRFID_AccessControl_ProcedureType,
3790
4243
  eRFID_NotificationCodes,
4244
+ CameraPosition,
3791
4245
  eRFID_Password_Type,
4246
+ ViewContentMode,
3792
4247
  BarcodeResult,
3793
4248
  eSignManagementAction,
3794
4249
  eCheckDiagnose,
@@ -3812,6 +4267,7 @@ export const Enum = {
3812
4267
  ImageFormat,
3813
4268
  eGraphicFieldType,
3814
4269
  RegDeviceConfigType,
4270
+ CaptureSessionPreset,
3815
4271
  CameraMode,
3816
4272
  CaptureMode,
3817
4273
  eCheckResult,
@@ -3823,11 +4279,6 @@ export const Enum = {
3823
4279
  CustomizationImage,
3824
4280
  DocReaderFrame,
3825
4281
  eRPRM_Lights,
3826
- LineCap,
3827
- UIInterfaceOrientationMask,
3828
- AVCaptureSessionPreset,
3829
- AVCaptureDevicePosition,
3830
- UIViewContentMode,
3831
4282
  }
3832
4283
 
3833
4284
  const DocumentReader = {}
@@ -3848,6 +4299,7 @@ DocumentReader.getCustomization = (successCallback, errorCallback) => RNRegulaDo
3848
4299
  DocumentReader.setCustomization = (customization, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "setCustomization", [customization], successCallback, errorCallback)
3849
4300
  DocumentReader.getRfidScenario = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getRfidScenario", [], successCallback, errorCallback)
3850
4301
  DocumentReader.setRfidScenario = (rfidScenario, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "setRfidScenario", [rfidScenario], successCallback, errorCallback)
4302
+ DocumentReader.resetConfiguration = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "resetConfiguration", [], successCallback, errorCallback)
3851
4303
  DocumentReader.initializeReader = (config, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "initializeReader", [config], successCallback, errorCallback)
3852
4304
  DocumentReader.initializeReaderWithBleDeviceConfig = (config, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "initializeReaderWithBleDeviceConfig", [config], successCallback, errorCallback)
3853
4305
  DocumentReader.deinitializeReader = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "deinitializeReader", [], successCallback, errorCallback)
@@ -3861,8 +4313,8 @@ DocumentReader.recognize = (config, successCallback, errorCallback) => RNRegulaD
3861
4313
  DocumentReader.startNewPage = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "startNewPage", [], successCallback, errorCallback)
3862
4314
  DocumentReader.stopScanner = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "stopScanner", [], successCallback, errorCallback)
3863
4315
  DocumentReader.startRFIDReader = (requestPACertificates, requestTACertificates, requestTASignature, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "startRFIDReader", [requestPACertificates, requestTACertificates, requestTASignature], successCallback, errorCallback)
3864
- DocumentReader.stopRFIDReader = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "stopRFIDReader", [], successCallback, errorCallback)
3865
4316
  DocumentReader.readRFID = (requestPACertificates, requestTACertificates, requestTASignature, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "readRFID", [requestPACertificates, requestTACertificates, requestTASignature], successCallback, errorCallback)
4317
+ DocumentReader.stopRFIDReader = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "stopRFIDReader", [], successCallback, errorCallback)
3866
4318
  DocumentReader.providePACertificates = (certificates, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "providePACertificates", [certificates], successCallback, errorCallback)
3867
4319
  DocumentReader.provideTACertificates = (certificates, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "provideTACertificates", [certificates], successCallback, errorCallback)
3868
4320
  DocumentReader.provideTASignature = (signature, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "provideTASignature", [signature], successCallback, errorCallback)
@@ -3877,7 +4329,7 @@ DocumentReader.getAvailableScenarios = (successCallback, errorCallback) => RNReg
3877
4329
  DocumentReader.getIsRFIDAvailableForUse = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getIsRFIDAvailableForUse", [], successCallback, errorCallback)
3878
4330
  DocumentReader.getDocReaderVersion = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getDocReaderVersion", [], successCallback, errorCallback)
3879
4331
  DocumentReader.getDocReaderDocumentsDatabase = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getDocReaderDocumentsDatabase", [], successCallback, errorCallback)
3880
- DocumentReader.getTranslation = (className, value, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getTranslation", [className, value], successCallback, errorCallback)
3881
4332
  DocumentReader.finalizePackage = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "finalizePackage", [], successCallback, errorCallback)
4333
+ DocumentReader.getTranslation = (className, value, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getTranslation", [className, value], successCallback, errorCallback)
3882
4334
 
3883
4335
  export default DocumentReader