@regulaforensics/react-native-document-reader-api 6.5.0 → 6.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -185,6 +185,8 @@ export class DocumentReaderValue {
185
185
  originalValue?: string
186
186
  boundRect?: Rect
187
187
  comparison?: Record<number, number>
188
+ originalSymbols?: DocumentReaderSymbol[]
189
+ rfidOrigin?: DocumentReaderRfidOrigin
188
190
 
189
191
  static fromJson(jsonObject?: any): DocumentReaderValue | undefined {
190
192
  if (jsonObject == null || jsonObject == undefined) return undefined
@@ -203,6 +205,15 @@ export class DocumentReaderValue {
203
205
  result.comparison[i as unknown as number] = jsonObject["comparison"][i]
204
206
  }
205
207
  }
208
+ result.originalSymbols = []
209
+ if (jsonObject["originalSymbols"] != null) {
210
+ for (const i in jsonObject["originalSymbols"]) {
211
+ const item = DocumentReaderSymbol.fromJson(jsonObject["originalSymbols"][i])
212
+ if (item != undefined)
213
+ result.originalSymbols.push(item)
214
+ }
215
+ }
216
+ result.rfidOrigin = DocumentReaderRfidOrigin.fromJson(jsonObject["rfidOrigin"])
206
217
 
207
218
  return result
208
219
  }
