@regulaforensics/react-native-document-reader-api 7.1.0 → 7.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/RNDocumentReaderApi.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/regula/documentreader/Config.kt +10 -8
- package/android/src/main/java/com/regula/documentreader/JSONConstructor.kt +15 -5
- package/android/src/main/java/com/regula/documentreader/RNRegulaDocumentReaderModule.kt +13 -15
- package/android/src/main/java/com/regula/documentreader/Utils.kt +21 -16
- package/example/App.tsx +5 -5
- package/example/android/gradle.properties +1 -1
- package/example/ios/Podfile +2 -20
- package/example/package-lock.json +1064 -932
- package/example/package.json +27 -28
- package/example/react-native.config.js +5 -0
- package/index.d.ts +1234 -466
- package/index.js +659 -207
- package/ios/RGLWConfig.m +24 -37
- package/ios/RGLWJSONConstructor.m +30 -39
- package/ios/RNRegulaDocumentReader.h +4 -4
- package/ios/RNRegulaDocumentReader.m +21 -28
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -972,7 +972,7 @@ export class DocumentReaderBarcodeField {
|
|
|
972
972
|
status?: number
|
|
973
973
|
pageIndex?: number
|
|
974
974
|
pdf417Info?: PDF417Info
|
|
975
|
-
data?:
|
|
975
|
+
data?: string
|
|
976
976
|
|
|
977
977
|
static fromJson(jsonObject?: any): DocumentReaderBarcodeField | undefined {
|
|
978
978
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
@@ -982,12 +982,7 @@ export class DocumentReaderBarcodeField {
|
|
|
982
982
|
result.status = jsonObject["status"]
|
|
983
983
|
result.pageIndex = jsonObject["pageIndex"]
|
|
984
984
|
result.pdf417Info = PDF417Info.fromJson(jsonObject["pdf417Info"])
|
|
985
|
-
result.data = []
|
|
986
|
-
if (jsonObject["data"] != null) {
|
|
987
|
-
for (const i in jsonObject["data"]) {
|
|
988
|
-
result.data.push(jsonObject["data"][i])
|
|
989
|
-
}
|
|
990
|
-
}
|
|
985
|
+
result.data = jsonObject["data"]
|
|
991
986
|
|
|
992
987
|
return result
|
|
993
988
|
}
|
|
@@ -1143,7 +1138,7 @@ export class ImageInputParam {
|
|
|
1143
1138
|
}
|
|
1144
1139
|
|
|
1145
1140
|
export class PAResourcesIssuer {
|
|
1146
|
-
data?:
|
|
1141
|
+
data?: string
|
|
1147
1142
|
friendlyName?: string
|
|
1148
1143
|
attributes?: PAAttribute[]
|
|
1149
1144
|
|
|
@@ -1151,12 +1146,7 @@ export class PAResourcesIssuer {
|
|
|
1151
1146
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1152
1147
|
const result = new PAResourcesIssuer
|
|
1153
1148
|
|
|
1154
|
-
result.data = []
|
|
1155
|
-
if (jsonObject["data"] != null) {
|
|
1156
|
-
for (const i in jsonObject["data"]) {
|
|
1157
|
-
result.data.push(jsonObject["data"][i])
|
|
1158
|
-
}
|
|
1159
|
-
}
|
|
1149
|
+
result.data = jsonObject["data"]
|
|
1160
1150
|
result.friendlyName = jsonObject["friendlyName"]
|
|
1161
1151
|
result.attributes = []
|
|
1162
1152
|
if (jsonObject["attributes"] != null) {
|
|
@@ -1187,7 +1177,7 @@ export class PAAttribute {
|
|
|
1187
1177
|
}
|
|
1188
1178
|
|
|
1189
1179
|
export class TAChallenge {
|
|
1190
|
-
data?:
|
|
1180
|
+
data?: string
|
|
1191
1181
|
auxPCD?: string
|
|
1192
1182
|
challengePICC?: string
|
|
1193
1183
|
hashPK?: string
|
|
@@ -1197,12 +1187,7 @@ export class TAChallenge {
|
|
|
1197
1187
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1198
1188
|
const result = new TAChallenge
|
|
1199
1189
|
|
|
1200
|
-
result.data = []
|
|
1201
|
-
if (jsonObject["data"] != null) {
|
|
1202
|
-
for (const i in jsonObject["data"]) {
|
|
1203
|
-
result.data.push(jsonObject["data"][i])
|
|
1204
|
-
}
|
|
1205
|
-
}
|
|
1190
|
+
result.data = jsonObject["data"]
|
|
1206
1191
|
result.auxPCD = jsonObject["auxPCD"]
|
|
1207
1192
|
result.challengePICC = jsonObject["challengePICC"]
|
|
1208
1193
|
result.hashPK = jsonObject["hashPK"]
|
|
@@ -1295,7 +1280,7 @@ export class VDSNCData {
|
|
|
1295
1280
|
type?: string
|
|
1296
1281
|
version?: number
|
|
1297
1282
|
issuingCountry?: string
|
|
1298
|
-
message?: any
|
|
1283
|
+
message?: Record<string, any>
|
|
1299
1284
|
signatureAlgorithm?: string
|
|
1300
1285
|
signature?: BytesData
|
|
1301
1286
|
certificate?: BytesData
|
|
@@ -1358,7 +1343,7 @@ export class ImageInputData {
|
|
|
1358
1343
|
width?: number
|
|
1359
1344
|
height?: number
|
|
1360
1345
|
bitmap?: string
|
|
1361
|
-
imgBytes?:
|
|
1346
|
+
imgBytes?: string
|
|
1362
1347
|
|
|
1363
1348
|
static fromJson(jsonObject?: any): ImageInputData | undefined {
|
|
1364
1349
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
@@ -1370,12 +1355,7 @@ export class ImageInputData {
|
|
|
1370
1355
|
result.width = jsonObject["width"]
|
|
1371
1356
|
result.height = jsonObject["height"]
|
|
1372
1357
|
result.bitmap = jsonObject["bitmap"]
|
|
1373
|
-
result.imgBytes = []
|
|
1374
|
-
if (jsonObject["imgBytes"] != null) {
|
|
1375
|
-
for (const i in jsonObject["imgBytes"]) {
|
|
1376
|
-
result.imgBytes.push(jsonObject["imgBytes"][i])
|
|
1377
|
-
}
|
|
1378
|
-
}
|
|
1358
|
+
result.imgBytes = jsonObject["imgBytes"]
|
|
1379
1359
|
|
|
1380
1360
|
return result
|
|
1381
1361
|
}
|
|
@@ -1491,188 +1471,10 @@ export class DocumentReaderValidity {
|
|
|
1491
1471
|
}
|
|
1492
1472
|
}
|
|
1493
1473
|
|
|
1494
|
-
export class FaceApiParams {
|
|
1495
|
-
url?: string
|
|
1496
|
-
mode?: string
|
|
1497
|
-
searchParams?: Search
|
|
1498
|
-
threshold?: number
|
|
1499
|
-
serviceTimeout?: number
|
|
1500
|
-
proxy?: string
|
|
1501
|
-
proxyPassword?: string
|
|
1502
|
-
proxyType?: number
|
|
1503
|
-
|
|
1504
|
-
static fromJson(jsonObject?: any): FaceApiParams | undefined {
|
|
1505
|
-
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1506
|
-
const result = new FaceApiParams
|
|
1507
|
-
|
|
1508
|
-
result.url = jsonObject["url"]
|
|
1509
|
-
result.mode = jsonObject["mode"]
|
|
1510
|
-
result.searchParams = Search.fromJson(jsonObject["searchParams"])
|
|
1511
|
-
result.threshold = jsonObject["threshold"]
|
|
1512
|
-
result.serviceTimeout = jsonObject["serviceTimeout"]
|
|
1513
|
-
result.proxy = jsonObject["proxy"]
|
|
1514
|
-
result.proxyPassword = jsonObject["proxyPassword"]
|
|
1515
|
-
result.proxyType = jsonObject["proxyType"]
|
|
1516
|
-
|
|
1517
|
-
return result
|
|
1518
|
-
}
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
-
export class Search {
|
|
1522
|
-
limit?: number
|
|
1523
|
-
threshold?: number
|
|
1524
|
-
groupIds?: number[]
|
|
1525
|
-
|
|
1526
|
-
static fromJson(jsonObject?: any): Search | undefined {
|
|
1527
|
-
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1528
|
-
const result = new Search
|
|
1529
|
-
|
|
1530
|
-
result.limit = jsonObject["limit"]
|
|
1531
|
-
result.threshold = jsonObject["threshold"]
|
|
1532
|
-
result.groupIds = []
|
|
1533
|
-
if (jsonObject["groupIds"] != null) {
|
|
1534
|
-
for (const i in jsonObject["groupIds"]) {
|
|
1535
|
-
result.groupIds.push(jsonObject["groupIds"][i])
|
|
1536
|
-
}
|
|
1537
|
-
}
|
|
1538
|
-
|
|
1539
|
-
return result
|
|
1540
|
-
}
|
|
1541
|
-
}
|
|
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
|
-
|
|
1603
|
-
export class ImageQA {
|
|
1604
|
-
dpiThreshold?: number
|
|
1605
|
-
angleThreshold?: number
|
|
1606
|
-
focusCheck?: boolean
|
|
1607
|
-
glaresCheck?: boolean
|
|
1608
|
-
colornessCheck?: boolean
|
|
1609
|
-
screenCapture?: boolean
|
|
1610
|
-
documentPositionIndent?: number
|
|
1611
|
-
expectedPass?: number[]
|
|
1612
|
-
glaresCheckParams?: GlaresCheckParams
|
|
1613
|
-
brightnessThreshold?: number
|
|
1614
|
-
|
|
1615
|
-
static fromJson(jsonObject?: any): ImageQA | undefined {
|
|
1616
|
-
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1617
|
-
const result = new ImageQA
|
|
1618
|
-
|
|
1619
|
-
result.dpiThreshold = jsonObject["dpiThreshold"]
|
|
1620
|
-
result.angleThreshold = jsonObject["angleThreshold"]
|
|
1621
|
-
result.focusCheck = jsonObject["focusCheck"]
|
|
1622
|
-
result.glaresCheck = jsonObject["glaresCheck"]
|
|
1623
|
-
result.colornessCheck = jsonObject["colornessCheck"]
|
|
1624
|
-
result.screenCapture = jsonObject["screenCapture"]
|
|
1625
|
-
result.documentPositionIndent = jsonObject["documentPositionIndent"]
|
|
1626
|
-
result.expectedPass = []
|
|
1627
|
-
if (jsonObject["expectedPass"] != null) {
|
|
1628
|
-
for (const i in jsonObject["expectedPass"]) {
|
|
1629
|
-
result.expectedPass.push(jsonObject["expectedPass"][i])
|
|
1630
|
-
}
|
|
1631
|
-
}
|
|
1632
|
-
result.glaresCheckParams = GlaresCheckParams.fromJson(jsonObject["glaresCheckParams"])
|
|
1633
|
-
result.brightnessThreshold = jsonObject["brightnessThreshold"]
|
|
1634
|
-
|
|
1635
|
-
return result
|
|
1636
|
-
}
|
|
1637
|
-
}
|
|
1638
|
-
|
|
1639
|
-
export class GlaresCheckParams {
|
|
1640
|
-
imgMarginPart?: number
|
|
1641
|
-
maxGlaringPart?: number
|
|
1642
|
-
|
|
1643
|
-
static fromJson(jsonObject?: any): GlaresCheckParams | undefined {
|
|
1644
|
-
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1645
|
-
const result = new GlaresCheckParams
|
|
1646
|
-
|
|
1647
|
-
result.imgMarginPart = jsonObject["imgMarginPart"]
|
|
1648
|
-
result.maxGlaringPart = jsonObject["maxGlaringPart"]
|
|
1649
|
-
|
|
1650
|
-
return result
|
|
1651
|
-
}
|
|
1652
|
-
}
|
|
1653
|
-
|
|
1654
|
-
export class RFIDParams {
|
|
1655
|
-
paIgnoreNotificationCodes?: number[]
|
|
1656
|
-
|
|
1657
|
-
static fromJson(jsonObject?: any): RFIDParams | undefined {
|
|
1658
|
-
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1659
|
-
const result = new RFIDParams
|
|
1660
|
-
|
|
1661
|
-
result.paIgnoreNotificationCodes = []
|
|
1662
|
-
if (jsonObject["paIgnoreNotificationCodes"] != null) {
|
|
1663
|
-
for (const i in jsonObject["paIgnoreNotificationCodes"]) {
|
|
1664
|
-
result.paIgnoreNotificationCodes.push(jsonObject["paIgnoreNotificationCodes"][i])
|
|
1665
|
-
}
|
|
1666
|
-
}
|
|
1667
|
-
|
|
1668
|
-
return result
|
|
1669
|
-
}
|
|
1670
|
-
}
|
|
1671
|
-
|
|
1672
1474
|
export class OnlineProcessingConfig {
|
|
1673
1475
|
mode?: number
|
|
1674
1476
|
url?: string
|
|
1675
|
-
processParam?:
|
|
1477
|
+
processParam?: ProcessParams
|
|
1676
1478
|
imageFormat?: number
|
|
1677
1479
|
imageCompressionQuality?: number
|
|
1678
1480
|
|
|
@@ -1682,7 +1484,7 @@ export class OnlineProcessingConfig {
|
|
|
1682
1484
|
|
|
1683
1485
|
result.mode = jsonObject["mode"]
|
|
1684
1486
|
result.url = jsonObject["url"]
|
|
1685
|
-
result.processParam = jsonObject["processParam"]
|
|
1487
|
+
result.processParam = ProcessParams.fromJson(jsonObject["processParam"])
|
|
1686
1488
|
result.imageFormat = jsonObject["imageFormat"]
|
|
1687
1489
|
result.imageCompressionQuality = jsonObject["imageCompressionQuality"]
|
|
1688
1490
|
|
|
@@ -1696,7 +1498,7 @@ export class DocReaderConfig {
|
|
|
1696
1498
|
databasePath?: string
|
|
1697
1499
|
licenseUpdate?: boolean
|
|
1698
1500
|
delayedNNLoad?: boolean
|
|
1699
|
-
blackList?:
|
|
1501
|
+
blackList?: Record<string, string>
|
|
1700
1502
|
|
|
1701
1503
|
static fromJson(jsonObject?: any): DocReaderConfig | undefined {
|
|
1702
1504
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
@@ -1745,239 +1547,1205 @@ export class RecognizeConfig {
|
|
|
1745
1547
|
images?: string[]
|
|
1746
1548
|
imageInputData?: ImageInputData[]
|
|
1747
1549
|
|
|
1748
|
-
static fromJson(jsonObject?: any): RecognizeConfig | undefined {
|
|
1749
|
-
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1750
|
-
const result = new RecognizeConfig
|
|
1550
|
+
static fromJson(jsonObject?: any): RecognizeConfig | undefined {
|
|
1551
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1552
|
+
const result = new RecognizeConfig
|
|
1553
|
+
|
|
1554
|
+
result.scenario = jsonObject["scenario"]
|
|
1555
|
+
result.onlineProcessingConfig = OnlineProcessingConfig.fromJson(jsonObject["onlineProcessingConfig"])
|
|
1556
|
+
result.oneShotIdentification = jsonObject["oneShotIdentification"]
|
|
1557
|
+
result.livePortrait = jsonObject["livePortrait"]
|
|
1558
|
+
result.extPortrait = jsonObject["extPortrait"]
|
|
1559
|
+
result.image = jsonObject["image"]
|
|
1560
|
+
result.data = jsonObject["data"]
|
|
1561
|
+
result.images = []
|
|
1562
|
+
if (jsonObject["images"] != null) {
|
|
1563
|
+
for (const i in jsonObject["images"]) {
|
|
1564
|
+
result.images.push(jsonObject["images"][i])
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
result.imageInputData = []
|
|
1568
|
+
if (jsonObject["imageInputData"] != null) {
|
|
1569
|
+
for (const i in jsonObject["imageInputData"]) {
|
|
1570
|
+
const item = ImageInputData.fromJson(jsonObject["imageInputData"][i])
|
|
1571
|
+
if (item != undefined)
|
|
1572
|
+
result.imageInputData.push(item)
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
return result
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
export class License {
|
|
1581
|
+
expiryDate?: string
|
|
1582
|
+
countryFilter?: string[]
|
|
1583
|
+
isRfidAvailable?: boolean
|
|
1584
|
+
|
|
1585
|
+
static fromJson(jsonObject?: any): License | undefined {
|
|
1586
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1587
|
+
const result = new License
|
|
1588
|
+
|
|
1589
|
+
result.expiryDate = jsonObject["expiryDate"]
|
|
1590
|
+
result.countryFilter = []
|
|
1591
|
+
if (jsonObject["countryFilter"] != null) {
|
|
1592
|
+
for (const i in jsonObject["countryFilter"]) {
|
|
1593
|
+
result.countryFilter.push(jsonObject["countryFilter"][i])
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
result.isRfidAvailable = jsonObject["isRfidAvailable"]
|
|
1597
|
+
|
|
1598
|
+
return result
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
export class DocReaderVersion {
|
|
1603
|
+
api?: string
|
|
1604
|
+
core?: string
|
|
1605
|
+
coreMode?: string
|
|
1606
|
+
database?: DocReaderDocumentsDatabase
|
|
1607
|
+
|
|
1608
|
+
static fromJson(jsonObject?: any): DocReaderVersion | undefined {
|
|
1609
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1610
|
+
const result = new DocReaderVersion
|
|
1611
|
+
|
|
1612
|
+
result.api = jsonObject["api"]
|
|
1613
|
+
result.core = jsonObject["core"]
|
|
1614
|
+
result.coreMode = jsonObject["coreMode"]
|
|
1615
|
+
result.database = DocReaderDocumentsDatabase.fromJson(jsonObject["database"])
|
|
1616
|
+
|
|
1617
|
+
return result
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
export class TransactionInfo {
|
|
1622
|
+
transactionId?: string
|
|
1623
|
+
tag?: string
|
|
1624
|
+
|
|
1625
|
+
static fromJson(jsonObject?: any): TransactionInfo | undefined {
|
|
1626
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1627
|
+
const result = new TransactionInfo
|
|
1628
|
+
|
|
1629
|
+
result.transactionId = jsonObject["transactionId"]
|
|
1630
|
+
result.tag = jsonObject["tag"]
|
|
1631
|
+
|
|
1632
|
+
return result
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
export class DocumentReaderResults {
|
|
1637
|
+
chipPage?: number
|
|
1638
|
+
processingFinishedStatus?: number
|
|
1639
|
+
elapsedTime?: number
|
|
1640
|
+
elapsedTimeRFID?: number
|
|
1641
|
+
morePagesAvailable?: number
|
|
1642
|
+
graphicResult?: DocumentReaderGraphicResult
|
|
1643
|
+
textResult?: DocumentReaderTextResult
|
|
1644
|
+
documentPosition?: ElementPosition[]
|
|
1645
|
+
barcodePosition?: ElementPosition[]
|
|
1646
|
+
mrzPosition?: ElementPosition[]
|
|
1647
|
+
imageQuality?: ImageQualityGroup[]
|
|
1648
|
+
rawResult?: string
|
|
1649
|
+
rfidSessionData?: RFIDSessionData
|
|
1650
|
+
authenticityResult?: DocumentReaderAuthenticityResult
|
|
1651
|
+
barcodeResult?: DocumentReaderBarcodeResult
|
|
1652
|
+
documentType?: DocumentReaderDocumentType[]
|
|
1653
|
+
status?: DocumentReaderResultsStatus
|
|
1654
|
+
vdsncData?: VDSNCData
|
|
1655
|
+
transactionInfo?: TransactionInfo
|
|
1656
|
+
|
|
1657
|
+
textFieldValueByType(fieldType, successCallback, errorCallback) {
|
|
1658
|
+
RNRegulaDocumentReader.exec("DocumentReader", "textFieldValueByType", [this.rawResult, fieldType], successCallback, errorCallback)
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
textFieldValueByTypeLcid(fieldType, lcid, successCallback, errorCallback) {
|
|
1662
|
+
RNRegulaDocumentReader.exec("DocumentReader", "textFieldValueByTypeLcid", [this.rawResult, fieldType, lcid], successCallback, errorCallback)
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
textFieldValueByTypeSource(fieldType, source, successCallback, errorCallback) {
|
|
1666
|
+
RNRegulaDocumentReader.exec("DocumentReader", "textFieldValueByTypeSource", [this.rawResult, fieldType, source], successCallback, errorCallback)
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
textFieldValueByTypeLcidSource(fieldType, lcid, source, successCallback, errorCallback) {
|
|
1670
|
+
RNRegulaDocumentReader.exec("DocumentReader", "textFieldValueByTypeLcidSource", [this.rawResult, fieldType, lcid, source], successCallback, errorCallback)
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
textFieldValueByTypeSourceOriginal(fieldType, source, original, successCallback, errorCallback) {
|
|
1674
|
+
RNRegulaDocumentReader.exec("DocumentReader", "textFieldValueByTypeSourceOriginal", [this.rawResult, fieldType, source, original], successCallback, errorCallback)
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
textFieldValueByTypeLcidSourceOriginal(fieldType, lcid, source, original, successCallback, errorCallback) {
|
|
1678
|
+
RNRegulaDocumentReader.exec("DocumentReader", "textFieldValueByTypeLcidSourceOriginal", [this.rawResult, fieldType, lcid, source, original], successCallback, errorCallback)
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
textFieldByType(fieldType, successCallback, errorCallback) {
|
|
1682
|
+
RNRegulaDocumentReader.exec("DocumentReader", "textFieldByType", [this.rawResult, fieldType], successCallback, errorCallback)
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
textFieldByTypeLcid(fieldType, lcid, successCallback, errorCallback) {
|
|
1686
|
+
RNRegulaDocumentReader.exec("DocumentReader", "textFieldByTypeLcid", [this.rawResult, fieldType, lcid], successCallback, errorCallback)
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
graphicFieldByTypeSource(fieldType, source, successCallback, errorCallback) {
|
|
1690
|
+
RNRegulaDocumentReader.exec("DocumentReader", "graphicFieldByTypeSource", [this.rawResult, fieldType, source], successCallback, errorCallback)
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
graphicFieldByTypeSourcePageIndex(fieldType, source, pageIndex, successCallback, errorCallback) {
|
|
1694
|
+
RNRegulaDocumentReader.exec("DocumentReader", "graphicFieldByTypeSourcePageIndex", [this.rawResult, fieldType, source, pageIndex], successCallback, errorCallback)
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
graphicFieldByTypeSourcePageIndexLight(fieldType, source, pageIndex, light, successCallback, errorCallback) {
|
|
1698
|
+
RNRegulaDocumentReader.exec("DocumentReader", "graphicFieldByTypeSourcePageIndex", [this.rawResult, fieldType, source, pageIndex, light], successCallback, errorCallback)
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
graphicFieldImageByType(fieldType, successCallback, errorCallback) {
|
|
1702
|
+
RNRegulaDocumentReader.exec("DocumentReader", "graphicFieldImageByType", [this.rawResult, fieldType], successCallback, errorCallback)
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
graphicFieldImageByTypeSource(fieldType, source, successCallback, errorCallback) {
|
|
1706
|
+
RNRegulaDocumentReader.exec("DocumentReader", "graphicFieldImageByTypeSource", [this.rawResult, fieldType, source], successCallback, errorCallback)
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
graphicFieldImageByTypeSourcePageIndex(fieldType, source, pageIndex, successCallback, errorCallback) {
|
|
1710
|
+
RNRegulaDocumentReader.exec("DocumentReader", "graphicFieldImageByTypeSourcePageIndex", [this.rawResult, fieldType, source, pageIndex], successCallback, errorCallback)
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
graphicFieldImageByTypeSourcePageIndexLight(fieldType, source, pageIndex, light, successCallback, errorCallback) {
|
|
1714
|
+
RNRegulaDocumentReader.exec("DocumentReader", "graphicFieldImageByTypeSourcePageIndexLight", [this.rawResult, fieldType, source, pageIndex, light], successCallback, errorCallback)
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
containers(resultType, successCallback, errorCallback) {
|
|
1718
|
+
RNRegulaDocumentReader.exec("DocumentReader", "containers", [this.rawResult, resultType], successCallback, errorCallback)
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
encryptedContainers(successCallback, errorCallback) {
|
|
1722
|
+
RNRegulaDocumentReader.exec("DocumentReader", "encryptedContainers", [this.rawResult], successCallback, errorCallback)
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
static fromJson(jsonObject?: any): DocumentReaderResults | undefined {
|
|
1726
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1727
|
+
const result = new DocumentReaderResults
|
|
1728
|
+
|
|
1729
|
+
result.chipPage = jsonObject["chipPage"]
|
|
1730
|
+
result.processingFinishedStatus = jsonObject["processingFinishedStatus"]
|
|
1731
|
+
result.elapsedTime = jsonObject["elapsedTime"]
|
|
1732
|
+
result.elapsedTimeRFID = jsonObject["elapsedTimeRFID"]
|
|
1733
|
+
result.morePagesAvailable = jsonObject["morePagesAvailable"]
|
|
1734
|
+
result.graphicResult = DocumentReaderGraphicResult.fromJson(jsonObject["graphicResult"])
|
|
1735
|
+
result.textResult = DocumentReaderTextResult.fromJson(jsonObject["textResult"])
|
|
1736
|
+
result.documentPosition = []
|
|
1737
|
+
if (jsonObject["documentPosition"] != null) {
|
|
1738
|
+
for (const i in jsonObject["documentPosition"]) {
|
|
1739
|
+
const item = ElementPosition.fromJson(jsonObject["documentPosition"][i])
|
|
1740
|
+
if (item != undefined)
|
|
1741
|
+
result.documentPosition.push(item)
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
result.barcodePosition = []
|
|
1745
|
+
if (jsonObject["barcodePosition"] != null) {
|
|
1746
|
+
for (const i in jsonObject["barcodePosition"]) {
|
|
1747
|
+
const item = ElementPosition.fromJson(jsonObject["barcodePosition"][i])
|
|
1748
|
+
if (item != undefined)
|
|
1749
|
+
result.barcodePosition.push(item)
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
result.mrzPosition = []
|
|
1753
|
+
if (jsonObject["mrzPosition"] != null) {
|
|
1754
|
+
for (const i in jsonObject["mrzPosition"]) {
|
|
1755
|
+
const item = ElementPosition.fromJson(jsonObject["mrzPosition"][i])
|
|
1756
|
+
if (item != undefined)
|
|
1757
|
+
result.mrzPosition.push(item)
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
result.imageQuality = []
|
|
1761
|
+
if (jsonObject["imageQuality"] != null) {
|
|
1762
|
+
for (const i in jsonObject["imageQuality"]) {
|
|
1763
|
+
const item = ImageQualityGroup.fromJson(jsonObject["imageQuality"][i])
|
|
1764
|
+
if (item != undefined)
|
|
1765
|
+
result.imageQuality.push(item)
|
|
1766
|
+
}
|
|
1767
|
+
}
|
|
1768
|
+
result.rawResult = jsonObject["rawResult"]
|
|
1769
|
+
result.rfidSessionData = RFIDSessionData.fromJson(jsonObject["rfidSessionData"])
|
|
1770
|
+
result.authenticityResult = DocumentReaderAuthenticityResult.fromJson(jsonObject["authenticityResult"])
|
|
1771
|
+
result.barcodeResult = DocumentReaderBarcodeResult.fromJson(jsonObject["barcodeResult"])
|
|
1772
|
+
result.documentType = []
|
|
1773
|
+
if (jsonObject["documentType"] != null) {
|
|
1774
|
+
for (const i in jsonObject["documentType"]) {
|
|
1775
|
+
const item = DocumentReaderDocumentType.fromJson(jsonObject["documentType"][i])
|
|
1776
|
+
if (item != undefined)
|
|
1777
|
+
result.documentType.push(item)
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
result.status = DocumentReaderResultsStatus.fromJson(jsonObject["status"])
|
|
1781
|
+
result.vdsncData = VDSNCData.fromJson(jsonObject["vdsncData"])
|
|
1782
|
+
result.transactionInfo = TransactionInfo.fromJson(jsonObject["transactionInfo"])
|
|
1783
|
+
|
|
1784
|
+
return result
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
export class CameraSize {
|
|
1789
|
+
width?: number
|
|
1790
|
+
height?: number
|
|
1791
|
+
|
|
1792
|
+
static fromJson(jsonObject?: any): CameraSize | undefined {
|
|
1793
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1794
|
+
const result = new CameraSize
|
|
1795
|
+
|
|
1796
|
+
result.width = jsonObject["width"]
|
|
1797
|
+
result.height = jsonObject["height"]
|
|
1798
|
+
|
|
1799
|
+
return result
|
|
1800
|
+
}
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
export class Functionality {
|
|
1804
|
+
pictureOnBoundsReady?: boolean
|
|
1805
|
+
showTorchButton?: boolean
|
|
1806
|
+
showCloseButton?: boolean
|
|
1807
|
+
videoCaptureMotionControl?: boolean
|
|
1808
|
+
showCaptureButton?: boolean
|
|
1809
|
+
showChangeFrameButton?: boolean
|
|
1810
|
+
showSkipNextPageButton?: boolean
|
|
1811
|
+
useAuthenticator?: boolean
|
|
1812
|
+
skipFocusingFrames?: boolean
|
|
1813
|
+
showCameraSwitchButton?: boolean
|
|
1814
|
+
displayMetadata?: boolean
|
|
1815
|
+
isZoomEnabled?: boolean
|
|
1816
|
+
isCameraTorchCheckDisabled?: boolean
|
|
1817
|
+
recordScanningProcess?: boolean
|
|
1818
|
+
manualMultipageMode?: boolean
|
|
1819
|
+
singleResult?: boolean
|
|
1820
|
+
showCaptureButtonDelayFromDetect?: number
|
|
1821
|
+
showCaptureButtonDelayFromStart?: number
|
|
1822
|
+
rfidTimeout?: number
|
|
1823
|
+
forcePagesCount?: number
|
|
1824
|
+
orientation?: number
|
|
1825
|
+
captureMode?: number
|
|
1826
|
+
cameraMode?: number
|
|
1827
|
+
cameraPositionIOS?: number
|
|
1828
|
+
cameraFrame?: string
|
|
1829
|
+
btDeviceName?: string
|
|
1830
|
+
zoomFactor?: number
|
|
1831
|
+
exposure?: number
|
|
1832
|
+
excludedCamera2Models?: string[]
|
|
1833
|
+
cameraSize?: CameraSize
|
|
1834
|
+
videoSessionPreset?: number
|
|
1835
|
+
|
|
1836
|
+
static fromJson(jsonObject?: any): Functionality | undefined {
|
|
1837
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1838
|
+
const result = new Functionality
|
|
1839
|
+
|
|
1840
|
+
result.pictureOnBoundsReady = jsonObject["pictureOnBoundsReady"]
|
|
1841
|
+
result.showTorchButton = jsonObject["showTorchButton"]
|
|
1842
|
+
result.showCloseButton = jsonObject["showCloseButton"]
|
|
1843
|
+
result.videoCaptureMotionControl = jsonObject["videoCaptureMotionControl"]
|
|
1844
|
+
result.showCaptureButton = jsonObject["showCaptureButton"]
|
|
1845
|
+
result.showChangeFrameButton = jsonObject["showChangeFrameButton"]
|
|
1846
|
+
result.showSkipNextPageButton = jsonObject["showSkipNextPageButton"]
|
|
1847
|
+
result.useAuthenticator = jsonObject["useAuthenticator"]
|
|
1848
|
+
result.skipFocusingFrames = jsonObject["skipFocusingFrames"]
|
|
1849
|
+
result.showCameraSwitchButton = jsonObject["showCameraSwitchButton"]
|
|
1850
|
+
result.displayMetadata = jsonObject["displayMetadata"]
|
|
1851
|
+
result.isZoomEnabled = jsonObject["isZoomEnabled"]
|
|
1852
|
+
result.isCameraTorchCheckDisabled = jsonObject["isCameraTorchCheckDisabled"]
|
|
1853
|
+
result.recordScanningProcess = jsonObject["recordScanningProcess"]
|
|
1854
|
+
result.manualMultipageMode = jsonObject["manualMultipageMode"]
|
|
1855
|
+
result.singleResult = jsonObject["singleResult"]
|
|
1856
|
+
result.showCaptureButtonDelayFromDetect = jsonObject["showCaptureButtonDelayFromDetect"]
|
|
1857
|
+
result.showCaptureButtonDelayFromStart = jsonObject["showCaptureButtonDelayFromStart"]
|
|
1858
|
+
result.rfidTimeout = jsonObject["rfidTimeout"]
|
|
1859
|
+
result.forcePagesCount = jsonObject["forcePagesCount"]
|
|
1860
|
+
result.orientation = jsonObject["orientation"]
|
|
1861
|
+
result.captureMode = jsonObject["captureMode"]
|
|
1862
|
+
result.cameraMode = jsonObject["cameraMode"]
|
|
1863
|
+
result.cameraPositionIOS = jsonObject["cameraPositionIOS"]
|
|
1864
|
+
result.cameraFrame = jsonObject["cameraFrame"]
|
|
1865
|
+
result.btDeviceName = jsonObject["btDeviceName"]
|
|
1866
|
+
result.zoomFactor = jsonObject["zoomFactor"]
|
|
1867
|
+
result.exposure = jsonObject["exposure"]
|
|
1868
|
+
result.excludedCamera2Models = []
|
|
1869
|
+
if (jsonObject["excludedCamera2Models"] != null) {
|
|
1870
|
+
for (const i in jsonObject["excludedCamera2Models"]) {
|
|
1871
|
+
result.excludedCamera2Models.push(jsonObject["excludedCamera2Models"][i])
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
result.cameraSize = CameraSize.fromJson(jsonObject["cameraSize"])
|
|
1875
|
+
result.videoSessionPreset = jsonObject["videoSessionPreset"]
|
|
1876
|
+
|
|
1877
|
+
return result
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
export class GlaresCheckParams {
|
|
1882
|
+
imgMarginPart?: number
|
|
1883
|
+
maxGlaringPart?: number
|
|
1884
|
+
|
|
1885
|
+
static fromJson(jsonObject?: any): GlaresCheckParams | undefined {
|
|
1886
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1887
|
+
const result = new GlaresCheckParams
|
|
1888
|
+
|
|
1889
|
+
result.imgMarginPart = jsonObject["imgMarginPart"]
|
|
1890
|
+
result.maxGlaringPart = jsonObject["maxGlaringPart"]
|
|
1891
|
+
|
|
1892
|
+
return result
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
export class ImageQA {
|
|
1897
|
+
dpiThreshold?: number
|
|
1898
|
+
angleThreshold?: number
|
|
1899
|
+
focusCheck?: boolean
|
|
1900
|
+
glaresCheck?: boolean
|
|
1901
|
+
glaresCheckParams?: GlaresCheckParams
|
|
1902
|
+
colornessCheck?: boolean
|
|
1903
|
+
screenCapture?: boolean
|
|
1904
|
+
expectedPass?: number[]
|
|
1905
|
+
documentPositionIndent?: number
|
|
1906
|
+
brightnessThreshold?: number
|
|
1907
|
+
|
|
1908
|
+
static fromJson(jsonObject?: any): ImageQA | undefined {
|
|
1909
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1910
|
+
const result = new ImageQA
|
|
1911
|
+
|
|
1912
|
+
result.dpiThreshold = jsonObject["dpiThreshold"]
|
|
1913
|
+
result.angleThreshold = jsonObject["angleThreshold"]
|
|
1914
|
+
result.focusCheck = jsonObject["focusCheck"]
|
|
1915
|
+
result.glaresCheck = jsonObject["glaresCheck"]
|
|
1916
|
+
result.glaresCheckParams = GlaresCheckParams.fromJson(jsonObject["glaresCheckParams"])
|
|
1917
|
+
result.colornessCheck = jsonObject["colornessCheck"]
|
|
1918
|
+
result.screenCapture = jsonObject["screenCapture"]
|
|
1919
|
+
result.expectedPass = []
|
|
1920
|
+
if (jsonObject["expectedPass"] != null) {
|
|
1921
|
+
for (const i in jsonObject["expectedPass"]) {
|
|
1922
|
+
result.expectedPass.push(jsonObject["expectedPass"][i])
|
|
1923
|
+
}
|
|
1924
|
+
}
|
|
1925
|
+
result.documentPositionIndent = jsonObject["documentPositionIndent"]
|
|
1926
|
+
result.brightnessThreshold = jsonObject["brightnessThreshold"]
|
|
1927
|
+
|
|
1928
|
+
return result
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
export class RFIDParams {
|
|
1933
|
+
paIgnoreNotificationCodes?: number[]
|
|
1934
|
+
|
|
1935
|
+
static fromJson(jsonObject?: any): RFIDParams | undefined {
|
|
1936
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1937
|
+
const result = new RFIDParams
|
|
1938
|
+
|
|
1939
|
+
result.paIgnoreNotificationCodes = []
|
|
1940
|
+
if (jsonObject["paIgnoreNotificationCodes"] != null) {
|
|
1941
|
+
for (const i in jsonObject["paIgnoreNotificationCodes"]) {
|
|
1942
|
+
result.paIgnoreNotificationCodes.push(jsonObject["paIgnoreNotificationCodes"][i])
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
return result
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
export class FaceApiSearchParams {
|
|
1951
|
+
limit?: number
|
|
1952
|
+
threshold?: number
|
|
1953
|
+
groupIds?: number[]
|
|
1954
|
+
|
|
1955
|
+
static fromJson(jsonObject?: any): FaceApiSearchParams | undefined {
|
|
1956
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1957
|
+
const result = new FaceApiSearchParams
|
|
1958
|
+
|
|
1959
|
+
result.limit = jsonObject["limit"]
|
|
1960
|
+
result.threshold = jsonObject["threshold"]
|
|
1961
|
+
result.groupIds = []
|
|
1962
|
+
if (jsonObject["groupIds"] != null) {
|
|
1963
|
+
for (const i in jsonObject["groupIds"]) {
|
|
1964
|
+
result.groupIds.push(jsonObject["groupIds"][i])
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
return result
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
export class FaceApiParams {
|
|
1973
|
+
url?: string
|
|
1974
|
+
mode?: string
|
|
1975
|
+
threshold?: number
|
|
1976
|
+
searchParams?: FaceApiSearchParams
|
|
1977
|
+
serviceTimeout?: number
|
|
1978
|
+
proxy?: string
|
|
1979
|
+
proxyPassword?: string
|
|
1980
|
+
proxyType?: number
|
|
1981
|
+
|
|
1982
|
+
static fromJson(jsonObject?: any): FaceApiParams | undefined {
|
|
1983
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1984
|
+
const result = new FaceApiParams
|
|
1985
|
+
|
|
1986
|
+
result.url = jsonObject["url"]
|
|
1987
|
+
result.mode = jsonObject["mode"]
|
|
1988
|
+
result.threshold = jsonObject["threshold"]
|
|
1989
|
+
result.searchParams = FaceApiSearchParams.fromJson(jsonObject["searchParams"])
|
|
1990
|
+
result.serviceTimeout = jsonObject["serviceTimeout"]
|
|
1991
|
+
result.proxy = jsonObject["proxy"]
|
|
1992
|
+
result.proxyPassword = jsonObject["proxyPassword"]
|
|
1993
|
+
result.proxyType = jsonObject["proxyType"]
|
|
1994
|
+
|
|
1995
|
+
return result
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
export class BackendProcessingConfig {
|
|
2000
|
+
url?: string
|
|
2001
|
+
httpHeaders?: Record<string, string>
|
|
2002
|
+
rfidServerSideChipVerification?: boolean
|
|
2003
|
+
|
|
2004
|
+
static fromJson(jsonObject?: any): BackendProcessingConfig | undefined {
|
|
2005
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
2006
|
+
const result = new BackendProcessingConfig
|
|
2007
|
+
|
|
2008
|
+
result.url = jsonObject["url"]
|
|
2009
|
+
result.httpHeaders = jsonObject["httpHeaders"]
|
|
2010
|
+
result.rfidServerSideChipVerification = jsonObject["rfidServerSideChipVerification"]
|
|
2011
|
+
|
|
2012
|
+
return result
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
export class LivenessParams {
|
|
2017
|
+
checkOVI?: boolean
|
|
2018
|
+
checkMLI?: boolean
|
|
2019
|
+
checkHolo?: boolean
|
|
2020
|
+
checkED?: boolean
|
|
2021
|
+
|
|
2022
|
+
static fromJson(jsonObject?: any): LivenessParams | undefined {
|
|
2023
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
2024
|
+
const result = new LivenessParams
|
|
2025
|
+
|
|
2026
|
+
result.checkOVI = jsonObject["checkOVI"]
|
|
2027
|
+
result.checkMLI = jsonObject["checkMLI"]
|
|
2028
|
+
result.checkHolo = jsonObject["checkHolo"]
|
|
2029
|
+
result.checkED = jsonObject["checkED"]
|
|
2030
|
+
|
|
2031
|
+
return result
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
export class AuthenticityParams {
|
|
2036
|
+
useLivenessCheck?: boolean
|
|
2037
|
+
livenessParams?: LivenessParams
|
|
2038
|
+
checkUVLuminiscence?: boolean
|
|
2039
|
+
checkIRB900?: boolean
|
|
2040
|
+
checkImagePatterns?: boolean
|
|
2041
|
+
checkFibers?: boolean
|
|
2042
|
+
checkExtMRZ?: boolean
|
|
2043
|
+
checkExtOCR?: boolean
|
|
2044
|
+
checkAxial?: boolean
|
|
2045
|
+
checkBarcodeFormat?: boolean
|
|
2046
|
+
checkIRVisibility?: boolean
|
|
2047
|
+
checkIPI?: boolean
|
|
2048
|
+
checkPhotoEmbedding?: boolean
|
|
2049
|
+
checkPhotoComparison?: boolean
|
|
2050
|
+
checkLetterScreen?: boolean
|
|
2051
|
+
|
|
2052
|
+
static fromJson(jsonObject?: any): AuthenticityParams | undefined {
|
|
2053
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
2054
|
+
const result = new AuthenticityParams
|
|
2055
|
+
|
|
2056
|
+
result.useLivenessCheck = jsonObject["useLivenessCheck"]
|
|
2057
|
+
result.livenessParams = LivenessParams.fromJson(jsonObject["livenessParams"])
|
|
2058
|
+
result.checkUVLuminiscence = jsonObject["checkUVLuminiscence"]
|
|
2059
|
+
result.checkIRB900 = jsonObject["checkIRB900"]
|
|
2060
|
+
result.checkImagePatterns = jsonObject["checkImagePatterns"]
|
|
2061
|
+
result.checkFibers = jsonObject["checkFibers"]
|
|
2062
|
+
result.checkExtMRZ = jsonObject["checkExtMRZ"]
|
|
2063
|
+
result.checkExtOCR = jsonObject["checkExtOCR"]
|
|
2064
|
+
result.checkAxial = jsonObject["checkAxial"]
|
|
2065
|
+
result.checkBarcodeFormat = jsonObject["checkBarcodeFormat"]
|
|
2066
|
+
result.checkIRVisibility = jsonObject["checkIRVisibility"]
|
|
2067
|
+
result.checkIPI = jsonObject["checkIPI"]
|
|
2068
|
+
result.checkPhotoEmbedding = jsonObject["checkPhotoEmbedding"]
|
|
2069
|
+
result.checkPhotoComparison = jsonObject["checkPhotoComparison"]
|
|
2070
|
+
result.checkLetterScreen = jsonObject["checkLetterScreen"]
|
|
2071
|
+
|
|
2072
|
+
return result
|
|
2073
|
+
}
|
|
2074
|
+
}
|
|
1751
2075
|
|
|
2076
|
+
export class ProcessParams {
|
|
2077
|
+
multipageProcessing?: boolean
|
|
2078
|
+
logs?: boolean
|
|
2079
|
+
debugSaveImages?: boolean
|
|
2080
|
+
debugSaveLogs?: boolean
|
|
2081
|
+
returnUncroppedImage?: boolean
|
|
2082
|
+
uvTorchEnabled?: boolean
|
|
2083
|
+
debugSaveCroppedImages?: boolean
|
|
2084
|
+
disableFocusingCheck?: boolean
|
|
2085
|
+
debugSaveRFIDSession?: boolean
|
|
2086
|
+
doublePageSpread?: boolean
|
|
2087
|
+
manualCrop?: boolean
|
|
2088
|
+
integralImage?: boolean
|
|
2089
|
+
returnCroppedBarcode?: boolean
|
|
2090
|
+
checkRequiredTextFields?: boolean
|
|
2091
|
+
depersonalizeLog?: boolean
|
|
2092
|
+
generateDoublePageSpreadImage?: boolean
|
|
2093
|
+
alreadyCropped?: boolean
|
|
2094
|
+
matchTextFieldMask?: boolean
|
|
2095
|
+
updateOCRValidityByGlare?: boolean
|
|
2096
|
+
noGraphics?: boolean
|
|
2097
|
+
multiDocOnImage?: boolean
|
|
2098
|
+
forceReadMrzBeforeLocate?: boolean
|
|
2099
|
+
parseBarcodes?: boolean
|
|
2100
|
+
shouldReturnPackageForReprocess?: boolean
|
|
2101
|
+
disablePerforationOCR?: boolean
|
|
2102
|
+
respectImageQuality?: boolean
|
|
2103
|
+
splitNames?: boolean
|
|
2104
|
+
useFaceApi?: boolean
|
|
2105
|
+
useAuthenticityCheck?: boolean
|
|
2106
|
+
checkHologram?: boolean
|
|
2107
|
+
barcodeParserType?: number
|
|
2108
|
+
perspectiveAngle?: number
|
|
2109
|
+
minDPI?: number
|
|
2110
|
+
imageDpiOutMax?: number
|
|
2111
|
+
forceDocFormat?: number
|
|
2112
|
+
shiftExpiryDate?: number
|
|
2113
|
+
minimalHolderAge?: number
|
|
2114
|
+
imageOutputMaxHeight?: number
|
|
2115
|
+
imageOutputMaxWidth?: number
|
|
2116
|
+
processAuth?: number
|
|
2117
|
+
convertCase?: number
|
|
2118
|
+
measureSystem?: number
|
|
2119
|
+
forceDocID?: number
|
|
2120
|
+
dateFormat?: string
|
|
2121
|
+
scenario?: string
|
|
2122
|
+
captureButtonScenario?: string
|
|
2123
|
+
sessionLogFolder?: string
|
|
2124
|
+
timeout?: number
|
|
2125
|
+
timeoutFromFirstDetect?: number
|
|
2126
|
+
timeoutFromFirstDocType?: number
|
|
2127
|
+
documentAreaMin?: number
|
|
2128
|
+
documentIDList?: number[]
|
|
2129
|
+
barcodeTypes?: number[]
|
|
2130
|
+
fieldTypesFilter?: number[]
|
|
2131
|
+
resultTypeOutput?: number[]
|
|
2132
|
+
documentGroupFilter?: number[]
|
|
2133
|
+
lcidIgnoreFilter?: number[]
|
|
2134
|
+
lcidFilter?: number[]
|
|
2135
|
+
mrzFormatsFilter?: string[]
|
|
2136
|
+
imageQA?: ImageQA
|
|
2137
|
+
rfidParams?: RFIDParams
|
|
2138
|
+
faceApiParams?: FaceApiParams
|
|
2139
|
+
backendProcessingConfig?: BackendProcessingConfig
|
|
2140
|
+
authenticityParams?: AuthenticityParams
|
|
2141
|
+
customParams?: Record<string, any>
|
|
2142
|
+
|
|
2143
|
+
static fromJson(jsonObject?: any): ProcessParams | undefined {
|
|
2144
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
2145
|
+
const result = new ProcessParams
|
|
2146
|
+
|
|
2147
|
+
result.multipageProcessing = jsonObject["multipageProcessing"]
|
|
2148
|
+
result.logs = jsonObject["logs"]
|
|
2149
|
+
result.debugSaveImages = jsonObject["debugSaveImages"]
|
|
2150
|
+
result.debugSaveLogs = jsonObject["debugSaveLogs"]
|
|
2151
|
+
result.returnUncroppedImage = jsonObject["returnUncroppedImage"]
|
|
2152
|
+
result.uvTorchEnabled = jsonObject["uvTorchEnabled"]
|
|
2153
|
+
result.debugSaveCroppedImages = jsonObject["debugSaveCroppedImages"]
|
|
2154
|
+
result.disableFocusingCheck = jsonObject["disableFocusingCheck"]
|
|
2155
|
+
result.debugSaveRFIDSession = jsonObject["debugSaveRFIDSession"]
|
|
2156
|
+
result.doublePageSpread = jsonObject["doublePageSpread"]
|
|
2157
|
+
result.manualCrop = jsonObject["manualCrop"]
|
|
2158
|
+
result.integralImage = jsonObject["integralImage"]
|
|
2159
|
+
result.returnCroppedBarcode = jsonObject["returnCroppedBarcode"]
|
|
2160
|
+
result.checkRequiredTextFields = jsonObject["checkRequiredTextFields"]
|
|
2161
|
+
result.depersonalizeLog = jsonObject["depersonalizeLog"]
|
|
2162
|
+
result.generateDoublePageSpreadImage = jsonObject["generateDoublePageSpreadImage"]
|
|
2163
|
+
result.alreadyCropped = jsonObject["alreadyCropped"]
|
|
2164
|
+
result.matchTextFieldMask = jsonObject["matchTextFieldMask"]
|
|
2165
|
+
result.updateOCRValidityByGlare = jsonObject["updateOCRValidityByGlare"]
|
|
2166
|
+
result.noGraphics = jsonObject["noGraphics"]
|
|
2167
|
+
result.multiDocOnImage = jsonObject["multiDocOnImage"]
|
|
2168
|
+
result.forceReadMrzBeforeLocate = jsonObject["forceReadMrzBeforeLocate"]
|
|
2169
|
+
result.parseBarcodes = jsonObject["parseBarcodes"]
|
|
2170
|
+
result.shouldReturnPackageForReprocess = jsonObject["shouldReturnPackageForReprocess"]
|
|
2171
|
+
result.disablePerforationOCR = jsonObject["disablePerforationOCR"]
|
|
2172
|
+
result.respectImageQuality = jsonObject["respectImageQuality"]
|
|
2173
|
+
result.splitNames = jsonObject["splitNames"]
|
|
2174
|
+
result.useFaceApi = jsonObject["useFaceApi"]
|
|
2175
|
+
result.useAuthenticityCheck = jsonObject["useAuthenticityCheck"]
|
|
2176
|
+
result.checkHologram = jsonObject["checkHologram"]
|
|
2177
|
+
result.barcodeParserType = jsonObject["barcodeParserType"]
|
|
2178
|
+
result.perspectiveAngle = jsonObject["perspectiveAngle"]
|
|
2179
|
+
result.minDPI = jsonObject["minDPI"]
|
|
2180
|
+
result.imageDpiOutMax = jsonObject["imageDpiOutMax"]
|
|
2181
|
+
result.forceDocFormat = jsonObject["forceDocFormat"]
|
|
2182
|
+
result.shiftExpiryDate = jsonObject["shiftExpiryDate"]
|
|
2183
|
+
result.minimalHolderAge = jsonObject["minimalHolderAge"]
|
|
2184
|
+
result.imageOutputMaxHeight = jsonObject["imageOutputMaxHeight"]
|
|
2185
|
+
result.imageOutputMaxWidth = jsonObject["imageOutputMaxWidth"]
|
|
2186
|
+
result.processAuth = jsonObject["processAuth"]
|
|
2187
|
+
result.convertCase = jsonObject["convertCase"]
|
|
2188
|
+
result.measureSystem = jsonObject["measureSystem"]
|
|
2189
|
+
result.forceDocID = jsonObject["forceDocID"]
|
|
2190
|
+
result.dateFormat = jsonObject["dateFormat"]
|
|
1752
2191
|
result.scenario = jsonObject["scenario"]
|
|
1753
|
-
result.
|
|
1754
|
-
result.
|
|
1755
|
-
result.
|
|
1756
|
-
result.
|
|
1757
|
-
result.
|
|
1758
|
-
result.
|
|
1759
|
-
result.
|
|
1760
|
-
if (jsonObject["
|
|
1761
|
-
for (const i in jsonObject["
|
|
1762
|
-
result.
|
|
2192
|
+
result.captureButtonScenario = jsonObject["captureButtonScenario"]
|
|
2193
|
+
result.sessionLogFolder = jsonObject["sessionLogFolder"]
|
|
2194
|
+
result.timeout = jsonObject["timeout"]
|
|
2195
|
+
result.timeoutFromFirstDetect = jsonObject["timeoutFromFirstDetect"]
|
|
2196
|
+
result.timeoutFromFirstDocType = jsonObject["timeoutFromFirstDocType"]
|
|
2197
|
+
result.documentAreaMin = jsonObject["documentAreaMin"]
|
|
2198
|
+
result.documentIDList = []
|
|
2199
|
+
if (jsonObject["documentIDList"] != null) {
|
|
2200
|
+
for (const i in jsonObject["documentIDList"]) {
|
|
2201
|
+
result.documentIDList.push(jsonObject["documentIDList"][i])
|
|
1763
2202
|
}
|
|
1764
2203
|
}
|
|
1765
|
-
result.
|
|
1766
|
-
if (jsonObject["
|
|
1767
|
-
for (const i in jsonObject["
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
2204
|
+
result.barcodeTypes = []
|
|
2205
|
+
if (jsonObject["barcodeTypes"] != null) {
|
|
2206
|
+
for (const i in jsonObject["barcodeTypes"]) {
|
|
2207
|
+
result.barcodeTypes.push(jsonObject["barcodeTypes"][i])
|
|
2208
|
+
}
|
|
2209
|
+
}
|
|
2210
|
+
result.fieldTypesFilter = []
|
|
2211
|
+
if (jsonObject["fieldTypesFilter"] != null) {
|
|
2212
|
+
for (const i in jsonObject["fieldTypesFilter"]) {
|
|
2213
|
+
result.fieldTypesFilter.push(jsonObject["fieldTypesFilter"][i])
|
|
2214
|
+
}
|
|
2215
|
+
}
|
|
2216
|
+
result.resultTypeOutput = []
|
|
2217
|
+
if (jsonObject["resultTypeOutput"] != null) {
|
|
2218
|
+
for (const i in jsonObject["resultTypeOutput"]) {
|
|
2219
|
+
result.resultTypeOutput.push(jsonObject["resultTypeOutput"][i])
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2222
|
+
result.documentGroupFilter = []
|
|
2223
|
+
if (jsonObject["documentGroupFilter"] != null) {
|
|
2224
|
+
for (const i in jsonObject["documentGroupFilter"]) {
|
|
2225
|
+
result.documentGroupFilter.push(jsonObject["documentGroupFilter"][i])
|
|
2226
|
+
}
|
|
2227
|
+
}
|
|
2228
|
+
result.lcidIgnoreFilter = []
|
|
2229
|
+
if (jsonObject["lcidIgnoreFilter"] != null) {
|
|
2230
|
+
for (const i in jsonObject["lcidIgnoreFilter"]) {
|
|
2231
|
+
result.lcidIgnoreFilter.push(jsonObject["lcidIgnoreFilter"][i])
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2234
|
+
result.lcidFilter = []
|
|
2235
|
+
if (jsonObject["lcidFilter"] != null) {
|
|
2236
|
+
for (const i in jsonObject["lcidFilter"]) {
|
|
2237
|
+
result.lcidFilter.push(jsonObject["lcidFilter"][i])
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2240
|
+
result.mrzFormatsFilter = []
|
|
2241
|
+
if (jsonObject["mrzFormatsFilter"] != null) {
|
|
2242
|
+
for (const i in jsonObject["mrzFormatsFilter"]) {
|
|
2243
|
+
result.mrzFormatsFilter.push(jsonObject["mrzFormatsFilter"][i])
|
|
1771
2244
|
}
|
|
1772
2245
|
}
|
|
2246
|
+
result.imageQA = ImageQA.fromJson(jsonObject["imageQA"])
|
|
2247
|
+
result.rfidParams = RFIDParams.fromJson(jsonObject["rfidParams"])
|
|
2248
|
+
result.faceApiParams = FaceApiParams.fromJson(jsonObject["faceApiParams"])
|
|
2249
|
+
result.backendProcessingConfig = BackendProcessingConfig.fromJson(jsonObject["backendProcessingConfig"])
|
|
2250
|
+
result.authenticityParams = AuthenticityParams.fromJson(jsonObject["authenticityParams"])
|
|
2251
|
+
result.customParams = jsonObject["customParams"]
|
|
1773
2252
|
|
|
1774
2253
|
return result
|
|
1775
2254
|
}
|
|
1776
2255
|
}
|
|
1777
2256
|
|
|
1778
|
-
export class
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
2257
|
+
export class Font {
|
|
2258
|
+
name?: string
|
|
2259
|
+
size?: number
|
|
2260
|
+
style?: number
|
|
1782
2261
|
|
|
1783
|
-
static fromJson(jsonObject?: any):
|
|
2262
|
+
static fromJson(jsonObject?: any): Font | undefined {
|
|
1784
2263
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1785
|
-
const result = new
|
|
2264
|
+
const result = new Font
|
|
1786
2265
|
|
|
1787
|
-
result.
|
|
1788
|
-
result.
|
|
1789
|
-
|
|
1790
|
-
for (const i in jsonObject["countryFilter"]) {
|
|
1791
|
-
result.countryFilter.push(jsonObject["countryFilter"][i])
|
|
1792
|
-
}
|
|
1793
|
-
}
|
|
1794
|
-
result.isRfidAvailable = jsonObject["isRfidAvailable"]
|
|
2266
|
+
result.name = jsonObject["name"]
|
|
2267
|
+
result.size = jsonObject["size"]
|
|
2268
|
+
result.style = jsonObject["style"]
|
|
1795
2269
|
|
|
1796
2270
|
return result
|
|
1797
2271
|
}
|
|
1798
2272
|
}
|
|
1799
2273
|
|
|
1800
|
-
export class
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
2274
|
+
export class CustomizationColors {
|
|
2275
|
+
rfidProcessingScreenBackground?: number
|
|
2276
|
+
rfidProcessingScreenHintLabelText?: number
|
|
2277
|
+
rfidProcessingScreenHintLabelBackground?: number
|
|
2278
|
+
rfidProcessingScreenProgressLabelText?: number
|
|
2279
|
+
rfidProcessingScreenProgressBar?: number
|
|
2280
|
+
rfidProcessingScreenProgressBarBackground?: number
|
|
2281
|
+
rfidProcessingScreenResultLabelText?: number
|
|
1805
2282
|
|
|
1806
|
-
static fromJson(jsonObject?: any):
|
|
2283
|
+
static fromJson(jsonObject?: any): CustomizationColors | undefined {
|
|
1807
2284
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1808
|
-
const result = new
|
|
2285
|
+
const result = new CustomizationColors
|
|
1809
2286
|
|
|
1810
|
-
result.
|
|
1811
|
-
result.
|
|
1812
|
-
result.
|
|
1813
|
-
result.
|
|
2287
|
+
result.rfidProcessingScreenBackground = jsonObject["rfidProcessingScreenBackground"]
|
|
2288
|
+
result.rfidProcessingScreenHintLabelText = jsonObject["rfidProcessingScreenHintLabelText"]
|
|
2289
|
+
result.rfidProcessingScreenHintLabelBackground = jsonObject["rfidProcessingScreenHintLabelBackground"]
|
|
2290
|
+
result.rfidProcessingScreenProgressLabelText = jsonObject["rfidProcessingScreenProgressLabelText"]
|
|
2291
|
+
result.rfidProcessingScreenProgressBar = jsonObject["rfidProcessingScreenProgressBar"]
|
|
2292
|
+
result.rfidProcessingScreenProgressBarBackground = jsonObject["rfidProcessingScreenProgressBarBackground"]
|
|
2293
|
+
result.rfidProcessingScreenResultLabelText = jsonObject["rfidProcessingScreenResultLabelText"]
|
|
1814
2294
|
|
|
1815
2295
|
return result
|
|
1816
2296
|
}
|
|
1817
2297
|
}
|
|
1818
2298
|
|
|
1819
|
-
export class
|
|
1820
|
-
|
|
1821
|
-
|
|
2299
|
+
export class CustomizationFonts {
|
|
2300
|
+
rfidProcessingScreenHintLabel?: Font
|
|
2301
|
+
rfidProcessingScreenProgressLabel?: Font
|
|
2302
|
+
rfidProcessingScreenResultLabel?: Font
|
|
1822
2303
|
|
|
1823
|
-
static fromJson(jsonObject?: any):
|
|
2304
|
+
static fromJson(jsonObject?: any): CustomizationFonts | undefined {
|
|
1824
2305
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1825
|
-
const result = new
|
|
2306
|
+
const result = new CustomizationFonts
|
|
1826
2307
|
|
|
1827
|
-
result.
|
|
1828
|
-
result.
|
|
2308
|
+
result.rfidProcessingScreenHintLabel = Font.fromJson(jsonObject["rfidProcessingScreenHintLabel"])
|
|
2309
|
+
result.rfidProcessingScreenProgressLabel = Font.fromJson(jsonObject["rfidProcessingScreenProgressLabel"])
|
|
2310
|
+
result.rfidProcessingScreenResultLabel = Font.fromJson(jsonObject["rfidProcessingScreenResultLabel"])
|
|
1829
2311
|
|
|
1830
2312
|
return result
|
|
1831
2313
|
}
|
|
1832
2314
|
}
|
|
1833
2315
|
|
|
1834
|
-
export class
|
|
1835
|
-
|
|
1836
|
-
processingFinishedStatus?: number
|
|
1837
|
-
elapsedTime?: number
|
|
1838
|
-
elapsedTimeRFID?: number
|
|
1839
|
-
morePagesAvailable?: number
|
|
1840
|
-
graphicResult?: DocumentReaderGraphicResult
|
|
1841
|
-
textResult?: DocumentReaderTextResult
|
|
1842
|
-
documentPosition?: ElementPosition[]
|
|
1843
|
-
barcodePosition?: ElementPosition[]
|
|
1844
|
-
mrzPosition?: ElementPosition[]
|
|
1845
|
-
imageQuality?: ImageQualityGroup[]
|
|
1846
|
-
rawResult?: string
|
|
1847
|
-
rfidSessionData?: RFIDSessionData
|
|
1848
|
-
authenticityResult?: DocumentReaderAuthenticityResult
|
|
1849
|
-
barcodeResult?: DocumentReaderBarcodeResult
|
|
1850
|
-
documentType?: DocumentReaderDocumentType[]
|
|
1851
|
-
status?: DocumentReaderResultsStatus
|
|
1852
|
-
vdsncData?: VDSNCData
|
|
1853
|
-
transactionInfo?: TransactionInfo
|
|
1854
|
-
|
|
1855
|
-
textFieldValueByType(fieldType, successCallback, errorCallback) {
|
|
1856
|
-
RNRegulaDocumentReader.exec("DocumentReader", "textFieldValueByType", [this.rawResult, fieldType], successCallback, errorCallback)
|
|
1857
|
-
}
|
|
1858
|
-
|
|
1859
|
-
textFieldValueByTypeLcid(fieldType, lcid, successCallback, errorCallback) {
|
|
1860
|
-
RNRegulaDocumentReader.exec("DocumentReader", "textFieldValueByTypeLcid", [this.rawResult, fieldType, lcid], successCallback, errorCallback)
|
|
1861
|
-
}
|
|
1862
|
-
|
|
1863
|
-
textFieldValueByTypeSource(fieldType, source, successCallback, errorCallback) {
|
|
1864
|
-
RNRegulaDocumentReader.exec("DocumentReader", "textFieldValueByTypeSource", [this.rawResult, fieldType, source], successCallback, errorCallback)
|
|
1865
|
-
}
|
|
2316
|
+
export class CustomizationImages {
|
|
2317
|
+
rfidProcessingScreenFailureImage?: string
|
|
1866
2318
|
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
2319
|
+
static fromJson(jsonObject?: any): CustomizationImages | undefined {
|
|
2320
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
2321
|
+
const result = new CustomizationImages
|
|
1870
2322
|
|
|
1871
|
-
|
|
1872
|
-
RNRegulaDocumentReader.exec("DocumentReader", "textFieldValueByTypeSourceOriginal", [this.rawResult, fieldType, source, original], successCallback, errorCallback)
|
|
1873
|
-
}
|
|
2323
|
+
result.rfidProcessingScreenFailureImage = jsonObject["rfidProcessingScreenFailureImage"]
|
|
1874
2324
|
|
|
1875
|
-
|
|
1876
|
-
RNRegulaDocumentReader.exec("DocumentReader", "textFieldValueByTypeLcidSourceOriginal", [this.rawResult, fieldType, lcid, source, original], successCallback, errorCallback)
|
|
2325
|
+
return result
|
|
1877
2326
|
}
|
|
2327
|
+
}
|
|
1878
2328
|
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
2329
|
+
export class Customization {
|
|
2330
|
+
showStatusMessages?: boolean
|
|
2331
|
+
showResultStatusMessages?: boolean
|
|
2332
|
+
showHelpAnimation?: boolean
|
|
2333
|
+
showNextPageAnimation?: boolean
|
|
2334
|
+
showBackgroundMask?: boolean
|
|
2335
|
+
cameraFrameBorderWidth?: number
|
|
2336
|
+
cameraFrameLineLength?: number
|
|
2337
|
+
cameraFrameOffsetWidth?: number
|
|
2338
|
+
cameraFrameShapeType?: number
|
|
2339
|
+
status?: string
|
|
2340
|
+
resultStatus?: string
|
|
2341
|
+
cameraFrameDefaultColor?: number
|
|
2342
|
+
cameraFrameActiveColor?: number
|
|
2343
|
+
statusTextColor?: number
|
|
2344
|
+
resultStatusTextColor?: number
|
|
2345
|
+
resultStatusBackgroundColor?: number
|
|
2346
|
+
multipageButtonBackgroundColor?: number
|
|
2347
|
+
tintColor?: number
|
|
2348
|
+
activityIndicatorColor?: number
|
|
2349
|
+
statusBackgroundColor?: number
|
|
2350
|
+
cameraPreviewBackgroundColor?: number
|
|
2351
|
+
statusPositionMultiplier?: number
|
|
2352
|
+
resultStatusPositionMultiplier?: number
|
|
2353
|
+
toolbarSize?: number
|
|
2354
|
+
backgroundMaskAlpha?: number
|
|
2355
|
+
customStatusPositionMultiplier?: number
|
|
2356
|
+
livenessAnimationPositionMultiplier?: number
|
|
2357
|
+
cameraFrameVerticalPositionMultiplier?: number
|
|
2358
|
+
cameraFrameLandscapeAspectRatio?: number
|
|
2359
|
+
cameraFramePortraitAspectRatio?: number
|
|
2360
|
+
cameraFrameCornerRadius?: number
|
|
2361
|
+
multipageAnimationFrontImage?: string
|
|
2362
|
+
multipageAnimationBackImage?: string
|
|
2363
|
+
borderBackgroundImage?: string
|
|
2364
|
+
helpAnimationImage?: string
|
|
2365
|
+
closeButtonImage?: string
|
|
2366
|
+
captureButtonImage?: string
|
|
2367
|
+
cameraSwitchButtonImage?: string
|
|
2368
|
+
torchButtonOnImage?: string
|
|
2369
|
+
torchButtonOffImage?: string
|
|
2370
|
+
changeFrameButtonExpandImage?: string
|
|
2371
|
+
changeFrameButtonCollapseImage?: string
|
|
2372
|
+
livenessAnimationImage?: string
|
|
2373
|
+
statusTextFont?: Font
|
|
2374
|
+
resultStatusTextFont?: Font
|
|
2375
|
+
customLabelStatus?: string
|
|
2376
|
+
cameraFrameLineCap?: number
|
|
2377
|
+
uiCustomizationLayer?: Record<string, any>
|
|
2378
|
+
helpAnimationImageContentMode?: number
|
|
2379
|
+
multipageAnimationFrontImageContentMode?: number
|
|
2380
|
+
multipageAnimationBackImageContentMode?: number
|
|
2381
|
+
livenessAnimationImageContentMode?: number
|
|
2382
|
+
borderBackgroundImageContentMode?: number
|
|
2383
|
+
helpAnimationImageMatrix?: number[]
|
|
2384
|
+
multipageAnimationFrontImageMatrix?: number[]
|
|
2385
|
+
multipageAnimationBackImageMatrix?: number[]
|
|
2386
|
+
livenessAnimationImageMatrix?: number[]
|
|
2387
|
+
borderBackgroundImageMatrix?: number[]
|
|
2388
|
+
colors?: CustomizationColors
|
|
2389
|
+
fonts?: CustomizationFonts
|
|
2390
|
+
images?: CustomizationImages
|
|
2391
|
+
|
|
2392
|
+
static fromJson(jsonObject?: any): Customization | undefined {
|
|
2393
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
2394
|
+
const result = new Customization
|
|
2395
|
+
|
|
2396
|
+
result.showStatusMessages = jsonObject["showStatusMessages"]
|
|
2397
|
+
result.showResultStatusMessages = jsonObject["showResultStatusMessages"]
|
|
2398
|
+
result.showHelpAnimation = jsonObject["showHelpAnimation"]
|
|
2399
|
+
result.showNextPageAnimation = jsonObject["showNextPageAnimation"]
|
|
2400
|
+
result.showBackgroundMask = jsonObject["showBackgroundMask"]
|
|
2401
|
+
result.cameraFrameBorderWidth = jsonObject["cameraFrameBorderWidth"]
|
|
2402
|
+
result.cameraFrameLineLength = jsonObject["cameraFrameLineLength"]
|
|
2403
|
+
result.cameraFrameOffsetWidth = jsonObject["cameraFrameOffsetWidth"]
|
|
2404
|
+
result.cameraFrameShapeType = jsonObject["cameraFrameShapeType"]
|
|
2405
|
+
result.status = jsonObject["status"]
|
|
2406
|
+
result.resultStatus = jsonObject["resultStatus"]
|
|
2407
|
+
result.cameraFrameDefaultColor = jsonObject["cameraFrameDefaultColor"]
|
|
2408
|
+
result.cameraFrameActiveColor = jsonObject["cameraFrameActiveColor"]
|
|
2409
|
+
result.statusTextColor = jsonObject["statusTextColor"]
|
|
2410
|
+
result.resultStatusTextColor = jsonObject["resultStatusTextColor"]
|
|
2411
|
+
result.resultStatusBackgroundColor = jsonObject["resultStatusBackgroundColor"]
|
|
2412
|
+
result.multipageButtonBackgroundColor = jsonObject["multipageButtonBackgroundColor"]
|
|
2413
|
+
result.tintColor = jsonObject["tintColor"]
|
|
2414
|
+
result.activityIndicatorColor = jsonObject["activityIndicatorColor"]
|
|
2415
|
+
result.statusBackgroundColor = jsonObject["statusBackgroundColor"]
|
|
2416
|
+
result.cameraPreviewBackgroundColor = jsonObject["cameraPreviewBackgroundColor"]
|
|
2417
|
+
result.statusPositionMultiplier = jsonObject["statusPositionMultiplier"]
|
|
2418
|
+
result.resultStatusPositionMultiplier = jsonObject["resultStatusPositionMultiplier"]
|
|
2419
|
+
result.toolbarSize = jsonObject["toolbarSize"]
|
|
2420
|
+
result.backgroundMaskAlpha = jsonObject["backgroundMaskAlpha"]
|
|
2421
|
+
result.customStatusPositionMultiplier = jsonObject["customStatusPositionMultiplier"]
|
|
2422
|
+
result.livenessAnimationPositionMultiplier = jsonObject["livenessAnimationPositionMultiplier"]
|
|
2423
|
+
result.cameraFrameVerticalPositionMultiplier = jsonObject["cameraFrameVerticalPositionMultiplier"]
|
|
2424
|
+
result.cameraFrameLandscapeAspectRatio = jsonObject["cameraFrameLandscapeAspectRatio"]
|
|
2425
|
+
result.cameraFramePortraitAspectRatio = jsonObject["cameraFramePortraitAspectRatio"]
|
|
2426
|
+
result.cameraFrameCornerRadius = jsonObject["cameraFrameCornerRadius"]
|
|
2427
|
+
result.multipageAnimationFrontImage = jsonObject["multipageAnimationFrontImage"]
|
|
2428
|
+
result.multipageAnimationBackImage = jsonObject["multipageAnimationBackImage"]
|
|
2429
|
+
result.borderBackgroundImage = jsonObject["borderBackgroundImage"]
|
|
2430
|
+
result.helpAnimationImage = jsonObject["helpAnimationImage"]
|
|
2431
|
+
result.closeButtonImage = jsonObject["closeButtonImage"]
|
|
2432
|
+
result.captureButtonImage = jsonObject["captureButtonImage"]
|
|
2433
|
+
result.cameraSwitchButtonImage = jsonObject["cameraSwitchButtonImage"]
|
|
2434
|
+
result.torchButtonOnImage = jsonObject["torchButtonOnImage"]
|
|
2435
|
+
result.torchButtonOffImage = jsonObject["torchButtonOffImage"]
|
|
2436
|
+
result.changeFrameButtonExpandImage = jsonObject["changeFrameButtonExpandImage"]
|
|
2437
|
+
result.changeFrameButtonCollapseImage = jsonObject["changeFrameButtonCollapseImage"]
|
|
2438
|
+
result.livenessAnimationImage = jsonObject["livenessAnimationImage"]
|
|
2439
|
+
result.statusTextFont = Font.fromJson(jsonObject["statusTextFont"])
|
|
2440
|
+
result.resultStatusTextFont = Font.fromJson(jsonObject["resultStatusTextFont"])
|
|
2441
|
+
result.customLabelStatus = jsonObject["customLabelStatus"]
|
|
2442
|
+
result.cameraFrameLineCap = jsonObject["cameraFrameLineCap"]
|
|
2443
|
+
result.uiCustomizationLayer = jsonObject["uiCustomizationLayer"]
|
|
2444
|
+
result.helpAnimationImageContentMode = jsonObject["helpAnimationImageContentMode"]
|
|
2445
|
+
result.multipageAnimationFrontImageContentMode = jsonObject["multipageAnimationFrontImageContentMode"]
|
|
2446
|
+
result.multipageAnimationBackImageContentMode = jsonObject["multipageAnimationBackImageContentMode"]
|
|
2447
|
+
result.livenessAnimationImageContentMode = jsonObject["livenessAnimationImageContentMode"]
|
|
2448
|
+
result.borderBackgroundImageContentMode = jsonObject["borderBackgroundImageContentMode"]
|
|
2449
|
+
result.helpAnimationImageMatrix = []
|
|
2450
|
+
if (jsonObject["helpAnimationImageMatrix"] != null) {
|
|
2451
|
+
for (const i in jsonObject["helpAnimationImageMatrix"]) {
|
|
2452
|
+
result.helpAnimationImageMatrix.push(jsonObject["helpAnimationImageMatrix"][i])
|
|
2453
|
+
}
|
|
2454
|
+
}
|
|
2455
|
+
result.multipageAnimationFrontImageMatrix = []
|
|
2456
|
+
if (jsonObject["multipageAnimationFrontImageMatrix"] != null) {
|
|
2457
|
+
for (const i in jsonObject["multipageAnimationFrontImageMatrix"]) {
|
|
2458
|
+
result.multipageAnimationFrontImageMatrix.push(jsonObject["multipageAnimationFrontImageMatrix"][i])
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2461
|
+
result.multipageAnimationBackImageMatrix = []
|
|
2462
|
+
if (jsonObject["multipageAnimationBackImageMatrix"] != null) {
|
|
2463
|
+
for (const i in jsonObject["multipageAnimationBackImageMatrix"]) {
|
|
2464
|
+
result.multipageAnimationBackImageMatrix.push(jsonObject["multipageAnimationBackImageMatrix"][i])
|
|
2465
|
+
}
|
|
2466
|
+
}
|
|
2467
|
+
result.livenessAnimationImageMatrix = []
|
|
2468
|
+
if (jsonObject["livenessAnimationImageMatrix"] != null) {
|
|
2469
|
+
for (const i in jsonObject["livenessAnimationImageMatrix"]) {
|
|
2470
|
+
result.livenessAnimationImageMatrix.push(jsonObject["livenessAnimationImageMatrix"][i])
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2473
|
+
result.borderBackgroundImageMatrix = []
|
|
2474
|
+
if (jsonObject["borderBackgroundImageMatrix"] != null) {
|
|
2475
|
+
for (const i in jsonObject["borderBackgroundImageMatrix"]) {
|
|
2476
|
+
result.borderBackgroundImageMatrix.push(jsonObject["borderBackgroundImageMatrix"][i])
|
|
2477
|
+
}
|
|
2478
|
+
}
|
|
2479
|
+
result.colors = CustomizationColors.fromJson(jsonObject["colors"])
|
|
2480
|
+
result.fonts = CustomizationFonts.fromJson(jsonObject["fonts"])
|
|
2481
|
+
result.images = CustomizationImages.fromJson(jsonObject["images"])
|
|
1882
2482
|
|
|
1883
|
-
|
|
1884
|
-
RNRegulaDocumentReader.exec("DocumentReader", "textFieldByTypeLcid", [this.rawResult, fieldType, lcid], successCallback, errorCallback)
|
|
2483
|
+
return result
|
|
1885
2484
|
}
|
|
2485
|
+
}
|
|
1886
2486
|
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
2487
|
+
export class EDLDataGroups {
|
|
2488
|
+
DG1?: boolean
|
|
2489
|
+
DG2?: boolean
|
|
2490
|
+
DG3?: boolean
|
|
2491
|
+
DG4?: boolean
|
|
2492
|
+
DG5?: boolean
|
|
2493
|
+
DG6?: boolean
|
|
2494
|
+
DG7?: boolean
|
|
2495
|
+
DG8?: boolean
|
|
2496
|
+
DG9?: boolean
|
|
2497
|
+
DG10?: boolean
|
|
2498
|
+
DG11?: boolean
|
|
2499
|
+
DG12?: boolean
|
|
2500
|
+
DG13?: boolean
|
|
2501
|
+
DG14?: boolean
|
|
2502
|
+
|
|
2503
|
+
static fromJson(jsonObject?: any): EDLDataGroups | undefined {
|
|
2504
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
2505
|
+
const result = new EDLDataGroups
|
|
2506
|
+
|
|
2507
|
+
result.DG1 = jsonObject["DG1"]
|
|
2508
|
+
result.DG2 = jsonObject["DG2"]
|
|
2509
|
+
result.DG3 = jsonObject["DG3"]
|
|
2510
|
+
result.DG4 = jsonObject["DG4"]
|
|
2511
|
+
result.DG5 = jsonObject["DG5"]
|
|
2512
|
+
result.DG6 = jsonObject["DG6"]
|
|
2513
|
+
result.DG7 = jsonObject["DG7"]
|
|
2514
|
+
result.DG8 = jsonObject["DG8"]
|
|
2515
|
+
result.DG9 = jsonObject["DG9"]
|
|
2516
|
+
result.DG10 = jsonObject["DG10"]
|
|
2517
|
+
result.DG11 = jsonObject["DG11"]
|
|
2518
|
+
result.DG12 = jsonObject["DG12"]
|
|
2519
|
+
result.DG13 = jsonObject["DG13"]
|
|
2520
|
+
result.DG14 = jsonObject["DG14"]
|
|
1890
2521
|
|
|
1891
|
-
|
|
1892
|
-
RNRegulaDocumentReader.exec("DocumentReader", "graphicFieldByTypeSourcePageIndex", [this.rawResult, fieldType, source, pageIndex], successCallback, errorCallback)
|
|
2522
|
+
return result
|
|
1893
2523
|
}
|
|
2524
|
+
}
|
|
1894
2525
|
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
2526
|
+
export class EPassportDataGroups {
|
|
2527
|
+
DG1?: boolean
|
|
2528
|
+
DG2?: boolean
|
|
2529
|
+
DG3?: boolean
|
|
2530
|
+
DG4?: boolean
|
|
2531
|
+
DG5?: boolean
|
|
2532
|
+
DG6?: boolean
|
|
2533
|
+
DG7?: boolean
|
|
2534
|
+
DG8?: boolean
|
|
2535
|
+
DG9?: boolean
|
|
2536
|
+
DG10?: boolean
|
|
2537
|
+
DG11?: boolean
|
|
2538
|
+
DG12?: boolean
|
|
2539
|
+
DG13?: boolean
|
|
2540
|
+
DG14?: boolean
|
|
2541
|
+
DG15?: boolean
|
|
2542
|
+
DG16?: boolean
|
|
2543
|
+
|
|
2544
|
+
static fromJson(jsonObject?: any): EPassportDataGroups | undefined {
|
|
2545
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
2546
|
+
const result = new EPassportDataGroups
|
|
2547
|
+
|
|
2548
|
+
result.DG1 = jsonObject["DG1"]
|
|
2549
|
+
result.DG2 = jsonObject["DG2"]
|
|
2550
|
+
result.DG3 = jsonObject["DG3"]
|
|
2551
|
+
result.DG4 = jsonObject["DG4"]
|
|
2552
|
+
result.DG5 = jsonObject["DG5"]
|
|
2553
|
+
result.DG6 = jsonObject["DG6"]
|
|
2554
|
+
result.DG7 = jsonObject["DG7"]
|
|
2555
|
+
result.DG8 = jsonObject["DG8"]
|
|
2556
|
+
result.DG9 = jsonObject["DG9"]
|
|
2557
|
+
result.DG10 = jsonObject["DG10"]
|
|
2558
|
+
result.DG11 = jsonObject["DG11"]
|
|
2559
|
+
result.DG12 = jsonObject["DG12"]
|
|
2560
|
+
result.DG13 = jsonObject["DG13"]
|
|
2561
|
+
result.DG14 = jsonObject["DG14"]
|
|
2562
|
+
result.DG15 = jsonObject["DG15"]
|
|
2563
|
+
result.DG16 = jsonObject["DG16"]
|
|
1898
2564
|
|
|
1899
|
-
|
|
1900
|
-
RNRegulaDocumentReader.exec("DocumentReader", "graphicFieldImageByType", [this.rawResult, fieldType], successCallback, errorCallback)
|
|
2565
|
+
return result
|
|
1901
2566
|
}
|
|
2567
|
+
}
|
|
1902
2568
|
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
2569
|
+
export class EIDDataGroups {
|
|
2570
|
+
DG1?: boolean
|
|
2571
|
+
DG2?: boolean
|
|
2572
|
+
DG3?: boolean
|
|
2573
|
+
DG4?: boolean
|
|
2574
|
+
DG5?: boolean
|
|
2575
|
+
DG6?: boolean
|
|
2576
|
+
DG7?: boolean
|
|
2577
|
+
DG8?: boolean
|
|
2578
|
+
DG9?: boolean
|
|
2579
|
+
DG10?: boolean
|
|
2580
|
+
DG11?: boolean
|
|
2581
|
+
DG12?: boolean
|
|
2582
|
+
DG13?: boolean
|
|
2583
|
+
DG14?: boolean
|
|
2584
|
+
DG15?: boolean
|
|
2585
|
+
DG16?: boolean
|
|
2586
|
+
DG17?: boolean
|
|
2587
|
+
DG18?: boolean
|
|
2588
|
+
DG19?: boolean
|
|
2589
|
+
DG20?: boolean
|
|
2590
|
+
DG21?: boolean
|
|
2591
|
+
|
|
2592
|
+
static fromJson(jsonObject?: any): EIDDataGroups | undefined {
|
|
2593
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
2594
|
+
const result = new EIDDataGroups
|
|
2595
|
+
|
|
2596
|
+
result.DG1 = jsonObject["DG1"]
|
|
2597
|
+
result.DG2 = jsonObject["DG2"]
|
|
2598
|
+
result.DG3 = jsonObject["DG3"]
|
|
2599
|
+
result.DG4 = jsonObject["DG4"]
|
|
2600
|
+
result.DG5 = jsonObject["DG5"]
|
|
2601
|
+
result.DG6 = jsonObject["DG6"]
|
|
2602
|
+
result.DG7 = jsonObject["DG7"]
|
|
2603
|
+
result.DG8 = jsonObject["DG8"]
|
|
2604
|
+
result.DG9 = jsonObject["DG9"]
|
|
2605
|
+
result.DG10 = jsonObject["DG10"]
|
|
2606
|
+
result.DG11 = jsonObject["DG11"]
|
|
2607
|
+
result.DG12 = jsonObject["DG12"]
|
|
2608
|
+
result.DG13 = jsonObject["DG13"]
|
|
2609
|
+
result.DG14 = jsonObject["DG14"]
|
|
2610
|
+
result.DG15 = jsonObject["DG15"]
|
|
2611
|
+
result.DG16 = jsonObject["DG16"]
|
|
2612
|
+
result.DG17 = jsonObject["DG17"]
|
|
2613
|
+
result.DG18 = jsonObject["DG18"]
|
|
2614
|
+
result.DG19 = jsonObject["DG19"]
|
|
2615
|
+
result.DG20 = jsonObject["DG20"]
|
|
2616
|
+
result.DG21 = jsonObject["DG21"]
|
|
1906
2617
|
|
|
1907
|
-
|
|
1908
|
-
RNRegulaDocumentReader.exec("DocumentReader", "graphicFieldImageByTypeSourcePageIndex", [this.rawResult, fieldType, source, pageIndex], successCallback, errorCallback)
|
|
2618
|
+
return result
|
|
1909
2619
|
}
|
|
2620
|
+
}
|
|
1910
2621
|
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
2622
|
+
export class RFIDScenario {
|
|
2623
|
+
paceStaticBinding?: boolean
|
|
2624
|
+
onlineTA?: boolean
|
|
2625
|
+
writeEid?: boolean
|
|
2626
|
+
universalAccessRights?: boolean
|
|
2627
|
+
authorizedRestrictedIdentification?: boolean
|
|
2628
|
+
auxVerificationCommunityID?: boolean
|
|
2629
|
+
auxVerificationDateOfBirth?: boolean
|
|
2630
|
+
skipAA?: boolean
|
|
2631
|
+
strictProcessing?: boolean
|
|
2632
|
+
pkdDSCertPriority?: boolean
|
|
2633
|
+
pkdUseExternalCSCA?: boolean
|
|
2634
|
+
trustedPKD?: boolean
|
|
2635
|
+
passiveAuth?: boolean
|
|
2636
|
+
useSFI?: boolean
|
|
2637
|
+
readEPassport?: boolean
|
|
2638
|
+
readEID?: boolean
|
|
2639
|
+
readEDL?: boolean
|
|
2640
|
+
authorizedSTSignature?: boolean
|
|
2641
|
+
authorizedSTQSignature?: boolean
|
|
2642
|
+
authorizedWriteDG17?: boolean
|
|
2643
|
+
authorizedWriteDG18?: boolean
|
|
2644
|
+
authorizedWriteDG19?: boolean
|
|
2645
|
+
authorizedWriteDG20?: boolean
|
|
2646
|
+
authorizedWriteDG21?: boolean
|
|
2647
|
+
authorizedVerifyAge?: boolean
|
|
2648
|
+
authorizedVerifyCommunityID?: boolean
|
|
2649
|
+
authorizedPrivilegedTerminal?: boolean
|
|
2650
|
+
authorizedCANAllowed?: boolean
|
|
2651
|
+
authorizedPINManagement?: boolean
|
|
2652
|
+
authorizedInstallCert?: boolean
|
|
2653
|
+
authorizedInstallQCert?: boolean
|
|
2654
|
+
applyAmendments?: boolean
|
|
2655
|
+
autoSettings?: boolean
|
|
2656
|
+
proceedReadingAlways?: boolean
|
|
2657
|
+
readingBuffer?: number
|
|
2658
|
+
onlineTAToSignDataType?: number
|
|
2659
|
+
defaultReadingBufferSize?: number
|
|
2660
|
+
signManagementAction?: number
|
|
2661
|
+
profilerType?: number
|
|
2662
|
+
authProcType?: number
|
|
2663
|
+
baseSMProcedure?: number
|
|
2664
|
+
pacePasswordType?: number
|
|
2665
|
+
terminalType?: number
|
|
2666
|
+
password?: string
|
|
2667
|
+
pkdPA?: string
|
|
2668
|
+
pkdEAC?: string
|
|
2669
|
+
mrz?: string
|
|
2670
|
+
eSignPINDefault?: string
|
|
2671
|
+
eSignPINNewValue?: string
|
|
2672
|
+
eDLDataGroups?: EDLDataGroups
|
|
2673
|
+
ePassportDataGroups?: EPassportDataGroups
|
|
2674
|
+
eIDDataGroups?: EIDDataGroups
|
|
2675
|
+
|
|
2676
|
+
static fromJson(jsonObject?: any): RFIDScenario | undefined {
|
|
2677
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
2678
|
+
const result = new RFIDScenario
|
|
2679
|
+
|
|
2680
|
+
result.paceStaticBinding = jsonObject["paceStaticBinding"]
|
|
2681
|
+
result.onlineTA = jsonObject["onlineTA"]
|
|
2682
|
+
result.writeEid = jsonObject["writeEid"]
|
|
2683
|
+
result.universalAccessRights = jsonObject["universalAccessRights"]
|
|
2684
|
+
result.authorizedRestrictedIdentification = jsonObject["authorizedRestrictedIdentification"]
|
|
2685
|
+
result.auxVerificationCommunityID = jsonObject["auxVerificationCommunityID"]
|
|
2686
|
+
result.auxVerificationDateOfBirth = jsonObject["auxVerificationDateOfBirth"]
|
|
2687
|
+
result.skipAA = jsonObject["skipAA"]
|
|
2688
|
+
result.strictProcessing = jsonObject["strictProcessing"]
|
|
2689
|
+
result.pkdDSCertPriority = jsonObject["pkdDSCertPriority"]
|
|
2690
|
+
result.pkdUseExternalCSCA = jsonObject["pkdUseExternalCSCA"]
|
|
2691
|
+
result.trustedPKD = jsonObject["trustedPKD"]
|
|
2692
|
+
result.passiveAuth = jsonObject["passiveAuth"]
|
|
2693
|
+
result.useSFI = jsonObject["useSFI"]
|
|
2694
|
+
result.readEPassport = jsonObject["readEPassport"]
|
|
2695
|
+
result.readEID = jsonObject["readEID"]
|
|
2696
|
+
result.readEDL = jsonObject["readEDL"]
|
|
2697
|
+
result.authorizedSTSignature = jsonObject["authorizedSTSignature"]
|
|
2698
|
+
result.authorizedSTQSignature = jsonObject["authorizedSTQSignature"]
|
|
2699
|
+
result.authorizedWriteDG17 = jsonObject["authorizedWriteDG17"]
|
|
2700
|
+
result.authorizedWriteDG18 = jsonObject["authorizedWriteDG18"]
|
|
2701
|
+
result.authorizedWriteDG19 = jsonObject["authorizedWriteDG19"]
|
|
2702
|
+
result.authorizedWriteDG20 = jsonObject["authorizedWriteDG20"]
|
|
2703
|
+
result.authorizedWriteDG21 = jsonObject["authorizedWriteDG21"]
|
|
2704
|
+
result.authorizedVerifyAge = jsonObject["authorizedVerifyAge"]
|
|
2705
|
+
result.authorizedVerifyCommunityID = jsonObject["authorizedVerifyCommunityID"]
|
|
2706
|
+
result.authorizedPrivilegedTerminal = jsonObject["authorizedPrivilegedTerminal"]
|
|
2707
|
+
result.authorizedCANAllowed = jsonObject["authorizedCANAllowed"]
|
|
2708
|
+
result.authorizedPINManagement = jsonObject["authorizedPINManagement"]
|
|
2709
|
+
result.authorizedInstallCert = jsonObject["authorizedInstallCert"]
|
|
2710
|
+
result.authorizedInstallQCert = jsonObject["authorizedInstallQCert"]
|
|
2711
|
+
result.applyAmendments = jsonObject["applyAmendments"]
|
|
2712
|
+
result.autoSettings = jsonObject["autoSettings"]
|
|
2713
|
+
result.proceedReadingAlways = jsonObject["proceedReadingAlways"]
|
|
2714
|
+
result.readingBuffer = jsonObject["readingBuffer"]
|
|
2715
|
+
result.onlineTAToSignDataType = jsonObject["onlineTAToSignDataType"]
|
|
2716
|
+
result.defaultReadingBufferSize = jsonObject["defaultReadingBufferSize"]
|
|
2717
|
+
result.signManagementAction = jsonObject["signManagementAction"]
|
|
2718
|
+
result.profilerType = jsonObject["profilerType"]
|
|
2719
|
+
result.authProcType = jsonObject["authProcType"]
|
|
2720
|
+
result.baseSMProcedure = jsonObject["baseSMProcedure"]
|
|
2721
|
+
result.pacePasswordType = jsonObject["pacePasswordType"]
|
|
2722
|
+
result.terminalType = jsonObject["terminalType"]
|
|
2723
|
+
result.password = jsonObject["password"]
|
|
2724
|
+
result.pkdPA = jsonObject["pkdPA"]
|
|
2725
|
+
result.pkdEAC = jsonObject["pkdEAC"]
|
|
2726
|
+
result.mrz = jsonObject["mrz"]
|
|
2727
|
+
result.eSignPINDefault = jsonObject["eSignPINDefault"]
|
|
2728
|
+
result.eSignPINNewValue = jsonObject["eSignPINNewValue"]
|
|
2729
|
+
result.eDLDataGroups = EDLDataGroups.fromJson(jsonObject["eDLDataGroups"])
|
|
2730
|
+
result.ePassportDataGroups = EPassportDataGroups.fromJson(jsonObject["ePassportDataGroups"])
|
|
2731
|
+
result.eIDDataGroups = EIDDataGroups.fromJson(jsonObject["eIDDataGroups"])
|
|
1914
2732
|
|
|
1915
|
-
|
|
1916
|
-
RNRegulaDocumentReader.exec("DocumentReader", "containers", [this.rawResult, resultType], successCallback, errorCallback)
|
|
2733
|
+
return result
|
|
1917
2734
|
}
|
|
2735
|
+
}
|
|
1918
2736
|
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
2737
|
+
export class PrepareProgress {
|
|
2738
|
+
downloadedBytes?: number
|
|
2739
|
+
totalBytes?: number
|
|
2740
|
+
progress?: number
|
|
1922
2741
|
|
|
1923
|
-
static fromJson(jsonObject?: any):
|
|
2742
|
+
static fromJson(jsonObject?: any): PrepareProgress | undefined {
|
|
1924
2743
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
1925
|
-
const result = new
|
|
2744
|
+
const result = new PrepareProgress
|
|
1926
2745
|
|
|
1927
|
-
result.
|
|
1928
|
-
result.
|
|
1929
|
-
result.
|
|
1930
|
-
result.elapsedTimeRFID = jsonObject["elapsedTimeRFID"]
|
|
1931
|
-
result.morePagesAvailable = jsonObject["morePagesAvailable"]
|
|
1932
|
-
result.graphicResult = DocumentReaderGraphicResult.fromJson(jsonObject["graphicResult"])
|
|
1933
|
-
result.textResult = DocumentReaderTextResult.fromJson(jsonObject["textResult"])
|
|
1934
|
-
result.documentPosition = []
|
|
1935
|
-
if (jsonObject["documentPosition"] != null) {
|
|
1936
|
-
for (const i in jsonObject["documentPosition"]) {
|
|
1937
|
-
const item = ElementPosition.fromJson(jsonObject["documentPosition"][i])
|
|
1938
|
-
if (item != undefined)
|
|
1939
|
-
result.documentPosition.push(item)
|
|
1940
|
-
}
|
|
1941
|
-
}
|
|
1942
|
-
result.barcodePosition = []
|
|
1943
|
-
if (jsonObject["barcodePosition"] != null) {
|
|
1944
|
-
for (const i in jsonObject["barcodePosition"]) {
|
|
1945
|
-
const item = ElementPosition.fromJson(jsonObject["barcodePosition"][i])
|
|
1946
|
-
if (item != undefined)
|
|
1947
|
-
result.barcodePosition.push(item)
|
|
1948
|
-
}
|
|
1949
|
-
}
|
|
1950
|
-
result.mrzPosition = []
|
|
1951
|
-
if (jsonObject["mrzPosition"] != null) {
|
|
1952
|
-
for (const i in jsonObject["mrzPosition"]) {
|
|
1953
|
-
const item = ElementPosition.fromJson(jsonObject["mrzPosition"][i])
|
|
1954
|
-
if (item != undefined)
|
|
1955
|
-
result.mrzPosition.push(item)
|
|
1956
|
-
}
|
|
1957
|
-
}
|
|
1958
|
-
result.imageQuality = []
|
|
1959
|
-
if (jsonObject["imageQuality"] != null) {
|
|
1960
|
-
for (const i in jsonObject["imageQuality"]) {
|
|
1961
|
-
const item = ImageQualityGroup.fromJson(jsonObject["imageQuality"][i])
|
|
1962
|
-
if (item != undefined)
|
|
1963
|
-
result.imageQuality.push(item)
|
|
1964
|
-
}
|
|
1965
|
-
}
|
|
1966
|
-
result.rawResult = jsonObject["rawResult"]
|
|
1967
|
-
result.rfidSessionData = RFIDSessionData.fromJson(jsonObject["rfidSessionData"])
|
|
1968
|
-
result.authenticityResult = DocumentReaderAuthenticityResult.fromJson(jsonObject["authenticityResult"])
|
|
1969
|
-
result.barcodeResult = DocumentReaderBarcodeResult.fromJson(jsonObject["barcodeResult"])
|
|
1970
|
-
result.documentType = []
|
|
1971
|
-
if (jsonObject["documentType"] != null) {
|
|
1972
|
-
for (const i in jsonObject["documentType"]) {
|
|
1973
|
-
const item = DocumentReaderDocumentType.fromJson(jsonObject["documentType"][i])
|
|
1974
|
-
if (item != undefined)
|
|
1975
|
-
result.documentType.push(item)
|
|
1976
|
-
}
|
|
1977
|
-
}
|
|
1978
|
-
result.status = DocumentReaderResultsStatus.fromJson(jsonObject["status"])
|
|
1979
|
-
result.vdsncData = VDSNCData.fromJson(jsonObject["vdsncData"])
|
|
1980
|
-
result.transactionInfo = TransactionInfo.fromJson(jsonObject["transactionInfo"])
|
|
2746
|
+
result.downloadedBytes = jsonObject["downloadedBytes"]
|
|
2747
|
+
result.totalBytes = jsonObject["totalBytes"]
|
|
2748
|
+
result.progress = jsonObject["progress"]
|
|
1981
2749
|
|
|
1982
2750
|
return result
|
|
1983
2751
|
}
|
|
@@ -2336,11 +3104,6 @@ export const eRPRM_ResultType = {
|
|
|
2336
3104
|
RPRM_RESULT_TYPE_EXT_PORTRAIT: 35,
|
|
2337
3105
|
}
|
|
2338
3106
|
|
|
2339
|
-
export const CameraTypes = {
|
|
2340
|
-
FRONT: "front",
|
|
2341
|
-
BACK: "back",
|
|
2342
|
-
}
|
|
2343
|
-
|
|
2344
3107
|
export const FrameShapeType = {
|
|
2345
3108
|
LINE: 0,
|
|
2346
3109
|
CORNER: 1,
|
|
@@ -2353,6 +3116,12 @@ export const eRFID_BaudRate = {
|
|
|
2353
3116
|
rfbr_848: 8,
|
|
2354
3117
|
}
|
|
2355
3118
|
|
|
3119
|
+
export const LineCap = {
|
|
3120
|
+
BUTT: 0,
|
|
3121
|
+
ROUND: 1,
|
|
3122
|
+
SQUARE: 2,
|
|
3123
|
+
}
|
|
3124
|
+
|
|
2356
3125
|
export const eRPRM_FieldVerificationResult = {
|
|
2357
3126
|
RCF_DISABLED: 0,
|
|
2358
3127
|
RCF_VERIFIED: 1,
|
|
@@ -2458,6 +3227,11 @@ export const DocumentReaderErrorCodes = {
|
|
|
2458
3227
|
LICENSE_DATABASE_INCORRECT: 23,
|
|
2459
3228
|
INVALID_TCC_PARAMS: 24,
|
|
2460
3229
|
RFID_IN_PROGRESS: 25,
|
|
3230
|
+
START_BACKEND_PROCESSING: 26,
|
|
3231
|
+
ADD_DATA_TO_PACKAGE: 27,
|
|
3232
|
+
FINALIZE_FAILED: 28,
|
|
3233
|
+
CAMERA_NO_PERMISSION: 29,
|
|
3234
|
+
CAMERA_NOT_AVAILABLE: 30,
|
|
2461
3235
|
NATIVE_JAVA_EXCEPTION: 1000,
|
|
2462
3236
|
BACKEND_ONLINE_PROCESSING: 303,
|
|
2463
3237
|
WRONG_INPUT: 400,
|
|
@@ -2540,6 +3314,12 @@ export const eRFID_NotificationCodes = {
|
|
|
2540
3314
|
RFID_NOTIFICATION_BIOMETRICS_EMPTY_PLACEHOLDER: 0x000F0000,
|
|
2541
3315
|
}
|
|
2542
3316
|
|
|
3317
|
+
export const CameraPosition = {
|
|
3318
|
+
UNSPECIFIED: 0,
|
|
3319
|
+
BACK: 1,
|
|
3320
|
+
FRONT: 2,
|
|
3321
|
+
}
|
|
3322
|
+
|
|
2543
3323
|
export const eRFID_Password_Type = {
|
|
2544
3324
|
PPT_UNKNOWN: 0,
|
|
2545
3325
|
PPT_MRZ: 1,
|
|
@@ -2550,6 +3330,23 @@ export const eRFID_Password_Type = {
|
|
|
2550
3330
|
PPT_SAI: 6,
|
|
2551
3331
|
}
|
|
2552
3332
|
|
|
3333
|
+
export const ViewContentMode = {
|
|
3334
|
+
UNKNOWN: -1,
|
|
3335
|
+
SCALE_TO_FILL: 0,
|
|
3336
|
+
SCALE_ASPECT_FIT: 1,
|
|
3337
|
+
SCALE_ASPECT_FILL: 2,
|
|
3338
|
+
REDRAW: 3,
|
|
3339
|
+
CENTER: 4,
|
|
3340
|
+
TOP: 5,
|
|
3341
|
+
BOTTOM: 6,
|
|
3342
|
+
LEFT: 7,
|
|
3343
|
+
RIGHT: 8,
|
|
3344
|
+
TOP_LEFT: 9,
|
|
3345
|
+
TOP_RIGHT: 10,
|
|
3346
|
+
BOTTOM_LEFT: 11,
|
|
3347
|
+
BOTTOM_RIGHT: 12,
|
|
3348
|
+
}
|
|
3349
|
+
|
|
2553
3350
|
export const BarcodeResult = {
|
|
2554
3351
|
NO_ERR: 0,
|
|
2555
3352
|
NULL_PTR_ERR: -6001,
|
|
@@ -2704,6 +3501,12 @@ export const eCheckDiagnose = {
|
|
|
2704
3501
|
LAS_INK_INVALID_LINES_FREQUENCY: 230,
|
|
2705
3502
|
DOC_LIVENESS_ELECTRONIC_DEVICE_DETECTED: 240,
|
|
2706
3503
|
DOC_LIVENESS_INVALID_BARCODE_BACKGROUND: 241,
|
|
3504
|
+
ICAO_IDB_BASE_32_ERROR: 243,
|
|
3505
|
+
ICAO_IDB_ZIPPED_ERROR: 244,
|
|
3506
|
+
ICAO_IDB_MESSAGE_ZONE_EMPTY: 245,
|
|
3507
|
+
ICAO_IDB_SIGNATURE_MUST_BE_PRESENT: 246,
|
|
3508
|
+
ICAO_IDB_SIGNATURE_MUST_NOT_BE_PRESENT: 247,
|
|
3509
|
+
ICAO_IDB_CERTIFICATE_MUST_NOT_BE_PRESENT: 248,
|
|
2707
3510
|
LAST_DIAGNOSE_VALUE: 250,
|
|
2708
3511
|
}
|
|
2709
3512
|
|
|
@@ -2978,6 +3781,10 @@ export const eLDS_ParsingNotificationCodes = {
|
|
|
2978
3781
|
NTF_LDS_AUTH_ML_SIGNER_INFO_CERTIFICATE_CANT_FIND_CSCA: 0x92000117,
|
|
2979
3782
|
NTF_LDS_AUTH_ML_SIGNER_INFO_CERTIFICATE_REVOKED: 0x92000118,
|
|
2980
3783
|
NTF_LDS_AUTH_ML_SIGNER_INFO_CERTIFICATE_SIGNATURE_INVALID: 0x92000119,
|
|
3784
|
+
NTF_LDS_ICAO_CERTIFICATE_CHAIN_COUNTRY_NON_MATCHING: 0x90000250,
|
|
3785
|
+
NTF_LDS_ICAO_CERTIFICATE_VISUAL_MRZ_COUNTRY_NON_MATCHING: 0x90000251,
|
|
3786
|
+
NTF_LDS_MRZ_COUNTRYCODE_VISUALMRZ_NON_MATCHING: 0x00022019,
|
|
3787
|
+
NTF_LDS_ICAO_CERTIFICATE_MRZ_COUNTRY_NON_MATCHING: 0x90000252,
|
|
2981
3788
|
}
|
|
2982
3789
|
|
|
2983
3790
|
export const eImageQualityCheckType = {
|
|
@@ -3391,6 +4198,22 @@ export const RegDeviceConfigType = {
|
|
|
3391
4198
|
DEVICE_7310: "DEVICE_7310",
|
|
3392
4199
|
}
|
|
3393
4200
|
|
|
4201
|
+
export const CaptureSessionPreset = {
|
|
4202
|
+
UNKNOWN: -1,
|
|
4203
|
+
LOW: 0,
|
|
4204
|
+
MEDIUM: 1,
|
|
4205
|
+
HIGH: 2,
|
|
4206
|
+
PHOTO: 3,
|
|
4207
|
+
INPUT_PRIORITY: 4,
|
|
4208
|
+
PRESET_1280x720: 6,
|
|
4209
|
+
PRESET_1920x1080: 7,
|
|
4210
|
+
PRESET_3840x2160: 8,
|
|
4211
|
+
FRAME_960x540: 9,
|
|
4212
|
+
FRAME_1280x720: 10,
|
|
4213
|
+
PRESET_640x480: 12,
|
|
4214
|
+
PRESET_352x288: 13,
|
|
4215
|
+
}
|
|
4216
|
+
|
|
3394
4217
|
export const CameraMode = {
|
|
3395
4218
|
AUTO: 0,
|
|
3396
4219
|
CAMERA1: 1,
|
|
@@ -4138,6 +4961,7 @@ export const eVisualFieldType = {
|
|
|
4138
4961
|
FT_ADDRESS_BUILDING_TYPE: 680,
|
|
4139
4962
|
FT_DATE_OF_RETIREMENT: 681,
|
|
4140
4963
|
FT_DOCUMENT_STATUS: 682,
|
|
4964
|
+
FT_SIGNATURE: 683,
|
|
4141
4965
|
}
|
|
4142
4966
|
|
|
4143
4967
|
export const DocReaderOrientation = {
|
|
@@ -4340,61 +5164,6 @@ export const eRPRM_Lights = {
|
|
|
4340
5164
|
RPRM_LIGHT_WHITE_FULL_OVD: (6 | 67108864),
|
|
4341
5165
|
}
|
|
4342
5166
|
|
|
4343
|
-
export const LineCap = {
|
|
4344
|
-
Butt: 0,
|
|
4345
|
-
Round: 1,
|
|
4346
|
-
Square: 2,
|
|
4347
|
-
}
|
|
4348
|
-
|
|
4349
|
-
export const UIInterfaceOrientationMask = {
|
|
4350
|
-
Portrait: 0,
|
|
4351
|
-
LandscapeLeft: 1,
|
|
4352
|
-
LandscapeRight: 2,
|
|
4353
|
-
PortraitUpsideDown: 3,
|
|
4354
|
-
Landscape: 4,
|
|
4355
|
-
All: 5,
|
|
4356
|
-
AllButUpsideDown: 6,
|
|
4357
|
-
}
|
|
4358
|
-
|
|
4359
|
-
export const AVCaptureSessionPreset = {
|
|
4360
|
-
Low: 0,
|
|
4361
|
-
Medium: 1,
|
|
4362
|
-
High: 2,
|
|
4363
|
-
Photo: 3,
|
|
4364
|
-
InputPriority: 4,
|
|
4365
|
-
QHD960x540: 5,
|
|
4366
|
-
Hd1280x720: 6,
|
|
4367
|
-
Hd1920x1080: 7,
|
|
4368
|
-
Hd4K3840x2160: 8,
|
|
4369
|
-
IFrame960x540: 9,
|
|
4370
|
-
IFrame1280x720: 10,
|
|
4371
|
-
Qvga320x240: 11,
|
|
4372
|
-
Vga640x480: 12,
|
|
4373
|
-
Cif352x288: 13,
|
|
4374
|
-
}
|
|
4375
|
-
|
|
4376
|
-
export const AVCaptureDevicePosition = {
|
|
4377
|
-
Front: 0,
|
|
4378
|
-
Back: 1,
|
|
4379
|
-
Unspecified: 2,
|
|
4380
|
-
}
|
|
4381
|
-
|
|
4382
|
-
export const UIViewContentMode = {
|
|
4383
|
-
ScaleToFill: 0,
|
|
4384
|
-
ScaleAspectFit: 1,
|
|
4385
|
-
ScaleAspectFill: 2,
|
|
4386
|
-
Redraw: 3,
|
|
4387
|
-
Center: 4,
|
|
4388
|
-
Top: 5,
|
|
4389
|
-
Bottom: 6,
|
|
4390
|
-
Left: 7,
|
|
4391
|
-
Right: 8,
|
|
4392
|
-
TopLeft: 9,
|
|
4393
|
-
TopRight: 10,
|
|
4394
|
-
BottomLeft: 11,
|
|
4395
|
-
BottomRight: 12,
|
|
4396
|
-
}
|
|
4397
|
-
|
|
4398
5167
|
export const Enum = {
|
|
4399
5168
|
FontStyle,
|
|
4400
5169
|
eRPRM_Authenticity,
|
|
@@ -4404,9 +5173,9 @@ export const Enum = {
|
|
|
4404
5173
|
eRFID_CertificateType,
|
|
4405
5174
|
RGLMeasureSystem,
|
|
4406
5175
|
eRPRM_ResultType,
|
|
4407
|
-
CameraTypes,
|
|
4408
5176
|
FrameShapeType,
|
|
4409
5177
|
eRFID_BaudRate,
|
|
5178
|
+
LineCap,
|
|
4410
5179
|
eRPRM_FieldVerificationResult,
|
|
4411
5180
|
DocReaderAction,
|
|
4412
5181
|
eProcessGLCommands,
|
|
@@ -4416,7 +5185,9 @@ export const Enum = {
|
|
|
4416
5185
|
ScenarioIdentifier,
|
|
4417
5186
|
eRFID_AccessControl_ProcedureType,
|
|
4418
5187
|
eRFID_NotificationCodes,
|
|
5188
|
+
CameraPosition,
|
|
4419
5189
|
eRFID_Password_Type,
|
|
5190
|
+
ViewContentMode,
|
|
4420
5191
|
BarcodeResult,
|
|
4421
5192
|
eSignManagementAction,
|
|
4422
5193
|
eCheckDiagnose,
|
|
@@ -4440,6 +5211,7 @@ export const Enum = {
|
|
|
4440
5211
|
ImageFormat,
|
|
4441
5212
|
eGraphicFieldType,
|
|
4442
5213
|
RegDeviceConfigType,
|
|
5214
|
+
CaptureSessionPreset,
|
|
4443
5215
|
CameraMode,
|
|
4444
5216
|
CaptureMode,
|
|
4445
5217
|
eCheckResult,
|
|
@@ -4451,11 +5223,6 @@ export const Enum = {
|
|
|
4451
5223
|
CustomizationImage,
|
|
4452
5224
|
DocReaderFrame,
|
|
4453
5225
|
eRPRM_Lights,
|
|
4454
|
-
LineCap,
|
|
4455
|
-
UIInterfaceOrientationMask,
|
|
4456
|
-
AVCaptureSessionPreset,
|
|
4457
|
-
AVCaptureDevicePosition,
|
|
4458
|
-
UIViewContentMode,
|
|
4459
5226
|
}
|
|
4460
5227
|
|
|
4461
5228
|
export default class DocumentReader {
|
|
@@ -4466,44 +5233,45 @@ export default class DocumentReader {
|
|
|
4466
5233
|
static getRfidSessionStatus(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4467
5234
|
static setRfidSessionStatus(status: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4468
5235
|
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
|
|
5236
|
+
static setTag(tag: string | null, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4470
5237
|
static getFunctionality(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4471
|
-
static setFunctionality(functionality:
|
|
5238
|
+
static setFunctionality(functionality: Functionality, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4472
5239
|
static getProcessParams(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4473
|
-
static setProcessParams(processParams:
|
|
5240
|
+
static setProcessParams(processParams: ProcessParams, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4474
5241
|
static getCustomization(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4475
|
-
static setCustomization(customization:
|
|
5242
|
+
static setCustomization(customization: Customization, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4476
5243
|
static getRfidScenario(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4477
|
-
static setRfidScenario(rfidScenario:
|
|
4478
|
-
static
|
|
4479
|
-
static
|
|
5244
|
+
static setRfidScenario(rfidScenario: RFIDScenario, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5245
|
+
static resetConfiguration(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5246
|
+
static initializeReader(config: DocReaderConfig, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5247
|
+
static initializeReaderWithBleDeviceConfig(config: DocReaderConfig, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4480
5248
|
static deinitializeReader(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4481
5249
|
static prepareDatabase(databaseType: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4482
5250
|
static removeDatabase(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4483
5251
|
static runAutoUpdate(databaseId: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4484
5252
|
static cancelDBUpdate(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4485
5253
|
static checkDatabaseUpdate(databaseId: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4486
|
-
static scan(config:
|
|
4487
|
-
static recognize(config:
|
|
5254
|
+
static scan(config: ScannerConfig, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5255
|
+
static recognize(config: RecognizeConfig, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4488
5256
|
static startNewPage(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4489
5257
|
static stopScanner(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4490
5258
|
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
5259
|
static readRFID(requestPACertificates: boolean, requestTACertificates: boolean, requestTASignature: boolean, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4493
|
-
static
|
|
4494
|
-
static
|
|
5260
|
+
static stopRFIDReader(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5261
|
+
static providePACertificates(certificates: PKDCertificate[] | null, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5262
|
+
static provideTACertificates(certificates: PKDCertificate[] | null, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4495
5263
|
static provideTASignature(signature: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4496
|
-
static setTCCParams(params:
|
|
5264
|
+
static setTCCParams(params: TccParams, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4497
5265
|
static addPKDCertificates(certificates: PKDCertificate[], successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4498
5266
|
static clearPKDCertificates(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4499
5267
|
static startNewSession(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4500
5268
|
static startBluetoothService(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4501
|
-
static setLocalizationDictionary(dictionary:
|
|
5269
|
+
static setLocalizationDictionary(dictionary: Record<string, string>, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4502
5270
|
static getLicense(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4503
5271
|
static getAvailableScenarios(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4504
5272
|
static getIsRFIDAvailableForUse(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4505
5273
|
static getDocReaderVersion(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4506
5274
|
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
5275
|
static finalizePackage(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5276
|
+
static getTranslation(className: string, value: number, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
4509
5277
|
}
|