@regulaforensics/cordova-plugin-document-reader-api 9.2.402-nightly → 9.2.405-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.402-nightly",
17
- "@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "9.2.1932-nightly",
16
+ "@regulaforensics/cordova-plugin-document-reader-api": "9.2.405-rc",
17
+ "@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "9.2.1918-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.402-nightly",
3
+ "version": "9.2.405-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.402-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/cordova-plugin-document-reader-api" version="9.2.405-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="DocumentReaderNightly" spec="9.2.5926" />
32
+ <pod name="DocumentReaderStage" spec="9.2.5934" />
33
33
  </pods>
34
34
  </podspec>
35
35
  </platform>
@@ -18,6 +18,7 @@ import com.regula.documentreader.api.params.ImageQA
18
18
  import com.regula.documentreader.api.params.LivenessParams
19
19
  import com.regula.documentreader.api.params.ParamsCustomization
20
20
  import com.regula.documentreader.api.params.ProcessParam
21
+ import com.regula.documentreader.api.params.Bsi
21
22
  import com.regula.documentreader.api.params.RfidScenario
22
23
  import com.regula.documentreader.api.params.rfid.dg.DTCDataGroup
23
24
  import com.regula.documentreader.api.params.rfid.dg.DataGroups
@@ -147,6 +148,11 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
147
148
  "strictSecurityChecks" -> processParams.strictSecurityChecks = v as Boolean
148
149
  "returnTransliteratedFields" -> processParams.returnTransliteratedFields = v as Boolean
149
150
  "checkCaptureProcessIntegrity" -> processParams.checkCaptureProcessIntegrity = v as Boolean
151
+ "bsiTr03135" -> {
152
+ val temp = Bsi()
153
+ temp.generateResult = (v as JSONObject).getBooleanOrNull("generateResult")
154
+ processParams.bsiTr03135 = temp
155
+ }
150
156
  "measureSystem" -> processParams.measureSystem = v.toInt()
151
157
  "barcodeParserType" -> processParams.barcodeParserType = v.toInt()
152
158
  "perspectiveAngle" -> processParams.perspectiveAngle = v.toInt()
@@ -185,7 +191,6 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
185
191
  "rfidParams" -> processParams.rfidParams = rfidParamsFromJSON(v as JSONObject)
186
192
  "faceApiParams" -> processParams.faceApiParams = faceApiParamsFromJSON(v as JSONObject)
187
193
  "backendProcessingConfig" -> processParams.backendProcessingConfig = backendProcessingConfigFromJSON(v as JSONObject)
188
- "bsiTr03135" -> processParams.bsiTr03135 = bsiFromJSON(v as JSONObject)
189
194
  "authenticityParams" -> {
190
195
  if (processParams.authenticityParams == null) processParams.authenticityParams = AuthenticityParams.defaultParams()
191
196
  setAuthenticityParams(processParams.authenticityParams!!, v as JSONObject)
@@ -237,6 +242,9 @@ fun getProcessParams(processParams: ProcessParam) = mapOf(
237
242
  "strictSecurityChecks" to processParams.strictSecurityChecks,
238
243
  "returnTransliteratedFields" to processParams.returnTransliteratedFields,
239
244
  "checkCaptureProcessIntegrity" to processParams.checkCaptureProcessIntegrity,
245
+ "bsiTr03135" to mapOf(
246
+ "generateResult" to processParams.bsiTr03135?.generateResult
247
+ ).toJson(),
240
248
  "measureSystem" to processParams.measureSystem,
241
249
  "barcodeParserType" to processParams.barcodeParserType,
242
250
  "perspectiveAngle" to processParams.perspectiveAngle,
@@ -274,7 +282,6 @@ fun getProcessParams(processParams: ProcessParam) = mapOf(
274
282
  "rfidParams" to generateRFIDParams(processParams.rfidParams),
275
283
  "faceApiParams" to generateFaceApiParams(processParams.faceApiParams),
276
284
  "backendProcessingConfig" to generateBackendProcessingConfig(processParams.backendProcessingConfig),
277
- "bsiTr03135" to generateBsi(processParams.bsiTr03135),
278
285
  "authenticityParams" to getAuthenticityParams(processParams.authenticityParams),
279
286
  "customParams" to processParams.customParams,
280
287
  ).toJson()
@@ -29,7 +29,6 @@ import com.regula.documentreader.api.listener.NetworkInterceptorListener
29
29
  import com.regula.documentreader.api.params.AuthenticityParams
30
30
  import com.regula.documentreader.api.params.BackendProcessingConfig
31
31
  import com.regula.documentreader.api.params.BleDeviceConfig
32
- import com.regula.documentreader.api.params.Bsi
33
32
  import com.regula.documentreader.api.params.DocReaderConfig
34
33
  import com.regula.documentreader.api.params.FaceApiParams
35
34
  import com.regula.documentreader.api.params.Functionality
@@ -326,18 +325,6 @@ fun generateBackendProcessingConfig(input: BackendProcessingConfig?) = input?.le
326
325
  ).toJson()
327
326
  }
