@regulaforensics/cordova-plugin-document-reader-api 9.2.400-rc → 9.3.404-nightly

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.400-rc",
17
- "@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "9.2.1918-rc",
16
+ "@regulaforensics/cordova-plugin-document-reader-api": "9.3.404-nightly",
17
+ "@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "9.3.1933-nightly",
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.400-rc",
3
+ "version": "9.3.404-nightly",
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.400-rc" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/cordova-plugin-document-reader-api" version="9.3.404-nightly" 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.5920" />
32
+ <pod name="DocumentReaderNightly" spec="9.3.5933" />
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()
@@ -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"))
@@ -1,12 +1,12 @@
1
1
  repositories {
2
2
  maven {
3
- url "https://maven.regulaforensics.com/RegulaDocumentReader/Stage"
3
+ url "https://maven.regulaforensics.com/RegulaDocumentReader/Nightly"
4
4
  }
5
5
  }
6
6
 
7
7
  dependencies {
8
8
  //noinspection GradleDependency
9
- implementation ('com.regula.documentreader:api:9.2.12454'){
9
+ implementation ('com.regula.documentreader:api:9.3.12470'){
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;
@@ -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 = {
@@ -4714,6 +4727,7 @@ DocumentReader.isAuthenticatorAvailableForUse = (successCallback, errorCallback)
4714
4727
  DocumentReader.getDocReaderVersion = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getDocReaderVersion"])
4715
4728
  DocumentReader.getDocReaderDocumentsDatabase = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getDocReaderDocumentsDatabase"])
4716
4729
  DocumentReader.finalizePackage = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["finalizePackage"])
4730
+ DocumentReader.finalizePackageWithFinalizeConfig = (config, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["finalizePackageWithFinalizeConfig", config])
4717
4731
  DocumentReader.endBackendTransaction = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["endBackendTransaction"])
4718
4732
  DocumentReader.getTranslation = (className, value, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getTranslation", className, value])
4719
4733
  DocumentReader.startReadMDl = (type, dataRetrieval, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["startReadMDl", type, dataRetrieval])
@@ -4723,7 +4737,6 @@ DocumentReader.engageDeviceData = (data, successCallback, errorCallback) => cord
4723
4737
  DocumentReader.startRetrieveData = (deviceEngagement, dataRetrieval, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["startRetrieveData", deviceEngagement, dataRetrieval])
4724
4738
  DocumentReader.retrieveDataNFC = (dataRetrieval, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["retrieveDataNFC", dataRetrieval])
4725
4739
  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
4740
 
4728
4741
  DocumentReader.textFieldValueByType = (results, fieldType, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["textFieldValueByType", results.rawResult, fieldType])
4729
4742
  DocumentReader.textFieldValueByTypeLcid = (results, fieldType, lcid, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["textFieldValueByTypeLcid", results.rawResult, fieldType, lcid])
@@ -4824,11 +4837,11 @@ DocumentReaderPlugin.RFIDParams = RFIDParams
4824
4837
  DocumentReaderPlugin.FaceApiSearchParams = FaceApiSearchParams
4825
4838
  DocumentReaderPlugin.FaceApiParams = FaceApiParams
4826
4839
  DocumentReaderPlugin.BackendProcessingConfig = BackendProcessingConfig
4840
+ DocumentReaderPlugin.Bsi = Bsi
4827
4841
  DocumentReaderPlugin.LivenessParams = LivenessParams
4828
4842
  DocumentReaderPlugin.AuthenticityParams = AuthenticityParams
4829
4843
  DocumentReaderPlugin.ProcessParams = ProcessParams
4830
4844
  DocumentReaderPlugin.Font = Font
4831
- DocumentReaderPlugin.Bsi = Bsi
4832
4845
  DocumentReaderPlugin.CustomizationColors = CustomizationColors
4833
4846
  DocumentReaderPlugin.CustomizationFonts = CustomizationFonts
4834
4847
  DocumentReaderPlugin.CustomizationImages = CustomizationImages
@@ -4847,5 +4860,6 @@ DocumentReaderPlugin.DocumentRequestMDL = DocumentRequestMDL
4847
4860
  DocumentReaderPlugin.NameSpaceMDL = NameSpaceMDL
4848
4861
  DocumentReaderPlugin.DocumentRequest18013MDL = DocumentRequest18013MDL
4849
4862
  DocumentReaderPlugin.FinalizeConfig = FinalizeConfig
4863
+ DocumentReaderPlugin.FinalizeCompletion = FinalizeCompletion
4850
4864
 
4851
4865
  module.exports = DocumentReaderPlugin