@regulaforensics/document-reader 9.8.1039-beta → 9.8.1046-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.
Files changed (34) 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/kotlin/com/regula/plugin/documentreader/Config.kt +2 -0
  5. package/android/src/main/kotlin/com/regula/plugin/documentreader/JSONConstructor.kt +13 -0
  6. package/examples/capacitor/package.json +1 -1
  7. package/examples/ionic/package.json +1 -1
  8. package/examples/react_native/package.json +1 -1
  9. package/ios/RGLWConfig.m +3 -0
  10. package/ios/RGLWJSONConstructor.h +2 -0
  11. package/ios/RGLWJSONConstructor.m +19 -0
  12. package/ios/RGLWMain.h +1 -2
  13. package/ios/RGLWMain.m +1 -1
  14. package/package.json +1 -1
  15. package/plugin.xml +2 -2
  16. package/test/json.tsx +126 -50
  17. package/test/package-lock.json +1 -1
  18. package/test/test.tsx +3 -0
  19. package/www/capacitor/index.js +4 -1
  20. package/www/capacitor/params/process_params/ImageQA.js +9 -0
  21. package/www/capacitor/params/process_params/OcclusionCheckParams.js +21 -0
  22. package/www/capacitor/params/rfid_scenario/RFIDScenario.js +9 -1
  23. package/www/capacitor/results/rfid/Application.js +5 -1
  24. package/www/cordova.js +186 -147
  25. package/www/react-native/index.js +4 -1
  26. package/www/react-native/params/process_params/ImageQA.js +9 -0
  27. package/www/react-native/params/process_params/OcclusionCheckParams.js +21 -0
  28. package/www/react-native/params/rfid_scenario/RFIDScenario.js +9 -1
  29. package/www/react-native/results/rfid/Application.js +5 -1
  30. package/www/types/index.d.ts +4 -1
  31. package/www/types/params/process_params/ImageQA.d.ts +6 -0
  32. package/www/types/params/process_params/OcclusionCheckParams.d.ts +16 -0
  33. package/www/types/params/rfid_scenario/RFIDScenario.d.ts +9 -0
  34. package/www/types/results/rfid/Application.d.ts +5 -1
@@ -217,6 +217,7 @@ import { LivenessParams } from './params/process_params/LivenessParams';
217
217
  import { AuthenticityPropertiesParams } from './params/process_params/AuthenticityPropertiesParams';
218
218
  import { ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes } from './params/process_params/ProcessParams';
219
219
  import { GlaresCheckParams } from './params/process_params/GlaresCheckParams';
220
+ import { OcclusionCheckParams } from './params/process_params/OcclusionCheckParams';
220
221
  import { FaceApiParams } from './params/process_params/FaceApiParams';
221
222
  import { RFIDParams } from './params/process_params/RFIDParams';
222
223
  import { ImageQA } from './params/process_params/ImageQA';
