@regulaforensics/document-reader 8.4.401-beta → 8.4.507-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +11 -31
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +338 -59
- package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +69 -35
- package/android/src/main/java/com/regula/plugin/documentreader/Utils.kt +62 -0
- package/examples/capacitor/ios/App/App/Info.plist +2 -0
- package/examples/capacitor/package-lock.json +9 -9
- package/examples/capacitor/package.json +3 -3
- package/examples/ionic/config.xml +2 -0
- package/examples/ionic/package-lock.json +5262 -2655
- package/examples/ionic/package.json +12 -12
- package/examples/react_native/app.config.ts +3 -1
- package/examples/react_native/package-lock.json +37 -37
- package/examples/react_native/package.json +3 -3
- package/ios/RGLWConfig.m +11 -32
- package/ios/RGLWJSONConstructor.h +19 -1
- package/ios/RGLWJSONConstructor.m +349 -18
- package/ios/RGLWMain.m +49 -46
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/json.tsx +201 -124
- package/test/package-lock.json +1 -1
- package/test/test.tsx +12 -3
- package/www/capacitor/engagement/DataRetrieval.js +55 -0
- package/www/capacitor/engagement/DeviceEngagement.js +30 -0
- package/www/capacitor/engagement/DeviceRetrievalMethod.js +41 -0
- package/www/capacitor/engagement/DocumentRequestMDL.js +212 -0
- package/www/capacitor/engagement/NameSpaceMDL.js +33 -0
- package/www/capacitor/index.js +58 -7
- package/www/capacitor/info/DocReaderException.js +2 -0
- package/www/capacitor/params/Functionality.js +16 -0
- package/www/capacitor/params/customization/Customization.js +8 -0
- 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 +26 -30
- package/www/capacitor/results/Results.js +8 -1
- package/www/capacitor/results/status/AgeStatus.js +35 -0
- package/www/capacitor/results/status/ResultsStatus.js +13 -0
- package/www/capacitor/results/visible_digital_seals/DocFeature.js +23 -0
- package/www/capacitor/results/visible_digital_seals/VDSData.js +75 -0
- package/www/capacitor/results/visual_results/FieldType.js +3 -0
- package/www/capacitor/rfid/PKDCertificate.js +3 -0
- package/www/cordova.js +1276 -683
- package/www/react-native/engagement/DataRetrieval.js +55 -0
- package/www/react-native/engagement/DeviceEngagement.js +30 -0
- package/www/react-native/engagement/DeviceRetrievalMethod.js +41 -0
- package/www/react-native/engagement/DocumentRequestMDL.js +212 -0
- package/www/react-native/engagement/NameSpaceMDL.js +33 -0
- package/www/react-native/index.js +58 -7
- package/www/react-native/info/DocReaderException.js +2 -0
- package/www/react-native/params/Functionality.js +16 -0
- package/www/react-native/params/customization/Customization.js +8 -0
- 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 +26 -30
- package/www/react-native/results/Results.js +8 -1
- package/www/react-native/results/status/AgeStatus.js +35 -0
- package/www/react-native/results/status/ResultsStatus.js +13 -0
- package/www/react-native/results/visible_digital_seals/DocFeature.js +23 -0
- package/www/react-native/results/visible_digital_seals/VDSData.js +75 -0
- package/www/react-native/results/visual_results/FieldType.js +3 -0
- package/www/react-native/rfid/PKDCertificate.js +3 -0
- package/www/types/engagement/DataRetrieval.d.ts +28 -0
- package/www/types/engagement/DeviceEngagement.d.ts +16 -0
- package/www/types/engagement/DeviceRetrievalMethod.d.ts +18 -0
- package/www/types/engagement/DocumentRequestMDL.d.ts +61 -0
- package/www/types/engagement/NameSpaceMDL.d.ts +16 -0
- package/www/types/index.d.ts +40 -8
- package/www/types/info/DocReaderException.d.ts +2 -0
- package/www/types/params/Functionality.d.ts +7 -0
- package/www/types/params/customization/Customization.d.ts +5 -0
- 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 +18 -11
- package/www/types/results/Results.d.ts +9 -1
- package/www/types/results/status/AgeStatus.d.ts +14 -0
- package/www/types/results/status/ResultsStatus.d.ts +9 -0
- package/www/types/results/visible_digital_seals/DocFeature.d.ts +9 -0
- package/www/types/results/visible_digital_seals/VDSData.d.ts +32 -0
- package/www/types/results/visible_digital_seals/VDSNCData.d.ts +1 -1
- package/www/types/results/visual_results/FieldType.d.ts +6 -0
- package/www/types/rfid/PKDCertificate.d.ts +7 -1
- 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
|
@@ -68,6 +68,7 @@ export declare enum ErrorCodes {
|
|
|
68
68
|
CAMERA_NOT_AVAILABLE = 30,
|
|
69
69
|
/** The camera not supported in this scenario. */
|
|
70
70
|
CANNOT_USE_CAMERA_IN_SCENario = 40,
|
|
71
|
+
BLUETOOTH_NO_PERMISSION = 41,
|
|
71
72
|
BACKEND_ONLINE_PROCESSING = 303,
|
|
72
73
|
WRONG_INPUT = 400,
|
|
73
74
|
/** Missing output result. */
|
|
@@ -79,5 +80,6 @@ export declare enum ErrorCodes {
|
|
|
79
80
|
FEATURE_BLUETOOTH_LE_NOT_SUPPORTED = 601,
|
|
80
81
|
APP_BACKGROUND = 700,
|
|
81
82
|
ONLINE_PROCESSING_WRONG_INPUT = 800,
|
|
83
|
+
MDL_EXCEPTION = 900,
|
|
82
84
|
NATIVE_JAVA_EXCEPTION = 1000,
|
|
83
85
|
}
|
|
@@ -135,6 +135,12 @@ export declare class Functionality {
|
|
|
135
135
|
* @default false
|
|
136
136
|
*/
|
|
137
137
|
preventScreenRecording?: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* If it's set to true, system is allowed to hide the visual indicator for returning to the Home Screen in landscape mode.
|
|
140
|
+
*
|
|
141
|
+
* @default true
|
|
142
|
+
*/
|
|
143
|
+
homeIndicatorAutoHide?: boolean;
|
|
138
144
|
/**
|
|
139
145
|
* Allows you to specify a time interval when the Capture button
|
|
140
146
|
* has to be displayed after the document is detected.
|
|
@@ -219,6 +225,7 @@ export declare class Functionality {
|
|
|
219
225
|
* Android only.
|
|
220
226
|
*/
|
|
221
227
|
videoRecordingSizeDownscaleFactor?: number;
|
|
228
|
+
mdlTimeout?: number;
|
|
222
229
|
/**
|
|
223
230
|
* A list of devices that must not use the camera2 API.
|
|
224
231
|
*
|
|
@@ -272,6 +272,11 @@ export declare class Customization {
|
|
|
272
272
|
*/
|
|
273
273
|
cameraPreviewVerticalPositionMultiplier?: number;
|
|
274
274
|
|
|
275
|
+
/**
|
|
276
|
+
* Allows you to change the location of the multipage button.
|
|
277
|
+
*/
|
|
278
|
+
multipageButtonPositionMultiplier?: number;
|
|
279
|
+
|
|
275
280
|
/**
|
|
276
281
|
* Allows you to set any image for the multipage animation (front side). Base64 string.
|
|
277
282
|
*/
|
|
@@ -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,16 @@ 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;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Android only.
|
|
212
|
+
*/
|
|
213
|
+
checkCaptureProcessIntegrity?: boolean;
|
|
205
214
|
/**
|
|
206
215
|
* There are documents that contain barcodes which data can be parsed only
|
|
207
216
|
* if document type verification is performed. The following property allows
|
|
@@ -392,6 +401,14 @@ export declare class ProcessParams {
|
|
|
392
401
|
* Unmodifiable property. Use setter instead of editing.
|
|
393
402
|
*/
|
|
394
403
|
lcidFilter?: LCID[];
|
|
404
|
+
/**
|
|
405
|
+
* If a document contains a Visual zone, you can specify a list of field types that should be excluded from extraction.
|
|
406
|
+
* All field types listed in this array are skipped during processing, while the remaining fields are recognized.
|
|
407
|
+
* This filter is not applicable to the MRZ, barcode or RFID. If the fieldTypesIgnoreFilter is empty, all fields are extracted.
|
|
408
|
+
*
|
|
409
|
+
* Unmodifiable property. Use setter instead of editing.
|
|
410
|
+
*/
|
|
411
|
+
fieldTypesIgnoreFilter?: FieldType[];
|
|
395
412
|
/**
|
|
396
413
|
* Controls properties of {@link ImageQA} checks.
|
|
397
414
|
*/
|
|
@@ -416,12 +433,6 @@ export declare class ProcessParams {
|
|
|
416
433
|
*/
|
|
417
434
|
customParams?: Record<string, any>;
|
|
418
435
|
|
|
419
|
-
setCheckFilter(checkType: FilterCheckType, filter: FilterObject): void;
|
|
420
|
-
|
|
421
|
-
removeCheckFilter(checkType: FilterCheckType): void;
|
|
422
|
-
|
|
423
|
-
clearCheckFilter(): void;
|
|
424
|
-
|
|
425
436
|
/**
|
|
426
437
|
* Allows you to deserialize object.
|
|
427
438
|
* @param jsonObject
|
|
@@ -478,7 +489,3 @@ export declare enum MrzDetectionModes {
|
|
|
478
489
|
RESIZE_BINARIZE_WINDOW = 1,
|
|
479
490
|
BLUR_BEFORE_BINARIZATION = 2,
|
|
480
491
|
}
|
|
481
|
-
|
|
482
|
-
export declare enum FilterCheckType {
|
|
483
|
-
AUTH = "checkAuth",
|
|
484
|
-
}
|
|
@@ -15,6 +15,7 @@ import { VDSNCData } from "./visible_digital_seals/VDSNCData";
|
|
|
15
15
|
import { Position } from "./Position";
|
|
16
16
|
import { DocumentType } from "./DocumentType";
|
|
17
17
|
import { TransactionInfo } from "./TransactionInfo";
|
|
18
|
+
import { VDSData } from "./visible_digital_seals/VDSData";
|
|
18
19
|
|
|
19
20
|
/** Class describing results returned on completion of Document Reader work. */
|
|
20
21
|
export declare class Results {
|
|
@@ -47,6 +48,8 @@ export declare class Results {
|
|
|
47
48
|
readonly barcodeResult: BarcodeResult | null;
|
|
48
49
|
/** Visible Digital Seal data. */
|
|
49
50
|
readonly vdsncData: VDSNCData | null;
|
|
51
|
+
/** Visible Digital Seal data. */
|
|
52
|
+
readonly vdsData: VDSData | null;
|
|
50
53
|
/** DTCVC data. */
|
|
51
54
|
readonly dtcData: string | null;
|
|
52
55
|
/** Document processing finish status, one of RGLProcessingFinishedStatus values. */
|
|
@@ -279,5 +282,10 @@ export declare enum ResultType {
|
|
|
279
282
|
*/
|
|
280
283
|
RFID_ORIGINAL_GRAPHICS = 105,
|
|
281
284
|
/** Digital Travel Credential data. */
|
|
282
|
-
RFID_DTC_VC = 109
|
|
285
|
+
RFID_DTC_VC = 109,
|
|
286
|
+
MDL_PARSED_RESPONSE = 121,
|
|
287
|
+
/** VDS_NC. */
|
|
288
|
+
VDS_NC = 124,
|
|
289
|
+
/** VDS. */
|
|
290
|
+
VDS = 125,
|
|
283
291
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CheckResult } from "./CheckResult";
|
|
2
|
+
|
|
3
|
+
/** Container for an age related scanning statuses. */
|
|
4
|
+
export declare class AgeStatus {
|
|
5
|
+
readonly threshold: number | null;
|
|
6
|
+
readonly overThreshold: CheckResult;
|
|
7
|
+
readonly over18: CheckResult;
|
|
8
|
+
readonly over21: CheckResult;
|
|
9
|
+
readonly over25: CheckResult;
|
|
10
|
+
readonly over65: CheckResult;
|
|
11
|
+
|
|
12
|
+
/** Allows you to deserialize object. */
|
|
13
|
+
static fromJson(jsonObject: any): AgeStatus | null;
|
|
14
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CheckResult } from "./CheckResult";
|
|
2
2
|
import { OpticalStatus } from "./OpticalStatus";
|
|
3
|
+
import { AgeStatus } from "./AgeStatus";
|
|
3
4
|
import { RFIDStatus } from "./RFIDStatus";
|
|
4
5
|
|
|
5
6
|
/** Provision of document verification status. */
|
|
@@ -18,6 +19,14 @@ export declare class ResultsStatus {
|
|
|
18
19
|
readonly portrait: CheckResult;
|
|
19
20
|
/** Verification status for document data against database. */
|
|
20
21
|
readonly stopList: CheckResult;
|
|
22
|
+
/** Summary of all mDL results. */
|
|
23
|
+
readonly mDL: CheckResult;
|
|
24
|
+
/** Summary of all age results. */
|
|
25
|
+
readonly age: CheckResult;
|
|
26
|
+
/** Android only. */
|
|
27
|
+
readonly captureProcessIntegrity: CheckResult | null;
|
|
28
|
+
/** Container for an age related scanning statuses. */
|
|
29
|
+
readonly ageStatus: AgeStatus;
|
|
21
30
|
|
|
22
31
|
/** Allows you to deserialize object. */
|
|
23
32
|
static fromJson(jsonObject: any): ResultsStatus | null;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CertificateChain } from "../rfid/CertificateChain";
|
|
2
|
+
import { BytesData } from './BytesData';
|
|
3
|
+
import { DocFeature } from "./DocFeature";
|
|
4
|
+
|
|
5
|
+
/** Visible Digital Seal. */
|
|
6
|
+
export declare class VDSData {
|
|
7
|
+
readonly type?: number;
|
|
8
|
+
readonly docType?: number;
|
|
9
|
+
readonly featureRef?: number;
|
|
10
|
+
/** Visible Digital Seal use case version. */
|
|
11
|
+
readonly version?: number;
|
|
12
|
+
/** Three letter code identifying the issuing state or organization. */
|
|
13
|
+
readonly issuingCountry?: string;
|
|
14
|
+
readonly docIssueDate?: string;
|
|
15
|
+
/** The binary data of the verified digital signature. */
|
|
16
|
+
readonly signature?: BytesData;
|
|
17
|
+
readonly signatureDate?: string;
|
|
18
|
+
readonly signer?: string;
|
|
19
|
+
readonly certificate?: string;
|
|
20
|
+
/** The certificate chain, used for the digital signature verification. */
|
|
21
|
+
readonly certificateChain: CertificateChain[];
|
|
22
|
+
/** The doc features. */
|
|
23
|
+
readonly docFeatures: DocFeature[];
|
|
24
|
+
/**
|
|
25
|
+
* The list of remarks occured during the scanning procedure.
|
|
26
|
+
* Each element belongs to the {@link LDSParsingErrorCodes} or the {@link LDSParsingNotificationCodes}.
|
|
27
|
+
*/
|
|
28
|
+
readonly notifications: number[];
|
|
29
|
+
|
|
30
|
+
/** Allows you to deserialize object. */
|
|
31
|
+
static fromJson(jsonObject: any): VDSData | null;
|
|
32
|
+
}
|
|
@@ -28,7 +28,7 @@ export declare class VDSNCData {
|
|
|
28
28
|
* The list of remarks occured during the scanning procedure.
|
|
29
29
|
* Each element belongs to the {@link LDSParsingErrorCodes} or the {@link LDSParsingNotificationCodes}.
|
|
30
30
|
*/
|
|
31
|
-
readonly notifications
|
|
31
|
+
readonly notifications: number[];
|
|
32
32
|
|
|
33
33
|
/** Allows you to deserialize object. */
|
|
34
34
|
static fromJson(jsonObject: any): VDSNCData | null;
|
|
@@ -1307,6 +1307,12 @@ export declare enum FieldType {
|
|
|
1307
1307
|
FIRST_ISSUE_DATE_CHECKDIGIT = 698,
|
|
1308
1308
|
/** First issue date checksum. */
|
|
1309
1309
|
FIRST_ISSUE_DATE_CHECKSUM = 699,
|
|
1310
|
+
/** Commercial indicator. */
|
|
1311
|
+
COMMERCIAL_INDICATOR = 701,
|
|
1312
|
+
/** Non-domiciled indicator. */
|
|
1313
|
+
NON_DOMICILED_INDICATOR = 702,
|
|
1314
|
+
/** Jurisdiction specific data. */
|
|
1315
|
+
JURISDICTION_SPECIFIC_DATA = 703,
|
|
1310
1316
|
}
|
|
1311
1317
|
|
|
1312
1318
|
export declare namespace FieldType {
|
|
@@ -26,7 +26,13 @@ export declare enum PKDResourceType {
|
|
|
26
26
|
/** Deviance List (.dl, .dls, .dvl). */
|
|
27
27
|
DEVL = 6,
|
|
28
28
|
/** Black List (.bl, .bls). */
|
|
29
|
-
BL = 7
|
|
29
|
+
BL = 7,
|
|
30
|
+
/** LDIF file contents for TA. */
|
|
31
|
+
LDIF_TA = 8,
|
|
32
|
+
/** Master List with CV certificates for TA. */
|
|
33
|
+
ML_TA = 9,
|
|
34
|
+
/** CBOR List. */
|
|
35
|
+
CBOR = 10,
|
|
30
36
|
}
|
|
31
37
|
|
|
32
38
|
export declare namespace PKDResourceType {
|
|
@@ -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
|
-
}
|