@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.
Files changed (59) hide show
  1. package/RNDocumentReader.podspec +2 -2
  2. package/android/build.gradle +2 -2
  3. package/android/cordova.gradle +2 -2
  4. package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +49 -1
  5. package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +30 -0
  6. package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +24 -1
  7. package/examples/capacitor/package-lock.json +351 -313
  8. package/examples/capacitor/package.json +3 -3
  9. package/examples/ionic/package.json +3 -3
  10. package/examples/react_native/package.json +3 -3
  11. package/ios/RGLWConfig.m +38 -9
  12. package/ios/RGLWJSONConstructor.h +1 -0
  13. package/ios/RGLWJSONConstructor.m +21 -0
  14. package/ios/RGLWMain.m +46 -0
  15. package/package.json +1 -1
  16. package/plugin.xml +2 -2
  17. package/test/json.tsx +72 -31
  18. package/test/package-lock.json +1 -1
  19. package/test/test.tsx +3 -2
  20. package/www/capacitor/config/InitConfig.js +3 -0
  21. package/www/capacitor/index.js +5 -4
  22. package/www/capacitor/info/DocReaderException.js +2 -0
  23. package/www/capacitor/params/Functionality.js +8 -0
  24. package/www/capacitor/params/customization/CustomizationColors.js +32 -0
  25. package/www/capacitor/params/customization/CustomizationFonts.js +24 -0
  26. package/www/capacitor/params/customization/CustomizationImages.js +8 -0
  27. package/www/capacitor/params/process_params/AuthenticityParams.js +44 -0
  28. package/www/capacitor/params/process_params/FilterObject.js +60 -0
  29. package/www/capacitor/params/process_params/LivenessParams.js +38 -2
  30. package/www/capacitor/params/process_params/ProcessParams.js +30 -0
  31. package/www/capacitor/results/authenticity/CheckDiagnose.js +2 -0
  32. package/www/capacitor/results/authenticity/SecurityFeatureType.js +3 -1
  33. package/www/cordova.js +371 -92
  34. package/www/react-native/config/InitConfig.js +3 -0
  35. package/www/react-native/index.js +5 -4
  36. package/www/react-native/info/DocReaderException.js +2 -0
  37. package/www/react-native/params/Functionality.js +8 -0
  38. package/www/react-native/params/customization/CustomizationColors.js +32 -0
  39. package/www/react-native/params/customization/CustomizationFonts.js +24 -0
  40. package/www/react-native/params/customization/CustomizationImages.js +8 -0
  41. package/www/react-native/params/process_params/AuthenticityParams.js +44 -0
  42. package/www/react-native/params/process_params/FilterObject.js +60 -0
  43. package/www/react-native/params/process_params/LivenessParams.js +38 -2
  44. package/www/react-native/params/process_params/ProcessParams.js +30 -0
  45. package/www/react-native/results/authenticity/CheckDiagnose.js +2 -0
  46. package/www/react-native/results/authenticity/SecurityFeatureType.js +3 -1
  47. package/www/types/config/InitConfig.d.ts +5 -0
  48. package/www/types/index.d.ts +5 -4
  49. package/www/types/info/DocReaderException.d.ts +4 -0
  50. package/www/types/params/Functionality.d.ts +6 -0
  51. package/www/types/params/customization/CustomizationColors.d.ts +16 -8
  52. package/www/types/params/customization/CustomizationFonts.d.ts +6 -0
  53. package/www/types/params/customization/CustomizationImages.d.ts +6 -1
  54. package/www/types/params/process_params/AuthenticityParams.d.ts +25 -0
  55. package/www/types/params/process_params/FilterObject.d.ts +32 -0
  56. package/www/types/params/process_params/LivenessParams.d.ts +18 -0
  57. package/www/types/params/process_params/ProcessParams.d.ts +11 -0
  58. package/www/types/results/authenticity/CheckDiagnose.d.ts +4 -0
  59. 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. */
@@ -97,4 +97,8 @@ export declare enum SecurityFeatureType {
97
97
  LIVENESS_BLACK_AND_WHITE_COPY_CHECK = 53,
98
98
  LIVENESS_DYNAPRINT = 54,
99
99
  LIVENESS_GEOMETRY_CHECK = 55,
100
+ /** Age check. */
101
+ AGE_CHECK = 56,
102
+ /** Sex check. */
103
+ SEX_CHECK = 57,
100
104
  }