@regulaforensics/react-native-document-reader-api 5.7.0 → 6.1.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/README.md +2 -2
- package/RNDocumentReaderApi.podspec +2 -2
- package/android/build.gradle +4 -6
- package/android/src/main/java/com/regula/documentreader/Helpers.java +8 -3
- package/android/src/main/java/com/regula/documentreader/JSONConstructor.java +110 -10
- package/android/src/main/java/com/regula/documentreader/RNRegulaDocumentReaderModule.java +58 -26
- package/android/src/main/java/com/regula/documentreader/RegulaConfig.java +72 -9
- package/example/.editorconfig +3 -0
- package/example/.flowconfig +4 -13
- package/example/.gitattributes +3 -1
- package/example/.prettierrc.js +1 -0
- package/example/App.js +30 -18
- package/example/android/app/BUCK +55 -0
- package/example/android/app/build.gradle +35 -17
- package/example/android/app/debug.keystore +0 -0
- package/example/android/app/src/debug/AndroidManifest.xml +6 -1
- package/example/android/app/src/main/AndroidManifest.xml +21 -22
- package/example/android/app/src/main/assets/index.android.bundle +636 -0
- package/example/android/app/src/main/java/com/regula/dr/fullrfid/MainApplication.java +1 -2
- package/example/android/app/src/main/res/drawable-mdpi/images_id.png +0 -0
- package/example/android/app/src/main/res/drawable-mdpi/images_portrait.png +0 -0
- package/example/android/app/src/main/res/drawable-mdpi/node_modules_reactnativecheckbox_img_ic_check_box.png +0 -0
- package/example/android/app/src/main/res/drawable-mdpi/node_modules_reactnativecheckbox_img_ic_check_box_outline_blank.png +0 -0
- package/example/android/app/src/main/res/drawable-mdpi/node_modules_reactnativecheckbox_img_ic_indeterminate_check_box.png +0 -0
- package/example/android/app/src/main/res/drawable-xhdpi/node_modules_reactnativecheckbox_img_ic_check_box.png +0 -0
- package/example/android/app/src/main/res/drawable-xhdpi/node_modules_reactnativecheckbox_img_ic_check_box_outline_blank.png +0 -0
- package/example/android/app/src/main/res/drawable-xxhdpi/node_modules_reactnativecheckbox_img_ic_check_box.png +0 -0
- package/example/android/app/src/main/res/drawable-xxhdpi/node_modules_reactnativecheckbox_img_ic_check_box_outline_blank.png +0 -0
- package/example/android/build.gradle +12 -6
- package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/example/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/example/android/gradle.properties +2 -1
- package/example/android/gradlew +14 -17
- package/example/android/gradlew.bat +7 -18
- package/example/android/settings.gradle +0 -2
- package/example/ios/DocumentReader/AppDelegate.m +7 -3
- package/example/ios/DocumentReader/Info.plist +8 -10
- package/example/ios/DocumentReader/LaunchScreen.storyboard +47 -0
- package/example/ios/DocumentReader.xcodeproj/project.pbxproj +257 -96
- package/example/ios/DocumentReader.xcodeproj/xcshareddata/xcschemes/DocumentReader.xcscheme +1 -1
- package/example/ios/DocumentReaderTests/DocumentReaderTests.m +65 -0
- package/example/ios/DocumentReaderTests/Info.plist +24 -0
- package/example/ios/Podfile +13 -4
- package/example/metro.config.js +1 -1
- package/example/package.json +17 -18
- package/index.d.ts +724 -514
- package/index.js +672 -510
- package/ios/RGLWJSONConstructor.h +6 -0
- package/ios/RGLWJSONConstructor.m +92 -0
- package/ios/RNRegulaDocumentReader.m +28 -8
- package/ios/RegulaConfig.h +2 -0
- package/ios/RegulaConfig.m +119 -31
- package/package.json +1 -1
- package/example/ios/DocumentReader.xcodeproj/xcshareddata/xcschemes/DocumentReader-tvOS.xcscheme +0 -88
package/index.js
CHANGED
|
@@ -8,8 +8,6 @@ export class DocumentReaderScenario {
|
|
|
8
8
|
if (jsonObject == null) return null
|
|
9
9
|
const result = new DocumentReaderScenario()
|
|
10
10
|
|
|
11
|
-
result.uvTorch = jsonObject["uvTorch"]
|
|
12
|
-
result.seriesProcessMode = jsonObject["seriesProcessMode"]
|
|
13
11
|
result.name = jsonObject["name"]
|
|
14
12
|
result.caption = jsonObject["caption"]
|
|
15
13
|
result.description = jsonObject["description"]
|
|
@@ -18,10 +16,10 @@ export class DocumentReaderScenario {
|
|
|
18
16
|
}
|
|
19
17
|
}
|
|
20
18
|
|
|
21
|
-
export class
|
|
19
|
+
export class CoreDetailedScenario {
|
|
22
20
|
static fromJson(jsonObject) {
|
|
23
21
|
if (jsonObject == null) return null
|
|
24
|
-
const result = new
|
|
22
|
+
const result = new CoreDetailedScenario()
|
|
25
23
|
|
|
26
24
|
result.uvTorch = jsonObject["uvTorch"]
|
|
27
25
|
result.frameOrientation = jsonObject["frameOrientation"]
|
|
@@ -720,6 +718,18 @@ export class DocumentReaderCompletion {
|
|
|
720
718
|
}
|
|
721
719
|
}
|
|
722
720
|
|
|
721
|
+
export class RfidNotificationCompletion {
|
|
722
|
+
static fromJson(jsonObject) {
|
|
723
|
+
if (jsonObject == null) return null
|
|
724
|
+
const result = new RfidNotificationCompletion()
|
|
725
|
+
|
|
726
|
+
result.notification = jsonObject["notification"]
|
|
727
|
+
result.value = jsonObject["value"]
|
|
728
|
+
|
|
729
|
+
return result
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
|
|
723
733
|
export class DocumentReaderException {
|
|
724
734
|
static fromJson(jsonObject) {
|
|
725
735
|
if (jsonObject == null) return null
|
|
@@ -846,6 +856,98 @@ export class TAChallenge {
|
|
|
846
856
|
}
|
|
847
857
|
}
|
|
848
858
|
|
|
859
|
+
export class DocumentReaderResultsStatus {
|
|
860
|
+
static fromJson(jsonObject) {
|
|
861
|
+
if (jsonObject == null) return null
|
|
862
|
+
const result = new DocumentReaderResultsStatus()
|
|
863
|
+
|
|
864
|
+
result.overallStatus = jsonObject["overallStatus"]
|
|
865
|
+
result.optical = jsonObject["optical"]
|
|
866
|
+
result.detailsOptical = DetailsOptical.fromJson(jsonObject["detailsOptical"])
|
|
867
|
+
result.rfid = jsonObject["rfid"]
|
|
868
|
+
result.detailsRFID = DetailsRFID.fromJson(jsonObject["detailsRFID"])
|
|
869
|
+
result.portrait = jsonObject["portrait"]
|
|
870
|
+
result.stopList = jsonObject["stopList"]
|
|
871
|
+
|
|
872
|
+
return result
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
export class DetailsOptical {
|
|
877
|
+
static fromJson(jsonObject) {
|
|
878
|
+
if (jsonObject == null) return null
|
|
879
|
+
const result = new DetailsOptical()
|
|
880
|
+
|
|
881
|
+
result.overallStatus = jsonObject["overallStatus"]
|
|
882
|
+
result.mrz = jsonObject["mrz"]
|
|
883
|
+
result.text = jsonObject["text"]
|
|
884
|
+
result.docType = jsonObject["docType"]
|
|
885
|
+
result.security = jsonObject["security"]
|
|
886
|
+
result.imageQA = jsonObject["imageQA"]
|
|
887
|
+
result.expiry = jsonObject["expiry"]
|
|
888
|
+
result.vds = jsonObject["vds"]
|
|
889
|
+
result.pagesCount = jsonObject["pagesCount"]
|
|
890
|
+
|
|
891
|
+
return result
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
export class DetailsRFID {
|
|
896
|
+
static fromJson(jsonObject) {
|
|
897
|
+
if (jsonObject == null) return null
|
|
898
|
+
const result = new DetailsRFID()
|
|
899
|
+
|
|
900
|
+
result.pa = jsonObject["pa"]
|
|
901
|
+
result.ca = jsonObject["ca"]
|
|
902
|
+
result.aa = jsonObject["aa"]
|
|
903
|
+
result.ta = jsonObject["ta"]
|
|
904
|
+
result.bac = jsonObject["bac"]
|
|
905
|
+
result.pace = jsonObject["pace"]
|
|
906
|
+
result.overallStatus = jsonObject["overallStatus"]
|
|
907
|
+
|
|
908
|
+
return result
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
export class VDSNCData {
|
|
913
|
+
static fromJson(jsonObject) {
|
|
914
|
+
if (jsonObject == null) return null
|
|
915
|
+
const result = new VDSNCData()
|
|
916
|
+
|
|
917
|
+
result.type = jsonObject["type"]
|
|
918
|
+
result.version = jsonObject["version"]
|
|
919
|
+
result.issuingCountry = jsonObject["issuingCountry"]
|
|
920
|
+
result.message = jsonObject["message"]
|
|
921
|
+
result.signatureAlgorithm = jsonObject["signatureAlgorithm"]
|
|
922
|
+
result.signature = BytesData.fromJson(jsonObject["signature"])
|
|
923
|
+
result.certificate = BytesData.fromJson(jsonObject["certificate"])
|
|
924
|
+
result.certificateChain = []
|
|
925
|
+
if (jsonObject["certificateChain"] != null)
|
|
926
|
+
for (const i in jsonObject["certificateChain"])
|
|
927
|
+
result.certificateChain.push(CertificateChain.fromJson(jsonObject["certificateChain"][i]))
|
|
928
|
+
result.notifications = []
|
|
929
|
+
if (jsonObject["notifications"] != null)
|
|
930
|
+
for (const i in jsonObject["notifications"])
|
|
931
|
+
result.notifications.push(jsonObject["notifications"][i])
|
|
932
|
+
|
|
933
|
+
return result
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
export class BytesData {
|
|
938
|
+
static fromJson(jsonObject) {
|
|
939
|
+
if (jsonObject == null) return null
|
|
940
|
+
const result = new BytesData()
|
|
941
|
+
|
|
942
|
+
result.data = jsonObject["data"]
|
|
943
|
+
result.length = jsonObject["length"]
|
|
944
|
+
result.status = jsonObject["status"]
|
|
945
|
+
result.type = jsonObject["type"]
|
|
946
|
+
|
|
947
|
+
return result
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
|
|
849
951
|
export class DocumentReaderResults {
|
|
850
952
|
getTextFieldValueByType({ fieldType, lcid = 0, source = -1, original = false }) {
|
|
851
953
|
if (this.textResult == null) return null
|
|
@@ -995,6 +1097,8 @@ export class DocumentReaderResults {
|
|
|
995
1097
|
if (jsonObject["documentType"] != null)
|
|
996
1098
|
for (const i in jsonObject["documentType"])
|
|
997
1099
|
result.documentType.push(DocumentReaderDocumentType.fromJson(jsonObject["documentType"][i]))
|
|
1100
|
+
result.status = DocumentReaderResultsStatus.fromJson(jsonObject["status"])
|
|
1101
|
+
result.vdsncData = VDSNCData.fromJson(jsonObject["vdsncData"])
|
|
998
1102
|
|
|
999
1103
|
return result
|
|
1000
1104
|
}
|
|
@@ -1600,6 +1704,10 @@ export const eRFID_CertificateType = {
|
|
|
1600
1704
|
CT_MLS: 4,
|
|
1601
1705
|
CT_DEV_LS: 5,
|
|
1602
1706
|
CT_DEF_LS: 6,
|
|
1707
|
+
CT_BLS: 7,
|
|
1708
|
+
CT_LDS2: 8,
|
|
1709
|
+
CT_BCS: 9,
|
|
1710
|
+
CT_BCSNC: 10,
|
|
1603
1711
|
}
|
|
1604
1712
|
|
|
1605
1713
|
export const eRFID_DataFile_Type = {
|
|
@@ -1683,165 +1791,173 @@ export const eRFID_DataFile_Type = {
|
|
|
1683
1791
|
DFT_SESSION: 701,
|
|
1684
1792
|
DFT_LOGDATA: 702,
|
|
1685
1793
|
DFT_CHIP_PROPERTIES: 703,
|
|
1794
|
+
DFT_SAM_DATA: 800,
|
|
1795
|
+
DFT_SAM_DATA_MAX: 832,
|
|
1796
|
+
DFT_VDS: 900,
|
|
1797
|
+
DFT_VDSNC: 901,
|
|
1686
1798
|
DFT_USERDEFINED: 1000,
|
|
1687
1799
|
|
|
1688
1800
|
getTranslation: function (value) {
|
|
1689
1801
|
switch (value) {
|
|
1690
|
-
case
|
|
1691
|
-
return "
|
|
1692
|
-
case
|
|
1693
|
-
return "EF.COM"
|
|
1694
|
-
case this.DFT_PASSPORT_DG1:
|
|
1802
|
+
case 0:
|
|
1803
|
+
return "DFT_UNSPECIFIED"
|
|
1804
|
+
case 1:
|
|
1695
1805
|
return "Machine Readable Zone (DG1)"
|
|
1696
|
-
case
|
|
1697
|
-
return "Document type" + " (DG1)"
|
|
1698
|
-
case this.DFT_DL_DG1:
|
|
1699
|
-
return "Text data elements (DG1)"
|
|
1700
|
-
case this.DFT_PASSPORT_DG2:
|
|
1806
|
+
case 2:
|
|
1701
1807
|
return "Biometry - Facial data (DG2)"
|
|
1702
|
-
case
|
|
1703
|
-
return "Issuing state" + " (DG2)"
|
|
1704
|
-
case this.DFT_DL_DG2:
|
|
1705
|
-
return "License holder information (DG2)"
|
|
1706
|
-
case this.DFT_PASSPORT_DG3:
|
|
1808
|
+
case 3:
|
|
1707
1809
|
return "Biometry - Fingerprint(s) (DG3)"
|
|
1708
|
-
case
|
|
1709
|
-
return "Date of expiry" + " (DG3)"
|
|
1710
|
-
case this.DFT_DL_DG3:
|
|
1711
|
-
return "Issuing authority details (DG3)"
|
|
1712
|
-
case this.DFT_PASSPORT_DG4:
|
|
1810
|
+
case 4:
|
|
1713
1811
|
return "Biometry - Iris Data (DG4)"
|
|
1714
|
-
case
|
|
1715
|
-
return "Given name" + " (DG4)"
|
|
1716
|
-
case this.DFT_DL_DG4:
|
|
1717
|
-
return "Portrait image (DG4)"
|
|
1718
|
-
case this.DFT_PASSPORT_DG5:
|
|
1812
|
+
case 5:
|
|
1719
1813
|
return "Portrait(s) (DG5)"
|
|
1720
|
-
case
|
|
1721
|
-
return "Surname/given name at birth" + " (DG5)"
|
|
1722
|
-
case this.DFT_DL_DG5:
|
|
1723
|
-
return "Signature / usual mark image (DG5)"
|
|
1724
|
-
case this.DFT_PASSPORT_DG6:
|
|
1814
|
+
case 6:
|
|
1725
1815
|
return "not defined (DG6)"
|
|
1726
|
-
case
|
|
1727
|
-
return "Pseudonym" + " (DG6)"
|
|
1728
|
-
case this.DFT_DL_DG6:
|
|
1729
|
-
return "Biometry - Facial data (DG6)"
|
|
1730
|
-
case this.DFT_PASSPORT_DG7:
|
|
1816
|
+
case 7:
|
|
1731
1817
|
return "Signature / usual mark image (DG7)"
|
|
1732
|
-
case
|
|
1733
|
-
return "Academic title" + " (DG7)"
|
|
1734
|
-
case this.DFT_DL_DG7:
|
|
1735
|
-
return "Biometry - Fingerprint(s) (DG7)"
|
|
1736
|
-
case this.DFT_PASSPORT_DG8:
|
|
1818
|
+
case 8:
|
|
1737
1819
|
return "not defined (DG8)"
|
|
1738
|
-
case
|
|
1739
|
-
return "Date of birth" + " (DG8)"
|
|
1740
|
-
case this.DFT_DL_DG8:
|
|
1741
|
-
return "Biometry - Iris Data (DG8)"
|
|
1742
|
-
case this.DFT_PASSPORT_DG9:
|
|
1820
|
+
case 9:
|
|
1743
1821
|
return "not defined (DG9)"
|
|
1744
|
-
case
|
|
1745
|
-
return "Place of birth" + " (DG9)"
|
|
1746
|
-
case this.DFT_DL_DG9:
|
|
1747
|
-
return "Biometry - Other (DG9)"
|
|
1748
|
-
case this.DFT_PASSPORT_DG10:
|
|
1749
|
-
return "not defined (DG10)"
|
|
1750
|
-
case this.DFT_ID_DG10:
|
|
1751
|
-
return "Nationality" + " (DG10)"
|
|
1752
|
-
case this.DFT_DL_DG10:
|
|
1822
|
+
case 10:
|
|
1753
1823
|
return "not defined (DG10)"
|
|
1754
|
-
case
|
|
1824
|
+
case 11:
|
|
1755
1825
|
return "Additional personal detail(s) (DG11)"
|
|
1756
|
-
case
|
|
1757
|
-
return "Sex" + " (DG11)"
|
|
1758
|
-
case this.DFT_DL_DG11:
|
|
1759
|
-
return "Optional domestic data (DG11)"
|
|
1760
|
-
case this.DFT_PASSPORT_DG12:
|
|
1826
|
+
case 12:
|
|
1761
1827
|
return "Additional document details (DG12)"
|
|
1762
|
-
case
|
|
1763
|
-
return "Optional details" + " (DG12)"
|
|
1764
|
-
case this.DFT_DL_DG12:
|
|
1765
|
-
return "Non-match alert (DG12)"
|
|
1766
|
-
case this.DFT_PASSPORT_DG13:
|
|
1828
|
+
case 13:
|
|
1767
1829
|
return "Optional detail(s) (DG13)"
|
|
1768
|
-
case
|
|
1769
|
-
return "Undefined" + " (DG13)"
|
|
1770
|
-
case this.DFT_DL_DG13:
|
|
1771
|
-
return "Active Authentication info (DG13)"
|
|
1772
|
-
case this.DFT_PASSPORT_DG14:
|
|
1773
|
-
return "EAC info (DG14)"
|
|
1774
|
-
case this.DFT_ID_DG14:
|
|
1775
|
-
return "Undefined" + " (DG14)"
|
|
1776
|
-
case this.DFT_DL_DG14:
|
|
1830
|
+
case 14:
|
|
1777
1831
|
return "EAC info (DG14)"
|
|
1778
|
-
case
|
|
1832
|
+
case 15:
|
|
1779
1833
|
return "Active Authentication info (DG15)"
|
|
1780
|
-
case
|
|
1781
|
-
return "Undefined" + " (DG15)"
|
|
1782
|
-
case this.DFT_PASSPORT_DG16:
|
|
1834
|
+
case 16:
|
|
1783
1835
|
return "Person(s) to notify (DG16)"
|
|
1784
|
-
case
|
|
1785
|
-
return "Undefined" + " (DG16)"
|
|
1786
|
-
case this.DFT_PASSPORT_DG17:
|
|
1836
|
+
case 17:
|
|
1787
1837
|
return "DG17"
|
|
1788
|
-
case
|
|
1789
|
-
return "Place of registration" + " (DG17)"
|
|
1790
|
-
case this.DFT_PASSPORT_DG18:
|
|
1838
|
+
case 18:
|
|
1791
1839
|
return "DG18"
|
|
1792
|
-
case
|
|
1793
|
-
return "Place of registration" + " (DG18)"
|
|
1794
|
-
case this.DFT_PASSPORT_DG19:
|
|
1840
|
+
case 19:
|
|
1795
1841
|
return "DG19"
|
|
1796
|
-
case
|
|
1797
|
-
return "Residence permit 1" + " (DG19)"
|
|
1798
|
-
case this.DFT_PASSPORT_DG20:
|
|
1842
|
+
case 20:
|
|
1799
1843
|
return "DG20"
|
|
1800
|
-
case
|
|
1801
|
-
return "
|
|
1802
|
-
case
|
|
1803
|
-
return "Optional details" + " (DG21)"
|
|
1804
|
-
case this.DFT_DL_SOD:
|
|
1844
|
+
case 21:
|
|
1845
|
+
return "EF.SOD"
|
|
1846
|
+
case 165:
|
|
1805
1847
|
return "EF.SOD"
|
|
1806
|
-
case
|
|
1848
|
+
case 22:
|
|
1807
1849
|
return "EF.CVCA"
|
|
1808
|
-
case
|
|
1809
|
-
return "
|
|
1810
|
-
case
|
|
1850
|
+
case 23:
|
|
1851
|
+
return "EF.COM"
|
|
1852
|
+
case 150:
|
|
1853
|
+
return "EF.COM"
|
|
1854
|
+
case 101:
|
|
1855
|
+
return "Document type" + " (DG1)"
|
|
1856
|
+
case 102:
|
|
1857
|
+
return "Issuing state" + " (DG2)"
|
|
1858
|
+
case 103:
|
|
1859
|
+
return "Date of expiry" + " (DG3)"
|
|
1860
|
+
case 104:
|
|
1861
|
+
return "Given name" + " (DG4)"
|
|
1862
|
+
case 105:
|
|
1863
|
+
return "Surname/given name at birth" + " (DG5)"
|
|
1864
|
+
case 106:
|
|
1865
|
+
return "Pseudonym" + " (DG6)"
|
|
1866
|
+
case 107:
|
|
1867
|
+
return "Academic title" + " (DG7)"
|
|
1868
|
+
case 108:
|
|
1869
|
+
return "Date of birth" + " (DG8)"
|
|
1870
|
+
case 109:
|
|
1871
|
+
return "Place of birth" + " (DG9)"
|
|
1872
|
+
case 110:
|
|
1873
|
+
return "Nationality" + " (DG10)"
|
|
1874
|
+
case 111:
|
|
1875
|
+
return "Sex" + " (DG11)"
|
|
1876
|
+
case 112:
|
|
1877
|
+
return "Optional details" + " (DG12)"
|
|
1878
|
+
case 113:
|
|
1879
|
+
return "Undefined" + " (DG13)"
|
|
1880
|
+
case 114:
|
|
1881
|
+
return "Undefined" + " (DG14)"
|
|
1882
|
+
case 115:
|
|
1883
|
+
return "Undefined" + " (DG15)"
|
|
1884
|
+
case 116:
|
|
1885
|
+
return "Undefined" + " (DG16)"
|
|
1886
|
+
case 117:
|
|
1887
|
+
return "Place of registration" + " (DG17)"
|
|
1888
|
+
case 118:
|
|
1889
|
+
return "Place of registration" + " (DG18)"
|
|
1890
|
+
case 119:
|
|
1891
|
+
return "Residence permit 1" + " (DG19)"
|
|
1892
|
+
case 120:
|
|
1893
|
+
return "Residence permit 2" + " (DG20)"
|
|
1894
|
+
case 121:
|
|
1895
|
+
return "Optional details" + " (DG21)"
|
|
1896
|
+
case 151:
|
|
1897
|
+
return "Text data elements (DG1)"
|
|
1898
|
+
case 152:
|
|
1899
|
+
return "License holder information (DG2)"
|
|
1900
|
+
case 153:
|
|
1901
|
+
return "Issuing authority details (DG3)"
|
|
1902
|
+
case 154:
|
|
1903
|
+
return "Portrait image (DG4)"
|
|
1904
|
+
case 155:
|
|
1905
|
+
return "Signature / usual mark image (DG5)"
|
|
1906
|
+
case 156:
|
|
1907
|
+
return "Biometry - Facial data (DG6)"
|
|
1908
|
+
case 157:
|
|
1909
|
+
return "Biometry - Fingerprint(s) (DG7)"
|
|
1910
|
+
case 158:
|
|
1911
|
+
return "Biometry - Iris Data (DG8)"
|
|
1912
|
+
case 159:
|
|
1913
|
+
return "Biometry - Other (DG9)"
|
|
1914
|
+
case 160:
|
|
1915
|
+
return "not defined (DG10)"
|
|
1916
|
+
case 161:
|
|
1917
|
+
return "Optional domestic data (DG11)"
|
|
1918
|
+
case 162:
|
|
1919
|
+
return "Non-match alert (DG12)"
|
|
1920
|
+
case 163:
|
|
1921
|
+
return "Active Authentication info (DG13)"
|
|
1922
|
+
case 164:
|
|
1923
|
+
return "EAC info (DG14)"
|
|
1924
|
+
case 166:
|
|
1925
|
+
return "DFT_DL_CE"
|
|
1926
|
+
case 167:
|
|
1927
|
+
return "DFT_DL_CVCA"
|
|
1928
|
+
case 200:
|
|
1811
1929
|
return "EF.CardAccess"
|
|
1812
|
-
case
|
|
1930
|
+
case 201:
|
|
1813
1931
|
return "EF.CardSecurity"
|
|
1814
|
-
case
|
|
1932
|
+
case 202:
|
|
1815
1933
|
return "EF.ChipSecurity"
|
|
1816
|
-
case
|
|
1817
|
-
return "
|
|
1818
|
-
case
|
|
1819
|
-
return "
|
|
1820
|
-
case
|
|
1934
|
+
case 300:
|
|
1935
|
+
return "MIFARE data"
|
|
1936
|
+
case 301:
|
|
1937
|
+
return "MIFARE validity"
|
|
1938
|
+
case 400:
|
|
1821
1939
|
return "DFT_ATR"
|
|
1822
|
-
case
|
|
1823
|
-
return "DFT_CHIP_PROPERTIES"
|
|
1824
|
-
case this.DFT_DEFECTLIST:
|
|
1825
|
-
return "DFT_DEFECTLIST"
|
|
1826
|
-
case this.DFT_DEVIATIONLIST:
|
|
1827
|
-
return "DFT_DEVIATIONLIST"
|
|
1828
|
-
case this.DFT_DL_CE:
|
|
1829
|
-
return "DFT_DL_CE"
|
|
1830
|
-
case this.DFT_DL_CVCA:
|
|
1831
|
-
return "DFT_DL_CVCA"
|
|
1832
|
-
case this.DFT_ESIGN_PK:
|
|
1940
|
+
case 500:
|
|
1833
1941
|
return "DFT_ESIGN_PK"
|
|
1834
|
-
case
|
|
1942
|
+
case 501:
|
|
1835
1943
|
return "DFT_ESIGN_SIGNEDDATA"
|
|
1836
|
-
case
|
|
1837
|
-
return "
|
|
1838
|
-
case
|
|
1944
|
+
case 600:
|
|
1945
|
+
return "Certificate"
|
|
1946
|
+
case 601:
|
|
1839
1947
|
return "DFT_MASTERLIST"
|
|
1840
|
-
case
|
|
1948
|
+
case 602:
|
|
1949
|
+
return "DFT_DEFECTLIST"
|
|
1950
|
+
case 603:
|
|
1951
|
+
return "DFT_DEVIATIONLIST"
|
|
1952
|
+
case 700:
|
|
1953
|
+
return "App directory"
|
|
1954
|
+
case 701:
|
|
1841
1955
|
return "DFT_SESSION"
|
|
1842
|
-
case
|
|
1843
|
-
return "
|
|
1844
|
-
case
|
|
1956
|
+
case 702:
|
|
1957
|
+
return "DFT_LOGDATA"
|
|
1958
|
+
case 703:
|
|
1959
|
+
return "DFT_CHIP_PROPERTIES"
|
|
1960
|
+
case 1000:
|
|
1845
1961
|
return "DFT_USERDEFINED"
|
|
1846
1962
|
default:
|
|
1847
1963
|
return value
|
|
@@ -1906,6 +2022,7 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
1906
2022
|
RFID_ERROR_INVALID_PARAMETER: -2147418108,
|
|
1907
2023
|
RFID_ERROR_NOT_INITIALIZED: -2147418107,
|
|
1908
2024
|
RFID_Error_NotEnoughMemory: -2147418106,
|
|
2025
|
+
RFID_ERROR_NOT_ENOUGH_DATA: -2147418105,
|
|
1909
2026
|
RFID_ERROR_INVALID_DIRECTORY: -2147418104,
|
|
1910
2027
|
RFID_ERROR_UNKNOWN_COMMAND: -2147418103,
|
|
1911
2028
|
RFID_ERROR_FILE_IO_ERROR: -2147418102,
|
|
@@ -1984,11 +2101,25 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
1984
2101
|
RFID_LAYER6_EXT_AUTH_FAILURE: -2046819576,
|
|
1985
2102
|
RFID_LAYER6_GENERAL_AUTH_FAILURE: -2046819575,
|
|
1986
2103
|
RFID_ERROR_FAILED: -1,
|
|
2104
|
+
RFID_ERROR_CODES_LAYER_34_NO_ERROR: -2080374784,
|
|
2105
|
+
RFID_ERROR_CODES_LAYER_34_TIMEOUT: -2080309248,
|
|
2106
|
+
RFID_ERROR_CODES_LAYER_34_COLLISION: -2080243712,
|
|
2107
|
+
RFID_ERROR_CODES_LAYER_34_CRC: -2080178176,
|
|
2108
|
+
RFID_ERROR_CODES_LAYER_34_DATA_INTEGRITY: -2080112640,
|
|
2109
|
+
RFID_ERROR_CODES_LAYER_34_DATA_LENGTH: -2080047104,
|
|
2110
|
+
RFID_ERROR_CODES_LAYER_34_RFU: -2079981568,
|
|
2111
|
+
RFID_ERROR_CODES_LAYER_34_COLLISION_TOO_MANY: -2079916032,
|
|
2112
|
+
RFID_ERROR_CODES_LAYER_34_PROTOCOL_B: -2079850496,
|
|
2113
|
+
RFID_ERROR_CODES_LAYER_34_DATA_CONTENTS: -2079784960,
|
|
2114
|
+
RFID_ERROR_CODES_LAYER_34_PROTOCOL: -2079719424,
|
|
2115
|
+
RFID_ERROR_CODES_LAYER_34_GLOBAL_TIMEOUT: -2079653888,
|
|
2116
|
+
RFID_ERROR_CODES_LAYER_34_MIFARE_AUTH: -2079588352,
|
|
2117
|
+
RFID_ERROR_CODES_LAYER_34_SAM_ERROR: -2079522816,
|
|
2118
|
+
RFID_ERROR_CODES_LAYER_34_SAM_COLLISION: -2079457280,
|
|
2119
|
+
RFID_ERROR_CODES_LAYER_34_SAM_ACKNOWLEDGE: -2079391744,
|
|
1987
2120
|
|
|
1988
2121
|
getTranslation: function (value) {
|
|
1989
2122
|
switch (value) {
|
|
1990
|
-
case this.RFID_ERROR_NO_ERROR:
|
|
1991
|
-
return "OK"
|
|
1992
2123
|
case -2147483647:
|
|
1993
2124
|
return "Error - ASN: Incorrect data"
|
|
1994
2125
|
case -2147483646:
|
|
@@ -2003,6 +2134,8 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2003
2134
|
return "Error - ASN Signed data: Version incorrect data"
|
|
2004
2135
|
case -2147483631:
|
|
2005
2136
|
return "Error - ASN Signed data: Digest algorithms incorrect data"
|
|
2137
|
+
case -2147483630:
|
|
2138
|
+
return "Error - ASN LDS object: Version info incorrect data"
|
|
2006
2139
|
case -2147483629:
|
|
2007
2140
|
return "Error - ASN LDS object: Incorrect data"
|
|
2008
2141
|
case -2147483628:
|
|
@@ -2011,8 +2144,6 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2011
2144
|
return "Error - ASN LDS object: Digest algorithm incorrect data"
|
|
2012
2145
|
case -2147483626:
|
|
2013
2146
|
return "Error - ASN LDS object: DG hashes incorrect data"
|
|
2014
|
-
case -2147483630:
|
|
2015
|
-
return "Error - ASN LDS object: Version info incorrect data"
|
|
2016
2147
|
case -2147483625:
|
|
2017
2148
|
return "Error - ASN Certificate: Incorrect data"
|
|
2018
2149
|
case -2147483624:
|
|
@@ -2057,10 +2188,10 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2057
2188
|
return "Error - ICAO Signer info: Unsupported signature algorithm"
|
|
2058
2189
|
case -2147483596:
|
|
2059
2190
|
return "Error - ICAO Signer info: Message digest error"
|
|
2060
|
-
case -2147483594:
|
|
2061
|
-
return "Error - ICAO Signer info: Signed attributes missed"
|
|
2062
2191
|
case -2147483595:
|
|
2063
2192
|
return "Error - Auth: Signer info cannot find certificate"
|
|
2193
|
+
case -2147483594:
|
|
2194
|
+
return "Error - ICAO Signer info: Signed attributes missed"
|
|
2064
2195
|
case -2147483568:
|
|
2065
2196
|
return "Error - Auth: Error"
|
|
2066
2197
|
case -2147483567:
|
|
@@ -2085,15 +2216,77 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2085
2216
|
return "Error - Auth: Signature check failed"
|
|
2086
2217
|
case -2147483536:
|
|
2087
2218
|
return "Error - DG: Wrong Tag"
|
|
2088
|
-
case -
|
|
2089
|
-
return "
|
|
2090
|
-
case -
|
|
2091
|
-
return "
|
|
2092
|
-
case -
|
|
2093
|
-
return "
|
|
2094
|
-
case -
|
|
2095
|
-
return "
|
|
2096
|
-
case -
|
|
2219
|
+
case -2147458430:
|
|
2220
|
+
return "LAYER6: Reading beyond EOF / Unexpected EOF"
|
|
2221
|
+
case -2147458429:
|
|
2222
|
+
return "LAYER6: PWD Deactivated"
|
|
2223
|
+
case -2147458112:
|
|
2224
|
+
return "LAYER6: PWD Blocked"
|
|
2225
|
+
case -2147458111:
|
|
2226
|
+
return "LAYER6: PWD Suspended"
|
|
2227
|
+
case -2147456637:
|
|
2228
|
+
return "LAYER6: PWD Blocked 2"
|
|
2229
|
+
case -2147456636:
|
|
2230
|
+
return "LAYER6: PWD Deactivated 2"
|
|
2231
|
+
case -2147456635:
|
|
2232
|
+
return "LAYER6: PWD Suspended 2"
|
|
2233
|
+
case -2147456384:
|
|
2234
|
+
return "LAYER6: Incorrect Params"
|
|
2235
|
+
case -2147456382:
|
|
2236
|
+
return "LAYER6: File selection failure / file not found"
|
|
2237
|
+
case -2147456376:
|
|
2238
|
+
return "LAYER6: No Reference Data"
|
|
2239
|
+
case -2147456256:
|
|
2240
|
+
return "LAYER6: Reading beyond EOF / Unexpected EOF"
|
|
2241
|
+
case -2147418112:
|
|
2242
|
+
return "RFID: Creation or connection to Graph Manager COM server failed"
|
|
2243
|
+
case -2147418111:
|
|
2244
|
+
return "RFID: No chip is detected"
|
|
2245
|
+
case -2147418110:
|
|
2246
|
+
return "RFID: Unavailable"
|
|
2247
|
+
case -2147418108:
|
|
2248
|
+
return "RFID: Invalid parameter in ExecuteCommand() call found"
|
|
2249
|
+
case -2147418107:
|
|
2250
|
+
return "RFID: Device is uninitialized"
|
|
2251
|
+
case -2147418106:
|
|
2252
|
+
return "RFID: Out of memory"
|
|
2253
|
+
case -2147418104:
|
|
2254
|
+
return "RFID: Invalid directory"
|
|
2255
|
+
case -2147418103:
|
|
2256
|
+
return "RFID: Unknown command"
|
|
2257
|
+
case -2147418102:
|
|
2258
|
+
return "RFID File: IO Error"
|
|
2259
|
+
case -2147418101:
|
|
2260
|
+
return "RFID: RFID is Busy"
|
|
2261
|
+
case -2147418100:
|
|
2262
|
+
return "RFID: Firmware need to be updated with newer version"
|
|
2263
|
+
case -2147352576:
|
|
2264
|
+
return "PCSC: Failed"
|
|
2265
|
+
case -2147352575:
|
|
2266
|
+
return "PCSC: Reader is unavailable"
|
|
2267
|
+
case -2147352574:
|
|
2268
|
+
return "PCSC: Card cannot be connected"
|
|
2269
|
+
case -2147352573:
|
|
2270
|
+
return "PCSC: Card is not connected"
|
|
2271
|
+
case -2147352572:
|
|
2272
|
+
return "PCSC: Operation is cancelled"
|
|
2273
|
+
case -2147352571:
|
|
2274
|
+
return "PCSC: Card Is Busy"
|
|
2275
|
+
case -2147352570:
|
|
2276
|
+
return "PCSC: Failed Smart Card"
|
|
2277
|
+
case -2147352560:
|
|
2278
|
+
return "PCSC: ExtLe Failed"
|
|
2279
|
+
case -2146409536:
|
|
2280
|
+
return "LAYER6: PWD Failed"
|
|
2281
|
+
case -2130706400:
|
|
2282
|
+
return "Error - PACE: Info Not Available"
|
|
2283
|
+
case -2130706399:
|
|
2284
|
+
return "Error - PACE: Symmetric Cypher Cannot Initialize"
|
|
2285
|
+
case -2130706398:
|
|
2286
|
+
return "Error - PACE: Key Agreement Cannot Initialize"
|
|
2287
|
+
case -2130706397:
|
|
2288
|
+
return "Error - PACE: Ephemeral Keys Cannot Create"
|
|
2289
|
+
case -2130706396:
|
|
2097
2290
|
return "Error - PACE: Mapping Cannot Decode Nonce"
|
|
2098
2291
|
case -2130706395:
|
|
2099
2292
|
return "Error - PACE: Shared Secret Cannot Create"
|
|
@@ -2153,12 +2346,6 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2153
2346
|
return "Error - AA: Incorrect Trailer"
|
|
2154
2347
|
case -2130706345:
|
|
2155
2348
|
return "Error - AA: Unsupported Digest Algorithm"
|
|
2156
|
-
case -2130706320:
|
|
2157
|
-
return "Error - RI: Sector Key Cannot Find"
|
|
2158
|
-
case -2130706319:
|
|
2159
|
-
return "Error - RI: Sector Key Incorrect Data"
|
|
2160
|
-
case -2130706318:
|
|
2161
|
-
return "Error - RI: Sector Key Incomplete Data"
|
|
2162
2349
|
case -2130706336:
|
|
2163
2350
|
return "Error - CV Certificate: Missing mandatory data PK"
|
|
2164
2351
|
case -2130706334:
|
|
@@ -2169,6 +2356,12 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2169
2356
|
return "Error - CV Certificate: Private key unsupported"
|
|
2170
2357
|
case -2130706331:
|
|
2171
2358
|
return "Error - CV Certificate: Private key invalid params"
|
|
2359
|
+
case -2130706320:
|
|
2360
|
+
return "Error - RI: Sector Key Cannot Find"
|
|
2361
|
+
case -2130706319:
|
|
2362
|
+
return "Error - RI: Sector Key Incorrect Data"
|
|
2363
|
+
case -2130706318:
|
|
2364
|
+
return "Error - RI: Sector Key Incomplete Data"
|
|
2172
2365
|
case -2130706080:
|
|
2173
2366
|
return "Error - CV Certificate: Incorrect data"
|
|
2174
2367
|
case -2130706079:
|
|
@@ -2191,6 +2384,134 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2191
2384
|
return "Error - CV Certificate: Private key incorrect data"
|
|
2192
2385
|
case -2130706070:
|
|
2193
2386
|
return "Error - CV Certificate: Private key missing"
|
|
2387
|
+
case -2097152000:
|
|
2388
|
+
return "RFID: Not Performed"
|
|
2389
|
+
case -2097151999:
|
|
2390
|
+
return "RFID: Session Is Closed"
|
|
2391
|
+
case -2097151998:
|
|
2392
|
+
return "RFID: Terminal Unsupported Operation"
|
|
2393
|
+
case -2097151984:
|
|
2394
|
+
return "RFID: Terminal Type Unknown"
|
|
2395
|
+
case -2097151983:
|
|
2396
|
+
return "RFID: Terminal Type Bad Certificate"
|
|
2397
|
+
case -2097151982:
|
|
2398
|
+
return "RFID: Terminal Type Not Set"
|
|
2399
|
+
case -2097151981:
|
|
2400
|
+
return "RFID: Procedure Type Unknown"
|
|
2401
|
+
case -2097151980:
|
|
2402
|
+
return "RFID: Procedure Type Unsupported"
|
|
2403
|
+
case -2097151979:
|
|
2404
|
+
return "RFID: Procedure Type Not Set"
|
|
2405
|
+
case -2097151978:
|
|
2406
|
+
return "RFID: Access Key Unknown Type"
|
|
2407
|
+
case -2097151977:
|
|
2408
|
+
return "RFID: Access Key Unsupported SM Type"
|
|
2409
|
+
case -2097151976:
|
|
2410
|
+
return "RFID: Access Key Incorrect SM Type"
|
|
2411
|
+
case -2097151975:
|
|
2412
|
+
return "RFID: Access Key Restricted"
|
|
2413
|
+
case -2097151974:
|
|
2414
|
+
return "RFID: Access Key Incorrect Data"
|
|
2415
|
+
case -2097151973:
|
|
2416
|
+
return "RFID: Access Key Not Set"
|
|
2417
|
+
case -2097151972:
|
|
2418
|
+
return "RFID: Pwd Management Not Authorized"
|
|
2419
|
+
case -2097151968:
|
|
2420
|
+
return "RFID: Access Control UnknownType"
|
|
2421
|
+
case -2097151967:
|
|
2422
|
+
return "RFID: Requires SM"
|
|
2423
|
+
case -2097151966:
|
|
2424
|
+
return "RFID: Requires PACE"
|
|
2425
|
+
case -2097151965:
|
|
2426
|
+
return "RFID: Requires CA Keys"
|
|
2427
|
+
case -2097151964:
|
|
2428
|
+
return "RFID: Requires TA"
|
|
2429
|
+
case -2097151963:
|
|
2430
|
+
return "RFID: Requires CA"
|
|
2431
|
+
case -2097151962:
|
|
2432
|
+
return "RFID: Incorrect Option CA"
|
|
2433
|
+
case -2097151961:
|
|
2434
|
+
return "RFID: CA Failed"
|
|
2435
|
+
case -2097151960:
|
|
2436
|
+
return "RFID: TA Failed"
|
|
2437
|
+
case -2097151959:
|
|
2438
|
+
return "RFID: AA Failed"
|
|
2439
|
+
case -2097151958:
|
|
2440
|
+
return "RFID: RI Failed"
|
|
2441
|
+
case -2097151952:
|
|
2442
|
+
return "RFID: SO Signature Check Failed"
|
|
2443
|
+
case -2097151951:
|
|
2444
|
+
return "RFID: Hash Check Failed"
|
|
2445
|
+
case -2097151936:
|
|
2446
|
+
return "RFID: Invalid Aux Data Date Of Expiry"
|
|
2447
|
+
case -2097151935:
|
|
2448
|
+
return "RFID: Invalid Aux Data Date Of Birth"
|
|
2449
|
+
case -2097151934:
|
|
2450
|
+
return "RFID: Invalid Aux Data Community ID"
|
|
2451
|
+
case -2097151920:
|
|
2452
|
+
return "RFID: eSign Requires App Selection"
|
|
2453
|
+
case -2097151919:
|
|
2454
|
+
return "RFID: eSign PIN Not Set"
|
|
2455
|
+
case -2097151918:
|
|
2456
|
+
return "RFID: eSign PIN Not Verified"
|
|
2457
|
+
case -2097151904:
|
|
2458
|
+
return "RFID: Incorrect data"
|
|
2459
|
+
case -2097086464:
|
|
2460
|
+
return "RFID File: Not Enough Data"
|
|
2461
|
+
case -2097020928:
|
|
2462
|
+
return "RFID File: Incorrect Data"
|
|
2463
|
+
case -2096955392:
|
|
2464
|
+
return "RFID File: Unexpected Data"
|
|
2465
|
+
case -2096889856:
|
|
2466
|
+
return "RFID File: Contents Unexpected Data"
|
|
2467
|
+
case -2096824320:
|
|
2468
|
+
return "RFID File: Wrong Tag"
|
|
2469
|
+
case -2096758784:
|
|
2470
|
+
return "RFID File: Cannot Use Data"
|
|
2471
|
+
case -2096693248:
|
|
2472
|
+
return "RFID File: Cannot Read Data"
|
|
2473
|
+
case -2096627712:
|
|
2474
|
+
return "RFID File: Access Denied"
|
|
2475
|
+
case -2046820352:
|
|
2476
|
+
return "LAYER6: Secure Messaging was not activated"
|
|
2477
|
+
case -2046820351:
|
|
2478
|
+
return "LAYER6: ISO7816_A_03 \"Application selection failure\""
|
|
2479
|
+
case -2046820096:
|
|
2480
|
+
return "LAYER6: ISO7816_B_01 \"Mutual authentication MAC failure\""
|
|
2481
|
+
case -2046820095:
|
|
2482
|
+
return "LAYER6: ISO7816_B_02 \"Mutual authentication encryption failure\""
|
|
2483
|
+
case -2046820094:
|
|
2484
|
+
return "LAYER6: ISO7816_B_03 \"Mutual authentication failure\""
|
|
2485
|
+
case -2046819840:
|
|
2486
|
+
return "LAYER6: SM failure – MAC missing"
|
|
2487
|
+
case -2046819839:
|
|
2488
|
+
return "LAYER6: SM failure – cryptogram missing"
|
|
2489
|
+
case -2046819838:
|
|
2490
|
+
return "LAYER6: SM failure – secured status bytes missing"
|
|
2491
|
+
case -2046819837:
|
|
2492
|
+
return "LAYER6: SM failure – incorrect MAC"
|
|
2493
|
+
case -2046819836:
|
|
2494
|
+
return "LAYER6: SM failure – incorrect cryptogram"
|
|
2495
|
+
case -2046819584:
|
|
2496
|
+
return "LAYER6: Not TLV response data"
|
|
2497
|
+
case -2046819583:
|
|
2498
|
+
return "LAYER6: Wrong data length (APDU_INS_GET_CHALLENGE)"
|
|
2499
|
+
case -2046819582:
|
|
2500
|
+
return "LAYER6: APDU_INS_INTERNAL_AUTHENTICATE failure"
|
|
2501
|
+
case -2046819581:
|
|
2502
|
+
return "LAYER6: MSE:Set KAT failure"
|
|
2503
|
+
case -2046819580:
|
|
2504
|
+
return "LAYER6: MSE:Set DST failure"
|
|
2505
|
+
case -2046819579:
|
|
2506
|
+
return "LAYER6: PSO CERTIFICATE failure"
|
|
2507
|
+
case -2046819578:
|
|
2508
|
+
return "LAYER6: MSE:Set AT failure"
|
|
2509
|
+
case -2046819577:
|
|
2510
|
+
return "LAYER6: GET CHALLENGE failure"
|
|
2511
|
+
case -2046819576:
|
|
2512
|
+
return "LAYER6: APDU_INS_EXTERNAL_AUTHENTICATE (External Authentication) failure"
|
|
2513
|
+
case -2046819575:
|
|
2514
|
+
return "LAYER6: General Authenticity Failure"
|
|
2194
2515
|
case -1879048191:
|
|
2195
2516
|
return "Notification - ASN certificate: Incorrect version"
|
|
2196
2517
|
case -1879048190:
|
|
@@ -2213,6 +2534,94 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2213
2534
|
return "Notification - ASN certificate: Incorrect issuer subject DS"
|
|
2214
2535
|
case -1879048169:
|
|
2215
2536
|
return "Notification - ASN certificate: Duplicating extensions"
|
|
2537
|
+
case -1879048160:
|
|
2538
|
+
return "Notification - ICAO COM: LDS version incorrect"
|
|
2539
|
+
case -1879048159:
|
|
2540
|
+
return "Notification - ICAO COM: LDS version missing"
|
|
2541
|
+
case -1879048158:
|
|
2542
|
+
return "Notification - ICAO COM: Unicode version incorrect"
|
|
2543
|
+
case -1879048157:
|
|
2544
|
+
return "Notification - ICAO COM: Unicode version missing"
|
|
2545
|
+
case -1879048156:
|
|
2546
|
+
return "Notification - ICAO COM: DGPM incorrect"
|
|
2547
|
+
case -1879048155:
|
|
2548
|
+
return "Notification - ICAO COM: DGPM missing"
|
|
2549
|
+
case -1879048154:
|
|
2550
|
+
return "Notification - ICAO COM: DGPM unexpected"
|
|
2551
|
+
case -1879048144:
|
|
2552
|
+
return "Notification - ICAO application: LDS version unsupported"
|
|
2553
|
+
case -1879048143:
|
|
2554
|
+
return "Notification - ICAO application: Unicode version unsupported"
|
|
2555
|
+
case -1879048142:
|
|
2556
|
+
return "Notification - ICAO application: LDS version inconsistent"
|
|
2557
|
+
case -1879048141:
|
|
2558
|
+
return "Notification - ICAO application: Unicode version inconsistent"
|
|
2559
|
+
case -1879047936:
|
|
2560
|
+
return "Notification - ASN signed data: OID incorrect"
|
|
2561
|
+
case -1879047935:
|
|
2562
|
+
return "Notification - ICAO signed data: Version incorrect"
|
|
2563
|
+
case -1879047934:
|
|
2564
|
+
return "Notification - ICAO signed data: Digest algorithms empty"
|
|
2565
|
+
case -1879047933:
|
|
2566
|
+
return "Notification - ICAO signed data: Digest algorithms unsupported"
|
|
2567
|
+
case -1879047932:
|
|
2568
|
+
return "Notification - ICAO LDS object: Incorrect content OID"
|
|
2569
|
+
case -1879047931:
|
|
2570
|
+
return "Notification - ICAO LDS object: DG number incorrect"
|
|
2571
|
+
case -1879047930:
|
|
2572
|
+
return "Notification - ICAO LDS object: DG hash missing"
|
|
2573
|
+
case -1879047929:
|
|
2574
|
+
return "Notification - ICAO LDS object: DG hash extra"
|
|
2575
|
+
case -1879047928:
|
|
2576
|
+
return "Notification - ICAO LDS object: Version incorrect"
|
|
2577
|
+
case -1879047927:
|
|
2578
|
+
return "Notification - ICAO signed data: Signer infos multiple entries"
|
|
2579
|
+
case -1879047926:
|
|
2580
|
+
return "Notification - ASN signer info: Version incorrect"
|
|
2581
|
+
case -1879047925:
|
|
2582
|
+
return "Notification - ASN signer info: SID incorrect choice"
|
|
2583
|
+
case -1879047924:
|
|
2584
|
+
return "Notification - ASN signer info: SID digest algorithm not listed"
|
|
2585
|
+
case -1879047923:
|
|
2586
|
+
return "Notification - ASN signer info: Message digest attr missing"
|
|
2587
|
+
case -1879047922:
|
|
2588
|
+
return "Notification - ASN signer info: Message digest attr data"
|
|
2589
|
+
case -1879047921:
|
|
2590
|
+
return "Notification - ASN signer info: Message digest attr value"
|
|
2591
|
+
case -1879047920:
|
|
2592
|
+
return "Notification - ASN signer info: Content type attr missing"
|
|
2593
|
+
case -1879047919:
|
|
2594
|
+
return "Notification - ASN signer info: Content type attr data"
|
|
2595
|
+
case -1879047918:
|
|
2596
|
+
return "Notification - ASN signer info: Content type attr value"
|
|
2597
|
+
case -1879047915:
|
|
2598
|
+
return "Notification - Auth signer info: Certificate validity"
|
|
2599
|
+
case -1879047914:
|
|
2600
|
+
return "Notification - Auth signer info: Certificate root is not trusted"
|
|
2601
|
+
case -1879047913:
|
|
2602
|
+
return "Notification - Auth signer info: Certificate cannot find CSCA"
|
|
2603
|
+
case -1879047912:
|
|
2604
|
+
return "Notification - Auth signer info: Certificate revoked"
|
|
2605
|
+
case -1879047911:
|
|
2606
|
+
return "Notification - Auth signer info: Certificate signature invalid"
|
|
2607
|
+
case -1879047910:
|
|
2608
|
+
return "Notification: Unsupported image format"
|
|
2609
|
+
case -1879047909:
|
|
2610
|
+
return "Notification - ASN signer info: Signing time attr missing"
|
|
2611
|
+
case -1879047908:
|
|
2612
|
+
return "Notification - ASN signer info: Signing time attr data"
|
|
2613
|
+
case -1879047907:
|
|
2614
|
+
return "Notification - ASN signer info: Signing time attr value"
|
|
2615
|
+
case -1879047776:
|
|
2616
|
+
return "Notification - ASN signed data: Version incorrect"
|
|
2617
|
+
case -1879047760:
|
|
2618
|
+
return "Notification - ICAO signed data: Certificates missed"
|
|
2619
|
+
case -1879047759:
|
|
2620
|
+
return "Notification - ICAO signed data: Certificates empty"
|
|
2621
|
+
case -1879047758:
|
|
2622
|
+
return "Notification - ICAO signed data: CRLs incorrect usage"
|
|
2623
|
+
case -1879047744:
|
|
2624
|
+
return "Notification - ICAO master list: Version incorrect"
|
|
2216
2625
|
case -1879047680:
|
|
2217
2626
|
return "Notification - ICAO certificate: Version missed"
|
|
2218
2627
|
case -1879047679:
|
|
@@ -2293,166 +2702,48 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2293
2702
|
return "Notification - ICAO certificate extension: Subject alt name non-compliant"
|
|
2294
2703
|
case -1879047639:
|
|
2295
2704
|
return "Notification - ICAO certificate extension: Subject alt name DN empty"
|
|
2296
|
-
case -1879047638:
|
|
2297
|
-
return "Notification - ICAO certificate extension: Subject alt name DN incorrect"
|
|
2298
|
-
case -1879047637:
|
|
2299
|
-
return "Notification - ICAO certificate extension: Subject alt name DN non-compliant"
|
|
2300
|
-
case -1879047636:
|
|
2301
|
-
return "Notification - ICAO certificate extension: Issuer alt name missed"
|
|
2302
|
-
case -1879047635:
|
|
2303
|
-
return "Notification - ICAO certificate extension: Issuer alt name incorrect data"
|
|
2304
|
-
case -1879047634:
|
|
2305
|
-
return "Notification - ICAO certificate extension: Issuer alt name empty"
|
|
2306
|
-
case -1879047633:
|
|
2307
|
-
return "Notification - ICAO certificate extension: Issuer alt name non-compliant"
|
|
2308
|
-
case -1879047630:
|
|
2309
|
-
return "Notification - ICAO certificate extension: Issuer alt name DN empty"
|
|
2310
|
-
case -1879047629:
|
|
2311
|
-
return "Notification - ICAO certificate extension: Issuer alt name DN incorrect"
|
|
2312
|
-
case -1879047628:
|
|
2313
|
-
return "Notification - ICAO certificate extension: Issuer alt name DN non-compliant"
|
|
2314
|
-
case -1879047627:
|
|
2315
|
-
return "Notification - ICAO certificate extension Doc type list: Missed"
|
|
2316
|
-
case -1879047626:
|
|
2317
|
-
return "Notification - ICAO certificate extension Doc type list: Incorrect data"
|
|
2318
|
-
case -1879047625:
|
|
2319
|
-
return "Notification - ICAO certificate extension Doc type list: Version"
|
|
2320
|
-
case -1879047624:
|
|
2321
|
-
return "Notification - ICAO certificate extension Doc type list: Doc types"
|
|
2322
|
-
case -1879047623:
|
|
2323
|
-
return "Notification - ICAO certificate extension Doc type list: Doc types empty"
|
|
2324
|
-
case -1879047622:
|
|
2325
|
-
return "Notification - ICAO certificate extension: Dert policies incorrect data"
|
|
2326
|
-
case -1879047621:
|
|
2327
|
-
return "Notification - ICAO certificate extension: Cert policies empty"
|
|
2328
|
-
case -1879047620:
|
|
2329
|
-
return "Notification - ICAO certificate extension: Cert policies policy ID missed"
|
|
2330
|
-
case -1879047619:
|
|
2331
|
-
return "Notification - ICAO certificate extension: CRL dist point missed"
|
|
2332
|
-
case -1879047618:
|
|
2333
|
-
return "Notification - ICAO certificate extension: CRL dist point incorrect data"
|
|
2334
|
-
case -1879047617:
|
|
2335
|
-
return "Notification - ICAO certificate extension: CRL dist point empty"
|
|
2336
|
-
case -1879047616:
|
|
2337
|
-
return "Notification - ICAO certificate extension: CRL dist point point missed"
|
|
2338
|
-
case -1879048160:
|
|
2339
|
-
return "Notification - ICAO COM: LDS version incorrect"
|
|
2340
|
-
case -1879048159:
|
|
2341
|
-
return "Notification - ICAO COM: LDS version missing"
|
|
2342
|
-
case -1879048158:
|
|
2343
|
-
return "Notification - ICAO COM: Unicode version incorrect"
|
|
2344
|
-
case -1879048157:
|
|
2345
|
-
return "Notification - ICAO COM: Unicode version missing"
|
|
2346
|
-
case -1879048156:
|
|
2347
|
-
return "Notification - ICAO COM: DGPM incorrect"
|
|
2348
|
-
case -1879048155:
|
|
2349
|
-
return "Notification - ICAO COM: DGPM missing"
|
|
2350
|
-
case -1879048154:
|
|
2351
|
-
return "Notification - ICAO COM: DGPM unexpected"
|
|
2352
|
-
case -1879048144:
|
|
2353
|
-
return "Notification - ICAO application: LDS version unsupported"
|
|
2354
|
-
case -1879048143:
|
|
2355
|
-
return "Notification - ICAO application: Unicode version unsupported"
|
|
2356
|
-
case -1879048142:
|
|
2357
|
-
return "Notification - ICAO application: LDS version inconsistent"
|
|
2358
|
-
case -1879048141:
|
|
2359
|
-
return "Notification - ICAO application: Unicode version inconsistent"
|
|
2360
|
-
case -1879047936:
|
|
2361
|
-
return "Notification - ASN signed data: OID incorrect"
|
|
2362
|
-
case -1879047776:
|
|
2363
|
-
return "Notification - ASN signed data: Version incorrect"
|
|
2364
|
-
case -1879047935:
|
|
2365
|
-
return "Notification - ICAO signed data: Version incorrect"
|
|
2366
|
-
case -1879047934:
|
|
2367
|
-
return "Notification - ICAO signed data: Digest algorithms empty"
|
|
2368
|
-
case -1879047933:
|
|
2369
|
-
return "Notification - ICAO signed data: Digest algorithms unsupported"
|
|
2370
|
-
case -1879047927:
|
|
2371
|
-
return "Notification - ICAO signed data: Signer infos multiple entries"
|
|
2372
|
-
case -1879047760:
|
|
2373
|
-
return "Notification - ICAO signed data: Certificates missed"
|
|
2374
|
-
case -1879047759:
|
|
2375
|
-
return "Notification - ICAO signed data: Certificates empty"
|
|
2376
|
-
case -1879047758:
|
|
2377
|
-
return "Notification - ICAO signed data: CRLs incorrect usage"
|
|
2378
|
-
case -1879047932:
|
|
2379
|
-
return "Notification - ICAO LDS object: Incorrect content OID"
|
|
2380
|
-
case -1879047931:
|
|
2381
|
-
return "Notification - ICAO LDS object: DG number incorrect"
|
|
2382
|
-
case -1879047930:
|
|
2383
|
-
return "Notification - ICAO LDS object: DG hash missing"
|
|
2384
|
-
case -1879047929:
|
|
2385
|
-
return "Notification - ICAO LDS object: DG hash extra"
|
|
2386
|
-
case -1879047928:
|
|
2387
|
-
return "Notification - ICAO LDS object: Version incorrect"
|
|
2388
|
-
case -1879047744:
|
|
2389
|
-
return "Notification - ICAO master list: Version incorrect"
|
|
2390
|
-
case -1879047926:
|
|
2391
|
-
return "Notification - ASN signer info: Version incorrect"
|
|
2392
|
-
case -1879047925:
|
|
2393
|
-
return "Notification - ASN signer info: SID incorrect choice"
|
|
2394
|
-
case -1879047924:
|
|
2395
|
-
return "Notification - ASN signer info: SID digest algorithm not listed"
|
|
2396
|
-
case -1879047923:
|
|
2397
|
-
return "Notification - ASN signer info: Message digest attr missing"
|
|
2398
|
-
case -1879047922:
|
|
2399
|
-
return "Notification - ASN signer info: Message digest attr data"
|
|
2400
|
-
case -1879047921:
|
|
2401
|
-
return "Notification - ASN signer info: Message digest attr value"
|
|
2402
|
-
case -1879047920:
|
|
2403
|
-
return "Notification - ASN signer info: Content type attr missing"
|
|
2404
|
-
case -1879047919:
|
|
2405
|
-
return "Notification - ASN signer info: Content type attr data"
|
|
2406
|
-
case -1879047918:
|
|
2407
|
-
return "Notification - ASN signer info: Content type attr value"
|
|
2408
|
-
case -1879047909:
|
|
2409
|
-
return "Notification - ASN signer info: Signing time attr missing"
|
|
2410
|
-
case -1879047908:
|
|
2411
|
-
return "Notification - ASN signer info: Signing time attr data"
|
|
2412
|
-
case -1879047907:
|
|
2413
|
-
return "Notification - ASN signer info: Signing time attr value"
|
|
2414
|
-
case -1879047915:
|
|
2415
|
-
return "Notification - Auth signer info: Certificate validity"
|
|
2416
|
-
case -1879047914:
|
|
2417
|
-
return "Notification - Auth signer info: Certificate root is not trusted"
|
|
2418
|
-
case -1879047913:
|
|
2419
|
-
return "Notification - Auth signer info: Certificate cannot find CSCA"
|
|
2420
|
-
case -1879047912:
|
|
2421
|
-
return "Notification - Auth signer info: Certificate revoked"
|
|
2422
|
-
case -1879047911:
|
|
2423
|
-
return "Notification - Auth signer info: Certificate signature invalid"
|
|
2424
|
-
case -1879047910:
|
|
2425
|
-
return "Notification: Unsupported image format"
|
|
2426
|
-
case 139272:
|
|
2427
|
-
return "Notification - MRZ: Document type unknown"
|
|
2428
|
-
case 139273:
|
|
2429
|
-
return "Notification - MRZ: Issuing state syntax error"
|
|
2430
|
-
case 139274:
|
|
2431
|
-
return "Notification - MRZ: Name is void"
|
|
2432
|
-
case 139277:
|
|
2433
|
-
return "Notification - MRZ: Number incorrect checksum"
|
|
2434
|
-
case 139278:
|
|
2435
|
-
return "Notification - MRZ: Nationality syntax error"
|
|
2436
|
-
case 139279:
|
|
2437
|
-
return "Notification - MRZ: DOB syntax error"
|
|
2438
|
-
case 139280:
|
|
2439
|
-
return "Notification - MRZ: DOB error"
|
|
2440
|
-
case 139281:
|
|
2441
|
-
return "Notification - MRZ: DOB incorrect checksum"
|
|
2442
|
-
case 139282:
|
|
2443
|
-
return "Notification - MRZ: Sex incorrect"
|
|
2444
|
-
case 139283:
|
|
2445
|
-
return "Notification - MRZ: DOE syntax error"
|
|
2446
|
-
case 139284:
|
|
2447
|
-
return "Notification - MRZ: DOE error"
|
|
2448
|
-
case 139285:
|
|
2449
|
-
return "Notification - MRZ: DOE incorrect checksum"
|
|
2450
|
-
case 139286:
|
|
2451
|
-
return "Notification - MRZ: Optional data incorrect checksum"
|
|
2452
|
-
case 139287:
|
|
2453
|
-
return "Notification - MRZ: Incorrect checksum"
|
|
2454
|
-
case 139288:
|
|
2455
|
-
return "Notification - MRZ: Incorrect"
|
|
2705
|
+
case -1879047638:
|
|
2706
|
+
return "Notification - ICAO certificate extension: Subject alt name DN incorrect"
|
|
2707
|
+
case -1879047637:
|
|
2708
|
+
return "Notification - ICAO certificate extension: Subject alt name DN non-compliant"
|
|
2709
|
+
case -1879047636:
|
|
2710
|
+
return "Notification - ICAO certificate extension: Issuer alt name missed"
|
|
2711
|
+
case -1879047635:
|
|
2712
|
+
return "Notification - ICAO certificate extension: Issuer alt name incorrect data"
|
|
2713
|
+
case -1879047634:
|
|
2714
|
+
return "Notification - ICAO certificate extension: Issuer alt name empty"
|
|
2715
|
+
case -1879047633:
|
|
2716
|
+
return "Notification - ICAO certificate extension: Issuer alt name non-compliant"
|
|
2717
|
+
case -1879047630:
|
|
2718
|
+
return "Notification - ICAO certificate extension: Issuer alt name DN empty"
|
|
2719
|
+
case -1879047629:
|
|
2720
|
+
return "Notification - ICAO certificate extension: Issuer alt name DN incorrect"
|
|
2721
|
+
case -1879047628:
|
|
2722
|
+
return "Notification - ICAO certificate extension: Issuer alt name DN non-compliant"
|
|
2723
|
+
case -1879047627:
|
|
2724
|
+
return "Notification - ICAO certificate extension Doc type list: Missed"
|
|
2725
|
+
case -1879047626:
|
|
2726
|
+
return "Notification - ICAO certificate extension Doc type list: Incorrect data"
|
|
2727
|
+
case -1879047625:
|
|
2728
|
+
return "Notification - ICAO certificate extension Doc type list: Version"
|
|
2729
|
+
case -1879047624:
|
|
2730
|
+
return "Notification - ICAO certificate extension Doc type list: Doc types"
|
|
2731
|
+
case -1879047623:
|
|
2732
|
+
return "Notification - ICAO certificate extension Doc type list: Doc types empty"
|
|
2733
|
+
case -1879047622:
|
|
2734
|
+
return "Notification - ICAO certificate extension: Dert policies incorrect data"
|
|
2735
|
+
case -1879047621:
|
|
2736
|
+
return "Notification - ICAO certificate extension: Cert policies empty"
|
|
2737
|
+
case -1879047620:
|
|
2738
|
+
return "Notification - ICAO certificate extension: Cert policies policy ID missed"
|
|
2739
|
+
case -1879047619:
|
|
2740
|
+
return "Notification - ICAO certificate extension: CRL dist point missed"
|
|
2741
|
+
case -1879047618:
|
|
2742
|
+
return "Notification - ICAO certificate extension: CRL dist point incorrect data"
|
|
2743
|
+
case -1879047617:
|
|
2744
|
+
return "Notification - ICAO certificate extension: CRL dist point empty"
|
|
2745
|
+
case -1879047616:
|
|
2746
|
+
return "Notification - ICAO certificate extension: CRL dist point point missed"
|
|
2456
2747
|
case -1878982656:
|
|
2457
2748
|
return "Notification - Biometrics: Format owner missing"
|
|
2458
2749
|
case -1878917120:
|
|
@@ -2581,200 +2872,42 @@ export const eRFID_NotificationAndErrorCodes = {
|
|
|
2581
2872
|
return "Notification - Auth ML signer info: Certificate revoked"
|
|
2582
2873
|
case -1845493479:
|
|
2583
2874
|
return "Notification - Auth ML signer info: Certificate signature invalid"
|
|
2584
|
-
case
|
|
2585
|
-
return "RFID: Requested operation is already done"
|
|
2586
|
-
case this.RFID_ERROR_FAILED:
|
|
2875
|
+
case -1:
|
|
2587
2876
|
return "RFID: Failed"
|
|
2588
|
-
case
|
|
2589
|
-
return "
|
|
2590
|
-
case
|
|
2591
|
-
return "RFID:
|
|
2592
|
-
case
|
|
2593
|
-
return "
|
|
2594
|
-
case
|
|
2595
|
-
return "
|
|
2596
|
-
case
|
|
2597
|
-
return "
|
|
2598
|
-
case
|
|
2599
|
-
return "
|
|
2600
|
-
case
|
|
2601
|
-
return "
|
|
2602
|
-
case
|
|
2603
|
-
return "
|
|
2604
|
-
case
|
|
2605
|
-
return "
|
|
2606
|
-
case
|
|
2607
|
-
return "
|
|
2608
|
-
case
|
|
2609
|
-
return "
|
|
2610
|
-
case
|
|
2611
|
-
return "
|
|
2612
|
-
case
|
|
2613
|
-
return "
|
|
2614
|
-
case
|
|
2615
|
-
return "
|
|
2616
|
-
case
|
|
2617
|
-
return "
|
|
2618
|
-
case
|
|
2619
|
-
return "
|
|
2620
|
-
case
|
|
2621
|
-
return "
|
|
2622
|
-
case -2147352570:
|
|
2623
|
-
return "PCSC: Failed Smart Card"
|
|
2624
|
-
case -2147352560:
|
|
2625
|
-
return "PCSC: ExtLe Failed"
|
|
2626
|
-
case -2046820352:
|
|
2627
|
-
return "LAYER6: Secure Messaging was not activated"
|
|
2628
|
-
case -2046820351:
|
|
2629
|
-
return "LAYER6: ISO7816_A_03 \"Application selection failure\""
|
|
2630
|
-
case -2046820096:
|
|
2631
|
-
return "LAYER6: ISO7816_B_01 \"Mutual authentication MAC failure\""
|
|
2632
|
-
case -2046820095:
|
|
2633
|
-
return "LAYER6: ISO7816_B_02 \"Mutual authentication encryption failure\""
|
|
2634
|
-
case -2046820094:
|
|
2635
|
-
return "LAYER6: ISO7816_B_03 \"Mutual authentication failure\""
|
|
2636
|
-
case -2046819840:
|
|
2637
|
-
return "LAYER6: SM failure – MAC missing"
|
|
2638
|
-
case -2046819839:
|
|
2639
|
-
return "LAYER6: SM failure – cryptogram missing"
|
|
2640
|
-
case -2046819838:
|
|
2641
|
-
return "LAYER6: SM failure – secured status bytes missing"
|
|
2642
|
-
case -2046819837:
|
|
2643
|
-
return "LAYER6: SM failure – incorrect MAC"
|
|
2644
|
-
case -2046819836:
|
|
2645
|
-
return "LAYER6: SM failure – incorrect cryptogram"
|
|
2646
|
-
case -2046819584:
|
|
2647
|
-
return "LAYER6: Not TLV response data"
|
|
2648
|
-
case -2046819583:
|
|
2649
|
-
return "LAYER6: Wrong data length (APDU_INS_GET_CHALLENGE)"
|
|
2650
|
-
case -2046819582:
|
|
2651
|
-
return "LAYER6: APDU_INS_INTERNAL_AUTHENTICATE failure"
|
|
2652
|
-
case -2046819581:
|
|
2653
|
-
return "LAYER6: MSE:Set KAT failure"
|
|
2654
|
-
case -2046819580:
|
|
2655
|
-
return "LAYER6: MSE:Set DST failure"
|
|
2656
|
-
case -2046819579:
|
|
2657
|
-
return "LAYER6: PSO CERTIFICATE failure"
|
|
2658
|
-
case -2046819578:
|
|
2659
|
-
return "LAYER6: MSE:Set AT failure"
|
|
2660
|
-
case -2046819577:
|
|
2661
|
-
return "LAYER6: GET CHALLENGE failure"
|
|
2662
|
-
case -2046819576:
|
|
2663
|
-
return "LAYER6: APDU_INS_EXTERNAL_AUTHENTICATE (External Authentication) failure"
|
|
2664
|
-
case -2046819575:
|
|
2665
|
-
return "LAYER6: General Authenticity Failure"
|
|
2666
|
-
case -2147456382:
|
|
2667
|
-
return "LAYER6: File selection failure / file not found"
|
|
2668
|
-
case -2147458430:
|
|
2669
|
-
return "LAYER6: Reading beyond EOF / Unexpected EOF"
|
|
2670
|
-
case -2147456256:
|
|
2671
|
-
return "LAYER6: Reading beyond EOF / Unexpected EOF"
|
|
2672
|
-
case -2147456384:
|
|
2673
|
-
return "LAYER6: Incorrect Params"
|
|
2674
|
-
case -2147456376:
|
|
2675
|
-
return "LAYER6: No Reference Data"
|
|
2676
|
-
case -2147458111:
|
|
2677
|
-
return "LAYER6: PWD Suspended"
|
|
2678
|
-
case -2147458112:
|
|
2679
|
-
return "LAYER6: PWD Blocked"
|
|
2680
|
-
case -2147458429:
|
|
2681
|
-
return "LAYER6: PWD Deactivated"
|
|
2682
|
-
case -2147456637:
|
|
2683
|
-
return "LAYER6: PWD Blocked 2"
|
|
2684
|
-
case -2147456636:
|
|
2685
|
-
return "LAYER6: PWD Deactivated 2"
|
|
2686
|
-
case -2147456635:
|
|
2687
|
-
return "LAYER6: PWD Suspended 2"
|
|
2688
|
-
case -2146409536:
|
|
2689
|
-
return "LAYER6: PWD Failed"
|
|
2690
|
-
case -2097152000:
|
|
2691
|
-
return "RFID: Not Performed"
|
|
2692
|
-
case -2097151999:
|
|
2693
|
-
return "RFID: Session Is Closed"
|
|
2694
|
-
case -2097151998:
|
|
2695
|
-
return "RFID: Terminal Unsupported Operation"
|
|
2696
|
-
case -2097151984:
|
|
2697
|
-
return "RFID: Terminal Type Unknown"
|
|
2698
|
-
case -2097151983:
|
|
2699
|
-
return "RFID: Terminal Type Bad Certificate"
|
|
2700
|
-
case -2097151982:
|
|
2701
|
-
return "RFID: Terminal Type Not Set"
|
|
2702
|
-
case -2097151981:
|
|
2703
|
-
return "RFID: Procedure Type Unknown"
|
|
2704
|
-
case -2097151980:
|
|
2705
|
-
return "RFID: Procedure Type Unsupported"
|
|
2706
|
-
case -2097151979:
|
|
2707
|
-
return "RFID: Procedure Type Not Set"
|
|
2708
|
-
case -2097151978:
|
|
2709
|
-
return "RFID: Access Key Unknown Type"
|
|
2710
|
-
case -2097151977:
|
|
2711
|
-
return "RFID: Access Key Unsupported SM Type"
|
|
2712
|
-
case -2097151976:
|
|
2713
|
-
return "RFID: Access Key Incorrect SM Type"
|
|
2714
|
-
case -2097151975:
|
|
2715
|
-
return "RFID: Access Key Restricted"
|
|
2716
|
-
case -2097151974:
|
|
2717
|
-
return "RFID: Access Key Incorrect Data"
|
|
2718
|
-
case -2097151973:
|
|
2719
|
-
return "RFID: Access Key Not Set"
|
|
2720
|
-
case -2097151972:
|
|
2721
|
-
return "RFID: Pwd Management Not Authorized"
|
|
2722
|
-
case -2097151968:
|
|
2723
|
-
return "RFID: Access Control UnknownType"
|
|
2724
|
-
case -2097151967:
|
|
2725
|
-
return "RFID: Requires SM"
|
|
2726
|
-
case -2097151966:
|
|
2727
|
-
return "RFID: Requires PACE"
|
|
2728
|
-
case -2097151965:
|
|
2729
|
-
return "RFID: Requires CA Keys"
|
|
2730
|
-
case -2097151964:
|
|
2731
|
-
return "RFID: Requires TA"
|
|
2732
|
-
case -2097151963:
|
|
2733
|
-
return "RFID: Requires CA"
|
|
2734
|
-
case -2097151962:
|
|
2735
|
-
return "RFID: Incorrect Option CA"
|
|
2736
|
-
case -2097151961:
|
|
2737
|
-
return "RFID: CA Failed"
|
|
2738
|
-
case -2097151960:
|
|
2739
|
-
return "RFID: TA Failed"
|
|
2740
|
-
case -2097151959:
|
|
2741
|
-
return "RFID: AA Failed"
|
|
2742
|
-
case -2097151958:
|
|
2743
|
-
return "RFID: RI Failed"
|
|
2744
|
-
case -2097151952:
|
|
2745
|
-
return "RFID: SO Signature Check Failed"
|
|
2746
|
-
case -2097151951:
|
|
2747
|
-
return "RFID: Hash Check Failed"
|
|
2748
|
-
case -2097151936:
|
|
2749
|
-
return "RFID: Invalid Aux Data Date Of Expiry"
|
|
2750
|
-
case -2097151935:
|
|
2751
|
-
return "RFID: Invalid Aux Data Date Of Birth"
|
|
2752
|
-
case -2097151934:
|
|
2753
|
-
return "RFID: Invalid Aux Data Community ID"
|
|
2754
|
-
case -2097151920:
|
|
2755
|
-
return "RFID: eSign Requires App Selection"
|
|
2756
|
-
case -2097151919:
|
|
2757
|
-
return "RFID: eSign PIN Not Set"
|
|
2758
|
-
case -2097151918:
|
|
2759
|
-
return "RFID: eSign PIN Not Verified"
|
|
2760
|
-
case -2097151904:
|
|
2761
|
-
return "RFID: Incorrect data"
|
|
2762
|
-
case -2097086464:
|
|
2763
|
-
return "RFID File: Not Enough Data"
|
|
2764
|
-
case -2097020928:
|
|
2765
|
-
return "RFID File: Incorrect Data"
|
|
2766
|
-
case -2096955392:
|
|
2767
|
-
return "RFID File: Unexpected Data"
|
|
2768
|
-
case -2096889856:
|
|
2769
|
-
return "RFID File: Contents Unexpected Data"
|
|
2770
|
-
case -2096824320:
|
|
2771
|
-
return "RFID File: Wrong Tag"
|
|
2772
|
-
case -2096758784:
|
|
2773
|
-
return "RFID File: Cannot Use Data"
|
|
2774
|
-
case -2096693248:
|
|
2775
|
-
return "RFID File: Cannot Read Data"
|
|
2776
|
-
case this.RFID_ERROR_SESSION_FILE_ACCESS_DENIED:
|
|
2777
|
-
return "RFID File: Access Denied"
|
|
2877
|
+
case 1:
|
|
2878
|
+
return "OK"
|
|
2879
|
+
case 2:
|
|
2880
|
+
return "RFID: Requested operation is already done"
|
|
2881
|
+
case 139272:
|
|
2882
|
+
return "Notification - MRZ: Document type unknown"
|
|
2883
|
+
case 139273:
|
|
2884
|
+
return "Notification - MRZ: Issuing state syntax error"
|
|
2885
|
+
case 139274:
|
|
2886
|
+
return "Notification - MRZ: Name is void"
|
|
2887
|
+
case 139277:
|
|
2888
|
+
return "Notification - MRZ: Number incorrect checksum"
|
|
2889
|
+
case 139278:
|
|
2890
|
+
return "Notification - MRZ: Nationality syntax error"
|
|
2891
|
+
case 139279:
|
|
2892
|
+
return "Notification - MRZ: DOB syntax error"
|
|
2893
|
+
case 139280:
|
|
2894
|
+
return "Notification - MRZ: DOB error"
|
|
2895
|
+
case 139281:
|
|
2896
|
+
return "Notification - MRZ: DOB incorrect checksum"
|
|
2897
|
+
case 139282:
|
|
2898
|
+
return "Notification - MRZ: Sex incorrect"
|
|
2899
|
+
case 139283:
|
|
2900
|
+
return "Notification - MRZ: DOE syntax error"
|
|
2901
|
+
case 139284:
|
|
2902
|
+
return "Notification - MRZ: DOE error"
|
|
2903
|
+
case 139285:
|
|
2904
|
+
return "Notification - MRZ: DOE incorrect checksum"
|
|
2905
|
+
case 139286:
|
|
2906
|
+
return "Notification - MRZ: Optional data incorrect checksum"
|
|
2907
|
+
case 139287:
|
|
2908
|
+
return "Notification - MRZ: Incorrect checksum"
|
|
2909
|
+
case 139288:
|
|
2910
|
+
return "Notification - MRZ: Incorrect"
|
|
2778
2911
|
default:
|
|
2779
2912
|
return value
|
|
2780
2913
|
}
|
|
@@ -2874,6 +3007,8 @@ export const eRPRM_ResultType = {
|
|
|
2874
3007
|
RPRM_RESULT_TYPE_DATABASE_CHECK: 28,
|
|
2875
3008
|
RPRM_RESULT_TYPE_FINGERPRINT_TEMPLATE_ISO: 29,
|
|
2876
3009
|
RPRM_RESULT_TYPE_INPUT_IMAGE_QUALITY: 30,
|
|
3010
|
+
RPRM_RESULT_TYPE_IMAGES: 37,
|
|
3011
|
+
RPRM_RESULT_TYPE_HOLO_PARAMS: 47,
|
|
2877
3012
|
RPRM_RESULT_TYPE_DOCUMENT_POSITION: 85,
|
|
2878
3013
|
RPRM_RESULT_TYPE_CUSTOM: 100,
|
|
2879
3014
|
RFID_RESULT_TYPE_RFID_RAW_DATA: 101,
|
|
@@ -2883,6 +3018,7 @@ export const eRPRM_ResultType = {
|
|
|
2883
3018
|
RFID_RESULT_TYPE_RFID_ORIGINAL_GRAPHICS: 105,
|
|
2884
3019
|
RPRM_RESULT_TYPE_BARCODE_POSITION: 62,
|
|
2885
3020
|
RPRM_RESULT_TYPE_MRZ_POSITION: 61,
|
|
3021
|
+
RPRM_RESULT_TYPE_STATUS: 33,
|
|
2886
3022
|
}
|
|
2887
3023
|
|
|
2888
3024
|
export const eRPRM_SecurityFeatureType = {
|
|
@@ -3517,6 +3653,14 @@ export const eVisualFieldType = {
|
|
|
3517
3653
|
FT_DLCLASSCODE_D3_TO: 635,
|
|
3518
3654
|
FT_DLCLASSCODE_D3_NOTES: 636,
|
|
3519
3655
|
FT_ALT_DATE_OF_EXPIRY: 637,
|
|
3656
|
+
FT_DLCLASSCODE_CD_FROM: 638,
|
|
3657
|
+
FT_DLCLASSCODE_CD_TO: 639,
|
|
3658
|
+
FT_DLCLASSCODE_CD_NOTES: 640,
|
|
3659
|
+
FT_PAYMENT_PERIOD_TO: 643,
|
|
3660
|
+
FT_PAYMENT_PERIOD_FROM: 642,
|
|
3661
|
+
FT_ISSUER_IDENTIFICATION_NUMBER: 641,
|
|
3662
|
+
FT_VACCINATION_CERTIFICATE_IDENTIFIER: 644,
|
|
3663
|
+
FT_FIRST_NAME: 645,
|
|
3520
3664
|
|
|
3521
3665
|
getTranslation: function (value) {
|
|
3522
3666
|
switch (value) {
|
|
@@ -3669,9 +3813,9 @@ export const eVisualFieldType = {
|
|
|
3669
3813
|
case 73:
|
|
3670
3814
|
return "Issuing authority code"
|
|
3671
3815
|
case 74:
|
|
3672
|
-
return "
|
|
3816
|
+
return "Country/region of birth"
|
|
3673
3817
|
case 75:
|
|
3674
|
-
return "
|
|
3818
|
+
return "Birth state code"
|
|
3675
3819
|
case 76:
|
|
3676
3820
|
return "Street"
|
|
3677
3821
|
case 77:
|
|
@@ -3945,15 +4089,15 @@ export const eVisualFieldType = {
|
|
|
3945
4089
|
case 259:
|
|
3946
4090
|
return "Residence permit 2"
|
|
3947
4091
|
case 260:
|
|
3948
|
-
return "Place of
|
|
4092
|
+
return "Place of birth: Street"
|
|
3949
4093
|
case 261:
|
|
3950
|
-
return "Place of
|
|
4094
|
+
return "Place of birth: City"
|
|
3951
4095
|
case 262:
|
|
3952
|
-
return "Place of
|
|
4096
|
+
return "Place of birth: State"
|
|
3953
4097
|
case 263:
|
|
3954
|
-
return "Place of
|
|
4098
|
+
return "Place of birth: Country"
|
|
3955
4099
|
case 264:
|
|
3956
|
-
return "Place of
|
|
4100
|
+
return "Place of birth: Postal code"
|
|
3957
4101
|
case 265:
|
|
3958
4102
|
return "CDL Class"
|
|
3959
4103
|
case 266:
|
|
@@ -4694,6 +4838,22 @@ export const eVisualFieldType = {
|
|
|
4694
4838
|
return "DL category D3 codes"
|
|
4695
4839
|
case 637:
|
|
4696
4840
|
return "Alternative date of expiry"
|
|
4841
|
+
case 638:
|
|
4842
|
+
return "DL category CD valid from"
|
|
4843
|
+
case 639:
|
|
4844
|
+
return "DL category CD valid to"
|
|
4845
|
+
case 640:
|
|
4846
|
+
return "DL category CD codes"
|
|
4847
|
+
case 641:
|
|
4848
|
+
return "Issuer identification number"
|
|
4849
|
+
case 642:
|
|
4850
|
+
return "Payment period from"
|
|
4851
|
+
case 643:
|
|
4852
|
+
return "Payment period to"
|
|
4853
|
+
case 644:
|
|
4854
|
+
return "Unique vaccination certificate identifier"
|
|
4855
|
+
case 645:
|
|
4856
|
+
return "First name"
|
|
4697
4857
|
default:
|
|
4698
4858
|
return value
|
|
4699
4859
|
}
|
|
@@ -5330,6 +5490,7 @@ export const Enum = {
|
|
|
5330
5490
|
|
|
5331
5491
|
const DocumentReader = {}
|
|
5332
5492
|
|
|
5493
|
+
DocumentReader.initializeReaderAutomatically = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "initializeReaderAutomatically", [], successCallback, errorCallback)
|
|
5333
5494
|
DocumentReader.getAPIVersion = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getAPIVersion", [], successCallback, errorCallback)
|
|
5334
5495
|
DocumentReader.getAvailableScenarios = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getAvailableScenarios", [], successCallback, errorCallback)
|
|
5335
5496
|
DocumentReader.isRFIDAvailableForUse = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "isRFIDAvailableForUse", [], successCallback, errorCallback)
|
|
@@ -5382,6 +5543,7 @@ DocumentReader.setRfidSessionStatus = (status, successCallback, errorCallback) =
|
|
|
5382
5543
|
DocumentReader.providePACertificates = (certificates, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "providePACertificates", [certificates], successCallback, errorCallback)
|
|
5383
5544
|
DocumentReader.provideTACertificates = (certificates, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "provideTACertificates", [certificates], successCallback, errorCallback)
|
|
5384
5545
|
DocumentReader.provideTASignature = (certificates, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "provideTASignature", [certificates], successCallback, errorCallback)
|
|
5546
|
+
DocumentReader.parseCoreResults = (json, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "parseCoreResults", [json], successCallback, errorCallback)
|
|
5385
5547
|
DocumentReader.initializeReaderWithDatabasePath = (license, path, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "initializeReaderWithDatabasePath", [license, path], successCallback, errorCallback)
|
|
5386
5548
|
DocumentReader.initializeReaderWithDatabase = (license, db, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "initializeReaderWithDatabase", [license, db], successCallback, errorCallback)
|
|
5387
5549
|
DocumentReader.recognizeImageFrame = (image, params, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "recognizeImageFrame", [image, params], successCallback, errorCallback)
|