@regulaforensics/document-reader 9.2.610-rc → 9.2.613-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 +2 -9
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +13 -0
- package/examples/capacitor/package.json +1 -1
- package/examples/ionic/package-lock.json +60 -117
- package/examples/ionic/package.json +1 -1
- package/examples/react_native/package.json +1 -1
- package/ios/RGLWConfig.m +7 -12
- package/ios/RGLWJSONConstructor.h +2 -0
- package/ios/RGLWJSONConstructor.m +18 -0
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/json.tsx +4 -3
- package/test/package-lock.json +1 -1
- package/test/test.tsx +3 -2
- package/www/capacitor/index.js +3 -2
- package/www/capacitor/params/process_params/Bsi.js +23 -0
- package/www/capacitor/params/process_params/ProcessParams.js +9 -17
- package/www/cordova.js +139 -108
- package/www/react-native/index.js +3 -2
- package/www/react-native/params/process_params/Bsi.js +23 -0
- package/www/react-native/params/process_params/ProcessParams.js +9 -17
- package/www/types/index.d.ts +3 -2
- package/www/types/params/process_params/Bsi.d.ts +3 -0
- package/www/types/params/process_params/ProcessParams.d.ts +2 -6
|
@@ -99,15 +99,16 @@ import { AccessControlProcedureType } from './results/rfid/AccessControlProcedur
|
|
|
99
99
|
export { SecurityObject, CardProperties, DataField, Attribute, SignerInfo, SecurityObjectCertificates, CertificateChain, Authority, File, RFIDValue, RFIDValidity, RFIDDataFileType, CertificateData, FileData, RFIDCertificateType, RFIDSessionData, Application, RFIDApplicationType, RFIDAccessControlProcedureType, Extension, AccessControlProcedureType };
|
|
100
100
|
|
|
101
101
|
import { LivenessParams } from './params/process_params/LivenessParams';
|
|
102
|
-
import { ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes
|
|
102
|
+
import { ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes } from './params/process_params/ProcessParams';
|
|
103
103
|
import { GlaresCheckParams } from './params/process_params/GlaresCheckParams';
|
|
104
104
|
import { FaceApiParams } from './params/process_params/FaceApiParams';
|
|
105
105
|
import { RFIDParams } from './params/process_params/RFIDParams';
|
|
106
106
|
import { ImageQA } from './params/process_params/ImageQA';
|
|
107
107
|
import { AuthenticityParams } from './params/process_params/AuthenticityParams';
|
|
108
108
|
import { BackendProcessingConfig } from './params/process_params/BackendProcessingConfig';
|
|
109
|
+
import { Bsi } from './params/process_params/Bsi';
|
|
109
110
|
import { FaceApiSearchParams } from './params/process_params/FaceApiSearchParams';
|
|
110
|
-
export { LivenessParams, ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes,
|
|
111
|
+
export { LivenessParams, ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes, GlaresCheckParams, FaceApiParams, RFIDParams, ImageQA, AuthenticityParams, BackendProcessingConfig, Bsi, FaceApiSearchParams };
|
|
111
112
|
|
|
112
113
|
import { Functionality, CameraPosition, CaptureMode, CameraMode, CaptureSessionPreset, DocReaderFrame, CameraSize } from './params/Functionality';
|
|
113
114
|
export { Functionality, CameraPosition, CaptureMode, CameraMode, CaptureSessionPreset, DocReaderFrame, CameraSize };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export class Bsi {
|
|
2
|
+
generateResult
|
|
3
|
+
|
|
4
|
+
constructor(params) {
|
|
5
|
+
this.generateResult = params?.generateResult;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
static fromJson(jsonObject) {
|
|
9
|
+
if (jsonObject == null) return null;
|
|
10
|
+
|
|
11
|
+
const result = new Bsi();
|
|
12
|
+
|
|
13
|
+
result.generateResult = jsonObject["generateResult"];
|
|
14
|
+
|
|
15
|
+
return result;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
toJson() {
|
|
19
|
+
return {
|
|
20
|
+
"generateResult": this.generateResult,
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -4,6 +4,7 @@ import { ImageQA } from './ImageQA';
|
|
|
4
4
|
import { RFIDParams } from './RFIDParams';
|
|
5
5
|
import { FaceApiParams } from './FaceApiParams';
|
|
6
6
|
import { BackendProcessingConfig } from './BackendProcessingConfig';
|
|
7
|
+
import { Bsi } from './Bsi';
|
|
7
8
|
import { AuthenticityParams } from './AuthenticityParams';
|
|
8
9
|
|
|
9
10
|
export class ProcessParams {
|
|
@@ -253,12 +254,6 @@ export class ProcessParams {
|
|
|
253
254
|
this._set({ "checkCaptureProcessIntegrity": val });
|
|
254
255
|
}
|
|
255
256
|
|
|
256
|
-
get bsiTr03135() { return this._bsiTr03135; }
|
|
257
|
-
set bsiTr03135(val) {
|
|
258
|
-
this._bsiTr03135 = val;
|
|
259
|
-
this._set({ "bsiTr03135": {"generateResult": val?.generateResult} });
|
|
260
|
-
}
|
|
261
|
-
|
|
262
257
|
get barcodeParserType() { return this._barcodeParserType; }
|
|
263
258
|
set barcodeParserType(val) {
|
|
264
259
|
this._barcodeParserType = val;
|
|
@@ -479,6 +474,12 @@ export class ProcessParams {
|
|
|
479
474
|
this._set({ "backendProcessingConfig": val });
|
|
480
475
|
}
|
|
481
476
|
|
|
477
|
+
get bsiTr03135() { return this._bsiTr03135; }
|
|
478
|
+
set bsiTr03135(val) {
|
|
479
|
+
this._bsiTr03135 = val;
|
|
480
|
+
this._set({ "bsiTr03135": val });
|
|
481
|
+
}
|
|
482
|
+
|
|
482
483
|
_authenticityParams = new AuthenticityParams();
|
|
483
484
|
get authenticityParams() { return this._authenticityParams; }
|
|
484
485
|
set authenticityParams(val) { (this._authenticityParams = val)._apply(); }
|
|
@@ -534,8 +535,6 @@ export class ProcessParams {
|
|
|
534
535
|
result._strictSecurityChecks = jsonObject["strictSecurityChecks"];
|
|
535
536
|
result._returnTransliteratedFields = jsonObject["returnTransliteratedFields"];
|
|
536
537
|
result._checkCaptureProcessIntegrity = jsonObject["checkCaptureProcessIntegrity"];
|
|
537
|
-
if(jsonObject["bsiTr03135"] != null)
|
|
538
|
-
result.bsiTr03135 = new Bsi({generateResult: jsonObject["bsiTr03135"]["generateResult"]});
|
|
539
538
|
result._barcodeParserType = jsonObject["barcodeParserType"];
|
|
540
539
|
result._perspectiveAngle = jsonObject["perspectiveAngle"];
|
|
541
540
|
result._minDPI = jsonObject["minDPI"];
|
|
@@ -573,6 +572,7 @@ export class ProcessParams {
|
|
|
573
572
|
result._rfidParams = RFIDParams.fromJson(jsonObject["rfidParams"]);
|
|
574
573
|
result._faceApiParams = FaceApiParams.fromJson(jsonObject["faceApiParams"]);
|
|
575
574
|
result._backendProcessingConfig = BackendProcessingConfig.fromJson(jsonObject["backendProcessingConfig"]);
|
|
575
|
+
result._bsiTr03135 = Bsi.fromJson(jsonObject["bsiTr03135"]);
|
|
576
576
|
result._authenticityParams = AuthenticityParams.fromJson(jsonObject["authenticityParams"]);
|
|
577
577
|
result._customParams = jsonObject["customParams"];
|
|
578
578
|
|
|
@@ -621,7 +621,6 @@ export class ProcessParams {
|
|
|
621
621
|
"strictSecurityChecks": this.strictSecurityChecks,
|
|
622
622
|
"returnTransliteratedFields": this.returnTransliteratedFields,
|
|
623
623
|
"checkCaptureProcessIntegrity": this.checkCaptureProcessIntegrity,
|
|
624
|
-
"bsiTr03135": {"generateResult": this.bsiTr03135?.generateResult},
|
|
625
624
|
"measureSystem": this.measureSystem,
|
|
626
625
|
"barcodeParserType": this.barcodeParserType,
|
|
627
626
|
"perspectiveAngle": this.perspectiveAngle,
|
|
@@ -659,6 +658,7 @@ export class ProcessParams {
|
|
|
659
658
|
"rfidParams": this.rfidParams?.toJson(),
|
|
660
659
|
"faceApiParams": this.faceApiParams?.toJson(),
|
|
661
660
|
"backendProcessingConfig": this.backendProcessingConfig?.toJson(),
|
|
661
|
+
"bsiTr03135": this.bsiTr03135?.toJson(),
|
|
662
662
|
"authenticityParams": this.authenticityParams?.toJson(),
|
|
663
663
|
"customParams": this.customParams,
|
|
664
664
|
}
|
|
@@ -698,11 +698,3 @@ export const MrzDetectionModes = {
|
|
|
698
698
|
RESIZE_BINARIZE_WINDOW: 1,
|
|
699
699
|
BLUR_BEFORE_BINARIZATION: 2
|
|
700
700
|
};
|
|
701
|
-
|
|
702
|
-
export class Bsi {
|
|
703
|
-
generateResult
|
|
704
|
-
|
|
705
|
-
constructor(options) {
|
|
706
|
-
this.generateResult = options?.generateResult;
|
|
707
|
-
}
|
|
708
|
-
}
|
package/www/types/index.d.ts
CHANGED
|
@@ -97,15 +97,16 @@ import { AccessControlProcedureType } from './results/rfid/AccessControlProcedur
|
|
|
97
97
|
export { SecurityObject, CardProperties, DataField, Attribute, SignerInfo, SecurityObjectCertificates, CertificateChain, Authority, File, RFIDValue, RFIDValidity, RFIDDataFileType, CertificateData, FileData, RFIDCertificateType, RFIDSessionData, Application, RFIDApplicationType, RFIDAccessControlProcedureType, Extension, AccessControlProcedureType };
|
|
98
98
|
|
|
99
99
|
import { LivenessParams } from './params/process_params/LivenessParams';
|
|
100
|
-
import { ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes
|
|
100
|
+
import { ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes } from './params/process_params/ProcessParams';
|
|
101
101
|
import { GlaresCheckParams } from './params/process_params/GlaresCheckParams';
|
|
102
102
|
import { FaceApiParams } from './params/process_params/FaceApiParams';
|
|
103
103
|
import { RFIDParams } from './params/process_params/RFIDParams';
|
|
104
104
|
import { ImageQA } from './params/process_params/ImageQA';
|
|
105
105
|
import { AuthenticityParams } from './params/process_params/AuthenticityParams';
|
|
106
106
|
import { BackendProcessingConfig } from './params/process_params/BackendProcessingConfig';
|
|
107
|
+
import { Bsi } from './params/process_params/Bsi';
|
|
107
108
|
import { FaceApiSearchParams } from './params/process_params/FaceApiSearchParams';
|
|
108
|
-
export { LivenessParams, ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes,
|
|
109
|
+
export { LivenessParams, ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes, GlaresCheckParams, FaceApiParams, RFIDParams, ImageQA, AuthenticityParams,BackendProcessingConfig, Bsi, FaceApiSearchParams };
|
|
109
110
|
|
|
110
111
|
import { Functionality, CameraPosition, CaptureMode, CameraMode, CaptureSessionPreset, DocReaderFrame, CameraSize } from './params/Functionality';
|
|
111
112
|
export { Functionality, CameraPosition, CaptureMode, CameraMode, CaptureSessionPreset, DocReaderFrame, CameraSize };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AuthenticityParams } from "./AuthenticityParams";
|
|
2
2
|
import { BackendProcessingConfig } from "./BackendProcessingConfig";
|
|
3
|
+
import { Bsi } from "./Bsi";
|
|
3
4
|
import { FaceApiParams } from "./FaceApiParams";
|
|
4
5
|
import { ImageQA } from "./ImageQA";
|
|
5
6
|
import { RFIDParams } from "./RFIDParams";
|
|
@@ -207,7 +208,6 @@ export declare class ProcessParams {
|
|
|
207
208
|
*/
|
|
208
209
|
returnTransliteratedFields?: boolean;
|
|
209
210
|
checkCaptureProcessIntegrity?: boolean;
|
|
210
|
-
bsiTr03135?: Bsi;
|
|
211
211
|
/**
|
|
212
212
|
* There are documents that contain barcodes which data can be parsed only
|
|
213
213
|
* if document type verification is performed. The following property allows
|
|
@@ -422,6 +422,7 @@ export declare class ProcessParams {
|
|
|
422
422
|
* Set up the backend processing service parameters.
|
|
423
423
|
*/
|
|
424
424
|
backendProcessingConfig?: BackendProcessingConfig;
|
|
425
|
+
bsiTr03135?: Bsi;
|
|
425
426
|
authenticityParams: AuthenticityParams;
|
|
426
427
|
/**
|
|
427
428
|
* Takes JSON with parameters that are not presented in the DocumentReader.
|
|
@@ -486,8 +487,3 @@ export declare enum MrzDetectionModes {
|
|
|
486
487
|
RESIZE_BINARIZE_WINDOW = 1,
|
|
487
488
|
BLUR_BEFORE_BINARIZATION = 2,
|
|
488
489
|
}
|
|
489
|
-
|
|
490
|
-
export interface Bsi {
|
|
491
|
-
generateResult?: boolean
|
|
492
|
-
}
|
|
493
|
-
|