@regulaforensics/cordova-plugin-document-reader-api 5.6.0 → 6.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,8 +6,6 @@ class DocumentReaderScenario {
6
6
  if (jsonObject == null) return null
7
7
  const result = new DocumentReaderScenario()
8
8
 
9
- result.uvTorch = jsonObject["uvTorch"]
10
- result.seriesProcessMode = jsonObject["seriesProcessMode"]
11
9
  result.name = jsonObject["name"]
12
10
  result.caption = jsonObject["caption"]
13
11
  result.description = jsonObject["description"]
@@ -16,10 +14,10 @@ class DocumentReaderScenario {
16
14
  }
17
15
  }
18
16
 
19
- class DocumentReaderScenarioFull {
17
+ class CoreDetailedScenario {
20
18
  static fromJson(jsonObject) {
21
19
  if (jsonObject == null) return null
22
- const result = new DocumentReaderScenarioFull()
20
+ const result = new CoreDetailedScenario()
23
21
 
24
22
  result.uvTorch = jsonObject["uvTorch"]
25
23
  result.frameOrientation = jsonObject["frameOrientation"]
@@ -712,7 +710,37 @@ class DocumentReaderCompletion {
712
710
 
713
711
  result.action = jsonObject["action"]
714
712
  result.results = DocumentReaderResults.fromJson(jsonObject["results"])
715
- result.error = Throwable.fromJson(jsonObject["error"])
713
+ result.error = DocumentReaderException.fromJson(jsonObject["error"])
714
+
715
+ return result
716
+ }
717
+ }
718
+
719
+ class RfidNotificationCompletion {
720
+ static fromJson(jsonObject) {
721
+ if (jsonObject == null) return null
722
+ const result = new RfidNotificationCompletion()
723
+
724
+ result.notification = jsonObject["notification"]
725
+ result.value = jsonObject["value"]
726
+
727
+ return result
728
+ }
729
+ }
730
+
731
+ class DocumentReaderException {
732
+ static fromJson(jsonObject) {
733
+ if (jsonObject == null) return null
734
+ const result = new DocumentReaderException()
735
+
736
+ result.errorCode = jsonObject["errorCode"]
737
+ result.localizedMessage = jsonObject["localizedMessage"]
738
+ result.message = jsonObject["message"]
739
+ result.string = jsonObject["string"]
740
+ result.stackTrace = []
741
+ if (jsonObject["stackTrace"] != null)
742
+ for (const i in jsonObject["stackTrace"])
743
+ result.stackTrace.push(StackTraceElement.fromJson(jsonObject["stackTrace"][i]))
716
744
 
717
745
  return result
718
746
  }
@@ -777,6 +805,147 @@ class ImageInputParam {
777
805
  }
778
806
  }
779
807
 
808
+ class PAResourcesIssuer {
809
+ static fromJson(jsonObject) {
810
+ if (jsonObject == null) return null
811
+ const result = new PAResourcesIssuer()
812
+
813
+ result.data = []
814
+ if (jsonObject["data"] != null)
815
+ for (const i in jsonObject["data"])
816
+ result.data.push(jsonObject["data"][i])
817
+ result.friendlyName = jsonObject["friendlyName"]
818
+ result.attributes = []
819
+ if (jsonObject["attributes"] != null)
820
+ for (const i in jsonObject["attributes"])
821
+ result.attributes.push(PAAttribute.fromJson(jsonObject["attributes"][i]))
822
+
823
+ return result
824
+ }
825
+ }
826
+
827
+ class PAAttribute {
828
+ static fromJson(jsonObject) {
829
+ if (jsonObject == null) return null
830
+ const result = new PAAttribute()
831
+
832
+ result.type = jsonObject["type"]
833
+ result.value = jsonObject["value"]
834
+
835
+ return result
836
+ }
837
+ }
838
+
839
+ class TAChallenge {
840
+ static fromJson(jsonObject) {
841
+ if (jsonObject == null) return null
842
+ const result = new TAChallenge()
843
+
844
+ result.data = []
845
+ if (jsonObject["data"] != null)
846
+ for (const i in jsonObject["data"])
847
+ result.data.push(jsonObject["data"][i])
848
+ result.auxPCD = jsonObject["auxPCD"]
849
+ result.challengePICC = jsonObject["challengePICC"]
850
+ result.hashPK = jsonObject["hashPK"]
851
+ result.idPICC = jsonObject["idPICC"]
852
+
853
+ return result
854
+ }
855
+ }
856
+
857
+ class DocumentReaderResultsStatus {
858
+ static fromJson(jsonObject) {
859
+ if (jsonObject == null) return null
860
+ const result = new DocumentReaderResultsStatus()
861
+
862
+ result.overallStatus = jsonObject["overallStatus"]
863
+ result.optical = jsonObject["optical"]
864
+ result.detailsOptical = DetailsOptical.fromJson(jsonObject["detailsOptical"])
865
+ result.rfid = jsonObject["rfid"]
866
+ result.detailsRFID = DetailsRFID.fromJson(jsonObject["detailsRFID"])
867
+ result.portrait = jsonObject["portrait"]
868
+ result.stopList = jsonObject["stopList"]
869
+
870
+ return result
871
+ }
872
+ }
873
+
874
+ class DetailsOptical {
875
+ static fromJson(jsonObject) {
876
+ if (jsonObject == null) return null
877
+ const result = new DetailsOptical()
878
+
879
+ result.overallStatus = jsonObject["overallStatus"]
880
+ result.mrz = jsonObject["mrz"]
881
+ result.text = jsonObject["text"]
882
+ result.docType = jsonObject["docType"]
883
+ result.security = jsonObject["security"]
884
+ result.imageQA = jsonObject["imageQA"]
885
+ result.expiry = jsonObject["expiry"]
886
+ result.vds = jsonObject["vds"]
887
+ result.pagesCount = jsonObject["pagesCount"]
888
+
889
+ return result
890
+ }
891
+ }
892
+
893
+ class DetailsRFID {
894
+ static fromJson(jsonObject) {
895
+ if (jsonObject == null) return null
896
+ const result = new DetailsRFID()
897
+
898
+ result.pa = jsonObject["pa"]
899
+ result.ca = jsonObject["ca"]
900
+ result.aa = jsonObject["aa"]
901
+ result.ta = jsonObject["ta"]
902
+ result.bac = jsonObject["bac"]
903
+ result.pace = jsonObject["pace"]
904
+ result.overallStatus = jsonObject["overallStatus"]
905
+
906
+ return result
907
+ }
908
+ }
909
+
910
+ class VDSNCData {
911
+ static fromJson(jsonObject) {
912
+ if (jsonObject == null) return null
913
+ const result = new VDSNCData()
914
+
915
+ result.type = jsonObject["type"]
916
+ result.version = jsonObject["version"]
917
+ result.issuingCountry = jsonObject["issuingCountry"]
918
+ result.message = jsonObject["message"]
919
+ result.signatureAlgorithm = jsonObject["signatureAlgorithm"]
920
+ result.signature = BytesData.fromJson(jsonObject["signature"])
921
+ result.certificate = BytesData.fromJson(jsonObject["certificate"])
922
+ result.certificateChain = []
923
+ if (jsonObject["certificateChain"] != null)
924
+ for (const i in jsonObject["certificateChain"])
925
+ result.certificateChain.push(CertificateChain.fromJson(jsonObject["certificateChain"][i]))
926
+ result.notifications = []
927
+ if (jsonObject["notifications"] != null)
928
+ for (const i in jsonObject["notifications"])
929
+ result.notifications.push(jsonObject["notifications"][i])
930
+
931
+ return result
932
+ }
933
+ }
934
+
935
+ class BytesData {
936
+ static fromJson(jsonObject) {
937
+ if (jsonObject == null) return null
938
+ const result = new BytesData()
939
+
940
+ result.data = jsonObject["data"]
941
+ result.length = jsonObject["length"]
942
+ result.status = jsonObject["status"]
943
+ result.type = jsonObject["type"]
944
+
945
+ return result
946
+ }
947
+ }
948
+
780
949
  class DocumentReaderResults {
781
950
  getTextFieldValueByType({ fieldType, lcid = 0, source = -1, original = false }) {
782
951
  if (this.textResult == null) return null
@@ -926,6 +1095,8 @@ class DocumentReaderResults {
926
1095
  if (jsonObject["documentType"] != null)
927
1096
  for (const i in jsonObject["documentType"])
928
1097
  result.documentType.push(DocumentReaderDocumentType.fromJson(jsonObject["documentType"][i]))
1098
+ result.status = DocumentReaderResultsStatus.fromJson(jsonObject["status"])
1099
+ result.vdsncData = VDSNCData.fromJson(jsonObject["vdsncData"])
929
1100
 
930
1101
  return result
931
1102
  }
@@ -1268,6 +1439,25 @@ const DocReaderOrientation = {
1268
1439
  LANDSCAPE_RIGHT: 4,
1269
1440
  }
1270
1441
 
1442
+ const DocumentReaderExceptionEnum = {
1443
+ NATIVE_JAVA_EXCEPTION: 0,
1444
+ DOCUMENT_READER_STATE_EXCEPTION: 1,
1445
+ DOCUMENT_READER_WRONG_INPUT: 2,
1446
+ INITIALIZATION_FAILED: 3,
1447
+ DOCUMENT_READER_BLE_EXCEPTION: 201,
1448
+ DB_DOWNLOAD_ERROR: 301,
1449
+ LICENSE_ABSENT_OR_CORRUPTED: 101,
1450
+ LICENSE_INVALID_DATE: 102,
1451
+ LICENSE_INVALID_VERSION: 103,
1452
+ LICENSE_INVALID_DEVICE_ID: 104,
1453
+ LICENSE_INVALID_SYSTEM_OR_APP_ID: 105,
1454
+ LICENSE_NO_CAPABILITIES: 106,
1455
+ LICENSE_NO_AUTHENTICITY: 107,
1456
+ LICENSE_NO_DATABASE: 110,
1457
+ LICENSE_DATABASE_INCORRECT: 111,
1458
+ FEATURE_BLUETOOTH_LE_NOT_SUPPORTED: 701,
1459
+ }
1460
+
1271
1461
  const eCheckDiagnose = {
1272
1462
  UNKNOWN: 0,
1273
1463
  PASS: 1,
@@ -1512,6 +1702,10 @@ const eRFID_CertificateType = {
1512
1702
  CT_MLS: 4,
1513
1703
  CT_DEV_LS: 5,
1514
1704
  CT_DEF_LS: 6,
1705
+ CT_BLS: 7,
1706
+ CT_LDS2: 8,
1707
+ CT_BCS: 9,
1708
+ CT_BCSNC: 10,
1515
1709
  }
1516
1710
 
1517
1711
  const eRFID_DataFile_Type = {
@@ -1595,217 +1789,225 @@ const eRFID_DataFile_Type = {
1595
1789
  DFT_SESSION: 701,
1596
1790
  DFT_LOGDATA: 702,
1597
1791
  DFT_CHIP_PROPERTIES: 703,
1792
+ DFT_SAM_DATA: 800,
1793
+ DFT_SAM_DATA_MAX: 832,
1794
+ DFT_VDS: 900,
1795
+ DFT_VDSNC: 901,
1598
1796
  DFT_USERDEFINED: 1000,
1599
1797
 
1600
1798
  getTranslation: function (value) {
1601
1799
  switch (value) {
1602
- case this.DFT_MIFARE_DATA:
1603
- return "MIFARE data"
1604
- case this.DFT_DL_COM:
1605
- return "EF.COM"
1606
- case this.DFT_PASSPORT_DG1:
1800
+ case 0:
1801
+ return "DFT_UNSPECIFIED"
1802
+ case 1:
1607
1803
  return "Machine Readable Zone (DG1)"
1608
- case this.DFT_ID_DG1:
1609
- return "Document type" + " (DG1)"
1610
- case this.DFT_DL_DG1:
1611
- return "Text data elements (DG1)"
1612
- case this.DFT_PASSPORT_DG2:
1804
+ case 2:
1613
1805
  return "Biometry - Facial data (DG2)"
1614
- case this.DFT_ID_DG2:
1615
- return "Issuing state" + " (DG2)"
1616
- case this.DFT_DL_DG2:
1617
- return "License holder information (DG2)"
1618
- case this.DFT_PASSPORT_DG3:
1806
+ case 3:
1619
1807
  return "Biometry - Fingerprint(s) (DG3)"
1620
- case this.DFT_ID_DG3:
1621
- return "Date of expiry" + " (DG3)"
1622
- case this.DFT_DL_DG3:
1623
- return "Issuing authority details (DG3)"
1624
- case this.DFT_PASSPORT_DG4:
1808
+ case 4:
1625
1809
  return "Biometry - Iris Data (DG4)"
1626
- case this.DFT_ID_DG4:
1627
- return "Given name" + " (DG4)"
1628
- case this.DFT_DL_DG4:
1629
- return "Portrait image (DG4)"
1630
- case this.DFT_PASSPORT_DG5:
1810
+ case 5:
1631
1811
  return "Portrait(s) (DG5)"
1632
- case this.DFT_ID_DG5:
1633
- return "Surname/given name at birth" + " (DG5)"
1634
- case this.DFT_DL_DG5:
1635
- return "Signature / usual mark image (DG5)"
1636
- case this.DFT_PASSPORT_DG6:
1812
+ case 6:
1637
1813
  return "not defined (DG6)"
1638
- case this.DFT_ID_DG6:
1639
- return "Pseudonym" + " (DG6)"
1640
- case this.DFT_DL_DG6:
1641
- return "Biometry - Facial data (DG6)"
1642
- case this.DFT_PASSPORT_DG7:
1814
+ case 7:
1643
1815
  return "Signature / usual mark image (DG7)"
1644
- case this.DFT_ID_DG7:
1645
- return "Academic title" + " (DG7)"
1646
- case this.DFT_DL_DG7:
1647
- return "Biometry - Fingerprint(s) (DG7)"
1648
- case this.DFT_PASSPORT_DG8:
1816
+ case 8:
1649
1817
  return "not defined (DG8)"
1650
- case this.DFT_ID_DG8:
1651
- return "Date of birth" + " (DG8)"
1652
- case this.DFT_DL_DG8:
1653
- return "Biometry - Iris Data (DG8)"
1654
- case this.DFT_PASSPORT_DG9:
1818
+ case 9:
1655
1819
  return "not defined (DG9)"
1656
- case this.DFT_ID_DG9:
1657
- return "Place of birth" + " (DG9)"
1658
- case this.DFT_DL_DG9:
1659
- return "Biometry - Other (DG9)"
1660
- case this.DFT_PASSPORT_DG10:
1661
- return "not defined (DG10)"
1662
- case this.DFT_ID_DG10:
1663
- return "Nationality" + " (DG10)"
1664
- case this.DFT_DL_DG10:
1820
+ case 10:
1665
1821
  return "not defined (DG10)"
1666
- case this.DFT_PASSPORT_DG11:
1822
+ case 11:
1667
1823
  return "Additional personal detail(s) (DG11)"
1668
- case this.DFT_ID_DG11:
1669
- return "Sex" + " (DG11)"
1670
- case this.DFT_DL_DG11:
1671
- return "Optional domestic data (DG11)"
1672
- case this.DFT_PASSPORT_DG12:
1824
+ case 12:
1673
1825
  return "Additional document details (DG12)"
1674
- case this.DFT_ID_DG12:
1675
- return "Optional details" + " (DG12)"
1676
- case this.DFT_DL_DG12:
1677
- return "Non-match alert (DG12)"
1678
- case this.DFT_PASSPORT_DG13:
1826
+ case 13:
1679
1827
  return "Optional detail(s) (DG13)"
1680
- case this.DFT_ID_DG13:
1681
- return "Undefined" + " (DG13)"
1682
- case this.DFT_DL_DG13:
1683
- return "Active Authentication info (DG13)"
1684
- case this.DFT_PASSPORT_DG14:
1685
- return "EAC info (DG14)"
1686
- case this.DFT_ID_DG14:
1687
- return "Undefined" + " (DG14)"
1688
- case this.DFT_DL_DG14:
1828
+ case 14:
1689
1829
  return "EAC info (DG14)"
1690
- case this.DFT_PASSPORT_DG15:
1830
+ case 15:
1691
1831
  return "Active Authentication info (DG15)"
1692
- case this.DFT_ID_DG15:
1693
- return "Undefined" + " (DG15)"
1694
- case this.DFT_PASSPORT_DG16:
1832
+ case 16:
1695
1833
  return "Person(s) to notify (DG16)"
1696
- case this.DFT_ID_DG16:
1697
- return "Undefined" + " (DG16)"
1698
- case this.DFT_PASSPORT_DG17:
1834
+ case 17:
1699
1835
  return "DG17"
1700
- case this.DFT_ID_DG17:
1701
- return "Place of registration" + " (DG17)"
1702
- case this.DFT_PASSPORT_DG18:
1836
+ case 18:
1703
1837
  return "DG18"
1704
- case this.DFT_ID_DG18:
1705
- return "Place of registration" + " (DG18)"
1706
- case this.DFT_PASSPORT_DG19:
1838
+ case 19:
1707
1839
  return "DG19"
1708
- case this.DFT_ID_DG19:
1709
- return "Residence permit 1" + " (DG19)"
1710
- case this.DFT_PASSPORT_DG20:
1840
+ case 20:
1711
1841
  return "DG20"
1712
- case this.DFT_ID_DG20:
1713
- return "Residence permit 2" + " (DG20)"
1714
- case this.DFT_ID_DG21:
1715
- return "Optional details" + " (DG21)"
1716
- case this.DFT_DL_SOD:
1842
+ case 21:
1843
+ return "EF.SOD"
1844
+ case 165:
1717
1845
  return "EF.SOD"
1718
- case this.DFT_PASSPORT_CVCA:
1846
+ case 22:
1719
1847
  return "EF.CVCA"
1720
- case this.DFT_MIFARE_VALIDITY:
1721
- return "MIFARE validity"
1722
- case this.DFT_PACE_CARDACCESS:
1723
- return "EF.CardAccess"
1724
- case this.DFT_PACE_CARDSECURITY:
1725
- return "EF.CardSecurity"
1726
- case this.DFT_PACE_CHIPSECURITY:
1727
- return "EF.ChipSecurity"
1728
- case this.DFT_CERTIFICATE:
1729
- return "Certificate"
1730
- case this.DFT_APP_DIRECTORY:
1731
- return "App directory"
1732
- case this.DFT_ATR:
1733
- return "DFT_ATR"
1734
- case this.DFT_CHIP_PROPERTIES:
1735
- return "DFT_CHIP_PROPERTIES"
1736
- case this.DFT_DEFECTLIST:
1737
- return "DFT_DEFECTLIST"
1738
- case this.DFT_DEVIATIONLIST:
1739
- return "DFT_DEVIATIONLIST"
1740
- case this.DFT_DL_CE:
1741
- return "DFT_DL_CE"
1742
- case this.DFT_DL_CVCA:
1743
- return "DFT_DL_CVCA"
1744
- case this.DFT_ESIGN_PK:
1745
- return "DFT_ESIGN_PK"
1746
- case this.DFT_ESIGN_SIGNEDDATA:
1747
- return "DFT_ESIGN_SIGNEDDATA"
1748
- case this.DFT_LOGDATA:
1749
- return "DFT_LOGDATA"
1750
- case this.DFT_MASTERLIST:
1751
- return "DFT_MASTERLIST"
1752
- case this.DFT_SESSION:
1753
- return "DFT_SESSION"
1754
- case this.DFT_UNSPECIFIED:
1755
- return "DFT_UNSPECIFIED"
1756
- case this.DFT_USERDEFINED:
1757
- return "DFT_USERDEFINED"
1758
- default:
1759
- return value
1760
- }
1761
- }
1762
- }
1763
-
1764
- const eRFID_NotificationAndErrorCodes = {
1765
- RFID_NOTIFICATION_ERROR: 65536,
1766
- RFID_NOTIFICATION_DOCUMENT_READY: 65537,
1767
- RFID_NOTIFICATION_READ_PROTOCOL4: 65539,
1768
- RFID_NOTIFICATION_READ_PROTOCOL3: 65546,
1769
- RFID_NOTIFICATION_PROGRESS: 65547,
1770
- RFID_NOTIFICATION_TA_STEP: 65550,
1771
- RFID_NOTIFICATION_SM_REQUIRED: 65551,
1772
- RFID_NOTIFICATION_ISO_ERROR: 69632,
1773
- RFID_NOTIFICATION_PA_REQUEST: 77824,
1774
- RFID_NOTIFICATION_SM_ESTABLISHED: 81935,
1775
- RFID_NOTIFICATION_PCSC_READER_DISCONNECTED: 131072,
1776
- RFID_NOTIFICATION_PCSC_READER_LIST_CHANGED: 131073,
1777
- RFID_NOTIFICATION_PCSC_BYTES_RECEIVED: 131074,
1778
- RFID_NOTIFICATION_PCSC_TOTAL_READING_TIME: 131075,
1779
- RFID_NOTIFICATION_PCSC_DATA_RECEIVED: 131076,
1780
- RFID_NOTIFICATION_PCSC_BYTES_SENT: 131077,
1781
- RFID_NOTIFICATION_PCSC_TOTAL_READING_SPEED: 131078,
1782
- RFID_NOTIFICATION_PCSC_TOTAL_PROCESS_TIME: 131079,
1783
- RFID_NOTIFICATION_PCSC_READER_LIST_CHANGING: 131080,
1784
- RFID_NOTIFICATION_PCSC_EXT_LENGTH_SUPPORT: 131088,
1785
- RFID_NOTIFICATION_PA_CERTIFICATE_CHAIN: 131089,
1786
- RFID_NOTIFICATION_PA_CERTIFICATE_CHAIN_ITEM: 131090,
1787
- RFID_NOTIFICATION_SCENARIO: 131104,
1788
- RFID_NOTIFICATION_PCSC_READING_DATAGROUP: 196608,
1789
- RFID_NOTIFICATION_PCSC_FILE_NOT_FOUND: 262144,
1790
- RFID_NOTIFICATION_PCSC_END_OF_FILE: 327680,
1791
- RFID_NOTIFICATION_PCSC_FILE_ACCESS_DENIED: 393216,
1792
- RFID_NOTIFICATION_PCSC_APPLICATION_SELECTED: 458752,
1793
- RFID_NOTIFICATION_AC_PROCEDURE_START: 524288,
1794
- RFID_NOTIFICATION_AC_PROCEDURE_FINISH: 589824,
1795
- RFID_NOTIFICATION_PA_SECURITY_OBJECT_CHECK: 655360,
1796
- RFID_NOTIFICATION_PA_FILE_CHECK: 720896,
1797
- RFID_NOTIFICATION_PCSC_UPDATING_DATAGROUP: 786432,
1798
- RFID_NOTIFICATION_AUXILIARY_DATA_VALIDATION: 851968,
1799
- RFID_NOTIFICATION_RI_SECTOR_ID: 917504,
1800
- RFID_NOTIFICATION_BIOMETRICS_EMPTY_PLACEHOLDER: 983040,
1801
- RFID_ERROR_NO_ERROR: 1,
1802
- RFID_ERROR_ALREADY_DONE: 2,
1803
- RFID_LAYER6_FILE_EOF1: -2147458430,
1804
- RFID_LAYER6_PWD_DEACTIVATED: -2147458429,
1805
- RFID_LAYER6_PWD_BLOCKED: -2147458112,
1806
- RFID_LAYER6_PWD_SUSPENDED: -2147458111,
1807
- RFID_LAYER6_PWD_BLOCKED_2: -2147456637,
1808
- RFID_LAYER6_PWD_DEACTIVATED_2: -2147456636,
1848
+ case 23:
1849
+ return "EF.COM"
1850
+ case 150:
1851
+ return "EF.COM"
1852
+ case 101:
1853
+ return "Document type" + " (DG1)"
1854
+ case 102:
1855
+ return "Issuing state" + " (DG2)"
1856
+ case 103:
1857
+ return "Date of expiry" + " (DG3)"
1858
+ case 104:
1859
+ return "Given name" + " (DG4)"
1860
+ case 105:
1861
+ return "Surname/given name at birth" + " (DG5)"
1862
+ case 106:
1863
+ return "Pseudonym" + " (DG6)"
1864
+ case 107:
1865
+ return "Academic title" + " (DG7)"
1866
+ case 108:
1867
+ return "Date of birth" + " (DG8)"
1868
+ case 109:
1869
+ return "Place of birth" + " (DG9)"
1870
+ case 110:
1871
+ return "Nationality" + " (DG10)"
1872
+ case 111:
1873
+ return "Sex" + " (DG11)"
1874
+ case 112:
1875
+ return "Optional details" + " (DG12)"
1876
+ case 113:
1877
+ return "Undefined" + " (DG13)"
1878
+ case 114:
1879
+ return "Undefined" + " (DG14)"
1880
+ case 115:
1881
+ return "Undefined" + " (DG15)"
1882
+ case 116:
1883
+ return "Undefined" + " (DG16)"
1884
+ case 117:
1885
+ return "Place of registration" + " (DG17)"
1886
+ case 118:
1887
+ return "Place of registration" + " (DG18)"
1888
+ case 119:
1889
+ return "Residence permit 1" + " (DG19)"
1890
+ case 120:
1891
+ return "Residence permit 2" + " (DG20)"
1892
+ case 121:
1893
+ return "Optional details" + " (DG21)"
1894
+ case 151:
1895
+ return "Text data elements (DG1)"
1896
+ case 152:
1897
+ return "License holder information (DG2)"
1898
+ case 153:
1899
+ return "Issuing authority details (DG3)"
1900
+ case 154:
1901
+ return "Portrait image (DG4)"
1902
+ case 155:
1903
+ return "Signature / usual mark image (DG5)"
1904
+ case 156:
1905
+ return "Biometry - Facial data (DG6)"
1906
+ case 157:
1907
+ return "Biometry - Fingerprint(s) (DG7)"
1908
+ case 158:
1909
+ return "Biometry - Iris Data (DG8)"
1910
+ case 159:
1911
+ return "Biometry - Other (DG9)"
1912
+ case 160:
1913
+ return "not defined (DG10)"
1914
+ case 161:
1915
+ return "Optional domestic data (DG11)"
1916
+ case 162:
1917
+ return "Non-match alert (DG12)"
1918
+ case 163:
1919
+ return "Active Authentication info (DG13)"
1920
+ case 164:
1921
+ return "EAC info (DG14)"
1922
+ case 166:
1923
+ return "DFT_DL_CE"
1924
+ case 167:
1925
+ return "DFT_DL_CVCA"
1926
+ case 200:
1927
+ return "EF.CardAccess"
1928
+ case 201:
1929
+ return "EF.CardSecurity"
1930
+ case 202:
1931
+ return "EF.ChipSecurity"
1932
+ case 300:
1933
+ return "MIFARE data"
1934
+ case 301:
1935
+ return "MIFARE validity"
1936
+ case 400:
1937
+ return "DFT_ATR"
1938
+ case 500:
1939
+ return "DFT_ESIGN_PK"
1940
+ case 501:
1941
+ return "DFT_ESIGN_SIGNEDDATA"
1942
+ case 600:
1943
+ return "Certificate"
1944
+ case 601:
1945
+ return "DFT_MASTERLIST"
1946
+ case 602:
1947
+ return "DFT_DEFECTLIST"
1948
+ case 603:
1949
+ return "DFT_DEVIATIONLIST"
1950
+ case 700:
1951
+ return "App directory"
1952
+ case 701:
1953
+ return "DFT_SESSION"
1954
+ case 702:
1955
+ return "DFT_LOGDATA"
1956
+ case 703:
1957
+ return "DFT_CHIP_PROPERTIES"
1958
+ case 1000:
1959
+ return "DFT_USERDEFINED"
1960
+ default:
1961
+ return value
1962
+ }
1963
+ }
1964
+ }
1965
+
1966
+ const eRFID_NotificationAndErrorCodes = {
1967
+ RFID_NOTIFICATION_ERROR: 65536,
1968
+ RFID_NOTIFICATION_DOCUMENT_READY: 65537,
1969
+ RFID_NOTIFICATION_READ_PROTOCOL4: 65539,
1970
+ RFID_NOTIFICATION_READ_PROTOCOL3: 65546,
1971
+ RFID_NOTIFICATION_PROGRESS: 65547,
1972
+ RFID_NOTIFICATION_TA_STEP: 65550,
1973
+ RFID_NOTIFICATION_SM_REQUIRED: 65551,
1974
+ RFID_NOTIFICATION_ISO_ERROR: 69632,
1975
+ RFID_NOTIFICATION_PA_REQUEST: 77824,
1976
+ RFID_NOTIFICATION_SM_ESTABLISHED: 81935,
1977
+ RFID_NOTIFICATION_PCSC_READER_DISCONNECTED: 131072,
1978
+ RFID_NOTIFICATION_PCSC_READER_LIST_CHANGED: 131073,
1979
+ RFID_NOTIFICATION_PCSC_BYTES_RECEIVED: 131074,
1980
+ RFID_NOTIFICATION_PCSC_TOTAL_READING_TIME: 131075,
1981
+ RFID_NOTIFICATION_PCSC_DATA_RECEIVED: 131076,
1982
+ RFID_NOTIFICATION_PCSC_BYTES_SENT: 131077,
1983
+ RFID_NOTIFICATION_PCSC_TOTAL_READING_SPEED: 131078,
1984
+ RFID_NOTIFICATION_PCSC_TOTAL_PROCESS_TIME: 131079,
1985
+ RFID_NOTIFICATION_PCSC_READER_LIST_CHANGING: 131080,
1986
+ RFID_NOTIFICATION_PCSC_EXT_LENGTH_SUPPORT: 131088,
1987
+ RFID_NOTIFICATION_PA_CERTIFICATE_CHAIN: 131089,
1988
+ RFID_NOTIFICATION_PA_CERTIFICATE_CHAIN_ITEM: 131090,
1989
+ RFID_NOTIFICATION_SCENARIO: 131104,
1990
+ RFID_NOTIFICATION_PCSC_READING_DATAGROUP: 196608,
1991
+ RFID_NOTIFICATION_PCSC_FILE_NOT_FOUND: 262144,
1992
+ RFID_NOTIFICATION_PCSC_END_OF_FILE: 327680,
1993
+ RFID_NOTIFICATION_PCSC_FILE_ACCESS_DENIED: 393216,
1994
+ RFID_NOTIFICATION_PCSC_APPLICATION_SELECTED: 458752,
1995
+ RFID_NOTIFICATION_AC_PROCEDURE_START: 524288,
1996
+ RFID_NOTIFICATION_AC_PROCEDURE_FINISH: 589824,
1997
+ RFID_NOTIFICATION_PA_SECURITY_OBJECT_CHECK: 655360,
1998
+ RFID_NOTIFICATION_PA_FILE_CHECK: 720896,
1999
+ RFID_NOTIFICATION_PCSC_UPDATING_DATAGROUP: 786432,
2000
+ RFID_NOTIFICATION_AUXILIARY_DATA_VALIDATION: 851968,
2001
+ RFID_NOTIFICATION_RI_SECTOR_ID: 917504,
2002
+ RFID_NOTIFICATION_BIOMETRICS_EMPTY_PLACEHOLDER: 983040,
2003
+ RFID_ERROR_NO_ERROR: 1,
2004
+ RFID_ERROR_ALREADY_DONE: 2,
2005
+ RFID_LAYER6_FILE_EOF1: -2147458430,
2006
+ RFID_LAYER6_PWD_DEACTIVATED: -2147458429,
2007
+ RFID_LAYER6_PWD_BLOCKED: -2147458112,
2008
+ RFID_LAYER6_PWD_SUSPENDED: -2147458111,
2009
+ RFID_LAYER6_PWD_BLOCKED_2: -2147456637,
2010
+ RFID_LAYER6_PWD_DEACTIVATED_2: -2147456636,
1809
2011
  RFID_LAYER6_PWD_SUSPENDED_2: -2147456635,
1810
2012
  RFID_LAYER6_MSE_SET_AT_FAILURE: -2046819578,
1811
2013
  RFID_LAYER6_INCORRECT_PARAMS: -2147456384,
@@ -1818,6 +2020,7 @@ const eRFID_NotificationAndErrorCodes = {
1818
2020
  RFID_ERROR_INVALID_PARAMETER: -2147418108,
1819
2021
  RFID_ERROR_NOT_INITIALIZED: -2147418107,
1820
2022
  RFID_Error_NotEnoughMemory: -2147418106,
2023
+ RFID_ERROR_NOT_ENOUGH_DATA: -2147418105,
1821
2024
  RFID_ERROR_INVALID_DIRECTORY: -2147418104,
1822
2025
  RFID_ERROR_UNKNOWN_COMMAND: -2147418103,
1823
2026
  RFID_ERROR_FILE_IO_ERROR: -2147418102,
@@ -1896,11 +2099,25 @@ const eRFID_NotificationAndErrorCodes = {
1896
2099
  RFID_LAYER6_EXT_AUTH_FAILURE: -2046819576,
1897
2100
  RFID_LAYER6_GENERAL_AUTH_FAILURE: -2046819575,
1898
2101
  RFID_ERROR_FAILED: -1,
2102
+ RFID_ERROR_CODES_LAYER_34_NO_ERROR: -2080374784,
2103
+ RFID_ERROR_CODES_LAYER_34_TIMEOUT: -2080309248,
2104
+ RFID_ERROR_CODES_LAYER_34_COLLISION: -2080243712,
2105
+ RFID_ERROR_CODES_LAYER_34_CRC: -2080178176,
2106
+ RFID_ERROR_CODES_LAYER_34_DATA_INTEGRITY: -2080112640,
2107
+ RFID_ERROR_CODES_LAYER_34_DATA_LENGTH: -2080047104,
2108
+ RFID_ERROR_CODES_LAYER_34_RFU: -2079981568,
2109
+ RFID_ERROR_CODES_LAYER_34_COLLISION_TOO_MANY: -2079916032,
2110
+ RFID_ERROR_CODES_LAYER_34_PROTOCOL_B: -2079850496,
2111
+ RFID_ERROR_CODES_LAYER_34_DATA_CONTENTS: -2079784960,
2112
+ RFID_ERROR_CODES_LAYER_34_PROTOCOL: -2079719424,
2113
+ RFID_ERROR_CODES_LAYER_34_GLOBAL_TIMEOUT: -2079653888,
2114
+ RFID_ERROR_CODES_LAYER_34_MIFARE_AUTH: -2079588352,
2115
+ RFID_ERROR_CODES_LAYER_34_SAM_ERROR: -2079522816,
2116
+ RFID_ERROR_CODES_LAYER_34_SAM_COLLISION: -2079457280,
2117
+ RFID_ERROR_CODES_LAYER_34_SAM_ACKNOWLEDGE: -2079391744,
1899
2118
 
1900
2119
  getTranslation: function (value) {
1901
2120
  switch (value) {
1902
- case this.RFID_ERROR_NO_ERROR:
1903
- return "OK"
1904
2121
  case -2147483647:
1905
2122
  return "Error - ASN: Incorrect data"
1906
2123
  case -2147483646:
@@ -1915,6 +2132,8 @@ const eRFID_NotificationAndErrorCodes = {
1915
2132
  return "Error - ASN Signed data: Version incorrect data"
1916
2133
  case -2147483631:
1917
2134
  return "Error - ASN Signed data: Digest algorithms incorrect data"
2135
+ case -2147483630:
2136
+ return "Error - ASN LDS object: Version info incorrect data"
1918
2137
  case -2147483629:
1919
2138
  return "Error - ASN LDS object: Incorrect data"
1920
2139
  case -2147483628:
@@ -1923,8 +2142,6 @@ const eRFID_NotificationAndErrorCodes = {
1923
2142
  return "Error - ASN LDS object: Digest algorithm incorrect data"
1924
2143
  case -2147483626:
1925
2144
  return "Error - ASN LDS object: DG hashes incorrect data"
1926
- case -2147483630:
1927
- return "Error - ASN LDS object: Version info incorrect data"
1928
2145
  case -2147483625:
1929
2146
  return "Error - ASN Certificate: Incorrect data"
1930
2147
  case -2147483624:
@@ -1969,10 +2186,10 @@ const eRFID_NotificationAndErrorCodes = {
1969
2186
  return "Error - ICAO Signer info: Unsupported signature algorithm"
1970
2187
  case -2147483596:
1971
2188
  return "Error - ICAO Signer info: Message digest error"
1972
- case -2147483594:
1973
- return "Error - ICAO Signer info: Signed attributes missed"
1974
2189
  case -2147483595:
1975
2190
  return "Error - Auth: Signer info cannot find certificate"
2191
+ case -2147483594:
2192
+ return "Error - ICAO Signer info: Signed attributes missed"
1976
2193
  case -2147483568:
1977
2194
  return "Error - Auth: Error"
1978
2195
  case -2147483567:
@@ -1997,6 +2214,68 @@ const eRFID_NotificationAndErrorCodes = {
1997
2214
  return "Error - Auth: Signature check failed"
1998
2215
  case -2147483536:
1999
2216
  return "Error - DG: Wrong Tag"
2217
+ case -2147458430:
2218
+ return "LAYER6: Reading beyond EOF / Unexpected EOF"
2219
+ case -2147458429:
2220
+ return "LAYER6: PWD Deactivated"
2221
+ case -2147458112:
2222
+ return "LAYER6: PWD Blocked"
2223
+ case -2147458111:
2224
+ return "LAYER6: PWD Suspended"
2225
+ case -2147456637:
2226
+ return "LAYER6: PWD Blocked 2"
2227
+ case -2147456636:
2228
+ return "LAYER6: PWD Deactivated 2"
2229
+ case -2147456635:
2230
+ return "LAYER6: PWD Suspended 2"
2231
+ case -2147456384:
2232
+ return "LAYER6: Incorrect Params"
2233
+ case -2147456382:
2234
+ return "LAYER6: File selection failure / file not found"
2235
+ case -2147456376:
2236
+ return "LAYER6: No Reference Data"
2237
+ case -2147456256:
2238
+ return "LAYER6: Reading beyond EOF / Unexpected EOF"
2239
+ case -2147418112:
2240
+ return "RFID: Creation or connection to Graph Manager COM server failed"
2241
+ case -2147418111:
2242
+ return "RFID: No chip is detected"
2243
+ case -2147418110:
2244
+ return "RFID: Unavailable"
2245
+ case -2147418108:
2246
+ return "RFID: Invalid parameter in ExecuteCommand() call found"
2247
+ case -2147418107:
2248
+ return "RFID: Device is uninitialized"
2249
+ case -2147418106:
2250
+ return "RFID: Out of memory"
2251
+ case -2147418104:
2252
+ return "RFID: Invalid directory"
2253
+ case -2147418103:
2254
+ return "RFID: Unknown command"
2255
+ case -2147418102:
2256
+ return "RFID File: IO Error"
2257
+ case -2147418101:
2258
+ return "RFID: RFID is Busy"
2259
+ case -2147418100:
2260
+ return "RFID: Firmware need to be updated with newer version"
2261
+ case -2147352576:
2262
+ return "PCSC: Failed"
2263
+ case -2147352575:
2264
+ return "PCSC: Reader is unavailable"
2265
+ case -2147352574:
2266
+ return "PCSC: Card cannot be connected"
2267
+ case -2147352573:
2268
+ return "PCSC: Card is not connected"
2269
+ case -2147352572:
2270
+ return "PCSC: Operation is cancelled"
2271
+ case -2147352571:
2272
+ return "PCSC: Card Is Busy"
2273
+ case -2147352570:
2274
+ return "PCSC: Failed Smart Card"
2275
+ case -2147352560:
2276
+ return "PCSC: ExtLe Failed"
2277
+ case -2146409536:
2278
+ return "LAYER6: PWD Failed"
2000
2279
  case -2130706400:
2001
2280
  return "Error - PACE: Info Not Available"
2002
2281
  case -2130706399:
@@ -2065,12 +2344,6 @@ const eRFID_NotificationAndErrorCodes = {
2065
2344
  return "Error - AA: Incorrect Trailer"
2066
2345
  case -2130706345:
2067
2346
  return "Error - AA: Unsupported Digest Algorithm"
2068
- case -2130706320:
2069
- return "Error - RI: Sector Key Cannot Find"
2070
- case -2130706319:
2071
- return "Error - RI: Sector Key Incorrect Data"
2072
- case -2130706318:
2073
- return "Error - RI: Sector Key Incomplete Data"
2074
2347
  case -2130706336:
2075
2348
  return "Error - CV Certificate: Missing mandatory data PK"
2076
2349
  case -2130706334:
@@ -2081,6 +2354,12 @@ const eRFID_NotificationAndErrorCodes = {
2081
2354
  return "Error - CV Certificate: Private key unsupported"
2082
2355
  case -2130706331:
2083
2356
  return "Error - CV Certificate: Private key invalid params"
2357
+ case -2130706320:
2358
+ return "Error - RI: Sector Key Cannot Find"
2359
+ case -2130706319:
2360
+ return "Error - RI: Sector Key Incorrect Data"
2361
+ case -2130706318:
2362
+ return "Error - RI: Sector Key Incomplete Data"
2084
2363
  case -2130706080:
2085
2364
  return "Error - CV Certificate: Incorrect data"
2086
2365
  case -2130706079:
@@ -2103,33 +2382,249 @@ const eRFID_NotificationAndErrorCodes = {
2103
2382
  return "Error - CV Certificate: Private key incorrect data"
2104
2383
  case -2130706070:
2105
2384
  return "Error - CV Certificate: Private key missing"
2106
- case -1879048191:
2107
- return "Notification - ASN certificate: Incorrect version"
2108
- case -1879048190:
2109
- return "Notification - ASN certificate: Non-matching signature algorithm"
2110
- case -1879048189:
2111
- return "Notification - ASN certificate: Incorrect time coding"
2112
- case -1879048188:
2113
- return "Notification - ASN certificate: Incorrect use of generalized time"
2114
- case -1879048187:
2115
- return "Notification - ASN certificate: Empty issuer"
2116
- case -1879048186:
2117
- return "Notification - ASN certificate: Empty subject"
2118
- case -1879048184:
2119
- return "Notification - ASN certificate: Unsupported critical extension"
2120
- case -1879048178:
2121
- return "Notification - ASN certificate: Forced default CSCA role"
2122
- case -1879048177:
2123
- return "Notification - ASN certificate: Forced Default DS role"
2124
- case -1879048176:
2125
- return "Notification - ASN certificate: Incorrect issuer subject DS"
2126
- case -1879048169:
2127
- return "Notification - ASN certificate: Duplicating extensions"
2128
- case -1879047680:
2129
- return "Notification - ICAO certificate: Version missed"
2130
- case -1879047679:
2131
- return "Notification - ICAO certificate: Version incorrect"
2132
- case -1879047678:
2385
+ case -2097152000:
2386
+ return "RFID: Not Performed"
2387
+ case -2097151999:
2388
+ return "RFID: Session Is Closed"
2389
+ case -2097151998:
2390
+ return "RFID: Terminal Unsupported Operation"
2391
+ case -2097151984:
2392
+ return "RFID: Terminal Type Unknown"
2393
+ case -2097151983:
2394
+ return "RFID: Terminal Type Bad Certificate"
2395
+ case -2097151982:
2396
+ return "RFID: Terminal Type Not Set"
2397
+ case -2097151981:
2398
+ return "RFID: Procedure Type Unknown"
2399
+ case -2097151980:
2400
+ return "RFID: Procedure Type Unsupported"
2401
+ case -2097151979:
2402
+ return "RFID: Procedure Type Not Set"
2403
+ case -2097151978:
2404
+ return "RFID: Access Key Unknown Type"
2405
+ case -2097151977:
2406
+ return "RFID: Access Key Unsupported SM Type"
2407
+ case -2097151976:
2408
+ return "RFID: Access Key Incorrect SM Type"
2409
+ case -2097151975:
2410
+ return "RFID: Access Key Restricted"
2411
+ case -2097151974:
2412
+ return "RFID: Access Key Incorrect Data"
2413
+ case -2097151973:
2414
+ return "RFID: Access Key Not Set"
2415
+ case -2097151972:
2416
+ return "RFID: Pwd Management Not Authorized"
2417
+ case -2097151968:
2418
+ return "RFID: Access Control UnknownType"
2419
+ case -2097151967:
2420
+ return "RFID: Requires SM"
2421
+ case -2097151966:
2422
+ return "RFID: Requires PACE"
2423
+ case -2097151965:
2424
+ return "RFID: Requires CA Keys"
2425
+ case -2097151964:
2426
+ return "RFID: Requires TA"
2427
+ case -2097151963:
2428
+ return "RFID: Requires CA"
2429
+ case -2097151962:
2430
+ return "RFID: Incorrect Option CA"
2431
+ case -2097151961:
2432
+ return "RFID: CA Failed"
2433
+ case -2097151960:
2434
+ return "RFID: TA Failed"
2435
+ case -2097151959:
2436
+ return "RFID: AA Failed"
2437
+ case -2097151958:
2438
+ return "RFID: RI Failed"
2439
+ case -2097151952:
2440
+ return "RFID: SO Signature Check Failed"
2441
+ case -2097151951:
2442
+ return "RFID: Hash Check Failed"
2443
+ case -2097151936:
2444
+ return "RFID: Invalid Aux Data Date Of Expiry"
2445
+ case -2097151935:
2446
+ return "RFID: Invalid Aux Data Date Of Birth"
2447
+ case -2097151934:
2448
+ return "RFID: Invalid Aux Data Community ID"
2449
+ case -2097151920:
2450
+ return "RFID: eSign Requires App Selection"
2451
+ case -2097151919:
2452
+ return "RFID: eSign PIN Not Set"
2453
+ case -2097151918:
2454
+ return "RFID: eSign PIN Not Verified"
2455
+ case -2097151904:
2456
+ return "RFID: Incorrect data"
2457
+ case -2097086464:
2458
+ return "RFID File: Not Enough Data"
2459
+ case -2097020928:
2460
+ return "RFID File: Incorrect Data"
2461
+ case -2096955392:
2462
+ return "RFID File: Unexpected Data"
2463
+ case -2096889856:
2464
+ return "RFID File: Contents Unexpected Data"
2465
+ case -2096824320:
2466
+ return "RFID File: Wrong Tag"
2467
+ case -2096758784:
2468
+ return "RFID File: Cannot Use Data"
2469
+ case -2096693248:
2470
+ return "RFID File: Cannot Read Data"
2471
+ case -2096627712:
2472
+ return "RFID File: Access Denied"
2473
+ case -2046820352:
2474
+ return "LAYER6: Secure Messaging was not activated"
2475
+ case -2046820351:
2476
+ return "LAYER6: ISO7816_A_03 \"Application selection failure\""
2477
+ case -2046820096:
2478
+ return "LAYER6: ISO7816_B_01 \"Mutual authentication MAC failure\""
2479
+ case -2046820095:
2480
+ return "LAYER6: ISO7816_B_02 \"Mutual authentication encryption failure\""
2481
+ case -2046820094:
2482
+ return "LAYER6: ISO7816_B_03 \"Mutual authentication failure\""
2483
+ case -2046819840:
2484
+ return "LAYER6: SM failure – MAC missing"
2485
+ case -2046819839:
2486
+ return "LAYER6: SM failure – cryptogram missing"
2487
+ case -2046819838:
2488
+ return "LAYER6: SM failure – secured status bytes missing"
2489
+ case -2046819837:
2490
+ return "LAYER6: SM failure – incorrect MAC"
2491
+ case -2046819836:
2492
+ return "LAYER6: SM failure – incorrect cryptogram"
2493
+ case -2046819584:
2494
+ return "LAYER6: Not TLV response data"
2495
+ case -2046819583:
2496
+ return "LAYER6: Wrong data length (APDU_INS_GET_CHALLENGE)"
2497
+ case -2046819582:
2498
+ return "LAYER6: APDU_INS_INTERNAL_AUTHENTICATE failure"
2499
+ case -2046819581:
2500
+ return "LAYER6: MSE:Set KAT failure"
2501
+ case -2046819580:
2502
+ return "LAYER6: MSE:Set DST failure"
2503
+ case -2046819579:
2504
+ return "LAYER6: PSO CERTIFICATE failure"
2505
+ case -2046819578:
2506
+ return "LAYER6: MSE:Set AT failure"
2507
+ case -2046819577:
2508
+ return "LAYER6: GET CHALLENGE failure"
2509
+ case -2046819576:
2510
+ return "LAYER6: APDU_INS_EXTERNAL_AUTHENTICATE (External Authentication) failure"
2511
+ case -2046819575:
2512
+ return "LAYER6: General Authenticity Failure"
2513
+ case -1879048191:
2514
+ return "Notification - ASN certificate: Incorrect version"
2515
+ case -1879048190:
2516
+ return "Notification - ASN certificate: Non-matching signature algorithm"
2517
+ case -1879048189:
2518
+ return "Notification - ASN certificate: Incorrect time coding"
2519
+ case -1879048188:
2520
+ return "Notification - ASN certificate: Incorrect use of generalized time"
2521
+ case -1879048187:
2522
+ return "Notification - ASN certificate: Empty issuer"
2523
+ case -1879048186:
2524
+ return "Notification - ASN certificate: Empty subject"
2525
+ case -1879048184:
2526
+ return "Notification - ASN certificate: Unsupported critical extension"
2527
+ case -1879048178:
2528
+ return "Notification - ASN certificate: Forced default CSCA role"
2529
+ case -1879048177:
2530
+ return "Notification - ASN certificate: Forced Default DS role"
2531
+ case -1879048176:
2532
+ return "Notification - ASN certificate: Incorrect issuer subject DS"
2533
+ case -1879048169:
2534
+ return "Notification - ASN certificate: Duplicating extensions"
2535
+ case -1879048160:
2536
+ return "Notification - ICAO COM: LDS version incorrect"
2537
+ case -1879048159:
2538
+ return "Notification - ICAO COM: LDS version missing"
2539
+ case -1879048158:
2540
+ return "Notification - ICAO COM: Unicode version incorrect"
2541
+ case -1879048157:
2542
+ return "Notification - ICAO COM: Unicode version missing"
2543
+ case -1879048156:
2544
+ return "Notification - ICAO COM: DGPM incorrect"
2545
+ case -1879048155:
2546
+ return "Notification - ICAO COM: DGPM missing"
2547
+ case -1879048154:
2548
+ return "Notification - ICAO COM: DGPM unexpected"
2549
+ case -1879048144:
2550
+ return "Notification - ICAO application: LDS version unsupported"
2551
+ case -1879048143:
2552
+ return "Notification - ICAO application: Unicode version unsupported"
2553
+ case -1879048142:
2554
+ return "Notification - ICAO application: LDS version inconsistent"
2555
+ case -1879048141:
2556
+ return "Notification - ICAO application: Unicode version inconsistent"
2557
+ case -1879047936:
2558
+ return "Notification - ASN signed data: OID incorrect"
2559
+ case -1879047935:
2560
+ return "Notification - ICAO signed data: Version incorrect"
2561
+ case -1879047934:
2562
+ return "Notification - ICAO signed data: Digest algorithms empty"
2563
+ case -1879047933:
2564
+ return "Notification - ICAO signed data: Digest algorithms unsupported"
2565
+ case -1879047932:
2566
+ return "Notification - ICAO LDS object: Incorrect content OID"
2567
+ case -1879047931:
2568
+ return "Notification - ICAO LDS object: DG number incorrect"
2569
+ case -1879047930:
2570
+ return "Notification - ICAO LDS object: DG hash missing"
2571
+ case -1879047929:
2572
+ return "Notification - ICAO LDS object: DG hash extra"
2573
+ case -1879047928:
2574
+ return "Notification - ICAO LDS object: Version incorrect"
2575
+ case -1879047927:
2576
+ return "Notification - ICAO signed data: Signer infos multiple entries"
2577
+ case -1879047926:
2578
+ return "Notification - ASN signer info: Version incorrect"
2579
+ case -1879047925:
2580
+ return "Notification - ASN signer info: SID incorrect choice"
2581
+ case -1879047924:
2582
+ return "Notification - ASN signer info: SID digest algorithm not listed"
2583
+ case -1879047923:
2584
+ return "Notification - ASN signer info: Message digest attr missing"
2585
+ case -1879047922:
2586
+ return "Notification - ASN signer info: Message digest attr data"
2587
+ case -1879047921:
2588
+ return "Notification - ASN signer info: Message digest attr value"
2589
+ case -1879047920:
2590
+ return "Notification - ASN signer info: Content type attr missing"
2591
+ case -1879047919:
2592
+ return "Notification - ASN signer info: Content type attr data"
2593
+ case -1879047918:
2594
+ return "Notification - ASN signer info: Content type attr value"
2595
+ case -1879047915:
2596
+ return "Notification - Auth signer info: Certificate validity"
2597
+ case -1879047914:
2598
+ return "Notification - Auth signer info: Certificate root is not trusted"
2599
+ case -1879047913:
2600
+ return "Notification - Auth signer info: Certificate cannot find CSCA"
2601
+ case -1879047912:
2602
+ return "Notification - Auth signer info: Certificate revoked"
2603
+ case -1879047911:
2604
+ return "Notification - Auth signer info: Certificate signature invalid"
2605
+ case -1879047910:
2606
+ return "Notification: Unsupported image format"
2607
+ case -1879047909:
2608
+ return "Notification - ASN signer info: Signing time attr missing"
2609
+ case -1879047908:
2610
+ return "Notification - ASN signer info: Signing time attr data"
2611
+ case -1879047907:
2612
+ return "Notification - ASN signer info: Signing time attr value"
2613
+ case -1879047776:
2614
+ return "Notification - ASN signed data: Version incorrect"
2615
+ case -1879047760:
2616
+ return "Notification - ICAO signed data: Certificates missed"
2617
+ case -1879047759:
2618
+ return "Notification - ICAO signed data: Certificates empty"
2619
+ case -1879047758:
2620
+ return "Notification - ICAO signed data: CRLs incorrect usage"
2621
+ case -1879047744:
2622
+ return "Notification - ICAO master list: Version incorrect"
2623
+ case -1879047680:
2624
+ return "Notification - ICAO certificate: Version missed"
2625
+ case -1879047679:
2626
+ return "Notification - ICAO certificate: Version incorrect"
2627
+ case -1879047678:
2133
2628
  return "Notification - ICAO certificate: Issuer country missed"
2134
2629
  case -1879047677:
2135
2630
  return "Notification - ICAO certificate: Issuer common name missed"
@@ -2209,162 +2704,44 @@ const eRFID_NotificationAndErrorCodes = {
2209
2704
  return "Notification - ICAO certificate extension: Subject alt name DN incorrect"
2210
2705
  case -1879047637:
2211
2706
  return "Notification - ICAO certificate extension: Subject alt name DN non-compliant"
2212
- case -1879047636:
2213
- return "Notification - ICAO certificate extension: Issuer alt name missed"
2214
- case -1879047635:
2215
- return "Notification - ICAO certificate extension: Issuer alt name incorrect data"
2216
- case -1879047634:
2217
- return "Notification - ICAO certificate extension: Issuer alt name empty"
2218
- case -1879047633:
2219
- return "Notification - ICAO certificate extension: Issuer alt name non-compliant"
2220
- case -1879047630:
2221
- return "Notification - ICAO certificate extension: Issuer alt name DN empty"
2222
- case -1879047629:
2223
- return "Notification - ICAO certificate extension: Issuer alt name DN incorrect"
2224
- case -1879047628:
2225
- return "Notification - ICAO certificate extension: Issuer alt name DN non-compliant"
2226
- case -1879047627:
2227
- return "Notification - ICAO certificate extension Doc type list: Missed"
2228
- case -1879047626:
2229
- return "Notification - ICAO certificate extension Doc type list: Incorrect data"
2230
- case -1879047625:
2231
- return "Notification - ICAO certificate extension Doc type list: Version"
2232
- case -1879047624:
2233
- return "Notification - ICAO certificate extension Doc type list: Doc types"
2234
- case -1879047623:
2235
- return "Notification - ICAO certificate extension Doc type list: Doc types empty"
2236
- case -1879047622:
2237
- return "Notification - ICAO certificate extension: Dert policies incorrect data"
2238
- case -1879047621:
2239
- return "Notification - ICAO certificate extension: Cert policies empty"
2240
- case -1879047620:
2241
- return "Notification - ICAO certificate extension: Cert policies policy ID missed"
2242
- case -1879047619:
2243
- return "Notification - ICAO certificate extension: CRL dist point missed"
2244
- case -1879047618:
2245
- return "Notification - ICAO certificate extension: CRL dist point incorrect data"
2246
- case -1879047617:
2247
- return "Notification - ICAO certificate extension: CRL dist point empty"
2248
- case -1879047616:
2249
- return "Notification - ICAO certificate extension: CRL dist point point missed"
2250
- case -1879048160:
2251
- return "Notification - ICAO COM: LDS version incorrect"
2252
- case -1879048159:
2253
- return "Notification - ICAO COM: LDS version missing"
2254
- case -1879048158:
2255
- return "Notification - ICAO COM: Unicode version incorrect"
2256
- case -1879048157:
2257
- return "Notification - ICAO COM: Unicode version missing"
2258
- case -1879048156:
2259
- return "Notification - ICAO COM: DGPM incorrect"
2260
- case -1879048155:
2261
- return "Notification - ICAO COM: DGPM missing"
2262
- case -1879048154:
2263
- return "Notification - ICAO COM: DGPM unexpected"
2264
- case -1879048144:
2265
- return "Notification - ICAO application: LDS version unsupported"
2266
- case -1879048143:
2267
- return "Notification - ICAO application: Unicode version unsupported"
2268
- case -1879048142:
2269
- return "Notification - ICAO application: LDS version inconsistent"
2270
- case -1879048141:
2271
- return "Notification - ICAO application: Unicode version inconsistent"
2272
- case -1879047936:
2273
- return "Notification - ASN signed data: OID incorrect"
2274
- case -1879047776:
2275
- return "Notification - ASN signed data: Version incorrect"
2276
- case -1879047935:
2277
- return "Notification - ICAO signed data: Version incorrect"
2278
- case -1879047934:
2279
- return "Notification - ICAO signed data: Digest algorithms empty"
2280
- case -1879047933:
2281
- return "Notification - ICAO signed data: Digest algorithms unsupported"
2282
- case -1879047927:
2283
- return "Notification - ICAO signed data: Signer infos multiple entries"
2284
- case -1879047760:
2285
- return "Notification - ICAO signed data: Certificates missed"
2286
- case -1879047759:
2287
- return "Notification - ICAO signed data: Certificates empty"
2288
- case -1879047758:
2289
- return "Notification - ICAO signed data: CRLs incorrect usage"
2290
- case -1879047932:
2291
- return "Notification - ICAO LDS object: Incorrect content OID"
2292
- case -1879047931:
2293
- return "Notification - ICAO LDS object: DG number incorrect"
2294
- case -1879047930:
2295
- return "Notification - ICAO LDS object: DG hash missing"
2296
- case -1879047929:
2297
- return "Notification - ICAO LDS object: DG hash extra"
2298
- case -1879047928:
2299
- return "Notification - ICAO LDS object: Version incorrect"
2300
- case -1879047744:
2301
- return "Notification - ICAO master list: Version incorrect"
2302
- case -1879047926:
2303
- return "Notification - ASN signer info: Version incorrect"
2304
- case -1879047925:
2305
- return "Notification - ASN signer info: SID incorrect choice"
2306
- case -1879047924:
2307
- return "Notification - ASN signer info: SID digest algorithm not listed"
2308
- case -1879047923:
2309
- return "Notification - ASN signer info: Message digest attr missing"
2310
- case -1879047922:
2311
- return "Notification - ASN signer info: Message digest attr data"
2312
- case -1879047921:
2313
- return "Notification - ASN signer info: Message digest attr value"
2314
- case -1879047920:
2315
- return "Notification - ASN signer info: Content type attr missing"
2316
- case -1879047919:
2317
- return "Notification - ASN signer info: Content type attr data"
2318
- case -1879047918:
2319
- return "Notification - ASN signer info: Content type attr value"
2320
- case -1879047909:
2321
- return "Notification - ASN signer info: Signing time attr missing"
2322
- case -1879047908:
2323
- return "Notification - ASN signer info: Signing time attr data"
2324
- case -1879047907:
2325
- return "Notification - ASN signer info: Signing time attr value"
2326
- case -1879047915:
2327
- return "Notification - Auth signer info: Certificate validity"
2328
- case -1879047914:
2329
- return "Notification - Auth signer info: Certificate root is not trusted"
2330
- case -1879047913:
2331
- return "Notification - Auth signer info: Certificate cannot find CSCA"
2332
- case -1879047912:
2333
- return "Notification - Auth signer info: Certificate revoked"
2334
- case -1879047911:
2335
- return "Notification - Auth signer info: Certificate signature invalid"
2336
- case -1879047910:
2337
- return "Notification: Unsupported image format"
2338
- case 139272:
2339
- return "Notification - MRZ: Document type unknown"
2340
- case 139273:
2341
- return "Notification - MRZ: Issuing state syntax error"
2342
- case 139274:
2343
- return "Notification - MRZ: Name is void"
2344
- case 139277:
2345
- return "Notification - MRZ: Number incorrect checksum"
2346
- case 139278:
2347
- return "Notification - MRZ: Nationality syntax error"
2348
- case 139279:
2349
- return "Notification - MRZ: DOB syntax error"
2350
- case 139280:
2351
- return "Notification - MRZ: DOB error"
2352
- case 139281:
2353
- return "Notification - MRZ: DOB incorrect checksum"
2354
- case 139282:
2355
- return "Notification - MRZ: Sex incorrect"
2356
- case 139283:
2357
- return "Notification - MRZ: DOE syntax error"
2358
- case 139284:
2359
- return "Notification - MRZ: DOE error"
2360
- case 139285:
2361
- return "Notification - MRZ: DOE incorrect checksum"
2362
- case 139286:
2363
- return "Notification - MRZ: Optional data incorrect checksum"
2364
- case 139287:
2365
- return "Notification - MRZ: Incorrect checksum"
2366
- case 139288:
2367
- return "Notification - MRZ: Incorrect"
2707
+ case -1879047636:
2708
+ return "Notification - ICAO certificate extension: Issuer alt name missed"
2709
+ case -1879047635:
2710
+ return "Notification - ICAO certificate extension: Issuer alt name incorrect data"
2711
+ case -1879047634:
2712
+ return "Notification - ICAO certificate extension: Issuer alt name empty"
2713
+ case -1879047633:
2714
+ return "Notification - ICAO certificate extension: Issuer alt name non-compliant"
2715
+ case -1879047630:
2716
+ return "Notification - ICAO certificate extension: Issuer alt name DN empty"
2717
+ case -1879047629:
2718
+ return "Notification - ICAO certificate extension: Issuer alt name DN incorrect"
2719
+ case -1879047628:
2720
+ return "Notification - ICAO certificate extension: Issuer alt name DN non-compliant"
2721
+ case -1879047627:
2722
+ return "Notification - ICAO certificate extension Doc type list: Missed"
2723
+ case -1879047626:
2724
+ return "Notification - ICAO certificate extension Doc type list: Incorrect data"
2725
+ case -1879047625:
2726
+ return "Notification - ICAO certificate extension Doc type list: Version"
2727
+ case -1879047624:
2728
+ return "Notification - ICAO certificate extension Doc type list: Doc types"
2729
+ case -1879047623:
2730
+ return "Notification - ICAO certificate extension Doc type list: Doc types empty"
2731
+ case -1879047622:
2732
+ return "Notification - ICAO certificate extension: Dert policies incorrect data"
2733
+ case -1879047621:
2734
+ return "Notification - ICAO certificate extension: Cert policies empty"
2735
+ case -1879047620:
2736
+ return "Notification - ICAO certificate extension: Cert policies policy ID missed"
2737
+ case -1879047619:
2738
+ return "Notification - ICAO certificate extension: CRL dist point missed"
2739
+ case -1879047618:
2740
+ return "Notification - ICAO certificate extension: CRL dist point incorrect data"
2741
+ case -1879047617:
2742
+ return "Notification - ICAO certificate extension: CRL dist point empty"
2743
+ case -1879047616:
2744
+ return "Notification - ICAO certificate extension: CRL dist point point missed"
2368
2745
  case -1878982656:
2369
2746
  return "Notification - Biometrics: Format owner missing"
2370
2747
  case -1878917120:
@@ -2493,200 +2870,42 @@ const eRFID_NotificationAndErrorCodes = {
2493
2870
  return "Notification - Auth ML signer info: Certificate revoked"
2494
2871
  case -1845493479:
2495
2872
  return "Notification - Auth ML signer info: Certificate signature invalid"
2496
- case this.RFID_ERROR_ALREADY_DONE:
2497
- return "RFID: Requested operation is already done"
2498
- case this.RFID_ERROR_FAILED:
2873
+ case -1:
2499
2874
  return "RFID: Failed"
2500
- case this.RFID_Error_GraphManager:
2501
- return "RFID: Creation or connection to Graph Manager COM server failed"
2502
- case this.RFID_ERROR_NO_CHIP_DETECTED:
2503
- return "RFID: No chip is detected"
2504
- case this.RFID_ERROR_NOT_AVAILABLE:
2505
- return "RFID: Unavailable"
2506
- case this.RFID_ERROR_INVALID_PARAMETER:
2507
- return "RFID: Invalid parameter in ExecuteCommand() call found"
2508
- case this.RFID_ERROR_NOT_INITIALIZED:
2509
- return "RFID: Device is uninitialized"
2510
- case this.RFID_Error_NotEnoughMemory:
2511
- return "RFID: Out of memory"
2512
- case this.RFID_ERROR_INVALID_DIRECTORY:
2513
- return "RFID: Invalid directory"
2514
- case this.RFID_ERROR_UNKNOWN_COMMAND:
2515
- return "RFID: Unknown command"
2516
- case this.RFID_ERROR_FILE_IO_ERROR:
2517
- return "RFID File: IO Error"
2518
- case this.RFID_ERROR_BUSY:
2519
- return "RFID: RFID is Busy"
2520
- case -2147418100:
2521
- return "RFID: Firmware need to be updated with newer version"
2522
- case -2147352576:
2523
- return "PCSC: Failed"
2524
- case -2147352575:
2525
- return "PCSC: Reader is unavailable"
2526
- case -2147352574:
2527
- return "PCSC: Card cannot be connected"
2528
- case -2147352573:
2529
- return "PCSC: Card is not connected"
2530
- case -2147352572:
2531
- return "PCSC: Operation is cancelled"
2532
- case -2147352571:
2533
- return "PCSC: Card Is Busy"
2534
- case -2147352570:
2535
- return "PCSC: Failed Smart Card"
2536
- case -2147352560:
2537
- return "PCSC: ExtLe Failed"
2538
- case -2046820352:
2539
- return "LAYER6: Secure Messaging was not activated"
2540
- case -2046820351:
2541
- return "LAYER6: ISO7816_A_03 \"Application selection failure\""
2542
- case -2046820096:
2543
- return "LAYER6: ISO7816_B_01 \"Mutual authentication MAC failure\""
2544
- case -2046820095:
2545
- return "LAYER6: ISO7816_B_02 \"Mutual authentication encryption failure\""
2546
- case -2046820094:
2547
- return "LAYER6: ISO7816_B_03 \"Mutual authentication failure\""
2548
- case -2046819840:
2549
- return "LAYER6: SM failure – MAC missing"
2550
- case -2046819839:
2551
- return "LAYER6: SM failure – cryptogram missing"
2552
- case -2046819838:
2553
- return "LAYER6: SM failure – secured status bytes missing"
2554
- case -2046819837:
2555
- return "LAYER6: SM failure – incorrect MAC"
2556
- case -2046819836:
2557
- return "LAYER6: SM failure – incorrect cryptogram"
2558
- case -2046819584:
2559
- return "LAYER6: Not TLV response data"
2560
- case -2046819583:
2561
- return "LAYER6: Wrong data length (APDU_INS_GET_CHALLENGE)"
2562
- case -2046819582:
2563
- return "LAYER6: APDU_INS_INTERNAL_AUTHENTICATE failure"
2564
- case -2046819581:
2565
- return "LAYER6: MSE:Set KAT failure"
2566
- case -2046819580:
2567
- return "LAYER6: MSE:Set DST failure"
2568
- case -2046819579:
2569
- return "LAYER6: PSO CERTIFICATE failure"
2570
- case -2046819578:
2571
- return "LAYER6: MSE:Set AT failure"
2572
- case -2046819577:
2573
- return "LAYER6: GET CHALLENGE failure"
2574
- case -2046819576:
2575
- return "LAYER6: APDU_INS_EXTERNAL_AUTHENTICATE (External Authentication) failure"
2576
- case -2046819575:
2577
- return "LAYER6: General Authenticity Failure"
2578
- case -2147456382:
2579
- return "LAYER6: File selection failure / file not found"
2580
- case -2147458430:
2581
- return "LAYER6: Reading beyond EOF / Unexpected EOF"
2582
- case -2147456256:
2583
- return "LAYER6: Reading beyond EOF / Unexpected EOF"
2584
- case -2147456384:
2585
- return "LAYER6: Incorrect Params"
2586
- case -2147456376:
2587
- return "LAYER6: No Reference Data"
2588
- case -2147458111:
2589
- return "LAYER6: PWD Suspended"
2590
- case -2147458112:
2591
- return "LAYER6: PWD Blocked"
2592
- case -2147458429:
2593
- return "LAYER6: PWD Deactivated"
2594
- case -2147456637:
2595
- return "LAYER6: PWD Blocked 2"
2596
- case -2147456636:
2597
- return "LAYER6: PWD Deactivated 2"
2598
- case -2147456635:
2599
- return "LAYER6: PWD Suspended 2"
2600
- case -2146409536:
2601
- return "LAYER6: PWD Failed"
2602
- case -2097152000:
2603
- return "RFID: Not Performed"
2604
- case -2097151999:
2605
- return "RFID: Session Is Closed"
2606
- case -2097151998:
2607
- return "RFID: Terminal Unsupported Operation"
2608
- case -2097151984:
2609
- return "RFID: Terminal Type Unknown"
2610
- case -2097151983:
2611
- return "RFID: Terminal Type Bad Certificate"
2612
- case -2097151982:
2613
- return "RFID: Terminal Type Not Set"
2614
- case -2097151981:
2615
- return "RFID: Procedure Type Unknown"
2616
- case -2097151980:
2617
- return "RFID: Procedure Type Unsupported"
2618
- case -2097151979:
2619
- return "RFID: Procedure Type Not Set"
2620
- case -2097151978:
2621
- return "RFID: Access Key Unknown Type"
2622
- case -2097151977:
2623
- return "RFID: Access Key Unsupported SM Type"
2624
- case -2097151976:
2625
- return "RFID: Access Key Incorrect SM Type"
2626
- case -2097151975:
2627
- return "RFID: Access Key Restricted"
2628
- case -2097151974:
2629
- return "RFID: Access Key Incorrect Data"
2630
- case -2097151973:
2631
- return "RFID: Access Key Not Set"
2632
- case -2097151972:
2633
- return "RFID: Pwd Management Not Authorized"
2634
- case -2097151968:
2635
- return "RFID: Access Control UnknownType"
2636
- case -2097151967:
2637
- return "RFID: Requires SM"
2638
- case -2097151966:
2639
- return "RFID: Requires PACE"
2640
- case -2097151965:
2641
- return "RFID: Requires CA Keys"
2642
- case -2097151964:
2643
- return "RFID: Requires TA"
2644
- case -2097151963:
2645
- return "RFID: Requires CA"
2646
- case -2097151962:
2647
- return "RFID: Incorrect Option CA"
2648
- case -2097151961:
2649
- return "RFID: CA Failed"
2650
- case -2097151960:
2651
- return "RFID: TA Failed"
2652
- case -2097151959:
2653
- return "RFID: AA Failed"
2654
- case -2097151958:
2655
- return "RFID: RI Failed"
2656
- case -2097151952:
2657
- return "RFID: SO Signature Check Failed"
2658
- case -2097151951:
2659
- return "RFID: Hash Check Failed"
2660
- case -2097151936:
2661
- return "RFID: Invalid Aux Data Date Of Expiry"
2662
- case -2097151935:
2663
- return "RFID: Invalid Aux Data Date Of Birth"
2664
- case -2097151934:
2665
- return "RFID: Invalid Aux Data Community ID"
2666
- case -2097151920:
2667
- return "RFID: eSign Requires App Selection"
2668
- case -2097151919:
2669
- return "RFID: eSign PIN Not Set"
2670
- case -2097151918:
2671
- return "RFID: eSign PIN Not Verified"
2672
- case -2097151904:
2673
- return "RFID: Incorrect data"
2674
- case -2097086464:
2675
- return "RFID File: Not Enough Data"
2676
- case -2097020928:
2677
- return "RFID File: Incorrect Data"
2678
- case -2096955392:
2679
- return "RFID File: Unexpected Data"
2680
- case -2096889856:
2681
- return "RFID File: Contents Unexpected Data"
2682
- case -2096824320:
2683
- return "RFID File: Wrong Tag"
2684
- case -2096758784:
2685
- return "RFID File: Cannot Use Data"
2686
- case -2096693248:
2687
- return "RFID File: Cannot Read Data"
2688
- case this.RFID_ERROR_SESSION_FILE_ACCESS_DENIED:
2689
- return "RFID File: Access Denied"
2875
+ case 1:
2876
+ return "OK"
2877
+ case 2:
2878
+ return "RFID: Requested operation is already done"
2879
+ case 139272:
2880
+ return "Notification - MRZ: Document type unknown"
2881
+ case 139273:
2882
+ return "Notification - MRZ: Issuing state syntax error"
2883
+ case 139274:
2884
+ return "Notification - MRZ: Name is void"
2885
+ case 139277:
2886
+ return "Notification - MRZ: Number incorrect checksum"
2887
+ case 139278:
2888
+ return "Notification - MRZ: Nationality syntax error"
2889
+ case 139279:
2890
+ return "Notification - MRZ: DOB syntax error"
2891
+ case 139280:
2892
+ return "Notification - MRZ: DOB error"
2893
+ case 139281:
2894
+ return "Notification - MRZ: DOB incorrect checksum"
2895
+ case 139282:
2896
+ return "Notification - MRZ: Sex incorrect"
2897
+ case 139283:
2898
+ return "Notification - MRZ: DOE syntax error"
2899
+ case 139284:
2900
+ return "Notification - MRZ: DOE error"
2901
+ case 139285:
2902
+ return "Notification - MRZ: DOE incorrect checksum"
2903
+ case 139286:
2904
+ return "Notification - MRZ: Optional data incorrect checksum"
2905
+ case 139287:
2906
+ return "Notification - MRZ: Incorrect checksum"
2907
+ case 139288:
2908
+ return "Notification - MRZ: Incorrect"
2690
2909
  default:
2691
2910
  return value
2692
2911
  }
@@ -2786,6 +3005,8 @@ const eRPRM_ResultType = {
2786
3005
  RPRM_RESULT_TYPE_DATABASE_CHECK: 28,
2787
3006
  RPRM_RESULT_TYPE_FINGERPRINT_TEMPLATE_ISO: 29,
2788
3007
  RPRM_RESULT_TYPE_INPUT_IMAGE_QUALITY: 30,
3008
+ RPRM_RESULT_TYPE_IMAGES: 37,
3009
+ RPRM_RESULT_TYPE_HOLO_PARAMS: 47,
2789
3010
  RPRM_RESULT_TYPE_DOCUMENT_POSITION: 85,
2790
3011
  RPRM_RESULT_TYPE_CUSTOM: 100,
2791
3012
  RFID_RESULT_TYPE_RFID_RAW_DATA: 101,
@@ -2795,6 +3016,7 @@ const eRPRM_ResultType = {
2795
3016
  RFID_RESULT_TYPE_RFID_ORIGINAL_GRAPHICS: 105,
2796
3017
  RPRM_RESULT_TYPE_BARCODE_POSITION: 62,
2797
3018
  RPRM_RESULT_TYPE_MRZ_POSITION: 61,
3019
+ RPRM_RESULT_TYPE_STATUS: 33,
2798
3020
  }
2799
3021
 
2800
3022
  const eRPRM_SecurityFeatureType = {
@@ -3428,6 +3650,15 @@ const eVisualFieldType = {
3428
3650
  FT_DLCLASSCODE_D3_FROM: 634,
3429
3651
  FT_DLCLASSCODE_D3_TO: 635,
3430
3652
  FT_DLCLASSCODE_D3_NOTES: 636,
3653
+ FT_ALT_DATE_OF_EXPIRY: 637,
3654
+ FT_DLCLASSCODE_CD_FROM: 638,
3655
+ FT_DLCLASSCODE_CD_TO: 639,
3656
+ FT_DLCLASSCODE_CD_NOTES: 640,
3657
+ FT_PAYMENT_PERIOD_TO: 643,
3658
+ FT_PAYMENT_PERIOD_FROM: 642,
3659
+ FT_ISSUER_IDENTIFICATION_NUMBER: 641,
3660
+ FT_VACCINATION_CERTIFICATE_IDENTIFIER: 644,
3661
+ FT_FIRST_NAME: 645,
3431
3662
 
3432
3663
  getTranslation: function (value) {
3433
3664
  switch (value) {
@@ -3580,9 +3811,9 @@ const eVisualFieldType = {
3580
3811
  case 73:
3581
3812
  return "Issuing authority code"
3582
3813
  case 74:
3583
- return "Area of birthplace"
3814
+ return "Country/region of birth"
3584
3815
  case 75:
3585
- return "State code of birthplace"
3816
+ return "Birth state code"
3586
3817
  case 76:
3587
3818
  return "Street"
3588
3819
  case 77:
@@ -3856,15 +4087,15 @@ const eVisualFieldType = {
3856
4087
  case 259:
3857
4088
  return "Residence permit 2"
3858
4089
  case 260:
3859
- return "Place of Birth: Street"
4090
+ return "Place of birth: Street"
3860
4091
  case 261:
3861
- return "Place of Birth: City"
4092
+ return "Place of birth: City"
3862
4093
  case 262:
3863
- return "Place of Birth: State"
4094
+ return "Place of birth: State"
3864
4095
  case 263:
3865
- return "Place of Birth: Country"
4096
+ return "Place of birth: Country"
3866
4097
  case 264:
3867
- return "Place of Birth: Postal code"
4098
+ return "Place of birth: Postal code"
3868
4099
  case 265:
3869
4100
  return "CDL Class"
3870
4101
  case 266:
@@ -4603,6 +4834,24 @@ const eVisualFieldType = {
4603
4834
  return "DL category D3 valid to"
4604
4835
  case 636:
4605
4836
  return "DL category D3 codes"
4837
+ case 637:
4838
+ return "Alternative date of expiry"
4839
+ case 638:
4840
+ return "DL category CD valid from"
4841
+ case 639:
4842
+ return "DL category CD valid to"
4843
+ case 640:
4844
+ return "DL category CD codes"
4845
+ case 641:
4846
+ return "Issuer identification number"
4847
+ case 642:
4848
+ return "Payment period from"
4849
+ case 643:
4850
+ return "Payment period to"
4851
+ case 644:
4852
+ return "Unique vaccination certificate identifier"
4853
+ case 645:
4854
+ return "First name"
4606
4855
  default:
4607
4856
  return value
4608
4857
  }
@@ -4621,6 +4870,12 @@ const FrameShapeType = {
4621
4870
  CORNER: 1,
4622
4871
  }
4623
4872
 
4873
+ const IRfidNotificationCompletion = {
4874
+ RFID_EVENT_CHIP_DETECTED: 1,
4875
+ RFID_EVENT_READING_ERROR: 2,
4876
+ RFID_EXTRA_ERROR_CODE: "rfid.error.code",
4877
+ }
4878
+
4624
4879
  const LCID = {
4625
4880
  LATIN: 0,
4626
4881
  AFRIKAANS: 1078,
@@ -5094,6 +5349,12 @@ const ProcessingFinishedStatus = {
5094
5349
  TIMEOUT: 2,
5095
5350
  }
5096
5351
 
5352
+ const RFIDDelegate = {
5353
+ NULL: 0,
5354
+ NO_PA: 1,
5355
+ FULL: 2,
5356
+ }
5357
+
5097
5358
  const RGLMeasureSystem = {
5098
5359
  METRIC: 0,
5099
5360
  IMPERIAL: 1,
@@ -5186,6 +5447,7 @@ const Enum = {
5186
5447
  DocReaderAction,
5187
5448
  DocReaderFrame,
5188
5449
  DocReaderOrientation,
5450
+ DocumentReaderExceptionEnum,
5189
5451
  eCheckDiagnose,
5190
5452
  eCheckResult,
5191
5453
  eGraphicFieldType,
@@ -5210,9 +5472,11 @@ const Enum = {
5210
5472
  eVisualFieldType,
5211
5473
  FontStyle,
5212
5474
  FrameShapeType,
5475
+ IRfidNotificationCompletion,
5213
5476
  LCID,
5214
5477
  PKDResourceType,
5215
5478
  ProcessingFinishedStatus,
5479
+ RFIDDelegate,
5216
5480
  RGLMeasureSystem,
5217
5481
  ScenarioIdentifier,
5218
5482
  LineCap,
@@ -5224,6 +5488,7 @@ const Enum = {
5224
5488
 
5225
5489
  const DocumentReader = {}
5226
5490
 
5491
+ DocumentReader.initializeReaderAutomatically = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["initializeReaderAutomatically"])
5227
5492
  DocumentReader.getAPIVersion = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getAPIVersion"])
5228
5493
  DocumentReader.getAvailableScenarios = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getAvailableScenarios"])
5229
5494
  DocumentReader.isRFIDAvailableForUse = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["isRFIDAvailableForUse"])
@@ -5259,6 +5524,7 @@ DocumentReader.resetConfiguration = (successCallback, errorCallback) => cordova.
5259
5524
  DocumentReader.clearPKDCertificates = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["clearPKDCertificates"])
5260
5525
  DocumentReader.readRFID = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["readRFID"])
5261
5526
  DocumentReader.getRfidSessionStatus = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getRfidSessionStatus"])
5527
+ DocumentReader.setRfidDelegate = (delegate, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["setRfidDelegate", delegate])
5262
5528
  DocumentReader.setEnableCoreLogs = (logs, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["setEnableCoreLogs", logs])
5263
5529
  DocumentReader.addPKDCertificates = (certificates, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["addPKDCertificates", certificates])
5264
5530
  DocumentReader.setCameraSessionIsPaused = (paused, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["setCameraSessionIsPaused", paused])
@@ -5272,7 +5538,12 @@ DocumentReader.initializeReader = (license, successCallback, errorCallback) => c
5272
5538
  DocumentReader.prepareDatabase = (databaseType, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["prepareDatabase", databaseType])
5273
5539
  DocumentReader.recognizeImage = (image, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["recognizeImage", image])
5274
5540
  DocumentReader.setRfidSessionStatus = (status, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["setRfidSessionStatus", status])
5541
+ DocumentReader.providePACertificates = (certificates, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["providePACertificates", certificates])
5542
+ DocumentReader.provideTACertificates = (certificates, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["provideTACertificates", certificates])
5543
+ DocumentReader.provideTASignature = (certificates, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["provideTASignature", certificates])
5544
+ DocumentReader.parseCoreResults = (json, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["parseCoreResults", json])
5275
5545
  DocumentReader.initializeReaderWithDatabasePath = (license, path, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["initializeReaderWithDatabasePath", license, path])
5546
+ DocumentReader.initializeReaderWithDatabase = (license, db, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["initializeReaderWithDatabase", license, db])
5276
5547
  DocumentReader.recognizeImageFrame = (image, params, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["recognizeImageFrame", image, params])
5277
5548
  DocumentReader.recognizeImageWithOpts = (image, options, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["recognizeImageWithOpts", image, options])
5278
5549
  DocumentReader.recognizeVideoFrame = (byteString, params, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["recognizeVideoFrame", byteString, params])