328
327
 
329
- fun bsiFromJSON(input: JSONObject?) = input?.let {
330
- val result = Bsi()
331
- result.generateResult = it.getBooleanOrNull("generateResult")
332
- result
333
- }
334
-
335
- fun generateBsi(input: Bsi?) = input?.let {
336
- mapOf(
337
- "generateResult" to it.generateResult,
338
- ).toJson()
339
- }
340
-
341
328
  val weakReferencesHolder = mutableListOf<Any>()
342
329
  fun onlineProcessingConfigFromJSON(input: JSONObject?) = input?.let {
343
330
  val builder = OnlineProcessingConfig.Builder(it.getInt("mode"))
@@ -1,12 +1,12 @@
1
1
  repositories {
2
2
  maven {
3
- url "https://maven.regulaforensics.com/RegulaDocumentReader/Nightly"
3
+ url "https://maven.regulaforensics.com/RegulaDocumentReader/Stage"
4
4
  }
5
5
  }
6
6
 
7
7
  dependencies {
8
8
  //noinspection GradleDependency
9
- implementation ('com.regula.documentreader:api:9.2.12463'){
9
+ implementation ('com.regula.documentreader:api:9.2.12471'){
10
10
  transitive = true
11
11
  }
12
12
  }
@@ -194,6 +194,10 @@
194
194
  if (options[@"strictSecurityChecks"]) processParams.strictSecurityChecks = options[@"strictSecurityChecks"];
195
195
  if (options[@"returnTransliteratedFields"]) processParams.returnTransliteratedFields = options[@"returnTransliteratedFields"];
196
196
  if (options[@"checkCaptureProcessIntegrity"]) processParams.checkCaptureProcessIntegrity = options[@"checkCaptureProcessIntegrity"];
197
+ if (options[@"bsiTr03135"]) {
198
+ processParams.bsiTr03135 = [RGLBsi new];
199
+ processParams.bsiTr03135.generateResult = options[@"bsiTr03135"][@"generateResult"];
200
+ }
197
201
 
198
202
  // Int
199
203
  if([options valueForKey:@"measureSystem"] != nil)
@@ -268,17 +272,16 @@
268
272
  if (options[@"customParams"]) processParams.customParams = options[@"customParams"];
269
273
  if ([options valueForKey:@"imageQA"] != nil)
270
274
  [self setImageQA:processParams.imageQA input:[options valueForKey:@"imageQA"]];
271
- if ([options valueForKey:@"authenticityParams"] != nil) {
272
- if(processParams.authenticityParams == nil) processParams.authenticityParams = [RGLAuthenticityParams defaultParams];
273
- [self setAuthenticityParams:processParams.authenticityParams input:[options valueForKey:@"authenticityParams"]];
274
- }
275
275
  if ([options valueForKey:@"rfidParams"] != nil)
276
276
  processParams.rfidParams = [RGLWJSONConstructor rfidParamsFromJson:[options valueForKey:@"rfidParams"]];
277
277
  if ([options valueForKey:@"faceApiParams"] != nil)
278
278
  processParams.faceApiParams = [RGLWJSONConstructor faceAPIParamsFromJson:[options valueForKey:@"faceApiParams"]];
279
279
  if ([options valueForKey:@"backendProcessingConfig"] != nil)
280
280
  processParams.backendProcessingConfig = [RGLWJSONConstructor backendProcessingConfigFromJson:[options valueForKey:@"backendProcessingConfig"]];
281
- if (options[@"bsiTr03135"]) processParams.bsiTr03135 = [RGLWJSONConstructor bsiFromJson:options[@"bsiTr03135"]];
281
+ if ([options valueForKey:@"authenticityParams"] != nil) {
282
+ if(processParams.authenticityParams == nil) processParams.authenticityParams = [RGLAuthenticityParams defaultParams];
283
+ [self setAuthenticityParams:processParams.authenticityParams input:[options valueForKey:@"authenticityParams"]];
284
+ }
282
285
  }
283
286
 
284
287
  +(NSDictionary*)getProcessParams:(RGLProcessParams*)processParams {
@@ -326,6 +329,9 @@
326
329
  result[@"strictSecurityChecks"] = processParams.strictSecurityChecks;
327
330
  result[@"returnTransliteratedFields"] = processParams.returnTransliteratedFields;
328
331
  result[@"checkCaptureProcessIntegrity"] = processParams.checkCaptureProcessIntegrity;
332
+ if(processParams.bsiTr03135) result[@"bsiTr03135"] = @{
333
+ @"generateResult": processParams.bsiTr03135.generateResult,
334
+ };
329
335
 
330
336
  // Int
331
337
  result[@"measureSystem"] = [NSNumber numberWithInteger:processParams.measureSystem];
@@ -370,11 +376,10 @@
370
376
 
371
377
  // JSONObject
372
378
  result[@"imageQA"] = [self getImageQA:processParams.imageQA];
373
- result[@"authenticityParams"] = [self getAuthenticityParams:processParams.authenticityParams];
374
379
  result[@"rfidParams"] = [RGLWJSONConstructor generateRFIDParams:processParams.rfidParams];
375
380
  result[@"faceApiParams"] = [RGLWJSONConstructor generateFaceAPIParams:processParams.faceApiParams];
376
381
  result[@"backendProcessingConfig"] = [RGLWJSONConstructor generateBackendProcessingConfig:processParams.backendProcessingConfig];
377
- result[@"bsiTr03135"] = [RGLWJSONConstructor generateBsi:processParams.bsiTr03135];
382
+ result[@"authenticityParams"] = [self getAuthenticityParams:processParams.authenticityParams];
378
383
 
379
384
  // Custom
380
385
  result[@"customParams"] = processParams.customParams;
@@ -51,8 +51,6 @@
51
51
  +(NSDictionary* _Nullable)generateProcessParams:(RGLProcessParams* _Nullable)input;
52
52
  +(RGLBackendProcessingConfig* _Nullable)backendProcessingConfigFromJson:(NSDictionary* _Nullable)input;
53
53
  +(NSDictionary* _Nullable)generateBackendProcessingConfig:(RGLBackendProcessingConfig* _Nullable)input;
54
- +(RGLBsi* _Nullable)bsiFromJson:(NSDictionary* _Nullable)input;
55
- +(NSDictionary* _Nullable)generateBsi:(RGLBsi* _Nullable)input;
56
54
  +(RGLeDLDataGroup* _Nullable)eDLDataGroupsFromJson:(NSDictionary* _Nullable)input;
57
55
  +(NSDictionary* _Nullable)generateEDLDataGroups:(RGLeDLDataGroup* _Nullable)input;
58
56
  +(RGLePassportDataGroup* _Nullable)ePassportDataGroupsFromJson:(NSDictionary* _Nullable)input;
@@ -303,24 +303,6 @@ static NSMutableArray* weakReferencesHolder;
303
303
  return result;
304
304
  }
305
305
 
306
- +(RGLBsi*)bsiFromJson:(NSDictionary*)input {
307
- if(input == nil) return nil;
308
- RGLBsi *result = [RGLBsi new];
309
-
310
- if(input[@"generateResult"]) result.generateResult = input[@"generateResult"];
311
-
312
- return result;
313
- }
314
-
315
- +(NSDictionary*)generateBsi:(RGLBsi*)input {
316
- if(input == nil) return nil;
317
- NSMutableDictionary* result = [NSMutableDictionary new];
318
-
319
- result[@"generateResult"] = input.generateResult;
320
-
321
- return result;
322
- }
323
-
324
306
  +(RGLImageQA*)imageQAFromJson:(NSDictionary*)input {
325
307
  RGLImageQA *result = [RGLImageQA new];
326
308
  [RGLWConfig setImageQA:result input:input];
@@ -2594,6 +2576,7 @@ static NSMutableArray* weakReferencesHolder;
2594
2576
  result.requests = requests;
2595
2577
 
2596
2578
  return result;
2579
+
2597
2580
  }
2598
2581
 
2599
2582
  +(NSDictionary*)generateDataRetrieval:(RGLDataRetrieval*)input {
@@ -1374,17 +1374,6 @@ 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
-
1388
1377
  class LivenessParams {
1389
1378
  static fromJson(jsonObject) {
1390
1379
  if (jsonObject == null) return null
@@ -1474,6 +1463,7 @@ class ProcessParams {
1474
1463
  result.strictSecurityChecks = jsonObject["strictSecurityChecks"]
1475
1464
  result.returnTransliteratedFields = jsonObject["returnTransliteratedFields"]
1476
1465
  result.checkCaptureProcessIntegrity = jsonObject["checkCaptureProcessIntegrity"]
1466
+ result.bsiTr03135 = Bsi.fromJson(jsonObject["bsiTr03135"])
1477
1467
  result.barcodeParserType = jsonObject["barcodeParserType"]
1478
1468
  result.perspectiveAngle = jsonObject["perspectiveAngle"]
1479
1469
  result.minDPI = jsonObject["minDPI"]
@@ -1538,7 +1528,6 @@ class ProcessParams {
1538
1528
  result.rfidParams = RFIDParams.fromJson(jsonObject["rfidParams"])
1539
1529
  result.faceApiParams = FaceApiParams.fromJson(jsonObject["faceApiParams"])
1540
1530
  result.backendProcessingConfig = BackendProcessingConfig.fromJson(jsonObject["backendProcessingConfig"])
1541
- result.bsiTr03135 = Bsi.fromJson(jsonObject["bsiTr03135"])
1542
1531
  result.authenticityParams = AuthenticityParams.fromJson(jsonObject["authenticityParams"])
1543
1532
  result.customParams = jsonObject["customParams"]
1544
1533
 
@@ -1559,6 +1548,17 @@ class Font {
1559
1548
  }
1560
1549
  }
1561
1550
 
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,19 +2039,6 @@ 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
-
2055
2042
  // Enum
2056
2043
 
2057
2044
  const FontStyle = {
@@ -4727,7 +4714,6 @@ DocumentReader.isAuthenticatorAvailableForUse = (successCallback, errorCallback)
4727
4714
  DocumentReader.getDocReaderVersion = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getDocReaderVersion"])
4728
4715
  DocumentReader.getDocReaderDocumentsDatabase = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getDocReaderDocumentsDatabase"])
4729
4716
  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])
4731
4717
  DocumentReader.endBackendTransaction = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["endBackendTransaction"])
4732
4718
  DocumentReader.getTranslation = (className, value, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getTranslation", className, value])
4733
4719
  DocumentReader.startReadMDl = (type, dataRetrieval, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["startReadMDl", type, dataRetrieval])
@@ -4737,6 +4723,7 @@ DocumentReader.engageDeviceData = (data, successCallback, errorCallback) => cord
4737
4723
  DocumentReader.startRetrieveData = (deviceEngagement, dataRetrieval, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["startRetrieveData", deviceEngagement, dataRetrieval])
4738
4724
  DocumentReader.retrieveDataNFC = (dataRetrieval, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["retrieveDataNFC", dataRetrieval])
4739
4725
  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])
4740
4727
 
4741
4728
  DocumentReader.textFieldValueByType = (results, fieldType, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["textFieldValueByType", results.rawResult, fieldType])
4742
4729
  DocumentReader.textFieldValueByTypeLcid = (results, fieldType, lcid, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["textFieldValueByTypeLcid", results.rawResult, fieldType, lcid])
@@ -4837,11 +4824,11 @@ DocumentReaderPlugin.RFIDParams = RFIDParams
4837
4824
  DocumentReaderPlugin.FaceApiSearchParams = FaceApiSearchParams
4838
4825
  DocumentReaderPlugin.FaceApiParams = FaceApiParams
4839
4826
  DocumentReaderPlugin.BackendProcessingConfig = BackendProcessingConfig
4840
- DocumentReaderPlugin.Bsi = Bsi
4841
4827
  DocumentReaderPlugin.LivenessParams = LivenessParams
4842
4828
  DocumentReaderPlugin.AuthenticityParams = AuthenticityParams
4843
4829
  DocumentReaderPlugin.ProcessParams = ProcessParams
4844
4830
  DocumentReaderPlugin.Font = Font
4831
+ DocumentReaderPlugin.Bsi = Bsi
4845
4832
  DocumentReaderPlugin.CustomizationColors = CustomizationColors
4846
4833
  DocumentReaderPlugin.CustomizationFonts = CustomizationFonts
4847
4834
  DocumentReaderPlugin.CustomizationImages = CustomizationImages
@@ -4860,6 +4847,5 @@ DocumentReaderPlugin.DocumentRequestMDL = DocumentRequestMDL
4860
4847
  DocumentReaderPlugin.NameSpaceMDL = NameSpaceMDL
4861
4848
  DocumentReaderPlugin.DocumentRequest18013MDL = DocumentRequest18013MDL
4862
4849
  DocumentReaderPlugin.FinalizeConfig = FinalizeConfig
4863
- DocumentReaderPlugin.FinalizeCompletion = FinalizeCompletion
4864
4850
 
4865
4851
  module.exports = DocumentReaderPlugin