@regulaforensics/document-reader 8.4.400-beta → 8.4.442

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/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/Config.kt +3 -31
  6. package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +0 -27
  7. package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +4 -24
  8. package/examples/capacitor/package-lock.json +9 -9
  9. package/examples/capacitor/package.json +3 -3
  10. package/examples/ionic/package-lock.json +14 -14
  11. package/examples/ionic/package.json +3 -3
  12. package/examples/react_native/package-lock.json +34 -34
  13. package/examples/react_native/package.json +3 -3
  14. package/ios/RGLWConfig.m +2 -30
  15. package/ios/RGLWJSONConstructor.h +0 -1
  16. package/ios/RGLWJSONConstructor.m +0 -18
  17. package/ios/RGLWMain.m +0 -46
  18. package/package.json +1 -1
  19. package/plugin.xml +2 -2
  20. package/test/json.tsx +1 -29
  21. package/test/package-lock.json +1 -1
  22. package/test/test.tsx +2 -3
  23. package/www/capacitor/index.js +4 -5
  24. package/www/capacitor/params/process_params/AuthenticityParams.js +1 -44
  25. package/www/capacitor/params/process_params/LivenessParams.js +0 -36
  26. package/www/capacitor/params/process_params/ProcessParams.js +10 -30
  27. package/www/cordova.js +100 -287
  28. package/www/react-native/index.js +4 -5
  29. package/www/react-native/params/process_params/AuthenticityParams.js +1 -44
  30. package/www/react-native/params/process_params/LivenessParams.js +0 -36
  31. package/www/react-native/params/process_params/ProcessParams.js +10 -30
  32. package/www/types/index.d.ts +5 -6
  33. package/www/types/params/process_params/AuthenticityParams.d.ts +0 -25
  34. package/www/types/params/process_params/LivenessParams.d.ts +0 -18
  35. package/www/types/params/process_params/ProcessParams.d.ts +5 -11
  36. package/www/capacitor/params/process_params/FilterObject.js +0 -60
  37. package/www/react-native/params/process_params/FilterObject.js +0 -60
  38. package/www/types/params/process_params/FilterObject.d.ts +0 -32
package/ios/RGLWMain.m CHANGED
@@ -83,16 +83,6 @@
83
83
  @"containers": ^{ [self containers :args[0] :args[1] :callback]; },
84
84
  @"encryptedContainers": ^{ [self encryptedContainers :args[0] :callback]; },
85
85
  @"getTranslation": ^{ [self getTranslation :args[0] :args[1] :callback]; },
86
- // remove after finishing old dr support
87
- @"processParamsSetCheckFilter": ^{ [self processParamsSetCheckFilter :args[0] :args[1]]; },
88
- @"processParamsRemoveCheckFilter": ^{ [self processParamsRemoveCheckFilter :args[0]]; },
89
- @"processParamsClearCheckFilter": ^{ [self processParamsClearCheckFilter]; },
90
- @"authenticityParamsSetCheckFilter": ^{ [self authenticityParamsSetCheckFilter :args[0] :args[1]]; },
91
- @"authenticityParamsRemoveCheckFilter": ^{ [self authenticityParamsRemoveCheckFilter :args[0]]; },
92
- @"authenticityParamsClearCheckFilter": ^{ [self authenticityParamsClearCheckFilter]; },
93
- @"livenessParamsSetCheckFilter": ^{ [self livenessParamsSetCheckFilter :args[0] :args[1]]; },
94
- @"livenessParamsRemoveCheckFilter": ^{ [self livenessParamsRemoveCheckFilter :args[0]]; },
95
- @"livenessParamsClearCheckFilter": ^{ [self livenessParamsClearCheckFilter]; },
96
86
  };
97
87
  ((void(^)(void))Switch[method])();
98
88
  }
@@ -530,42 +520,6 @@ RGLWCallback savedCallbackForBluetoothResult;
530
520
  callback([RGLDocumentReaderTextField lcidName:[value intValue]]);
