@regulaforensics/document-reader 9.3.686-rc → 9.3.688-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.
@@ -5,7 +5,7 @@ source = File.join(__dir__, 'ios')
5
5
 
6
6
  Pod::Spec.new do |s|
7
7
  s.name = 'RNDocumentReader'
8
- s.version = '9.3.686-rc'
8
+ s.version = '9.3.688-nightly'
9
9
  s.summary = package['description']
10
10
  s.license = package['license']
11
11
 
@@ -16,6 +16,6 @@ Pod::Spec.new do |s|
16
16
  s.ios.deployment_target = '13.0'
17
17
  s.source_files = 'ios/**/*.{h,m}'
18
18
  s.exclude_files = [ 'ios/CVDDocumentReader.h', 'ios/CVDDocumentReader.m' ]
19
- s.dependency 'DocumentReaderStage', '9.3.6115'
19
+ s.dependency 'DocumentReaderNightly', '9.3.6121'
20
20
  s.dependency 'React'
21
21
  end
@@ -20,7 +20,7 @@ android {
20
20
  rootProject.allprojects {
21
21
  repositories {
22
22
  maven {
23
- url "https://maven.regulaforensics.com/RegulaDocumentReader/Stage"
23
+ url "https://maven.regulaforensics.com/RegulaDocumentReader/Nightly"
24
24
  }
25
25
  }
26
26
  }
@@ -29,7 +29,7 @@ dependencies {
29
29
  //noinspection GradleDynamicVersion
30
30
  implementation 'com.facebook.react:react-native:+'
31
31
  //noinspection GradleDependency
32
- implementation('com.regula.documentreader:api:9.3.12639'){
32
+ implementation('com.regula.documentreader:api:9.3.12640'){
33
33
  transitive = true
34
34
  }
35
35
  }
@@ -1,12 +1,12 @@
1
1
  repositories {
2
2
  maven {
3
- url "https://maven.regulaforensics.com/RegulaDocumentReader/Stage"
3
+ url "https://maven.regulaforensics.com/RegulaDocumentReader/Nightly"
4
4
  }
5
5
  }
6
6
 
7
7
  dependencies {
8
8
  //noinspection GradleDependency
9
- implementation('com.regula.documentreader:api:9.3.12639'){
9
+ implementation('com.regula.documentreader:api:9.3.12640'){
10
10
  transitive = true
11
11
  }
12
12
  }
@@ -6,9 +6,9 @@
6
6
  "android": "scripts/android.sh"
7
7
  },
8
8
  "dependencies": {
9
- "@regulaforensics/document-reader": "9.3.686-rc",
10
- "@regulaforensics/document-reader-core-fullauthrfid": "9.3.1758-rc",
11
- "@regulaforensics/document-reader-btdevice": "9.1.33-rc",
9
+ "@regulaforensics/document-reader": "9.3.688-nightly",
10
+ "@regulaforensics/document-reader-core-fullauthrfid": "9.2.1513",
11
+ "@regulaforensics/document-reader-btdevice": "9.1.35",
12
12
  "@awesome-cordova-plugins/file": "^8.1.0",
13
13
  "@awesome-cordova-plugins/camera": "^8.1.0",
14
14
  "cordova-plugin-file": "^8.1.3",
@@ -18,9 +18,9 @@
18
18
  "@ionic/cordova-builders": "^12.3.0",
19
19
  "@awesome-cordova-plugins/camera": "^8.1.0",
20
20
  "@awesome-cordova-plugins/file": "^8.1.0",
21
- "@regulaforensics/document-reader": "9.3.686-rc",
22
- "@regulaforensics/document-reader-core-fullauthrfid": "9.3.1758-rc",
23
- "@regulaforensics/document-reader-btdevice": "9.1.33-rc",
21
+ "@regulaforensics/document-reader": "9.3.688-nightly",
22
+ "@regulaforensics/document-reader-core-fullauthrfid": "9.2.1513",
23
+ "@regulaforensics/document-reader-btdevice": "9.1.35",
24
24
  "cordova-android": "^14.0.1",
25
25
  "cordova-ios": "^7.1.1",
26
26
  "cordova-plugin-camera": "^8.0.0",
@@ -8,9 +8,9 @@
8
8
  "start": "expo start"
9
9
  },
10
10
  "dependencies": {
11
- "@regulaforensics/document-reader": "9.3.686-rc",
12
- "@regulaforensics/document-reader-core-fullauthrfid": "9.3.1758-rc",
13
- "@regulaforensics/document-reader-btdevice": "9.1.33-rc",
11
+ "@regulaforensics/document-reader": "9.3.688-nightly",
12
+ "@regulaforensics/document-reader-core-fullauthrfid": "9.2.1513",
13
+ "@regulaforensics/document-reader-btdevice": "9.1.35",
14
14
  "react-native": "^0.81.4",
15
15
  "react-native-fs": "^2.20.0",
16
16
  "react-native-image-picker": "^8.2.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/document-reader",
3
- "version": "9.3.686-rc",
3
+ "version": "9.3.688-nightly",
4
4
  "description": "This is an npm module for Regula Document Reader SDK. It allows you to read various kinds of identification documents using your phone's camera.",
5
5
  "main": "www/react-native/index.js",
6
6
  "module": "www/capacitor/index.js",
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
- <plugin id="@regulaforensics/document-reader" version="9.3.686-rc" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/document-reader" version="9.3.688-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
3
3
  <name>DocumentReader</name>
4
4
  <description>Cordova plugin for Regula Document Reader SDK</description>
5
5
  <license>commercial</license>
@@ -29,7 +29,7 @@
29
29
  <source url="https://github.com/CocoaPods/Specs.git" />
30
30
  </config>
31
31
  <pods>
32
- <pod name="DocumentReaderStage" spec="9.3.6115" />
32
+ <pod name="DocumentReaderNightly" spec="9.3.6121" />
33
33
  </pods>
34
34
  </podspec>
35
35
  </platform>
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "..": {
15
15
  "name": "@regulaforensics/document-reader",
16
- "version": "9.3.686-rc",
16
+ "version": "9.3.688-nightly",
17
17
  "dev": true,
18
18
  "license": "commercial"
19
19
  },
@@ -1,4 +1,4 @@
1
- import { exec, _setDocumentReaderCompletion, _setRFIDCompletion, _setDocumentReaderPrepareCompletion, _setCustomButtonTappedCompletion, _setVideoEncoderCompletion, _setRFIDProgressCompletion, _setChipDetectedCompletion, _setRetryReadChipCompletion, _setPaCertificateCompletion, _setTaCertificateCompletion, _setTaSignatureCompletion } from './internal/bridge'
1
+ import { exec, serializeInterface, _setDocumentReaderCompletion, _setRFIDCompletion, _setDocumentReaderPrepareCompletion, _setCustomButtonTappedCompletion, _setVideoEncoderCompletion, _setRFIDProgressCompletion, _setChipDetectedCompletion, _setRetryReadChipCompletion, _setPaCertificateCompletion, _setTaCertificateCompletion, _setTaSignatureCompletion } from './internal/bridge'
2
2
 
3
3
  import { OnlineProcessingConfig, ImageFormat, OnlineMode } from './config/OnlineProcessingConfig';
4
4
  import { InitConfig } from './config/InitConfig';
@@ -371,10 +371,12 @@ export class DocumentReader {
371
371
  return this._successOrErrorFromJson(response);
372
372
  }
373
373
 
374
- async finalizePackage(options) {
375
- var funcName = "finalizePackage";
376
- if (options?.config != null) funcName = "finalizePackageWithFinalizeConfig";
377
- var response = await exec(funcName, [options?.config?.toJson()]);
374
+ async finalizePackage(config) {
375
+ var response = await exec(
376
+ config == null ? "finalizePackage" :
377
+ "finalizePackageWithFinalizeConfig",
378
+ [serializeInterface(config, FinalizeConfig)]
379
+ );
378
380
  var jsonObject = JSON.parse(response);
379
381
  var action = jsonObject["action"];
380
382
  var info = TransactionInfo.fromJson(jsonObject["info"]);
@@ -15,6 +15,12 @@ export async function exec(name, params) {
15
15
  return RNDocumentReader.exec(name, params)
16
16
  }
17
17
 
18
+ export function serializeInterface(value, ctor) {
19
+ if (value == null) return null
20
+ if (value instanceof ctor) return value.toJson()
21
+ return (new ctor(value)).toJson()
22
+ }
23
+
18
24
  function _setEvent(id, completion, fromJson) {
19
25
  eventManager.removeAllListeners(id)
20
26
  if (completion == null) return
@@ -1,4 +1,4 @@
1
- import { exec } from '../../internal/bridge';
1
+ import { exec, serializeInterface } from '../../internal/bridge';
2
2
  import { DocumentReader } from '../../index';
3
3
  import { ImageQA } from './ImageQA';
4
4
  import { RFIDParams } from './RFIDParams';
@@ -495,7 +495,7 @@ export class ProcessParams {
495
495
  get bsiTr03135() { return this._bsiTr03135; }
496
496
  set bsiTr03135(val) {
497
497
  this._bsiTr03135 = val;
498
- this._set({ "bsiTr03135": val });
498
+ this._set({ "bsiTr03135": serializeInterface(val, Bsi) });
499
499
  }
500
500
 
501
501
  _authenticityParams = new AuthenticityParams();
@@ -682,7 +682,7 @@ export class ProcessParams {
682
682
  "rfidParams": this.rfidParams?.toJson(),
683
683
  "faceApiParams": this.faceApiParams?.toJson(),
684
684
  "backendProcessingConfig": this.backendProcessingConfig?.toJson(),
685
- "bsiTr03135": this.bsiTr03135?.toJson(),
685
+ "bsiTr03135": serializeInterface(this.bsiTr03135, Bsi),
686
686
  "authenticityParams": this.authenticityParams?.toJson(),
687
687
  "customParams": this.customParams,
688
688
  }
package/www/cordova.js CHANGED
@@ -1099,10 +1099,12 @@ class DocumentReader {
1099
1099
  return this._successOrErrorFromJson(response);
1100
1100
  }
1101
1101
 
1102
- async finalizePackage(options) {
1103
- var funcName = "finalizePackage";
1104
- if (options?.config != null) funcName = "finalizePackageWithFinalizeConfig";
1105
- var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)(funcName, [options?.config?.toJson()]);
1102
+ async finalizePackage(config) {
1103
+ var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)(
1104
+ config == null ? "finalizePackage" :
1105
+ "finalizePackageWithFinalizeConfig",
1106
+ [(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.serializeInterface)(config, _config_FinalizeConfig__WEBPACK_IMPORTED_MODULE_6__.FinalizeConfig)]
1107
+ );
1106
1108
  var jsonObject = JSON.parse(response);
1107
1109
  var action = jsonObject["action"];
1108
1110
  var info = _results_TransactionInfo__WEBPACK_IMPORTED_MODULE_31__.TransactionInfo.fromJson(jsonObject["info"]);
@@ -1726,7 +1728,8 @@ __webpack_require__.r(__webpack_exports__);
1726
1728
  /* harmony export */ _setTaCertificateCompletion: () => (/* binding */ _setTaCertificateCompletion),
1727
1729
  /* harmony export */ _setTaSignatureCompletion: () => (/* binding */ _setTaSignatureCompletion),
1728
1730
  /* harmony export */ _setVideoEncoderCompletion: () => (/* binding */ _setVideoEncoderCompletion),
1729
- /* harmony export */ exec: () => (/* binding */ exec)
1731
+ /* harmony export */ exec: () => (/* binding */ exec),
1732
+ /* harmony export */ serializeInterface: () => (/* binding */ serializeInterface)
1730
1733
  /* harmony export */ });
1731
1734
  /* harmony import */ var _cordova__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cordova */ "./src/internal/cordova.js");
1732
1735
  /* harmony import */ var _results_Results__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../results/Results */ "./src/results/Results.js");
@@ -1753,6 +1756,12 @@ async function exec(name, params) {
1753
1756
  return RNDocumentReader.exec(name, params)
1754
1757
  }
1755
1758
 
1759
+ function serializeInterface(value, ctor) {
1760
+ if (value == null) return null
1761
+ if (value instanceof ctor) return value.toJson()
1762
+ return (new ctor(value)).toJson()
1763
+ }
1764
+
1756
1765
  function _setEvent(id, completion, fromJson) {
1757
1766
  eventManager.removeAllListeners(id)
1758
1767
  if (completion == null) return
@@ -5389,7 +5398,7 @@ class ProcessParams {
5389
5398
  get bsiTr03135() { return this._bsiTr03135; }
5390
5399
  set bsiTr03135(val) {
5391
5400
  this._bsiTr03135 = val;
5392
- this._set({ "bsiTr03135": val });
5401
+ this._set({ "bsiTr03135": (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.serializeInterface)(val, _Bsi__WEBPACK_IMPORTED_MODULE_6__.Bsi) });
5393
5402
  }
5394
5403
 
5395
5404
  _authenticityParams = new _AuthenticityParams__WEBPACK_IMPORTED_MODULE_7__.AuthenticityParams();
@@ -5576,7 +5585,7 @@ class ProcessParams {
5576
5585
  "rfidParams": this.rfidParams?.toJson(),
5577
5586
  "faceApiParams": this.faceApiParams?.toJson(),
5578
5587
  "backendProcessingConfig": this.backendProcessingConfig?.toJson(),
5579
- "bsiTr03135": this.bsiTr03135?.toJson(),
5588
+ "bsiTr03135": (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.serializeInterface)(this.bsiTr03135, _Bsi__WEBPACK_IMPORTED_MODULE_6__.Bsi),
5580
5589
  "authenticityParams": this.authenticityParams?.toJson(),
5581
5590
  "customParams": this.customParams,
5582
5591
  }
@@ -1,4 +1,4 @@
1
- import { exec, _setDocumentReaderCompletion, _setRFIDCompletion, _setDocumentReaderPrepareCompletion, _setCustomButtonTappedCompletion, _setVideoEncoderCompletion, _setRFIDProgressCompletion, _setChipDetectedCompletion, _setRetryReadChipCompletion, _setPaCertificateCompletion, _setTaCertificateCompletion, _setTaSignatureCompletion } from './internal/bridge'
1
+ import { exec, serializeInterface, _setDocumentReaderCompletion, _setRFIDCompletion, _setDocumentReaderPrepareCompletion, _setCustomButtonTappedCompletion, _setVideoEncoderCompletion, _setRFIDProgressCompletion, _setChipDetectedCompletion, _setRetryReadChipCompletion, _setPaCertificateCompletion, _setTaCertificateCompletion, _setTaSignatureCompletion } from './internal/bridge'
2
2
 
3
3
  import { OnlineProcessingConfig, ImageFormat, OnlineMode } from './config/OnlineProcessingConfig';
4
4
  import { InitConfig } from './config/InitConfig';
@@ -371,10 +371,12 @@ export class DocumentReader {
371
371
  return this._successOrErrorFromJson(response);
372
372
  }
373
373
 
374
- async finalizePackage(options) {
375
- var funcName = "finalizePackage";
376
- if (options?.config != null) funcName = "finalizePackageWithFinalizeConfig";
377
- var response = await exec(funcName, [options?.config?.toJson()]);
374
+ async finalizePackage(config) {
375
+ var response = await exec(
376
+ config == null ? "finalizePackage" :
377
+ "finalizePackageWithFinalizeConfig",
378
+ [serializeInterface(config, FinalizeConfig)]
379
+ );
378
380
  var jsonObject = JSON.parse(response);
379
381
  var action = jsonObject["action"];
380
382
  var info = TransactionInfo.fromJson(jsonObject["info"]);
@@ -15,6 +15,12 @@ export async function exec(name, params) {
15
15
  return RNDocumentReader.exec(name, params)
16
16
  }
17
17
 
18
+ export function serializeInterface(value, ctor) {
19
+ if (value == null) return null
20
+ if (value instanceof ctor) return value.toJson()
21
+ return (new ctor(value)).toJson()
22
+ }
23
+
18
24
  function _setEvent(id, completion, fromJson) {
19
25
  eventManager.removeAllListeners(id)
20
26
  if (completion == null) return
@@ -1,4 +1,4 @@
1
- import { exec } from '../../internal/bridge';
1
+ import { exec, serializeInterface } from '../../internal/bridge';
2
2
  import { DocumentReader } from '../../index';
3
3
  import { ImageQA } from './ImageQA';
4
4
  import { RFIDParams } from './RFIDParams';
@@ -495,7 +495,7 @@ export class ProcessParams {
495
495
  get bsiTr03135() { return this._bsiTr03135; }
496
496
  set bsiTr03135(val) {
497
497
  this._bsiTr03135 = val;
498
- this._set({ "bsiTr03135": val });
498
+ this._set({ "bsiTr03135": serializeInterface(val, Bsi) });
499
499
  }
500
500
 
501
501
  _authenticityParams = new AuthenticityParams();
@@ -682,7 +682,7 @@ export class ProcessParams {
682
682
  "rfidParams": this.rfidParams?.toJson(),
683
683
  "faceApiParams": this.faceApiParams?.toJson(),
684
684
  "backendProcessingConfig": this.backendProcessingConfig?.toJson(),
685
- "bsiTr03135": this.bsiTr03135?.toJson(),
685
+ "bsiTr03135": serializeInterface(this.bsiTr03135, Bsi),
686
686
  "authenticityParams": this.authenticityParams?.toJson(),
687
687
  "customParams": this.customParams,
688
688
  }