@regulaforensics/react-native-document-reader-api 9.2.442-rc → 9.2.446-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 +1 -1
- package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +38 -9
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +13 -0
- package/example/package-lock.json +10 -10
- package/example/package.json +2 -2
- package/index.d.ts +51 -16
- package/index.js +44 -13
- package/ios/RGLWConfig.m +30 -18
- package/ios/RGLWJSONConstructor.h +2 -0
- package/ios/RGLWJSONConstructor.m +18 -1
- 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 'DocumentReaderStage', '9.
|
|
17
|
+
s.dependency 'DocumentReaderStage', '9.3.5986'
|
|
18
18
|
s.dependency 'React'
|
|
19
19
|
end
|
package/android/build.gradle
CHANGED
|
@@ -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.12512') {
|
|
33
33
|
transitive = true
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -18,7 +18,6 @@ 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
|
|
22
21
|
import com.regula.documentreader.api.params.RfidScenario
|
|
23
22
|
import com.regula.documentreader.api.params.rfid.dg.DTCDataGroup
|
|
24
23
|
import com.regula.documentreader.api.params.rfid.dg.DataGroups
|
|
@@ -148,11 +147,6 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
|
|
|
148
147
|
"strictSecurityChecks" -> processParams.strictSecurityChecks = v as Boolean
|
|
149
148
|
"returnTransliteratedFields" -> processParams.returnTransliteratedFields = v as Boolean
|
|
150
149
|
"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
|
-
}
|
|
156
150
|
"measureSystem" -> processParams.measureSystem = v.toInt()
|
|
157
151
|
"barcodeParserType" -> processParams.barcodeParserType = v.toInt()
|
|
158
152
|
"perspectiveAngle" -> processParams.perspectiveAngle = v.toInt()
|
|
@@ -191,6 +185,7 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
|
|
|
191
185
|
"rfidParams" -> processParams.rfidParams = rfidParamsFromJSON(v as JSONObject)
|
|
192
186
|
"faceApiParams" -> processParams.faceApiParams = faceApiParamsFromJSON(v as JSONObject)
|
|
193
187
|
"backendProcessingConfig" -> processParams.backendProcessingConfig = backendProcessingConfigFromJSON(v as JSONObject)
|
|
188
|
+
"bsiTr03135" -> processParams.bsiTr03135 = bsiFromJSON(v as JSONObject)
|
|
194
189
|
"authenticityParams" -> {
|
|
195
190
|
if (processParams.authenticityParams == null) processParams.authenticityParams = AuthenticityParams.defaultParams()
|
|
196
191
|
setAuthenticityParams(processParams.authenticityParams!!, v as JSONObject)
|
|
@@ -242,9 +237,6 @@ fun getProcessParams(processParams: ProcessParam) = mapOf(
|
|
|
242
237
|
"strictSecurityChecks" to processParams.strictSecurityChecks,
|
|
243
238
|
"returnTransliteratedFields" to processParams.returnTransliteratedFields,
|
|
244
239
|
"checkCaptureProcessIntegrity" to processParams.checkCaptureProcessIntegrity,
|
|
245
|
-
"bsiTr03135" to mapOf(
|
|
246
|
-
"generateResult" to processParams.bsiTr03135?.generateResult
|
|
247
|
-
).toJson(),
|
|
248
240
|
"measureSystem" to processParams.measureSystem,
|
|
249
241
|
"barcodeParserType" to processParams.barcodeParserType,
|
|
250
242
|
"perspectiveAngle" to processParams.perspectiveAngle,
|
|
@@ -282,6 +274,7 @@ fun getProcessParams(processParams: ProcessParam) = mapOf(
|
|
|
282
274
|
"rfidParams" to generateRFIDParams(processParams.rfidParams),
|
|
283
275
|
"faceApiParams" to generateFaceApiParams(processParams.faceApiParams),
|
|
284
276
|
"backendProcessingConfig" to generateBackendProcessingConfig(processParams.backendProcessingConfig),
|
|
277
|
+
"bsiTr03135" to generateBsi(processParams.bsiTr03135),
|
|
285
278
|
"authenticityParams" to getAuthenticityParams(processParams.authenticityParams),
|
|
286
279
|
"customParams" to processParams.customParams,
|
|
287
280
|
).toJson()
|
|
@@ -777,6 +770,16 @@ fun setColors(input: ParamsCustomization.CustomizationEditor, opts: JSONObject)
|
|
|
777
770
|
"rfidEnableNfcDescriptionText" -> input.setColor(CustomizationColor.RFID_ENABLE_NFC_DESCRIPTION_TEXT, value)
|
|
778
771
|
"rfidEnableNfcButtonText" -> input.setColor(CustomizationColor.RFID_ENABLE_NFC_BUTTON_TEXT, value)
|
|
779
772
|
"rfidEnableNfcButtonBackground" -> input.setColor(CustomizationColor.RFID_ENABLE_NFC_BUTTON_BACKGROUND, value)
|
|
773
|
+
"mdlProcessingScreenBackground" -> input.setColor(CustomizationColor.MDL_PROCESSING_SCREEN_BACKGROUND, value)
|
|
774
|
+
"mdlProcessingScreenHintLabelText" -> input.setColor(CustomizationColor.MDL_PROCESSING_SCREEN_HINT_LABEL_TEXT, value)
|
|
775
|
+
"mdlProcessingScreenHintLabelBackground" -> input.setColor(CustomizationColor.MDL_PROCESSING_SCREEN_HINT_LABEL_BACKGROUND, value)
|
|
776
|
+
"mdlProcessingScreenProgressLabelText" -> input.setColor(CustomizationColor.MDL_PROCESSING_SCREEN_PROGRESS_LABEL_TEXT, value)
|
|
777
|
+
"mdlProcessingScreenResultLabelText" -> input.setColor(CustomizationColor.MDL_PROCESSING_SCREEN_RESULT_LABEL_TEXT, value)
|
|
778
|
+
"mdlProcessingScreenLoadingBar" -> input.setColor(CustomizationColor.MDL_PROCESSING_SCREEN_LOADING_BAR, value)
|
|
779
|
+
"mdlEnableNfcTitleText" -> input.setColor(CustomizationColor.MDL_ENABLE_NFC_TITLE_TEXT, value)
|
|
780
|
+
"mdlEnableNfcDescriptionText" -> input.setColor(CustomizationColor.MDL_ENABLE_NFC_DESCRIPTION_TEXT, value)
|
|
781
|
+
"mdlEnableNfcButtonText" -> input.setColor(CustomizationColor.MDL_ENABLE_NFC_BUTTON_TEXT, value)
|
|
782
|
+
"mdlEnableNfcButtonBackground" -> input.setColor(CustomizationColor.MDL_ENABLE_NFC_BUTTON_BACKGROUND, value)
|
|
780
783
|
}
|
|
781
784
|
}
|
|
782
785
|
|
|
@@ -793,6 +796,16 @@ fun getColors(input: Map<CustomizationColor, Long>) = mapOf(
|
|
|
793
796
|
"rfidEnableNfcDescriptionText" to input[CustomizationColor.RFID_ENABLE_NFC_DESCRIPTION_TEXT],
|
|
794
797
|
"rfidEnableNfcButtonText" to input[CustomizationColor.RFID_ENABLE_NFC_BUTTON_TEXT],
|
|
795
798
|
"rfidEnableNfcButtonBackground" to input[CustomizationColor.RFID_ENABLE_NFC_BUTTON_BACKGROUND],
|
|
799
|
+
"mdlProcessingScreenBackground" to input[CustomizationColor.MDL_PROCESSING_SCREEN_BACKGROUND],
|
|
800
|
+
"mdlProcessingScreenHintLabelText" to input[CustomizationColor.MDL_PROCESSING_SCREEN_HINT_LABEL_TEXT],
|
|
801
|
+
"mdlProcessingScreenHintLabelBackground" to input[CustomizationColor.MDL_PROCESSING_SCREEN_HINT_LABEL_BACKGROUND],
|
|
802
|
+
"mdlProcessingScreenProgressLabelText" to input[CustomizationColor.MDL_PROCESSING_SCREEN_PROGRESS_LABEL_TEXT],
|
|
803
|
+
"mdlProcessingScreenResultLabelText" to input[CustomizationColor.MDL_PROCESSING_SCREEN_RESULT_LABEL_TEXT],
|
|
804
|
+
"mdlProcessingScreenLoadingBar" to input[CustomizationColor.MDL_PROCESSING_SCREEN_LOADING_BAR],
|
|
805
|
+
"mdlEnableNfcTitleText" to input[CustomizationColor.MDL_ENABLE_NFC_TITLE_TEXT],
|
|
806
|
+
"mdlEnableNfcDescriptionText" to input[CustomizationColor.MDL_ENABLE_NFC_DESCRIPTION_TEXT],
|
|
807
|
+
"mdlEnableNfcButtonText" to input[CustomizationColor.MDL_ENABLE_NFC_BUTTON_TEXT],
|
|
808
|
+
"mdlEnableNfcButtonBackground" to input[CustomizationColor.MDL_ENABLE_NFC_BUTTON_BACKGROUND],
|
|
796
809
|
).toJson()
|
|
797
810
|
|
|
798
811
|
fun setFonts(input: ParamsCustomization.CustomizationEditor, opts: JSONObject) = opts.forEach { key, value ->
|
|
@@ -803,6 +816,12 @@ fun setFonts(input: ParamsCustomization.CustomizationEditor, opts: JSONObject) =
|
|
|
803
816
|
"rfidEnableNfcTitleText" -> CustomizationFont.RFID_ENABLE_NFC_TITLE_TEXT.setFont(input, value)
|
|
804
817
|
"rfidEnableNfcDescriptionText" -> CustomizationFont.RFID_ENABLE_NFC_DESCRIPTION_TEXT.setFont(input, value)
|
|
805
818
|
"rfidEnableNfcButtonText" -> CustomizationFont.RFID_ENABLE_NFC_BUTTON_TEXT.setFont(input, value)
|
|
819
|
+
"mdlProcessingScreenHintLabel" -> CustomizationFont.MDL_PROCESSING_SCREEN_HINT_LABEL.setFont(input, value)
|
|
820
|
+
"mdlProcessingScreenProgressLabel" -> CustomizationFont.MDL_PROCESSING_SCREEN_PROGRESS_LABEL.setFont(input, value)
|
|
821
|
+
"mdlProcessingScreenResultLabel" -> CustomizationFont.MDL_PROCESSING_SCREEN_RESULT_LABEL.setFont(input, value)
|
|
822
|
+
"mdlEnableNfcTitleText" -> CustomizationFont.MDL_ENABLE_NFC_TITLE_TEXT.setFont(input, value)
|
|
823
|
+
"mdlEnableNfcDescriptionText" -> CustomizationFont.MDL_ENABLE_NFC_DESCRIPTION_TEXT.setFont(input, value)
|
|
824
|
+
"mdlEnableNfcButtonText" -> CustomizationFont.MDL_ENABLE_NFC_BUTTON_TEXT.setFont(input, value)
|
|
806
825
|
}
|
|
807
826
|
}
|
|
808
827
|
|
|
@@ -813,18 +832,28 @@ fun getFonts(fonts: Map<CustomizationFont, Typeface>, sizes: Map<CustomizationFo
|
|
|
813
832
|
"rfidEnableNfcTitleText" to CustomizationFont.RFID_ENABLE_NFC_TITLE_TEXT.getFont(fonts, sizes),
|
|
814
833
|
"rfidEnableNfcDescriptionText" to CustomizationFont.RFID_ENABLE_NFC_DESCRIPTION_TEXT.getFont(fonts, sizes),
|
|
815
834
|
"rfidEnableNfcButtonText" to CustomizationFont.RFID_ENABLE_NFC_BUTTON_TEXT.getFont(fonts, sizes),
|
|
835
|
+
"mdlProcessingScreenHintLabel" to CustomizationFont.MDL_PROCESSING_SCREEN_HINT_LABEL.getFont(fonts, sizes),
|
|
836
|
+
"mdlProcessingScreenProgressLabel" to CustomizationFont.MDL_PROCESSING_SCREEN_PROGRESS_LABEL.getFont(fonts, sizes),
|
|
837
|
+
"mdlProcessingScreenResultLabel" to CustomizationFont.MDL_PROCESSING_SCREEN_RESULT_LABEL.getFont(fonts, sizes),
|
|
838
|
+
"mdlEnableNfcTitleText" to CustomizationFont.MDL_ENABLE_NFC_TITLE_TEXT.getFont(fonts, sizes),
|
|
839
|
+
"mdlEnableNfcDescriptionText" to CustomizationFont.MDL_ENABLE_NFC_DESCRIPTION_TEXT.getFont(fonts, sizes),
|
|
840
|
+
"mdlEnableNfcButtonText" to CustomizationFont.MDL_ENABLE_NFC_BUTTON_TEXT.getFont(fonts, sizes),
|
|
816
841
|
).toJson()
|
|
817
842
|
|
|
818
843
|
fun setImages(input: ParamsCustomization.CustomizationEditor, opts: JSONObject) = opts.forEach { key, v ->
|
|
819
844
|
when (key) {
|
|
820
845
|
"rfidProcessingScreenFailureImage" -> input.setImage(CustomizationImage.RFID_PROCESSING_SCREEN_FAILURE_IMAGE, v.toDrawable())
|
|
821
846
|
"rfidEnableNfcImage" -> input.setImage(CustomizationImage.RFID_ENABLE_NFC_IMAGE, v.toDrawable())
|
|
847
|
+
"mdlProcessingScreenFailureImage" -> input.setImage(CustomizationImage.MDL_PROCESSING_SCREEN_FAILURE_IMAGE, v.toDrawable())
|
|
848
|
+
"mdlEnableNfcImage" -> input.setImage(CustomizationImage.MDL_ENABLE_NFC_IMAGE, v.toDrawable())
|
|
822
849
|
}
|
|
823
850
|
}
|
|
824
851
|
|
|
825
852
|
fun getImages(input: Map<CustomizationImage, Drawable>) = mapOf(
|
|
826
853
|
"rfidProcessingScreenFailureImage" to (input[CustomizationImage.RFID_PROCESSING_SCREEN_FAILURE_IMAGE] ?: ContextCompat.getDrawable(context, com.regula.documentreader.api.R.drawable.reg_ic_error)).toBase64(),
|
|
827
854
|
"rfidEnableNfcImage" to (input[CustomizationImage.RFID_ENABLE_NFC_IMAGE] ?: ContextCompat.getDrawable(context, com.regula.documentreader.api.R.drawable.reg_enable_nfc)).toBase64(),
|
|
855
|
+
"mdlProcessingScreenFailureImage" to (input[CustomizationImage.MDL_PROCESSING_SCREEN_FAILURE_IMAGE] ?: ContextCompat.getDrawable(context, com.regula.documentreader.api.R.drawable.reg_enable_nfc)).toBase64(),
|
|
856
|
+
"mdlEnableNfcImage" to (input[CustomizationImage.MDL_ENABLE_NFC_IMAGE] ?: ContextCompat.getDrawable(context, com.regula.documentreader.api.R.drawable.reg_enable_nfc)).toBase64(),
|
|
828
857
|
).toJson()
|
|
829
858
|
|
|
830
859
|
fun CustomizationFont.getFont(fonts: Map<CustomizationFont, Typeface>, sizes: Map<CustomizationFont, Int>) =
|
|
@@ -29,6 +29,7 @@ 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
|
|
32
33
|
import com.regula.documentreader.api.params.DocReaderConfig
|
|
33
34
|
import com.regula.documentreader.api.params.FaceApiParams
|
|
34
35
|
import com.regula.documentreader.api.params.Functionality
|
|
@@ -325,6 +326,18 @@ fun generateBackendProcessingConfig(input: BackendProcessingConfig?) = input?.le
|
|
|
325
326
|
).toJson()
|
|
326
327
|
}
|
|
327
328
|
|
|
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
|
+
|
|
328
341
|
val weakReferencesHolder = mutableListOf<Any>()
|
|
329
342
|
fun onlineProcessingConfigFromJSON(input: JSONObject?) = input?.let {
|
|
330
343
|
val builder = OnlineProcessingConfig.Builder(it.getInt("mode"))
|
|
@@ -98,9 +98,9 @@
|
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
"node_modules/@babel/eslint-parser": {
|
|
101
|
-
"version": "7.28.
|
|
102
|
-
"resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.28.
|
|
103
|
-
"integrity": "sha512-
|
|
101
|
+
"version": "7.28.6",
|
|
102
|
+
"resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.28.6.tgz",
|
|
103
|
+
"integrity": "sha512-QGmsKi2PBO/MHSQk+AAgA9R6OHQr+VqnniFE0eMWZcVcfBZoA2dKn2hUsl3Csg/Plt9opRUWdY7//VXsrIlEiA==",
|
|
104
104
|
"dev": true,
|
|
105
105
|
"license": "MIT",
|
|
106
106
|
"dependencies": {
|
|
@@ -1991,9 +1991,9 @@
|
|
|
1991
1991
|
"license": "MIT"
|
|
1992
1992
|
},
|
|
1993
1993
|
"node_modules/@eslint-community/eslint-utils": {
|
|
1994
|
-
"version": "4.9.
|
|
1995
|
-
"resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.
|
|
1996
|
-
"integrity": "sha512-
|
|
1994
|
+
"version": "4.9.1",
|
|
1995
|
+
"resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz",
|
|
1996
|
+
"integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==",
|
|
1997
1997
|
"dev": true,
|
|
1998
1998
|
"license": "MIT",
|
|
1999
1999
|
"dependencies": {
|
|
@@ -10592,9 +10592,9 @@
|
|
|
10592
10592
|
"license": "MIT"
|
|
10593
10593
|
},
|
|
10594
10594
|
"node_modules/qs": {
|
|
10595
|
-
"version": "6.14.
|
|
10596
|
-
"resolved": "https://registry.npmjs.org/qs/-/qs-6.14.
|
|
10597
|
-
"integrity": "sha512-
|
|
10595
|
+
"version": "6.14.2",
|
|
10596
|
+
"resolved": "https://registry.npmjs.org/qs/-/qs-6.14.2.tgz",
|
|
10597
|
+
"integrity": "sha512-V/yCWTTF7VJ9hIh18Ugr2zhJMP01MY7c5kh4J870L7imm6/DIzBsNLTXzMwUA3yZ5b/KBqLx8Kp3uRvd7xSe3Q==",
|
|
10598
10598
|
"devOptional": true,
|
|
10599
10599
|
"license": "BSD-3-Clause",
|
|
10600
10600
|
"dependencies": {
|
|
@@ -12367,7 +12367,7 @@
|
|
|
12367
12367
|
"version": "5.7.3",
|
|
12368
12368
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz",
|
|
12369
12369
|
"integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==",
|
|
12370
|
-
"
|
|
12370
|
+
"devOptional": true,
|
|
12371
12371
|
"license": "Apache-2.0",
|
|
12372
12372
|
"bin": {
|
|
12373
12373
|
"tsc": "bin/tsc",
|
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.
|
|
13
|
+
"@regulaforensics/react-native-document-reader-api": "9.2.446-rc",
|
|
14
|
+
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "9.3.1951-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,6 +2143,19 @@ 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
|
+
|
|
2146
2159
|
export class LivenessParams {
|
|
2147
2160
|
checkOVI?: boolean
|
|
2148
2161
|
checkMLI?: boolean
|
|
@@ -2253,7 +2266,6 @@ export class ProcessParams {
|
|
|
2253
2266
|
strictSecurityChecks?: boolean
|
|
2254
2267
|
returnTransliteratedFields?: boolean
|
|
2255
2268
|
checkCaptureProcessIntegrity?: boolean
|
|
2256
|
-
bsiTr03135?: Bsi
|
|
2257
2269
|
barcodeParserType?: number
|
|
2258
2270
|
perspectiveAngle?: number
|
|
2259
2271
|
minDPI?: number
|
|
@@ -2291,6 +2303,7 @@ export class ProcessParams {
|
|
|
2291
2303
|
rfidParams?: RFIDParams
|
|
2292
2304
|
faceApiParams?: FaceApiParams
|
|
2293
2305
|
backendProcessingConfig?: BackendProcessingConfig
|
|
2306
|
+
bsiTr03135?: Bsi
|
|
2294
2307
|
authenticityParams?: AuthenticityParams
|
|
2295
2308
|
customParams?: Record<string, any>
|
|
2296
2309
|
|
|
@@ -2339,7 +2352,6 @@ export class ProcessParams {
|
|
|
2339
2352
|
result.strictSecurityChecks = jsonObject["strictSecurityChecks"]
|
|
2340
2353
|
result.returnTransliteratedFields = jsonObject["returnTransliteratedFields"]
|
|
2341
2354
|
result.checkCaptureProcessIntegrity = jsonObject["checkCaptureProcessIntegrity"]
|
|
2342
|
-
result.bsiTr03135 = Bsi.fromJson(jsonObject["bsiTr03135"])
|
|
2343
2355
|
result.barcodeParserType = jsonObject["barcodeParserType"]
|
|
2344
2356
|
result.perspectiveAngle = jsonObject["perspectiveAngle"]
|
|
2345
2357
|
result.minDPI = jsonObject["minDPI"]
|
|
@@ -2422,6 +2434,7 @@ export class ProcessParams {
|
|
|
2422
2434
|
result.rfidParams = RFIDParams.fromJson(jsonObject["rfidParams"])
|
|
2423
2435
|
result.faceApiParams = FaceApiParams.fromJson(jsonObject["faceApiParams"])
|
|
2424
2436
|
result.backendProcessingConfig = BackendProcessingConfig.fromJson(jsonObject["backendProcessingConfig"])
|
|
2437
|
+
result.bsiTr03135 = Bsi.fromJson(jsonObject["bsiTr03135"])
|
|
2425
2438
|
result.authenticityParams = AuthenticityParams.fromJson(jsonObject["authenticityParams"])
|
|
2426
2439
|
result.customParams = jsonObject["customParams"]
|
|
2427
2440
|
|
|
@@ -2446,19 +2459,6 @@ export class Font {
|
|
|
2446
2459
|
}
|
|
2447
2460
|
}
|
|
2448
2461
|
|
|
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,6 +3254,23 @@ 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
|
+
|
|
3257
3274
|
export const FontStyle = {
|
|
3258
3275
|
NORMAL: 0,
|
|
3259
3276
|
BOLD: 1,
|
|
@@ -3298,6 +3315,16 @@ export const CustomizationColor = {
|
|
|
3298
3315
|
RFID_ENABLE_NFC_DESCRIPTION_TEXT: "rfidEnableNfcDescriptionText",
|
|
3299
3316
|
RFID_ENABLE_NFC_BUTTON_TEXT: "rfidEnableNfcButtonText",
|
|
3300
3317
|
RFID_ENABLE_NFC_BUTTON_BACKGROUND: "rfidEnableNfcButtonBackground",
|
|
3318
|
+
MDL_PROCESSING_SCREEN_BACKGROUND: "mdlProcessingScreenBackground",
|
|
3319
|
+
MDL_PROCESSING_SCREEN_HINT_LABEL_TEXT: "mdlProcessingScreenHintLabelText",
|
|
3320
|
+
MDL_PROCESSING_SCREEN_HINT_LABEL_BACKGROUND: "mdlProcessingScreenHintLabelBackground",
|
|
3321
|
+
MDL_PROCESSING_SCREEN_PROGRESS_LABEL_TEXT: "mdlProcessingScreenProgressLabelText",
|
|
3322
|
+
MDL_PROCESSING_SCREEN_RESULT_LABEL_TEXT: "mdlProcessingScreenResultLabelText",
|
|
3323
|
+
MDL_PROCESSING_SCREEN_LOADING_BAR: "mdlProcessingScreenLoadingBar",
|
|
3324
|
+
MDL_ENABLE_NFC_TITLE_TEXT: "mdlEnableNfcTitleText",
|
|
3325
|
+
MDL_ENABLE_NFC_DESCRIPTION_TEXT: "mdlEnableNfcDescriptionText",
|
|
3326
|
+
MDL_ENABLE_NFC_BUTTON_TEXT: "mdlEnableNfcButtonText",
|
|
3327
|
+
MDL_ENABLE_NFC_BUTTON_BACKGROUND: "mdlEnableNfcButtonBackground",
|
|
3301
3328
|
}
|
|
3302
3329
|
|
|
3303
3330
|
export const eRFID_ErrorCodes = {
|
|
@@ -4754,6 +4781,12 @@ export const CustomizationFont = {
|
|
|
4754
4781
|
RFID_ENABLE_NFC_TITLE_TEXT: "rfidEnableNfcTitleText",
|
|
4755
4782
|
RFID_ENABLE_NFC_DESCRIPTION_TEXT: "rfidEnableNfcDescriptionText",
|
|
4756
4783
|
RFID_ENABLE_NFC_BUTTON_TEXT: "rfidEnableNfcButtonText",
|
|
4784
|
+
MDL_PROCESSING_SCREEN_HINT_LABEL: "mdlProcessingScreenHintLabel",
|
|
4785
|
+
MDL_PROCESSING_SCREEN_PROGRESS_LABEL: "mdlProcessingScreenProgressLabel",
|
|
4786
|
+
MDL_PROCESSING_SCREEN_RESULT_LABEL: "mdlProcessingScreenResultLabel",
|
|
4787
|
+
MDL_ENABLE_NFC_TITLE_TEXT: "mdlEnableNfcTitleText",
|
|
4788
|
+
MDL_ENABLE_NFC_DESCRIPTION_TEXT: "mdlEnableNfcDescriptionText",
|
|
4789
|
+
MDL_ENABLE_NFC_BUTTON_TEXT: "mdlEnableNfcButtonText",
|
|
4757
4790
|
}
|
|
4758
4791
|
|
|
4759
4792
|
export const ImageFormat = {
|
|
@@ -5764,6 +5797,8 @@ export const LCID = {
|
|
|
5764
5797
|
export const CustomizationImage = {
|
|
5765
5798
|
RFID_PROCESSING_SCREEN_FAILURE_IMAGE: "rfidProcessingScreenFailureImage",
|
|
5766
5799
|
RFID_ENABLE_NFC_IMAGE: "rfidEnableNfcImage",
|
|
5800
|
+
MDL_PROCESSING_SCREEN_FAILURE_IMAGE: "mdlProcessingScreenFailureImage",
|
|
5801
|
+
MDL_ENABLE_NFC_IMAGE: "mdlEnableNfcImage",
|
|
5767
5802
|
}
|
|
5768
5803
|
|
|
5769
5804
|
export const DocReaderFrame = {
|
|
@@ -5926,6 +5961,7 @@ export default class DocumentReader {
|
|
|
5926
5961
|
static getDocReaderVersion(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5927
5962
|
static getDocReaderDocumentsDatabase(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5928
5963
|
static finalizePackage(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5964
|
+
static finalizePackageWithFinalizeConfig(config: FinalizeConfig, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5929
5965
|
static endBackendTransaction(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5930
5966
|
static getTranslation(className: string, value: number, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5931
5967
|
static startReadMDl(type: number, dataRetrieval: DataRetrieval, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
@@ -5935,5 +5971,4 @@ export default class DocumentReader {
|
|
|
5935
5971
|
static startRetrieveData(deviceEngagement: DeviceEngagement, dataRetrieval: DataRetrieval, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5936
5972
|
static retrieveDataNFC(dataRetrieval: DataRetrieval, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5937
5973
|
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
|
|
5939
5974
|
}
|
package/index.js
CHANGED
|
@@ -1449,6 +1449,17 @@ 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
|
+
|
|
1452
1463
|
export class LivenessParams {
|
|
1453
1464
|
static fromJson(jsonObject) {
|
|
1454
1465
|
if (jsonObject == null) return null
|
|
@@ -1538,7 +1549,6 @@ export class ProcessParams {
|
|
|
1538
1549
|
result.strictSecurityChecks = jsonObject["strictSecurityChecks"]
|
|
1539
1550
|
result.returnTransliteratedFields = jsonObject["returnTransliteratedFields"]
|
|
1540
1551
|
result.checkCaptureProcessIntegrity = jsonObject["checkCaptureProcessIntegrity"]
|
|
1541
|
-
result.bsiTr03135 = Bsi.fromJson(jsonObject["bsiTr03135"])
|
|
1542
1552
|
result.barcodeParserType = jsonObject["barcodeParserType"]
|
|
1543
1553
|
result.perspectiveAngle = jsonObject["perspectiveAngle"]
|
|
1544
1554
|
result.minDPI = jsonObject["minDPI"]
|
|
@@ -1603,6 +1613,7 @@ export class ProcessParams {
|
|
|
1603
1613
|
result.rfidParams = RFIDParams.fromJson(jsonObject["rfidParams"])
|
|
1604
1614
|
result.faceApiParams = FaceApiParams.fromJson(jsonObject["faceApiParams"])
|
|
1605
1615
|
result.backendProcessingConfig = BackendProcessingConfig.fromJson(jsonObject["backendProcessingConfig"])
|
|
1616
|
+
result.bsiTr03135 = Bsi.fromJson(jsonObject["bsiTr03135"])
|
|
1606
1617
|
result.authenticityParams = AuthenticityParams.fromJson(jsonObject["authenticityParams"])
|
|
1607
1618
|
result.customParams = jsonObject["customParams"]
|
|
1608
1619
|
|
|
@@ -1623,17 +1634,6 @@ export class Font {
|
|
|
1623
1634
|
}
|
|
1624
1635
|
}
|
|
1625
1636
|
|
|
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,6 +2114,19 @@ 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
|
+
|
|
2117
2130
|
// Enum
|
|
2118
2131
|
|
|
2119
2132
|
export const FontStyle = {
|
|
@@ -2160,6 +2173,16 @@ export const CustomizationColor = {
|
|
|
2160
2173
|
RFID_ENABLE_NFC_DESCRIPTION_TEXT: "rfidEnableNfcDescriptionText",
|
|
2161
2174
|
RFID_ENABLE_NFC_BUTTON_TEXT: "rfidEnableNfcButtonText",
|
|
2162
2175
|
RFID_ENABLE_NFC_BUTTON_BACKGROUND: "rfidEnableNfcButtonBackground",
|
|
2176
|
+
MDL_PROCESSING_SCREEN_BACKGROUND: "mdlProcessingScreenBackground",
|
|
2177
|
+
MDL_PROCESSING_SCREEN_HINT_LABEL_TEXT: "mdlProcessingScreenHintLabelText",
|
|
2178
|
+
MDL_PROCESSING_SCREEN_HINT_LABEL_BACKGROUND: "mdlProcessingScreenHintLabelBackground",
|
|
2179
|
+
MDL_PROCESSING_SCREEN_PROGRESS_LABEL_TEXT: "mdlProcessingScreenProgressLabelText",
|
|
2180
|
+
MDL_PROCESSING_SCREEN_RESULT_LABEL_TEXT: "mdlProcessingScreenResultLabelText",
|
|
2181
|
+
MDL_PROCESSING_SCREEN_LOADING_BAR: "mdlProcessingScreenLoadingBar",
|
|
2182
|
+
MDL_ENABLE_NFC_TITLE_TEXT: "mdlEnableNfcTitleText",
|
|
2183
|
+
MDL_ENABLE_NFC_DESCRIPTION_TEXT: "mdlEnableNfcDescriptionText",
|
|
2184
|
+
MDL_ENABLE_NFC_BUTTON_TEXT: "mdlEnableNfcButtonText",
|
|
2185
|
+
MDL_ENABLE_NFC_BUTTON_BACKGROUND: "mdlEnableNfcButtonBackground",
|
|
2163
2186
|
}
|
|
2164
2187
|
|
|
2165
2188
|
export const eRFID_ErrorCodes = {
|
|
@@ -3616,6 +3639,12 @@ export const CustomizationFont = {
|
|
|
3616
3639
|
RFID_ENABLE_NFC_TITLE_TEXT: "rfidEnableNfcTitleText",
|
|
3617
3640
|
RFID_ENABLE_NFC_DESCRIPTION_TEXT: "rfidEnableNfcDescriptionText",
|
|
3618
3641
|
RFID_ENABLE_NFC_BUTTON_TEXT: "rfidEnableNfcButtonText",
|
|
3642
|
+
MDL_PROCESSING_SCREEN_HINT_LABEL: "mdlProcessingScreenHintLabel",
|
|
3643
|
+
MDL_PROCESSING_SCREEN_PROGRESS_LABEL: "mdlProcessingScreenProgressLabel",
|
|
3644
|
+
MDL_PROCESSING_SCREEN_RESULT_LABEL: "mdlProcessingScreenResultLabel",
|
|
3645
|
+
MDL_ENABLE_NFC_TITLE_TEXT: "mdlEnableNfcTitleText",
|
|
3646
|
+
MDL_ENABLE_NFC_DESCRIPTION_TEXT: "mdlEnableNfcDescriptionText",
|
|
3647
|
+
MDL_ENABLE_NFC_BUTTON_TEXT: "mdlEnableNfcButtonText",
|
|
3619
3648
|
}
|
|
3620
3649
|
|
|
3621
3650
|
export const ImageFormat = {
|
|
@@ -4626,6 +4655,8 @@ export const LCID = {
|
|
|
4626
4655
|
export const CustomizationImage = {
|
|
4627
4656
|
RFID_PROCESSING_SCREEN_FAILURE_IMAGE: "rfidProcessingScreenFailureImage",
|
|
4628
4657
|
RFID_ENABLE_NFC_IMAGE: "rfidEnableNfcImage",
|
|
4658
|
+
MDL_PROCESSING_SCREEN_FAILURE_IMAGE: "mdlProcessingScreenFailureImage",
|
|
4659
|
+
MDL_ENABLE_NFC_IMAGE: "mdlEnableNfcImage",
|
|
4629
4660
|
}
|
|
4630
4661
|
|
|
4631
4662
|
export const DocReaderFrame = {
|
|
@@ -4789,6 +4820,7 @@ DocumentReader.isAuthenticatorAvailableForUse = (successCallback, errorCallback)
|
|
|
4789
4820
|
DocumentReader.getDocReaderVersion = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getDocReaderVersion", [], successCallback, errorCallback)
|
|
4790
4821
|
DocumentReader.getDocReaderDocumentsDatabase = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getDocReaderDocumentsDatabase", [], successCallback, errorCallback)
|
|
4791
4822
|
DocumentReader.finalizePackage = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "finalizePackage", [], successCallback, errorCallback)
|
|
4823
|
+
DocumentReader.finalizePackageWithFinalizeConfig = (config, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "finalizePackageWithFinalizeConfig", [config], successCallback, errorCallback)
|
|
4792
4824
|
DocumentReader.endBackendTransaction = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "endBackendTransaction", [], successCallback, errorCallback)
|
|
4793
4825
|
DocumentReader.getTranslation = (className, value, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getTranslation", [className, value], successCallback, errorCallback)
|
|
4794
4826
|
DocumentReader.startReadMDl = (type, dataRetrieval, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "startReadMDl", [type, dataRetrieval], successCallback, errorCallback)
|
|
@@ -4798,6 +4830,5 @@ DocumentReader.engageDeviceData = (data, successCallback, errorCallback) => RNRe
|
|
|
4798
4830
|
DocumentReader.startRetrieveData = (deviceEngagement, dataRetrieval, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "startRetrieveData", [deviceEngagement, dataRetrieval], successCallback, errorCallback)
|
|
4799
4831
|
DocumentReader.retrieveDataNFC = (dataRetrieval, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "retrieveDataNFC", [dataRetrieval], successCallback, errorCallback)
|
|
4800
4832
|
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)
|
|
4802
4833
|
|
|
4803
4834
|
export default DocumentReader
|
package/ios/RGLWConfig.m
CHANGED
|
@@ -194,10 +194,6 @@
|
|
|
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
|
-
}
|
|
201
197
|
|
|
202
198
|
// Int
|
|
203
199
|
if([options valueForKey:@"measureSystem"] != nil)
|
|
@@ -272,16 +268,17 @@
|
|
|
272
268
|
if (options[@"customParams"]) processParams.customParams = options[@"customParams"];
|
|
273
269
|
if ([options valueForKey:@"imageQA"] != nil)
|
|
274
270
|
[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 ([
|
|
282
|
-
if(processParams.authenticityParams == nil) processParams.authenticityParams = [RGLAuthenticityParams defaultParams];
|
|
283
|
-
[self setAuthenticityParams:processParams.authenticityParams input:[options valueForKey:@"authenticityParams"]];
|
|
284
|
-
}
|
|
281
|
+
if (options[@"bsiTr03135"]) processParams.bsiTr03135 = [RGLWJSONConstructor bsiFromJson:options[@"bsiTr03135"]];
|
|
285
282
|
}
|
|
286
283
|
|
|
287
284
|
+(NSDictionary*)getProcessParams:(RGLProcessParams*)processParams {
|
|
@@ -329,9 +326,6 @@
|
|
|
329
326
|
result[@"strictSecurityChecks"] = processParams.strictSecurityChecks;
|
|
330
327
|
result[@"returnTransliteratedFields"] = processParams.returnTransliteratedFields;
|
|
331
328
|
result[@"checkCaptureProcessIntegrity"] = processParams.checkCaptureProcessIntegrity;
|
|
332
|
-
if(processParams.bsiTr03135) result[@"bsiTr03135"] = @{
|
|
333
|
-
@"generateResult": processParams.bsiTr03135.generateResult,
|
|
334
|
-
};
|
|
335
329
|
|
|
336
330
|
// Int
|
|
337
331
|
result[@"measureSystem"] = [NSNumber numberWithInteger:processParams.measureSystem];
|
|
@@ -376,10 +370,11 @@
|
|
|
376
370
|
|
|
377
371
|
// JSONObject
|
|
378
372
|
result[@"imageQA"] = [self getImageQA:processParams.imageQA];
|
|
373
|
+
result[@"authenticityParams"] = [self getAuthenticityParams:processParams.authenticityParams];
|
|
379
374
|
result[@"rfidParams"] = [RGLWJSONConstructor generateRFIDParams:processParams.rfidParams];
|
|
380
375
|
result[@"faceApiParams"] = [RGLWJSONConstructor generateFaceAPIParams:processParams.faceApiParams];
|
|
381
376
|
result[@"backendProcessingConfig"] = [RGLWJSONConstructor generateBackendProcessingConfig:processParams.backendProcessingConfig];
|
|
382
|
-
result[@"
|
|
377
|
+
result[@"bsiTr03135"] = [RGLWJSONConstructor generateBsi:processParams.bsiTr03135];
|
|
383
378
|
|
|
384
379
|
// Custom
|
|
385
380
|
result[@"customParams"] = processParams.customParams;
|
|
@@ -1095,8 +1090,13 @@
|
|
|
1095
1090
|
result[@(RFIDProcessingScreenProgressBarBackground)] = [self colorWithInt:[input valueForKey:@"rfidProcessingScreenProgressBarBackground"]];
|
|
1096
1091
|
if([input valueForKey:@"rfidProcessingScreenResultLabelText"] != nil)
|
|
1097
1092
|
result[@(RFIDProcessingScreenResultLabelText)] = [self colorWithInt:[input valueForKey:@"rfidProcessingScreenResultLabelText"]];
|
|
1098
|
-
if([
|
|
1099
|
-
|
|
1093
|
+
if(input[@"rfidProcessingScreenLoadingBar"]) result[@(RFIDProcessingScreenLoadingBar)] = [self colorWithInt:input[@"rfidProcessingScreenLoadingBar"]];
|
|
1094
|
+
if(input[@"mdlProcessingScreenBackground"]) result[@(MDLProcessingScreenBackground)] = [self colorWithInt:input[@"mdlProcessingScreenBackground"]];
|
|
1095
|
+
if(input[@"mdlProcessingScreenHintLabelText"]) result[@(MDLProcessingScreenHintLabelText)] = [self colorWithInt:input[@"mdlProcessingScreenHintLabelText"]];
|
|
1096
|
+
if(input[@"mdlProcessingScreenHintLabelBackground"]) result[@(MDLProcessingScreenHintLabelBackground)] = [self colorWithInt:input[@"mdlProcessingScreenHintLabelBackground"]];
|
|
1097
|
+
if(input[@"mdlProcessingScreenProgressLabelText"]) result[@(MDLProcessingScreenProgressLabelText)] = [self colorWithInt:input[@"mdlProcessingScreenProgressLabelText"]];
|
|
1098
|
+
if(input[@"mdlProcessingScreenResultLabelText"]) result[@(MDLProcessingScreenResultLabelText)] = [self colorWithInt:input[@"mdlProcessingScreenResultLabelText"]];
|
|
1099
|
+
if(input[@"mdlProcessingScreenLoadingBar"]) result[@(MDLProcessingScreenLoadingBar)] = [self colorWithInt:input[@"mdlProcessingScreenLoadingBar"]];
|
|
1100
1100
|
}
|
|
1101
1101
|
|
|
1102
1102
|
+(NSDictionary*)getColors:(NSDictionary*)input {
|
|
@@ -1109,6 +1109,12 @@
|
|
|
1109
1109
|
@"rfidProcessingScreenProgressBarBackground": [self intWithColor:input[@(RFIDProcessingScreenProgressBarBackground)]],
|
|
1110
1110
|
@"rfidProcessingScreenResultLabelText": [self intWithColor:input[@(RFIDProcessingScreenResultLabelText)]],
|
|
1111
1111
|
@"rfidProcessingScreenLoadingBar": [self intWithColor:input[@(RFIDProcessingScreenLoadingBar)]],
|
|
1112
|
+
@"mdlProcessingScreenBackground": [self intWithColor:input[@(MDLProcessingScreenBackground)]],
|
|
1113
|
+
@"mdlProcessingScreenHintLabelText": [self intWithColor:input[@(MDLProcessingScreenHintLabelText)]],
|
|
1114
|
+
@"mdlProcessingScreenHintLabelBackground": [self intWithColor:input[@(MDLProcessingScreenHintLabelBackground)]],
|
|
1115
|
+
@"mdlProcessingScreenProgressLabelText": [self intWithColor:input[@(MDLProcessingScreenProgressLabelText)]],
|
|
1116
|
+
@"mdlProcessingScreenResultLabelText": [self intWithColor:input[@(MDLProcessingScreenResultLabelText)]],
|
|
1117
|
+
@"mdlProcessingScreenLoadingBar": [self intWithColor:input[@(MDLProcessingScreenLoadingBar)]],
|
|
1112
1118
|
};
|
|
1113
1119
|
}
|
|
1114
1120
|
|
|
@@ -1117,8 +1123,10 @@
|
|
|
1117
1123
|
result[@(RFIDProcessingScreenHintLabel)] = [self UIFontFromJSON:[input valueForKey:@"rfidProcessingScreenHintLabel"]];
|
|
1118
1124
|
if([input valueForKey:@"rfidProcessingScreenProgressLabel"] != nil)
|
|
1119
1125
|
result[@(RFIDProcessingScreenProgressLabel)] = [self UIFontFromJSON:[input valueForKey:@"rfidProcessingScreenProgressLabel"]];
|
|
1120
|
-
if([
|
|
1121
|
-
|
|
1126
|
+
if(input[@"rfidProcessingScreenResultLabel"]) result[@(RFIDProcessingScreenResultLabel)] = [self UIFontFromJSON:input[@"rfidProcessingScreenResultLabel"]];
|
|
1127
|
+
if(input[@"mdlProcessingScreenHintLabel"]) result[@(MDLProcessingScreenHintLabel)] = [self UIFontFromJSON:input[@"mdlProcessingScreenHintLabel"]];
|
|
1128
|
+
if(input[@"mdlProcessingScreenProgressLabel"]) result[@(MDLProcessingScreenProgressLabel)] = [self UIFontFromJSON:input[@"mdlProcessingScreenProgressLabel"]];
|
|
1129
|
+
if(input[@"mdlProcessingScreenResultLabel"]) result[@(MDLProcessingScreenResultLabel)] = [self UIFontFromJSON:input[@"mdlProcessingScreenResultLabel"]];
|
|
1122
1130
|
}
|
|
1123
1131
|
|
|
1124
1132
|
+(NSDictionary*)getFonts:(NSDictionary*)input {
|
|
@@ -1126,17 +1134,21 @@
|
|
|
1126
1134
|
@"rfidProcessingScreenHintLabel": [self generateUIFont:input[@(RFIDProcessingScreenHintLabel)]],
|
|
1127
1135
|
@"rfidProcessingScreenProgressLabel": [self generateUIFont:input[@(RFIDProcessingScreenProgressLabel)]],
|
|
1128
1136
|
@"rfidProcessingScreenResultLabel": [self generateUIFont:input[@(RFIDProcessingScreenResultLabel)]],
|
|
1137
|
+
@"mdlProcessingScreenHintLabel": [self generateUIFont:input[@(MDLProcessingScreenHintLabel)]],
|
|
1138
|
+
@"mdlProcessingScreenProgressLabel": [self generateUIFont:input[@(MDLProcessingScreenProgressLabel)]],
|
|
1139
|
+
@"mdlProcessingScreenResultLabel": [self generateUIFont:input[@(MDLProcessingScreenResultLabel)]],
|
|
1129
1140
|
};
|
|
1130
1141
|
}
|
|
1131
1142
|
|
|
1132
1143
|
+(void)setImages:(NSMutableDictionary*)result input:(NSDictionary*)input {
|
|
1133
|
-
if([
|
|
1134
|
-
|
|
1144
|
+
if(input[@"rfidProcessingScreenFailureImage"]) result[@(RFIDProcessingScreenFailureImage)] = [RGLWJSONConstructor imageWithBase64:input[@"rfidProcessingScreenFailureImage"]];
|
|
1145
|
+
if(input[@"mdlProcessingScreenFailureImage"]) result[@(MDLProcessingScreenFailureImage)] = [RGLWJSONConstructor imageWithBase64:input[@"mdlProcessingScreenFailureImage"]];
|
|
1135
1146
|
}
|
|
1136
1147
|
|
|
1137
1148
|
+(NSDictionary*)getImages:(NSDictionary*)input {
|
|
1138
1149
|
return @{
|
|
1139
1150
|
@"rfidProcessingScreenFailureImage": [RGLWJSONConstructor base64WithImage:input[@(RFIDProcessingScreenFailureImage)]],
|
|
1151
|
+
@"mdlProcessingScreenFailureImage": [RGLWJSONConstructor base64WithImage:input[@(MDLProcessingScreenFailureImage)]],
|
|
1140
1152
|
};
|
|
1141
1153
|
}
|
|
1142
1154
|
|
|
@@ -51,6 +51,8 @@
|
|
|
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;
|
|
54
56
|
+(RGLeDLDataGroup* _Nullable)eDLDataGroupsFromJson:(NSDictionary* _Nullable)input;
|
|
55
57
|
+(NSDictionary* _Nullable)generateEDLDataGroups:(RGLeDLDataGroup* _Nullable)input;
|
|
56
58
|
+(RGLePassportDataGroup* _Nullable)ePassportDataGroupsFromJson:(NSDictionary* _Nullable)input;
|
|
@@ -303,6 +303,24 @@ 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
|
+
|
|
306
324
|
+(RGLImageQA*)imageQAFromJson:(NSDictionary*)input {
|
|
307
325
|
RGLImageQA *result = [RGLImageQA new];
|
|
308
326
|
[RGLWConfig setImageQA:result input:input];
|
|
@@ -2576,7 +2594,6 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
2576
2594
|
result.requests = requests;
|
|
2577
2595
|
|
|
2578
2596
|
return result;
|
|
2579
|
-
|
|
2580
2597
|
}
|
|
2581
2598
|
|
|
2582
2599
|
+(NSDictionary*)generateDataRetrieval:(RGLDataRetrieval*)input {
|
package/package.json
CHANGED