@@ -214,8 +225,11 @@ export class DocumentReaderTextField {
214
225
  status?: number
215
226
  lcidName?: string
216
227
  fieldName?: string
217
- value?: DocumentReaderValue
228
+ value?: string
229
+ getValue?: DocumentReaderValue
218
230
  values?: DocumentReaderValue[]
231
+ comparisonList?: DocumentReaderComparison[]
232
+ validityList?: DocumentReaderValidity[]
219
233
 
220
234
  static fromJson(jsonObject?: any): DocumentReaderTextField | undefined {
221
235
  if (jsonObject == null || jsonObject == undefined) return undefined
@@ -226,7 +240,8 @@ export class DocumentReaderTextField {
226
240
  result.status = jsonObject["status"]
227
241
  result.lcidName = jsonObject["lcidName"]
228
242
  result.fieldName = jsonObject["fieldName"]
229
- result.value = DocumentReaderValue.fromJson(jsonObject["value"])
243
+ result.value = jsonObject["value"]
244
+ result.getValue = DocumentReaderValue.fromJson(jsonObject["getValue"])
230
245
  result.values = []
231
246
  if (jsonObject["values"] != null) {
232
247
  for (const i in jsonObject["values"]) {
@@ -235,6 +250,22 @@ export class DocumentReaderTextField {
235
250
  result.values.push(item)
236
251
  }
237
252
  }
253
+ result.comparisonList = []
254
+ if (jsonObject["comparisonList"] != null) {
255
+ for (const i in jsonObject["comparisonList"]) {
256
+ const item = DocumentReaderComparison.fromJson(jsonObject["comparisonList"][i])
257
+ if (item != undefined)
258
+ result.comparisonList.push(item)
259
+ }
260
+ }
261
+ result.validityList = []
262
+ if (jsonObject["validityList"] != null) {
263
+ for (const i in jsonObject["validityList"]) {
264
+ const item = DocumentReaderValidity.fromJson(jsonObject["validityList"][i])
265
+ if (item != undefined)
266
+ result.validityList.push(item)
267
+ }
268
+ }
238
269
 
239
270
  return result
240
271
  }
@@ -242,6 +273,9 @@ export class DocumentReaderTextField {
242
273
 
243
274
  export class DocumentReaderTextResult {
244
275
  status?: number
276
+ comparisonStatus?: number
277
+ validityStatus?: number
278
+ availableSourceList?: DocumentReaderTextSource[]
245
279
  fields?: DocumentReaderTextField[]
246
280
 
247
281
  static fromJson(jsonObject?: any): DocumentReaderTextResult | undefined {
@@ -249,6 +283,16 @@ export class DocumentReaderTextResult {
249
283
  const result = new DocumentReaderTextResult
250
284
 
251
285
  result.status = jsonObject["status"]
286
+ result.comparisonStatus = jsonObject["comparisonStatus"]
287
+ result.validityStatus = jsonObject["validityStatus"]
288
+ result.availableSourceList = []
289
+ if (jsonObject["availableSourceList"] != null) {
290
+ for (const i in jsonObject["availableSourceList"]) {
291
+ const item = DocumentReaderTextSource.fromJson(jsonObject["availableSourceList"][i])
292
+ if (item != undefined)
293
+ result.availableSourceList.push(item)
294
+ }
295
+ }
252
296
  result.fields = []
253
297
  if (jsonObject["fields"] != null) {
254
298
  for (const i in jsonObject["fields"]) {
@@ -1057,76 +1101,14 @@ export class RfidNotificationCompletion {
1057
1101
 
1058
1102
  export class DocumentReaderException {
1059
1103
  errorCode?: number
1060
- localizedMessage?: string
1061
1104
  message?: string
1062
- string?: string
1063
- stackTrace?: StackTraceElement[]
1064
1105
 
1065
1106
  static fromJson(jsonObject?: any): DocumentReaderException | undefined {
1066
1107
  if (jsonObject == null || jsonObject == undefined) return undefined
1067
1108
  const result = new DocumentReaderException
1068
1109
 
1069
1110
  result.errorCode = jsonObject["errorCode"]
1070
- result.localizedMessage = jsonObject["localizedMessage"]
1071
1111
  result.message = jsonObject["message"]
1072
- result.string = jsonObject["string"]
1073
- result.stackTrace = []
1074
- if (jsonObject["stackTrace"] != null) {
1075
- for (const i in jsonObject["stackTrace"]) {
1076
- const item = StackTraceElement.fromJson(jsonObject["stackTrace"][i])
1077
- if (item != undefined)
1078
- result.stackTrace.push(item)
1079
- }
1080
- }
1081
-
1082
- return result
1083
- }
1084
- }
1085
-
1086
- export class Throwable {
1087
- localizedMessage?: string
1088
- message?: string
1089
- string?: string
1090
- stackTrace?: StackTraceElement[]
1091
-
1092
- static fromJson(jsonObject?: any): Throwable | undefined {
1093
- if (jsonObject == null || jsonObject == undefined) return undefined
1094
- const result = new Throwable
1095
-
1096
- result.localizedMessage = jsonObject["localizedMessage"]
1097
- result.message = jsonObject["message"]
1098
- result.string = jsonObject["string"]
1099
- result.stackTrace = []
1100
- if (jsonObject["stackTrace"] != null) {
1101
- for (const i in jsonObject["stackTrace"]) {
1102
- const item = StackTraceElement.fromJson(jsonObject["stackTrace"][i])
1103
- if (item != undefined)
1104
- result.stackTrace.push(item)
1105
- }
1106
- }
1107
-
1108
- return result
1109
- }
1110
- }
1111
-
1112
- export class StackTraceElement {
1113
- lineNumber?: number
1114
- isNativeMethod?: boolean
1115
- className?: string
1116
- fileName?: string
1117
- methodName?: string
1118
- string?: string
1119
-
1120
- static fromJson(jsonObject?: any): StackTraceElement | undefined {
1121
- if (jsonObject == null || jsonObject == undefined) return undefined
1122
- const result = new StackTraceElement
1123
-
1124
- result.lineNumber = jsonObject["lineNumber"]
1125
- result.isNativeMethod = jsonObject["isNativeMethod"]
1126
- result.className = jsonObject["className"]
1127
- result.fileName = jsonObject["fileName"]
1128
- result.methodName = jsonObject["methodName"]
1129
- result.string = jsonObject["string"]
1130
1112
 
1131
1113
  return result
1132
1114
  }
@@ -1375,68 +1357,6 @@ export class BytesData {
1375
1357
  }
1376
1358
  }
1377
1359
 
1378
- export class DocumentReaderUvFiberElement {
1379
- rectArray?: DocReaderFieldRect[]
1380
- rectCount?: number
1381
- expectedCount?: number
1382
- width?: number[]
1383
- length?: number[]
1384
- area?: number[]
1385
- colorValues?: number[]
1386
- status?: number
1387
- elementType?: number
1388
- elementDiagnose?: number
1389
- elementTypeName?: string
1390
- elementDiagnoseName?: string
1391
-
1392
- static fromJson(jsonObject?: any): DocumentReaderUvFiberElement | undefined {
1393
- if (jsonObject == null || jsonObject == undefined) return undefined
1394
- const result = new DocumentReaderUvFiberElement
1395
-
1396
- result.rectArray = []
1397
- if (jsonObject["rectArray"] != null) {
1398
- for (const i in jsonObject["rectArray"]) {
1399
- const item = DocReaderFieldRect.fromJson(jsonObject["rectArray"][i])
1400
- if (item != undefined)
1401
- result.rectArray.push(item)
1402
- }
1403
- }
1404
- result.rectCount = jsonObject["rectCount"]
1405
- result.expectedCount = jsonObject["expectedCount"]
1406
- result.width = []
1407
- if (jsonObject["width"] != null) {
1408
- for (const i in jsonObject["width"]) {
1409
- result.width.push(jsonObject["width"][i])
1410
- }
1411
- }
1412
- result.length = []
1413
- if (jsonObject["length"] != null) {
1414
- for (const i in jsonObject["length"]) {
1415
- result.length.push(jsonObject["length"][i])
1416
- }
1417
- }
1418
- result.area = []
1419
- if (jsonObject["area"] != null) {
1420
- for (const i in jsonObject["area"]) {
1421
- result.area.push(jsonObject["area"][i])
1422
- }
1423
- }
1424
- result.colorValues = []
1425
- if (jsonObject["colorValues"] != null) {
1426
- for (const i in jsonObject["colorValues"]) {
1427
- result.colorValues.push(jsonObject["colorValues"][i])
1428
- }
1429
- }
1430
- result.status = jsonObject["status"]
1431
- result.elementType = jsonObject["elementType"]
1432
- result.elementDiagnose = jsonObject["elementDiagnose"]
1433
- result.elementTypeName = jsonObject["elementTypeName"]
1434
- result.elementDiagnoseName = jsonObject["elementDiagnoseName"]
1435
-
1436
- return result
1437
- }
1438
- }
1439
-
1440
1360
  export class ImageInputData {
1441
1361
  pageIndex?: number
1442
1362
  light?: number
@@ -1467,6 +1387,114 @@ export class ImageInputData {
1467
1387
  }
1468
1388
  }
1469
1389
 
1390
+ export class DocReaderDocumentsDatabase {
1391
+ databaseID?: string
1392
+ version?: string
1393
+ date?: string
1394
+ databaseDescription?: string
1395
+ countriesNumber?: number
1396
+ documentsNumber?: number
1397
+
1398
+ static fromJson(jsonObject?: any): DocReaderDocumentsDatabase | undefined {
1399
+ if (jsonObject == null || jsonObject == undefined) return undefined
1400
+ const result = new DocReaderDocumentsDatabase
1401
+
1402
+ result.databaseID = jsonObject["databaseID"]
1403
+ result.version = jsonObject["version"]
1404
+ result.date = jsonObject["date"]
1405
+ result.databaseDescription = jsonObject["databaseDescription"]
1406
+ result.countriesNumber = jsonObject["countriesNumber"]
1407
+ result.documentsNumber = jsonObject["documentsNumber"]
1408
+
1409
+ return result
1410
+ }
1411
+ }
1412
+
1413
+ export class DocumentReaderComparison {
1414
+ sourceTypeLeft?: number
1415
+ sourceTypeRight?: number
1416
+ status?: number
1417
+
1418
+ static fromJson(jsonObject?: any): DocumentReaderComparison | undefined {
1419
+ if (jsonObject == null || jsonObject == undefined) return undefined
1420
+ const result = new DocumentReaderComparison
1421
+
1422
+ result.sourceTypeLeft = jsonObject["sourceTypeLeft"]
1423
+ result.sourceTypeRight = jsonObject["sourceTypeRight"]
1424
+ result.status = jsonObject["status"]
1425
+
1426
+ return result
1427
+ }
1428
+ }
1429
+
1430
+ export class DocumentReaderRfidOrigin {
1431
+ dg?: number
1432
+ dgTag?: number
1433
+ entryView?: number
1434
+ tagEntry?: number
1435
+
1436
+ static fromJson(jsonObject?: any): DocumentReaderRfidOrigin | undefined {
1437
+ if (jsonObject == null || jsonObject == undefined) return undefined
1438
+ const result = new DocumentReaderRfidOrigin
1439
+
1440
+ result.dg = jsonObject["dg"]
1441
+ result.dgTag = jsonObject["dgTag"]
1442
+ result.entryView = jsonObject["entryView"]
1443
+ result.tagEntry = jsonObject["tagEntry"]
1444
+
1445
+ return result
1446
+ }
1447
+ }
1448
+
1449
+ export class DocumentReaderTextSource {
1450
+ sourceType?: number
1451
+ source?: string
1452
+ validityStatus?: number
1453
+
1454
+ static fromJson(jsonObject?: any): DocumentReaderTextSource | undefined {
1455
+ if (jsonObject == null || jsonObject == undefined) return undefined
1456
+ const result = new DocumentReaderTextSource
1457
+
1458
+ result.sourceType = jsonObject["sourceType"]
1459
+ result.source = jsonObject["source"]
1460
+ result.validityStatus = jsonObject["validityStatus"]
1461
+
1462
+ return result
1463
+ }
1464
+ }
1465
+
1466
+ export class DocumentReaderSymbol {
1467
+ code?: number
1468
+ rect?: Rect
1469
+ probability?: number
1470
+
1471
+ static fromJson(jsonObject?: any): DocumentReaderSymbol | undefined {
1472
+ if (jsonObject == null || jsonObject == undefined) return undefined
1473
+ const result = new DocumentReaderSymbol
1474
+
1475
+ result.code = jsonObject["code"]
1476
+ result.rect = Rect.fromJson(jsonObject["rect"])
1477
+ result.probability = jsonObject["probability"]
1478
+
1479
+ return result
1480
+ }
1481
+ }
1482
+
1483
+ export class DocumentReaderValidity {
1484
+ sourceType?: number
1485
+ status?: number
1486
+
1487
+ static fromJson(jsonObject?: any): DocumentReaderValidity | undefined {
1488
+ if (jsonObject == null || jsonObject == undefined) return undefined
1489
+ const result = new DocumentReaderValidity
1490
+
1491
+ result.sourceType = jsonObject["sourceType"]
1492
+ result.status = jsonObject["status"]
1493
+
1494
+ return result
1495
+ }
1496
+ }
1497
+
1470
1498
  export class DocumentReaderResults {
1471
1499
  chipPage?: number
1472
1500
  processingFinishedStatus?: number
@@ -1727,6 +1755,7 @@ export const eRPRM_Authenticity = {
1727
1755
  BARCODE_FORMAT_CHECK: 65536,
1728
1756
  KINEGRAM: 131072,
1729
1757
  HOLOGRAMS_DETECTION: 524288,
1758
+ MRZ: 8388608,
1730
1759
  }
1731
1760
 
1732
1761
  export const eRFID_ErrorCodes = {
@@ -2796,6 +2825,7 @@ export const eCheckDiagnose = {
2796
2825
  FALSE_IPI_PARAMETERS: 65,
2797
2826
  FIELD_POS_CORRECTOR_HIGHLIGHT_IR: 80,
2798
2827
  FIELD_POS_CORRECTOR_GLARES_IN_PHOTO_AREA: 81,
2828
+ FIELD_POS_CORRECTOR_PHOTO_REPLACED: 82,
2799
2829
  OVI_IR_INVISIBLE: 90,
2800
2830
  OVI_INSUFFICIENT_AREA: 91,
2801
2831
  OVI_COLOR_INVARIABLE: 92,
@@ -2848,7 +2878,9 @@ export const eCheckDiagnose = {
2848
2878
  FINISHED_BY_TIMEOUT: 186,
2849
2879
  HOLO_PHOTO_DOCUMENT_OUTSIDE_FRAME: 187,
2850
2880
  LIVENESS_DEPTH_CHECK_FAILED: 190,
2851
- LAST_DIAGNOSE_VALUE: 200,
2881
+ MRZ_QUALITY_WRONG_MRZ_DPI: 200,
2882
+ MRZ_QUALITY_WRONG_BACKGROUND: 201,
2883
+ LAST_DIAGNOSE_VALUE: 210,
2852
2884
  }
2853
2885
 
2854
2886
  export const RFIDDelegate = {
@@ -6680,6 +6712,10 @@ export const Enum = {
6680
6712
 
6681
6713
  export default class DocumentReader {
6682
6714
  static initializeReaderAutomatically(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
6715
+ static isBlePermissionsGranted(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
6716
+ static startBluetoothService(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
6717
+ static initializeReaderBleDeviceConfig(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
6718
+ static getTag(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
6683
6719
  static getAPIVersion(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
6684
6720
  static getAvailableScenarios(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
6685
6721
  static isRFIDAvailableForUse(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
@@ -6720,6 +6756,8 @@ export default class DocumentReader {
6720
6756
  static setEnableCoreLogs(logs: boolean, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
6721
6757
  static addPKDCertificates(certificates: PKDCertificate[], successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
6722
6758
  static setCameraSessionIsPaused(paused: boolean, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
6759
+ static setTag(tag: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
6760
+ static checkDatabaseUpdate(databaseId: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
6723
6761
  static getScenario(scenario: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
6724
6762
  static recognizeImages(images: string[], successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
6725
6763
  static showScannerWithCameraID(cameraID: number, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
package/index.js CHANGED
@@ -142,6 +142,11 @@ export class DocumentReaderValue {
142
142
  if (jsonObject["comparison"] != null)
143
143
  for (const i in jsonObject["comparison"])
144
144
  result.comparison[i] = jsonObject["comparison"][i]
145
+ result.originalSymbols = []
146
+ if (jsonObject["originalSymbols"] != null)
147
+ for (const i in jsonObject["originalSymbols"])
148
+ result.originalSymbols.push(DocumentReaderSymbol.fromJson(jsonObject["originalSymbols"][i]))
149
+ result.rfidOrigin = DocumentReaderRfidOrigin.fromJson(jsonObject["rfidOrigin"])
145
150
 
146
151
  return result
147
152
  }
@@ -157,11 +162,20 @@ export class DocumentReaderTextField {
157
162
  result.status = jsonObject["status"]
158
163
  result.lcidName = jsonObject["lcidName"]
159
164
  result.fieldName = jsonObject["fieldName"]
160
- result.value = DocumentReaderValue.fromJson(jsonObject["value"])
165
+ result.value = jsonObject["value"]
166
+ result.getValue = DocumentReaderValue.fromJson(jsonObject["getValue"])
161
167
  result.values = []
162
168
  if (jsonObject["values"] != null)
163
169
  for (const i in jsonObject["values"])
164
170
  result.values.push(DocumentReaderValue.fromJson(jsonObject["values"][i]))
171
+ result.comparisonList = []
172
+ if (jsonObject["comparisonList"] != null)
173
+ for (const i in jsonObject["comparisonList"])
174
+ result.comparisonList.push(DocumentReaderComparison.fromJson(jsonObject["comparisonList"][i]))
175
+ result.validityList = []
176
+ if (jsonObject["validityList"] != null)
177
+ for (const i in jsonObject["validityList"])
178
+ result.validityList.push(DocumentReaderValidity.fromJson(jsonObject["validityList"][i]))
165
179
 
166
180
  return result
167
181
  }
@@ -173,6 +187,12 @@ export class DocumentReaderTextResult {
173
187
  const result = new DocumentReaderTextResult()
174
188
 
175
189
  result.status = jsonObject["status"]
190
+ result.comparisonStatus = jsonObject["comparisonStatus"]
191
+ result.validityStatus = jsonObject["validityStatus"]
192
+ result.availableSourceList = []
193
+ if (jsonObject["availableSourceList"] != null)
194
+ for (const i in jsonObject["availableSourceList"])
195
+ result.availableSourceList.push(DocumentReaderTextSource.fromJson(jsonObject["availableSourceList"][i]))
176
196
  result.fields = []
177
197
  if (jsonObject["fields"] != null)
178
198
  for (const i in jsonObject["fields"])
@@ -718,46 +738,7 @@ export class DocumentReaderException {
718
738
  const result = new DocumentReaderException()
719
739
 
720
740
  result.errorCode = jsonObject["errorCode"]
721
- result.localizedMessage = jsonObject["localizedMessage"]
722
741
  result.message = jsonObject["message"]
723
- result.string = jsonObject["string"]
724
- result.stackTrace = []
725
- if (jsonObject["stackTrace"] != null)
726
- for (const i in jsonObject["stackTrace"])
727
- result.stackTrace.push(StackTraceElement.fromJson(jsonObject["stackTrace"][i]))
728
-
729
- return result
730
- }
731
- }
732
-
733
- export class Throwable {
734
- static fromJson(jsonObject) {
735
- if (jsonObject == null) return null
736
- const result = new Throwable()
737
-
738
- result.localizedMessage = jsonObject["localizedMessage"]
739
- result.message = jsonObject["message"]
740
- result.string = jsonObject["string"]
741
- result.stackTrace = []
742
- if (jsonObject["stackTrace"] != null)
743
- for (const i in jsonObject["stackTrace"])
744
- result.stackTrace.push(StackTraceElement.fromJson(jsonObject["stackTrace"][i]))
745
-
746
- return result
747
- }
748
- }
749
-
750
- export class StackTraceElement {
751
- static fromJson(jsonObject) {
752
- if (jsonObject == null) return null
753
- const result = new StackTraceElement()
754
-
755
- result.lineNumber = jsonObject["lineNumber"]
756
- result.isNativeMethod = jsonObject["isNativeMethod"]
757
- result.className = jsonObject["className"]
758
- result.fileName = jsonObject["fileName"]
759
- result.methodName = jsonObject["methodName"]
760
- result.string = jsonObject["string"]
761
742
 
762
743
  return result
763
744
  }
@@ -930,43 +911,6 @@ export class BytesData {
930
911
  }
931
912
  }
932
913
 
933
- export class DocumentReaderUvFiberElement {
934
- static fromJson(jsonObject) {
935
- if (jsonObject == null) return null
936
- const result = new DocumentReaderUvFiberElement()
937
-
938
- result.rectArray = []
939
- if (jsonObject["rectArray"] != null)
940
- for (const i in jsonObject["rectArray"])
941
- result.rectArray.push(DocReaderFieldRect.fromJson(jsonObject["rectArray"][i]))
942
- result.rectCount = jsonObject["rectCount"]
943
- result.expectedCount = jsonObject["expectedCount"]
944
- result.width = []
945
- if (jsonObject["width"] != null)
946
- for (const i in jsonObject["width"])
947
- result.width.push(jsonObject["width"][i])
948
- result.length = []
949
- if (jsonObject["length"] != null)
950
- for (const i in jsonObject["length"])
951
- result.length.push(jsonObject["length"][i])
952
- result.area = []
953
- if (jsonObject["area"] != null)
954
- for (const i in jsonObject["area"])
955
- result.area.push(jsonObject["area"][i])
956
- result.colorValues = []
957
- if (jsonObject["colorValues"] != null)
958
- for (const i in jsonObject["colorValues"])
959
- result.colorValues.push(jsonObject["colorValues"][i])
960
- result.status = jsonObject["status"]
961
- result.elementType = jsonObject["elementType"]
962
- result.elementDiagnose = jsonObject["elementDiagnose"]
963
- result.elementTypeName = jsonObject["elementTypeName"]
964
- result.elementDiagnoseName = jsonObject["elementDiagnoseName"]
965
-
966
- return result
967
- }
968
- }
969
-
970
914
  export class ImageInputData {
971
915
  static fromJson(jsonObject) {
972
916
  if (jsonObject == null) return null
@@ -987,6 +931,87 @@ export class ImageInputData {
987
931
  }
988
932
  }
989
933
 
934
+ export class DocReaderDocumentsDatabase {
935
+ static fromJson(jsonObject) {
936
+ if (jsonObject == null) return null
937
+ const result = new DocReaderDocumentsDatabase()
938
+
939
+ result.databaseID = jsonObject["databaseID"]
940
+ result.version = jsonObject["version"]
941
+ result.date = jsonObject["date"]
942
+ result.databaseDescription = jsonObject["databaseDescription"]
943
+ result.countriesNumber = jsonObject["countriesNumber"]
944
+ result.documentsNumber = jsonObject["documentsNumber"]
945
+
946
+ return result
947
+ }
948
+ }
949
+
950
+ export class DocumentReaderComparison {
951
+ static fromJson(jsonObject) {
952
+ if (jsonObject == null) return null
953
+ const result = new DocumentReaderComparison()
954
+
955
+ result.sourceTypeLeft = jsonObject["sourceTypeLeft"]
956
+ result.sourceTypeRight = jsonObject["sourceTypeRight"]
957
+ result.status = jsonObject["status"]
958
+
959
+ return result
960
+ }
961
+ }
962
+
963
+ export class DocumentReaderRfidOrigin {
964
+ static fromJson(jsonObject) {
965
+ if (jsonObject == null) return null
966
+ const result = new DocumentReaderRfidOrigin()
967
+
968
+ result.dg = jsonObject["dg"]
969
+ result.dgTag = jsonObject["dgTag"]
970
+ result.entryView = jsonObject["entryView"]
971
+ result.tagEntry = jsonObject["tagEntry"]
972
+
973
+ return result
974
+ }
975
+ }
976
+
977
+ export class DocumentReaderTextSource {
978
+ static fromJson(jsonObject) {
979
+ if (jsonObject == null) return null
980
+ const result = new DocumentReaderTextSource()
981
+
982
+ result.sourceType = jsonObject["sourceType"]
983
+ result.source = jsonObject["source"]
984
+ result.validityStatus = jsonObject["validityStatus"]
985
+
986
+ return result
987
+ }
988
+ }
989
+
990
+ export class DocumentReaderSymbol {
991
+ static fromJson(jsonObject) {
992
+ if (jsonObject == null) return null
993
+ const result = new DocumentReaderSymbol()
994
+
995
+ result.code = jsonObject["code"]
996
+ result.rect = Rect.fromJson(jsonObject["rect"])
997
+ result.probability = jsonObject["probability"]
998
+
999
+ return result
1000
+ }
1001
+ }
1002
+
1003
+ export class DocumentReaderValidity {
1004
+ static fromJson(jsonObject) {
1005
+ if (jsonObject == null) return null
1006
+ const result = new DocumentReaderValidity()
1007
+
1008
+ result.sourceType = jsonObject["sourceType"]
1009
+ result.status = jsonObject["status"]
1010
+
1011
+ return result
1012
+ }
1013
+ }
1014
+
990
1015
  export class DocumentReaderResults {
991
1016
  getTextFieldValueByType({ fieldType, lcid = 0, source = -1, original = false }) {
992
1017
  if (this.textResult == null) return null
@@ -1202,6 +1227,7 @@ export const eRPRM_Authenticity = {
1202
1227
  BARCODE_FORMAT_CHECK: 65536,
1203
1228
  KINEGRAM: 131072,
1204
1229
  HOLOGRAMS_DETECTION: 524288,
1230
+ MRZ: 8388608,
1205
1231
  }
1206
1232
 
1207
1233
  export const eRFID_ErrorCodes = {
@@ -2271,6 +2297,7 @@ export const eCheckDiagnose = {
2271
2297
  FALSE_IPI_PARAMETERS: 65,
2272
2298
  FIELD_POS_CORRECTOR_HIGHLIGHT_IR: 80,
2273
2299
  FIELD_POS_CORRECTOR_GLARES_IN_PHOTO_AREA: 81,
2300
+ FIELD_POS_CORRECTOR_PHOTO_REPLACED: 82,
2274
2301
  OVI_IR_INVISIBLE: 90,
2275
2302
  OVI_INSUFFICIENT_AREA: 91,
2276
2303
  OVI_COLOR_INVARIABLE: 92,
@@ -2323,7 +2350,9 @@ export const eCheckDiagnose = {
2323
2350
  FINISHED_BY_TIMEOUT: 186,
2324
2351
  HOLO_PHOTO_DOCUMENT_OUTSIDE_FRAME: 187,
2325
2352
  LIVENESS_DEPTH_CHECK_FAILED: 190,
2326
- LAST_DIAGNOSE_VALUE: 200,
2353
+ MRZ_QUALITY_WRONG_MRZ_DPI: 200,
2354
+ MRZ_QUALITY_WRONG_BACKGROUND: 201,
2355
+ LAST_DIAGNOSE_VALUE: 210,
2327
2356
  }
2328
2357
 
2329
2358
  export const RFIDDelegate = {
@@ -6156,6 +6185,10 @@ export const Enum = {
6156
6185
  const DocumentReader = {}
6157
6186
 
6158
6187
  DocumentReader.initializeReaderAutomatically = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "initializeReaderAutomatically", [], successCallback, errorCallback)
6188
+ DocumentReader.isBlePermissionsGranted = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "isBlePermissionsGranted", [], successCallback, errorCallback)
6189
+ DocumentReader.startBluetoothService = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "startBluetoothService", [], successCallback, errorCallback)
6190
+ DocumentReader.initializeReaderBleDeviceConfig = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "initializeReaderBleDeviceConfig", [], successCallback, errorCallback)
6191
+ DocumentReader.getTag = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getTag", [], successCallback, errorCallback)
6159
6192
  DocumentReader.getAPIVersion = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getAPIVersion", [], successCallback, errorCallback)
6160
6193
  DocumentReader.getAvailableScenarios = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getAvailableScenarios", [], successCallback, errorCallback)
6161
6194
  DocumentReader.isRFIDAvailableForUse = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "isRFIDAvailableForUse", [], successCallback, errorCallback)
@@ -6196,6 +6229,8 @@ DocumentReader.setRfidDelegate = (delegate, successCallback, errorCallback) => R
6196
6229
  DocumentReader.setEnableCoreLogs = (logs, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "setEnableCoreLogs", [logs], successCallback, errorCallback)
6197
6230
  DocumentReader.addPKDCertificates = (certificates, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "addPKDCertificates", [certificates], successCallback, errorCallback)
6198
6231
  DocumentReader.setCameraSessionIsPaused = (paused, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "setCameraSessionIsPaused", [paused], successCallback, errorCallback)
6232
+ DocumentReader.setTag = (tag, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "setTag", [tag], successCallback, errorCallback)
6233
+ DocumentReader.checkDatabaseUpdate = (databaseId, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "checkDatabaseUpdate", [databaseId], successCallback, errorCallback)
6199
6234
  DocumentReader.getScenario = (scenario, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getScenario", [scenario], successCallback, errorCallback)
6200
6235
  DocumentReader.recognizeImages = (images, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "recognizeImages", [images], successCallback, errorCallback)
6201
6236
  DocumentReader.showScannerWithCameraID = (cameraID, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "showScannerWithCameraID", [cameraID], successCallback, errorCallback)
@@ -65,6 +65,12 @@
65
65
  +(NSMutableDictionary* _Nonnull)generateRGLBytesData:(RGLBytesData* _Nullable)input;
66
66
  +(NSMutableDictionary* _Nonnull)generateRGLRFIDNotify:(RGLRFIDNotify* _Nullable)input;
67
67
  +(NSMutableDictionary* _Nonnull)generateRGLUVFiberElement:(RGLUVFiberElement* _Nullable)input;
68
+ +(NSMutableDictionary* _Nonnull)generateRGLDocReaderDocumentsDatabase:(RGLDocReaderDocumentsDatabase* _Nullable)input;
69
+ +(NSMutableDictionary* _Nonnull)generateRGLDocumentReaderComparison:(RGLDocumentReaderComparison* _Nullable)input;
70
+ +(NSMutableDictionary* _Nonnull)generateRGLDocumentReaderValidity:(RGLDocumentReaderValidity* _Nullable)input;
71
+ +(NSMutableDictionary* _Nonnull)generateRGLDocumentReaderSymbol:(RGLDocumentReaderSymbol* _Nullable)input;
72
+ +(NSMutableDictionary* _Nonnull)generateRGLDocumentReaderTextSource:(RGLDocumentReaderTextSource* _Nullable)input;
73
+ +(NSMutableDictionary* _Nonnull)generateRGLDocumentReaderRfidOrigin:(RGLDocumentReaderRfidOrigin* _Nullable)input;
68
74
  +(NSMutableDictionary* _Nonnull)generateRGLElementRect:(RGLElementRect* _Nullable)input;
69
75
 
70
76
  @end