@@ -233,6 +234,7 @@ export {
233
234
  LogLevel,
234
235
  MrzDetectionModes,
235
236
  GlaresCheckParams,
237
+ OcclusionCheckParams,
236
238
  FaceApiParams,
237
239
  RFIDParams,
238
240
  ImageQA,
@@ -280,7 +282,7 @@ export {
280
282
  import { EPassportDataGroups } from './params/rfid_scenario/EPassportDataGroups';
281
283
  import { EIDDataGroups } from './params/rfid_scenario/EIDDataGroups';
282
284
  import { DTCDataGroup } from './params/rfid_scenario/DTCDataGroup';
283
- import { RFIDScenario, RFIDAuthenticationProcedureType, RFIDPasswordType, RFIDSDKProfilerType, RFIDTerminalType, SignManagementAction, RFIDReadingBufferSize } from './params/rfid_scenario/RFIDScenario';
285
+ import { RFIDScenario, RFIDAuthenticationProcedureType, RFIDPasswordType, RFIDAccessControl, RFIDSDKProfilerType, RFIDTerminalType, SignManagementAction, RFIDReadingBufferSize } from './params/rfid_scenario/RFIDScenario';
284
286
  import { EDLDataGroups } from './params/rfid_scenario/EDLDataGroups';
285
287
  export {
286
288
  EPassportDataGroups,
@@ -289,6 +291,7 @@ export {
289
291
  RFIDScenario,
290
292
  RFIDAuthenticationProcedureType,
291
293
  RFIDPasswordType,
294
+ RFIDAccessControl,
292
295
  RFIDSDKProfilerType,
293
296
  RFIDTerminalType,
294
297
  SignManagementAction,
@@ -1,5 +1,6 @@
1
1
  import { DocumentReader } from '../../index';
2
2
  import { GlaresCheckParams } from './GlaresCheckParams';
3
+ import { OcclusionCheckParams } from "./OcclusionCheckParams";
3
4
  import { ImageQualityCheckType } from '../../results/image_quality/ImageQualityCheckType';
4
5
 
5
6
  export class ImageQA {
@@ -33,6 +34,12 @@ export class ImageQA {
33
34
  this._set({ "glaresCheckParams": val });
34
35
  }
35
36
 
37
+ get occlusionCheckParams() { return this._occlusionCheckParams; }
38
+ set occlusionCheckParams(val) {
39
+ this._occlusionCheckParams = val;
40
+ this._set({ "occlusionCheckParams": val });
41
+ }
42
+
36
43
  get colornessCheck() { return this._colornessCheck; }
37
44
  set colornessCheck(val) {
38
45
  this._colornessCheck = val;
@@ -81,6 +88,7 @@ export class ImageQA {
81
88
  result._screenCapture = jsonObject["screenCapture"];
82
89
  result._expectedPass = jsonObject["expectedPass"];
83
90
  result._glaresCheckParams = GlaresCheckParams.fromJson(jsonObject["glaresCheckParams"]);
91
+ result._occlusionCheckParams = OcclusionCheckParams.fromJson(jsonObject["occlusionCheckParams"]);
84
92
  result._documentPositionIndent = jsonObject["documentPositionIndent"];
85
93
  result._brightnessThreshold = jsonObject["brightnessThreshold"];
86
94
  result._occlusionCheck = jsonObject["occlusionCheck"];
@@ -106,6 +114,7 @@ export class ImageQA {
106
114
  "screenCapture": this.screenCapture,
107
115
  "expectedPass": this.expectedPass,
108
116
  "glaresCheckParams": this.glaresCheckParams?.toJson(),
117
+ "occlusionCheckParams": this.occlusionCheckParams?.toJson(),
109
118
  "brightnessThreshold": this.brightnessThreshold,
110
119
  "occlusionCheck": this.occlusionCheck,
111
120
  }
@@ -0,0 +1,21 @@
1
+ export class OcclusionCheckParams {
2
+ maxOcclusionPart
3
+
4
+ constructor(options) {
5
+ this.maxOcclusionPart = options?.maxOcclusionPart;
6
+ }
7
+
8
+ static fromJson(jsonObject) {
9
+ if (jsonObject == null) return null;
10
+
11
+ return new OcclusionCheckParams({
12
+ maxOcclusionPart: jsonObject["maxOcclusionPart"],
13
+ });
14
+ }
15
+
16
+ toJson() {
17
+ return {
18
+ "maxOcclusionPart": this.maxOcclusionPart,
19
+ }
20
+ }
21
+ }
@@ -526,7 +526,8 @@ export const RFIDPasswordType = {
526
526
  PUK: 4,
527
527
  PIN_ESIGN: 5,
528
528
  SAI: 6,
529
- MRZ_HASH: 7
529
+ MRZ_HASH: 7,
530
+ PIN_LOCAL: 8,
530
531
  };
531
532
 
532
533
  export const RFIDSDKProfilerType = {
@@ -558,3 +559,10 @@ export const RFIDReadingBufferSize = {
558
559
  STANDARD_LENGTH: 0,
559
560
  EXTENDED_LENGTH: -1
560
561
  };
562
+
563
+ export const RFIDAccessControl = {
564
+ DEFAULT: 0,
565
+ CHIP_ACCESS_BAC: 1,
566
+ CHIP_ACCESS_PACE: 2,
567
+ LOCAL_PIN: 3,
568
+ };
@@ -48,6 +48,8 @@ export class Application {
48
48
  }
49
49
 
50
50
  export const RFIDApplicationType = {
51
+ UNSPECIFIED: 0,
52
+ ROOT_FILES: 0,
51
53
  E_PASSPORT: 1,
52
54
  E_ID: 2,
53
55
  E_SIGN: 3,
@@ -55,5 +57,7 @@ export const RFIDApplicationType = {
55
57
  LDS2_TRAVEL_RECORDS: 5,
56
58
  LDS2_VISA_RECORDS: 6,
57
59
  LDS2_ADD_BIOMETRICS: 7,
58
- E_DTC_PC: 8
60
+ E_DTC_PC: 8,
61
+ APPLET_ROOT: 50,
62
+ USER_DEFINED: 100,
59
63
  }
@@ -209,6 +209,7 @@ import { LivenessParams } from './params/process_params/LivenessParams';
209
209
  import { AuthenticityPropertiesParams } from './params/process_params/AuthenticityPropertiesParams';
210
210
  import { ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes } from './params/process_params/ProcessParams';
211
211
  import { GlaresCheckParams } from './params/process_params/GlaresCheckParams';
212
+ import { OcclusionCheckParams } from './params/process_params/OcclusionCheckParams';
212
213
  import { FaceApiParams } from './params/process_params/FaceApiParams';
213
214
  import { RFIDParams } from './params/process_params/RFIDParams';
214
215
  import { ImageQA } from './params/process_params/ImageQA';
@@ -225,6 +226,7 @@ export {
225
226
  LogLevel,
226
227
  MrzDetectionModes,
227
228
  GlaresCheckParams,
229
+ OcclusionCheckParams,
228
230
  FaceApiParams,
229
231
  RFIDParams,
230
232
  ImageQA,
@@ -271,7 +273,7 @@ export {
271
273
  import { EPassportDataGroups } from './params/rfid_scenario/EPassportDataGroups';
272
274
  import { EIDDataGroups } from './params/rfid_scenario/EIDDataGroups';
273
275
  import { DTCDataGroup } from './params/rfid_scenario/DTCDataGroup';
274
- import { RFIDScenario, RFIDAuthenticationProcedureType, RFIDPasswordType, RFIDSDKProfilerType, RFIDTerminalType, SignManagementAction, RFIDReadingBufferSize } from './params/rfid_scenario/RFIDScenario';
276
+ import { RFIDScenario, RFIDAuthenticationProcedureType, RFIDPasswordType, RFIDAccessControl, RFIDSDKProfilerType, RFIDTerminalType, SignManagementAction, RFIDReadingBufferSize } from './params/rfid_scenario/RFIDScenario';
275
277
  import { EDLDataGroups } from './params/rfid_scenario/EDLDataGroups';
276
278
  export {
277
279
  EPassportDataGroups,
@@ -280,6 +282,7 @@ export {
280
282
  RFIDScenario,
281
283
  RFIDAuthenticationProcedureType,
282
284
  RFIDPasswordType,
285
+ RFIDAccessControl,
283
286
  RFIDSDKProfilerType,
284
287
  RFIDTerminalType,
285
288
  SignManagementAction,
@@ -1,4 +1,5 @@
1
1
  import { GlaresCheckParams } from "./GlaresCheckParams";
2
+ import { OcclusionCheckParams } from "./OcclusionCheckParams";
2
3
  import { ImageQualityCheckType } from "../../results/image_quality/ImageQualityCheckType";
3
4
 
4
5
  /**
@@ -34,6 +35,11 @@ export declare class ImageQA {
34
35
  */
35
36
  glaresCheckParams?: GlaresCheckParams;
36
37
 
38
+ /**
39
+ * Parameters for occlusion image quality validation.
40
+ */
41
+ occlusionCheckParams?: OcclusionCheckParams;
42
+
37
43
  /**
38
44
  * This option disabled colorness check during performing image quality validation.
39
45
  */
@@ -0,0 +1,16 @@
1
+ export declare class OcclusionCheckParams {
2
+ /** The maximum size for the occluded area of a document; only those exceeding this size will be validated. */
3
+ readonly maxOcclusionPart?: number;
4
+
5
+ constructor(
6
+ options?: {
7
+ maxOcclusionPart?: number,
8
+ }
9
+ );
10
+
11
+ /**
12
+ * Allows you to deserialize object.
13
+ * @param jsonObject
14
+ */
15
+ static fromJson(jsonObject: any): OcclusionCheckParams;
16
+ }
@@ -116,6 +116,8 @@ export declare enum RFIDPasswordType {
116
116
  SAI = 6,
117
117
  /** MRZHash. */
118
118
  MRZ_HASH = 7,
119
+ /** PinLocal. */
120
+ PIN_LOCAL = 8,
119
121
  }
120
122
 
121
123
  export declare enum RFIDSDKProfilerType {
@@ -165,3 +167,10 @@ export declare enum RFIDReadingBufferSize {
165
167
  /** Extended length. */
166
168
  EXTENDED_LENGTH = -1,
167
169
  }
170
+
171
+ export declare enum RFIDAccessControl {
172
+ DEFAULT = 0,
173
+ CHIP_ACCESS_BAC = 1,
174
+ CHIP_ACCESS_PACE = 2,
175
+ LOCAL_PIN = 3,
176
+ }
@@ -28,6 +28,8 @@ export declare class Application {
28
28
 
29
29
  /** Type of application of electronic document. */
30
30
  export declare enum RFIDApplicationType {
31
+ UNSPECIFIED = 0,
32
+ ROOT_FILES = 0,
31
33
  /** ePassport. */
32
34
  E_PASSPORT = 1,
33
35
  E_ID = 2,
@@ -40,5 +42,7 @@ export declare enum RFIDApplicationType {
40
42
  /** Add Biometrics. */
41
43
  LDS2_ADD_BIOMETRICS = 7,
42
44
  /** eDTC PC. */
43
- E_DTC_PC = 8
45
+ E_DTC_PC = 8,
46
+ APPLET_ROOT = 50,
47
+ USER_DEFINED = 100,
44
48
  }