@regulaforensics/document-reader 8.4.375-beta → 8.4.386-beta
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 +49 -1
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +30 -0
- package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +24 -1
- package/examples/capacitor/package-lock.json +351 -313
- package/examples/capacitor/package.json +3 -3
- package/examples/ionic/package.json +3 -3
- package/examples/react_native/package.json +3 -3
- package/ios/RGLWConfig.m +38 -9
- package/ios/RGLWJSONConstructor.h +1 -0
- package/ios/RGLWJSONConstructor.m +21 -0
- package/ios/RGLWMain.m +46 -0
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/json.tsx +72 -31
- package/test/package-lock.json +1 -1
- package/test/test.tsx +3 -2
- package/www/capacitor/config/InitConfig.js +3 -0
- package/www/capacitor/index.js +5 -4
- package/www/capacitor/info/DocReaderException.js +2 -0
- package/www/capacitor/params/Functionality.js +8 -0
- package/www/capacitor/params/customization/CustomizationColors.js +32 -0
- package/www/capacitor/params/customization/CustomizationFonts.js +24 -0
- package/www/capacitor/params/customization/CustomizationImages.js +8 -0
- package/www/capacitor/params/process_params/AuthenticityParams.js +44 -0
- package/www/capacitor/params/process_params/FilterObject.js +60 -0
- package/www/capacitor/params/process_params/LivenessParams.js +38 -2
- package/www/capacitor/params/process_params/ProcessParams.js +30 -0
- package/www/capacitor/results/authenticity/CheckDiagnose.js +2 -0
- package/www/capacitor/results/authenticity/SecurityFeatureType.js +3 -1
- package/www/cordova.js +371 -92
- package/www/react-native/config/InitConfig.js +3 -0
- package/www/react-native/index.js +5 -4
- package/www/react-native/info/DocReaderException.js +2 -0
- package/www/react-native/params/Functionality.js +8 -0
- package/www/react-native/params/customization/CustomizationColors.js +32 -0
- package/www/react-native/params/customization/CustomizationFonts.js +24 -0
- package/www/react-native/params/customization/CustomizationImages.js +8 -0
- package/www/react-native/params/process_params/AuthenticityParams.js +44 -0
- package/www/react-native/params/process_params/FilterObject.js +60 -0
- package/www/react-native/params/process_params/LivenessParams.js +38 -2
- package/www/react-native/params/process_params/ProcessParams.js +30 -0
- package/www/react-native/results/authenticity/CheckDiagnose.js +2 -0
- package/www/react-native/results/authenticity/SecurityFeatureType.js +3 -1
- package/www/types/config/InitConfig.d.ts +5 -0
- package/www/types/index.d.ts +5 -4
- package/www/types/info/DocReaderException.d.ts +4 -0
- package/www/types/params/Functionality.d.ts +6 -0
- package/www/types/params/customization/CustomizationColors.d.ts +16 -8
- package/www/types/params/customization/CustomizationFonts.d.ts +6 -0
- package/www/types/params/customization/CustomizationImages.d.ts +6 -1
- package/www/types/params/process_params/AuthenticityParams.d.ts +25 -0
- package/www/types/params/process_params/FilterObject.d.ts +32 -0
- package/www/types/params/process_params/LivenessParams.d.ts +18 -0
- package/www/types/params/process_params/ProcessParams.d.ts +11 -0
- package/www/types/results/authenticity/CheckDiagnose.d.ts +4 -0
- package/www/types/results/authenticity/SecurityFeatureType.d.ts +4 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare class FilterObject {
|
|
2
|
+
docIDsFilter?: FilterObjectType;
|
|
3
|
+
docFormatsFilter?: FilterObjectType;
|
|
4
|
+
docCategoriesFilter?: FilterObjectType;
|
|
5
|
+
docCountriesFilter?: FilterObjectType;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Allows you to deserialize object.
|
|
9
|
+
* @param jsonObject
|
|
10
|
+
*/
|
|
11
|
+
static fromJson(jsonObject: any): FilterObject;
|
|
12
|
+
|
|
13
|
+
/** Allows you to serialize object. */
|
|
14
|
+
toJson(): Record<string, any>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export declare class FilterObjectType {
|
|
18
|
+
private constructor()
|
|
19
|
+
|
|
20
|
+
static createIncludeList(list: any[]): FilterObjectType;
|
|
21
|
+
|
|
22
|
+
static createExcludeList(list: any[]): FilterObjectType;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Allows you to deserialize object.
|
|
26
|
+
* @param jsonObject
|
|
27
|
+
*/
|
|
28
|
+
static fromJson(jsonObject: any): FilterObjectType;
|
|
29
|
+
|
|
30
|
+
/** Allows you to serialize object. */
|
|
31
|
+
toJson(): Record<string, any>;
|
|
32
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { FilterObject } from "./FilterObject";
|
|
2
|
+
|
|
1
3
|
export declare class LivenessParams {
|
|
2
4
|
checkOVI?: boolean;
|
|
3
5
|
checkMLI?: boolean;
|
|
@@ -12,9 +14,25 @@ export declare class LivenessParams {
|
|
|
12
14
|
|
|
13
15
|
checkGeometry?: boolean;
|
|
14
16
|
|
|
17
|
+
setCheckFilter(checkType: LivenessCheckType, filter: FilterObject): void;
|
|
18
|
+
|
|
19
|
+
removeCheckFilter(checkType: LivenessCheckType): void;
|
|
20
|
+
|
|
21
|
+
clearCheckFilter(): void;
|
|
22
|
+
|
|
15
23
|
/**
|
|
16
24
|
* Allows you to deserialize object.
|
|
17
25
|
* @param jsonObject
|
|
18
26
|
*/
|
|
19
27
|
static fromJson(jsonObject: any): LivenessParams;
|
|
20
28
|
}
|
|
29
|
+
|
|
30
|
+
export declare enum LivenessCheckType {
|
|
31
|
+
OVI = "checkOVI",
|
|
32
|
+
MLI = "checkMLI",
|
|
33
|
+
HOLO = "checkHolo",
|
|
34
|
+
ED = "checkED",
|
|
35
|
+
BLACK_AND_WHITE_COPY = "checkBlackAndWhiteCopy",
|
|
36
|
+
DYNAPRINT = "checkDynaprint",
|
|
37
|
+
GEOMETRY = "checkGeometry",
|
|
38
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FilterObject } from "./FilterObject";
|
|
1
2
|
import { AuthenticityParams } from "./AuthenticityParams";
|
|
2
3
|
import { BackendProcessingConfig } from "./BackendProcessingConfig";
|
|
3
4
|
import { FaceApiParams } from "./FaceApiParams";
|
|
@@ -415,6 +416,12 @@ export declare class ProcessParams {
|
|
|
415
416
|
*/
|
|
416
417
|
customParams?: Record<string, any>;
|
|
417
418
|
|
|
419
|
+
setCheckFilter(checkType: FilterCheckType, filter: FilterObject): void;
|
|
420
|
+
|
|
421
|
+
removeCheckFilter(checkType: FilterCheckType): void;
|
|
422
|
+
|
|
423
|
+
clearCheckFilter(): void;
|
|
424
|
+
|
|
418
425
|
/**
|
|
419
426
|
* Allows you to deserialize object.
|
|
420
427
|
* @param jsonObject
|
|
@@ -471,3 +478,7 @@ export declare enum MrzDetectionModes {
|
|
|
471
478
|
RESIZE_BINARIZE_WINDOW = 1,
|
|
472
479
|
BLUR_BEFORE_BINARIZATION = 2,
|
|
473
480
|
}
|
|
481
|
+
|
|
482
|
+
export declare enum FilterCheckType {
|
|
483
|
+
AUTH = "checkAuth",
|
|
484
|
+
}
|
|
@@ -97,6 +97,10 @@ export declare enum CheckDiagnose {
|
|
|
97
97
|
/** Facial image is found. */
|
|
98
98
|
FIELD_POS_CORRECTOR_FACE_ABSENCE_CHECK_ERROR = 85,
|
|
99
99
|
CHD_FIELD_POS_CORRECTOR_INCORRECT_HEAD_POSITION = 86,
|
|
100
|
+
/** Age check error. */
|
|
101
|
+
CHD_FIELD_POS_CORRECTOR_AGE_CHECK_ERROR = 87,
|
|
102
|
+
/** Sex check error. */
|
|
103
|
+
CHD_FIELD_POS_CORRECTOR_SEX_CHECK_ERROR = 88,
|
|
100
104
|
/** OVI object is not visible in IR. */
|
|
101
105
|
OVI_IR_INVISIBLE = 90,
|
|
102
106
|
/** Insufficient area of the object OVI. */
|