@regulaforensics/cordova-plugin-document-reader-api 7.5.649-nightly → 7.5.651-nightly

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.
@@ -1040,6 +1040,7 @@ class RecognizeConfig {
1040
1040
  result.scenario = jsonObject["scenario"]
1041
1041
  result.onlineProcessingConfig = OnlineProcessingConfig.fromJson(jsonObject["onlineProcessingConfig"])
1042
1042
  result.oneShotIdentification = jsonObject["oneShotIdentification"]
1043
+ result.dtc = jsonObject["dtc"]
1043
1044
  result.livePortrait = jsonObject["livePortrait"]
1044
1045
  result.extPortrait = jsonObject["extPortrait"]
1045
1046
  result.image = jsonObject["image"]
@@ -1138,6 +1139,7 @@ class DocumentReaderResults {
1138
1139
  result.documentType.push(DocumentReaderDocumentType.fromJson(jsonObject["documentType"][i]))
1139
1140
  result.status = DocumentReaderResultsStatus.fromJson(jsonObject["status"])
1140
1141
  result.vdsncData = VDSNCData.fromJson(jsonObject["vdsncData"])
1142
+ result.dtcData = jsonObject["dtcData"]
1141
1143
  result.transactionInfo = TransactionInfo.fromJson(jsonObject["transactionInfo"])
1142
1144
 
1143
1145
  return result
@@ -1291,6 +1293,7 @@ class BackendProcessingConfig {
1291
1293
  result.url = jsonObject["url"]
1292
1294
  result.httpHeaders = jsonObject["httpHeaders"]
1293
1295
  result.rfidServerSideChipVerification = jsonObject["rfidServerSideChipVerification"]
1296
+ result.timeoutConnection = jsonObject["timeoutConnection"]
1294
1297
 
1295
1298
  return result
1296
1299
  }
@@ -1366,11 +1369,15 @@ class ProcessParams {
1366
1369
  result.shouldReturnPackageForReprocess = jsonObject["shouldReturnPackageForReprocess"]
1367
1370
  result.disablePerforationOCR = jsonObject["disablePerforationOCR"]
1368
1371
  result.respectImageQuality = jsonObject["respectImageQuality"]
1372
+ result.strictImageQuality = jsonObject["strictImageQuality"]
1369
1373
  result.splitNames = jsonObject["splitNames"]
1370
1374
  result.useFaceApi = jsonObject["useFaceApi"]
1371
1375
  result.useAuthenticityCheck = jsonObject["useAuthenticityCheck"]
1372
1376
  result.checkHologram = jsonObject["checkHologram"]
1373
1377
  result.generateNumericCodes = jsonObject["generateNumericCodes"]
1378
+ result.strictBarcodeDigitalSignatureCheck = jsonObject["strictBarcodeDigitalSignatureCheck"]
1379
+ result.selectLongestNames = jsonObject["selectLongestNames"]
1380
+ result.generateDTCVC = jsonObject["generateDTCVC"]
1374
1381
  result.barcodeParserType = jsonObject["barcodeParserType"]
1375
1382
  result.perspectiveAngle = jsonObject["perspectiveAngle"]
1376
1383
  result.minDPI = jsonObject["minDPI"]
@@ -1506,6 +1513,8 @@ class Customization {
1506
1513
  result.cameraFrameBorderWidth = jsonObject["cameraFrameBorderWidth"]
1507
1514
  result.cameraFrameLineLength = jsonObject["cameraFrameLineLength"]
1508
1515
  result.cameraFrameOffsetWidth = jsonObject["cameraFrameOffsetWidth"]
1516
+ result.nextPageAnimationStartDelay = jsonObject["nextPageAnimationStartDelay"]
1517
+ result.nextPageAnimationEndDelay = jsonObject["nextPageAnimationEndDelay"]
1509
1518
  result.cameraFrameShapeType = jsonObject["cameraFrameShapeType"]
1510
1519
  result.status = jsonObject["status"]
1511
1520
  result.resultStatus = jsonObject["resultStatus"]
@@ -1519,6 +1528,7 @@ class Customization {
1519
1528
  result.activityIndicatorColor = jsonObject["activityIndicatorColor"]
1520
1529
  result.statusBackgroundColor = jsonObject["statusBackgroundColor"]
1521
1530
  result.cameraPreviewBackgroundColor = jsonObject["cameraPreviewBackgroundColor"]
1531
+ result.backgroundMaskColor = jsonObject["backgroundMaskColor"]
1522
1532
  result.statusPositionMultiplier = jsonObject["statusPositionMultiplier"]
1523
1533
  result.resultStatusPositionMultiplier = jsonObject["resultStatusPositionMultiplier"]
1524
1534
  result.toolbarSize = jsonObject["toolbarSize"]
@@ -1660,6 +1670,37 @@ class EIDDataGroups {
1660
1670
  }
1661
1671
  }
1662
1672
 
1673
+ class DTCDataGroups {
1674
+ static fromJson(jsonObject) {
1675
+ if (jsonObject == null) return null
1676
+ const result = new DTCDataGroups()
1677
+
1678
+ result.DG1 = jsonObject["DG1"]
1679
+ result.DG2 = jsonObject["DG2"]
1680
+ result.DG3 = jsonObject["DG3"]
1681
+ result.DG4 = jsonObject["DG4"]
1682
+ result.DG5 = jsonObject["DG5"]
1683
+ result.DG6 = jsonObject["DG6"]
1684
+ result.DG7 = jsonObject["DG7"]
1685
+ result.DG8 = jsonObject["DG8"]
1686
+ result.DG9 = jsonObject["DG9"]
1687
+ result.DG10 = jsonObject["DG10"]
1688
+ result.DG11 = jsonObject["DG11"]
1689
+ result.DG12 = jsonObject["DG12"]
1690
+ result.DG13 = jsonObject["DG13"]
1691
+ result.DG14 = jsonObject["DG14"]
1692
+ result.DG15 = jsonObject["DG15"]
1693
+ result.DG16 = jsonObject["DG16"]
1694
+ result.DG17 = jsonObject["DG17"]
1695
+ result.DG18 = jsonObject["DG18"]
1696
+ result.DG22 = jsonObject["DG22"]
1697
+ result.DG23 = jsonObject["DG23"]
1698
+ result.DG24 = jsonObject["DG24"]
1699
+
1700
+ return result
1701
+ }
1702
+ }
1703
+
1663
1704
  class RFIDScenario {
1664
1705
  static fromJson(jsonObject) {
1665
1706
  if (jsonObject == null) return null
@@ -1699,6 +1740,8 @@ class RFIDScenario {
1699
1740
  result.applyAmendments = jsonObject["applyAmendments"]
1700
1741
  result.autoSettings = jsonObject["autoSettings"]
1701
1742
  result.proceedReadingAlways = jsonObject["proceedReadingAlways"]
1743
+ result.readDTC = jsonObject["readDTC"]
1744
+ result.mrzStrictCheck = jsonObject["mrzStrictCheck"]
1702
1745
  result.readingBuffer = jsonObject["readingBuffer"]
1703
1746
  result.onlineTAToSignDataType = jsonObject["onlineTAToSignDataType"]
1704
1747
  result.defaultReadingBufferSize = jsonObject["defaultReadingBufferSize"]
@@ -1714,9 +1757,11 @@ class RFIDScenario {
1714
1757
  result.mrz = jsonObject["mrz"]
1715
1758
  result.eSignPINDefault = jsonObject["eSignPINDefault"]
1716
1759
  result.eSignPINNewValue = jsonObject["eSignPINNewValue"]
1760
+ result.cardAccess = jsonObject["cardAccess"]
1717
1761
  result.eDLDataGroups = EDLDataGroups.fromJson(jsonObject["eDLDataGroups"])
1718
1762
  result.ePassportDataGroups = EPassportDataGroups.fromJson(jsonObject["ePassportDataGroups"])
1719
1763
  result.eIDDataGroups = EIDDataGroups.fromJson(jsonObject["eIDDataGroups"])
1764
+ result.dtcDataGroups = DTCDataGroups.fromJson(jsonObject["dtcDataGroups"])
1720
1765
 
1721
1766
  return result
1722
1767
  }
@@ -2089,6 +2134,7 @@ const eRPRM_ResultType = {
2089
2134
  RPRM_RESULT_TYPE_STATUS: 33,
2090
2135
  RPRM_RESULT_TYPE_PORTRAIT_COMPARISON: 34,
2091
2136
  RPRM_RESULT_TYPE_EXT_PORTRAIT: 35,
2137
+ RFID_RESULT_TYPE_RFID_DTC_VC: 109,
2092
2138
  }
2093
2139
 
2094
2140
  const FrameShapeType = {
@@ -2219,6 +2265,7 @@ const DocumentReaderErrorCodes = {
2219
2265
  FINALIZE_FAILED: 28,
2220
2266
  CAMERA_NO_PERMISSION: 29,
2221
2267
  CAMERA_NOT_AVAILABLE: 30,
2268
+ CANNOT_USE_CAMERA_IN_SCENARIO: 40,
2222
2269
  NATIVE_JAVA_EXCEPTION: 1000,
2223
2270
  BACKEND_ONLINE_PROCESSING: 303,
2224
2271
  WRONG_INPUT: 400,
@@ -2249,6 +2296,7 @@ const ScenarioIdentifier = {
2249
2296
  SCENARIO_OCR_FREE: "OcrFree",
2250
2297
  SCENARIO_CREDIT_CARD: "CreditCard",
2251
2298
  SCENARIO_CAPTURE: "Capture",
2299
+ SCENARIO_DTC: "DTC",
2252
2300
  }
2253
2301
 
2254
2302
  const eRFID_AccessControl_ProcedureType = {
@@ -2367,6 +2415,17 @@ const BarcodeResult = {
2367
2415
  IPDECODE_ERROR_LOADING_DEV_TABLE: -4512,
2368
2416
  }
2369
2417
 
2418
+ const eRFID_Application_Type = {
2419
+ ePASSPORT: 1,
2420
+ eID: 2,
2421
+ eSIGN: 3,
2422
+ eDL: 4,
2423
+ LDS2_TRAVEL_RECORDS: 5,
2424
+ LDS2_VISA_RECORDS: 6,
2425
+ LDS2_ADD_BIOMETRICS: 7,
2426
+ eDTC_PC: 8,
2427
+ }
2428
+
2370
2429
  const eSignManagementAction = {
2371
2430
  smaUndefined: 0,
2372
2431
  smaCreatePIN: 1,
@@ -2420,12 +2479,15 @@ const eCheckDiagnose = {
2420
2479
  FALSE_LUMINISCENCE_IN_BLANK: 55,
2421
2480
  BAD_AREA_IN_AXIAL: 60,
2422
2481
  FALSE_IPI_PARAMETERS: 65,
2482
+ ENCRYPTED_IPI_NOT_FOUND: 66,
2483
+ ENCRYPTED_IPI_DATA_DONT_MATCH: 67,
2423
2484
  FIELD_POS_CORRECTOR_HIGHLIGHT_IR: 80,
2424
2485
  FIELD_POS_CORRECTOR_GLARES_IN_PHOTO_AREA: 81,
2425
2486
  FIELD_POS_CORRECTOR_PHOTO_REPLACED: 82,
2426
2487
  FIELD_POS_CORRECTOR_LANDMARKS_CHECK_ERROR: 83,
2427
2488
  FIELD_POS_CORRECTOR_FACE_PRESENCE_CHECK_ERROR: 84,
2428
2489
  FIELD_POS_CORRECTOR_FACE_ABSENCE_CHECK_ERROR: 85,
2490
+ CHD_FIELD_POS_CORRECTOR_INCORRECT_HEAD_POSITION: 86,
2429
2491
  OVI_IR_INVISIBLE: 90,
2430
2492
  OVI_INSUFFICIENT_AREA: 91,
2431
2493
  OVI_COLOR_INVARIABLE: 92,
@@ -2460,6 +2522,7 @@ const eCheckDiagnose = {
2460
2522
  BARCODE_SIZE_PARAMS_ERROR: 142,
2461
2523
  NOT_ALL_BARCODES_READ: 143,
2462
2524
  GLARES_IN_BARCODE_AREA: 144,
2525
+ CHD_NO_CERTIFICATE_FOR_DIGITAL_SIGNATURE_CHECK: 145,
2463
2526
  PORTRAIT_COMPARISON_PORTRAITS_DIFFER: 150,
2464
2527
  PORTRAIT_COMPARISON_NO_SERVICE_REPLY: 151,
2465
2528
  PORTRAIT_COMPARISON_SERVICE_ERROR: 152,
@@ -2489,6 +2552,7 @@ const eCheckDiagnose = {
2489
2552
  OCR_QUALITY_INVALID_FONT: 221,
2490
2553
  OCR_QUALITY_INVALID_BACKGROUND: 222,
2491
2554
  LAS_INK_INVALID_LINES_FREQUENCY: 230,
2555
+ CHD_DOC_LIVENESS_BLACK_AND_WHITE_COPY_DETECTED: 239,
2492
2556
  DOC_LIVENESS_ELECTRONIC_DEVICE_DETECTED: 240,
2493
2557
  DOC_LIVENESS_INVALID_BARCODE_BACKGROUND: 241,
2494
2558
  ICAO_IDB_BASE_32_ERROR: 243,
@@ -2883,6 +2947,8 @@ const eRPRM_SecurityFeatureType = {
2883
2947
  SECURITY_FEATURE_TYPE_PORTRAIT_COMPARISON_BARCODE_VS_CAMERA: 49,
2884
2948
  SECURITY_FEATURE_TYPE_CHECK_DIGITAL_SIGNATURE: 50,
2885
2949
  SECURITY_FEATURE_TYPE_CONTACT_CHIP_CLASSIFICATION: 51,
2950
+ SECURITY_FEATURE_TYPE_HEAD_POSITION_CHECK: 52,
2951
+ SECURITY_FEATURE_TYPE_LIVENESS_BLACK_AND_WHITE_COPY_CHECK: 53,
2886
2952
  }
2887
2953
 
2888
2954
  const OnlineMode = {
@@ -3263,6 +3329,11 @@ const eRFID_DataFile_Type = {
3263
3329
  DFT_PASSPORT_SOD: 21,
3264
3330
  DFT_PASSPORT_CVCA: 22,
3265
3331
  DFT_PASSPORT_COM: 23,
3332
+ DFT_DTC_DG17: 57,
3333
+ DFT_DTC_DG18: 58,
3334
+ DFT_DTC_DG22: 62,
3335
+ DFT_DTC_DG23: 63,
3336
+ DFT_DTC_DG24: 64,
3266
3337
  DFT_ID_DG1: 101,
3267
3338
  DFT_ID_DG2: 102,
3268
3339
  DFT_ID_DG3: 103,
@@ -3616,6 +3687,9 @@ const eVisualFieldType = {
3616
3687
  FT_DOCUMENT_DISCRIMINATOR: 334,
3617
3688
  FT_DATA_DISCRIMINATOR: 335,
3618
3689
  FT_ISO_ISSUER_ID_NUMBER: 336,
3690
+ FT_DTC_VERSION: 337,
3691
+ FT_DTC_ID: 338,
3692
+ FT_DTC_DATE_OF_EXPIRY: 339,
3619
3693
  FT_GNIB_NUMBER: 340,
3620
3694
  FT_DEPT_NUMBER: 341,
3621
3695
  FT_TELEX_CODE: 342,
@@ -3968,6 +4042,7 @@ const eVisualFieldType = {
3968
4042
  FT_METHOD_OF_TESTING: 689,
3969
4043
  FT_DIGITAL_TRAVEL_AUTHORIZATION_NUMBER: 690,
3970
4044
  FT_DATE_OF_FIRST_POSITIVE_TEST_RESULT: 691,
4045
+ FT_EF_CARD_ACCESS: 692,
3971
4046
  }
3972
4047
 
3973
4048
  const DocReaderOrientation = {
@@ -4201,6 +4276,7 @@ const Enum = {
4201
4276
  eRFID_Password_Type,
4202
4277
  ViewContentMode,
4203
4278
  BarcodeResult,
4279
+ eRFID_Application_Type,
4204
4280
  eSignManagementAction,
4205
4281
  eCheckDiagnose,
4206
4282
  RFIDDelegate,
@@ -4243,8 +4319,6 @@ const DocumentReader = {}
4243
4319
 
4244
4320
  DocumentReader.getDocumentReaderIsReady = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getDocumentReaderIsReady"])
4245
4321
  DocumentReader.getDocumentReaderStatus = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getDocumentReaderStatus"])
4246
- DocumentReader.isAuthenticatorAvailableForUse = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["isAuthenticatorAvailableForUse"])
4247
- DocumentReader.isBlePermissionsGranted = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["isBlePermissionsGranted"])
4248
4322
  DocumentReader.getRfidSessionStatus = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getRfidSessionStatus"])
4249
4323
  DocumentReader.setRfidSessionStatus = (status, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["setRfidSessionStatus", status])
4250
4324
  DocumentReader.getTag = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getTag"])
@@ -4284,14 +4358,17 @@ DocumentReader.setTCCParams = (params, successCallback, errorCallback) => cordov
4284
4358
  DocumentReader.addPKDCertificates = (certificates, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["addPKDCertificates", certificates])
4285
4359
  DocumentReader.clearPKDCertificates = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["clearPKDCertificates"])
4286
4360
  DocumentReader.startNewSession = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["startNewSession"])
4287
- DocumentReader.startBluetoothService = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["startBluetoothService"])
4361
+ DocumentReader.connectBluetoothDevice = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["connectBluetoothDevice"])
4288
4362
  DocumentReader.setLocalizationDictionary = (dictionary, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["setLocalizationDictionary", dictionary])
4289
4363
  DocumentReader.getLicense = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getLicense"])
4290
4364
  DocumentReader.getAvailableScenarios = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getAvailableScenarios"])
4291
4365
  DocumentReader.getIsRFIDAvailableForUse = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getIsRFIDAvailableForUse"])
4366
+ DocumentReader.isAuthenticatorRFIDAvailableForUse = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["isAuthenticatorRFIDAvailableForUse"])
4367
+ DocumentReader.isAuthenticatorAvailableForUse = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["isAuthenticatorAvailableForUse"])
4292
4368
  DocumentReader.getDocReaderVersion = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getDocReaderVersion"])
4293
4369
  DocumentReader.getDocReaderDocumentsDatabase = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getDocReaderDocumentsDatabase"])
4294
4370
  DocumentReader.finalizePackage = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["finalizePackage"])
4371
+ DocumentReader.endBackendTransaction = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["endBackendTransaction"])
4295
4372
  DocumentReader.getTranslation = (className, value, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getTranslation", className, value])
4296
4373
 
4297
4374
  DocumentReader.textFieldValueByType = (results, fieldType, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["textFieldValueByType", results.rawResult, fieldType])
@@ -4401,6 +4478,7 @@ DocumentReaderPlugin.Customization = Customization
4401
4478
  DocumentReaderPlugin.EDLDataGroups = EDLDataGroups
4402
4479
  DocumentReaderPlugin.EPassportDataGroups = EPassportDataGroups
4403
4480
  DocumentReaderPlugin.EIDDataGroups = EIDDataGroups
4481
+ DocumentReaderPlugin.DTCDataGroups = DTCDataGroups
4404
4482
  DocumentReaderPlugin.RFIDScenario = RFIDScenario
4405
4483
  DocumentReaderPlugin.PrepareProgress = PrepareProgress
4406
4484