@regulaforensics/document-reader 8.3.310-beta → 8.4.2-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.
Files changed (62) hide show
  1. package/README.md +1 -1
  2. package/RNDocumentReader.podspec +2 -2
  3. package/android/build.gradle +2 -2
  4. package/android/cordova.gradle +2 -2
  5. package/android/src/main/java/com/regula/plugin/documentreader/BluetoothUtil.kt +9 -5
  6. package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +20 -0
  7. package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +3 -0
  8. package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +8 -5
  9. package/examples/capacitor/index.tsx +5 -5
  10. package/examples/capacitor/package-lock.json +372 -335
  11. package/examples/capacitor/package.json +3 -3
  12. package/examples/ionic/index.tsx +6 -2
  13. package/examples/ionic/package-lock.json +519 -814
  14. package/examples/ionic/package.json +3 -3
  15. package/examples/react_native/index.html +5 -4
  16. package/examples/react_native/package-lock.json +984 -818
  17. package/examples/react_native/package.json +3 -3
  18. package/ios/RGLWConfig.m +10 -9
  19. package/ios/RGLWJSONConstructor.m +3 -0
  20. package/ios/RGLWMain.h +2 -2
  21. package/ios/RGLWMain.m +2 -2
  22. package/ios/RNDocumentReader.m +2 -2
  23. package/package.json +1 -1
  24. package/plugin.xml +2 -2
  25. package/test/json.tsx +44 -31
  26. package/test/package-lock.json +1 -1
  27. package/test/test.tsx +1 -1
  28. package/www/capacitor/config/InitConfig.js +3 -0
  29. package/www/capacitor/index.js +0 -1
  30. package/www/capacitor/info/DocReaderException.js +2 -0
  31. package/www/capacitor/params/Functionality.js +8 -0
  32. package/www/capacitor/params/customization/CustomizationColors.js +32 -0
  33. package/www/capacitor/params/customization/CustomizationFonts.js +24 -0
  34. package/www/capacitor/params/customization/CustomizationImages.js +8 -0
  35. package/www/capacitor/params/process_params/AuthenticityParams.js +1 -0
  36. package/www/capacitor/params/process_params/LivenessParams.js +2 -2
  37. package/www/capacitor/params/process_params/ProcessParams.js +10 -0
  38. package/www/capacitor/results/authenticity/CheckDiagnose.js +2 -0
  39. package/www/capacitor/results/authenticity/SecurityFeatureType.js +3 -1
  40. package/www/cordova.js +95 -4
  41. package/www/react-native/config/InitConfig.js +3 -0
  42. package/www/react-native/index.js +0 -1
  43. package/www/react-native/info/DocReaderException.js +2 -0
  44. package/www/react-native/params/Functionality.js +8 -0
  45. package/www/react-native/params/customization/CustomizationColors.js +32 -0
  46. package/www/react-native/params/customization/CustomizationFonts.js +24 -0
  47. package/www/react-native/params/customization/CustomizationImages.js +8 -0
  48. package/www/react-native/params/process_params/AuthenticityParams.js +1 -0
  49. package/www/react-native/params/process_params/LivenessParams.js +2 -2
  50. package/www/react-native/params/process_params/ProcessParams.js +10 -0
  51. package/www/react-native/results/authenticity/CheckDiagnose.js +2 -0
  52. package/www/react-native/results/authenticity/SecurityFeatureType.js +3 -1
  53. package/www/types/config/InitConfig.d.ts +5 -0
  54. package/www/types/index.d.ts +2 -2
  55. package/www/types/info/DocReaderException.d.ts +4 -0
  56. package/www/types/params/Functionality.d.ts +6 -0
  57. package/www/types/params/customization/CustomizationColors.d.ts +16 -8
  58. package/www/types/params/customization/CustomizationFonts.d.ts +6 -0
  59. package/www/types/params/customization/CustomizationImages.d.ts +6 -1
  60. package/www/types/params/process_params/ProcessParams.d.ts +5 -0
  61. package/www/types/results/authenticity/CheckDiagnose.d.ts +4 -0
  62. package/www/types/results/authenticity/SecurityFeatureType.d.ts +4 -0
@@ -241,6 +241,12 @@ export class ProcessParams {
241
241
  this._set({ "strictSecurityChecks": val });
242
242
  }
243
243
 
244
+ get returnTransliteratedFields() { return this._returnTransliteratedFields; }
245
+ set returnTransliteratedFields(val) {
246
+ this._returnTransliteratedFields = val;
247
+ this._set({ "returnTransliteratedFields": val });
248
+ }
249
+
244
250
  get barcodeParserType() { return this._barcodeParserType; }
