@regulaforensics/cordova-plugin-document-reader-api 8.4.298-nightly → 8.4.300-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.
- package/example/package.json +2 -2
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/src/android/Config.kt +1 -31
- package/src/android/JSONConstructor.kt +0 -27
- package/src/android/Main.kt +0 -23
- package/src/android/build.gradle +1 -1
- package/src/ios/RGLWConfig.m +0 -30
- package/src/ios/RGLWJSONConstructor.h +0 -1
- package/src/ios/RGLWJSONConstructor.m +0 -18
- package/src/ios/RGLWMain.m +0 -46
- package/www/DocumentReader.js +0 -75
package/example/package.json
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"author": "Regula Forensics Inc.",
|
|
14
14
|
"license": "commercial",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@regulaforensics/cordova-plugin-document-reader-api": "8.4.
|
|
17
|
-
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "8.4.
|
|
16
|
+
"@regulaforensics/cordova-plugin-document-reader-api": "8.4.300-nightly",
|
|
17
|
+
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "8.4.1159-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": "8.4.
|
|
3
|
+
"version": "8.4.300-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="8.4.
|
|
2
|
+
<plugin id="@regulaforensics/cordova-plugin-document-reader-api" version="8.4.300-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="DocumentReaderNightly" spec="8.4.
|
|
32
|
+
<pod name="DocumentReaderNightly" spec="8.4.5427" />
|
|
33
33
|
</pods>
|
|
34
34
|
</podspec>
|
|
35
35
|
</platform>
|
package/src/android/Config.kt
CHANGED
|
@@ -11,7 +11,7 @@ import androidx.core.content.ContextCompat
|
|
|
11
11
|
import com.regula.documentreader.api.enums.CustomizationColor
|
|
12
12
|
import com.regula.documentreader.api.enums.CustomizationFont
|
|
13
13
|
import com.regula.documentreader.api.enums.CustomizationImage
|
|
14
|
-
import com.regula.documentreader.api.
|
|
14
|
+
import com.regula.documentreader.api.enums.LogLevel
|
|
15
15
|
import com.regula.documentreader.api.params.AuthenticityParams
|
|
16
16
|
import com.regula.documentreader.api.params.Functionality
|
|
17
17
|
import com.regula.documentreader.api.params.ImageQA
|
|
@@ -185,16 +185,6 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
|
|
|
185
185
|
if (processParams.authenticityParams == null) processParams.authenticityParams = AuthenticityParams.defaultParams()
|
|
186
186
|
setAuthenticityParams(processParams.authenticityParams!!, v as JSONObject)
|
|
187
187
|
}
|
|
188
|
-
|
|
189
|
-
"setCheckFilter" -> processParams.setCheckFilter((v as JSONObject).getString("checkType"), filterObjectFromJSON(v.getJSONObject("filterObject")))
|
|
190
|
-
"removeCheckFilter" -> processParams.removeCheckFilter(v as String)
|
|
191
|
-
"clearCheckFilter" -> processParams.clearCheckFilter()
|
|
192
|
-
"checkFilters" -> {
|
|
193
|
-
processParams.clearCheckFilter()
|
|
194
|
-
(v as JSONObject).forEach { key, value ->
|
|
195
|
-
processParams.setCheckFilter(key, filterObjectFromJSON(value as JSONObject))
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
188
|
}
|
|
199
189
|
}
|
|
200
190
|
|
|
@@ -707,16 +697,6 @@ fun setAuthenticityParams(input: AuthenticityParams, opts: JSONObject) = opts.fo
|
|
|
707
697
|
if (input.livenessParams == null) input.livenessParams = LivenessParams.defaultParams()
|
|
708
698
|
setLivenessParams(input.livenessParams!!, v as JSONObject)
|
|
709
699
|
}
|
|
710
|
-
|
|
711
|
-
"setCheckFilter" -> input.setCheckFilter((v as JSONObject).getString("checkType"), filterObjectFromJSON(v.getJSONObject("filterObject")))
|
|
712
|
-
"removeCheckFilter" -> input.removeCheckFilter(v as String)
|
|
713
|
-
"clearCheckFilter" -> input.clearCheckFilter()
|
|
714
|
-
"checkFilters" -> {
|
|
715
|
-
input.clearCheckFilter()
|
|
716
|
-
(v as JSONObject).forEach { key, value ->
|
|
717
|
-
input.setCheckFilter(key, filterObjectFromJSON(value as JSONObject))
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
700
|
}
|
|
721
701
|
}
|
|
722
702
|
|
|
@@ -750,16 +730,6 @@ fun setLivenessParams(input: LivenessParams, opts: JSONObject) = opts.forEach {
|
|
|
750
730
|
"checkBlackAndWhiteCopy" -> input.checkBlackAndWhiteCopy = v as Boolean
|
|
751
731
|
"checkDynaprint" -> input.checkDynaprint = v as Boolean
|
|
752
732
|
"checkGeometry" -> input.checkGeometry = v as Boolean
|
|
753
|
-
|
|
754
|
-
"setCheckFilter" -> input.setCheckFilter((v as JSONObject).getString("checkType"), filterObjectFromJSON(v.getJSONObject("filterObject")))
|
|
755
|
-
"removeCheckFilter" -> input.removeCheckFilter(v as String)
|
|
756
|
-
"clearCheckFilter" -> input.clearCheckFilter()
|
|
757
|
-
"checkFilters" -> {
|
|
758
|
-
input.clearCheckFilter()
|
|
759
|
-
(v as JSONObject).forEach { key, value ->
|
|
760
|
-
input.setCheckFilter(key, filterObjectFromJSON(value as JSONObject))
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
733
|
}
|
|
764
734
|
}
|
|
765
735
|
|
|
@@ -27,8 +27,6 @@ import com.regula.documentreader.api.params.BackendProcessingConfig
|
|
|
27
27
|
import com.regula.documentreader.api.params.BleDeviceConfig
|
|
28
28
|
import com.regula.documentreader.api.params.DocReaderConfig
|
|
29
29
|
import com.regula.documentreader.api.params.FaceApiParams
|
|
30
|
-
import com.regula.documentreader.api.params.FilterObject
|
|
31
|
-
import com.regula.documentreader.api.params.FilterObjectType
|
|
32
30
|
import com.regula.documentreader.api.params.Functionality
|
|
33
31
|
import com.regula.documentreader.api.params.ImageInputData
|
|
34
32
|
import com.regula.documentreader.api.params.ImageQA
|
|
@@ -1798,28 +1796,3 @@ fun generateMatrix(input: Matrix?) = input?.let {
|
|
|
1798
1796
|
for (f in floats) result.put(java.lang.Float.valueOf(f))
|
|
1799
1797
|
result
|
|
1800
1798
|
}
|
|
1801
|
-
|
|
1802
|
-
fun filterObjectFromJSON(it: JSONObject): FilterObject {
|
|
1803
|
-
val result = FilterObject()
|
|
1804
|
-
|
|
1805
|
-
result.docIDsFilter = filterObjectTypeIntFromJSON(it.getJSONObjectOrNull("docIDsFilter"))
|
|
1806
|
-
result.docFormatsFilter = filterObjectTypeIntFromJSON(it.getJSONObjectOrNull("docFormatsFilter"))
|
|
1807
|
-
result.docCategoriesFilter = filterObjectTypeIntFromJSON(it.getJSONObjectOrNull("docCategoriesFilter"))
|
|
1808
|
-
result.docCountriesFilter = filterObjectTypeStringFromJSON(it.getJSONObjectOrNull("docCountriesFilter"))
|
|
1809
|
-
|
|
1810
|
-
return result
|
|
1811
|
-
}
|
|
1812
|
-
|
|
1813
|
-
fun filterObjectTypeIntFromJSON(input: JSONObject?): FilterObjectType<Int>? = input?.let {
|
|
1814
|
-
val array = it.getJSONArray("list").toIntArray()!!.toTypedArray()
|
|
1815
|
-
if (it.getBoolean("isInclude"))
|
|
1816
|
-
return FilterObjectType.createIncludeList(array)
|
|
1817
|
-
return FilterObjectType.createExcludeList(array)
|
|
1818
|
-
}
|
|
1819
|
-
|
|
1820
|
-
fun filterObjectTypeStringFromJSON(input: JSONObject?): FilterObjectType<String>? = input?.let {
|
|
1821
|
-
val array = it.getJSONArray("list").toArray<String>()!!
|
|
1822
|
-
if (it.getBoolean("isInclude"))
|
|
1823
|
-
return FilterObjectType.createIncludeList(array)
|
|
1824
|
-
return FilterObjectType.createExcludeList(array)
|
|
1825
|
-
}
|
package/src/android/Main.kt
CHANGED
|
@@ -122,16 +122,6 @@ fun methodCall(method: String, callback: (Any?) -> Unit): Any? = when (method) {
|
|
|
122
122
|
"finalizePackage" -> finalizePackage(callback)
|
|
123
123
|
"endBackendTransaction" -> endBackendTransaction()
|
|
124
124
|
"getTranslation" -> getTranslation(callback, args(0), args(1))
|
|
125
|
-
// remove after finishing old dr support
|
|
126
|
-
"processParamsSetCheckFilter" -> processParamsSetCheckFilter(args(0), args(1))
|
|
127
|
-
"processParamsRemoveCheckFilter" -> processParamsRemoveCheckFilter(args(0))
|
|
128
|
-
"processParamsClearCheckFilter" -> processParamsClearCheckFilter()
|
|
129
|
-
"authenticityParamsSetCheckFilter" -> authenticityParamsSetCheckFilter(args(0), args(1))
|
|
130
|
-
"authenticityParamsRemoveCheckFilter" -> authenticityParamsRemoveCheckFilter(args(0))
|
|
131
|
-
"authenticityParamsClearCheckFilter" -> authenticityParamsClearCheckFilter()
|
|
132
|
-
"livenessParamsSetCheckFilter" -> livenessParamsSetCheckFilter(args(0), args(1))
|
|
133
|
-
"livenessParamsRemoveCheckFilter" -> livenessParamsRemoveCheckFilter(args(0))
|
|
134
|
-
"livenessParamsClearCheckFilter" -> livenessParamsClearCheckFilter()
|
|
135
125
|
else -> Unit
|
|
136
126
|
}
|
|
137
127
|
|
|
@@ -462,19 +452,6 @@ fun getTranslation(callback: Callback, className: String, value: Int) = when (cl
|
|
|
462
452
|
else -> Unit
|
|
463
453
|
}
|
|
464
454
|
|
|
465
|
-
// remove after finishing old dr support
|
|
466
|
-
fun processParamsSetCheckFilter(checkType: String, filter: JSONObject) = Instance().processParams().setCheckFilter(checkType, filterObjectFromJSON(filter))
|
|
467
|
-
fun processParamsRemoveCheckFilter(checkType: String) = Instance().processParams().removeCheckFilter(checkType)
|
|
468
|
-
fun processParamsClearCheckFilter() = Instance().processParams().clearCheckFilter()
|
|
469
|
-
|
|
470
|
-
fun authenticityParamsSetCheckFilter(checkType: String, filter: JSONObject) = Instance().processParams().authenticityParams?.setCheckFilter(checkType, filterObjectFromJSON(filter))
|
|
471
|
-
fun authenticityParamsRemoveCheckFilter(checkType: String) = Instance().processParams().authenticityParams?.removeCheckFilter(checkType)
|
|
472
|
-
fun authenticityParamsClearCheckFilter() = Instance().processParams().authenticityParams?.clearCheckFilter()
|
|
473
|
-
|
|
474
|
-
fun livenessParamsSetCheckFilter(checkType: String, filter: JSONObject) = Instance().processParams().authenticityParams?.livenessParams?.setCheckFilter(checkType, filterObjectFromJSON(filter))
|
|
475
|
-
fun livenessParamsRemoveCheckFilter(checkType: String) = Instance().processParams().authenticityParams?.livenessParams?.removeCheckFilter(checkType)
|
|
476
|
-
fun livenessParamsClearCheckFilter() = Instance().processParams().authenticityParams?.livenessParams?.clearCheckFilter()
|
|
477
|
-
|
|
478
455
|
// --------------------------------------------------------------------------------------------------------------------------
|
|
479
456
|
|
|
480
457
|
val completion = { action: Int, results: DocumentReaderResults?, error: DocumentReaderException? ->
|
package/src/android/build.gradle
CHANGED
package/src/ios/RGLWConfig.m
CHANGED
|
@@ -273,16 +273,6 @@
|
|
|
273
273
|
if(processParams.authenticityParams == nil) processParams.authenticityParams = [RGLAuthenticityParams defaultParams];
|
|
274
274
|
[self setAuthenticityParams:processParams.authenticityParams input:[options valueForKey:@"authenticityParams"]];
|
|
275
275
|
}
|
|
276
|
-
|
|
277
|
-
if (options[@"setCheckFilter"]) [processParams
|
|
278
|
-
addFilter:[RGLWJSONConstructor filterObjectFromJson: options[@"setCheckFilter"][@"filterObject"]] forCheckType:options[@"setCheckFilter"][@"checkType"]];
|
|
279
|
-
if (options[@"removeCheckFilter"]) [processParams removeFilterForCheckType: options[@"removeCheckFilter"]];
|
|
280
|
-
if (options[@"clearCheckFilter"]) [processParams clearCheckFilter];
|
|
281
|
-
if (options[@"checkFilters"]) {
|
|
282
|
-
[processParams clearCheckFilter];
|
|
283
|
-
for (NSString* key in options[@"checkFilters"])
|
|
284
|
-
[processParams addFilter:[RGLWJSONConstructor filterObjectFromJson: options[@"checkFilters"][key]] forCheckType: key];
|
|
285
|
-
}
|
|
286
276
|
}
|
|
287
277
|
|
|
288
278
|
+(NSDictionary*)getProcessParams:(RGLProcessParams*)processParams {
|
|
@@ -1019,16 +1009,6 @@
|
|
|
1019
1009
|
if([input valueForKey:@"checkLetterScreen"] != nil)
|
|
1020
1010
|
result.checkLetterScreen = [input valueForKey:@"checkLetterScreen"];
|
|
1021
1011
|
if(input[@"checkSecurityText"]) result.checkSecurityText = input[@"checkSecurityText"];
|
|
1022
|
-
|
|
1023
|
-
if (input[@"setCheckFilter"]) [result
|
|
1024
|
-
addFilter:[RGLWJSONConstructor filterObjectFromJson: input[@"setCheckFilter"][@"filterObject"]] forCheckType:input[@"setCheckFilter"][@"checkType"]];
|
|
1025
|
-
if (input[@"removeCheckFilter"]) [result removeFilterForCheckType: input[@"removeCheckFilter"]];
|
|
1026
|
-
if (input[@"clearCheckFilter"]) [result clearCheckFilter];
|
|
1027
|
-
if (input[@"checkFilters"]) {
|
|
1028
|
-
[result clearCheckFilter];
|
|
1029
|
-
for (NSString* key in input[@"checkFilters"])
|
|
1030
|
-
[result addFilter:[RGLWJSONConstructor filterObjectFromJson: input[@"checkFilters"][key]] forCheckType: key];
|
|
1031
|
-
}
|
|
1032
1012
|
}
|
|
1033
1013
|
|
|
1034
1014
|
+(NSDictionary*)getAuthenticityParams:(RGLAuthenticityParams*)input {
|
|
@@ -1067,16 +1047,6 @@
|
|
|
1067
1047
|
if(input[@"checkBlackAndWhiteCopy"]) result.checkBlackAndWhiteCopy = input[@"checkBlackAndWhiteCopy"];
|
|
1068
1048
|
if(input[@"checkDynaprint"]) result.checkDynaprint = input[@"checkDynaprint"];
|
|
1069
1049
|
if(input[@"checkGeometry"]) result.checkGeometry = input[@"checkGeometry"];
|
|
1070
|
-
|
|
1071
|
-
if (input[@"setCheckFilter"]) [result
|
|
1072
|
-
addFilter:[RGLWJSONConstructor filterObjectFromJson: input[@"setCheckFilter"][@"filterObject"]] forCheckType:input[@"setCheckFilter"][@"checkType"]];
|
|
1073
|
-
if (input[@"removeCheckFilter"]) [result removeFilterForCheckType: input[@"removeCheckFilter"]];
|
|
1074
|
-
if (input[@"clearCheckFilter"]) [result clearCheckFilter];
|
|
1075
|
-
if (input[@"checkFilters"]) {
|
|
1076
|
-
[result clearCheckFilter];
|
|
1077
|
-
for (NSString* key in input[@"checkFilters"])
|
|
1078
|
-
[result addFilter:[RGLWJSONConstructor filterObjectFromJson: input[@"checkFilters"][key]] forCheckType: key];
|
|
1079
|
-
}
|
|
1080
1050
|
}
|
|
1081
1051
|
|
|
1082
1052
|
+(NSDictionary*)getLivenessParams:(RGLLivenessParams*)input {
|
|
@@ -175,7 +175,6 @@
|
|
|
175
175
|
+(NSDictionary* _Nullable)generateTCCParams:(RGLTCCParams* _Nullable)input;
|
|
176
176
|
+(RGLTransactionInfo* _Nullable)transactionInfoFromJson:(NSDictionary* _Nullable)input;
|
|
177
177
|
+(NSDictionary* _Nullable)generateTransactionInfo:(RGLTransactionInfo* _Nullable)input;
|
|
178
|
-
+(RGLFilterObject* _Nonnull)filterObjectFromJson:(NSDictionary* _Nonnull)input;
|
|
179
178
|
|
|
180
179
|
@end
|
|
181
180
|
|
|
@@ -2350,24 +2350,6 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
2350
2350
|
return result;
|
|
2351
2351
|
}
|
|
2352
2352
|
|
|
2353
|
-
+(RGLFilterObject*)filterObjectFromJson:(NSDictionary*)input {
|
|
2354
|
-
RGLFilterObject* result = [RGLFilterObject new];
|
|
2355
|
-
|
|
2356
|
-
result.docIDsFilter = [self filterObjectTypeFromJSON: input[@"docIDsFilter"]];
|
|
2357
|
-
result.docFormatsFilter = [self filterObjectTypeFromJSON: input[@"docFormatsFilter"]];
|
|
2358
|
-
result.docCategoriesFilter = [self filterObjectTypeFromJSON: input[@"docCategoriesFilter"]];
|
|
2359
|
-
result.docCountriesFilter = [self filterObjectTypeFromJSON: input[@"docCountriesFilter"]];
|
|
2360
|
-
|
|
2361
|
-
return result;
|
|
2362
|
-
}
|
|
2363
|
-
|
|
2364
|
-
+(RGLFilterObjectType*)filterObjectTypeFromJSON:(NSDictionary*)input {
|
|
2365
|
-
NSArray* array = input[@"list"];
|
|
2366
|
-
if ([input[@"isInclude"] boolValue])
|
|
2367
|
-
return [RGLFilterObjectType createIncludeList:array];
|
|
2368
|
-
return [RGLFilterObjectType createExcludeList:array];
|
|
2369
|
-
}
|
|
2370
|
-
|
|
2371
2353
|
+(NSDictionary*)generateDictionary:(NSDictionary<NSNumber*, NSNumber*>*)input {
|
|
2372
2354
|
if(input == nil) return nil;
|
|
2373
2355
|
NSMutableDictionary* result = [NSMutableDictionary new];
|
package/src/ios/RGLWMain.m
CHANGED
|
@@ -83,16 +83,6 @@
|
|
|
83
83
|
@"containers": ^{ [self containers :args[0] :args[1] :callback]; },
|
|
84
84
|
@"encryptedContainers": ^{ [self encryptedContainers :args[0] :callback]; },
|
|
85
85
|
@"getTranslation": ^{ [self getTranslation :args[0] :args[1] :callback]; },
|
|
86
|
-
// remove after finishing old dr support
|
|
87
|
-
@"processParamsSetCheckFilter": ^{ [self processParamsSetCheckFilter :args[0] :args[1]]; },
|
|
88
|
-
@"processParamsRemoveCheckFilter": ^{ [self processParamsRemoveCheckFilter :args[0]]; },
|
|
89
|
-
@"processParamsClearCheckFilter": ^{ [self processParamsClearCheckFilter]; },
|
|
90
|
-
@"authenticityParamsSetCheckFilter": ^{ [self authenticityParamsSetCheckFilter :args[0] :args[1]]; },
|
|
91
|
-
@"authenticityParamsRemoveCheckFilter": ^{ [self authenticityParamsRemoveCheckFilter :args[0]]; },
|
|
92
|
-
@"authenticityParamsClearCheckFilter": ^{ [self authenticityParamsClearCheckFilter]; },
|
|
93
|
-
@"livenessParamsSetCheckFilter": ^{ [self livenessParamsSetCheckFilter :args[0] :args[1]]; },
|
|
94
|
-
@"livenessParamsRemoveCheckFilter": ^{ [self livenessParamsRemoveCheckFilter :args[0]]; },
|
|
95
|
-
@"livenessParamsClearCheckFilter": ^{ [self livenessParamsClearCheckFilter]; },
|
|
96
86
|
};
|
|
97
87
|
((void(^)(void))Switch[method])();
|
|
98
88
|
}
|
|
@@ -530,42 +520,6 @@ RGLWCallback savedCallbackForBluetoothResult;
|
|
|
530
520
|
callback([RGLDocumentReaderTextField lcidName:[value intValue]]);
|
|
531
521
|
}
|
|
532
522
|
|
|
533
|
-
+ (void)processParamsSetCheckFilter:(NSString*)checkType :(NSDictionary*)filter {
|
|
534
|
-
[RGLDocReader.shared.processParams addFilter:[RGLWJSONConstructor filterObjectFromJson:filter] forCheckType:checkType];
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
+ (void)processParamsRemoveCheckFilter:(NSString*)checkType {
|
|
538
|
-
[RGLDocReader.shared.processParams removeFilterForCheckType:checkType];
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
+ (void)processParamsClearCheckFilter {
|
|
542
|
-
[RGLDocReader.shared.processParams clearCheckFilter];
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
+ (void)authenticityParamsSetCheckFilter:(NSString*)checkType :(NSDictionary*)filter {
|
|
546
|
-
[RGLDocReader.shared.processParams.authenticityParams addFilter:[RGLWJSONConstructor filterObjectFromJson:filter] forCheckType:checkType];
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
+ (void)authenticityParamsRemoveCheckFilter:(NSString*)checkType {
|
|
550
|
-
[RGLDocReader.shared.processParams.authenticityParams removeFilterForCheckType:checkType];
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
+ (void)authenticityParamsClearCheckFilter {
|
|
554
|
-
[RGLDocReader.shared.processParams.authenticityParams clearCheckFilter];
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
+ (void)livenessParamsSetCheckFilter:(NSString*)checkType :(NSDictionary*)filter {
|
|
558
|
-
[RGLDocReader.shared.processParams.authenticityParams.livenessParams addFilter:[RGLWJSONConstructor filterObjectFromJson:filter] forCheckType:checkType];
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
+ (void)livenessParamsRemoveCheckFilter:(NSString*)checkType {
|
|
562
|
-
[RGLDocReader.shared.processParams.authenticityParams.livenessParams removeFilterForCheckType:checkType];
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
+ (void)livenessParamsClearCheckFilter {
|
|
566
|
-
[RGLDocReader.shared.processParams.authenticityParams.livenessParams clearCheckFilter];
|
|
567
|
-
}
|
|
568
|
-
|
|
569
523
|
+(RGLDocumentReaderCompletion _Nonnull)completion {
|
|
570
524
|
return ^(RGLDocReaderAction action, RGLDocumentReaderResults * _Nullable results, NSError * _Nullable error) {
|
|
571
525
|
sendEvent(completionEvent, [RGLWJSONConstructor generateCompletion:[RGLWConfig generateDocReaderAction: action] :results :error]);
|
package/www/DocumentReader.js
CHANGED
|
@@ -1801,35 +1801,6 @@ class PrepareProgress {
|
|
|
1801
1801
|
}
|
|
1802
1802
|
}
|
|
1803
1803
|
|
|
1804
|
-
class FilterObjectType {
|
|
1805
|
-
static fromJson(jsonObject) {
|
|
1806
|
-
if (jsonObject == null) return null
|
|
1807
|
-
const result = new FilterObjectType()
|
|
1808
|
-
|
|
1809
|
-
result.list = []
|
|
1810
|
-
if (jsonObject["list"] != null)
|
|
1811
|
-
for (const i in jsonObject["list"])
|
|
1812
|
-
result.list.push(jsonObject["list"][i])
|
|
1813
|
-
result.isInclude = jsonObject["isInclude"]
|
|
1814
|
-
|
|
1815
|
-
return result
|
|
1816
|
-
}
|
|
1817
|
-
}
|
|
1818
|
-
|
|
1819
|
-
class FilterObject {
|
|
1820
|
-
static fromJson(jsonObject) {
|
|
1821
|
-
if (jsonObject == null) return null
|
|
1822
|
-
const result = new FilterObject()
|
|
1823
|
-
|
|
1824
|
-
result.docIDsFilter = FilterObjectType.fromJson(jsonObject["docIDsFilter"])
|
|
1825
|
-
result.docFormatsFilter = FilterObjectType.fromJson(jsonObject["docFormatsFilter"])
|
|
1826
|
-
result.docCategoriesFilter = FilterObjectType.fromJson(jsonObject["docCategoriesFilter"])
|
|
1827
|
-
result.docCountriesFilter = FilterObjectType.fromJson(jsonObject["docCountriesFilter"])
|
|
1828
|
-
|
|
1829
|
-
return result
|
|
1830
|
-
}
|
|
1831
|
-
}
|
|
1832
|
-
|
|
1833
1804
|
// Enum
|
|
1834
1805
|
|
|
1835
1806
|
const FontStyle = {
|
|
@@ -1995,16 +1966,6 @@ const eRFID_ErrorCodes = {
|
|
|
1995
1966
|
RFID_ERROR_LAYER34_SAM_ACKNOWLEDGE: 0x840F0000,
|
|
1996
1967
|
}
|
|
1997
1968
|
|
|
1998
|
-
const LivenessCheckType = {
|
|
1999
|
-
OVI: "checkOVI",
|
|
2000
|
-
MLI: "checkMLI",
|
|
2001
|
-
HOLO: "checkHolo",
|
|
2002
|
-
ED: "checkED",
|
|
2003
|
-
BLACK_AND_WHITE_COPY: "checkBlackAndWhiteCopy",
|
|
2004
|
-
DYNAPRINT: "checkDynaprint",
|
|
2005
|
-
GEOMETRY: "checkGeometry",
|
|
2006
|
-
}
|
|
2007
|
-
|
|
2008
1969
|
const eLDS_ParsingErrorCodes = {
|
|
2009
1970
|
ERR_LDS_OK: 0x00000001,
|
|
2010
1971
|
ERR_LDS_ASN_INCORRECT_DATA: 0x80000001,
|
|
@@ -2219,10 +2180,6 @@ const LineCap = {
|
|
|
2219
2180
|
SQUARE: 2,
|
|
2220
2181
|
}
|
|
2221
2182
|
|
|
2222
|
-
const FilterCheckType = {
|
|
2223
|
-
CHECK_AUTH: "checkAuth",
|
|
2224
|
-
}
|
|
2225
|
-
|
|
2226
2183
|
const eRPRM_FieldVerificationResult = {
|
|
2227
2184
|
RCF_DISABLED: 0,
|
|
2228
2185
|
RCF_VERIFIED: 1,
|
|
@@ -3051,24 +3008,6 @@ const eRFID_SDK_ProfilerType = {
|
|
|
3051
3008
|
SPT_DOC_9303_LDS_PKI_MAINTENANCE: 0x00000002,
|
|
3052
3009
|
}
|
|
3053
3010
|
|
|
3054
|
-
const AuthenticityCheckType = {
|
|
3055
|
-
USE_LIVENESS: "checkLiveness",
|
|
3056
|
-
UV_LUMINISCENCE: "checkUVLuminiscence",
|
|
3057
|
-
IR_B900: "checkIRB900",
|
|
3058
|
-
IMAGE_PATTERNS: "checkImagePatterns",
|
|
3059
|
-
FIBERS: "checkFibers",
|
|
3060
|
-
EXT_MRZ: "checkExtMRZ",
|
|
3061
|
-
EXT_OCR: "checkExtOCR",
|
|
3062
|
-
AXIAL: "checkAxial",
|
|
3063
|
-
BARCODE_FORMAT: "checkBarcodeFormat",
|
|
3064
|
-
IR_VISIBILITY: "checkIRVisibility",
|
|
3065
|
-
IPI: "checkIPI",
|
|
3066
|
-
PHOTO_EMBEDDING: "checkPhotoEmbedding",
|
|
3067
|
-
PHOTO_COMPARISON: "checkPhotoComparison",
|
|
3068
|
-
LETTER_SCREEN: "checkLetterScreen++",
|
|
3069
|
-
SECURITY_TEXT: "checkSecurityText",
|
|
3070
|
-
}
|
|
3071
|
-
|
|
3072
3011
|
const diDocType = {
|
|
3073
3012
|
dtNotDefined: 0,
|
|
3074
3013
|
dtPassport: 11,
|
|
@@ -4375,7 +4314,6 @@ const Enum = {
|
|
|
4375
4314
|
eRPRM_Authenticity,
|
|
4376
4315
|
CustomizationColor,
|
|
4377
4316
|
eRFID_ErrorCodes,
|
|
4378
|
-
LivenessCheckType,
|
|
4379
4317
|
eLDS_ParsingErrorCodes,
|
|
4380
4318
|
eRFID_CertificateType,
|
|
4381
4319
|
RGLMeasureSystem,
|
|
@@ -4383,7 +4321,6 @@ const Enum = {
|
|
|
4383
4321
|
FrameShapeType,
|
|
4384
4322
|
eRFID_BaudRate,
|
|
4385
4323
|
LineCap,
|
|
4386
|
-
FilterCheckType,
|
|
4387
4324
|
eRPRM_FieldVerificationResult,
|
|
4388
4325
|
DocReaderAction,
|
|
4389
4326
|
eProcessGLCommands,
|
|
@@ -4414,7 +4351,6 @@ const Enum = {
|
|
|
4414
4351
|
eRPRM_SecurityFeatureType,
|
|
4415
4352
|
OnlineMode,
|
|
4416
4353
|
eRFID_SDK_ProfilerType,
|
|
4417
|
-
AuthenticityCheckType,
|
|
4418
4354
|
diDocType,
|
|
4419
4355
|
ButtonTag,
|
|
4420
4356
|
HoloAnimationType,
|
|
@@ -4499,15 +4435,6 @@ DocumentReader.getDocReaderDocumentsDatabase = (successCallback, errorCallback)
|
|
|
4499
4435
|
DocumentReader.finalizePackage = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["finalizePackage"])
|
|
4500
4436
|
DocumentReader.endBackendTransaction = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["endBackendTransaction"])
|
|
4501
4437
|
DocumentReader.getTranslation = (className, value, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getTranslation", className, value])
|
|
4502
|
-
DocumentReader.processParamsSetCheckFilter = (checkType, filter, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["processParamsSetCheckFilter", checkType, filter])
|
|
4503
|
-
DocumentReader.processParamsRemoveCheckFilter = (checkType, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["processParamsRemoveCheckFilter", checkType])
|
|
4504
|
-
DocumentReader.processParamsClearCheckFilter = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["processParamsClearCheckFilter"])
|
|
4505
|
-
DocumentReader.authenticityParamsSetCheckFilter = (checkType, filter, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["authenticityParamsSetCheckFilter", checkType, filter])
|
|
4506
|
-
DocumentReader.authenticityParamsRemoveCheckFilter = (checkType, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["authenticityParamsRemoveCheckFilter", checkType])
|
|
4507
|
-
DocumentReader.authenticityParamsClearCheckFilter = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["authenticityParamsClearCheckFilter"])
|
|
4508
|
-
DocumentReader.livenessParamsSetCheckFilter = (checkType, filter, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["livenessParamsSetCheckFilter", checkType, filter])
|
|
4509
|
-
DocumentReader.livenessParamsRemoveCheckFilter = (checkType, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["livenessParamsRemoveCheckFilter", checkType])
|
|
4510
|
-
DocumentReader.livenessParamsClearCheckFilter = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["livenessParamsClearCheckFilter"])
|
|
4511
4438
|
|
|
4512
4439
|
DocumentReader.textFieldValueByType = (results, fieldType, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["textFieldValueByType", results.rawResult, fieldType])
|
|
4513
4440
|
DocumentReader.textFieldValueByTypeLcid = (results, fieldType, lcid, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["textFieldValueByTypeLcid", results.rawResult, fieldType, lcid])
|
|
@@ -4619,7 +4546,5 @@ DocumentReaderPlugin.EIDDataGroups = EIDDataGroups
|
|
|
4619
4546
|
DocumentReaderPlugin.DTCDataGroup = DTCDataGroup
|
|
4620
4547
|
DocumentReaderPlugin.RFIDScenario = RFIDScenario
|
|
4621
4548
|
DocumentReaderPlugin.PrepareProgress = PrepareProgress
|
|
4622
|
-
DocumentReaderPlugin.FilterObjectType = FilterObjectType
|
|
4623
|
-
DocumentReaderPlugin.FilterObject = FilterObject
|
|
4624
4549
|
|
|
4625
4550
|
module.exports = DocumentReaderPlugin
|