@regulaforensics/cordova-plugin-document-reader-api 9.2.411-rc → 9.2.418-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.
@@ -13,8 +13,8 @@
13
13
  "author": "Regula Forensics Inc.",
14
14
  "license": "commercial",
15
15
  "dependencies": {
16
- "@regulaforensics/cordova-plugin-document-reader-api": "9.2.411-rc",
17
- "@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "9.2.1918-rc",
16
+ "@regulaforensics/cordova-plugin-document-reader-api": "9.2.418-rc",
17
+ "@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "9.3.1955-rc",
18
18
  "cordova-android": "13.0.0",
19
19
  "cordova-ios": "7.1.1",
20
20
  "cordova-plugin-add-swift-support": "2.0.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/cordova-plugin-document-reader-api",
3
- "version": "9.2.411-rc",
3
+ "version": "9.2.418-rc",
4
4
  "description": "Cordova plugin for reading and validation of identification documents (API framework)",
5
5
  "cordova": {
6
6
  "id": "@regulaforensics/cordova-plugin-document-reader-api",
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
- <plugin id="@regulaforensics/cordova-plugin-document-reader-api" version="9.2.411-rc" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/cordova-plugin-document-reader-api" version="9.2.418-rc" xmlns="http://apache.org/cordova/ns/plugins/1.0">
3
3
  <name>DocumentReaderApi</name>
4
4
  <description>Cordova plugin Document reader api</description>
5
5
  <license>commercial</license>
@@ -29,7 +29,7 @@
29
29
  <source url="https://github.com/CocoaPods/Specs.git"/>
30
30
  </config>
31
31
  <pods>
32
- <pod name="DocumentReaderStage" spec="9.2.5970" />
32
+ <pod name="DocumentReaderStage" spec="9.3.5986" />
33
33
  </pods>
34
34
  </podspec>
35
35
  </platform>
@@ -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"))
@@ -6,7 +6,7 @@ repositories {
6
6
 
7
7
  dependencies {
8
8
  //noinspection GradleDependency
9
- implementation ('com.regula.documentreader:api:9.2.12489'){
9
+ implementation ('com.regula.documentreader:api:9.2.12512'){
10
10
  transitive = true
11
11
  }
12
12
  }
@@ -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 ([options valueForKey:@"authenticityParams"] != nil) {
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[@"authenticityParams"] = [self getAuthenticityParams:processParams.authenticityParams];
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([input valueForKey:@"rfidProcessingScreenLoadingBar"] != nil)
1099
- result[@(RFIDProcessingScreenLoadingBar)] = [self colorWithInt:[input valueForKey:@"rfidProcessingScreenLoadingBar"]];
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([input valueForKey:@"rfidProcessingScreenResultLabel"] != nil)
1121
- result[@(RFIDProcessingScreenResultLabel)] = [self UIFontFromJSON:[input valueForKey:@"rfidProcessingScreenResultLabel"]];
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([input valueForKey:@"rfidProcessingScreenFailureImage"] != nil)
1134
- result[@(RFIDProcessingScreenFailureImage)] = [RGLWJSONConstructor imageWithBase64:[input valueForKey:@"rfidProcessingScreenFailureImage"]];
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 {
@@ -1374,6 +1374,17 @@ class BackendProcessingConfig {
1374
1374
  }
1375
1375
  }
1376
1376
 
1377
+ class Bsi {
1378
+ static fromJson(jsonObject) {
1379
+ if (jsonObject == null) return null
1380
+ const result = new Bsi()
1381
+
1382
+ result.generateResult = jsonObject["generateResult"]
1383
+
1384
+ return result
1385
+ }
1386
+ }
1387
+
1377
1388
  class LivenessParams {
1378
1389
  static fromJson(jsonObject) {
1379
1390
  if (jsonObject == null) return null
@@ -1463,7 +1474,6 @@ class ProcessParams {
1463
1474
  result.strictSecurityChecks = jsonObject["strictSecurityChecks"]
1464
1475
  result.returnTransliteratedFields = jsonObject["returnTransliteratedFields"]
1465
1476
  result.checkCaptureProcessIntegrity = jsonObject["checkCaptureProcessIntegrity"]
1466
- result.bsiTr03135 = Bsi.fromJson(jsonObject["bsiTr03135"])
1467
1477
  result.barcodeParserType = jsonObject["barcodeParserType"]
1468
1478
  result.perspectiveAngle = jsonObject["perspectiveAngle"]
1469
1479
  result.minDPI = jsonObject["minDPI"]
@@ -1528,6 +1538,7 @@ class ProcessParams {
1528
1538
  result.rfidParams = RFIDParams.fromJson(jsonObject["rfidParams"])
1529
1539
  result.faceApiParams = FaceApiParams.fromJson(jsonObject["faceApiParams"])
1530
1540
  result.backendProcessingConfig = BackendProcessingConfig.fromJson(jsonObject["backendProcessingConfig"])
1541
+ result.bsiTr03135 = Bsi.fromJson(jsonObject["bsiTr03135"])
1531
1542
  result.authenticityParams = AuthenticityParams.fromJson(jsonObject["authenticityParams"])
1532
1543
  result.customParams = jsonObject["customParams"]
1533
1544
 
@@ -1548,17 +1559,6 @@ class Font {
1548
1559
  }
1549
1560
  }
1550
1561
 
1551
- class Bsi {
1552
- static fromJson(jsonObject) {
1553
- if (jsonObject == null) return null
1554
- const result = new Bsi()
1555
-
1556
- result.generateResult = jsonObject["generateResult"]
1557
-
1558
- return result
1559
- }
1560
- }
1561
-
1562
1562
  class CustomizationColors {
1563
1563
  static fromJson(jsonObject) {
1564
1564
  if (jsonObject == null) return null
@@ -2039,6 +2039,19 @@ class FinalizeConfig {
2039
2039
  }
2040
2040
  }
2041
2041
 
2042
+ class FinalizeCompletion {
2043
+ static fromJson(jsonObject) {
2044
+ if (jsonObject == null) return null
2045
+ const result = new FinalizeCompletion()
2046
+
2047
+ result.action = jsonObject["action"]
2048
+ result.info = TransactionInfo.fromJson(jsonObject["info"])
2049
+ result.error = RegulaException.fromJson(jsonObject["error"])
2050
+
2051
+ return result
2052
+ }
2053
+ }
2054
+
2042
2055
  // Enum
2043
2056
 
2044
2057
  const FontStyle = {
@@ -2085,6 +2098,16 @@ const CustomizationColor = {
2085
2098
  RFID_ENABLE_NFC_DESCRIPTION_TEXT: "rfidEnableNfcDescriptionText",
2086
2099
  RFID_ENABLE_NFC_BUTTON_TEXT: "rfidEnableNfcButtonText",
2087
2100
  RFID_ENABLE_NFC_BUTTON_BACKGROUND: "rfidEnableNfcButtonBackground",
2101
+ MDL_PROCESSING_SCREEN_BACKGROUND: "mdlProcessingScreenBackground",
2102
+ MDL_PROCESSING_SCREEN_HINT_LABEL_TEXT: "mdlProcessingScreenHintLabelText",
2103
+ MDL_PROCESSING_SCREEN_HINT_LABEL_BACKGROUND: "mdlProcessingScreenHintLabelBackground",
2104
+ MDL_PROCESSING_SCREEN_PROGRESS_LABEL_TEXT: "mdlProcessingScreenProgressLabelText",
2105
+ MDL_PROCESSING_SCREEN_RESULT_LABEL_TEXT: "mdlProcessingScreenResultLabelText",
2106
+ MDL_PROCESSING_SCREEN_LOADING_BAR: "mdlProcessingScreenLoadingBar",
2107
+ MDL_ENABLE_NFC_TITLE_TEXT: "mdlEnableNfcTitleText",
2108
+ MDL_ENABLE_NFC_DESCRIPTION_TEXT: "mdlEnableNfcDescriptionText",
2109
+ MDL_ENABLE_NFC_BUTTON_TEXT: "mdlEnableNfcButtonText",
2110
+ MDL_ENABLE_NFC_BUTTON_BACKGROUND: "mdlEnableNfcButtonBackground",
2088
2111
  }
2089
2112
 
2090
2113
  const eRFID_ErrorCodes = {
@@ -3541,6 +3564,12 @@ const CustomizationFont = {
3541
3564
  RFID_ENABLE_NFC_TITLE_TEXT: "rfidEnableNfcTitleText",
3542
3565
  RFID_ENABLE_NFC_DESCRIPTION_TEXT: "rfidEnableNfcDescriptionText",
3543
3566
  RFID_ENABLE_NFC_BUTTON_TEXT: "rfidEnableNfcButtonText",
3567
+ MDL_PROCESSING_SCREEN_HINT_LABEL: "mdlProcessingScreenHintLabel",
3568
+ MDL_PROCESSING_SCREEN_PROGRESS_LABEL: "mdlProcessingScreenProgressLabel",
3569
+ MDL_PROCESSING_SCREEN_RESULT_LABEL: "mdlProcessingScreenResultLabel",
3570
+ MDL_ENABLE_NFC_TITLE_TEXT: "mdlEnableNfcTitleText",
3571
+ MDL_ENABLE_NFC_DESCRIPTION_TEXT: "mdlEnableNfcDescriptionText",
3572
+ MDL_ENABLE_NFC_BUTTON_TEXT: "mdlEnableNfcButtonText",
3544
3573
  }
3545
3574
 
3546
3575
  const ImageFormat = {
@@ -4551,6 +4580,8 @@ const LCID = {
4551
4580
  const CustomizationImage = {
4552
4581
  RFID_PROCESSING_SCREEN_FAILURE_IMAGE: "rfidProcessingScreenFailureImage",
4553
4582
  RFID_ENABLE_NFC_IMAGE: "rfidEnableNfcImage",
4583
+ MDL_PROCESSING_SCREEN_FAILURE_IMAGE: "mdlProcessingScreenFailureImage",
4584
+ MDL_ENABLE_NFC_IMAGE: "mdlEnableNfcImage",
4554
4585
  }
4555
4586
 
4556
4587
  const DocReaderFrame = {
@@ -4714,6 +4745,7 @@ DocumentReader.isAuthenticatorAvailableForUse = (successCallback, errorCallback)
4714
4745
  DocumentReader.getDocReaderVersion = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getDocReaderVersion"])
4715
4746
  DocumentReader.getDocReaderDocumentsDatabase = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getDocReaderDocumentsDatabase"])
4716
4747
  DocumentReader.finalizePackage = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["finalizePackage"])
4748
+ DocumentReader.finalizePackageWithFinalizeConfig = (config, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["finalizePackageWithFinalizeConfig", config])
4717
4749
  DocumentReader.endBackendTransaction = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["endBackendTransaction"])
4718
4750
  DocumentReader.getTranslation = (className, value, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getTranslation", className, value])
4719
4751
  DocumentReader.startReadMDl = (type, dataRetrieval, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["startReadMDl", type, dataRetrieval])
@@ -4723,7 +4755,6 @@ DocumentReader.engageDeviceData = (data, successCallback, errorCallback) => cord
4723
4755
  DocumentReader.startRetrieveData = (deviceEngagement, dataRetrieval, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["startRetrieveData", deviceEngagement, dataRetrieval])
4724
4756
  DocumentReader.retrieveDataNFC = (dataRetrieval, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["retrieveDataNFC", dataRetrieval])
4725
4757
  DocumentReader.retrieveDataBLE = (deviceEngagement, dataRetrieval, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["retrieveDataBLE", deviceEngagement, dataRetrieval])
4726
- DocumentReader.finalizePackageWithFinalizeConfig = (config, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["finalizePackageWithFinalizeConfig", config])
4727
4758
 
4728
4759
  DocumentReader.textFieldValueByType = (results, fieldType, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["textFieldValueByType", results.rawResult, fieldType])
4729
4760
  DocumentReader.textFieldValueByTypeLcid = (results, fieldType, lcid, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["textFieldValueByTypeLcid", results.rawResult, fieldType, lcid])
@@ -4824,11 +4855,11 @@ DocumentReaderPlugin.RFIDParams = RFIDParams
4824
4855
  DocumentReaderPlugin.FaceApiSearchParams = FaceApiSearchParams
4825
4856
  DocumentReaderPlugin.FaceApiParams = FaceApiParams
4826
4857
  DocumentReaderPlugin.BackendProcessingConfig = BackendProcessingConfig
4858
+ DocumentReaderPlugin.Bsi = Bsi
4827
4859
  DocumentReaderPlugin.LivenessParams = LivenessParams
4828
4860
  DocumentReaderPlugin.AuthenticityParams = AuthenticityParams
4829
4861
  DocumentReaderPlugin.ProcessParams = ProcessParams
4830
4862
  DocumentReaderPlugin.Font = Font
4831
- DocumentReaderPlugin.Bsi = Bsi
4832
4863
  DocumentReaderPlugin.CustomizationColors = CustomizationColors
4833
4864
  DocumentReaderPlugin.CustomizationFonts = CustomizationFonts
4834
4865
  DocumentReaderPlugin.CustomizationImages = CustomizationImages
@@ -4847,5 +4878,6 @@ DocumentReaderPlugin.DocumentRequestMDL = DocumentRequestMDL
4847
4878
  DocumentReaderPlugin.NameSpaceMDL = NameSpaceMDL
4848
4879
  DocumentReaderPlugin.DocumentRequest18013MDL = DocumentRequest18013MDL
4849
4880
  DocumentReaderPlugin.FinalizeConfig = FinalizeConfig
4881
+ DocumentReaderPlugin.FinalizeCompletion = FinalizeCompletion
4850
4882
 
4851
4883
  module.exports = DocumentReaderPlugin