@regulaforensics/document-reader 9.9.1083-nightly → 9.9.1093-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.9.1083-nightly'
8
+ s.version = '9.9.1093-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 'DocumentReaderNightly', '9.9.6976'
19
+ s.dependency 'DocumentReaderNightly', '9.9.6984'
20
20
  s.dependency 'React'
21
21
  end
@@ -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.9.13370'){
32
+ implementation('com.regula.documentreader:api:9.9.13379'){
33
33
  transitive = true
34
34
  }
35
35
  }
@@ -6,7 +6,7 @@ repositories {
6
6
 
7
7
  dependencies {
8
8
  //noinspection GradleDependency
9
- implementation('com.regula.documentreader:api:9.9.13370'){
9
+ implementation('com.regula.documentreader:api:9.9.13379'){
10
10
  transitive = true
11
11
  }
12
12
  }
@@ -6,7 +6,7 @@
6
6
  "android": "scripts/android.sh"
7
7
  },
8
8
  "dependencies": {
9
- "@regulaforensics/document-reader": "9.9.1083-nightly",
9
+ "@regulaforensics/document-reader": "9.9.1093-nightly",
10
10
  "@regulaforensics/document-reader-core-fullauthrfid": "9.8.2974",
11
11
  "@regulaforensics/document-reader-btdevice": "9.8.68",
12
12
  "@awesome-cordova-plugins/file": "^8.1.0",
@@ -19,7 +19,7 @@
19
19
  "@ionic/cordova-builders": "^12.3.0",
20
20
  "@awesome-cordova-plugins/camera": "^9.2.0",
21
21
  "@awesome-cordova-plugins/file": "^9.2.0",
22
- "@regulaforensics/document-reader": "9.9.1083-nightly",
22
+ "@regulaforensics/document-reader": "9.9.1093-nightly",
23
23
  "@regulaforensics/document-reader-core-fullauthrfid": "9.8.2974",
24
24
  "@regulaforensics/document-reader-btdevice": "9.8.68",
25
25
  "cordova-android": "^15.0.0",
@@ -8,7 +8,7 @@
8
8
  "start": "expo start"
9
9
  },
10
10
  "dependencies": {
11
- "@regulaforensics/document-reader": "9.9.1083-nightly",
11
+ "@regulaforensics/document-reader": "9.9.1093-nightly",
12
12
  "@regulaforensics/document-reader-core-fullauthrfid": "9.8.2974",
13
13
  "@regulaforensics/document-reader-btdevice": "9.8.68",
14
14
  "react-native": "^0.81.4",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/document-reader",
3
- "version": "9.9.1083-nightly",
3
+ "version": "9.9.1093-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.9.1083-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/document-reader" version="9.9.1093-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/regulaforensics/podspecs.git" />
30
30
  </config>
31
31
  <pods>
32
- <pod name="DocumentReaderNightly" spec="9.9.6976" />
32
+ <pod name="DocumentReaderNightly" spec="9.9.6984" />
33
33
  </pods>
34
34
  </podspec>
35
35
  </platform>
@@ -462,7 +462,7 @@ export class DocumentReader {
462
462
  }
463
463
 
464
464
  async initialize(config) {
465
- var response = await exec("initialize", [config])
465
+ var response = await exec("initialize", [config.toJson()])
466
466
  var [success, error] = this._successOrErrorFromJson(response)
467
467
  if (success) await this._onInit()
468
468
  return [success, error]
@@ -511,17 +511,17 @@ export class DocumentReader {
511
511
 
512
512
  scan(config, completion) {
513
513
  _setDocumentReaderCompletion(completion);
514
- exec("scan", [config]);
514
+ exec("scan", [config.toJson()]);
515
515
  }
516
516
 
517
517
  startScanner(config, completion) {
518
518
  _setDocumentReaderCompletion(completion);
519
- exec("startScanner", [config]);
519
+ exec("startScanner", [config.toJson()]);
520
520
  }
521
521
 
522
522
  recognize(config, completion) {
523
523
  _setDocumentReaderCompletion(completion);
524
- exec("recognize", [config]);
524
+ exec("recognize", [config.toJson()]);
525
525
  }
526
526
 
527
527
  rfid(config) {
@@ -554,7 +554,7 @@ export class DocumentReader {
554
554
  }
555
555
 
556
556
  addPKDCertificates(certificates) {
557
- exec("addPKDCertificates", [certificates]);
557
+ exec("addPKDCertificates", [certificates.map(item => item.toJson())]);
558
558
  }
559
559
 
560
560
  clearPKDCertificates() {
@@ -562,7 +562,7 @@ export class DocumentReader {
562
562
  }
563
563
 
564
564
  async setTCCParams(params) {
565
- var response = await exec("setTCCParams", [params]);
565
+ var response = await exec("setTCCParams", [params.toJson()]);
566
566
  return this._successOrErrorFromJson(response);
567
567
  }
568
568
 
@@ -597,7 +597,7 @@ export class DocumentReader {
597
597
  async engageDevice(type, options) {
598
598
  var response = "";
599
599
  if (options?.withoutUI != true) {
600
- response = await exec("startEngageDevice", [type.value]);
600
+ response = await exec("startEngageDevice", [type]);
601
601
  } else if (type == MDLDeviceEngagement.NFC) {
602
602
  response = await exec("engageDeviceNFC", []);
603
603
  } else if (type == MDLDeviceEngagement.QR && options?.data != null) {
@@ -18,7 +18,8 @@ export async function exec(name, params) {
18
18
  }
19
19
 
20
20
  export function serializeInterface(value, ctor) {
21
- if (value == null) return null
21
+ if (value === undefined) return undefined
22
+ if (value === null) return null
22
23
  if (value instanceof ctor) return value.toJson()
23
24
  return (new ctor(value)).toJson()
24
25
  }
package/www/cordova.js CHANGED
@@ -1037,7 +1037,7 @@ class DocumentReader {
1037
1037
  }
1038
1038
 
1039
1039
  async initialize(config) {
1040
- var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("initialize", [config])
1040
+ var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("initialize", [config.toJson()])
1041
1041
  var [success, error] = this._successOrErrorFromJson(response)
1042
1042
  if (success) await this._onInit()
1043
1043
  return [success, error]
@@ -1086,17 +1086,17 @@ class DocumentReader {
1086
1086
 
1087
1087
  scan(config, completion) {
1088
1088
  ;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setDocumentReaderCompletion)(completion);
1089
- (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("scan", [config]);
1089
+ (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("scan", [config.toJson()]);
1090
1090
  }
1091
1091
 
1092
1092
  startScanner(config, completion) {
1093
1093
  ;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setDocumentReaderCompletion)(completion);
1094
- (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startScanner", [config]);
1094
+ (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startScanner", [config.toJson()]);
1095
1095
  }
1096
1096
 
1097
1097
  recognize(config, completion) {
1098
1098
  ;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setDocumentReaderCompletion)(completion);
1099
- (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("recognize", [config]);
1099
+ (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("recognize", [config.toJson()]);
1100
1100
  }
1101
1101
 
1102
1102
  rfid(config) {
@@ -1129,7 +1129,7 @@ class DocumentReader {
1129
1129
  }
1130
1130
 
1131
1131
  addPKDCertificates(certificates) {
1132
- ;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("addPKDCertificates", [certificates]);
1132
+ ;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("addPKDCertificates", [certificates.map(item => item.toJson())]);
1133
1133
  }
1134
1134
 
1135
1135
  clearPKDCertificates() {
@@ -1137,7 +1137,7 @@ class DocumentReader {
1137
1137
  }
1138
1138
 
1139
1139
  async setTCCParams(params) {
1140
- var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setTCCParams", [params]);
1140
+ var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setTCCParams", [params.toJson()]);
1141
1141
  return this._successOrErrorFromJson(response);
1142
1142
  }
1143
1143
 
@@ -1172,7 +1172,7 @@ class DocumentReader {
1172
1172
  async engageDevice(type, options) {
1173
1173
  var response = "";
1174
1174
  if (options?.withoutUI != true) {
1175
- response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startEngageDevice", [type.value]);
1175
+ response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startEngageDevice", [type]);
1176
1176
  } else if (type == _mdl_DeviceEngagement__WEBPACK_IMPORTED_MODULE_113__.MDLDeviceEngagement.NFC) {
1177
1177
  response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("engageDeviceNFC", []);
1178
1178
  } else if (type == _mdl_DeviceEngagement__WEBPACK_IMPORTED_MODULE_113__.MDLDeviceEngagement.QR && options?.data != null) {
@@ -1805,7 +1805,8 @@ async function exec(name, params) {
1805
1805
  }
1806
1806
 
1807
1807
  function serializeInterface(value, ctor) {
1808
- if (value == null) return null
1808
+ if (value === undefined) return undefined
1809
+ if (value === null) return null
1809
1810
  if (value instanceof ctor) return value.toJson()
1810
1811
  return (new ctor(value)).toJson()
1811
1812
  }
@@ -462,7 +462,7 @@ export class DocumentReader {
462
462
  }
463
463
 
464
464
  async initialize(config) {
465
- var response = await exec("initialize", [config])
465
+ var response = await exec("initialize", [config.toJson()])
466
466
  var [success, error] = this._successOrErrorFromJson(response)
467
467
  if (success) await this._onInit()
468
468
  return [success, error]
@@ -511,17 +511,17 @@ export class DocumentReader {
511
511
 
512
512
  scan(config, completion) {
513
513
  _setDocumentReaderCompletion(completion);
514
- exec("scan", [config]);
514
+ exec("scan", [config.toJson()]);
515
515
  }
516
516
 
517
517
  startScanner(config, completion) {
518
518
  _setDocumentReaderCompletion(completion);
519
- exec("startScanner", [config]);
519
+ exec("startScanner", [config.toJson()]);
520
520
  }
521
521
 
522
522
  recognize(config, completion) {
523
523
  _setDocumentReaderCompletion(completion);
524
- exec("recognize", [config]);
524
+ exec("recognize", [config.toJson()]);
525
525
  }
526
526
 
527
527
  rfid(config) {
@@ -554,7 +554,7 @@ export class DocumentReader {
554
554
  }
555
555
 
556
556
  addPKDCertificates(certificates) {
557
- exec("addPKDCertificates", [certificates]);
557
+ exec("addPKDCertificates", [certificates.map(item => item.toJson())]);
558
558
  }
559
559
 
560
560
  clearPKDCertificates() {
@@ -562,7 +562,7 @@ export class DocumentReader {
562
562
  }
563
563
 
564
564
  async setTCCParams(params) {
565
- var response = await exec("setTCCParams", [params]);
565
+ var response = await exec("setTCCParams", [params.toJson()]);
566
566
  return this._successOrErrorFromJson(response);
567
567
  }
568
568
 
@@ -597,7 +597,7 @@ export class DocumentReader {
597
597
  async engageDevice(type, options) {
598
598
  var response = "";
599
599
  if (options?.withoutUI != true) {
600
- response = await exec("startEngageDevice", [type.value]);
600
+ response = await exec("startEngageDevice", [type]);
601
601
  } else if (type == MDLDeviceEngagement.NFC) {
602
602
  response = await exec("engageDeviceNFC", []);
603
603
  } else if (type == MDLDeviceEngagement.QR && options?.data != null) {
@@ -18,7 +18,8 @@ export async function exec(name, params) {
18
18
  }
19
19
 
20
20
  export function serializeInterface(value, ctor) {
21
- if (value == null) return null
21
+ if (value === undefined) return undefined
22
+ if (value === null) return null
22
23
  if (value instanceof ctor) return value.toJson()
23
24
  return (new ctor(value)).toJson()
24
25
  }