@regulaforensics/react-native-document-reader-api 6.9.0 → 7.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.
Files changed (50) hide show
  1. package/README.md +10 -42
  2. package/RNDocumentReaderApi.podspec +1 -1
  3. package/android/build.gradle +10 -10
  4. package/android/src/main/java/com/regula/documentreader/BluetoothUtil.kt +78 -74
  5. package/android/src/main/java/com/regula/documentreader/Config.kt +690 -0
  6. package/android/src/main/java/com/regula/documentreader/JSONConstructor.kt +2188 -0
  7. package/android/src/main/java/com/regula/documentreader/RNRegulaDocumentReaderModule.kt +537 -0
  8. package/android/src/main/java/com/regula/documentreader/RNRegulaDocumentReaderPackage.kt +11 -0
  9. package/android/src/main/java/com/regula/documentreader/Utils.kt +256 -0
  10. package/example/App.tsx +97 -145
  11. package/example/README.md +37 -0
  12. package/example/android/app/build.gradle +1 -1
  13. package/example/android/app/src/main/java/com/regula/dr/fullrfid/MainApplication.java +0 -1
  14. package/example/android/app/src/main/res/values/styles.xml +1 -2
  15. package/example/android/build.gradle +2 -4
  16. package/example/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  17. package/example/android/gradle.properties +1 -1
  18. package/example/index.js +1 -2
  19. package/example/ios/DocumentReader.xcodeproj/project.pbxproj +8 -4
  20. package/example/ios/Podfile +0 -1
  21. package/example/package-lock.json +3062 -2198
  22. package/example/package.json +24 -23
  23. package/index.d.ts +296 -135
  24. package/index.js +234 -115
  25. package/ios/RGLWConfig.h +48 -0
  26. package/ios/RGLWConfig.m +1325 -0
  27. package/ios/RGLWJSONConstructor.h +173 -69
  28. package/ios/RGLWJSONConstructor.m +1817 -762
  29. package/ios/RNRegulaDocumentReader.h +6 -5
  30. package/ios/RNRegulaDocumentReader.m +392 -584
  31. package/package.json +1 -1
  32. package/android/src/main/java/com/regula/documentreader/Helpers.java +0 -259
  33. package/android/src/main/java/com/regula/documentreader/JSONConstructor.java +0 -1119
  34. package/android/src/main/java/com/regula/documentreader/RNRegulaDocumentReaderModule.java +0 -1153
  35. package/android/src/main/java/com/regula/documentreader/RNRegulaDocumentReaderPackage.java +0 -26
  36. package/android/src/main/java/com/regula/documentreader/RegulaConfig.java +0 -830
  37. package/example/.bundle/config +0 -2
  38. package/example/.eslintrc.js +0 -4
  39. package/example/.prettierrc.js +0 -7
  40. package/example/Gemfile +0 -6
  41. package/example/Gemfile.lock +0 -98
  42. package/example/__tests__/App.test.tsx +0 -17
  43. package/example/app.json +0 -4
  44. package/example/babel.config.js +0 -3
  45. package/example/jest.config.js +0 -3
  46. package/example/tsconfig.json +0 -3
  47. package/ios/RGLWRegulaConfig.h +0 -26
  48. package/ios/RGLWRegulaConfig.m +0 -1152
  49. package/ios/RNRegulaDocumentReader.xcodeproj/project.pbxproj +0 -304
  50. package/ios/RNRegulaDocumentReader.xcworkspace/contents.xcworkspacedata +0 -9
package/index.d.ts CHANGED
@@ -57,25 +57,6 @@ export class Rect {
57
57
  }
58
58
  }
59
59
 
