@regulaforensics/document-reader 9.2.613-nightly → 9.2.616-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/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 +9 -2
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +0 -13
- package/examples/capacitor/package.json +1 -1
- package/examples/ionic/package-lock.json +117 -60
- package/examples/ionic/package.json +1 -1
- package/examples/react_native/package.json +1 -1
- package/ios/RGLWConfig.m +12 -7
- package/ios/RGLWJSONConstructor.h +0 -2
- package/ios/RGLWJSONConstructor.m +0 -18
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/json.tsx +3 -4
- package/test/package-lock.json +1 -1
- package/test/test.tsx +2 -3
- package/www/capacitor/index.js +2 -3
- package/www/capacitor/params/process_params/ProcessParams.js +17 -9
- package/www/cordova.js +108 -139
- package/www/react-native/index.js +2 -3
- package/www/react-native/params/process_params/ProcessParams.js +17 -9
- package/www/types/index.d.ts +2 -3
- package/www/types/params/process_params/ProcessParams.d.ts +6 -2
- package/www/capacitor/params/process_params/Bsi.js +0 -23
- package/www/react-native/params/process_params/Bsi.js +0 -23
- package/www/types/params/process_params/Bsi.d.ts +0 -3
|
@@ -4,7 +4,6 @@ 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';
|
|
8
7
|
import { AuthenticityParams } from './AuthenticityParams';
|
|
9
8
|
|
|
10
9
|
export class ProcessParams {
|
|
@@ -254,6 +253,12 @@ export class ProcessParams {
|
|
|
254
253
|
this._set({ "checkCaptureProcessIntegrity": val });
|
|
255
254
|
}
|
|
256
255
|
|
|
256
|
+
get bsiTr03135() { return this._bsiTr03135; }
|
|
257
|
+
set bsiTr03135(val) {
|
|
258
|
+
this._bsiTr03135 = val;
|
|
259
|
+
this._set({ "bsiTr03135": {"generateResult": val?.generateResult} });
|
|
260
|
+
}
|
|
261
|
+
|
|
257
262
|
get barcodeParserType() { return this._barcodeParserType; }
|
|
258
263
|
set barcodeParserType(val) {
|
|
259
264
|
this._barcodeParserType = val;
|
|
@@ -474,12 +479,6 @@ export class ProcessParams {
|
|
|
474
479
|
this._set({ "backendProcessingConfig": val });
|
|
475
480
|
}
|
|
476
481
|
|
|
477
|
-
get bsiTr03135() { return this._bsiTr03135; }
|
|
478
|
-
set bsiTr03135(val) {
|
|
479
|
-
this._bsiTr03135 = val;
|
|
480
|
-
this._set({ "bsiTr03135": val });
|
|
481
|
-
}
|
|
482
|
-
|
|
483
482
|
_authenticityParams = new AuthenticityParams();
|
|
484
483
|
get authenticityParams() { return this._authenticityParams; }
|
|
485
484
|
set authenticityParams(val) { (this._authenticityParams = val)._apply(); }
|
|
@@ -535,6 +534,8 @@ export class ProcessParams {
|
|
|
535
534
|
result._strictSecurityChecks = jsonObject["strictSecurityChecks"];
|
|
536
535
|
result._returnTransliteratedFields = jsonObject["returnTransliteratedFields"];
|
|
537
536
|
result._checkCaptureProcessIntegrity = jsonObject["checkCaptureProcessIntegrity"];
|
|
537
|
+
if(jsonObject["bsiTr03135"] != null)
|
|
538
|
+
result.bsiTr03135 = new Bsi({generateResult: jsonObject["bsiTr03135"]["generateResult"]});
|
|
538
539
|
result._barcodeParserType = jsonObject["barcodeParserType"];
|
|
539
540
|
result._perspectiveAngle = jsonObject["perspectiveAngle"];
|
|
540
541
|
result._minDPI = jsonObject["minDPI"];
|
|
@@ -572,7 +573,6 @@ export class ProcessParams {
|
|
|
572
573
|
result._rfidParams = RFIDParams.fromJson(jsonObject["rfidParams"]);
|
|
573
574
|
result._faceApiParams = FaceApiParams.fromJson(jsonObject["faceApiParams"]);
|
|
574
575
|
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,6 +621,7 @@ export class ProcessParams {
|
|
|
621
621
|
"strictSecurityChecks": this.strictSecurityChecks,
|
|
622
622
|
"returnTransliteratedFields": this.returnTransliteratedFields,
|
|
623
623
|
"checkCaptureProcessIntegrity": this.checkCaptureProcessIntegrity,
|
|
624
|
+
"bsiTr03135": {"generateResult": this.bsiTr03135?.generateResult},
|
|
624
625
|
"measureSystem": this.measureSystem,
|
|
625
626
|
"barcodeParserType": this.barcodeParserType,
|
|
626
627
|
"perspectiveAngle": this.perspectiveAngle,
|
|
@@ -658,7 +659,6 @@ export class ProcessParams {
|
|
|
658
659
|
"rfidParams": this.rfidParams?.toJson(),
|
|
659
660
|
"faceApiParams": this.faceApiParams?.toJson(),
|
|
660
661
|
"backendProcessingConfig": this.backendProcessingConfig?.toJson(),
|
|
661
|
-
"bsiTr03135": this.bsiTr03135?.toJson(),
|
|
662
662
|
"authenticityParams": this.authenticityParams?.toJson(),
|
|
663
663
|
"customParams": this.customParams,
|
|
664
664
|
}
|
|
@@ -698,3 +698,11 @@ 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,16 +97,15 @@ 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 } from './params/process_params/ProcessParams';
|
|
100
|
+
import { ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes, Bsi } 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';
|
|
108
107
|
import { FaceApiSearchParams } from './params/process_params/FaceApiSearchParams';
|
|
109
|
-
export { LivenessParams, ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes, GlaresCheckParams, FaceApiParams, RFIDParams, ImageQA, AuthenticityParams,BackendProcessingConfig,
|
|
108
|
+
export { LivenessParams, ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes, Bsi, GlaresCheckParams, FaceApiParams, RFIDParams, ImageQA, AuthenticityParams,BackendProcessingConfig, FaceApiSearchParams };
|
|
110
109
|
|
|
111
110
|
import { Functionality, CameraPosition, CaptureMode, CameraMode, CaptureSessionPreset, DocReaderFrame, CameraSize } from './params/Functionality';
|
|
112
111
|
export { Functionality, CameraPosition, CaptureMode, CameraMode, CaptureSessionPreset, DocReaderFrame, CameraSize };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AuthenticityParams } from "./AuthenticityParams";
|
|
2
2
|
import { BackendProcessingConfig } from "./BackendProcessingConfig";
|
|
3
|
-
import { Bsi } from "./Bsi";
|
|
4
3
|
import { FaceApiParams } from "./FaceApiParams";
|
|
5
4
|
import { ImageQA } from "./ImageQA";
|
|
6
5
|
import { RFIDParams } from "./RFIDParams";
|
|
@@ -208,6 +207,7 @@ export declare class ProcessParams {
|
|
|
208
207
|
*/
|
|
209
208
|
returnTransliteratedFields?: boolean;
|
|
210
209
|
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,7 +422,6 @@ export declare class ProcessParams {
|
|
|
422
422
|
* Set up the backend processing service parameters.
|
|
423
423
|
*/
|
|
424
424
|
backendProcessingConfig?: BackendProcessingConfig;
|
|
425
|
-
bsiTr03135?: Bsi;
|
|
426
425
|
authenticityParams: AuthenticityParams;
|
|
427
426
|
/**
|
|
428
427
|
* Takes JSON with parameters that are not presented in the DocumentReader.
|
|
@@ -487,3 +486,8 @@ export declare enum MrzDetectionModes {
|
|
|
487
486
|
RESIZE_BINARIZE_WINDOW = 1,
|
|
488
487
|
BLUR_BEFORE_BINARIZATION = 2,
|
|
489
488
|
}
|
|
489
|
+
|
|
490
|
+
export interface Bsi {
|
|
491
|
+
generateResult?: boolean
|
|
492
|
+
}
|
|
493
|
+
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
}
|