@regulaforensics/document-reader 7.2.423-rc → 7.2.424-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/RNDocumentReader.podspec +2 -2
- package/android/build.gradle +2 -2
- package/android/cordova.gradle +2 -2
- package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +1 -31
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +0 -27
- package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +0 -23
- package/examples/capacitor/package.json +1 -1
- package/examples/ionic/package-lock.json +8 -8
- package/examples/ionic/package.json +1 -1
- package/examples/react_native/package-lock.json +4 -4
- package/examples/react_native/package.json +1 -1
- package/ios/RGLWConfig.m +0 -30
- package/ios/RGLWJSONConstructor.h +0 -1
- package/ios/RGLWJSONConstructor.m +0 -18
- package/ios/RGLWMain.m +0 -46
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/json.tsx +0 -29
- package/test/package-lock.json +1 -1
- package/test/test.tsx +2 -3
- package/www/capacitor/index.js +4 -5
- package/www/capacitor/params/process_params/AuthenticityParams.js +0 -44
- package/www/capacitor/params/process_params/LivenessParams.js +0 -36
- package/www/capacitor/params/process_params/ProcessParams.js +0 -30
- package/www/cordova.js +89 -287
- package/www/react-native/index.js +4 -5
- package/www/react-native/params/process_params/AuthenticityParams.js +0 -44
- package/www/react-native/params/process_params/LivenessParams.js +0 -36
- package/www/react-native/params/process_params/ProcessParams.js +0 -30
- package/www/types/index.d.ts +4 -5
- package/www/types/params/process_params/AuthenticityParams.d.ts +0 -25
- package/www/types/params/process_params/LivenessParams.d.ts +0 -18
- package/www/types/params/process_params/ProcessParams.d.ts +0 -11
- package/www/capacitor/params/process_params/FilterObject.js +0 -60
- package/www/react-native/params/process_params/FilterObject.js +0 -60
- package/www/types/params/process_params/FilterObject.d.ts +0 -32
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DocumentReader } from '../../index';
|
|
2
|
-
import { FilterObject } from './FilterObject';
|
|
3
2
|
|
|
4
3
|
export class LivenessParams {
|
|
5
4
|
get checkOVI() { return this._checkOVI; }
|
|
@@ -44,28 +43,6 @@ export class LivenessParams {
|
|
|
44
43
|
this._set({ "checkGeometry": val });
|
|
45
44
|
}
|
|
46
45
|
|
|
47
|
-
_checkFilters = {};
|
|
48
|
-
|
|
49
|
-
setCheckFilter(checkType, filter) {
|
|
50
|
-
this._checkFilters[checkType] = filter;
|
|
51
|
-
this._set({
|
|
52
|
-
"setCheckFilter": {
|
|
53
|
-
"checkType": checkType,
|
|
54
|
-
"filterObject": filter.toJson(),
|
|
55
|
-
},
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
removeCheckFilter(checkType) {
|
|
60
|
-
delete this._checkFilters[checkType];
|
|
61
|
-
this._set({ "removeCheckFilter": checkType });
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
clearCheckFilter() {
|
|
65
|
-
this._checkFilters = {};
|
|
66
|
-
this._set({ "clearCheckFilter": '' });
|
|
67
|
-
}
|
|
68
|
-
|
|
69
46
|
static fromJson(jsonObject) {
|
|
70
47
|
if (jsonObject == null) return new LivenessParams();
|
|
71
48
|
|
|
@@ -77,8 +54,6 @@ export class LivenessParams {
|
|
|
77
54
|
result._checkBlackAndWhiteCopy = jsonObject["checkBlackAndWhiteCopy"];
|
|
78
55
|
result._checkDynaprint = jsonObject["checkDynaprint"];
|
|
79
56
|
result._checkGeometry = jsonObject["checkGeometry"];
|
|
80
|
-
result._checkFilters = Object.fromEntries(Object.entries(jsonObject["checkFilters"] ?? {})
|
|
81
|
-
.map(([k, v]) => [k, FilterObject.fromJson(v)]));
|
|
82
57
|
|
|
83
58
|
return result;
|
|
84
59
|
}
|
|
@@ -99,17 +74,6 @@ export class LivenessParams {
|
|
|
99
74
|
"checkBlackAndWhiteCopy": this.checkBlackAndWhiteCopy,
|
|
100
75
|
"checkDynaprint": this.checkDynaprint,
|
|
101
76
|
"checkGeometry": this.checkGeometry,
|
|
102
|
-
"checkFilters": Object.fromEntries(Object.entries(this._checkFilters).map(([k, v]) => [k, v.toJson()])),
|
|
103
77
|
}
|
|
104
78
|
}
|
|
105
79
|
}
|
|
106
|
-
|
|
107
|
-
export const LivenessCheckType = {
|
|
108
|
-
OVI: "checkOVI",
|
|
109
|
-
MLI: "checkMLI",
|
|
110
|
-
HOLO: "checkHolo",
|
|
111
|
-
ED: "checkED",
|
|
112
|
-
BLACK_AND_WHITE_COPY: "checkBlackAndWhiteCopy",
|
|
113
|
-
DYNAPRINT: "checkDynaprint",
|
|
114
|
-
GEOMETRY: "checkGeometry",
|
|
115
|
-
};
|
|
@@ -5,7 +5,6 @@ import { RFIDParams } from './RFIDParams';
|
|
|
5
5
|
import { FaceApiParams } from './FaceApiParams';
|
|
6
6
|
import { BackendProcessingConfig } from './BackendProcessingConfig';
|
|
7
7
|
import { AuthenticityParams } from './AuthenticityParams';
|
|
8
|
-
import { FilterObject } from './FilterObject';
|
|
9
8
|
|
|
10
9
|
export class ProcessParams {
|
|
11
10
|
get multipageProcessing() { return this._multipageProcessing; }
|
|
@@ -470,28 +469,6 @@ export class ProcessParams {
|
|
|
470
469
|
this._set({ "customParams": val });
|
|
471
470
|
}
|
|
472
471
|
|
|
473
|
-
_checkFilters = {};
|
|
474
|
-
|
|
475
|
-
setCheckFilter(checkType, filter) {
|
|
476
|
-
this._checkFilters[checkType] = filter;
|
|
477
|
-
this._set({
|
|
478
|
-
"setCheckFilter": {
|
|
479
|
-
"checkType": checkType,
|
|
480
|
-
"filterObject": filter.toJson(),
|
|
481
|
-
},
|
|
482
|
-
});
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
removeCheckFilter(checkType) {
|
|
486
|
-
delete this._checkFilters[checkType];
|
|
487
|
-
this._set({ "removeCheckFilter": checkType });
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
clearCheckFilter() {
|
|
491
|
-
this._checkFilters = {};
|
|
492
|
-
this._set({ "clearCheckFilter": '' });
|
|
493
|
-
}
|
|
494
|
-
|
|
495
472
|
static fromJson(jsonObject) {
|
|
496
473
|
if (jsonObject == null) return new ProcessParams();
|
|
497
474
|
const result = new ProcessParams();
|
|
@@ -574,8 +551,6 @@ export class ProcessParams {
|
|
|
574
551
|
result._backendProcessingConfig = BackendProcessingConfig.fromJson(jsonObject["backendProcessingConfig"]);
|
|
575
552
|
result._authenticityParams = AuthenticityParams.fromJson(jsonObject["authenticityParams"]);
|
|
576
553
|
result._customParams = jsonObject["customParams"];
|
|
577
|
-
result._checkFilters = Object.fromEntries(Object.entries(jsonObject["checkFilters"] ?? {})
|
|
578
|
-
.map(([k, v]) => [k, FilterObject.fromJson(v)]));
|
|
579
554
|
|
|
580
555
|
return result;
|
|
581
556
|
}
|
|
@@ -659,7 +634,6 @@ export class ProcessParams {
|
|
|
659
634
|
"backendProcessingConfig": this.backendProcessingConfig?.toJson(),
|
|
660
635
|
"authenticityParams": this.authenticityParams?.toJson(),
|
|
661
636
|
"customParams": this.customParams,
|
|
662
|
-
"checkFilters": Object.fromEntries(Object.entries(this._checkFilters).map(([k, v]) => [k, v.toJson()])),
|
|
663
637
|
}
|
|
664
638
|
}
|
|
665
639
|
|
|
@@ -697,7 +671,3 @@ export const MrzDetectionModes = {
|
|
|
697
671
|
RESIZE_BINARIZE_WINDOW: 1,
|
|
698
672
|
BLUR_BEFORE_BINARIZATION: 2
|
|
699
673
|
};
|
|
700
|
-
|
|
701
|
-
export const FilterCheckType = {
|
|
702
|
-
AUTH: "checkAuth",
|
|
703
|
-
};
|