@regulaforensics/document-reader 7.2.423-rc → 7.2.424-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.
- 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 +1 -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 +0 -23
- package/examples/capacitor/package.json +1 -1
- package/examples/ionic/package-lock.json +8 -8
- package/examples/ionic/package.json +1 -1
- package/examples/react_native/package-lock.json +4 -4
- package/examples/react_native/package.json +1 -1
- package/ios/RGLWConfig.m +0 -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 +0 -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 +0 -44
- package/www/capacitor/params/process_params/LivenessParams.js +0 -36
- package/www/capacitor/params/process_params/ProcessParams.js +0 -30
- package/www/cordova.js +89 -287
- package/www/react-native/index.js +4 -5
- package/www/react-native/params/process_params/AuthenticityParams.js +0 -44
- package/www/react-native/params/process_params/LivenessParams.js +0 -36
- package/www/react-native/params/process_params/ProcessParams.js +0 -30
- package/www/types/index.d.ts +4 -5
- 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 +0 -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; }
|
|
@@ -96,28 +95,6 @@ export class AuthenticityParams {
|
|
|
96
95
|
this._set({ "checkSecurityText": val });
|
|
97
96
|
}
|
|
98
97
|
|
|
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": '' });
|
|
119
|
-
}
|
|
120
|
-
|
|
121
98
|
static fromJson(jsonObject) {
|
|
122
99
|
if (jsonObject == null) return new AuthenticityParams();
|
|
123
100
|
|
|
@@ -139,8 +116,6 @@ export class AuthenticityParams {
|
|
|
139
116
|
result._checkPhotoComparison = jsonObject["checkPhotoComparison"];
|
|
140
117
|
result._checkLetterScreen = jsonObject["checkLetterScreen"];
|
|
141
118
|
result._checkSecurityText = jsonObject["checkSecurityText"];
|
|
142
|
-
result._checkFilters = Object.fromEntries(Object.entries(jsonObject["checkFilters"] ?? {})
|
|
143
|
-
.map(([k, v]) => [k, FilterObject.fromJson(v)]));
|
|
144
119
|
|
|
145
120
|
return result;
|
|
146
121
|
}
|
|
@@ -170,25 +145,6 @@ export class AuthenticityParams {
|
|
|
170
145
|
"checkPhotoComparison": this.checkPhotoComparison,
|
|
171
146
|
"checkLetterScreen": this.checkLetterScreen,
|
|
172
147
|
"checkSecurityText": this.checkSecurityText,
|
|
173
|
-
"checkFilters": Object.fromEntries(Object.entries(this._checkFilters).map(([k, v]) => [k, v.toJson()])),
|
|
174
148
|
}
|
|
175
149
|
}
|
|
176
150
|
}
|
|
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": '' });
|
|
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; }
|
|
@@ -470,28 +469,6 @@ export class ProcessParams {
|
|
|
470
469
|
this._set({ "customParams": val });
|
|
471
470
|
}
|
|
472
471
|
|
|
473
|
-
_checkFilters = {};
|
|
474
|
-
|
|
475
|
-
setCheckFilter(checkType, filter) {
|
|
476
|
-
this._checkFilters[checkType] = filter;
|
|
477
|
-
this._set({
|
|
478
|
-
"setCheckFilter": {
|
|
479
|
-
"checkType": checkType,
|
|
480
|
-
"filterObject": filter.toJson(),
|
|
481
|
-
},
|
|
482
|
-
});
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
removeCheckFilter(checkType) {
|
|
486
|
-
delete this._checkFilters[checkType];
|
|
487
|
-
this._set({ "removeCheckFilter": checkType });
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
clearCheckFilter() {
|
|
491
|
-
this._checkFilters = {};
|
|
492
|
-
this._set({ "clearCheckFilter": '' });
|
|
493
|
-
}
|
|
494
|
-
|
|
495
472
|
static fromJson(jsonObject) {
|
|
496
473
|
if (jsonObject == null) return new ProcessParams();
|
|
497
474
|
const result = new ProcessParams();
|
|
@@ -574,8 +551,6 @@ export class ProcessParams {
|
|
|
574
551
|
result._backendProcessingConfig = BackendProcessingConfig.fromJson(jsonObject["backendProcessingConfig"]);
|
|
575
552
|
result._authenticityParams = AuthenticityParams.fromJson(jsonObject["authenticityParams"]);
|
|
576
553
|
result._customParams = jsonObject["customParams"];
|
|
577
|
-
result._checkFilters = Object.fromEntries(Object.entries(jsonObject["checkFilters"] ?? {})
|
|
578
|
-
.map(([k, v]) => [k, FilterObject.fromJson(v)]));
|
|
579
554
|
|
|
580
555
|
return result;
|
|
581
556
|
}
|
|
@@ -659,7 +634,6 @@ export class ProcessParams {
|
|
|
659
634
|
"backendProcessingConfig": this.backendProcessingConfig?.toJson(),
|
|
660
635
|
"authenticityParams": this.authenticityParams?.toJson(),
|
|
661
636
|
"customParams": this.customParams,
|
|
662
|
-
"checkFilters": Object.fromEntries(Object.entries(this._checkFilters).map(([k, v]) => [k, v.toJson()])),
|
|
663
637
|
}
|
|
664
638
|
}
|
|
665
639
|
|
|
@@ -697,7 +671,3 @@ export const MrzDetectionModes = {
|
|
|
697
671
|
RESIZE_BINARIZE_WINDOW: 1,
|
|
698
672
|
BLUR_BEFORE_BINARIZATION: 2
|
|
699
673
|
};
|
|
700
|
-
|
|
701
|
-
export const FilterCheckType = {
|
|
702
|
-
AUTH: "checkAuth",
|
|
703
|
-
};
|
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 };
|
|
@@ -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";
|
|
@@ -421,12 +420,6 @@ export declare class ProcessParams {
|
|
|
421
420
|
*/
|
|
422
421
|
customParams?: Record<string, any>;
|
|
423
422
|
|
|
424
|
-
setCheckFilter(checkType: FilterCheckType, filter: FilterObject): void;
|
|
425
|
-
|
|
426
|
-
removeCheckFilter(checkType: FilterCheckType): void;
|
|
427
|
-
|
|
428
|
-
clearCheckFilter(): void;
|
|
429
|
-
|
|
430
423
|
/**
|
|
431
424
|
* Allows you to deserialize object.
|
|
432
425
|
* @param jsonObject
|
|
@@ -483,7 +476,3 @@ export declare enum MrzDetectionModes {
|
|
|
483
476
|
RESIZE_BINARIZE_WINDOW = 1,
|
|
484
477
|
BLUR_BEFORE_BINARIZATION = 2,
|
|
485
478
|
}
|
|
486
|
-
|
|
487
|
-
export declare enum FilterCheckType {
|
|
488
|
-
AUTH = "checkAuth",
|
|
489
|
-
}
|
|
@@ -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
|
-
}
|