@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.
- package/README.md +1 -1
- package/RNDocumentReader.podspec +2 -2
- package/android/build.gradle +2 -2
- package/android/cordova.gradle +2 -2
- package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +3 -31
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +0 -27
- package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +4 -24
- package/examples/capacitor/package-lock.json +9 -9
- package/examples/capacitor/package.json +3 -3
- package/examples/ionic/package-lock.json +14 -14
- package/examples/ionic/package.json +3 -3
- package/examples/react_native/package-lock.json +34 -34
- package/examples/react_native/package.json +3 -3
- package/ios/RGLWConfig.m +2 -30
- package/ios/RGLWJSONConstructor.h +0 -1
- package/ios/RGLWJSONConstructor.m +0 -18
- package/ios/RGLWMain.m +0 -46
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/json.tsx +1 -29
- package/test/package-lock.json +1 -1
- package/test/test.tsx +2 -3
- package/www/capacitor/index.js +4 -5
- package/www/capacitor/params/process_params/AuthenticityParams.js +1 -44
- package/www/capacitor/params/process_params/LivenessParams.js +0 -36
- package/www/capacitor/params/process_params/ProcessParams.js +10 -30
- package/www/cordova.js +100 -287
- package/www/react-native/index.js +4 -5
- package/www/react-native/params/process_params/AuthenticityParams.js +1 -44
- package/www/react-native/params/process_params/LivenessParams.js +0 -36
- package/www/react-native/params/process_params/ProcessParams.js +10 -30
- package/www/types/index.d.ts +5 -6
- package/www/types/params/process_params/AuthenticityParams.d.ts +0 -25
- package/www/types/params/process_params/LivenessParams.d.ts +0 -18
- package/www/types/params/process_params/ProcessParams.d.ts +5 -11
- package/www/capacitor/params/process_params/FilterObject.js +0 -60
- package/www/react-native/params/process_params/FilterObject.js +0 -60
- package/www/types/params/process_params/FilterObject.d.ts +0 -32
|
@@ -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 {
|
|
98
|
-
import {
|
|
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
|
|
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 {
|
|
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
|
-
};
|
package/www/types/index.d.ts
CHANGED
|
@@ -92,17 +92,16 @@ import { Extension } from './results/rfid/Extension';
|
|
|
92
92
|
import { AccessControlProcedureType } from './results/rfid/AccessControlProcedureType';
|
|
93
93
|
export { SecurityObject, CardProperties, DataField, Attribute, SignerInfo, SecurityObjectCertificates, CertificateChain, Authority, File, RFIDValue, RFIDValidity, RFIDDataFileType, CertificateData, FileData, RFIDCertificateType, RFIDSessionData, Application, RFIDApplicationType, RFIDAccessControlProcedureType, Extension, AccessControlProcedureType };
|
|
94
94
|
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import { ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes, FilterCheckType } from './params/process_params/ProcessParams';
|
|
95
|
+
import { LivenessParams } from './params/process_params/LivenessParams';
|
|
96
|
+
import { ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes } from './params/process_params/ProcessParams';
|
|
98
97
|
import { GlaresCheckParams } from './params/process_params/GlaresCheckParams';
|
|
99
98
|
import { FaceApiParams } from './params/process_params/FaceApiParams';
|
|
100
99
|
import { RFIDParams } from './params/process_params/RFIDParams';
|
|
101
100
|
import { ImageQA } from './params/process_params/ImageQA';
|
|
102
|
-
import { AuthenticityParams
|
|
101
|
+
import { AuthenticityParams } from './params/process_params/AuthenticityParams';
|
|
103
102
|
import { BackendProcessingConfig } from './params/process_params/BackendProcessingConfig';
|
|
104
103
|
import { FaceApiSearchParams } from './params/process_params/FaceApiSearchParams';
|
|
105
|
-
export {
|
|
104
|
+
export { LivenessParams, ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes, GlaresCheckParams, FaceApiParams, RFIDParams, ImageQA, AuthenticityParams,BackendProcessingConfig, FaceApiSearchParams };
|
|
106
105
|
|
|
107
106
|
import { Functionality, CameraPosition, CaptureMode, CameraMode, CaptureSessionPreset, DocReaderFrame, CameraSize } from './params/Functionality';
|
|
108
107
|
export { Functionality, CameraPosition, CaptureMode, CameraMode, CaptureSessionPreset, DocReaderFrame, CameraSize };
|
|
@@ -346,7 +345,7 @@ export class DocumentReader {
|
|
|
346
345
|
*
|
|
347
346
|
* @param certificates - PKD certificates.
|
|
348
347
|
*/
|
|
349
|
-
addPKDCertificates(certificates: [
|
|
348
|
+
addPKDCertificates(certificates: PKDCertificate[]): void;
|
|
350
349
|
|
|
351
350
|
/** It's used to remove certificates from your app that are used during the
|
|
352
351
|
* RFID chip processing.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { FilterObject } from "./FilterObject";
|
|
2
1
|
import { LivenessParams } from "./LivenessParams";
|
|
3
2
|
|
|
4
3
|
export declare class AuthenticityParams {
|
|
@@ -23,33 +22,9 @@ export declare class AuthenticityParams {
|
|
|
23
22
|
checkLetterScreen?: boolean;
|
|
24
23
|
checkSecurityText?: boolean;
|
|
25
24
|
|
|
26
|
-
setCheckFilter(checkType: AuthenticityCheckType, filter: FilterObject): void;
|
|
27
|
-
|
|
28
|
-
removeCheckFilter(checkType: AuthenticityCheckType): void;
|
|
29
|
-
|
|
30
|
-
clearCheckFilter(): void;
|
|
31
|
-
|
|
32
25
|
/**
|
|
33
26
|
* Allows you to deserialize object.
|
|
34
27
|
* @param jsonObject
|
|
35
28
|
*/
|
|
36
29
|
static fromJson(jsonObject: any): AuthenticityParams;
|
|
37
30
|
}
|
|
38
|
-
|
|
39
|
-
export declare enum AuthenticityCheckType {
|
|
40
|
-
USE_LIVENESS = "checkLiveness",
|
|
41
|
-
UV_LUMINISCENCE = "checkUVLuminiscence",
|
|
42
|
-
IR_B900 = "checkIRB900",
|
|
43
|
-
IMAGE_PATTERNS = "checkImagePatterns",
|
|
44
|
-
FIBERS = "checkFibers",
|
|
45
|
-
EXT_MRZ = "checkExtMRZ",
|
|
46
|
-
EXT_OCR = "checkExtOCR",
|
|
47
|
-
AXIAL = "checkAxial",
|
|
48
|
-
BARCODE_FORMAT = "checkBarcodeFormat",
|
|
49
|
-
IR_VISIBILITY = "checkIRVisibility",
|
|
50
|
-
IPI = "checkIPI",
|
|
51
|
-
PHOTO_EMBEDDING = "checkPhotoEmbedding",
|
|
52
|
-
PHOTO_COMPARISON = "checkPhotoComparison",
|
|
53
|
-
LETTER_SCREEN = "checkLetterScreen",
|
|
54
|
-
SECURITY_TEXT = "checkSecurityText",
|
|
55
|
-
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { FilterObject } from "./FilterObject";
|
|
2
|
-
|
|
3
1
|
export declare class LivenessParams {
|
|
4
2
|
checkOVI?: boolean;
|
|
5
3
|
checkMLI?: boolean;
|
|
@@ -14,25 +12,9 @@ export declare class LivenessParams {
|
|
|
14
12
|
|
|
15
13
|
checkGeometry?: boolean;
|
|
16
14
|
|
|
17
|
-
setCheckFilter(checkType: LivenessCheckType, filter: FilterObject): void;
|
|
18
|
-
|
|
19
|
-
removeCheckFilter(checkType: LivenessCheckType): void;
|
|
20
|
-
|
|
21
|
-
clearCheckFilter(): void;
|
|
22
|
-
|
|
23
15
|
/**
|
|
24
16
|
* Allows you to deserialize object.
|
|
25
17
|
* @param jsonObject
|
|
26
18
|
*/
|
|
27
19
|
static fromJson(jsonObject: any): LivenessParams;
|
|
28
20
|
}
|
|
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,4 +1,3 @@
|
|
|
1
|
-
import { FilterObject } from "./FilterObject";
|
|
2
1
|
import { AuthenticityParams } from "./AuthenticityParams";
|
|
3
2
|
import { BackendProcessingConfig } from "./BackendProcessingConfig";
|
|
4
3
|
import { FaceApiParams } from "./FaceApiParams";
|
|
@@ -202,6 +201,11 @@ export declare class ProcessParams {
|
|
|
202
201
|
* When enabled, this parameter marks security checks that don’t meet minimum requirements as 'Failed' (instead of 'WasNotDone'), which causes the overall security status to be 'Failed'.
|
|
203
202
|
*/
|
|
204
203
|
strictSecurityChecks?: boolean;
|
|
204
|
+
/**
|
|
205
|
+
* Allows transliteration to be turned on or off.
|
|
206
|
+
* Default: `true`.
|
|
207
|
+
*/
|
|
208
|
+
returnTransliteratedFields?: boolean;
|
|
205
209
|
/**
|
|
206
210
|
* There are documents that contain barcodes which data can be parsed only
|
|
207
211
|
* if document type verification is performed. The following property allows
|
|
@@ -416,12 +420,6 @@ export declare class ProcessParams {
|
|
|
416
420
|
*/
|
|
417
421
|
customParams?: Record<string, any>;
|
|
418
422
|
|
|
419
|
-
setCheckFilter(checkType: FilterCheckType, filter: FilterObject): void;
|
|
420
|
-
|
|
421
|
-
removeCheckFilter(checkType: FilterCheckType): void;
|
|
422
|
-
|
|
423
|
-
clearCheckFilter(): void;
|
|
424
|
-
|
|
425
423
|
/**
|
|
426
424
|
* Allows you to deserialize object.
|
|
427
425
|
* @param jsonObject
|
|
@@ -478,7 +476,3 @@ export declare enum MrzDetectionModes {
|
|
|
478
476
|
RESIZE_BINARIZE_WINDOW = 1,
|
|
479
477
|
BLUR_BEFORE_BINARIZATION = 2,
|
|
480
478
|
}
|
|
481
|
-
|
|
482
|
-
export declare enum FilterCheckType {
|
|
483
|
-
AUTH = "checkAuth",
|
|
484
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
export class FilterObject {
|
|
2
|
-
docIDsFilter
|
|
3
|
-
docFormatsFilter
|
|
4
|
-
docCategoriesFilter
|
|
5
|
-
docCountriesFilter
|
|
6
|
-
|
|
7
|
-
static fromJson(json) {
|
|
8
|
-
var result = new FilterObject();
|
|
9
|
-
result.docIDsFilter = FilterObjectType.fromJson(json["docIDsFilter"]);
|
|
10
|
-
result.docFormatsFilter = FilterObjectType.fromJson(json["docFormatsFilter"]);
|
|
11
|
-
result.docCategoriesFilter = FilterObjectType.fromJson(json["docCategoriesFilter"]);
|
|
12
|
-
result.docCountriesFilter = FilterObjectType.fromJson(json["docCountriesFilter"]);
|
|
13
|
-
return result;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
toJson() {
|
|
17
|
-
return {
|
|
18
|
-
"docIDsFilter": this.docIDsFilter?.toJson(),
|
|
19
|
-
"docFormatsFilter": this.docFormatsFilter?.toJson(),
|
|
20
|
-
"docCategoriesFilter": this.docCategoriesFilter?.toJson(),
|
|
21
|
-
"docCountriesFilter": this.docCountriesFilter?.toJson()
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export class FilterObjectType {
|
|
27
|
-
_list
|
|
28
|
-
_isInclude
|
|
29
|
-
|
|
30
|
-
static createIncludeList(list) {
|
|
31
|
-
var result = new FilterObjectType();
|
|
32
|
-
result._list = list;
|
|
33
|
-
result._isInclude = true;
|
|
34
|
-
return result;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
static createExcludeList(list) {
|
|
38
|
-
var result = new FilterObjectType();
|
|
39
|
-
result._list = list;
|
|
40
|
-
result._isInclude = false;
|
|
41
|
-
return result;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
static fromJson(json) {
|
|
45
|
-
if (json == null) return null;
|
|
46
|
-
if (json["isInclude"]) {
|
|
47
|
-
return FilterObjectType.createIncludeList(json["list"]);
|
|
48
|
-
} else {
|
|
49
|
-
return FilterObjectType.createExcludeList(json["list"]);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
toJson() {
|
|
54
|
-
return {
|
|
55
|
-
"list": this._list,
|
|
56
|
-
"isInclude": this._isInclude,
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
export class FilterObject {
|
|
2
|
-
docIDsFilter
|
|
3
|
-
docFormatsFilter
|
|
4
|
-
docCategoriesFilter
|
|
5
|
-
docCountriesFilter
|
|
6
|
-
|
|
7
|
-
static fromJson(json) {
|
|
8
|
-
var result = new FilterObject();
|
|
9
|
-
result.docIDsFilter = FilterObjectType.fromJson(json["docIDsFilter"]);
|
|
10
|
-
result.docFormatsFilter = FilterObjectType.fromJson(json["docFormatsFilter"]);
|
|
11
|
-
result.docCategoriesFilter = FilterObjectType.fromJson(json["docCategoriesFilter"]);
|
|
12
|
-
result.docCountriesFilter = FilterObjectType.fromJson(json["docCountriesFilter"]);
|
|
13
|
-
return result;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
toJson() {
|
|
17
|
-
return {
|
|
18
|
-
"docIDsFilter": this.docIDsFilter?.toJson(),
|
|
19
|
-
"docFormatsFilter": this.docFormatsFilter?.toJson(),
|
|
20
|
-
"docCategoriesFilter": this.docCategoriesFilter?.toJson(),
|
|
21
|
-
"docCountriesFilter": this.docCountriesFilter?.toJson()
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export class FilterObjectType {
|
|
27
|
-
_list
|
|
28
|
-
_isInclude
|
|
29
|
-
|
|
30
|
-
static createIncludeList(list) {
|
|
31
|
-
var result = new FilterObjectType();
|
|
32
|
-
result._list = list;
|
|
33
|
-
result._isInclude = true;
|
|
34
|
-
return result;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
static createExcludeList(list) {
|
|
38
|
-
var result = new FilterObjectType();
|
|
39
|
-
result._list = list;
|
|
40
|
-
result._isInclude = false;
|
|
41
|
-
return result;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
static fromJson(json) {
|
|
45
|
-
if (json == null) return null;
|
|
46
|
-
if (json["isInclude"]) {
|
|
47
|
-
return FilterObjectType.createIncludeList(json["list"]);
|
|
48
|
-
} else {
|
|
49
|
-
return FilterObjectType.createExcludeList(json["list"]);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
toJson() {
|
|
54
|
-
return {
|
|
55
|
-
"list": this._list,
|
|
56
|
-
"isInclude": this._isInclude,
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
}
|