531
521
  }
532
522
 
533
- + (void)processParamsSetCheckFilter:(NSString*)checkType :(NSDictionary*)filter {
534
- [RGLDocReader.shared.processParams addFilter:[RGLWJSONConstructor filterObjectFromJson:filter] forCheckType:checkType];
535
- }
536
-
537
- + (void)processParamsRemoveCheckFilter:(NSString*)checkType {
538
- [RGLDocReader.shared.processParams removeFilterForCheckType:checkType];
539
- }
540
-
541
- + (void)processParamsClearCheckFilter {
542
- [RGLDocReader.shared.processParams clearCheckFilter];
543
- }
544
-
545
- + (void)authenticityParamsSetCheckFilter:(NSString*)checkType :(NSDictionary*)filter {
546
- [RGLDocReader.shared.processParams.authenticityParams addFilter:[RGLWJSONConstructor filterObjectFromJson:filter] forCheckType:checkType];
547
- }
548
-
549
- + (void)authenticityParamsRemoveCheckFilter:(NSString*)checkType {
550
- [RGLDocReader.shared.processParams.authenticityParams removeFilterForCheckType:checkType];
551
- }
552
-
553
- + (void)authenticityParamsClearCheckFilter {
554
- [RGLDocReader.shared.processParams.authenticityParams clearCheckFilter];
555
- }
556
-
557
- + (void)livenessParamsSetCheckFilter:(NSString*)checkType :(NSDictionary*)filter {
558
- [RGLDocReader.shared.processParams.authenticityParams.livenessParams addFilter:[RGLWJSONConstructor filterObjectFromJson:filter] forCheckType:checkType];
559
- }
560
-
561
- + (void)livenessParamsRemoveCheckFilter:(NSString*)checkType {
562
- [RGLDocReader.shared.processParams.authenticityParams.livenessParams removeFilterForCheckType:checkType];
563
- }
564
-
565
- + (void)livenessParamsClearCheckFilter {
566
- [RGLDocReader.shared.processParams.authenticityParams.livenessParams clearCheckFilter];
567
- }
568
-
569
523
  +(RGLDocumentReaderCompletion _Nonnull)completion {
570
524
  return ^(RGLDocReaderAction action, RGLDocumentReaderResults * _Nullable results, NSError * _Nullable error) {
571
525
  sendEvent(completionEvent, [RGLWJSONConstructor generateCompletion:[RGLWConfig generateDocReaderAction: action] :results :error]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/document-reader",
3
- "version": "8.4.400-beta",
3
+ "version": "8.4.442",
4
4
  "description": "This is an npm module for Regula Document Reader SDK. It allows you to read various kinds of identification documents using your phone's camera.",
5
5
  "main": "www/react-native/index.js",
6
6
  "module": "www/capacitor/index.js",
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
- <plugin id="@regulaforensics/document-reader" version="8.4.400-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/document-reader" version="8.4.442" xmlns="http://apache.org/cordova/ns/plugins/1.0">
3
3
  <name>DocumentReader</name>
4
4
  <description>Cordova plugin for Regula Document Reader SDK</description>
5
5
  <license>commercial</license>
@@ -29,7 +29,7 @@
29
29
  <source url="https://github.com/CocoaPods/Specs.git" />
30
30
  </config>
31
31
  <pods>
32
- <pod name="DocumentReaderBeta" spec="8.4.5314" />
32
+ <pod name="DocumentReader" spec="8.4.5436" />
33
33
  </pods>
34
34
  </podspec>
35
35
  </platform>
package/test/json.tsx CHANGED
@@ -17,24 +17,6 @@ export var faceApiParams = {
17
17
  "proxyType": 3,
18
18
  "searchParams": faceApiSearchParams,
19
19
  }
20
- export var filterObject = {
21
- "docIDsFilter": {
22
- "list": [1, 2, 3],
23
- "isInclude": true
24
- },
25
- "docFormatsFilter": {
26
- "list": [4, 5, 6],
27
- "isInclude": false
28
- },
29
- "docCategoriesFilter": {
30
- "list": [7, 8, 9],
31
- "isInclude": true
32
- },
33
- "docCountriesFilter": {
34
- "list": ["test1", "test2", "test3"],
35
- "isInclude": false
36
- },
37
- }
38
20
  export var livenessParams = {
39
21
  "checkOVI": true,
40
22
  "checkMLI": false,
@@ -43,11 +25,6 @@ export var livenessParams = {
43
25
  "checkBlackAndWhiteCopy": true,
44
26
  "checkDynaprint": false,
45
27
  "checkGeometry": true,
46
- "checkFilters": {
47
- "checkOVI": filterObject,
48
- "checkMLI": filterObject,
49
- "checkHolo": filterObject
50
- },
51
28
  }
52
29
  export var authenticityParams = {
53
30
  "useLivenessCheck": true,
@@ -66,11 +43,6 @@ export var authenticityParams = {
66
43
  "checkLetterScreen": false,
67
44
  "checkSecurityText": true,
68
45
  "livenessParams": livenessParams,
69
- "checkFilters": {
70
- "checkImagePatterns": filterObject,
71
- "checkFibers": filterObject,
72
- "checkExtMRZ": filterObject
73
- },
74
46
  }
75
47
  export var glaresCheckParams = { "imgMarginPart": 0.5, "maxGlaringPart": 1.5 }
76
48
  export var imageQA = {
@@ -134,6 +106,7 @@ export var processParams = {
134
106
  "generateAlpha2Codes": false,
135
107
  "disableAuthResolutionFilter": true,
136
108
  "strictSecurityChecks": false,
109
+ "returnTransliteratedFields": true,
137
110
  "measureSystem": 1,
138
111
  "barcodeParserType": 3,
139
112
  "perspectiveAngle": 4,
@@ -172,7 +145,6 @@ export var processParams = {
172
145
  "backendProcessingConfig": backendProcessingConfig,
173
146
  "authenticityParams": authenticityParams,
174
147
  "customParams": { "test1": true, "test2": 1, "test3": "test" },
175
- "checkFilters": { "checkAuth": filterObject },
176
148
  }
177
149
  export var font1 = { "name": "AppleSDGothicNeo-Thin", "size": 10, "style": 2 }
178
150
  export var font2 = { "name": "Copperplate-Light", "size": 20, "style": 1 }
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "..": {
15
15
  "name": "@regulaforensics/document-reader",
16
- "version": "8.4.400-beta",
16
+ "version": "8.4.442",
17
17
  "dev": true,
18
18
  "license": "commercial"
19
19
  },
package/test/test.tsx CHANGED
@@ -1,6 +1,6 @@
1
1
  import { compare } from './utils'
2
- import { AccessControlProcedureType, Application, Attribute, AuthenticityCheck, AuthenticityElement, AuthenticityParams, AuthenticityResult, Authority, BackendProcessingConfig, BarcodeField, BarcodeResult, BytesData, CardProperties, CertificateChain, CertificateData, Comparison, Coordinate, Customization, CustomizationColors, CustomizationFonts, CustomizationImages, DataField, DocReaderException, DocReaderScenario, DocReaderVersion, DocumentsDatabase, DocumentType, EDLDataGroups, EIDDataGroups, DTCDataGroup, EPassportDataGroups, Extension, FaceApiParams, FaceApiSearchParams, File, FileData, Functionality, GlaresCheckParams, RFIDParams, GraphicField, GraphicResult, ImageInputData, ImageQA, ImageQuality, ImageQualityGroup, InitConfig, License, LivenessParams, OnlineProcessingConfig, OpticalStatus, PAAttribute, PAResourcesIssuer, PDF417Info, PKDCertificate, Position, PrepareProgress, FilterObject, ProcessParams, RecognizeConfig, Rect, Results, ResultsStatus, RFIDException, RFIDNotification, RFIDOrigin, RFIDScenario, RFIDSessionData, RFIDStatus, RFIDValidity, RFIDValue, ScannerConfig, SecurityObject, SecurityObjectCertificates, SignerInfo, Symbol, TAChallenge, TccParams, TextField, TextResult, TextSource, TransactionInfo, Validity, Value, VDSNCData } from '@regulaforensics/document-reader/www/capacitor'
3
- import { accessControlProcedureType, application, attribute, authenticityCheck, authenticityElement, authenticityParams, authenticityResult, authority, backendProcessingConfig, barcodeField, barcodeResult, bytesData, cardProperties, certificateChain, certificateData, comparison, coordinate, customization, customizationColors, customizationFonts, customizationImages, dataField, docReaderException, docReaderScenario, docReaderVersion, documentsDatabase, documentType, eDLDataGroups, eIDDataGroups, dtcDataGroup, ePassportDataGroups, extension, faceApiParams, faceApiSearchParams, file, fileData, functionality, glaresCheckParams, rfidParams, graphicField, graphicResult, imageInputData, imageQA, imageQuality, imageQualityGroup, initConfig, license, livenessParams, onlineProcessingConfig, opticalStatus, paAttribute, paResourcesIssuer, pdf417Info, pkdCertificate, position, prepareProgress, filterObject, processParams, recognizeConfig, recognizeConfig2, rect, results, resultsStatus, rfidException, rfidNotification, rfidOrigin, rfidScenario, rfidSessionData, rfidStatus, rfidValidity, rfidValue, scannerConfig, securityObject, securityObjectCertificates, signerInfo, symbol, taChallenge, tccParams, textField, textResult, textSource, transactionInfo, validity, value, vdsncData } from './json'
2
+ import { AccessControlProcedureType, Application, Attribute, AuthenticityCheck, AuthenticityElement, AuthenticityParams, AuthenticityResult, Authority, BackendProcessingConfig, BarcodeField, BarcodeResult, BytesData, CardProperties, CertificateChain, CertificateData, Comparison, Coordinate, Customization, CustomizationColors, CustomizationFonts, CustomizationImages, DataField, DocReaderException, DocReaderScenario, DocReaderVersion, DocumentsDatabase, DocumentType, EDLDataGroups, EIDDataGroups, DTCDataGroup, EPassportDataGroups, Extension, FaceApiParams, FaceApiSearchParams, File, FileData, Functionality, GlaresCheckParams, RFIDParams, GraphicField, GraphicResult, ImageInputData, ImageQA, ImageQuality, ImageQualityGroup, InitConfig, License, LivenessParams, OnlineProcessingConfig, OpticalStatus, PAAttribute, PAResourcesIssuer, PDF417Info, PKDCertificate, Position, PrepareProgress, ProcessParams, RecognizeConfig, Rect, Results, ResultsStatus, RFIDException, RFIDNotification, RFIDOrigin, RFIDScenario, RFIDSessionData, RFIDStatus, RFIDValidity, RFIDValue, ScannerConfig, SecurityObject, SecurityObjectCertificates, SignerInfo, Symbol, TAChallenge, TccParams, TextField, TextResult, TextSource, TransactionInfo, Validity, Value, VDSNCData } from '@regulaforensics/document-reader/www/capacitor'
3
+ import { accessControlProcedureType, application, attribute, authenticityCheck, authenticityElement, authenticityParams, authenticityResult, authority, backendProcessingConfig, barcodeField, barcodeResult, bytesData, cardProperties, certificateChain, certificateData, comparison, coordinate, customization, customizationColors, customizationFonts, customizationImages, dataField, docReaderException, docReaderScenario, docReaderVersion, documentsDatabase, documentType, eDLDataGroups, eIDDataGroups, dtcDataGroup, ePassportDataGroups, extension, faceApiParams, faceApiSearchParams, file, fileData, functionality, glaresCheckParams, rfidParams, graphicField, graphicResult, imageInputData, imageQA, imageQuality, imageQualityGroup, initConfig, license, livenessParams, onlineProcessingConfig, opticalStatus, paAttribute, paResourcesIssuer, pdf417Info, pkdCertificate, position, prepareProgress, processParams, recognizeConfig, recognizeConfig2, rect, results, resultsStatus, rfidException, rfidNotification, rfidOrigin, rfidScenario, rfidSessionData, rfidStatus, rfidValidity, rfidValue, scannerConfig, securityObject, securityObjectCertificates, signerInfo, symbol, taChallenge, tccParams, textField, textResult, textSource, transactionInfo, validity, value, vdsncData } from './json'
4
4
 
5
5
  compare('initConfig', initConfig, InitConfig.fromJson)
6
6
  compare('onlineProcessingConfig', onlineProcessingConfig, OnlineProcessingConfig.fromJson)
@@ -18,7 +18,6 @@ compare('glaresCheckParams', glaresCheckParams, GlaresCheckParams.fromJson)
18
18
  compare('rfidParams', rfidParams, RFIDParams.fromJson)
19
19
  compare('imageQA', imageQA, ImageQA.fromJson)
20
20
  compare('backendProcessingConfig', backendProcessingConfig, BackendProcessingConfig.fromJson)
21
- compare('filterObject', filterObject, FilterObject.fromJson)
22
21
  compare('processParams', processParams, ProcessParams.fromJson, ['logs'])
23
22
  compare('eDLDataGroups', eDLDataGroups, EDLDataGroups.fromJson)
24
23
  compare('ePassportDataGroups', ePassportDataGroups, EPassportDataGroups.fromJson)
@@ -94,17 +94,16 @@ import { Extension } from './results/rfid/Extension';
94
94
  import { AccessControlProcedureType } from './results/rfid/AccessControlProcedureType';
95
95
  export { SecurityObject, CardProperties, DataField, Attribute, SignerInfo, SecurityObjectCertificates, CertificateChain, Authority, File, RFIDValue, RFIDValidity, RFIDDataFileType, CertificateData, FileData, RFIDCertificateType, RFIDSessionData, Application, RFIDApplicationType, RFIDAccessControlProcedureType, Extension, AccessControlProcedureType };
96
96
 
97
- import { FilterObject, FilterObjectType } from './params/process_params/FilterObject';
98
- import { LivenessParams, LivenessCheckType } from './params/process_params/LivenessParams';
99
- import { ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes, FilterCheckType } from './params/process_params/ProcessParams';
97
+ import { LivenessParams } from './params/process_params/LivenessParams';
98
+ import { ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes } from './params/process_params/ProcessParams';
100
99
  import { GlaresCheckParams } from './params/process_params/GlaresCheckParams';
101
100
  import { FaceApiParams } from './params/process_params/FaceApiParams';
102
101
  import { RFIDParams } from './params/process_params/RFIDParams';
103
102
  import { ImageQA } from './params/process_params/ImageQA';
104
- import { AuthenticityParams, AuthenticityCheckType } from './params/process_params/AuthenticityParams';
103
+ import { AuthenticityParams } from './params/process_params/AuthenticityParams';
105
104
  import { BackendProcessingConfig } from './params/process_params/BackendProcessingConfig';
106
105
  import { FaceApiSearchParams } from './params/process_params/FaceApiSearchParams';
107
- export { FilterObject, FilterObjectType, LivenessParams, LivenessCheckType, ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes, FilterCheckType, GlaresCheckParams, FaceApiParams, RFIDParams, ImageQA, AuthenticityParams, AuthenticityCheckType, BackendProcessingConfig, FaceApiSearchParams };
106
+ export { LivenessParams, ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes, GlaresCheckParams, FaceApiParams, RFIDParams, ImageQA, AuthenticityParams, BackendProcessingConfig, FaceApiSearchParams };
108
107
 
109
108
  import { Functionality, CameraPosition, CaptureMode, CameraMode, CaptureSessionPreset, DocReaderFrame, CameraSize } from './params/Functionality';
110
109
  export { Functionality, CameraPosition, CaptureMode, CameraMode, CaptureSessionPreset, DocReaderFrame, CameraSize };
@@ -1,6 +1,5 @@
1
1
  import { DocumentReader } from '../../index';
2
2
  import { LivenessParams } from './LivenessParams';
3
- import { FilterObject } from './FilterObject';
4
3
 
5
4
  export class AuthenticityParams {
6
5
  get useLivenessCheck() { return this._useLivenessCheck; }
@@ -9,6 +8,7 @@ export class AuthenticityParams {
9
8
  this._set({ "useLivenessCheck": val });
10
9
  }
11
10
 
11
+ _livenessParams = new LivenessParams();
12
12
  get livenessParams() { return this._livenessParams; }
13
13
  set livenessParams(val) { (this._livenessParams = val)._apply(); }
14
14
 
@@ -96,28 +96,6 @@ export class AuthenticityParams {
96
96
  this._set({ "checkSecurityText": val });
97
97
  }
98
98
 
99
- _checkFilters = {};
100
-
101
- setCheckFilter(checkType, filter) {
102
- this._checkFilters[checkType] = filter;
103
- this._set({
104
- "setCheckFilter": {
105
- "checkType": checkType,
106
- "filterObject": filter.toJson(),
107
- },
108
- });
109
- }
110
-
111
- removeCheckFilter(checkType) {
112
- delete this._checkFilters[checkType];
113
- this._set({ "removeCheckFilter": checkType });
114
- }
115
-
116
- clearCheckFilter() {
117
- this._checkFilters = {};
118
- this._set({ "clearCheckFilter": null });
119
- }
120
-
121
99
  static fromJson(jsonObject) {
122
100
  if (jsonObject == null) return new AuthenticityParams();
123
101
 
@@ -139,8 +117,6 @@ export class AuthenticityParams {
139
117
  result._checkPhotoComparison = jsonObject["checkPhotoComparison"];
140
118
  result._checkLetterScreen = jsonObject["checkLetterScreen"];
141
119
  result._checkSecurityText = jsonObject["checkSecurityText"];
142
- result._checkFilters = Object.fromEntries(Object.entries(jsonObject["checkFilters"] ?? {})
143
- .map(([k, v]) => [k, FilterObject.fromJson(v)]));
144
120
 
145
121
  return result;
146
122
  }
@@ -170,25 +146,6 @@ export class AuthenticityParams {
170
146
  "checkPhotoComparison": this.checkPhotoComparison,
171
147
  "checkLetterScreen": this.checkLetterScreen,
172
148
  "checkSecurityText": this.checkSecurityText,
173
- "checkFilters": Object.fromEntries(Object.entries(this._checkFilters).map(([k, v]) => [k, v.toJson()])),
174
149
  }
175
150
  }
176
151
  }
177
-
178
- export const AuthenticityCheckType = {
179
- USE_LIVENESS: "checkLiveness",
180
- UV_LUMINISCENCE: "checkUVLuminiscence",
181
- IR_B900: "checkIRB900",
182
- IMAGE_PATTERNS: "checkImagePatterns",
183
- FIBERS: "checkFibers",
184
- EXT_MRZ: "checkExtMRZ",
185
- EXT_OCR: "checkExtOCR",
186
- AXIAL: "checkAxial",
187
- BARCODE_FORMAT: "checkBarcodeFormat",
188
- IR_VISIBILITY: "checkIRVisibility",
189
- IPI: "checkIPI",
190
- PHOTO_EMBEDDING: "checkPhotoEmbedding",
191
- PHOTO_COMPARISON: "checkPhotoComparison",
192
- LETTER_SCREEN: "checkLetterScreen",
193
- SECURITY_TEXT: "checkSecurityText",
194
- };
@@ -1,5 +1,4 @@
1
1
  import { DocumentReader } from '../../index';
2
- import { FilterObject } from './FilterObject';
3
2
 
4
3
  export class LivenessParams {
5
4
  get checkOVI() { return this._checkOVI; }
@@ -44,28 +43,6 @@ export class LivenessParams {
44
43
  this._set({ "checkGeometry": val });
45
44
  }
46
45
 
47
- _checkFilters = {};
48
-
49
- setCheckFilter(checkType, filter) {
50
- this._checkFilters[checkType] = filter;
51
- this._set({
52
- "setCheckFilter": {
53
- "checkType": checkType,
54
- "filterObject": filter.toJson(),
55
- },
56
- });
57
- }
58
-
59
- removeCheckFilter(checkType) {
60
- delete this._checkFilters[checkType];
61
- this._set({ "removeCheckFilter": checkType });
62
- }
63
-
64
- clearCheckFilter() {
65
- this._checkFilters = {};
66
- this._set({ "clearCheckFilter": null });
67
- }
68
-
69
46
  static fromJson(jsonObject) {
70
47
  if (jsonObject == null) return new LivenessParams();
71
48
 
@@ -77,8 +54,6 @@ export class LivenessParams {
77
54
  result._checkBlackAndWhiteCopy = jsonObject["checkBlackAndWhiteCopy"];
78
55
  result._checkDynaprint = jsonObject["checkDynaprint"];
79
56
  result._checkGeometry = jsonObject["checkGeometry"];
80
- result._checkFilters = Object.fromEntries(Object.entries(jsonObject["checkFilters"] ?? {})
81
- .map(([k, v]) => [k, FilterObject.fromJson(v)]));
82
57
 
83
58
  return result;
84
59
  }
@@ -99,17 +74,6 @@ export class LivenessParams {
99
74
  "checkBlackAndWhiteCopy": this.checkBlackAndWhiteCopy,
100
75
  "checkDynaprint": this.checkDynaprint,
101
76
  "checkGeometry": this.checkGeometry,
102
- "checkFilters": Object.fromEntries(Object.entries(this._checkFilters).map(([k, v]) => [k, v.toJson()])),
103
77
  }
104
78
  }
105
79
  }
106
-
107
- export const LivenessCheckType = {
108
- OVI: "checkOVI",
109
- MLI: "checkMLI",
110
- HOLO: "checkHolo",
111
- ED: "checkED",
112
- BLACK_AND_WHITE_COPY: "checkBlackAndWhiteCopy",
113
- DYNAPRINT: "checkDynaprint",
114
- GEOMETRY: "checkGeometry",
115
- };
@@ -5,7 +5,6 @@ import { RFIDParams } from './RFIDParams';
5
5
  import { FaceApiParams } from './FaceApiParams';
6
6
  import { BackendProcessingConfig } from './BackendProcessingConfig';
7
7
  import { AuthenticityParams } from './AuthenticityParams';
8
- import { FilterObject } from './FilterObject';
9
8
 
10
9
  export class ProcessParams {
11
10
  get multipageProcessing() { return this._multipageProcessing; }
@@ -242,6 +241,12 @@ export class ProcessParams {
242
241
  this._set({ "strictSecurityChecks": val });
243
242
  }
244
243
 
244
+ get returnTransliteratedFields() { return this._returnTransliteratedFields; }
245
+ set returnTransliteratedFields(val) {
246
+ this._returnTransliteratedFields = val;
247
+ this._set({ "returnTransliteratedFields": val });
248
+ }
249
+
245
250
  get barcodeParserType() { return this._barcodeParserType; }
246
251
  set barcodeParserType(val) {
247
252
  this._barcodeParserType = val;
@@ -434,6 +439,7 @@ export class ProcessParams {
434
439
  this._set({ "lcidFilter": val });
435
440
  }
436
441
 
442
+ _imageQA = new ImageQA();
437
443
  get imageQA() { return this._imageQA; }
438
444
  set imageQA(val) { (this._imageQA = val)._apply(); }
439
445
 
@@ -455,6 +461,7 @@ export class ProcessParams {
455
461
  this._set({ "backendProcessingConfig": val });
456
462
  }
457
463
 
464
+ _authenticityParams = new AuthenticityParams();
458
465
  get authenticityParams() { return this._authenticityParams; }
459
466
  set authenticityParams(val) { (this._authenticityParams = val)._apply(); }
460
467
 
@@ -464,28 +471,6 @@ export class ProcessParams {
464
471
  this._set({ "customParams": val });
465
472
  }
466
473
 
467
- _checkFilters = {};
468
-
469
- setCheckFilter(checkType, filter) {
470
- this._checkFilters[checkType] = filter;
471
- this._set({
472
- "setCheckFilter": {
473
- "checkType": checkType,
474
- "filterObject": filter.toJson(),
475
- },
476
- });
477
- }
478
-
479
- removeCheckFilter(checkType) {
480
- delete this._checkFilters[checkType];
481
- this._set({ "removeCheckFilter": checkType });
482
- }
483
-
484
- clearCheckFilter() {
485
- this._checkFilters = {};
486
- this._set({ "clearCheckFilter": null });
487
- }
488
-
489
474
  static fromJson(jsonObject) {
490
475
  if (jsonObject == null) return new ProcessParams();
491
476
  const result = new ProcessParams();
@@ -529,6 +514,7 @@ export class ProcessParams {
529
514
  result._generateAlpha2Codes = jsonObject["generateAlpha2Codes"];
530
515
  result._disableAuthResolutionFilter = jsonObject["disableAuthResolutionFilter"];
531
516
  result._strictSecurityChecks = jsonObject["strictSecurityChecks"];
517
+ result._returnTransliteratedFields = jsonObject["returnTransliteratedFields"];
532
518
  result._barcodeParserType = jsonObject["barcodeParserType"];
533
519
  result._perspectiveAngle = jsonObject["perspectiveAngle"];
534
520
  result._minDPI = jsonObject["minDPI"];
@@ -567,8 +553,6 @@ export class ProcessParams {
567
553
  result._backendProcessingConfig = BackendProcessingConfig.fromJson(jsonObject["backendProcessingConfig"]);
568
554
  result._authenticityParams = AuthenticityParams.fromJson(jsonObject["authenticityParams"]);
569
555
  result._customParams = jsonObject["customParams"];
570
- result._checkFilters = Object.fromEntries(Object.entries(jsonObject["checkFilters"] ?? {})
571
- .map(([k, v]) => [k, FilterObject.fromJson(v)]));
572
556
 
573
557
  return result;
574
558
  }
@@ -613,6 +597,7 @@ export class ProcessParams {
613
597
  "generateAlpha2Codes": this.generateAlpha2Codes,
614
598
  "disableAuthResolutionFilter": this.disableAuthResolutionFilter,
615
599
  "strictSecurityChecks": this.strictSecurityChecks,
600
+ "returnTransliteratedFields": this.returnTransliteratedFields,
616
601
  "measureSystem": this.measureSystem,
617
602
  "barcodeParserType": this.barcodeParserType,
618
603
  "perspectiveAngle": this.perspectiveAngle,
@@ -651,7 +636,6 @@ export class ProcessParams {
651
636
  "backendProcessingConfig": this.backendProcessingConfig?.toJson(),
652
637
  "authenticityParams": this.authenticityParams?.toJson(),
653
638
  "customParams": this.customParams,
654
- "checkFilters": Object.fromEntries(Object.entries(this._checkFilters).map(([k, v]) => [k, v.toJson()])),
655
639
  }
656
640
  }
657
641
 
@@ -689,7 +673,3 @@ export const MrzDetectionModes = {
689
673
  RESIZE_BINARIZE_WINDOW: 1,
690
674
  BLUR_BEFORE_BINARIZATION: 2
691
675
  };
692
-
693
- export const FilterCheckType = {
694
- AUTH: "checkAuth",
695
- };