245
251
  set barcodeParserType(val) {
246
252
  this._barcodeParserType = val;
@@ -433,6 +439,7 @@ export class ProcessParams {
433
439
  this._set({ "lcidFilter": val });
434
440
  }
435
441
 
442
+ _imageQA = new ImageQA();
436
443
  get imageQA() { return this._imageQA; }
437
444
  set imageQA(val) { (this._imageQA = val)._apply(); }
438
445
 
@@ -454,6 +461,7 @@ export class ProcessParams {
454
461
  this._set({ "backendProcessingConfig": val });
455
462
  }
456
463
 
464
+ _authenticityParams = new AuthenticityParams();
457
465
  get authenticityParams() { return this._authenticityParams; }
458
466
  set authenticityParams(val) { (this._authenticityParams = val)._apply(); }
459
467
 
@@ -506,6 +514,7 @@ export class ProcessParams {
506
514
  result._generateAlpha2Codes = jsonObject["generateAlpha2Codes"];
507
515
  result._disableAuthResolutionFilter = jsonObject["disableAuthResolutionFilter"];
508
516
  result._strictSecurityChecks = jsonObject["strictSecurityChecks"];
517
+ result._returnTransliteratedFields = jsonObject["returnTransliteratedFields"];
509
518
  result._barcodeParserType = jsonObject["barcodeParserType"];
510
519
  result._perspectiveAngle = jsonObject["perspectiveAngle"];
511
520
  result._minDPI = jsonObject["minDPI"];
@@ -588,6 +597,7 @@ export class ProcessParams {
588
597
  "generateAlpha2Codes": this.generateAlpha2Codes,
589
598
  "disableAuthResolutionFilter": this.disableAuthResolutionFilter,
590
599
  "strictSecurityChecks": this.strictSecurityChecks,
600
+ "returnTransliteratedFields": this.returnTransliteratedFields,
591
601
  "measureSystem": this.measureSystem,
592
602
  "barcodeParserType": this.barcodeParserType,
593
603
  "perspectiveAngle": this.perspectiveAngle,
@@ -46,6 +46,8 @@ export const CheckDiagnose = {
46
46
  FIELD_POS_CORRECTOR_FACE_PRESENCE_CHECK_ERROR: 84,
47
47
  FIELD_POS_CORRECTOR_FACE_ABSENCE_CHECK_ERROR: 85,
48
48
  CHD_FIELD_POS_CORRECTOR_INCORRECT_HEAD_POSITION: 86,
49
+ CHD_FIELD_POS_CORRECTOR_AGE_CHECK_ERROR: 87,
50
+ CHD_FIELD_POS_CORRECTOR_SEX_CHECK_ERROR: 88,
49
51
  OVI_IR_INVISIBLE: 90,
50
52
  OVI_INSUFFICIENT_AREA: 91,
51
53
  OVI_COLOR_INVARIABLE: 92,
@@ -55,5 +55,7 @@ export const SecurityFeatureType = {
55
55
  HEAD_POSITION_CHECK: 52,
56
56
  LIVENESS_BLACK_AND_WHITE_COPY_CHECK: 53,
57
57
  LIVENESS_DYNAPRINT: 54,
58
- LIVENESS_GEOMETRY_CHECK: 55
58
+ LIVENESS_GEOMETRY_CHECK: 55,
59
+ AGE_CHECK: 56,
60
+ SEX_CHECK: 57,
59
61
  }
package/www/cordova.js CHANGED
@@ -15,6 +15,7 @@ __webpack_require__.r(__webpack_exports__);
15
15
  class InitConfig {
16
16
  license
17
17
  licenseUpdate
18
+ licenseUpdateTimeout
18
19
  delayedNNLoad
19
20
  databasePath
20
21
  customDb
@@ -44,6 +45,7 @@ class InitConfig {
44
45
  result.customDb = jsonObject["customDb"];
45
46
  result.delayedNNLoad = jsonObject["delayedNNLoad"];
46
47
  result.licenseUpdate = jsonObject["licenseUpdate"];
48
+ result.licenseUpdateTimeout = jsonObject["licenseUpdateTimeout"];
47
49
  result.blackList = jsonObject["blackList"];
48
50
  result.databasePath = jsonObject["databasePath"];
49
51
  result.useBleDevice = jsonObject["useBleDevice"];
@@ -57,6 +59,7 @@ class InitConfig {
57
59
  "license": this.license,
58
60
  "delayedNNLoad": this.delayedNNLoad,
59
61
  "licenseUpdate": this.licenseUpdate,
62
+ "licenseUpdateTimeout": this.licenseUpdateTimeout,
60
63
  "blackList": this.blackList,
61
64
  "customDb": this.customDb,
62
65
  "databasePath": this.databasePath,
@@ -906,7 +909,6 @@ class DocumentReader {
906
909
  }
907
910
 
908
911
  async connectBluetoothDevice(deviceName) {
909
- this.functionality.btDeviceName = deviceName;
910
912
  return await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("connectBluetoothDevice", [deviceName]);
911
913
  }
912
914
 
@@ -1218,6 +1220,8 @@ const ErrorCodes = {
1218
1220
  CANNOT_USE_CAMERA_IN_SCENARIO: 40,
1219
1221
  BACKEND_ONLINE_PROCESSING: 303,
1220
1222
  WRONG_INPUT: 400,
1223
+ RESULT_UNAVAILABLE: 410,
1224
+ RESULT_WRONG_OUTPUT: 411,
1221
1225
  STATE_EXCEPTION: 500,
1222
1226
  BLE_EXCEPTION: 600,
1223
1227
  FEATURE_BLUETOOTH_LE_NOT_SUPPORTED: 601,
@@ -1852,6 +1856,12 @@ class Functionality {
1852
1856
  this._set({ "torchTurnedOn": val });
1853
1857
  }
1854
1858
 
1859
+ get preventScreenRecording() { return this._preventScreenRecording; }
1860
+ set preventScreenRecording(val) {
1861
+ this._preventScreenRecording = val;
1862
+ this._set({ "preventScreenRecording": val });
1863
+ }
1864
+
1855
1865
  get showCaptureButtonDelayFromDetect() { return this._showCaptureButtonDelayFromDetect; }
1856
1866
  set showCaptureButtonDelayFromDetect(val) {
1857
1867
  this._showCaptureButtonDelayFromDetect = val;
@@ -1969,6 +1979,7 @@ class Functionality {
1969
1979
  result._manualMultipageMode = jsonObject["manualMultipageMode"];
1970
1980
  result._singleResult = jsonObject["singleResult"];
1971
1981
  result._torchTurnedOn = jsonObject["torchTurnedOn"];
1982
+ result._preventScreenRecording = jsonObject["preventScreenRecording"];
1972
1983
  result._showCaptureButtonDelayFromDetect = jsonObject["showCaptureButtonDelayFromDetect"];
1973
1984
  result._showCaptureButtonDelayFromStart = jsonObject["showCaptureButtonDelayFromStart"];
1974
1985
  result._rfidTimeout = jsonObject["rfidTimeout"];
@@ -2008,6 +2019,7 @@ class Functionality {
2008
2019
  "manualMultipageMode": this.manualMultipageMode,
2009
2020
  "singleResult": this.singleResult,
2010
2021
  "torchTurnedOn": this.torchTurnedOn,
2022
+ "preventScreenRecording": this.preventScreenRecording,
2011
2023
  "showCaptureButtonDelayFromDetect": this.showCaptureButtonDelayFromDetect,
2012
2024
  "showCaptureButtonDelayFromStart": this.showCaptureButtonDelayFromStart,
2013
2025
  "rfidTimeout": this.rfidTimeout,
@@ -2823,6 +2835,30 @@ class CustomizationColors {
2823
2835
  this._set({ "rfidProcessingScreenLoadingBar": val });
2824
2836
  }
2825
2837
 
2838
+ get rfidEnableNfcTitleText() { return this._rfidEnableNfcTitleText; }
2839
+ set rfidEnableNfcTitleText(val) {
2840
+ this._rfidEnableNfcTitleText = val;
2841
+ this._set({ "rfidEnableNfcTitleText": val });
2842
+ }
2843
+
2844
+ get rfidEnableNfcDescriptionText() { return this._rfidEnableNfcDescriptionText; }
2845
+ set rfidEnableNfcDescriptionText(val) {
2846
+ this._rfidEnableNfcDescriptionText = val;
2847
+ this._set({ "rfidEnableNfcDescriptionText": val });
2848
+ }
2849
+
2850
+ get rfidEnableNfcButtonText() { return this._rfidEnableNfcButtonText; }
2851
+ set rfidEnableNfcButtonText(val) {
2852
+ this._rfidEnableNfcButtonText = val;
2853
+ this._set({ "rfidEnableNfcButtonText": val });
2854
+ }
2855
+
2856
+ get rfidEnableNfcButtonBackground() { return this._rfidEnableNfcButtonBackground; }
2857
+ set rfidEnableNfcButtonBackground(val) {
2858
+ this._rfidEnableNfcButtonBackground = val;
2859
+ this._set({ "rfidEnableNfcButtonBackground": val });
2860
+ }
2861
+
2826
2862
  static fromJson(jsonObject) {
2827
2863
  if (jsonObject == null) return null;
2828
2864
 
@@ -2835,6 +2871,10 @@ class CustomizationColors {
2835
2871
  result._rfidProcessingScreenProgressBarBackground = jsonObject["rfidProcessingScreenProgressBarBackground"];
2836
2872
  result._rfidProcessingScreenResultLabelText = jsonObject["rfidProcessingScreenResultLabelText"];
2837
2873
  result._rfidProcessingScreenLoadingBar = jsonObject["rfidProcessingScreenLoadingBar"];
2874
+ result._rfidEnableNfcTitleText = jsonObject["rfidEnableNfcTitleText"];
2875
+ result._rfidEnableNfcDescriptionText = jsonObject["rfidEnableNfcDescriptionText"];
2876
+ result._rfidEnableNfcButtonText = jsonObject["rfidEnableNfcButtonText"];
2877
+ result._rfidEnableNfcButtonBackground = jsonObject["rfidEnableNfcButtonBackground"];
2838
2878
 
2839
2879
  return result;
2840
2880
  }
@@ -2856,6 +2896,10 @@ class CustomizationColors {
2856
2896
  "rfidProcessingScreenProgressBarBackground": this.rfidProcessingScreenProgressBarBackground,
2857
2897
  "rfidProcessingScreenResultLabelText": this.rfidProcessingScreenResultLabelText,
2858
2898
  "rfidProcessingScreenLoadingBar": this.rfidProcessingScreenLoadingBar,
2899
+ "rfidEnableNfcTitleText": this.rfidEnableNfcTitleText,
2900
+ "rfidEnableNfcDescriptionText": this.rfidEnableNfcDescriptionText,
2901
+ "rfidEnableNfcButtonText": this.rfidEnableNfcButtonText,
2902
+ "rfidEnableNfcButtonBackground": this.rfidEnableNfcButtonBackground,
2859
2903
  }
2860
2904
  }
2861
2905
  }
@@ -2897,6 +2941,24 @@ class CustomizationFonts {
2897
2941
  this._set({ "rfidProcessingScreenResultLabel": val });
2898
2942
  }
2899
2943
 
2944
+ get rfidEnableNfcTitleText() { return this._rfidEnableNfcTitleText; }
2945
+ set rfidEnableNfcTitleText(val) {
2946
+ this._rfidEnableNfcTitleText = val;
2947
+ this._set({ "rfidEnableNfcTitleText": val });
2948
+ }
2949
+
2950
+ get rfidEnableNfcDescriptionText() { return this._rfidEnableNfcDescriptionText; }
2951
+ set rfidEnableNfcDescriptionText(val) {
2952
+ this._rfidEnableNfcDescriptionText = val;
2953
+ this._set({ "rfidEnableNfcDescriptionText": val });
2954
+ }
2955
+
2956
+ get rfidEnableNfcButtonText() { return this._rfidEnableNfcButtonText; }
2957
+ set rfidEnableNfcButtonText(val) {
2958
+ this._rfidEnableNfcButtonText = val;
2959
+ this._set({ "rfidEnableNfcButtonText": val });
2960
+ }
2961
+
2900
2962
  static fromJson(jsonObject) {
2901
2963
  if (jsonObject == null) return null;
2902
2964
 
@@ -2904,6 +2966,9 @@ class CustomizationFonts {
2904
2966
  result._rfidProcessingScreenHintLabel = _Font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["rfidProcessingScreenHintLabel"]);
2905
2967
  result._rfidProcessingScreenProgressLabel = _Font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["rfidProcessingScreenProgressLabel"]);
2906
2968
  result._rfidProcessingScreenResultLabel = _Font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["rfidProcessingScreenResultLabel"]);
2969
+ result._rfidEnableNfcTitleText = _Font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["rfidEnableNfcTitleText"]);
2970
+ result._rfidEnableNfcDescriptionText = _Font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["rfidEnableNfcDescriptionText"]);
2971
+ result._rfidEnableNfcButtonText = _Font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["rfidEnableNfcButtonText"]);
2907
2972
 
2908
2973
  return result;
2909
2974
  }
@@ -2920,6 +2985,9 @@ class CustomizationFonts {
2920
2985
  "rfidProcessingScreenHintLabel": this.rfidProcessingScreenHintLabel?.toJson(),
2921
2986
  "rfidProcessingScreenProgressLabel": this.rfidProcessingScreenProgressLabel?.toJson(),
2922
2987
  "rfidProcessingScreenResultLabel": this.rfidProcessingScreenResultLabel?.toJson(),
2988
+ "rfidEnableNfcTitleText": this.rfidEnableNfcTitleText?.toJson(),
2989
+ "rfidEnableNfcDescriptionText": this.rfidEnableNfcDescriptionText?.toJson(),
2990
+ "rfidEnableNfcButtonText": this.rfidEnableNfcButtonText?.toJson(),
2923
2991
  }
2924
2992
  }
2925
2993
  }
@@ -2947,11 +3015,18 @@ class CustomizationImages {
2947
3015
  this._set({ "rfidProcessingScreenFailureImage": val });
2948
3016
  }
2949
3017
 
3018
+ get rfidEnableNfcImage() { return this._rfidEnableNfcImage; }
3019
+ set rfidEnableNfcImage(val) {
3020
+ this._rfidEnableNfcImage = val;
3021
+ this._set({ "rfidEnableNfcImage": val });
3022
+ }
3023
+
2950
3024
  static fromJson(jsonObject) {
2951
3025
  if (jsonObject == null) return null;
2952
3026
 
2953
3027
  const result = new CustomizationImages();
2954
3028
  result._rfidProcessingScreenFailureImage = jsonObject["rfidProcessingScreenFailureImage"];
3029
+ result._rfidEnableNfcImage = jsonObject["rfidEnableNfcImage"];
2955
3030
 
2956
3031
  return result;
2957
3032
  }
@@ -2966,6 +3041,7 @@ class CustomizationImages {
2966
3041
  toJson() {
2967
3042
  return {
2968
3043
  "rfidProcessingScreenFailureImage": this.rfidProcessingScreenFailureImage,
3044
+ "rfidEnableNfcImage": this.rfidEnableNfcImage,
2969
3045
  }
2970
3046
  }
2971
3047
  }
@@ -3046,6 +3122,7 @@ class AuthenticityParams {
3046
3122
  this._set({ "useLivenessCheck": val });
3047
3123
  }
3048
3124
 
3125
+ _livenessParams = new _LivenessParams__WEBPACK_IMPORTED_MODULE_1__.LivenessParams();
3049
3126
  get livenessParams() { return this._livenessParams; }
3050
3127
  set livenessParams(val) { (this._livenessParams = val)._apply(); }
3051
3128
 
@@ -3574,7 +3651,7 @@ class LivenessParams {
3574
3651
 
3575
3652
  static fromJson(jsonObject) {
3576
3653
  if (jsonObject == null) return new LivenessParams();
3577
-
3654
+
3578
3655
  const result = new LivenessParams();
3579
3656
  result._checkOVI = jsonObject["checkOVI"];
3580
3657
  result._checkMLI = jsonObject["checkMLI"];
@@ -3583,7 +3660,7 @@ class LivenessParams {
3583
3660
  result._checkBlackAndWhiteCopy = jsonObject["checkBlackAndWhiteCopy"];
3584
3661
  result._checkDynaprint = jsonObject["checkDynaprint"];
3585
3662
  result._checkGeometry = jsonObject["checkGeometry"];
3586
-
3663
+
3587
3664
  return result;
3588
3665
  }
3589
3666
 
@@ -3874,6 +3951,12 @@ class ProcessParams {
3874
3951
  this._set({ "strictSecurityChecks": val });
3875
3952
  }
3876
3953
 
3954
+ get returnTransliteratedFields() { return this._returnTransliteratedFields; }
3955
+ set returnTransliteratedFields(val) {
3956
+ this._returnTransliteratedFields = val;
3957
+ this._set({ "returnTransliteratedFields": val });
3958
+ }
3959
+
3877
3960
  get barcodeParserType() { return this._barcodeParserType; }
3878
3961
  set barcodeParserType(val) {
3879
3962
  this._barcodeParserType = val;
@@ -4066,6 +4149,7 @@ class ProcessParams {
4066
4149
  this._set({ "lcidFilter": val });
4067
4150
  }
4068
4151
 
4152
+ _imageQA = new _ImageQA__WEBPACK_IMPORTED_MODULE_2__.ImageQA();
4069
4153
  get imageQA() { return this._imageQA; }
4070
4154
  set imageQA(val) { (this._imageQA = val)._apply(); }
4071
4155
 
@@ -4087,6 +4171,7 @@ class ProcessParams {
4087
4171
  this._set({ "backendProcessingConfig": val });
4088
4172
  }
4089
4173
 
4174
+ _authenticityParams = new _AuthenticityParams__WEBPACK_IMPORTED_MODULE_6__.AuthenticityParams();
4090
4175
  get authenticityParams() { return this._authenticityParams; }
4091
4176
  set authenticityParams(val) { (this._authenticityParams = val)._apply(); }
4092
4177
 
@@ -4139,6 +4224,7 @@ class ProcessParams {
4139
4224
  result._generateAlpha2Codes = jsonObject["generateAlpha2Codes"];
4140
4225
  result._disableAuthResolutionFilter = jsonObject["disableAuthResolutionFilter"];
4141
4226
  result._strictSecurityChecks = jsonObject["strictSecurityChecks"];
4227
+ result._returnTransliteratedFields = jsonObject["returnTransliteratedFields"];
4142
4228
  result._barcodeParserType = jsonObject["barcodeParserType"];
4143
4229
  result._perspectiveAngle = jsonObject["perspectiveAngle"];
4144
4230
  result._minDPI = jsonObject["minDPI"];
@@ -4221,6 +4307,7 @@ class ProcessParams {
4221
4307
  "generateAlpha2Codes": this.generateAlpha2Codes,
4222
4308
  "disableAuthResolutionFilter": this.disableAuthResolutionFilter,
4223
4309
  "strictSecurityChecks": this.strictSecurityChecks,
4310
+ "returnTransliteratedFields": this.returnTransliteratedFields,
4224
4311
  "measureSystem": this.measureSystem,
4225
4312
  "barcodeParserType": this.barcodeParserType,
4226
4313
  "perspectiveAngle": this.perspectiveAngle,
@@ -6618,6 +6705,8 @@ const CheckDiagnose = {
6618
6705
  FIELD_POS_CORRECTOR_FACE_PRESENCE_CHECK_ERROR: 84,
6619
6706
  FIELD_POS_CORRECTOR_FACE_ABSENCE_CHECK_ERROR: 85,
6620
6707
  CHD_FIELD_POS_CORRECTOR_INCORRECT_HEAD_POSITION: 86,
6708
+ CHD_FIELD_POS_CORRECTOR_AGE_CHECK_ERROR: 87,
6709
+ CHD_FIELD_POS_CORRECTOR_SEX_CHECK_ERROR: 88,
6621
6710
  OVI_IR_INVISIBLE: 90,
6622
6711
  OVI_INSUFFICIENT_AREA: 91,
6623
6712
  OVI_COLOR_INVARIABLE: 92,
@@ -6766,7 +6855,9 @@ const SecurityFeatureType = {
6766
6855
  HEAD_POSITION_CHECK: 52,
6767
6856
  LIVENESS_BLACK_AND_WHITE_COPY_CHECK: 53,
6768
6857
  LIVENESS_DYNAPRINT: 54,
6769
- LIVENESS_GEOMETRY_CHECK: 55
6858
+ LIVENESS_GEOMETRY_CHECK: 55,
6859
+ AGE_CHECK: 56,
6860
+ SEX_CHECK: 57,
6770
6861
  }
6771
6862
 
6772
6863
 
@@ -1,6 +1,7 @@
1
1
  export class InitConfig {
2
2
  license
3
3
  licenseUpdate
4
+ licenseUpdateTimeout
4
5
  delayedNNLoad
5
6
  databasePath
6
7
  customDb
@@ -30,6 +31,7 @@ export class InitConfig {
30
31
  result.customDb = jsonObject["customDb"];
31
32
  result.delayedNNLoad = jsonObject["delayedNNLoad"];
32
33
  result.licenseUpdate = jsonObject["licenseUpdate"];
34
+ result.licenseUpdateTimeout = jsonObject["licenseUpdateTimeout"];
33
35
  result.blackList = jsonObject["blackList"];
34
36
  result.databasePath = jsonObject["databasePath"];
35
37
  result.useBleDevice = jsonObject["useBleDevice"];
@@ -43,6 +45,7 @@ export class InitConfig {
43
45
  "license": this.license,
44
46
  "delayedNNLoad": this.delayedNNLoad,
45
47
  "licenseUpdate": this.licenseUpdate,
48
+ "licenseUpdateTimeout": this.licenseUpdateTimeout,
46
49
  "blackList": this.blackList,
47
50
  "customDb": this.customDb,
48
51
  "databasePath": this.databasePath,
@@ -260,7 +260,6 @@ export class DocumentReader {
260
260
  }
261
261
 
262
262
  async connectBluetoothDevice(deviceName) {
263
- this.functionality.btDeviceName = deviceName;
264
263
  return await exec("connectBluetoothDevice", [deviceName]);
265
264
  }
266
265
 
@@ -55,6 +55,8 @@ export const ErrorCodes = {
55
55
  CANNOT_USE_CAMERA_IN_SCENARIO: 40,
56
56
  BACKEND_ONLINE_PROCESSING: 303,
57
57
  WRONG_INPUT: 400,
58
+ RESULT_UNAVAILABLE: 410,
59
+ RESULT_WRONG_OUTPUT: 411,
58
60
  STATE_EXCEPTION: 500,
59
61
  BLE_EXCEPTION: 600,
60
62
  FEATURE_BLUETOOTH_LE_NOT_SUPPORTED: 601,
@@ -105,6 +105,12 @@ export class Functionality {
105
105
  this._set({ "torchTurnedOn": val });
106
106
  }
107
107
 
108
+ get preventScreenRecording() { return this._preventScreenRecording; }
109
+ set preventScreenRecording(val) {
110
+ this._preventScreenRecording = val;
111
+ this._set({ "preventScreenRecording": val });
112
+ }
113
+
108
114
  get showCaptureButtonDelayFromDetect() { return this._showCaptureButtonDelayFromDetect; }
109
115
  set showCaptureButtonDelayFromDetect(val) {
110
116
  this._showCaptureButtonDelayFromDetect = val;
@@ -222,6 +228,7 @@ export class Functionality {
222
228
  result._manualMultipageMode = jsonObject["manualMultipageMode"];
223
229
  result._singleResult = jsonObject["singleResult"];
224
230
  result._torchTurnedOn = jsonObject["torchTurnedOn"];
231
+ result._preventScreenRecording = jsonObject["preventScreenRecording"];
225
232
  result._showCaptureButtonDelayFromDetect = jsonObject["showCaptureButtonDelayFromDetect"];
226
233
  result._showCaptureButtonDelayFromStart = jsonObject["showCaptureButtonDelayFromStart"];
227
234
  result._rfidTimeout = jsonObject["rfidTimeout"];
@@ -261,6 +268,7 @@ export class Functionality {
261
268
  "manualMultipageMode": this.manualMultipageMode,
262
269
  "singleResult": this.singleResult,
263
270
  "torchTurnedOn": this.torchTurnedOn,
271
+ "preventScreenRecording": this.preventScreenRecording,
264
272
  "showCaptureButtonDelayFromDetect": this.showCaptureButtonDelayFromDetect,
265
273
  "showCaptureButtonDelayFromStart": this.showCaptureButtonDelayFromStart,
266
274
  "rfidTimeout": this.rfidTimeout,
@@ -49,6 +49,30 @@ export class CustomizationColors {
49
49
  this._set({ "rfidProcessingScreenLoadingBar": val });
50
50
  }
51
51
 
52
+ get rfidEnableNfcTitleText() { return this._rfidEnableNfcTitleText; }
53
+ set rfidEnableNfcTitleText(val) {
54
+ this._rfidEnableNfcTitleText = val;
55
+ this._set({ "rfidEnableNfcTitleText": val });
56
+ }
57
+
58
+ get rfidEnableNfcDescriptionText() { return this._rfidEnableNfcDescriptionText; }
59
+ set rfidEnableNfcDescriptionText(val) {
60
+ this._rfidEnableNfcDescriptionText = val;
61
+ this._set({ "rfidEnableNfcDescriptionText": val });
62
+ }
63
+
64
+ get rfidEnableNfcButtonText() { return this._rfidEnableNfcButtonText; }
65
+ set rfidEnableNfcButtonText(val) {
66
+ this._rfidEnableNfcButtonText = val;
67
+ this._set({ "rfidEnableNfcButtonText": val });
68
+ }
69
+
70
+ get rfidEnableNfcButtonBackground() { return this._rfidEnableNfcButtonBackground; }
71
+ set rfidEnableNfcButtonBackground(val) {
72
+ this._rfidEnableNfcButtonBackground = val;
73
+ this._set({ "rfidEnableNfcButtonBackground": val });
74
+ }
75
+
52
76
  static fromJson(jsonObject) {
53
77
  if (jsonObject == null) return null;
54
78
 
@@ -61,6 +85,10 @@ export class CustomizationColors {
61
85
  result._rfidProcessingScreenProgressBarBackground = jsonObject["rfidProcessingScreenProgressBarBackground"];
62
86
  result._rfidProcessingScreenResultLabelText = jsonObject["rfidProcessingScreenResultLabelText"];
63
87
  result._rfidProcessingScreenLoadingBar = jsonObject["rfidProcessingScreenLoadingBar"];
88
+ result._rfidEnableNfcTitleText = jsonObject["rfidEnableNfcTitleText"];
89
+ result._rfidEnableNfcDescriptionText = jsonObject["rfidEnableNfcDescriptionText"];
90
+ result._rfidEnableNfcButtonText = jsonObject["rfidEnableNfcButtonText"];
91
+ result._rfidEnableNfcButtonBackground = jsonObject["rfidEnableNfcButtonBackground"];
64
92
 
65
93
  return result;
66
94
  }
@@ -82,6 +110,10 @@ export class CustomizationColors {
82
110
  "rfidProcessingScreenProgressBarBackground": this.rfidProcessingScreenProgressBarBackground,
83
111
  "rfidProcessingScreenResultLabelText": this.rfidProcessingScreenResultLabelText,
84
112
  "rfidProcessingScreenLoadingBar": this.rfidProcessingScreenLoadingBar,
113
+ "rfidEnableNfcTitleText": this.rfidEnableNfcTitleText,
114
+ "rfidEnableNfcDescriptionText": this.rfidEnableNfcDescriptionText,
115
+ "rfidEnableNfcButtonText": this.rfidEnableNfcButtonText,
116
+ "rfidEnableNfcButtonBackground": this.rfidEnableNfcButtonBackground,
85
117
  }
86
118
  }
87
119
  }
@@ -20,6 +20,24 @@ export class CustomizationFonts {
20
20
  this._set({ "rfidProcessingScreenResultLabel": val });
21
21
  }
22
22
 
23
+ get rfidEnableNfcTitleText() { return this._rfidEnableNfcTitleText; }
24
+ set rfidEnableNfcTitleText(val) {
25
+ this._rfidEnableNfcTitleText = val;
26
+ this._set({ "rfidEnableNfcTitleText": val });
27
+ }
28
+
29
+ get rfidEnableNfcDescriptionText() { return this._rfidEnableNfcDescriptionText; }
30
+ set rfidEnableNfcDescriptionText(val) {
31
+ this._rfidEnableNfcDescriptionText = val;
32
+ this._set({ "rfidEnableNfcDescriptionText": val });
33
+ }
34
+
35
+ get rfidEnableNfcButtonText() { return this._rfidEnableNfcButtonText; }
36
+ set rfidEnableNfcButtonText(val) {
37
+ this._rfidEnableNfcButtonText = val;
38
+ this._set({ "rfidEnableNfcButtonText": val });
39
+ }
40
+
23
41
  static fromJson(jsonObject) {
24
42
  if (jsonObject == null) return null;
25
43
 
@@ -27,6 +45,9 @@ export class CustomizationFonts {
27
45
  result._rfidProcessingScreenHintLabel = Font.fromJson(jsonObject["rfidProcessingScreenHintLabel"]);
28
46
  result._rfidProcessingScreenProgressLabel = Font.fromJson(jsonObject["rfidProcessingScreenProgressLabel"]);
29
47
  result._rfidProcessingScreenResultLabel = Font.fromJson(jsonObject["rfidProcessingScreenResultLabel"]);
48
+ result._rfidEnableNfcTitleText = Font.fromJson(jsonObject["rfidEnableNfcTitleText"]);
49
+ result._rfidEnableNfcDescriptionText = Font.fromJson(jsonObject["rfidEnableNfcDescriptionText"]);
50
+ result._rfidEnableNfcButtonText = Font.fromJson(jsonObject["rfidEnableNfcButtonText"]);
30
51
 
31
52
  return result;
32
53
  }
@@ -43,6 +64,9 @@ export class CustomizationFonts {
43
64
  "rfidProcessingScreenHintLabel": this.rfidProcessingScreenHintLabel?.toJson(),
44
65
  "rfidProcessingScreenProgressLabel": this.rfidProcessingScreenProgressLabel?.toJson(),
45
66
  "rfidProcessingScreenResultLabel": this.rfidProcessingScreenResultLabel?.toJson(),
67
+ "rfidEnableNfcTitleText": this.rfidEnableNfcTitleText?.toJson(),
68
+ "rfidEnableNfcDescriptionText": this.rfidEnableNfcDescriptionText?.toJson(),
69
+ "rfidEnableNfcButtonText": this.rfidEnableNfcButtonText?.toJson(),
46
70
  }
47
71
  }
48
72
  }
@@ -7,11 +7,18 @@ export class CustomizationImages {
7
7
  this._set({ "rfidProcessingScreenFailureImage": val });
8
8
  }
9
9
 
10
+ get rfidEnableNfcImage() { return this._rfidEnableNfcImage; }
11
+ set rfidEnableNfcImage(val) {
12
+ this._rfidEnableNfcImage = val;
13
+ this._set({ "rfidEnableNfcImage": val });
14
+ }
15
+
10
16
  static fromJson(jsonObject) {
11
17
  if (jsonObject == null) return null;
12
18
 
13
19
  const result = new CustomizationImages();
14
20
  result._rfidProcessingScreenFailureImage = jsonObject["rfidProcessingScreenFailureImage"];
21
+ result._rfidEnableNfcImage = jsonObject["rfidEnableNfcImage"];
15
22
 
16
23
  return result;
17
24
  }
@@ -26,6 +33,7 @@ export class CustomizationImages {
26
33
  toJson() {
27
34
  return {
28
35
  "rfidProcessingScreenFailureImage": this.rfidProcessingScreenFailureImage,
36
+ "rfidEnableNfcImage": this.rfidEnableNfcImage,
29
37
  }
30
38
  }
31
39
  }
@@ -8,6 +8,7 @@ export class AuthenticityParams {
8
8
  this._set({ "useLivenessCheck": val });
9
9
  }
10
10
 
11
+ _livenessParams = new LivenessParams();
11
12
  get livenessParams() { return this._livenessParams; }
12
13
  set livenessParams(val) { (this._livenessParams = val)._apply(); }
13
14
 
@@ -45,7 +45,7 @@ export class LivenessParams {
45
45
 
46
46
  static fromJson(jsonObject) {
47
47
  if (jsonObject == null) return new LivenessParams();
48
-
48
+
49
49
  const result = new LivenessParams();
50
50
  result._checkOVI = jsonObject["checkOVI"];
51
51
  result._checkMLI = jsonObject["checkMLI"];
@@ -54,7 +54,7 @@ export class LivenessParams {
54
54
  result._checkBlackAndWhiteCopy = jsonObject["checkBlackAndWhiteCopy"];
55
55
  result._checkDynaprint = jsonObject["checkDynaprint"];
56
56
  result._checkGeometry = jsonObject["checkGeometry"];
57
-
57
+
58
58
  return result;
59
59
  }
60
60
 
@@ -241,6 +241,12 @@ export class ProcessParams {
241
241
  this._set({ "strictSecurityChecks": val });
242
242
  }
243
243
 
244
+ get returnTransliteratedFields() { return this._returnTransliteratedFields; }
245
+ set returnTransliteratedFields(val) {
246
+ this._returnTransliteratedFields = val;
247
+ this._set({ "returnTransliteratedFields": val });
248
+ }
249
+
244
250
  get barcodeParserType() { return this._barcodeParserType; }
245
251
  set barcodeParserType(val) {
246
252
  this._barcodeParserType = val;
@@ -433,6 +439,7 @@ export class ProcessParams {
433
439
  this._set({ "lcidFilter": val });
434
440
  }
435
441
 
442
+ _imageQA = new ImageQA();
436
443
  get imageQA() { return this._imageQA; }
437
444
  set imageQA(val) { (this._imageQA = val)._apply(); }
438
445
 
@@ -454,6 +461,7 @@ export class ProcessParams {
454
461
  this._set({ "backendProcessingConfig": val });
455
462
  }
456
463
 
464
+ _authenticityParams = new AuthenticityParams();
457
465
  get authenticityParams() { return this._authenticityParams; }
458
466
  set authenticityParams(val) { (this._authenticityParams = val)._apply(); }
459
467
 
@@ -506,6 +514,7 @@ export class ProcessParams {
506
514
  result._generateAlpha2Codes = jsonObject["generateAlpha2Codes"];
507
515
  result._disableAuthResolutionFilter = jsonObject["disableAuthResolutionFilter"];
508
516
  result._strictSecurityChecks = jsonObject["strictSecurityChecks"];
517
+ result._returnTransliteratedFields = jsonObject["returnTransliteratedFields"];
509
518
  result._barcodeParserType = jsonObject["barcodeParserType"];
510
519
  result._perspectiveAngle = jsonObject["perspectiveAngle"];
511
520
  result._minDPI = jsonObject["minDPI"];
@@ -588,6 +597,7 @@ export class ProcessParams {
588
597
  "generateAlpha2Codes": this.generateAlpha2Codes,
589
598
  "disableAuthResolutionFilter": this.disableAuthResolutionFilter,
590
599
  "strictSecurityChecks": this.strictSecurityChecks,
600
+ "returnTransliteratedFields": this.returnTransliteratedFields,
591
601
  "measureSystem": this.measureSystem,
592
602
  "barcodeParserType": this.barcodeParserType,
593
603
  "perspectiveAngle": this.perspectiveAngle,
@@ -46,6 +46,8 @@ export const CheckDiagnose = {
46
46
  FIELD_POS_CORRECTOR_FACE_PRESENCE_CHECK_ERROR: 84,
47
47
  FIELD_POS_CORRECTOR_FACE_ABSENCE_CHECK_ERROR: 85,
48
48
  CHD_FIELD_POS_CORRECTOR_INCORRECT_HEAD_POSITION: 86,
49
+ CHD_FIELD_POS_CORRECTOR_AGE_CHECK_ERROR: 87,
50
+ CHD_FIELD_POS_CORRECTOR_SEX_CHECK_ERROR: 88,
49
51
  OVI_IR_INVISIBLE: 90,
50
52
  OVI_INSUFFICIENT_AREA: 91,
51
53
  OVI_COLOR_INVARIABLE: 92,
@@ -55,5 +55,7 @@ export const SecurityFeatureType = {
55
55
  HEAD_POSITION_CHECK: 52,
56
56
  LIVENESS_BLACK_AND_WHITE_COPY_CHECK: 53,
57
57
  LIVENESS_DYNAPRINT: 54,
58
- LIVENESS_GEOMETRY_CHECK: 55
58
+ LIVENESS_GEOMETRY_CHECK: 55,
59
+ AGE_CHECK: 56,
60
+ SEX_CHECK: 57,
59
61
  }
@@ -14,6 +14,11 @@ export declare class InitConfig {
14
14
  */
15
15
  licenseUpdate: boolean;
16
16
 
17
+ /**
18
+ * Allows you to configure the maximum time needed for a license update (in seconds).
19
+ */
20
+ licenseUpdateTimeout?: number;
21
+
17
22
  /**
18
23
  * Defines whether the {@link DocumentReader} delays loading of neural networks.
19
24
  *
@@ -101,7 +101,7 @@ import { ImageQA } from './params/process_params/ImageQA';
101
101
  import { AuthenticityParams } from './params/process_params/AuthenticityParams';
102
102
  import { BackendProcessingConfig } from './params/process_params/BackendProcessingConfig';
103
103
  import { FaceApiSearchParams } from './params/process_params/FaceApiSearchParams';
104
- export { LivenessParams, ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes, GlaresCheckParams, FaceApiParams, RFIDParams, ImageQA, AuthenticityParams, BackendProcessingConfig, FaceApiSearchParams };
104
+ export { LivenessParams, ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes, GlaresCheckParams, FaceApiParams, RFIDParams, ImageQA, AuthenticityParams,BackendProcessingConfig, FaceApiSearchParams };
105
105
 
106
106
  import { Functionality, CameraPosition, CaptureMode, CameraMode, CaptureSessionPreset, DocReaderFrame, CameraSize } from './params/Functionality';
107
107
  export { Functionality, CameraPosition, CaptureMode, CameraMode, CaptureSessionPreset, DocReaderFrame, CameraSize };
@@ -345,7 +345,7 @@ export class DocumentReader {
345
345
  *
346
346
  * @param certificates - PKD certificates.
347
347
  */
348
- addPKDCertificates(certificates: [PKDCertificate]): void;
348
+ addPKDCertificates(certificates: PKDCertificate[]): void;
349
349
 
350
350
  /** It's used to remove certificates from your app that are used during the
351
351
  * RFID chip processing.