60
- export class DocReaderFieldRect {
61
- bottom?: number
62
- top?: number
63
- left?: number
64
- right?: number
65
-
66
- static fromJson(jsonObject?: any): DocReaderFieldRect | undefined {
67
- if (jsonObject == null || jsonObject == undefined) return undefined
68
- const result = new DocReaderFieldRect
69
-
70
- result.bottom = jsonObject["bottom"]
71
- result.top = jsonObject["top"]
72
- result.left = jsonObject["left"]
73
- result.right = jsonObject["right"]
74
-
75
- return result
76
- }
77
- }
78
-
79
60
  export class DocumentReaderGraphicField {
80
61
  sourceType?: number
81
62
  fieldType?: number
@@ -85,7 +66,7 @@ export class DocumentReaderGraphicField {
85
66
  fieldName?: string
86
67
  lightName?: string
87
68
  value?: string
88
- fieldRect?: DocReaderFieldRect
69
+ fieldRect?: Rect
89
70
 
90
71
  static fromJson(jsonObject?: any): DocumentReaderGraphicField | undefined {
91
72
  if (jsonObject == null || jsonObject == undefined) return undefined
@@ -99,7 +80,7 @@ export class DocumentReaderGraphicField {
99
80
  result.fieldName = jsonObject["fieldName"]
100
81
  result.lightName = jsonObject["lightName"]
101
82
  result.value = jsonObject["value"]
102
- result.fieldRect = DocReaderFieldRect.fromJson(jsonObject["fieldRect"])
83
+ result.fieldRect = Rect.fromJson(jsonObject["fieldRect"])
103
84
 
104
85
  return result
105
86
  }
@@ -128,12 +109,10 @@ export class DocumentReaderGraphicResult {
128
109
  export class DocumentReaderValue {
129
110
  pageIndex?: number
130
111
  sourceType?: number
131
- validity?: number
132
112
  probability?: number
133
113
  value?: string
134
114
  originalValue?: string
135
115
  boundRect?: Rect
136
- comparison?: Record<number, number>
137
116
  originalSymbols?: DocumentReaderSymbol[]
138
117
  rfidOrigin?: DocumentReaderRfidOrigin
139
118
 
@@ -143,17 +122,10 @@ export class DocumentReaderValue {
143
122
 
144
123
  result.pageIndex = jsonObject["pageIndex"]
145
124
  result.sourceType = jsonObject["sourceType"]
146
- result.validity = jsonObject["validity"]
147
125
  result.probability = jsonObject["probability"]
148
126
  result.value = jsonObject["value"]
149
127
  result.originalValue = jsonObject["originalValue"]
150
128
  result.boundRect = Rect.fromJson(jsonObject["boundRect"])
151
- result.comparison = {}
152
- if (jsonObject["comparison"] != null) {
153
- for (const i in jsonObject["comparison"]) {
154
- result.comparison[i as unknown as number] = jsonObject["comparison"][i]
155
- }
156
- }
157
129
  result.originalSymbols = []
158
130
  if (jsonObject["originalSymbols"] != null) {
159
131
  for (const i in jsonObject["originalSymbols"]) {
@@ -321,6 +293,7 @@ export class ImageQuality {
321
293
  featureType?: number
322
294
  result?: number
323
295
  type?: number
296
+ boundRects?: Rect[]
324
297
 
325
298
  static fromJson(jsonObject?: any): ImageQuality | undefined {
326
299
  if (jsonObject == null || jsonObject == undefined) return undefined
@@ -329,6 +302,14 @@ export class ImageQuality {
329
302
  result.featureType = jsonObject["featureType"]
330
303
  result.result = jsonObject["result"]
331
304
  result.type = jsonObject["type"]
305
+ result.boundRects = []
306
+ if (jsonObject["boundRects"] != null) {
307
+ for (const i in jsonObject["boundRects"]) {
308
+ const item = Rect.fromJson(jsonObject["boundRects"][i])
309
+ if (item != undefined)
310
+ result.boundRects.push(item)
311
+ }
312
+ }
332
313
 
333
314
  return result
334
315
  }
@@ -491,6 +472,7 @@ export class SecurityObjectCertificates {
491
472
  export class File {
492
473
  readingTime?: number
493
474
  type?: number
475
+ typeName?: string
494
476
  pAStatus?: number
495
477
  readingStatus?: number
496
478
  fileID?: string
@@ -507,6 +489,7 @@ export class File {
507
489
 
508
490
  result.readingTime = jsonObject["readingTime"]
509
491
  result.type = jsonObject["type"]
492
+ result.typeName = jsonObject["typeName"]
510
493
  result.pAStatus = jsonObject["pAStatus"]
511
494
  result.readingStatus = jsonObject["readingStatus"]
512
495
  result.fileID = jsonObject["fileID"]
@@ -1117,6 +1100,27 @@ export class PKDCertificate {
1117
1100
  }
1118
1101
  }
1119
1102
 
1103
+ export class TccParams {
1104
+ serviceUrlTA?: string
1105
+ serviceUrlPA?: string
1106
+ pfxCertUrl?: string
1107
+ pfxPassPhrase?: string
1108
+ pfxCert?: string
1109
+
1110
+ static fromJson(jsonObject?: any): TccParams | undefined {
1111
+ if (jsonObject == null || jsonObject == undefined) return undefined
1112
+ const result = new TccParams
1113
+
1114
+ result.serviceUrlTA = jsonObject["serviceUrlTA"]
1115
+ result.serviceUrlPA = jsonObject["serviceUrlPA"]
1116
+ result.pfxCertUrl = jsonObject["pfxCertUrl"]
1117
+ result.pfxPassPhrase = jsonObject["pfxPassPhrase"]
1118
+ result.pfxCert = jsonObject["pfxCert"]
1119
+
1120
+ return result
1121
+ }
1122
+ }
1123
+
1120
1124
  export class ImageInputParam {
1121
1125
  width?: number
1122
1126
  height?: number
@@ -1536,16 +1540,77 @@ export class Search {
1536
1540
  }
1537
1541
  }
1538
1542
 
1543
+ export class AuthenticityParams {
1544
+ useLivenessCheck?: boolean
1545
+ livenessParams?: LivenessParams
1546
+ checkUVLuminiscence?: boolean
1547
+ checkIRB900?: boolean
1548
+ checkImagePatterns?: boolean
1549
+ checkFibers?: boolean
1550
+ checkExtMRZ?: boolean
1551
+ checkExtOCR?: boolean
1552
+ checkAxial?: boolean
1553
+ checkBarcodeFormat?: boolean
1554
+ checkIRVisibility?: boolean
1555
+ checkIPI?: boolean
1556
+ checkPhotoEmbedding?: boolean
1557
+ checkPhotoComparison?: boolean
1558
+ checkLetterScreen?: boolean
1559
+
1560
+ static fromJson(jsonObject?: any): AuthenticityParams | undefined {
1561
+ if (jsonObject == null || jsonObject == undefined) return undefined
1562
+ const result = new AuthenticityParams
1563
+
1564
+ result.useLivenessCheck = jsonObject["useLivenessCheck"]
1565
+ result.livenessParams = LivenessParams.fromJson(jsonObject["livenessParams"])
1566
+ result.checkUVLuminiscence = jsonObject["checkUVLuminiscence"]
1567
+ result.checkIRB900 = jsonObject["checkIRB900"]
1568
+ result.checkImagePatterns = jsonObject["checkImagePatterns"]
1569
+ result.checkFibers = jsonObject["checkFibers"]
1570
+ result.checkExtMRZ = jsonObject["checkExtMRZ"]
1571
+ result.checkExtOCR = jsonObject["checkExtOCR"]
1572
+ result.checkAxial = jsonObject["checkAxial"]
1573
+ result.checkBarcodeFormat = jsonObject["checkBarcodeFormat"]
1574
+ result.checkIRVisibility = jsonObject["checkIRVisibility"]
1575
+ result.checkIPI = jsonObject["checkIPI"]
1576
+ result.checkPhotoEmbedding = jsonObject["checkPhotoEmbedding"]
1577
+ result.checkPhotoComparison = jsonObject["checkPhotoComparison"]
1578
+ result.checkLetterScreen = jsonObject["checkLetterScreen"]
1579
+
1580
+ return result
1581
+ }
1582
+ }
1583
+
1584
+ export class LivenessParams {
1585
+ checkOVI?: boolean
1586
+ checkMLI?: boolean
1587
+ checkHolo?: boolean
1588
+ checkED?: boolean
1589
+
1590
+ static fromJson(jsonObject?: any): LivenessParams | undefined {
1591
+ if (jsonObject == null || jsonObject == undefined) return undefined
1592
+ const result = new LivenessParams
1593
+
1594
+ result.checkOVI = jsonObject["checkOVI"]
1595
+ result.checkMLI = jsonObject["checkMLI"]
1596
+ result.checkHolo = jsonObject["checkHolo"]
1597
+ result.checkED = jsonObject["checkED"]
1598
+
1599
+ return result
1600
+ }
1601
+ }
1602
+
1539
1603
  export class ImageQA {
1540
1604
  dpiThreshold?: number
1541
1605
  angleThreshold?: number
1542
1606
  focusCheck?: boolean
1543
1607
  glaresCheck?: boolean
1544
1608
  colornessCheck?: boolean
1545
- moireCheck?: boolean
1609
+ screenCapture?: boolean
1610
+ documentPositionIndent?: number
1546
1611
  expectedPass?: number[]
1547
1612
  glaresCheckParams?: GlaresCheckParams
1548
- documentPositionIndent?: number
1613
+ brightnessThreshold?: number
1549
1614
 
1550
1615
  static fromJson(jsonObject?: any): ImageQA | undefined {
1551
1616
  if (jsonObject == null || jsonObject == undefined) return undefined
@@ -1556,7 +1621,8 @@ export class ImageQA {
1556
1621
  result.focusCheck = jsonObject["focusCheck"]
1557
1622
  result.glaresCheck = jsonObject["glaresCheck"]
1558
1623
  result.colornessCheck = jsonObject["colornessCheck"]
1559
- result.moireCheck = jsonObject["moireCheck"]
1624
+ result.screenCapture = jsonObject["screenCapture"]
1625
+ result.documentPositionIndent = jsonObject["documentPositionIndent"]
1560
1626
  result.expectedPass = []
1561
1627
  if (jsonObject["expectedPass"] != null) {
1562
1628
  for (const i in jsonObject["expectedPass"]) {
@@ -1564,7 +1630,7 @@ export class ImageQA {
1564
1630
  }
1565
1631
  }
1566
1632
  result.glaresCheckParams = GlaresCheckParams.fromJson(jsonObject["glaresCheckParams"])
1567
- result.documentPositionIndent = jsonObject["documentPositionIndent"]
1633
+ result.brightnessThreshold = jsonObject["brightnessThreshold"]
1568
1634
 
1569
1635
  return result
1570
1636
  }
@@ -1624,6 +1690,29 @@ export class OnlineProcessingConfig {
1624
1690
  }
1625
1691
  }
1626
1692
 
1693
+ export class DocReaderConfig {
1694
+ license?: string
1695
+ customDb?: string
1696
+ databasePath?: string
1697
+ licenseUpdate?: boolean
1698
+ delayedNNLoad?: boolean
1699
+ blackList?: any
1700
+
1701
+ static fromJson(jsonObject?: any): DocReaderConfig | undefined {
1702
+ if (jsonObject == null || jsonObject == undefined) return undefined
1703
+ const result = new DocReaderConfig
1704
+
1705
+ result.license = jsonObject["license"]
1706
+ result.customDb = jsonObject["customDb"]
1707
+ result.databasePath = jsonObject["databasePath"]
1708
+ result.licenseUpdate = jsonObject["licenseUpdate"]
1709
+ result.delayedNNLoad = jsonObject["delayedNNLoad"]
1710
+ result.blackList = jsonObject["blackList"]
1711
+
1712
+ return result
1713
+ }
1714
+ }
1715
+
1627
1716
  export class ScannerConfig {
1628
1717
  scenario?: string
1629
1718
  livePortrait?: string
@@ -1647,11 +1736,12 @@ export class ScannerConfig {
1647
1736
 
1648
1737
  export class RecognizeConfig {
1649
1738
  scenario?: string
1739
+ onlineProcessingConfig?: OnlineProcessingConfig
1740
+ oneShotIdentification?: boolean
1650
1741
  livePortrait?: string
1651
1742
  extPortrait?: string
1652
- onlineProcessingConfig?: OnlineProcessingConfig
1653
1743
  image?: string
1654
- oneShotIdentification?: boolean
1744
+ data?: string
1655
1745
  images?: string[]
1656
1746
  imageInputData?: ImageInputData[]
1657
1747
 
@@ -1660,11 +1750,12 @@ export class RecognizeConfig {
1660
1750
  const result = new RecognizeConfig
1661
1751
 
1662
1752
  result.scenario = jsonObject["scenario"]
1753
+ result.onlineProcessingConfig = OnlineProcessingConfig.fromJson(jsonObject["onlineProcessingConfig"])
1754
+ result.oneShotIdentification = jsonObject["oneShotIdentification"]
1663
1755
  result.livePortrait = jsonObject["livePortrait"]
1664
1756
  result.extPortrait = jsonObject["extPortrait"]
1665
- result.onlineProcessingConfig = OnlineProcessingConfig.fromJson(jsonObject["onlineProcessingConfig"])
1666
1757
  result.image = jsonObject["image"]
1667
- result.oneShotIdentification = jsonObject["oneShotIdentification"]
1758
+ result.data = jsonObject["data"]
1668
1759
  result.images = []
1669
1760
  if (jsonObject["images"] != null) {
1670
1761
  for (const i in jsonObject["images"]) {
@@ -1684,16 +1775,68 @@ export class RecognizeConfig {
1684
1775
  }
1685
1776
  }
1686
1777
 
1778
+ export class License {
1779
+ expiryDate?: string
1780
+ countryFilter?: string[]
1781
+ isRfidAvailable?: boolean
1782
+
1783
+ static fromJson(jsonObject?: any): License | undefined {
1784
+ if (jsonObject == null || jsonObject == undefined) return undefined
1785
+ const result = new License
1786
+
1787
+ result.expiryDate = jsonObject["expiryDate"]
1788
+ result.countryFilter = []
1789
+ if (jsonObject["countryFilter"] != null) {
1790
+ for (const i in jsonObject["countryFilter"]) {
1791
+ result.countryFilter.push(jsonObject["countryFilter"][i])
1792
+ }
1793
+ }
1794
+ result.isRfidAvailable = jsonObject["isRfidAvailable"]
1795
+
1796
+ return result
1797
+ }
1798
+ }
1799
+
1800
+ export class DocReaderVersion {
1801
+ api?: string
1802
+ core?: string
1803
+ coreMode?: string
1804
+ database?: DocReaderDocumentsDatabase
1805
+
1806
+ static fromJson(jsonObject?: any): DocReaderVersion | undefined {
1807
+ if (jsonObject == null || jsonObject == undefined) return undefined
1808
+ const result = new DocReaderVersion
1809
+
1810
+ result.api = jsonObject["api"]
1811
+ result.core = jsonObject["core"]
1812
+ result.coreMode = jsonObject["coreMode"]
1813
+ result.database = DocReaderDocumentsDatabase.fromJson(jsonObject["database"])
1814
+
1815
+ return result
1816
+ }
1817
+ }
1818
+
1819
+ export class TransactionInfo {
1820
+ transactionId?: string
1821
+ tag?: string
1822
+
1823
+ static fromJson(jsonObject?: any): TransactionInfo | undefined {
1824
+ if (jsonObject == null || jsonObject == undefined) return undefined
1825
+ const result = new TransactionInfo
1826
+
1827
+ result.transactionId = jsonObject["transactionId"]
1828
+ result.tag = jsonObject["tag"]
1829
+
1830
+ return result
1831
+ }
1832
+ }
1833
+
1687
1834
  export class DocumentReaderResults {
1688
- videoCaptureSessionId?: string
1689
1835
  chipPage?: number
1690
- irElapsedTime?: number
1691
1836
  processingFinishedStatus?: number
1692
1837
  elapsedTime?: number
1693
1838
  elapsedTimeRFID?: number
1694
1839
  morePagesAvailable?: number
1695
- rfidResult?: number
1696
- highResolution?: boolean
1697
1840
  graphicResult?: DocumentReaderGraphicResult
1698
1841
  textResult?: DocumentReaderTextResult
1699
1842
  documentPosition?: ElementPosition[]
@@ -1701,14 +1844,13 @@ export class DocumentReaderResults {
1701
1844
  mrzPosition?: ElementPosition[]
1702
1845
  imageQuality?: ImageQualityGroup[]
1703
1846
  rawResult?: string
1704
- documentReaderNotification?: DocumentReaderNotification
1705
1847
  rfidSessionData?: RFIDSessionData
1706
1848
  authenticityResult?: DocumentReaderAuthenticityResult
1707
1849
  barcodeResult?: DocumentReaderBarcodeResult
1708
- ppmIn?: number
1709
1850
  documentType?: DocumentReaderDocumentType[]
1710
1851
  status?: DocumentReaderResultsStatus
1711
1852
  vdsncData?: VDSNCData
1853
+ transactionInfo?: TransactionInfo
1712
1854
 
1713
1855
  textFieldValueByType(fieldType, successCallback, errorCallback) {
1714
1856
  RNRegulaDocumentReader.exec("DocumentReader", "textFieldValueByType", [this.rawResult, fieldType], successCallback, errorCallback)
@@ -1782,15 +1924,11 @@ export class DocumentReaderResults {
1782
1924
  if (jsonObject == null || jsonObject == undefined) return undefined
1783
1925
  const result = new DocumentReaderResults
1784
1926
 
1785
- result.videoCaptureSessionId = jsonObject["videoCaptureSessionId"]
1786
1927
  result.chipPage = jsonObject["chipPage"]
1787
- result.irElapsedTime = jsonObject["irElapsedTime"]
1788
1928
  result.processingFinishedStatus = jsonObject["processingFinishedStatus"]
1789
1929
  result.elapsedTime = jsonObject["elapsedTime"]
1790
1930
  result.elapsedTimeRFID = jsonObject["elapsedTimeRFID"]
1791
1931
  result.morePagesAvailable = jsonObject["morePagesAvailable"]
1792
- result.rfidResult = jsonObject["rfidResult"]
1793
- result.highResolution = jsonObject["highResolution"]
1794
1932
  result.graphicResult = DocumentReaderGraphicResult.fromJson(jsonObject["graphicResult"])
1795
1933
  result.textResult = DocumentReaderTextResult.fromJson(jsonObject["textResult"])
1796
1934
  result.documentPosition = []
@@ -1826,11 +1964,9 @@ export class DocumentReaderResults {
1826
1964
  }
1827
1965
  }
1828
1966
  result.rawResult = jsonObject["rawResult"]
1829
- result.documentReaderNotification = DocumentReaderNotification.fromJson(jsonObject["documentReaderNotification"])
1830
1967
  result.rfidSessionData = RFIDSessionData.fromJson(jsonObject["rfidSessionData"])
1831
1968
  result.authenticityResult = DocumentReaderAuthenticityResult.fromJson(jsonObject["authenticityResult"])
1832
1969
  result.barcodeResult = DocumentReaderBarcodeResult.fromJson(jsonObject["barcodeResult"])
1833
- result.ppmIn = jsonObject["ppmIn"]
1834
1970
  result.documentType = []
1835
1971
  if (jsonObject["documentType"] != null) {
1836
1972
  for (const i in jsonObject["documentType"]) {
@@ -1841,6 +1977,7 @@ export class DocumentReaderResults {
1841
1977
  }
1842
1978
  result.status = DocumentReaderResultsStatus.fromJson(jsonObject["status"])
1843
1979
  result.vdsncData = VDSNCData.fromJson(jsonObject["vdsncData"])
1980
+ result.transactionInfo = TransactionInfo.fromJson(jsonObject["transactionInfo"])
1844
1981
 
1845
1982
  return result
1846
1983
  }
@@ -1877,6 +2014,16 @@ export const eRPRM_Authenticity = {
1877
2014
  OCR: 4194304,
1878
2015
  }
1879
2016
 
2017
+ export const CustomizationColor = {
2018
+ RFID_PROCESSING_SCREEN_BACKGROUND: "rfidProcessingScreenBackground",
2019
+ RFID_PROCESSING_SCREEN_HINT_LABEL_TEXT: "rfidProcessingScreenHintLabelText",
2020
+ RFID_PROCESSING_SCREEN_HINT_LABEL_BACKGROUND: "rfidProcessingScreenHintLabelBackground",
2021
+ RFID_PROCESSING_SCREEN_PROGRESS_LABEL_TEXT: "rfidProcessingScreenProgressLabelText",
2022
+ RFID_PROCESSING_SCREEN_PROGRESS_BAR: "rfidProcessingScreenProgressBar",
2023
+ RFID_PROCESSING_SCREEN_PROGRESS_BAR_BACKGROUND: "rfidProcessingScreenProgressBarBackground",
2024
+ RFID_PROCESSING_SCREEN_RESULT_LABEL_TEXT: "rfidProcessingScreenResultLabelText",
2025
+ }
2026
+
1880
2027
  export const eRFID_ErrorCodes = {
1881
2028
  RFID_ERROR_NO_ERROR: 0x00000001,
1882
2029
  RFID_ERROR_ALREADY_DONE: 0x00000002,
@@ -2236,11 +2383,13 @@ export const eProcessGLCommands = {
2236
2383
  ePC_ProcMgr_ProcessImage: 12104,
2237
2384
  ePC_ProcMgr_StartNewDocument: 12105,
2238
2385
  ePC_ProcMgr_StartNewPage: 12106,
2386
+ ePC_ProcMgr_AddDataToPackage: 12121,
2387
+ ePC_ProcMgr_FinalizePackage: 12122,
2388
+ ePC_ProcMgr_CreateBackendTransaction: 12125,
2239
2389
  ePC_ProcMgr_Unload: 12107,
2240
2390
  ePC_ProcMgr_CheckDatabase: 12109,
2241
2391
  ePC_ProcMgr_ComparePortraits: 12111,
2242
2392
  ePC_RFID_SetTCCParams: 12522,
2243
- ePC_RFID_SetReprocessingParams: 12523,
2244
2393
  }
2245
2394
 
2246
2395
  export const PKDResourceType = {
@@ -2328,6 +2477,7 @@ export const ScenarioIdentifier = {
2328
2477
  SCENARIO_MRZ_OR_BARCODE: "MrzOrBarcode",
2329
2478
  SCENARIO_MRZ_OR_LOCATE: "MrzOrLocate",
2330
2479
  SCENARIO_MRZ_AND_LOCATE: "MrzAndLocate",
2480
+ SCENARIO_BARCODE_AND_LOCATE: "BarcodeAndLocate",
2331
2481
  SCENARIO_MRZ_OR_OCR: "MrzOrOcr",
2332
2482
  SCENARIO_MRZ_OR_BARCODE_OR_OCR: "MrzOrBarcodeOrOcr",
2333
2483
  SCENARIO_LOCATE_VISUAL_AND_MRZ_OR_OCR: "LocateVisual_And_MrzOrOcr",
@@ -2338,7 +2488,6 @@ export const ScenarioIdentifier = {
2338
2488
  SCENARIO_OCR_FREE: "OcrFree",
2339
2489
  SCENARIO_CREDIT_CARD: "CreditCard",
2340
2490
  SCENARIO_CAPTURE: "Capture",
2341
- SCENARIO_BARCODE_AND_LOCATE: "BarcodeAndLocate",
2342
2491
  }
2343
2492
 
2344
2493
  export const eRFID_AccessControl_ProcedureType = {
@@ -2469,6 +2618,7 @@ export const eCheckDiagnose = {
2469
2618
  INCORRECT_TEXT_COLOR: 26,
2470
2619
  PHOTO_FALSE_LUMINISCENCE: 27,
2471
2620
  TOO_MUCH_SHIFT: 28,
2621
+ CONTACT_CHIP_TYPE_MISMATCH: 29,
2472
2622
  FIBERS_NOT_FOUND: 30,
2473
2623
  TOO_MANY_OBJECTS: 31,
2474
2624
  SPECKS_IN_UV: 33,
@@ -2570,6 +2720,20 @@ export const TextProcessing = {
2570
2720
  ocCapital: 3,
2571
2721
  }
2572
2722
 
2723
+ export const AnimationImage = {
2724
+ UNKNOWN: 0,
2725
+ PASSPORT_SINGLE_PAGE: 1,
2726
+ PASSPORT_TWO_PAGES: 2,
2727
+ ID_FRONT: 3,
2728
+ ID_FRONT_MRZ: 4,
2729
+ ID_BACK: 5,
2730
+ ID_BACK_MRZ: 6,
2731
+ ID_BACK_BARCODE: 7,
2732
+ ID_BACK_BARCODE_MRZ: 8,
2733
+ BANK_CARD_FRONT: 9,
2734
+ BANK_CARD_BACK: 10,
2735
+ }
2736
+
2573
2737
  export const ProcessingFinishedStatus = {
2574
2738
  NOT_READY: 0,
2575
2739
  READY: 1,
@@ -2826,6 +2990,7 @@ export const eImageQualityCheckType = {
2826
2990
  IQC_SCREEN_CAPTURE: 6,
2827
2991
  IQC_PORTRAIT: 7,
2828
2992
  IQC_HANDWRITTEN: 8,
2993
+ IQC_BRIGHTNESS: 9,
2829
2994
  }
2830
2995
 
2831
2996
  export const MRZFormat = {
@@ -2907,6 +3072,12 @@ export const eRPRM_SecurityFeatureType = {
2907
3072
  SECURITY_FEATURE_TYPE_LAS_INK: 43,
2908
3073
  SECURITY_FEATURE_TYPE_LIVENESS_MLI: 44,
2909
3074
  SECURITY_FEATURE_TYPE_LIVENESS_BARCODE_BACKGROUND: 45,
3075
+ SECURITY_FEATURE_TYPE_PORTRAIT_COMPARISON_VS_BARCODE: 46,
3076
+ SECURITY_FEATURE_TYPE_PORTRAIT_COMPARISON_RFID_VS_BARCODE: 47,
3077
+ SECURITY_FEATURE_TYPE_PORTRAIT_COMPARISON_EXT_VS_BARCODE: 48,
3078
+ SECURITY_FEATURE_TYPE_PORTRAIT_COMPARISON_BARCODE_VS_CAMERA: 49,
3079
+ SECURITY_FEATURE_TYPE_CHECK_DIGITAL_SIGNATURE: 50,
3080
+ SECURITY_FEATURE_TYPE_CONTACT_CHIP_CLASSIFICATION: 51,
2910
3081
  }
2911
3082
 
2912
3083
  export const OnlineMode = {
@@ -3152,6 +3323,15 @@ export const diDocType = {
3152
3323
  dtPassengerLocatorForm: 242,
3153
3324
  }
3154
3325
 
3326
+ export const ButtonTag = {
3327
+ CLOSE: 1001,
3328
+ TORCH: 1002,
3329
+ CAPTURE: 1003,
3330
+ CHANGE_FRAME: 1004,
3331
+ SKIP: 1005,
3332
+ CAMERA_SWITCH: 1006,
3333
+ }
3334
+
3155
3335
  export const HoloAnimationType = {
3156
3336
  DocumentHoloAnimationUnknown: 0,
3157
3337
  DocumentHoloAnimationTypeHorizontal: 1,
@@ -3170,6 +3350,12 @@ export const eRequestCommand = {
3170
3350
  eReqCmd_WltToImage: 401,
3171
3351
  }
3172
3352
 
3353
+ export const CustomizationFont = {
3354
+ RFID_PROCESSING_SCREEN_HINT_LABEL: "rfidProcessingScreenHintLabel",
3355
+ RFID_PROCESSING_SCREEN_PROGRESS_LABEL: "rfidProcessingScreenProgressLabel",
3356
+ RFID_PROCESSING_SCREEN_RESULT_LABEL: "rfidProcessingScreenResultLabel",
3357
+ }
3358
+
3173
3359
  export const ImageFormat = {
3174
3360
  PNG: 0,
3175
3361
  JPG: 1,
@@ -3187,6 +3373,7 @@ export const eGraphicFieldType = {
3187
3373
  GF_GHOST_PORTRAIT: 210,
3188
3374
  GF_STAMP: 211,
3189
3375
  GF_PORTRAIT_OF_CHILD: 212,
3376
+ GF_CONTACT_CHIP: 213,
3190
3377
  GF_OTHER: 250,
3191
3378
  GF_FINGER_LEFT_THUMB: 300,
3192
3379
  GF_FINGER_LEFT_INDEX: 301,
@@ -3201,7 +3388,7 @@ export const eGraphicFieldType = {
3201
3388
  }
3202
3389
 
3203
3390
  export const RegDeviceConfigType = {
3204
- DEVICE_7310: 1,
3391
+ DEVICE_7310: "DEVICE_7310",
3205
3392
  }
3206
3393
 
3207
3394
  export const CameraMode = {
@@ -3949,6 +4136,8 @@ export const eVisualFieldType = {
3949
4136
  FT_ADDRESS_COUNTY_TYPE: 678,
3950
4137
  FT_ADDRESS_CITY_TYPE: 679,
3951
4138
  FT_ADDRESS_BUILDING_TYPE: 680,
4139
+ FT_DATE_OF_RETIREMENT: 681,
4140
+ FT_DOCUMENT_STATUS: 682,
3952
4141
  }
3953
4142
 
3954
4143
  export const DocReaderOrientation = {
@@ -3992,7 +4181,7 @@ export const LCID = {
3992
4181
  BANK_CARD_NUMBER: 10000,
3993
4182
  BANK_CARD_VALID_THRU: 10001,
3994
4183
  BELARUSIAN: 1059,
3995
- BENGALI: 2117,
4184
+ BENGALI_BANGLADESH: 2117,
3996
4185
  BULGARIAN: 1026,
3997
4186
  CATALAN: 1027,
3998
4187
  CHINESE_HONGKONG_SAR: 3076,
@@ -4058,6 +4247,7 @@ export const LCID = {
4058
4247
  LITHUANIAN: 1063,
4059
4248
  MALAY_MALAYSIA: 1086,
4060
4249
  MALAY_BRUNEI_DARUSSALAM: 2110,
4250
+ ASSAMESE: 1101,
4061
4251
  MARATHI: 1102,
4062
4252
  MONGOLIAN_CYRILIC: 1104,
4063
4253
  NORWEGIAN_BOKMAL: 1044,
@@ -4104,6 +4294,7 @@ export const LCID = {
4104
4294
  SYRIAC: 1114,
4105
4295
  TAMIL: 1097,
4106
4296
  TATAR: 1092,
4297
+ BENGALI_INDIA: 1093,
4107
4298
  TELUGU: 1098,
4108
4299
  THAI_THAILAND: 1054,
4109
4300
  TURKISH: 1055,
@@ -4116,6 +4307,18 @@ export const LCID = {
4116
4307
  VIETNAMESE: 1066,
4117
4308
  CTC_SIMPLIFIED: 50001,
4118
4309
  CTC_TRADITIONAL: 50002,
4310
+ MALTESE: 1082,
4311
+ BURMESE: 1109,
4312
+ KHMER: 1107,
4313
+ KARAKALPAK_LATIN: 10012,
4314
+ MALAYALAM: 1100,
4315
+ NEPALI: 1121,
4316
+ ORIYA: 1096,
4317
+ URDU_DETECTION: 10560,
4318
+ }
4319
+
4320
+ export const CustomizationImage = {
4321
+ RFID_PROCESSING_SCREEN_FAILURE_IMAGE: "rfidProcessingScreenFailureImage",
4119
4322
  }
4120
4323
 
4121
4324
  export const DocReaderFrame = {
@@ -4195,6 +4398,7 @@ export const UIViewContentMode = {
4195
4398
  export const Enum = {
4196
4399
  FontStyle,
4197
4400
  eRPRM_Authenticity,
4401
+ CustomizationColor,
4198
4402
  eRFID_ErrorCodes,
4199
4403
  eLDS_ParsingErrorCodes,
4200
4404
  eRFID_CertificateType,
@@ -4218,6 +4422,7 @@ export const Enum = {
4218
4422
  eCheckDiagnose,
4219
4423
  RFIDDelegate,
4220
4424
  TextProcessing,
4425
+ AnimationImage,
4221
4426
  ProcessingFinishedStatus,
4222
4427
  DocFormat,
4223
4428
  eLDS_ParsingNotificationCodes,
@@ -4228,8 +4433,10 @@ export const Enum = {
4228
4433
  OnlineMode,
4229
4434
  eRFID_SDK_ProfilerType,
4230
4435
  diDocType,
4436
+ ButtonTag,
4231
4437
  HoloAnimationType,
4232
4438
  eRequestCommand,
4439
+ CustomizationFont,
4233
4440
  ImageFormat,
4234
4441
  eGraphicFieldType,
4235
4442
  RegDeviceConfigType,
@@ -4241,6 +4448,7 @@ export const Enum = {
4241
4448
  eVisualFieldType,
4242
4449
  DocReaderOrientation,
4243
4450
  LCID,
4451
+ CustomizationImage,
4244
4452
  DocReaderFrame,
4245
4453
  eRPRM_Lights,
4246
4454
  LineCap,
@@ -4251,98 +4459,51 @@ export const Enum = {
4251
4459
  }
4252
4460
 
4253
4461
  export default class DocumentReader {
4254
- static initializeReaderAutomatically(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4255
- static isBlePermissionsGranted(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4256
- static startBluetoothService(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4257
- static initializeReaderBleDeviceConfig(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4258
- static getTag(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4259
- static getAPIVersion(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4260
- static getAvailableScenarios(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4261
- static isRFIDAvailableForUse(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4262
- static getCoreMode(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4263
- static getCoreVersion(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4264
- static getDatabaseDate(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4265
- static getDatabaseID(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4266
- static getDatabaseVersion(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4267
4462
  static getDocumentReaderIsReady(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4268
4463
  static getDocumentReaderStatus(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4269
- static getDatabaseCountriesNumber(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4270
- static getDatabaseDocumentsNumber(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4271
- static selectedScenario(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4272
- static getSessionLogFolder(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4273
- static getDatabaseDescription(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4274
- /**
4275
- * @deprecated
4276
- */
4277
- static showScanner(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4278
- static startNewPage(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4279
- static startNewSession(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4280
- static startRFIDReader(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4281
- static stopRFIDReader(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4282
- static stopRFIDReaderWithErrorMessage(message: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4283
- static stopScanner(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4284
- static deinitializeReader(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4285
4464
  static isAuthenticatorAvailableForUse(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4286
- static getConfig(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4465
+ static isBlePermissionsGranted(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4466
+ static getRfidSessionStatus(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4467
+ static setRfidSessionStatus(status: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4468
+ static getTag(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4469
+ static setTag(tag: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4470
+ static getFunctionality(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4471
+ static setFunctionality(functionality: any, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4472
+ static getProcessParams(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4473
+ static setProcessParams(processParams: any, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4474
+ static getCustomization(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4475
+ static setCustomization(customization: any, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4287
4476
  static getRfidScenario(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4288
- static getLicenseExpiryDate(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4289
- static getLicenseCountryFilter(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4290
- static licenseIsRfidAvailable(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4291
- static getCameraSessionIsPaused(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4477
+ static setRfidScenario(rfidScenario: any, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4478
+ static initializeReader(config: any, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4479
+ static initializeReaderWithBleDeviceConfig(config: any, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4480
+ static deinitializeReader(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4481
+ static prepareDatabase(databaseType: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4292
4482
  static removeDatabase(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4483
+ static runAutoUpdate(databaseId: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4293
4484
  static cancelDBUpdate(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4294
- static resetConfiguration(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4295
- static clearPKDCertificates(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4296
- static readRFID(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4297
- static getRfidSessionStatus(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4298
- static setRfidDelegate(delegate: number, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4299
- static setEnableCoreLogs(logs: boolean, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4300
- static addPKDCertificates(certificates: PKDCertificate[], successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4301
- static setCameraSessionIsPaused(paused: boolean, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4302
- static setTag(tag: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4303
4485
  static checkDatabaseUpdate(databaseId: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4304
4486
  static scan(config: any, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4305
4487
  static recognize(config: any, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4306
- /**
4307
- * @deprecated
4308
- */
4309
- static recognizeImages(images: string[], successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4310
- /**
4311
- * @deprecated
4312
- */
4313
- static showScannerWithCameraID(cameraID: number, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4314
- static runAutoUpdate(databaseType: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4315
- static setConfig(config: any, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4316
- static setRfidScenario(scenario: any, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4317
- static initializeReader(config: any, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4318
- static prepareDatabase(databaseType: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4319
- /**
4320
- * @deprecated
4321
- */
4322
- static recognizeImage(image: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4323
- /**
4324
- * @deprecated
4325
- */
4326
- static recognizeData(data: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4327
- static setRfidSessionStatus(status: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4488
+ static startNewPage(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4489
+ static stopScanner(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4490
+ static startRFIDReader(requestPACertificates: boolean, requestTACertificates: boolean, requestTASignature: boolean, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4491
+ static stopRFIDReader(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4492
+ static readRFID(requestPACertificates: boolean, requestTACertificates: boolean, requestTASignature: boolean, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4328
4493
  static providePACertificates(certificates: PKDCertificate[], successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4329
4494
  static provideTACertificates(certificates: PKDCertificate[], successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4330
4495
  static provideTASignature(signature: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4331
- static parseCoreResults(json: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4332
4496
  static setTCCParams(params: any, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4333
- /**
4334
- * @deprecated
4335
- */
4336
- static recognizeImageWithOpts(image: string, options: any, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4337
- static recognizeVideoFrame(byteString: string, params: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4338
- /**
4339
- * @deprecated
4340
- */
4341
- static showScannerWithCameraIDAndOpts(cameraID: number, options: any, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4342
- static recognizeImageWithCameraMode(image: string, mode: boolean, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4343
- /**
4344
- * @deprecated
4345
- */
4346
- static recognizeImagesWithImageInputs(images: ImageInputData[], successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4347
- static setLanguage(language: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4497
+ static addPKDCertificates(certificates: PKDCertificate[], successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4498
+ static clearPKDCertificates(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4499
+ static startNewSession(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4500
+ static startBluetoothService(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4501
+ static setLocalizationDictionary(dictionary: any, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4502
+ static getLicense(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4503
+ static getAvailableScenarios(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4504
+ static getIsRFIDAvailableForUse(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4505
+ static getDocReaderVersion(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4506
+ static getDocReaderDocumentsDatabase(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4507
+ static getTranslation(className: string, value: number, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4508
+ static finalizePackage(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
4348
4509
  }