@regulaforensics/document-reader 9.2.624-rc → 9.2.631-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 (38) hide show
  1. package/RNDocumentReader.podspec +2 -2
  2. package/android/build.gradle +1 -1
  3. package/android/cordova.gradle +1 -1
  4. package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +38 -9
  5. package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +13 -0
  6. package/examples/capacitor/package-lock.json +3 -3
  7. package/examples/capacitor/package.json +1 -1
  8. package/examples/ionic/package-lock.json +180 -170
  9. package/examples/ionic/package.json +1 -1
  10. package/examples/react_native/package-lock.json +6 -6
  11. package/examples/react_native/package.json +1 -1
  12. package/ios/RGLWConfig.m +30 -18
  13. package/ios/RGLWJSONConstructor.h +2 -0
  14. package/ios/RGLWJSONConstructor.m +18 -0
  15. package/package.json +1 -1
  16. package/plugin.xml +2 -2
  17. package/test/json.tsx +22 -3
  18. package/test/package-lock.json +1 -1
  19. package/test/test.tsx +3 -2
  20. package/www/capacitor/index.js +3 -2
  21. package/www/capacitor/params/customization/CustomizationColors.js +80 -0
  22. package/www/capacitor/params/customization/CustomizationFonts.js +50 -2
  23. package/www/capacitor/params/customization/CustomizationImages.js +18 -2
  24. package/www/capacitor/params/process_params/Bsi.js +23 -0
  25. package/www/capacitor/params/process_params/ProcessParams.js +9 -17
  26. package/www/cordova.js +293 -118
  27. package/www/react-native/index.js +3 -2
  28. package/www/react-native/params/customization/CustomizationColors.js +80 -0
  29. package/www/react-native/params/customization/CustomizationFonts.js +50 -2
  30. package/www/react-native/params/customization/CustomizationImages.js +18 -2
  31. package/www/react-native/params/process_params/Bsi.js +23 -0
  32. package/www/react-native/params/process_params/ProcessParams.js +9 -17
  33. package/www/types/index.d.ts +3 -2
  34. package/www/types/params/customization/CustomizationColors.d.ts +14 -0
  35. package/www/types/params/customization/CustomizationFonts.d.ts +9 -0
  36. package/www/types/params/customization/CustomizationImages.d.ts +5 -7
  37. package/www/types/params/process_params/Bsi.d.ts +3 -0
  38. package/www/types/params/process_params/ProcessParams.d.ts +2 -6
@@ -4,6 +4,7 @@ import { ImageQA } from './ImageQA';
4
4
  import { RFIDParams } from './RFIDParams';
5
5
  import { FaceApiParams } from './FaceApiParams';
6
6
  import { BackendProcessingConfig } from './BackendProcessingConfig';
7
+ import { Bsi } from './Bsi';
7
8
  import { AuthenticityParams } from './AuthenticityParams';
8
9
 
9
10
  export class ProcessParams {
@@ -253,12 +254,6 @@ export class ProcessParams {
253
254
  this._set({ "checkCaptureProcessIntegrity": val });
254
255
  }
255
256
 
256
- get bsiTr03135() { return this._bsiTr03135; }
257
- set bsiTr03135(val) {
258
- this._bsiTr03135 = val;
259
- this._set({ "bsiTr03135": {"generateResult": val?.generateResult} });
260
- }
261
-
262
257
  get barcodeParserType() { return this._barcodeParserType; }
263
258
  set barcodeParserType(val) {
264
259
  this._barcodeParserType = val;
@@ -479,6 +474,12 @@ export class ProcessParams {
479
474
  this._set({ "backendProcessingConfig": val });
480
475
  }
481
476
 
477
+ get bsiTr03135() { return this._bsiTr03135; }
478
+ set bsiTr03135(val) {
479
+ this._bsiTr03135 = val;
480
+ this._set({ "bsiTr03135": val });
481
+ }
482
+
482
483
  _authenticityParams = new AuthenticityParams();
483
484
  get authenticityParams() { return this._authenticityParams; }
484
485
  set authenticityParams(val) { (this._authenticityParams = val)._apply(); }
@@ -534,8 +535,6 @@ export class ProcessParams {
534
535
  result._strictSecurityChecks = jsonObject["strictSecurityChecks"];
535
536
  result._returnTransliteratedFields = jsonObject["returnTransliteratedFields"];
536
537
  result._checkCaptureProcessIntegrity = jsonObject["checkCaptureProcessIntegrity"];
537
- if(jsonObject["bsiTr03135"] != null)
538
- result.bsiTr03135 = new Bsi({generateResult: jsonObject["bsiTr03135"]["generateResult"]});
539
538
  result._barcodeParserType = jsonObject["barcodeParserType"];
540
539
  result._perspectiveAngle = jsonObject["perspectiveAngle"];
541
540
  result._minDPI = jsonObject["minDPI"];
@@ -573,6 +572,7 @@ export class ProcessParams {
573
572
  result._rfidParams = RFIDParams.fromJson(jsonObject["rfidParams"]);
574
573
  result._faceApiParams = FaceApiParams.fromJson(jsonObject["faceApiParams"]);
575
574
  result._backendProcessingConfig = BackendProcessingConfig.fromJson(jsonObject["backendProcessingConfig"]);
575
+ result._bsiTr03135 = Bsi.fromJson(jsonObject["bsiTr03135"]);
576
576
  result._authenticityParams = AuthenticityParams.fromJson(jsonObject["authenticityParams"]);
577
577
  result._customParams = jsonObject["customParams"];
578
578
 
@@ -621,7 +621,6 @@ export class ProcessParams {
621
621
  "strictSecurityChecks": this.strictSecurityChecks,
622
622
  "returnTransliteratedFields": this.returnTransliteratedFields,
623
623
  "checkCaptureProcessIntegrity": this.checkCaptureProcessIntegrity,
624
- "bsiTr03135": {"generateResult": this.bsiTr03135?.generateResult},
625
624
  "measureSystem": this.measureSystem,
626
625
  "barcodeParserType": this.barcodeParserType,
627
626
  "perspectiveAngle": this.perspectiveAngle,
@@ -659,6 +658,7 @@ export class ProcessParams {
659
658
  "rfidParams": this.rfidParams?.toJson(),
660
659
  "faceApiParams": this.faceApiParams?.toJson(),
661
660
  "backendProcessingConfig": this.backendProcessingConfig?.toJson(),
661
+ "bsiTr03135": this.bsiTr03135?.toJson(),
662
662
  "authenticityParams": this.authenticityParams?.toJson(),
663
663
  "customParams": this.customParams,
664
664
  }
@@ -698,11 +698,3 @@ export const MrzDetectionModes = {
698
698
  RESIZE_BINARIZE_WINDOW: 1,
699
699
  BLUR_BEFORE_BINARIZATION: 2
700
700
  };
701
-
702
- export class Bsi {
703
- generateResult
704
-
705
- constructor(options) {
706
- this.generateResult = options?.generateResult;
707
- }
708
- }