@regulaforensics/react-native-document-reader-api 9.2.430-nightly → 9.2.435-rc
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 +2 -2
- package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +9 -2
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +0 -13
- package/example/package.json +2 -2
- package/index.d.ts +16 -33
- package/index.js +13 -26
- package/ios/RGLWConfig.m +12 -7
- package/ios/RGLWJSONConstructor.h +0 -2
- package/ios/RGLWJSONConstructor.m +1 -18
- package/package.json +1 -1
|
@@ -14,6 +14,6 @@ Pod::Spec.new do |s|
|
|
|
14
14
|
s.source = { :http => 'file:' + __dir__ }
|
|
15
15
|
s.ios.deployment_target = '13.0'
|
|
16
16
|
s.source_files = "ios/*.{h,m}"
|
|
17
|
-
s.dependency '
|
|
17
|
+
s.dependency 'DocumentReaderStage', '9.2.5951'
|
|
18
18
|
s.dependency 'React'
|
|
19
19
|
end
|
package/android/build.gradle
CHANGED
|
@@ -20,7 +20,7 @@ android {
|
|
|
20
20
|
rootProject.allprojects {
|
|
21
21
|
repositories {
|
|
22
22
|
maven {
|
|
23
|
-
url "https://maven.regulaforensics.com/RegulaDocumentReader/
|
|
23
|
+
url "https://maven.regulaforensics.com/RegulaDocumentReader/Stage"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -29,7 +29,7 @@ dependencies {
|
|
|
29
29
|
//noinspection GradleDynamicVersion
|
|
30
30
|
implementation 'com.facebook.react:react-native:+'
|
|
31
31
|
//noinspection GradleDependency
|
|
32
|
-
implementation('com.regula.documentreader:api:9.2.
|
|
32
|
+
implementation('com.regula.documentreader:api:9.2.12479') {
|
|
33
33
|
transitive = true
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -18,6 +18,7 @@ import com.regula.documentreader.api.params.ImageQA
|
|
|
18
18
|
import com.regula.documentreader.api.params.LivenessParams
|
|
19
19
|
import com.regula.documentreader.api.params.ParamsCustomization
|
|
20
20
|
import com.regula.documentreader.api.params.ProcessParam
|
|
21
|
+
import com.regula.documentreader.api.params.Bsi
|
|
21
22
|
import com.regula.documentreader.api.params.RfidScenario
|
|
22
23
|
import com.regula.documentreader.api.params.rfid.dg.DTCDataGroup
|
|
23
24
|
import com.regula.documentreader.api.params.rfid.dg.DataGroups
|
|
@@ -147,6 +148,11 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
|
|
|
147
148
|
"strictSecurityChecks" -> processParams.strictSecurityChecks = v as Boolean
|
|
148
149
|
"returnTransliteratedFields" -> processParams.returnTransliteratedFields = v as Boolean
|
|
149
150
|
"checkCaptureProcessIntegrity" -> processParams.checkCaptureProcessIntegrity = v as Boolean
|
|
151
|
+
"bsiTr03135" -> {
|
|
152
|
+
val temp = Bsi()
|
|
153
|
+
temp.generateResult = (v as JSONObject).getBooleanOrNull("generateResult")
|
|
154
|
+
processParams.bsiTr03135 = temp
|
|
155
|
+
}
|
|
150
156
|
"measureSystem" -> processParams.measureSystem = v.toInt()
|
|
151
157
|
"barcodeParserType" -> processParams.barcodeParserType = v.toInt()
|
|
152
158
|
"perspectiveAngle" -> processParams.perspectiveAngle = v.toInt()
|
|
@@ -185,7 +191,6 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
|
|
|
185
191
|
"rfidParams" -> processParams.rfidParams = rfidParamsFromJSON(v as JSONObject)
|
|
186
192
|
"faceApiParams" -> processParams.faceApiParams = faceApiParamsFromJSON(v as JSONObject)
|
|
187
193
|
"backendProcessingConfig" -> processParams.backendProcessingConfig = backendProcessingConfigFromJSON(v as JSONObject)
|
|
188
|
-
"bsiTr03135" -> processParams.bsiTr03135 = bsiFromJSON(v as JSONObject)
|
|
189
194
|
"authenticityParams" -> {
|
|
190
195
|
if (processParams.authenticityParams == null) processParams.authenticityParams = AuthenticityParams.defaultParams()
|
|
191
196
|
setAuthenticityParams(processParams.authenticityParams!!, v as JSONObject)
|
|
@@ -237,6 +242,9 @@ fun getProcessParams(processParams: ProcessParam) = mapOf(
|
|
|
237
242
|
"strictSecurityChecks" to processParams.strictSecurityChecks,
|
|
238
243
|
"returnTransliteratedFields" to processParams.returnTransliteratedFields,
|
|
239
244
|
"checkCaptureProcessIntegrity" to processParams.checkCaptureProcessIntegrity,
|
|
245
|
+
"bsiTr03135" to mapOf(
|
|
246
|
+
"generateResult" to processParams.bsiTr03135?.generateResult
|
|
247
|
+
).toJson(),
|
|
240
248
|
"measureSystem" to processParams.measureSystem,
|
|
241
249
|
"barcodeParserType" to processParams.barcodeParserType,
|
|
242
250
|
"perspectiveAngle" to processParams.perspectiveAngle,
|
|
@@ -274,7 +282,6 @@ fun getProcessParams(processParams: ProcessParam) = mapOf(
|
|
|
274
282
|
"rfidParams" to generateRFIDParams(processParams.rfidParams),
|
|
275
283
|
"faceApiParams" to generateFaceApiParams(processParams.faceApiParams),
|
|
276
284
|
"backendProcessingConfig" to generateBackendProcessingConfig(processParams.backendProcessingConfig),
|
|
277
|
-
"bsiTr03135" to generateBsi(processParams.bsiTr03135),
|
|
278
285
|
"authenticityParams" to getAuthenticityParams(processParams.authenticityParams),
|
|
279
286
|
"customParams" to processParams.customParams,
|
|
280
287
|
).toJson()
|
|
@@ -29,7 +29,6 @@ import com.regula.documentreader.api.listener.NetworkInterceptorListener
|
|
|
29
29
|
import com.regula.documentreader.api.params.AuthenticityParams
|
|
30
30
|
import com.regula.documentreader.api.params.BackendProcessingConfig
|
|
31
31
|
import com.regula.documentreader.api.params.BleDeviceConfig
|
|
32
|
-
import com.regula.documentreader.api.params.Bsi
|
|
33
32
|
import com.regula.documentreader.api.params.DocReaderConfig
|
|
34
33
|
import com.regula.documentreader.api.params.FaceApiParams
|
|
35
34
|
import com.regula.documentreader.api.params.Functionality
|
|
@@ -326,18 +325,6 @@ fun generateBackendProcessingConfig(input: BackendProcessingConfig?) = input?.le
|
|
|
326
325
|
).toJson()
|
|
327
326
|
}
|
|
328
327
|
|
|
329
|
-
fun bsiFromJSON(input: JSONObject?) = input?.let {
|
|
330
|
-
val result = Bsi()
|
|
331
|
-
result.generateResult = it.getBooleanOrNull("generateResult")
|
|
332
|
-
result
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
fun generateBsi(input: Bsi?) = input?.let {
|
|
336
|
-
mapOf(
|
|
337
|
-
"generateResult" to it.generateResult,
|
|
338
|
-
).toJson()
|
|
339
|
-
}
|
|
340
|
-
|
|
341
328
|
val weakReferencesHolder = mutableListOf<Any>()
|
|
342
329
|
fun onlineProcessingConfigFromJSON(input: JSONObject?) = input?.let {
|
|
343
330
|
val builder = OnlineProcessingConfig.Builder(it.getInt("mode"))
|
package/example/package.json
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"test": "jest"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@regulaforensics/react-native-document-reader-api": "9.2.
|
|
14
|
-
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "9.2.
|
|
13
|
+
"@regulaforensics/react-native-document-reader-api": "9.2.435-rc",
|
|
14
|
+
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "9.2.1914-rc",
|
|
15
15
|
"@rneui/base": "4.0.0-rc.7",
|
|
16
16
|
"@rneui/themed": "4.0.0-rc.7",
|
|
17
17
|
"react": "19.0.0",
|
package/index.d.ts
CHANGED
|
@@ -2143,19 +2143,6 @@ export class BackendProcessingConfig {
|
|
|
2143
2143
|
}
|
|
2144
2144
|
}
|
|
2145
2145
|
|
|
2146
|
-
export class Bsi {
|
|
2147
|
-
generateResult?: boolean
|
|
2148
|
-
|
|
2149
|
-
static fromJson(jsonObject?: any): Bsi | undefined {
|
|
2150
|
-
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
2151
|
-
const result = new Bsi
|
|
2152
|
-
|
|
2153
|
-
result.generateResult = jsonObject["generateResult"]
|
|
2154
|
-
|
|
2155
|
-
return result
|
|
2156
|
-
}
|
|
2157
|
-
}
|
|
2158
|
-
|
|
2159
2146
|
export class LivenessParams {
|
|
2160
2147
|
checkOVI?: boolean
|
|
2161
2148
|
checkMLI?: boolean
|
|
@@ -2266,6 +2253,7 @@ export class ProcessParams {
|
|
|
2266
2253
|
strictSecurityChecks?: boolean
|
|
2267
2254
|
returnTransliteratedFields?: boolean
|
|
2268
2255
|
checkCaptureProcessIntegrity?: boolean
|
|
2256
|
+
bsiTr03135?: Bsi
|
|
2269
2257
|
barcodeParserType?: number
|
|
2270
2258
|
perspectiveAngle?: number
|
|
2271
2259
|
minDPI?: number
|
|
@@ -2303,7 +2291,6 @@ export class ProcessParams {
|
|
|
2303
2291
|
rfidParams?: RFIDParams
|
|
2304
2292
|
faceApiParams?: FaceApiParams
|
|
2305
2293
|
backendProcessingConfig?: BackendProcessingConfig
|
|
2306
|
-
bsiTr03135?: Bsi
|
|
2307
2294
|
authenticityParams?: AuthenticityParams
|
|
2308
2295
|
customParams?: Record<string, any>
|
|
2309
2296
|
|
|
@@ -2352,6 +2339,7 @@ export class ProcessParams {
|
|
|
2352
2339
|
result.strictSecurityChecks = jsonObject["strictSecurityChecks"]
|
|
2353
2340
|
result.returnTransliteratedFields = jsonObject["returnTransliteratedFields"]
|
|
2354
2341
|
result.checkCaptureProcessIntegrity = jsonObject["checkCaptureProcessIntegrity"]
|
|
2342
|
+
result.bsiTr03135 = Bsi.fromJson(jsonObject["bsiTr03135"])
|
|
2355
2343
|
result.barcodeParserType = jsonObject["barcodeParserType"]
|
|
2356
2344
|
result.perspectiveAngle = jsonObject["perspectiveAngle"]
|
|
2357
2345
|
result.minDPI = jsonObject["minDPI"]
|
|
@@ -2434,7 +2422,6 @@ export class ProcessParams {
|
|
|
2434
2422
|
result.rfidParams = RFIDParams.fromJson(jsonObject["rfidParams"])
|
|
2435
2423
|
result.faceApiParams = FaceApiParams.fromJson(jsonObject["faceApiParams"])
|
|
2436
2424
|
result.backendProcessingConfig = BackendProcessingConfig.fromJson(jsonObject["backendProcessingConfig"])
|
|
2437
|
-
result.bsiTr03135 = Bsi.fromJson(jsonObject["bsiTr03135"])
|
|
2438
2425
|
result.authenticityParams = AuthenticityParams.fromJson(jsonObject["authenticityParams"])
|
|
2439
2426
|
result.customParams = jsonObject["customParams"]
|
|
2440
2427
|
|
|
@@ -2459,6 +2446,19 @@ export class Font {
|
|
|
2459
2446
|
}
|
|
2460
2447
|
}
|
|
2461
2448
|
|
|
2449
|
+
export class Bsi {
|
|
2450
|
+
generateResult?: boolean
|
|
2451
|
+
|
|
2452
|
+
static fromJson(jsonObject?: any): Bsi | undefined {
|
|
2453
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
2454
|
+
const result = new Bsi
|
|
2455
|
+
|
|
2456
|
+
result.generateResult = jsonObject["generateResult"]
|
|
2457
|
+
|
|
2458
|
+
return result
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
2462
|
export class CustomizationColors {
|
|
2463
2463
|
rfidProcessingScreenBackground?: number
|
|
2464
2464
|
rfidProcessingScreenHintLabelText?: number
|
|
@@ -3254,23 +3254,6 @@ export class FinalizeConfig {
|
|
|
3254
3254
|
}
|
|
3255
3255
|
}
|
|
3256
3256
|
|
|
3257
|
-
export class FinalizeCompletion {
|
|
3258
|
-
action?: number
|
|
3259
|
-
info?: TransactionInfo
|
|
3260
|
-
error?: RegulaException
|
|
3261
|
-
|
|
3262
|
-
static fromJson(jsonObject?: any): FinalizeCompletion | undefined {
|
|
3263
|
-
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
3264
|
-
const result = new FinalizeCompletion
|
|
3265
|
-
|
|
3266
|
-
result.action = jsonObject["action"]
|
|
3267
|
-
result.info = TransactionInfo.fromJson(jsonObject["info"])
|
|
3268
|
-
result.error = RegulaException.fromJson(jsonObject["error"])
|
|
3269
|
-
|
|
3270
|
-
return result
|
|
3271
|
-
}
|
|
3272
|
-
}
|
|
3273
|
-
|
|
3274
3257
|
export const FontStyle = {
|
|
3275
3258
|
NORMAL: 0,
|
|
3276
3259
|
BOLD: 1,
|
|
@@ -5943,7 +5926,6 @@ export default class DocumentReader {
|
|
|
5943
5926
|
static getDocReaderVersion(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5944
5927
|
static getDocReaderDocumentsDatabase(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5945
5928
|
static finalizePackage(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5946
|
-
static finalizePackageWithFinalizeConfig(config: FinalizeConfig, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5947
5929
|
static endBackendTransaction(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5948
5930
|
static getTranslation(className: string, value: number, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5949
5931
|
static startReadMDl(type: number, dataRetrieval: DataRetrieval, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
@@ -5953,4 +5935,5 @@ export default class DocumentReader {
|
|
|
5953
5935
|
static startRetrieveData(deviceEngagement: DeviceEngagement, dataRetrieval: DataRetrieval, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5954
5936
|
static retrieveDataNFC(dataRetrieval: DataRetrieval, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5955
5937
|
static retrieveDataBLE(deviceEngagement: DeviceEngagement, dataRetrieval: DataRetrieval, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5938
|
+
static finalizePackageWithFinalizeConfig(config: FinalizeConfig, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5956
5939
|
}
|
package/index.js
CHANGED
|
@@ -1449,17 +1449,6 @@ export class BackendProcessingConfig {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
}
|
|
1451
1451
|
|
|
1452
|
-
export class Bsi {
|
|
1453
|
-
static fromJson(jsonObject) {
|
|
1454
|
-
if (jsonObject == null) return null
|
|
1455
|
-
const result = new Bsi()
|
|
1456
|
-
|
|
1457
|
-
result.generateResult = jsonObject["generateResult"]
|
|
1458
|
-
|
|
1459
|
-
return result
|
|
1460
|
-
}
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
1452
|
export class LivenessParams {
|
|
1464
1453
|
static fromJson(jsonObject) {
|
|
1465
1454
|
if (jsonObject == null) return null
|
|
@@ -1549,6 +1538,7 @@ export class ProcessParams {
|
|
|
1549
1538
|
result.strictSecurityChecks = jsonObject["strictSecurityChecks"]
|
|
1550
1539
|
result.returnTransliteratedFields = jsonObject["returnTransliteratedFields"]
|
|
1551
1540
|
result.checkCaptureProcessIntegrity = jsonObject["checkCaptureProcessIntegrity"]
|
|
1541
|
+
result.bsiTr03135 = Bsi.fromJson(jsonObject["bsiTr03135"])
|
|
1552
1542
|
result.barcodeParserType = jsonObject["barcodeParserType"]
|
|
1553
1543
|
result.perspectiveAngle = jsonObject["perspectiveAngle"]
|
|
1554
1544
|
result.minDPI = jsonObject["minDPI"]
|
|
@@ -1613,7 +1603,6 @@ export class ProcessParams {
|
|
|
1613
1603
|
result.rfidParams = RFIDParams.fromJson(jsonObject["rfidParams"])
|
|
1614
1604
|
result.faceApiParams = FaceApiParams.fromJson(jsonObject["faceApiParams"])
|
|
1615
1605
|
result.backendProcessingConfig = BackendProcessingConfig.fromJson(jsonObject["backendProcessingConfig"])
|
|
1616
|
-
result.bsiTr03135 = Bsi.fromJson(jsonObject["bsiTr03135"])
|
|
1617
1606
|
result.authenticityParams = AuthenticityParams.fromJson(jsonObject["authenticityParams"])
|
|
1618
1607
|
result.customParams = jsonObject["customParams"]
|
|
1619
1608
|
|
|
@@ -1634,6 +1623,17 @@ export class Font {
|
|
|
1634
1623
|
}
|
|
1635
1624
|
}
|
|
1636
1625
|
|
|
1626
|
+
export class Bsi {
|
|
1627
|
+
static fromJson(jsonObject) {
|
|
1628
|
+
if (jsonObject == null) return null
|
|
1629
|
+
const result = new Bsi()
|
|
1630
|
+
|
|
1631
|
+
result.generateResult = jsonObject["generateResult"]
|
|
1632
|
+
|
|
1633
|
+
return result
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
1637
|
export class CustomizationColors {
|
|
1638
1638
|
static fromJson(jsonObject) {
|
|
1639
1639
|
if (jsonObject == null) return null
|
|
@@ -2114,19 +2114,6 @@ export class FinalizeConfig {
|
|
|
2114
2114
|
}
|
|
2115
2115
|
}
|
|
2116
2116
|
|
|
2117
|
-
export class FinalizeCompletion {
|
|
2118
|
-
static fromJson(jsonObject) {
|
|
2119
|
-
if (jsonObject == null) return null
|
|
2120
|
-
const result = new FinalizeCompletion()
|
|
2121
|
-
|
|
2122
|
-
result.action = jsonObject["action"]
|
|
2123
|
-
result.info = TransactionInfo.fromJson(jsonObject["info"])
|
|
2124
|
-
result.error = RegulaException.fromJson(jsonObject["error"])
|
|
2125
|
-
|
|
2126
|
-
return result
|
|
2127
|
-
}
|
|
2128
|
-
}
|
|
2129
|
-
|
|
2130
2117
|
// Enum
|
|
2131
2118
|
|
|
2132
2119
|
export const FontStyle = {
|
|
@@ -4802,7 +4789,6 @@ DocumentReader.isAuthenticatorAvailableForUse = (successCallback, errorCallback)
|
|
|
4802
4789
|
DocumentReader.getDocReaderVersion = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getDocReaderVersion", [], successCallback, errorCallback)
|
|
4803
4790
|
DocumentReader.getDocReaderDocumentsDatabase = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getDocReaderDocumentsDatabase", [], successCallback, errorCallback)
|
|
4804
4791
|
DocumentReader.finalizePackage = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "finalizePackage", [], successCallback, errorCallback)
|
|
4805
|
-
DocumentReader.finalizePackageWithFinalizeConfig = (config, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "finalizePackageWithFinalizeConfig", [config], successCallback, errorCallback)
|
|
4806
4792
|
DocumentReader.endBackendTransaction = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "endBackendTransaction", [], successCallback, errorCallback)
|
|
4807
4793
|
DocumentReader.getTranslation = (className, value, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getTranslation", [className, value], successCallback, errorCallback)
|
|
4808
4794
|
DocumentReader.startReadMDl = (type, dataRetrieval, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "startReadMDl", [type, dataRetrieval], successCallback, errorCallback)
|
|
@@ -4812,5 +4798,6 @@ DocumentReader.engageDeviceData = (data, successCallback, errorCallback) => RNRe
|
|
|
4812
4798
|
DocumentReader.startRetrieveData = (deviceEngagement, dataRetrieval, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "startRetrieveData", [deviceEngagement, dataRetrieval], successCallback, errorCallback)
|
|
4813
4799
|
DocumentReader.retrieveDataNFC = (dataRetrieval, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "retrieveDataNFC", [dataRetrieval], successCallback, errorCallback)
|
|
4814
4800
|
DocumentReader.retrieveDataBLE = (deviceEngagement, dataRetrieval, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "retrieveDataBLE", [deviceEngagement, dataRetrieval], successCallback, errorCallback)
|
|
4801
|
+
DocumentReader.finalizePackageWithFinalizeConfig = (config, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "finalizePackageWithFinalizeConfig", [config], successCallback, errorCallback)
|
|
4815
4802
|
|
|
4816
4803
|
export default DocumentReader
|
package/ios/RGLWConfig.m
CHANGED
|
@@ -194,6 +194,10 @@
|
|
|
194
194
|
if (options[@"strictSecurityChecks"]) processParams.strictSecurityChecks = options[@"strictSecurityChecks"];
|
|
195
195
|
if (options[@"returnTransliteratedFields"]) processParams.returnTransliteratedFields = options[@"returnTransliteratedFields"];
|
|
196
196
|
if (options[@"checkCaptureProcessIntegrity"]) processParams.checkCaptureProcessIntegrity = options[@"checkCaptureProcessIntegrity"];
|
|
197
|
+
if (options[@"bsiTr03135"]) {
|
|
198
|
+
processParams.bsiTr03135 = [RGLBsi new];
|
|
199
|
+
processParams.bsiTr03135.generateResult = options[@"bsiTr03135"][@"generateResult"];
|
|
200
|
+
}
|
|
197
201
|
|
|
198
202
|
// Int
|
|
199
203
|
if([options valueForKey:@"measureSystem"] != nil)
|
|
@@ -268,17 +272,16 @@
|
|
|
268
272
|
if (options[@"customParams"]) processParams.customParams = options[@"customParams"];
|
|
269
273
|
if ([options valueForKey:@"imageQA"] != nil)
|
|
270
274
|
[self setImageQA:processParams.imageQA input:[options valueForKey:@"imageQA"]];
|
|
271
|
-
if ([options valueForKey:@"authenticityParams"] != nil) {
|
|
272
|
-
if(processParams.authenticityParams == nil) processParams.authenticityParams = [RGLAuthenticityParams defaultParams];
|
|
273
|
-
[self setAuthenticityParams:processParams.authenticityParams input:[options valueForKey:@"authenticityParams"]];
|
|
274
|
-
}
|
|
275
275
|
if ([options valueForKey:@"rfidParams"] != nil)
|
|
276
276
|
processParams.rfidParams = [RGLWJSONConstructor rfidParamsFromJson:[options valueForKey:@"rfidParams"]];
|
|
277
277
|
if ([options valueForKey:@"faceApiParams"] != nil)
|
|
278
278
|
processParams.faceApiParams = [RGLWJSONConstructor faceAPIParamsFromJson:[options valueForKey:@"faceApiParams"]];
|
|
279
279
|
if ([options valueForKey:@"backendProcessingConfig"] != nil)
|
|
280
280
|
processParams.backendProcessingConfig = [RGLWJSONConstructor backendProcessingConfigFromJson:[options valueForKey:@"backendProcessingConfig"]];
|
|
281
|
-
if (options
|
|
281
|
+
if ([options valueForKey:@"authenticityParams"] != nil) {
|
|
282
|
+
if(processParams.authenticityParams == nil) processParams.authenticityParams = [RGLAuthenticityParams defaultParams];
|
|
283
|
+
[self setAuthenticityParams:processParams.authenticityParams input:[options valueForKey:@"authenticityParams"]];
|
|
284
|
+
}
|
|
282
285
|
}
|
|
283
286
|
|
|
284
287
|
+(NSDictionary*)getProcessParams:(RGLProcessParams*)processParams {
|
|
@@ -326,6 +329,9 @@
|
|
|
326
329
|
result[@"strictSecurityChecks"] = processParams.strictSecurityChecks;
|
|
327
330
|
result[@"returnTransliteratedFields"] = processParams.returnTransliteratedFields;
|
|
328
331
|
result[@"checkCaptureProcessIntegrity"] = processParams.checkCaptureProcessIntegrity;
|
|
332
|
+
if(processParams.bsiTr03135) result[@"bsiTr03135"] = @{
|
|
333
|
+
@"generateResult": processParams.bsiTr03135.generateResult,
|
|
334
|
+
};
|
|
329
335
|
|
|
330
336
|
// Int
|
|
331
337
|
result[@"measureSystem"] = [NSNumber numberWithInteger:processParams.measureSystem];
|
|
@@ -370,11 +376,10 @@
|
|
|
370
376
|
|
|
371
377
|
// JSONObject
|
|
372
378
|
result[@"imageQA"] = [self getImageQA:processParams.imageQA];
|
|
373
|
-
result[@"authenticityParams"] = [self getAuthenticityParams:processParams.authenticityParams];
|
|
374
379
|
result[@"rfidParams"] = [RGLWJSONConstructor generateRFIDParams:processParams.rfidParams];
|
|
375
380
|
result[@"faceApiParams"] = [RGLWJSONConstructor generateFaceAPIParams:processParams.faceApiParams];
|
|
376
381
|
result[@"backendProcessingConfig"] = [RGLWJSONConstructor generateBackendProcessingConfig:processParams.backendProcessingConfig];
|
|
377
|
-
result[@"
|
|
382
|
+
result[@"authenticityParams"] = [self getAuthenticityParams:processParams.authenticityParams];
|
|
378
383
|
|
|
379
384
|
// Custom
|
|
380
385
|
result[@"customParams"] = processParams.customParams;
|
|
@@ -51,8 +51,6 @@
|
|
|
51
51
|
+(NSDictionary* _Nullable)generateProcessParams:(RGLProcessParams* _Nullable)input;
|
|
52
52
|
+(RGLBackendProcessingConfig* _Nullable)backendProcessingConfigFromJson:(NSDictionary* _Nullable)input;
|
|
53
53
|
+(NSDictionary* _Nullable)generateBackendProcessingConfig:(RGLBackendProcessingConfig* _Nullable)input;
|
|
54
|
-
+(RGLBsi* _Nullable)bsiFromJson:(NSDictionary* _Nullable)input;
|
|
55
|
-
+(NSDictionary* _Nullable)generateBsi:(RGLBsi* _Nullable)input;
|
|
56
54
|
+(RGLeDLDataGroup* _Nullable)eDLDataGroupsFromJson:(NSDictionary* _Nullable)input;
|
|
57
55
|
+(NSDictionary* _Nullable)generateEDLDataGroups:(RGLeDLDataGroup* _Nullable)input;
|
|
58
56
|
+(RGLePassportDataGroup* _Nullable)ePassportDataGroupsFromJson:(NSDictionary* _Nullable)input;
|
|
@@ -303,24 +303,6 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
303
303
|
return result;
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
-
+(RGLBsi*)bsiFromJson:(NSDictionary*)input {
|
|
307
|
-
if(input == nil) return nil;
|
|
308
|
-
RGLBsi *result = [RGLBsi new];
|
|
309
|
-
|
|
310
|
-
if(input[@"generateResult"]) result.generateResult = input[@"generateResult"];
|
|
311
|
-
|
|
312
|
-
return result;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
+(NSDictionary*)generateBsi:(RGLBsi*)input {
|
|
316
|
-
if(input == nil) return nil;
|
|
317
|
-
NSMutableDictionary* result = [NSMutableDictionary new];
|
|
318
|
-
|
|
319
|
-
result[@"generateResult"] = input.generateResult;
|
|
320
|
-
|
|
321
|
-
return result;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
306
|
+(RGLImageQA*)imageQAFromJson:(NSDictionary*)input {
|
|
325
307
|
RGLImageQA *result = [RGLImageQA new];
|
|
326
308
|
[RGLWConfig setImageQA:result input:input];
|
|
@@ -2594,6 +2576,7 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
2594
2576
|
result.requests = requests;
|
|
2595
2577
|
|
|
2596
2578
|
return result;
|
|
2579
|
+
|
|
2597
2580
|
}
|
|
2598
2581
|
|
|
2599
2582
|
+(NSDictionary*)generateDataRetrieval:(RGLDataRetrieval*)input {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/react-native-document-reader-api",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.435-rc",
|
|
4
4
|
"description": "React Native module for reading and validation of identification documents (API framework)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|